311f939aee923afe347eb44fa7d864f54f0998ed
[pspp] / ChangeLog
1 2011-07-24  Bruno Haible  <bruno@clisp.org>
2
3         doc: Mention fsusage.
4         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
5
6 2011-07-24  Bruno Haible  <bruno@clisp.org>
7
8         doc: Mention new glibc headers and functions.
9         * doc/glibc-headers/gshadow.texi: New file.
10         * doc/glibc-functions/endsgent.texi: New file.
11         * doc/glibc-functions/fgetsgent.texi: New file.
12         * doc/glibc-functions/fgetsgent_r.texi: New file.
13         * doc/glibc-functions/getsgent.texi: New file.
14         * doc/glibc-functions/getsgent_r.texi: New file.
15         * doc/glibc-functions/getsgnam.texi: New file.
16         * doc/glibc-functions/getsgnam_r.texi: New file.
17         * doc/glibc-functions/putsgent.texi: New file.
18         * doc/glibc-functions/setsgent.texi: New file.
19         * doc/glibc-functions/sgetsgent.texi: New file.
20         * doc/glibc-functions/sgetsgent_r.texi: New file.
21         * doc/glibc-functions/malloc_info.texi: New file.
22         * doc/glibc-functions/preadv.texi: New file.
23         * doc/glibc-functions/pwritev.texi: New file.
24         * doc/glibc-functions/register_printf_modifier.texi: New file.
25         * doc/glibc-functions/register_printf_specifier.texi: New file.
26         * doc/glibc-functions/register_printf_type.texi: New file.
27         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
28         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
29         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
30         * doc/glibc-functions/pthread_getname_np.texi: New file.
31         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
32         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
33         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
34         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
35         * doc/glibc-functions/pthread_setname_np.texi: New file.
36         * doc/glibc-functions/pthread_sigqueue.texi: New file.
37         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
38         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
39         * doc/glibc-functions/qsort_r.texi: New file.
40         * doc/glibc-functions/quick_exit.texi: New file.
41         * doc/glibc-functions/syncfs.texi: New file.
42         * doc/gnulib.texi: Include them.
43         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
44         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
45         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
46         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
47         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
48         * doc/glibc-functions/execvpe.texi: Likewise.
49
50 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
51
52         ftell: don't include <unistd.h>
53         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
54         guaranteed to define off_t, and the ftell module depends on the
55         stdio module.
56
57         ftell: do not assume wraparound signed arithmetic
58         * lib/ftell.c: Include <limits.h>.
59         (ftell): Don't assume wraparound signed arithmetic.
60
61 2011-07-24  Bruno Haible  <bruno@clisp.org>
62
63         close: No longer depend on module 'fclose'.
64         * modules/close (Depends-on): Remove fclose.
65         * NEWS: Mention the change.
66         Suggested by Sam Steingold <sds@gnu.org>.
67
68 2011-07-24  Bruno Haible  <bruno@clisp.org>
69
70         fsusage: Enable large volume support on AIX >= 5.2.
71         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
72         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
73         instead of STAT_STATVFS.
74         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
75
76         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
77         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
78         f_blocks field only on MacOS X.
79
80         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
81         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
82         * modules/fsusage (Depends-on): Add largefile.
83
84 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
85
86         * README: Modernize discussion of signed integers.
87         Assuming overflow wraparound is no longer safe.
88         Mention ones' complement and signed magnitude.
89
90 2011-07-22  Bruno Haible  <bruno@clisp.org>
91
92         select tests, pselect tests: Refactor.
93         * tests/test-select.h: New file, extracted from tests/test-select.c.
94         (select_fn): New type.
95         (test, do_select, do_select_nowait, do_select_wait, test_tty,
96         test_connect_first, test_accept_first, test_pair, test_socket_pair,
97         test_pipe): Add my_select argument.
98         (test_function): Renamed from main. Add my_select argument.
99         * tests/test-select.c: Move most code to tests/test-select.h. Include
100         test-select.h.
101         * modules/select-tests (Files): Add tests/test-select.h.
102         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
103         (my_select, main): New functions.
104         * modules/pselect-tests (Files): Add tests/test-select.h,
105         tests/macros.h, tests/signature.h.
106         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
107         (configure.ac): Check for <sys/wait.h>.
108
109 2011-07-22  Bruno Haible  <bruno@clisp.org>
110
111         sys_select tests: Check the signature of FD_*.
112         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
113         signature tests from here...
114         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
115         here.
116         * modules/sys_select-tests (Files): Add tests/signature.h.
117
118 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
119
120         largefile: new module, replacing large-inode
121         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
122         * MODULES.html.sh: Add largefile, remove large-inode.
123         * modules/largefile, m4/largefile.m4: New files.
124         * modules/large-inode, m4/large-inode.m4: Remove.
125
126         fsusage: port to MacOS X 10.7 with 4 TiB file systems
127         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
128         implementations that use only 32 bits to count blocks.
129         On typical hosts with 1024-byte blocks, this fails with file
130         systems as small as 4 TiB.  Problem reported by Herb Wartens
131         <http://debbugs.gnu.org/9140> and this should also fix a similar
132         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
133
134         large-inode: New module
135         * MODULES.html.sh: Add it.
136         * modules/large-inode, m4/large-inode.m4: New files.
137
138         extensions: Enable extensions on MacOS X 10.5 and later.
139         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
140
141 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
142
143         file-has-acl: use acl_extended_file_nofollow if available
144         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
145         (acl_extended_file): New macro.
146         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
147         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
148
149 2011-07-21  Bruno Haible  <bruno@clisp.org>
150
151         Declare system functions in a way that works with C++.
152         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
153         declare fdopendir as extern "C".
154         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
155         declare frexpl as extern "C".
156         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
157         declare gai_strerror as extern "C".
158         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
159         programs, declare gai_strerror as extern "C".
160         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
161         declare getlogin_r as extern "C".
162         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
163         as extern "C".
164         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
165         declare ldexpl as extern "C".
166         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
167         as extern "C".
168         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
169         program, declare getmntinfo as extern "C".
170         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
171         stpncpy as extern "C".
172         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
173         program, declare __xpg_strerror_r as extern "C".
174         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
175         strndup as extern "C".
176         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
177         declare memset and bzero as extern "C".
178         Reported by Sam Steingold <sds@gnu.org>.
179
180 2011-07-12  Jim Meyering  <meyering@redhat.com>
181
182         maint.mk: prohibit inclusion of "verify.h" without use
183         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
184
185 2011-07-19  Pádraig Brady  <P@draigBrady.com>
186
187         timer-time: A new module to check for timer_settime()
188         * m4/timer_time.m4: Check for the posix function.
189         * modules/timer-time: Add the new module.
190         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
191         Mention it.
192
193 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
194             Bruno Haible  <bruno@clisp.org>
195
196         pthread_sigmask: assume POSIX threads if --avoid=threadlib
197         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
198         not defined, assume POSIX threads and look for pthread_sigmask in
199         $LIBS, without changing $CPPFLAGS.
200
201 2011-07-19  Bruno Haible  <bruno@clisp.org>
202
203         strstr: Update cross-compilation guess.
204         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
205         CPUs, guess no, in view of glibc
206         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
207         Suggested by Eric Blake. Reported by Reuben Thomas.
208
209 2011-07-19  Pádraig Brady  <P@draigBrady.com>
210
211         getopt-gnu: suppress core dumps from detection code
212         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
213         to suppress core dumps that may well occur on glibc systems.
214         * modules/getopt-gnu: Depend on nocrash.
215
216 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
217
218         pthread_sigmask: ensure usleep is declared
219         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
220         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
221
222 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
223
224         doc: Document NonStop portability issues.
225         * doc/posix-functions/sigaction.texi (sigaction):
226         * doc/posix-headers/signal.texi (signal.h):
227         Document NonStop.  See Joachim Schmitz in
228         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
229
230 2011-07-15  Bruno Haible  <bruno@clisp.org>
231
232         ffsl, ffsll: Avoid unportable behaviour.
233         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
234
235 2011-07-15  Bruno Haible  <bruno@clisp.org>
236
237         ffs: More tests.
238         * tests/test-ffs.c (NBITS): New macro.
239         (main): Add more tests.
240         * tests/test-ffsl.c (NBITS): New macro.
241         (main): Add more tests.
242         * tests/test-ffsll.c (NBITS): New macro.
243         (main): Add more tests.
244
245 2011-07-15  Eric Blake  <eblake@redhat.com>
246
247         ffsl, ffsll: new modules
248         * modules/ffsl: New file.
249         * modules/ffsll: Likewise.
250         * m4/ffsl.m4: Likewise.
251         * m4/ffsll.m4: Likewise.
252         * lib/ffsl.c: Likewise.
253         * lib/ffsl.h: Likewise.
254         * lib/ffsll.c: Likewise.
255         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
256         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
257         * modules/string (Makefile.am): Substitute witnesses.
258         * lib/strings.in.h (ffsl, ffsll): Declare.
259         * modules/ffsl-tests: New test file.
260         * modules/ffsll-tests: Likewise.
261         * tests/test-ffsl.c: Likewise.
262         * tests/test-ffsll.c: Likewise.
263         * MODULES.html.sh (Integer arithmetic functions): Mention it.
264         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
265         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
266
267         ffs: fix m4 prerequisite
268         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
269
270         ffs: avoid undefined behavior
271         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
272         * tests/test-ffs.c (naive, main): Avoid signed shifts.
273         Reported by Bruno Haible.
274
275 2011-07-12  Bruno Haible  <bruno@clisp.org>
276
277         pthread_sigmask: Rely on module 'threadlib'.
278         * modules/pthread_sigmask (Depends-on): Add threadlib.
279         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
280         is defined.
281
282 2011-07-12  Bruno Haible  <bruno@clisp.org>
283
284         regex: Depend on module 'strcase'.
285         * modules/regex (Depends-on): Add strcase, for strcasecmp().
286
287 2011-07-12  Jim Meyering  <meyering@redhat.com>
288
289         warn-on-use: fix typo in file name
290         * modules/snippet/warn-on-use (Files): Correct file name:
291         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
292
293 2011-07-12  Bruno Haible  <bruno@clisp.org>
294
295         strings: Document module.
296         * doc/posix-headers/strings.texi: Mention module 'strings'.
297
298 2011-07-12  Bruno Haible  <bruno@clisp.org>
299
300         Rename module '_Noreturn' to 'snippet/_Noreturn'.
301         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
302         (Files, Makefile.am): Update.
303         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
304         * modules/stdlib (Depends-on): Update.
305
306 2011-07-12  Bruno Haible  <bruno@clisp.org>
307
308         * NEWS: Mention the changes.
309
310         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
311         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
312         (Files, Makefile.am): Update.
313         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
314         * modules/arpa_inet (Depends-on): Update.
315         * modules/ctype (Depends-on): Update.
316         * modules/dirent (Depends-on): Update.
317         * modules/fcntl-h (Depends-on): Update.
318         * modules/glob (Depends-on): Update.
319         * modules/iconv-h (Depends-on): Update.
320         * modules/inttypes-incomplete (Depends-on): Update.
321         * modules/langinfo (Depends-on): Update.
322         * modules/locale (Depends-on): Update.
323         * modules/math (Depends-on): Update.
324         * modules/netdb (Depends-on): Update.
325         * modules/poll-h (Depends-on): Update.
326         * modules/pty (Depends-on): Update.
327         * modules/search (Depends-on): Update.
328         * modules/signal (Depends-on): Update.
329         * modules/spawn (Depends-on): Update.
330         * modules/stdio (Depends-on): Update.
331         * modules/stdlib (Depends-on): Update.
332         * modules/string (Depends-on): Update.
333         * modules/strings (Depends-on): Update.
334         * modules/sys_file (Depends-on): Update.
335         * modules/sys_ioctl (Depends-on): Update.
336         * modules/sys_select (Depends-on): Update.
337         * modules/sys_socket (Depends-on): Update.
338         * modules/sys_stat (Depends-on): Update.
339         * modules/sys_time (Depends-on): Update.
340         * modules/sys_times (Depends-on): Update.
341         * modules/sys_utsname (Depends-on): Update.
342         * modules/sys_wait (Depends-on): Update.
343         * modules/termios (Depends-on): Update.
344         * modules/time (Depends-on): Update.
345         * modules/unistd (Depends-on): Update.
346         * modules/wchar (Depends-on): Update.
347         * modules/wctype-h (Depends-on): Update.
348         * MODULES.html.sh (Support for building libraries and executables):
349         Update.
350
351         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
352         * modules/snippet/unused-parameter: Renamed from
353         modules/unused-parameter.
354         (Files, Makefile.am): Update.
355         * build-aux/snippet/unused-parameter.h: Renamed from
356         build-aux/unused-parameter.h.
357         * modules/selinux-h (Depends-on): Update.
358         * modules/unistr/base (Depends-on): Update.
359         * MODULES.html.sh (Core language properties): Update.
360
361         Rename module 'link-warning' to 'snippet/link-warning'.
362         * modules/snippet/link-warning: Renamed from modules/link-warning.
363         (Files, Makefile.am): Update.
364         * build-aux/snippet/link-warning.h: Renamed from
365         build-aux/link-warning.h.
366         * MODULES.html.sh (Support for building libraries and executables):
367         Update.
368
369         Rename module 'c++defs' to 'snippet/c++defs'.
370         * modules/snippet/c++defs: Renamed from modules/c++defs.
371         (Files, Makefile.am): Update.
372         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
373         * modules/arpa_inet (Depends-on): Update.
374         * modules/ctype (Depends-on): Update.
375         * modules/dirent (Depends-on): Update.
376         * modules/fcntl-h (Depends-on): Update.
377         * modules/glob (Depends-on): Update.
378         * modules/iconv-h (Depends-on): Update.
379         * modules/langinfo (Depends-on): Update.
380         * modules/locale (Depends-on): Update.
381         * modules/math (Depends-on): Update.
382         * modules/netdb (Depends-on): Update.
383         * modules/poll-h (Depends-on): Update.
384         * modules/pty (Depends-on): Update.
385         * modules/search (Depends-on): Update.
386         * modules/signal (Depends-on): Update.
387         * modules/spawn (Depends-on): Update.
388         * modules/stdio (Depends-on): Update.
389         * modules/stdlib (Depends-on): Update.
390         * modules/string (Depends-on): Update.
391         * modules/strings (Depends-on): Update.
392         * modules/sys_ioctl (Depends-on): Update.
393         * modules/sys_select (Depends-on): Update.
394         * modules/sys_socket (Depends-on): Update.
395         * modules/sys_stat (Depends-on): Update.
396         * modules/sys_time (Depends-on): Update.
397         * modules/sys_wait (Depends-on): Update.
398         * modules/termios (Depends-on): Update.
399         * modules/time (Depends-on): Update.
400         * modules/unistd (Depends-on): Update.
401         * modules/wchar (Depends-on): Update.
402         * modules/wctype-h (Depends-on): Update.
403
404         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
405         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
406         (Files, Makefile.am): Update.
407         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
408         * modules/argv-iter (Depends-on): Update.
409         * modules/arpa_inet (Depends-on): Update.
410         * modules/dirent (Depends-on): Update.
411         * modules/fcntl-h (Depends-on): Update.
412         * modules/fnmatch (Depends-on): Update.
413         * modules/getopt-posix (Depends-on): Update.
414         * modules/glob (Depends-on): Update.
415         * modules/iconv-h (Depends-on): Update.
416         * modules/inttypes-incomplete (Depends-on): Update.
417         * modules/locale (Depends-on): Update.
418         * modules/math (Depends-on): Update.
419         * modules/netdb (Depends-on): Update.
420         * modules/search (Depends-on): Update.
421         * modules/signal (Depends-on): Update.
422         * modules/spawn (Depends-on): Update.
423         * modules/stdio (Depends-on): Update.
424         * modules/stdlib (Depends-on): Update.
425         * modules/string (Depends-on): Update.
426         * modules/strings (Depends-on): Update.
427         * modules/sys_socket (Depends-on): Update.
428         * modules/sys_stat (Depends-on): Update.
429         * modules/sys_time (Depends-on): Update.
430         * modules/sys_times (Depends-on): Update.
431         * modules/sys_utsname (Depends-on): Update.
432         * modules/time (Depends-on): Update.
433         * modules/unistd (Depends-on): Update.
434         * modules/wchar (Depends-on): Update.
435         * MODULES.html.sh (Support for building libraries and executables):
436         Update.
437
438 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
439
440         Improvements on _Noreturn and related modules.
441
442         modules/_Exit-tests: test _Noreturn too
443         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
444         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
445         (main): Use them.
446
447         stdnoreturn, stdnoreturn-tests: remove modules
448         They're not needed here and a bit premature for use elsewhere.  See
449         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
450         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
451         * tests/test-stdnoreturn.c: Remove files.
452         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
453         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
454         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
455         and using noreturn.
456         * modules/openat, modules/sigpipe-die, modules/xalloc:
457         * modules/xmemdup0, modules/xstrtol:
458         Remove dependency on stdnoreturn.
459
460         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
461         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
462         Reparenthesize to avoid GCC warning.
463         Support Microsoft's syntax.
464         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
465
466         _Noreturn-tests: remove module
467         * modules/_Noreturn-tests: Remove.
468         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
469         * tests/test-_Noreturn.c: Remove.
470         * tests/test-stdnoreturn.c: Merge from the old
471         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
472
473 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
474
475         _Noreturn, stdnoreturn, and related modules.
476
477         * top/maint.mk: Adjust to new noreturn support.
478         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
479         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
480
481         xalloc: use stdnoreturn.h
482         * lib/xalloc.h: Include <stdnoreturn.h>.
483         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
484         * modules/xalloc (Depends-on): Add stdnoreturn.
485
486         xstrtol: use stdnoreturn.h
487         * lib/xstrtol.h: Include <stdnoreturn.h>.
488         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
489         * modules/xstrtol (Depends-on): Add stdnoreturn.
490
491         xmemdup0: use stdnoreturn.h
492         * lib/xmemdup0.h: Include <stdnoreturn.h>.
493         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
494         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
495
496         sigpipe-die: use stdnoreturn.h
497         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
498         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
499         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
500
501         openat: use stdnoreturn.h
502         * lib/openat.h: Include <stdnoreturn.h>.
503         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
504         * modules/openat (Depends-on): Add stdnoreturn.
505
506         * lib/openat-die.c (openat_save_fail): Modernize comment.
507
508         * lib/xalloc-die.c (xalloc_die): Modernize comment.
509
510         * lib/glthread/thread.h: Modernize comment.
511
512         obstack: use _Noreturn
513         * lib/obstack.c (__attribute__): Remove macro.
514         (print_and_abort): Use _Noreturn.
515
516         c-stack: use _Noreturn
517         * lib/c-stack.c (die, overflow_handler, segv_handler):
518         Use _Noreturn rather than __attribute__((noreturn)).
519
520         argmatch-tests, exclude_tests: use _Noreturn
521         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
522         Remove.
523         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
524
525         stdlib: use _Noreturn
526         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
527         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
528         * modules/stdlib (Depends-on): Add _Noreturn.
529         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
530
531         stdnoreturn-tests: new module
532         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
533
534         stdnoreturn: new module
535         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
536         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
537
538         _Noreturn-tests: new module
539         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
540
541         _Noreturn: new module
542         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
543         New section, mentioning it.
544         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
545
546         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
547
548 2011-07-11  Eric Blake  <eblake@redhat.com>
549
550         ffs: new module
551         * modules/ffs: New file.
552         * m4/ffs.m4: Likewise.
553         * lib/ffs.c: Likewise.
554         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
555         * modules/strings (Makefile.am): Substitute witness.
556         (Depends-on): Add c++defs.
557         * lib/strings.in.h (ffs): Declare.
558         * modules/ffs-tests: New test file.
559         * tests/test-ffs.c: Test new module.
560         * MODULES.html.sh (Integer arithmetic functions): Mention it.
561         * doc/posix-functions/ffs.texi (ffs): Likewise.
562
563         regex: avoid compiler warning
564         * lib/regex.c (includes): Include <strings.h>, for use of
565         strcasecmp in regcomp.c.
566         Reported by Joachim Schmitz.
567
568 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
569
570         stdint: respect system's intmax_t if INTMAX_MAX
571         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
572         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
573         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
574         long but int64_t is long long, and where we will clash with the
575         system intmax_t if we override it.  See
576         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
577         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
578         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
579         similarly for UINTMAX_C.
580
581 2011-07-08  Bruno Haible  <bruno@clisp.org>
582
583         pthread_sigmask tests: Avoid a compiler warning.
584         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
585         non-zero.
586
587         sigprocmask tests: A better way to avoid a compiler warning.
588         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
589         (main): Complain if system() returns non-zero.
590         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
591
592 2011-07-08  Bruno Haible  <bruno@clisp.org>
593
594         pthread_sigmask: Work around IRIX bug.
595         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
596         bug.
597         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
598         there may be unblocked pending signals.
599         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
600
601 2011-07-08  Bruno Haible  <bruno@clisp.org>
602
603         pthread_sigmask: Work around Cygwin bug.
604         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
605         bug.
606         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
607         the system's pthread_sigmask function.
608         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
609
610 2011-07-08  Bruno Haible  <bruno@clisp.org>
611
612         pthread_sigmask: Work around bug in single-threaded implementation.
613         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
614         FreeBSD, HP-UX, Solaris bug.
615         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
616         * lib/pthread_sigmask.c: Include <stddef.h>.
617         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
618         the system's pthread_sigmask function.
619         * modules/pthread_sigmask (configure.ac): Invoke
620         gl_PREREQ_PTHREAD_SIGMASK.
621         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
622         HP-UX, Solaris.
623
624 2011-07-08  Eric Blake  <eblake@redhat.com>
625
626         test-sigprocmask: avoid compiler warning
627         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
628         * tests/test-sigprocmask.c (main): Use it to silence warning.
629         Reported by Jim Meyering.
630
631         test-snprintf: avoid compiler warning
632         * tests/test-snprintf.c (main): Avoid shadowed declaration.
633         * tests/test-vsnprintf.c (main): Likewise.
634         Reported by Jim Meyering.
635
636 2011-07-08  Bruno Haible  <bruno@clisp.org>
637
638         Tests for module 'pthread_sigmask'.
639         * modules/pthread_sigmask-tests: New file.
640         * tests/test-pthread_sigmask1.c: New file, based on
641         tests/test-sigprocmask.c.
642         * tests/test-pthread_sigmask2.c: New file.
643
644 2011-07-08  Jim Meyering  <meyering@redhat.com>
645
646         test-getopt.h: avoid warning about an unused variable
647         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
648
649 2011-07-07  Jim Meyering  <meyering@redhat.com>
650
651         maint: reduce list of files exempt from sc_prohibit_leading_TABs
652         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
653         now that it no longer contains leading TABs.
654         Remove unused "url=FIXME" statement.
655
656 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
657
658         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
659         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
660         When gl_THREADLIB is not in use, assume that the POSIX sematics
661         are desired.  This is better for Emacs, which uses POSIX semantics
662         on GNUish and/or POSIXish platforms, and does not use threads at
663         all otherwise.
664
665         pthread_sigmask: fix typo when testing for libraries
666         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
667         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
668
669 2011-07-08  Eric Blake  <eblake@redhat.com>
670
671         fts: introduce FTS_NOATIME
672         * lib/fts_.h (FTS_NOATIME): New bit flag.
673         (FTS_OPTIONMASK): Adjust.
674         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
675         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
676
677 2011-07-08  Bruno Haible  <bruno@clisp.org>
678
679         Tests for module 'thread'.
680         * modules/thread-tests: New file.
681         * tests/test-thread_self.c: New file.
682         * tests/test-thread_create.cc: New file.
683
684 2011-07-08  Bruno Haible  <bruno@clisp.org>
685
686         thread: Avoid gcc warnings when using gl_thread_self().
687         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
688         'void *'.
689         (gl_thread_self_pointer): Update.
690
691 2011-07-07  Bruno Haible  <bruno@clisp.org>
692
693         signal-c++-tests: Check declaration of pthread_sigmask.
694         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
695         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
696         $(LIB_PTHREAD_SIGMASK).
697
698 2011-07-07  Bruno Haible  <bruno@clisp.org>
699
700         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
701         * lib/signal.in.h (pthread_sigmask): Override if
702         REPLACE_PTHREAD_SIGMASK is 1.
703         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
704         REPLACE_PTHREAD_SIGMASK.
705         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
706         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
707         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
708         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
709         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
710
711 2011-07-07  Bruno Haible  <bruno@clisp.org>
712
713         pthread_sigmask: Ensure declaration in <signal.h>.
714         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
715         include <pthread.h>.
716         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
717         problem.
718
719 2011-07-07  Bruno Haible  <bruno@clisp.org>
720
721         pthread_sigmask: Document the module.
722         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
723
724 2011-07-07  Bruno Haible  <bruno@clisp.org>
725
726         pthread_sigmask: Follow gnulib conventions.
727         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
728         gl_PTHREAD_SIGMASK.
729         * modules/pthread_sigmask (configure.ac): Update.
730
731 2011-07-07  Bruno Haible  <bruno@clisp.org>
732
733         pthread_sigmask: Make declaration C++ safe.
734         * lib/signal.in.h: In two special conditions, just do an #include_next.
735         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
736         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
737         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
738         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
739         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
740         not REPLACE_PTHREAD_MASK.
741         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
742         not REPLACE_PTHREAD_MASK.
743         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
744
745 2011-07-07  Bruno Haible  <bruno@clisp.org>
746
747         pthread_sigmask: Fix return value.
748         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
749         * lib/pthread_sigmask.c: New file.
750         * modules/pthread_sigmask (Files): Add it.
751         (configure.ac): Invoke AC_LIBOBJ.
752
753 2011-07-07  Eric Blake  <eblake@redhat.com>
754
755         getopt: more portable argv creation
756         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
757         const, use char arrays rather than strings.
758         Suggested by Paul Eggert.
759
760 2011-07-07  Bruno Haible  <bruno@clisp.org>
761
762         Tests for module 'sigprocmask'.
763         * modules/sigprocmask-tests: New file.
764         * tests/test-sigprocmask.c: New file.
765
766 2011-07-07  Bruno Haible  <bruno@clisp.org>
767
768         float tests: Tweak.
769         * tests/test-float.c (main): Tweak skip message.
770
771 2011-07-07  Eric Blake  <eblake@redhat.com>
772
773         getopt: avoid compiler warning during configure
774         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
775         assigning string literals to non-const pointer.
776
777         getopt-gnu: avoid crash in glibc getopt
778         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
779         * tests/test-getopt.h (test_getopt): Enhance test.
780         * tests/test-getopt_long.h (test_getopt_long): Likewise.
781         * doc/posix-functions/getopt.texi (getopt): Document it.
782         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
783         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
784         Likewise.
785
786 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
787
788         getopt: handle W; without long options in getopt [BZ #12922]
789         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
790         but no long options are defined, just return 'W'.
791
792 2011-07-07  Bruno Haible  <bruno@clisp.org>
793
794         Avoid literal tabs.
795         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
796         variable containing a tab instead of a literal tab.
797         Reported by Jim Meyering.
798
799 2011-07-07  Bruno Haible  <bruno@clisp.org>
800
801         Comments.
802         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
803
804 2011-07-06  Bruno Haible  <bruno@clisp.org>
805
806         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
807         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
808         <winsock2.h>.
809         (rpl_fd_isset, FD_ISSET): New definitions, copied from
810         lib/sys_socket.in.h.
811         (close, gethostname): Hide declarations from <winsock2.h>.
812         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
813         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
814         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
815         (select): Don't override if gnulib's <sys/select.h> was already
816         included.
817         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
818         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
819         setsockopt, shutdown, select): Tweak indentation.
820
821 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
822
823         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
824         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
825         in an application that does not use the sys_select module.
826
827 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
828
829         poll: do not return 0 on timeout=-1
830         * lib/poll.c: Loop with yield if no events occured
831
832 2011-07-06  Eric Blake  <eblake@redhat.com>
833
834         pthread_sigmask: always replace when not using pthread
835         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
836         replacement when using some threading other than pthread.  Fix
837         logic bug.
838
839 2011-07-06  Bruno Haible  <bruno@clisp.org>
840
841         Comments.
842         * m4/printf.m4: Update comments about mingw.
843
844 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
845
846         sys_select: define sigset_t more portably
847         * lib/sys_select.in.h: Always include <sys/types.h>, since
848         we now need sigset_t and mingw defines it there.
849         Include <signal.h> before split inclusion guard, to avoid
850         mishaps on Solaris, whose <signal.h> eventually includes us.
851         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
852         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
853         which come from ...
854         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
855         gl_CHECK_TYPE_SIGSET_T.
856         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
857         does the real work.
858         * modules/sys_select (Depends-on): Add 'signal'.
859
860         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
861         Suggested by Bruno Haible.
862
863         pselect: Use pthread_sigmask, not sigprocmask.
864         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
865         multithreaded apps better than sigprocmask does.
866         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
867         sigprocmask directly.
868
869 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
870
871         * lib/pselect.c (pselect): Use plain name, without "rpl_".
872         Don't #undef,  since we don't need any underlying pselect.
873         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
874         (Depends-on): Add select.
875         (Link): Add $(LIBSOCKET).
876         These changes suggested by Bruno Haible.
877
878         pselect: document better
879         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
880         * doc/posix-functions/pselect.texi (pselect): Document new module.
881
882         pthread_sigmask: new module
883         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
884         * doc/posix-functions/pthread_sigmask.texi: Document new module.
885         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
886         This is done only as a macro; I don't know how well that'll
887         work for C++.  Move <sys/types.h> include before the include_next,
888         to avoid mishap on Solaris.
889         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
890         * modules/signal (Makefile.am): Substitute the check's results.
891         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
892
893         test-pselect: new module
894         * modules/pselect-tests, tests/test-pselect.c: New files.
895         * tests/test-select.c, tests/test-sys_select-c++.cc:
896         If TEST_PSELECT is defined, test pselect instead of testing select.
897
898         * tests/test-sys_select.c (sigset_t): Test for it, too.
899         Suggested by Bruno Haible.
900
901 2011-07-05  Eric Blake  <eblake@redhat.com>
902
903         snprintf: guarantee %1$d, for libintl
904         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
905         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
906         * doc/posix-functions/snprintf.texi (snprintf): Update.
907         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
908         * tests/test-snprintf.c (main): Enhance test.
909         * tests/test-vsnprintf.c (main): Likewise.
910
911 2011-07-05  Jim Meyering  <meyering@redhat.com>
912
913         maint: exempt stdio-read.c and stdio-write.c from the cppi check
914         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
915         per Bruno's request, to accommodate this idiom (no space after "#")
916         even when the function is inside an #if block:
917         char *
918         gets (char *s)
919         #undef gets
920         {
921           ...
922         }
923
924 2011-07-04  Jim Meyering  <meyering@redhat.com>
925
926         maint: indent with spaces, not TABs, and add a rule to check this
927         * tests/test-userspec.c: Indent with spaces, not TABs.
928         * tests/test-argp.c: Likewise.
929         * tests/test-c-stack2.sh: Likewise.
930         * tests/test-parse-duration.sh: Likewise
931         * m4/strtod.m4: Likewise.
932         * m4/alloca.m4: Likewise.
933         * m4/pselect.m4: Likewise.
934         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
935
936 2011-07-03  Jim Meyering  <meyering@redhat.com>
937
938         maint.mk: correct omissions in prohibit_argmatch_without_use check
939         This rule would mistakenly report that argmatch.h is included without
940         use even when both the argmatch and invalid_arg macro were used.
941         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
942         of argmatch and invalid_arg.
943
944 2011-07-03  Bruno Haible  <bruno@clisp.org>
945
946         Comments about EINTR.
947         * lib/safe-read.h: Explain the purpose of this module.
948         * lib/safe-write.h: Likewise.
949         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
950         module.
951         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
952         module.
953         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
954
955 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
956
957         xnanosleep: Rewrite to use new dtotimespec module.
958         It has the conversion code that used to be in xnanosleep.
959         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
960         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
961         (TIME_T_MAX): Remove.
962         (xnanosleep): Rewrite in terms of dtotimespec.
963         * modules/xnanosleep (Depends-on): Add dtotimespec.
964         Remove intprops, stdbool.
965
966         timespec-add, timespec-sub: new modules
967         * lib/timespec.h (timespec_add, timespec_sub): New decls.
968         * lib/timespec-add.c, lib/timespec-sub.c:
969         * modules/timespec-add, modules/timespec-sub: New files.
970
971         dtotimespec: new module
972         * lib/timespec.h (dtotimespec): New decl.
973         * lib/dtotimespec.c, modules/dtotimespec: New files.
974
975         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
976
977         pselect: new module
978         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
979         (pselect): New decls.
980         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
981         since the standard pselect decl uses 'restrict'.
982         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
983         HAVE_PSELECT, REPLACE_PSELECT.
984         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
985         HAVE_PSELECT, REPLACE_PSELECT.
986         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
987
988         sys_select: don't depend on sys_socket
989         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
990         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
991         This fix works on GNU and GNU-like platforms, but has not been tested
992         on native Windows.
993         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
994         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
995         gl_HEADER_SYS_SOCKET.
996         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
997         gl_PREREQ_SYS_H_WINSOCK2.
998
999 2011-06-29  Eric Blake  <eblake@redhat.com>
1000
1001         pipe2: fix C89 compile problem
1002         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
1003         Reported by Bruno Haible.
1004
1005         pipe, pipe2: don't corrupt fd on error
1006         * lib/pipe.c (pipe): Leave fd unchanged on error.
1007         * lib/pipe2.c (pipe2): Likewise.
1008         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
1009         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
1010
1011 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
1012
1013         mmap-anon: do not use regular expressions inadvertently
1014         * m4/mmap-anon.m4: Remove trailing period from strings sought
1015         in the output.
1016
1017 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
1018
1019         nanosleep: fix integer overflow problem
1020         * lib/nanosleep.c (my_usleep): Don't assume signed integer
1021         arithmetic wraps around on overflow.
1022
1023         nanosleep: simplify carrying
1024         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
1025         first call to the underyling nanosleep, not for the last one.
1026         This doesn't fix any bugs, but it simplifies the computation of
1027         the remaining delay.  Found while auditing integer overflow issues.
1028
1029         dup2: remove test for existence of fcntl
1030         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
1031         "#if HAVE_FCNTL", in the configure-time test program.
1032         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
1033         and therefore speeds up "configure" a bit.  Found while
1034         adding the dup2 module to Emacs.
1035
1036 2011-06-24  Eric Blake  <eblake@redhat.com>
1037
1038         maint.mk: enhance useless header checks
1039         * top/maint.mk (_sc_header_without_use): Check both include
1040         styles.
1041         (sc_prohibit_assert_without_use)
1042         (sc_prohibit_close_stream_without_use)
1043         (sc_prohibit_getopt_without_use)
1044         (sc_prohibit_quotearg_without_use)
1045         (sc_prohibit_quote_without_use)
1046         (sc_prohibit_long_options_without_use)
1047         (sc_prohibit_inttostr_without_use)
1048         (sc_prohibit_ignore_value_without_use)
1049         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
1050         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
1051         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
1052         (sc_prohibit_hash_pjw_without_use)
1053         (sc_prohibit_safe_read_without_use)
1054         (sc_prohibit_argmatch_without_use)
1055         (sc_prohibit_canonicalize_without_use)
1056         (sc_prohibit_root_dev_ino_without_use)
1057         (sc_prohibit_openat_without_use)
1058         (sc_prohibit_c_ctype_without_use)
1059         (sc_prohibit_signal_without_use)
1060         (sc_prohibit_stdio--_without_use)
1061         (sc_prohibit_stdio-safer_without_use)
1062         (sc_prohibit_strings_without_use)
1063         (sc_prohibit_intprops_without_use)
1064         (sc_prohibit_stddef_without_use)
1065         (sc_prohibit_xfreopen_without_use): Update clients.
1066
1067 2011-06-24  Jim Meyering  <meyering@redhat.com>
1068
1069         syntax-check: keep one maint.mk rule in sync with its header
1070         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
1071         of the bug Eric has just fixed, with today's commit 25e4c2ec.
1072         I prefer to avoid temporary files here, so use <(...), but that
1073         is not supported by /bin/sh, so...
1074         (SHELL): Define to /bin/bash.
1075
1076 2011-06-24  Eric Blake  <eblake@redhat.com>
1077
1078         maint.mk: update sc_prohibit_intprops_without_use
1079         * top/maint.mk (_intprops_names): Match recent changes.
1080
1081 2011-06-24  Bruno Haible  <bruno@clisp.org>
1082
1083         strerror-override: No-op tweak.
1084         * lib/strerror-override.h (strerror_override): Reorder conditions,
1085         for consistency with lib/strerror-override.c.
1086
1087 2011-06-23  Eric Blake  <eblake@redhat.com>
1088
1089         maint.mk: test further PATH_MAX issues
1090         * top/maint.mk (sc_prohibit_path_max_array): Rename...
1091         (sc_prohibit_path_max_allocation): ...and also test alloca.
1092         Suggested by Jim Meyering.
1093
1094 2011-06-22  Eric Blake  <eblake@redhat.com>
1095
1096         maint.mk: add syntax-check to avoid char[PATH_MAX]
1097         * top/maint.mk (sc_prohibit_path_max_array): New rule.
1098
1099         stat: be robust to PATH_MAX definition
1100         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
1101         * modules/stat (Depends-on): Add verify.
1102
1103         link: work around IRIX bug
1104         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
1105         * lib/link.c (rpl_link): Work around it.
1106         * tests/test-link.h (test_link): Enhance test.
1107         * doc/posix-functions/link.texi (link): Document the bug.
1108
1109         getopt: silence clang warning
1110         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
1111         dereference.
1112         Reported by Gustavo Martin Domato.
1113
1114 2011-06-22  Jim Meyering  <meyering@redhat.com>
1115
1116         bootstrap: do not insert a blank line into each .gitignore file
1117         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
1118
1119 2011-06-21  Eric Blake  <eblake@redhat.com>
1120
1121         perror: test for output mismatch
1122         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
1123         perror on IRIX.
1124
1125         strerror_r: fix OpenBSD behavior on out-of-range
1126         * lib/strerror_r.c (strerror_r): Always use maximal string.
1127         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
1128
1129         strerror_r: fix OpenBSD behavior on 0
1130         * lib/strerror-override.c (strerror_override): Also override 0
1131         when needed.
1132         * lib/strerror-override.h (strerror_override): Likewise.
1133         * lib/strerror.c (strerror): Simplify, now that 0 override is done
1134         earlier.
1135         * lib/strerror_r.c (strerror_r): Likewise.
1136         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
1137         behavior...
1138         (gl_FUNC_STRERROR_0): ...into new macro.
1139         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
1140         is overridden.
1141         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
1142         * modules/strerror-override (Files): Add strerror.m4.
1143         (configure.ac): Also provide override for 0 when needed.
1144         * doc/posix-functions/strerror.texi (strerror): Document this.
1145         * doc/posix-functions/perror.texi (perror): Likewise.
1146
1147         perror: adjust array size
1148         * modules/perror (Depends-on): Add strerror-override.
1149         * lib/perror.c (perror): Use it to avoid magic number.
1150
1151         strerror-override: reduce size
1152         * lib/strerror-override.c (strerror_override): Use fewer lines.
1153
1154 2011-06-20  Bruno Haible  <bruno@clisp.org>
1155
1156         pathmax: Ensure correct value for PATH_MAX on HP-UX.
1157         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
1158
1159 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
1160
1161         alloca: port to compilers that can optimize like GCC 4.6.0
1162         * lib/alloca.c (find_stack_direction): New signature, taken from
1163         Autoconf git.  This works with GCC 4.6.0.  This code should never
1164         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
1165         be used with other compilers that optimize as well as GCC 4.6.0 does.
1166         (alloca): Adjust to new signature.
1167         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
1168         New macro, which patches Autoconf in a similar way.
1169
1170         c-stack: stop worrying about stack direction
1171         * lib/c-stack.c (find_stack_direction): Remove.
1172         (segv_handler): Don't worry about stack direction growth, as it's
1173         too much of a pain to configure this correctly, given how compilers
1174         are optimizing-away our stack-growth detection code.  Instead, assume
1175         that any access to just before or just after the stack is OK.
1176         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
1177         Don't require AC_FUNC_ALLOCA; no longer needed.
1178
1179 2011-06-20  Eric Blake  <eblake@redhat.com>
1180
1181         test-stat: don't allocate PATH_MAX bytes
1182         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
1183         PATH_MAX-sized buffer.
1184         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
1185         * modules/stat-tests (Depends-on): Likewise.
1186         * tests/test-fstatat.c (includes): Drop pathmax.h.
1187         * tests/test-stat.c (includes): Likewise.
1188         Reported by Bruno Haible.
1189
1190 2011-06-20  Bruno Haible  <bruno@clisp.org>
1191
1192         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
1193         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
1194         * lib/float.c: New file.
1195         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
1196         REPLACE_FLOAT_LDBL.
1197         * modules/float (Files): Add lib/float.c.
1198         (configure.ac): Invoke AC_LIBOBJ.
1199         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
1200
1201 2011-06-20  Bruno Haible  <bruno@clisp.org>
1202
1203         Tests for module 'float'.
1204         * modules/float-tests: New file.
1205         * tests/test-float.c: New file.
1206
1207 2011-06-19  Bruno Haible  <bruno@clisp.org>
1208
1209         isinf: Coding style.
1210         * lib/isinf.c: Use GNU coding style.
1211
1212 2011-06-19  Bruno Haible  <bruno@clisp.org>
1213
1214         linkat test: Avoid test failure on AIX 7.1.
1215         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
1216         * tests/test-link.h (test_link): Likewise.
1217
1218 2011-06-19  Bruno Haible  <bruno@clisp.org>
1219
1220         pread test: Avoid test failure on OpenBSD 4.9.
1221         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
1222
1223 2011-06-19  Bruno Haible  <bruno@clisp.org>
1224
1225         sprintf-posix: Fix test failure on AIX 7.1.
1226         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
1227         * doc/posix-functions/dprintf.texi: Mention limited precision problem
1228         on AIX.
1229         * doc/posix-functions/fprintf.texi: Likewise.
1230         * doc/posix-functions/printf.texi: Likewise.
1231         * doc/posix-functions/snprintf.texi: Likewise.
1232         * doc/posix-functions/sprintf.texi: Likewise.
1233         * doc/posix-functions/vdprintf.texi: Likewise.
1234         * doc/posix-functions/vfprintf.texi: Likewise.
1235         * doc/posix-functions/vprintf.texi: Likewise.
1236         * doc/posix-functions/vsnprintf.texi: Likewise.
1237         * doc/posix-functions/vsprintf.texi: Likewise.
1238
1239 2011-06-19  Bruno Haible  <bruno@clisp.org>
1240
1241         roundl-ieee: Fix test failure on AIX 7.1.
1242         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
1243         * doc/posix-functions/roundl.texi: Mention problem with negative
1244         arguments.
1245
1246 2011-06-19  Bruno Haible  <bruno@clisp.org>
1247
1248         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
1249         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
1250         * doc/posix-functions/round.texi: Mention problem with negative
1251         arguments.
1252         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
1253
1254 2011-06-19  Bruno Haible  <bruno@clisp.org>
1255
1256         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
1257         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
1258         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
1259         * doc/posix-functions/roundf.texi: Mention problem with negative
1260         arguments.
1261         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
1262
1263 2011-06-19  Bruno Haible  <bruno@clisp.org>
1264
1265         ceilf-ieee: Work around bug on MacOS X 10.5.
1266         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
1267
1268         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
1269         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
1270         IEEE compliant, avoid compiler optimizations.
1271         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
1272         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
1273         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
1274         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
1275         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
1276         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
1277         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
1278         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
1279         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
1280         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
1281
1282 2011-06-19  Bruno Haible  <bruno@clisp.org>
1283
1284         ceilf-ieee: Work around bug on AIX 7.1.
1285         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
1286         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
1287
1288 2011-06-19  Bruno Haible  <bruno@clisp.org>
1289
1290         ceil-ieee: Work around bug on AIX 7.1.
1291         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
1292         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
1293
1294 2011-06-18  Bruno Haible  <bruno@clisp.org>
1295
1296         fsync test: Avoid test failure on MacOS X and AIX.
1297         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
1298         EINVAL.
1299
1300 2011-06-18  Bruno Haible  <bruno@clisp.org>
1301
1302         openat, fdopendir tests: Fix link errors.
1303         * modules/openat-tests (Depends-on): Add progname.
1304         * modules/fdopendir-tests (Depends-on): Likewise.
1305         * tests/test-fchownat.c: Include progname.h.
1306         (main): Call set_program_name.
1307         * tests/test-fstatat.c: Include progname.h.
1308         (main): Call set_program_name.
1309         * tests/test-mkdirat.c: Include progname.h.
1310         (main): Call set_program_name.
1311         * tests/test-openat.c: Include progname.h.
1312         (main): Call set_program_name.
1313         * tests/test-unlinkat.c: Include progname.h.
1314         (main): Call set_program_name.
1315         * tests/test-fdopendir.c: Include progname.h.
1316         (main): Call set_program_name.
1317
1318 2011-06-18  Bruno Haible  <bruno@clisp.org>
1319
1320         Doc update.
1321         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
1322         HP-UX.
1323         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
1324
1325 2011-06-18  Bruno Haible  <bruno@clisp.org>
1326
1327         getcwd tests: Avoid compilation error on HP-UX 11.31.
1328         * modules/getcwd-tests (Depends-on): Add pathmax.
1329         * tests/test-getcwd.c: Include pathmax.h.
1330
1331 2011-06-18  Bruno Haible  <bruno@clisp.org>
1332
1333         isfinite, isinf: Fix link error on AIX 6 and 7.
1334         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
1335         needed, also test the macro with a 'float' argument.
1336         * m4/isinf.m4 (gl_ISINF): Likewise.
1337
1338 2011-06-18  Bruno Haible  <bruno@clisp.org>
1339
1340         getloadavg: Don't clobber LIBS. Regression from previous commit.
1341         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
1342         AC_CHECK_LIB from here...
1343         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
1344         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
1345         gl_func_getloadavg_done.
1346         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1347
1348 2011-06-18  Bruno Haible  <bruno@clisp.org>
1349
1350         clean-temp: Improve documentation.
1351         * lib/clean-temp.h: Explain better how to use this module.
1352         Reported by John Darrington <john@darrington.wattle.id.au>.
1353
1354 2011-06-17  Bruno Haible  <bruno@clisp.org>
1355
1356         pread, pwrite: Avoid cc warning on AIX.
1357         * lib/unistd.in.h (pread): Undefine before defining as a macro.
1358         (pwrite): Likewise.
1359
1360 2011-06-17  Bruno Haible  <bruno@clisp.org>
1361
1362         spawn-pipe tests: Fix link error.
1363         * tests/test-spawn-pipe-child.c: Undefine fprintf.
1364         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1365
1366 2011-06-17  Bruno Haible  <bruno@clisp.org>
1367
1368         Tests: Remove unnecessary dependency.
1369         * modules/canonicalize-tests (Depends-on): Remove progname.
1370         * modules/chown-tests (Depends-on): Likewise.
1371         * modules/dirname-tests (Depends-on): Likewise.
1372         * modules/fdopendir-tests (Depends-on): Likewise.
1373         * modules/fdutimensat-tests (Depends-on): Likewise.
1374         * modules/hash-tests (Depends-on): Likewise.
1375         * modules/lchown-tests (Depends-on): Likewise.
1376         * modules/linkat-tests (Depends-on): Likewise.
1377         * modules/renameat-tests (Depends-on): Likewise.
1378         * modules/spawn-pipe-tests (Depends-on): Likewise.
1379         * modules/utimensat-tests (Depends-on): Likewise.
1380
1381 2011-06-17  Bruno Haible  <bruno@clisp.org>
1382
1383         spawn-pipe tests: Fix link error.
1384         * tests/test-spawn-pipe-child.c: Undefine fflush.
1385
1386 2011-06-17  Bruno Haible  <bruno@clisp.org>
1387
1388         Fix tests link errors.
1389         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
1390         * modules/chown-tests (Makefile.am): Don't link test-chown with
1391         LIBINTL.
1392         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
1393         LIBINTL.
1394         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
1395         LIBINTL.
1396         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
1397         LIBINTL.
1398
1399 2011-06-16  Bruno Haible  <bruno@clisp.org>
1400
1401         crypto/gc-sha1: Fix recent regression.
1402         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
1403         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
1404
1405         crypto/gc-md5: Fix recent regression.
1406         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
1407
1408         crypto/gc-md4: Fix recent regression.
1409         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
1410         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
1411
1412         crypto/gc-arctwo: Fix recent regression.
1413         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
1414         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
1415
1416         crypto/gc-rijndael: Fix recent regression.
1417         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
1418         (configure.ac): Invoke AC_LIBOBJ here.
1419         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
1420         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1421
1422         crypto/gc-hmac-sha1: Fix recent regression.
1423         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
1424         (configure.ac): Invoke AC_LIBOBJ here.
1425         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
1426         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1427
1428         crypto/gc-hmac-md5: Fix recent regression.
1429         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
1430         (configure.ac): Invoke AC_LIBOBJ here.
1431         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
1432         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1433
1434         crypto/gc-des: Fix recent regression.
1435         * modules/crypto/gc-des (Files): Remove m4/des.m4.
1436         (configure.ac): Invoke AC_LIBOBJ here.
1437         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
1438         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1439
1440         crypto/gc-arcfour: Fix recent regression.
1441         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
1442         (configure.ac): Invoke AC_LIBOBJ here.
1443         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
1444         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1445
1446 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
1447
1448         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
1449         After the 2011-05-21 change, this macro requires
1450         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
1451         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
1452
1453 2011-06-16  Bruno Haible  <bruno@clisp.org>
1454
1455         fprintftime: Move AC_LIBOBJ invocations to module description.
1456         * m4/fprintftime.m4: Remove file.
1457         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
1458         (configure.ac): Remove gl_FPRINTFTIME call.
1459         (Makefile.am): Augment lib_SOURCES.
1460         Reported by Jim Meyering.
1461
1462 2011-06-16  Bruno Haible  <bruno@clisp.org>
1463
1464         tmpfile-safer: Finish 2011-05-23 commit.
1465         * m4/stdio-safer.m4: Really remove file.
1466         Reported by Jim Meyering.
1467
1468 2011-06-16  Bruno Haible  <bruno@clisp.org>
1469
1470         syntax-check: Fix typo.
1471         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
1472         printf-posix.m4.
1473         Reported by Jim Meyering.
1474
1475 2011-06-13  Jim Meyering  <meyering@redhat.com>
1476
1477         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
1478         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
1479
1480 2011-05-23  Bruno Haible  <bruno@clisp.org>
1481
1482         yesno: Move AC_LIBOBJ invocations to module description.
1483         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
1484         * modules/yesno (Makefile.am): Augment lib_SOURCES.
1485
1486 2011-05-23  Bruno Haible  <bruno@clisp.org>
1487
1488         xstrtol: Move AC_LIBOBJ invocations to module description.
1489         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
1490         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
1491
1492 2011-05-23  Bruno Haible  <bruno@clisp.org>
1493
1494         xstrtold: Move AC_LIBOBJ invocations to module description.
1495         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
1496         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
1497
1498 2011-05-23  Bruno Haible  <bruno@clisp.org>
1499
1500         xstrtod: Move AC_LIBOBJ invocations to module description.
1501         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
1502         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
1503
1504 2011-05-23  Bruno Haible  <bruno@clisp.org>
1505
1506         xnanosleep: Move AC_LIBOBJ invocations to module description.
1507         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
1508         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
1509
1510 2011-05-23  Bruno Haible  <bruno@clisp.org>
1511
1512         xgetcwd: Move AC_LIBOBJ invocations to module description.
1513         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
1514         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
1515
1516 2011-05-23  Bruno Haible  <bruno@clisp.org>
1517
1518         xalloc: Move AC_LIBOBJ invocations to module description.
1519         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
1520         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
1521
1522 2011-05-23  Bruno Haible  <bruno@clisp.org>
1523
1524         write-any-file: Move AC_LIBOBJ invocations to module description.
1525         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
1526         invocation.
1527         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
1528
1529 2011-05-23  Bruno Haible  <bruno@clisp.org>
1530
1531         utimens: Move AC_LIBOBJ invocations to module description.
1532         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
1533         * modules/utimens (Makefile.am): Augment lib_SOURCES.
1534
1535 2011-05-23  Bruno Haible  <bruno@clisp.org>
1536
1537         utimecmp: Move AC_LIBOBJ invocations to module description.
1538         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
1539         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
1540
1541 2011-05-23  Bruno Haible  <bruno@clisp.org>
1542
1543         userspec: Move AC_LIBOBJ invocations to module description.
1544         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
1545         * modules/userspec (Makefile.am): Augment lib_SOURCES.
1546
1547 2011-05-23  Bruno Haible  <bruno@clisp.org>
1548
1549         unlinkdir: Move AC_LIBOBJ invocations to module description.
1550         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
1551         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
1552
1553 2011-05-23  Bruno Haible  <bruno@clisp.org>
1554
1555         unistd-safer: Move AC_LIBOBJ invocations to module description.
1556         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
1557         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
1558
1559 2011-05-23  Bruno Haible  <bruno@clisp.org>
1560
1561         tempname: Move AC_LIBOBJ invocations to module description.
1562         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
1563         * modules/tempname (Makefile.am): Augment lib_SOURCES.
1564
1565 2011-05-23  Bruno Haible  <bruno@clisp.org>
1566
1567         strftime: Move AC_LIBOBJ invocations to module description.
1568         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
1569         * modules/strftime (Makefile.am): Augment lib_SOURCES.
1570
1571 2011-05-23  Bruno Haible  <bruno@clisp.org>
1572
1573         stdlib-safer: Move AC_LIBOBJ invocations to module description.
1574         * m4/stdlib-safer.m4: Remove file.
1575         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
1576         (configure.ac): Remove gl_STDLIB_SAFER call.
1577         (Makefile.am): Augment lib_SOURCES.
1578
1579 2011-05-23  Bruno Haible  <bruno@clisp.org>
1580
1581         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
1582         * m4/stdio-safer.m4: Remove file.
1583         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
1584         (configure.ac): Remove gl_TMPFILE_SAFER call.
1585         (Makefile.am): Augment lib_SOURCES.
1586
1587 2011-05-23  Bruno Haible  <bruno@clisp.org>
1588
1589         popen-safer: Move AC_LIBOBJ invocations to module description.
1590         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
1591         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
1592         (configure.ac): Remove gl_POPEN_SAFER call.
1593         (Makefile.am): Augment lib_SOURCES.
1594
1595 2011-05-23  Bruno Haible  <bruno@clisp.org>
1596
1597         freopen-safer: Move AC_LIBOBJ invocations to module description.
1598         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
1599         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
1600         (configure.ac): Remove gl_FREOPEN_SAFER call.
1601         (Makefile.am): Augment lib_SOURCES.
1602
1603 2011-05-23  Bruno Haible  <bruno@clisp.org>
1604
1605         fopen-safer: Move AC_LIBOBJ invocations to module description.
1606         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
1607         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
1608         (configure.ac): Remove gl_FOPEN_SAFER call.
1609         (Makefile.am): Augment lib_SOURCES.
1610
1611 2011-05-23  Bruno Haible  <bruno@clisp.org>
1612
1613         crypto/sha512: Move AC_LIBOBJ invocations to module description.
1614         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
1615         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
1616
1617 2011-05-23  Bruno Haible  <bruno@clisp.org>
1618
1619         crypto/sha256: Move AC_LIBOBJ invocations to module description.
1620         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
1621         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
1622
1623 2011-05-23  Bruno Haible  <bruno@clisp.org>
1624
1625         crypto/sha1: Move AC_LIBOBJ invocations to module description.
1626         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
1627         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
1628
1629 2011-05-23  Bruno Haible  <bruno@clisp.org>
1630
1631         settime: Move AC_LIBOBJ invocations to module description.
1632         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
1633         * modules/settime (Makefile.am): Augment lib_SOURCES.
1634
1635 2011-05-23  Bruno Haible  <bruno@clisp.org>
1636
1637         savedir: Move AC_LIBOBJ invocations to module description.
1638         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
1639         * modules/savedir (Makefile.am): Augment lib_SOURCES.
1640
1641 2011-05-23  Bruno Haible  <bruno@clisp.org>
1642
1643         save-cwd: Move AC_LIBOBJ invocations to module description.
1644         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
1645         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
1646
1647 2011-05-23  Bruno Haible  <bruno@clisp.org>
1648
1649         same: Move AC_LIBOBJ invocations to module description.
1650         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
1651         * modules/same (Makefile.am): Augment lib_SOURCES.
1652
1653 2011-05-23  Bruno Haible  <bruno@clisp.org>
1654
1655         safe-write: Move AC_LIBOBJ invocations to module description.
1656         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
1657         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
1658         instead of gl_SAFE_WRITE.
1659         (Makefile.am): Augment lib_SOURCES.
1660
1661 2011-05-23  Bruno Haible  <bruno@clisp.org>
1662
1663         safe-read: Move AC_LIBOBJ invocations to module description.
1664         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
1665         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
1666         of gl_SAFE_READ.
1667         (Makefile.am): Augment lib_SOURCES.
1668
1669 2011-05-23  Bruno Haible  <bruno@clisp.org>
1670
1671         safe-alloc: Move AC_LIBOBJ invocations to module description.
1672         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
1673         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
1674
1675 2011-05-23  Bruno Haible  <bruno@clisp.org>
1676
1677         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
1678         * m4/rijndael.m4: Remove file.
1679         * modules/crypto/rijndael (Files): Remove it.
1680         (configure.ac): Remove gl_RIJNDAEL call.
1681         (Makefile.am): Augment lib_SOURCES.
1682
1683 2011-05-23  Bruno Haible  <bruno@clisp.org>
1684
1685         readtokens: Move AC_LIBOBJ invocations to module description.
1686         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
1687         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
1688
1689 2011-05-23  Bruno Haible  <bruno@clisp.org>
1690
1691         read-file: Move AC_LIBOBJ invocations to module description.
1692         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
1693         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
1694         of gl_FUNC_READ_FILE.
1695         (Makefile.am): Augment lib_SOURCES.
1696
1697 2011-05-23  Bruno Haible  <bruno@clisp.org>
1698
1699         quotearg: Move AC_LIBOBJ invocations to module description.
1700         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
1701         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
1702
1703 2011-05-23  Bruno Haible  <bruno@clisp.org>
1704
1705         quote: Move AC_LIBOBJ invocations to module description.
1706         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
1707         * modules/quote (Makefile.am): Augment lib_SOURCES.
1708
1709 2011-05-23  Bruno Haible  <bruno@clisp.org>
1710
1711         posixver: Move AC_LIBOBJ invocations to module description.
1712         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
1713         * modules/posixver (Makefile.am): Augment lib_SOURCES.
1714
1715 2011-05-23  Bruno Haible  <bruno@clisp.org>
1716
1717         posixtm: Move AC_LIBOBJ invocations to module description.
1718         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
1719         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
1720
1721 2011-05-23  Bruno Haible  <bruno@clisp.org>
1722
1723         physmem: Move AC_LIBOBJ invocations to module description.
1724         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
1725         * modules/physmem (Makefile.am): Augment lib_SOURCES.
1726
1727 2011-05-23  Bruno Haible  <bruno@clisp.org>
1728
1729         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
1730         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
1731         invocation.
1732         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
1733
1734 2011-05-23  Bruno Haible  <bruno@clisp.org>
1735
1736         mpsort: Move AC_LIBOBJ invocations to module description.
1737         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
1738         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
1739
1740 2011-05-23  Bruno Haible  <bruno@clisp.org>
1741
1742         modechange: Move AC_LIBOBJ invocations to module description.
1743         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
1744         * modules/modechange (Makefile.am): Augment lib_SOURCES.
1745
1746 2011-05-23  Bruno Haible  <bruno@clisp.org>
1747
1748         mkdir-p: Move AC_LIBOBJ invocations to module description.
1749         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
1750         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
1751
1752 2011-05-23  Bruno Haible  <bruno@clisp.org>
1753
1754         mkancesdirs: Move AC_LIBOBJ invocations to module description.
1755         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
1756         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
1757
1758 2011-05-23  Bruno Haible  <bruno@clisp.org>
1759
1760         mgetgroups: Move AC_LIBOBJ invocations to module description.
1761         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
1762         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
1763
1764 2011-05-23  Bruno Haible  <bruno@clisp.org>
1765
1766         memxor: Move AC_LIBOBJ invocations to module description.
1767         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
1768         * modules/memxor (Makefile.am): Augment lib_SOURCES.
1769
1770 2011-05-23  Bruno Haible  <bruno@clisp.org>
1771
1772         memcoll: Move AC_LIBOBJ invocations to module description.
1773         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
1774         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
1775
1776 2011-05-23  Bruno Haible  <bruno@clisp.org>
1777
1778         memcasecmp: Move AC_LIBOBJ invocations to module description.
1779         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
1780         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
1781
1782 2011-05-23  Bruno Haible  <bruno@clisp.org>
1783
1784         crypto/md5: Move AC_LIBOBJ invocations to module description.
1785         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
1786         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
1787
1788 2011-05-23  Bruno Haible  <bruno@clisp.org>
1789
1790         crypto/md4: Move AC_LIBOBJ invocations to module description.
1791         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
1792         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
1793
1794 2011-05-23  Bruno Haible  <bruno@clisp.org>
1795
1796         crypto/md2: Move AC_LIBOBJ invocations to module description.
1797         * m4/md2.m4: Remove file.
1798         * modules/crypto/md2 (Files): Remove it.
1799         (configure.ac): Remove gl_MD2 call.
1800         (Makefile.am): Augment lib_SOURCES.
1801
1802 2011-05-23  Bruno Haible  <bruno@clisp.org>
1803
1804         long-options: Move AC_LIBOBJ invocations to module description.
1805         * m4/long-options.m4: Remove file.
1806         * modules/long-options (Files): Remove it.
1807         (configure.ac): Remove gl_LONG_OPTIONS call.
1808         (Makefile.am): Augment lib_SOURCES.
1809
1810 2011-05-23  Bruno Haible  <bruno@clisp.org>
1811
1812         i-ring: Move AC_LIBOBJ invocations to module description.
1813         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
1814         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
1815
1816 2011-05-23  Bruno Haible  <bruno@clisp.org>
1817
1818         idcache: Move AC_LIBOBJ invocations to module description.
1819         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
1820         * modules/idcache (Makefile.am): Augment lib_SOURCES.
1821
1822 2011-05-23  Bruno Haible  <bruno@clisp.org>
1823
1824         human: Move AC_LIBOBJ invocations to module description.
1825         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
1826         * modules/human (Makefile.am): Augment lib_SOURCES.
1827
1828 2011-05-23  Bruno Haible  <bruno@clisp.org>
1829
1830         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
1831         * m4/hmac-sha1.m4: Remove file.
1832         * modules/crypto/hmac-sha1 (Files): Remove it.
1833         (configure.ac): Remove gl_HMAC_SHA1 call.
1834         (Makefile.am): Augment lib_SOURCES.
1835
1836 2011-05-23  Bruno Haible  <bruno@clisp.org>
1837
1838         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
1839         * m4/hmac-md5.m4: Remove file.
1840         * modules/crypto/hmac-md5 (Files): Remove it.
1841         (configure.ac): Remove gl_HMAC_MD5 call.
1842         (Makefile.am): Augment lib_SOURCES.
1843
1844 2011-05-23  Bruno Haible  <bruno@clisp.org>
1845
1846         hash: Move AC_LIBOBJ invocations to module description.
1847         * m4/hash.m4: Remove file.
1848         * modules/hash (Files): Remove it.
1849         (configure.ac): Remove gl_HASH call.
1850         (Makefile.am): Augment lib_SOURCES.
1851
1852 2011-05-23  Bruno Haible  <bruno@clisp.org>
1853
1854         hard-locale: Move AC_LIBOBJ invocations to module description.
1855         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
1856         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
1857
1858 2011-05-23  Bruno Haible  <bruno@clisp.org>
1859
1860         getugroups: Move AC_LIBOBJ invocations to module description.
1861         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
1862         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
1863
1864 2011-05-23  Bruno Haible  <bruno@clisp.org>
1865
1866         gettime: Move AC_LIBOBJ invocations to module description.
1867         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
1868         * modules/gettime (Makefile.am): Augment lib_SOURCES.
1869
1870 2011-05-23  Bruno Haible  <bruno@clisp.org>
1871
1872         getndelim2: Move AC_LIBOBJ invocations to module description.
1873         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
1874         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
1875
1876 2011-05-23  Bruno Haible  <bruno@clisp.org>
1877
1878         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
1879         * m4/gc-pbkdf2-sha1.m4: Remove file.
1880         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
1881         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
1882         (Makefile.am): Augment lib_SOURCES.
1883
1884 2011-05-23  Bruno Haible  <bruno@clisp.org>
1885
1886         fts: Move AC_LIBOBJ invocations to module description.
1887         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
1888         * modules/fts (configure.ac): ... to here.
1889
1890 2011-05-23  Bruno Haible  <bruno@clisp.org>
1891
1892         file-type: Move AC_LIBOBJ invocations to module description.
1893         * m4/file-type.m4: Remove file.
1894         * modules/file-type (Files): Remove it.
1895         (configure.ac): Remove gl_FILE_TYPE call.
1896         (Makefile.am): Augment lib_SOURCES.
1897
1898 2011-05-23  Bruno Haible  <bruno@clisp.org>
1899
1900         filenamecat*: Respect rules for use of AC_LIBOBJ.
1901         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
1902         Remove AC_LIBOBJ invocation.
1903         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
1904         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
1905
1906 2011-05-23  Bruno Haible  <bruno@clisp.org>
1907
1908         filemode: Move AC_LIBOBJ invocations to module description.
1909         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
1910         * modules/filemode (Makefile.am): Augment lib_SOURCES.
1911
1912 2011-05-23  Bruno Haible  <bruno@clisp.org>
1913
1914         openat-safer: Move AC_LIBOBJ invocations to module description.
1915         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
1916         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
1917
1918 2011-05-23  Bruno Haible  <bruno@clisp.org>
1919
1920         fcntl-safer: Move AC_LIBOBJ invocations to module description.
1921         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
1922         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
1923
1924 2011-05-23  Bruno Haible  <bruno@clisp.org>
1925
1926         exclude: Move AC_LIBOBJ invocations to module description.
1927         * m4/exclude.m4: Remove file.
1928         * modules/exclude (Files): Remove it.
1929         (configure.ac): Remove gl_EXCLUDE call.
1930         (Makefile.am): Augment lib_SOURCES.
1931
1932 2011-05-23  Bruno Haible  <bruno@clisp.org>
1933
1934         dirname*: Respect rules for use of AC_LIBOBJ.
1935         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
1936         invocations.
1937         * modules/dirname (Makefile.am): Augment lib_SOURCES.
1938         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
1939
1940 2011-05-23  Bruno Haible  <bruno@clisp.org>
1941
1942         dirent-safer: Move AC_LIBOBJ invocations to module description.
1943         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
1944         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
1945
1946 2011-05-23  Bruno Haible  <bruno@clisp.org>
1947
1948         crypto/des: Move AC_LIBOBJ invocations to module description.
1949         * m4/des.m4: Remove file.
1950         * modules/crypto/des (Files): Remove it.
1951         (configure.ac): Remove gl_DES call.
1952         (Makefile.am): Augment lib_SOURCES.
1953
1954 2011-05-23  Bruno Haible  <bruno@clisp.org>
1955
1956         cycle-check: Move AC_LIBOBJ invocations to module description.
1957         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
1958         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
1959
1960 2011-05-23  Bruno Haible  <bruno@clisp.org>
1961
1962         c-strtold: Move AC_LIBOBJ invocations to module description.
1963         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
1964         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
1965
1966 2011-05-23  Bruno Haible  <bruno@clisp.org>
1967
1968         c-strtod: Move AC_LIBOBJ invocations to module description.
1969         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
1970         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
1971
1972 2011-05-23  Bruno Haible  <bruno@clisp.org>
1973
1974         crc: Move AC_LIBOBJ invocations to module description.
1975         * m4/crc.m4: Remove file.
1976         * modules/crc (Files): Remove it.
1977         (configure.ac): Remove gl_CRC call.
1978         (Makefile.am): Augment lib_SOURCES.
1979
1980 2011-05-23  Bruno Haible  <bruno@clisp.org>
1981
1982         close-stream: Move AC_LIBOBJ invocations to module description.
1983         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
1984         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
1985
1986 2011-05-23  Bruno Haible  <bruno@clisp.org>
1987
1988         closeout: Move AC_LIBOBJ invocations to module description.
1989         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
1990         * modules/closeout (Makefile.am): Augment lib_SOURCES.
1991
1992 2011-05-23  Bruno Haible  <bruno@clisp.org>
1993
1994         closein: Move AC_LIBOBJ invocations to module description.
1995         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
1996         * modules/closein (Makefile.am): Augment lib_SOURCES.
1997
1998 2011-05-23  Bruno Haible  <bruno@clisp.org>
1999
2000         cloexec: Move AC_LIBOBJ invocations to module description.
2001         * m4/cloexec.m4: Remove file.
2002         * modules/cloexec (Files): Remove it.
2003         (configure.ac): Remove gl_CLOEXEC call.
2004         (Makefile.am): Augment lib_SOURCES.
2005
2006 2011-05-23  Bruno Haible  <bruno@clisp.org>
2007
2008         check-version: Move AC_LIBOBJ invocations to module description.
2009         * m4/check-version.m4: Remove file.
2010         * modules/check-version (Files): Remove it.
2011         (configure.ac): Remove gl_CHECK_VERSION call.
2012         (Makefile.am): Augment lib_SOURCES.
2013
2014 2011-05-23  Bruno Haible  <bruno@clisp.org>
2015
2016         chdir-safer: Move AC_LIBOBJ invocations to module description.
2017         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
2018         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
2019
2020 2011-05-23  Bruno Haible  <bruno@clisp.org>
2021
2022         canonicalize: Move AC_LIBOBJ invocations to module description.
2023         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
2024         AC_LIBOBJ invocation.
2025         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
2026
2027 2011-05-23  Bruno Haible  <bruno@clisp.org>
2028
2029         canon-host: Move AC_LIBOBJ invocations to module description.
2030         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
2031         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
2032         instead of gl_CANON_HOST.
2033         (Makefile.am): Augment lib_SOURCES.
2034
2035 2011-05-23  Bruno Haible  <bruno@clisp.org>
2036
2037         backupfile: Move AC_LIBOBJ invocations to module description.
2038         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
2039         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
2040
2041 2011-05-23  Bruno Haible  <bruno@clisp.org>
2042
2043         argmatch: Move AC_LIBOBJ invocations to module description.
2044         * m4/argmatch.m4: Remove file.
2045         * modules/argmatch (Files): Remove it.
2046         (configure.ac): Remove gl_ARGMATCH call.
2047         (Makefile.am): Augment lib_SOURCES.
2048
2049 2011-05-23  Bruno Haible  <bruno@clisp.org>
2050
2051         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
2052         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
2053         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
2054
2055 2011-05-23  Bruno Haible  <bruno@clisp.org>
2056
2057         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
2058         * m4/arcfour.m4: Remove file.
2059         * modules/crypto/arcfour (Files): Remove it.
2060         (configure.ac): Remove gl_ARCFOUR call.
2061         (Makefile.am): Augment lib_SOURCES.
2062
2063 2011-05-22  Bruno Haible  <bruno@clisp.org>
2064
2065         write: Move AC_LIBOBJ invocations to module description.
2066         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
2067         * modules/write (configure.ac): ... to here.
2068
2069 2011-05-22  Bruno Haible  <bruno@clisp.org>
2070
2071         wmemset: Move AC_LIBOBJ invocations to module description.
2072         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
2073         here...
2074         * modules/wmemset (configure.ac): ... to here.
2075
2076 2011-05-22  Bruno Haible  <bruno@clisp.org>
2077
2078         wmemmove: Move AC_LIBOBJ invocations to module description.
2079         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
2080         here...
2081         * modules/wmemmove (configure.ac): ... to here.
2082
2083 2011-05-22  Bruno Haible  <bruno@clisp.org>
2084
2085         wmemcpy: Move AC_LIBOBJ invocations to module description.
2086         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
2087         here...
2088         * modules/wmemcpy (configure.ac): ... to here.
2089
2090 2011-05-22  Bruno Haible  <bruno@clisp.org>
2091
2092         wmemcmp: Move AC_LIBOBJ invocations to module description.
2093         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
2094         here...
2095         * modules/wmemcmp (configure.ac): ... to here.
2096
2097 2011-05-22  Bruno Haible  <bruno@clisp.org>
2098
2099         wmemchr: Move AC_LIBOBJ invocations to module description.
2100         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
2101         here...
2102         * modules/wmemchr (configure.ac): ... to here.
2103
2104 2011-05-22  Bruno Haible  <bruno@clisp.org>
2105
2106         wcswidth: Move AC_LIBOBJ invocations to module description.
2107         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
2108         here...
2109         * modules/wcswidth (configure.ac): ... to here.
2110
2111 2011-05-22  Bruno Haible  <bruno@clisp.org>
2112
2113         wcwidth: Respect rules for use of AC_LIBOBJ.
2114         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
2115         invocation from here...
2116         * modules/wcwidth (configure.ac): ... to here.
2117         (Depends-on): Update conditions.
2118
2119 2011-05-22  Bruno Haible  <bruno@clisp.org>
2120
2121         wctype: Move AC_LIBOBJ invocations to module description.
2122         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
2123         invocation from here...
2124         * modules/wctype (configure.ac): ... to here.
2125         (Depends-on): Update conditions.
2126
2127 2011-05-22  Bruno Haible  <bruno@clisp.org>
2128
2129         wctrans: Move AC_LIBOBJ invocations to module description.
2130         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
2131         invocation from here...
2132         * modules/wctrans (configure.ac): ... to here.
2133
2134 2011-05-22  Bruno Haible  <bruno@clisp.org>
2135
2136         wctomb: Move AC_LIBOBJ invocations to module description.
2137         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
2138         invocations from here...
2139         * modules/wctomb (configure.ac): ... to here.
2140
2141 2011-05-22  Bruno Haible  <bruno@clisp.org>
2142
2143         wctob: Move AC_LIBOBJ invocations to module description.
2144         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
2145         gl_PREREQ_WCTOB invocations from here...
2146         * modules/wctob (configure.ac): ... to here.
2147         (Depends-on): Update conditions.
2148
2149 2011-05-22  Bruno Haible  <bruno@clisp.org>
2150
2151         wcsxfrm: Move AC_LIBOBJ invocations to module description.
2152         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
2153         here...
2154         * modules/wcsxfrm (configure.ac): ... to here.
2155
2156 2011-05-22  Bruno Haible  <bruno@clisp.org>
2157
2158         wcstok: Move AC_LIBOBJ invocations to module description.
2159         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
2160         * modules/wcstok (configure.ac): ... to here.
2161
2162 2011-05-22  Bruno Haible  <bruno@clisp.org>
2163
2164         wcsstr: Move AC_LIBOBJ invocations to module description.
2165         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
2166         * modules/wcsstr (configure.ac): ... to here.
2167
2168 2011-05-22  Bruno Haible  <bruno@clisp.org>
2169
2170         wcsspn: Move AC_LIBOBJ invocations to module description.
2171         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
2172         * modules/wcsspn (configure.ac): ... to here.
2173
2174 2011-05-22  Bruno Haible  <bruno@clisp.org>
2175
2176         wcsrtombs: Move AC_LIBOBJ invocations to module description.
2177         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
2178         gl_PREREQ_WCSRTOMBS invocations from here...
2179         * modules/wcsrtombs (configure.ac): ... to here.
2180
2181 2011-05-22  Bruno Haible  <bruno@clisp.org>
2182
2183         wcsrchr: Move AC_LIBOBJ invocations to module description.
2184         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
2185         here...
2186         * modules/wcsrchr (configure.ac): ... to here.
2187
2188 2011-05-22  Bruno Haible  <bruno@clisp.org>
2189
2190         wcspbrk: Move AC_LIBOBJ invocations to module description.
2191         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
2192         here...
2193         * modules/wcspbrk (configure.ac): ... to here.
2194
2195 2011-05-22  Bruno Haible  <bruno@clisp.org>
2196
2197         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
2198         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
2199         gl_PREREQ_WCSNRTOMBS invocations from here...
2200         * modules/wcsnrtombs (configure.ac): ... to here.
2201
2202 2011-05-22  Bruno Haible  <bruno@clisp.org>
2203
2204         wcsnlen: Move AC_LIBOBJ invocations to module description.
2205         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
2206         here...
2207         * modules/wcsnlen (configure.ac): ... to here.
2208
2209 2011-05-22  Bruno Haible  <bruno@clisp.org>
2210
2211         wcsncpy: Move AC_LIBOBJ invocations to module description.
2212         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
2213         here...
2214         * modules/wcsncpy (configure.ac): ... to here.
2215
2216 2011-05-22  Bruno Haible  <bruno@clisp.org>
2217
2218         wcsncmp: Move AC_LIBOBJ invocations to module description.
2219         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
2220         here...
2221         * modules/wcsncmp (configure.ac): ... to here.
2222
2223 2011-05-22  Bruno Haible  <bruno@clisp.org>
2224
2225         wcsncat: Move AC_LIBOBJ invocations to module description.
2226         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
2227         here...
2228         * modules/wcsncat (configure.ac): ... to here.
2229
2230 2011-05-22  Bruno Haible  <bruno@clisp.org>
2231
2232         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
2233         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
2234         from here...
2235         * modules/wcsncasecmp (configure.ac): ... to here.
2236
2237 2011-05-22  Bruno Haible  <bruno@clisp.org>
2238
2239         wcslen: Move AC_LIBOBJ invocations to module description.
2240         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
2241         * modules/wcslen (configure.ac): ... to here.
2242
2243 2011-05-22  Bruno Haible  <bruno@clisp.org>
2244
2245         wcsdup: Move AC_LIBOBJ invocations to module description.
2246         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
2247         * modules/wcsdup (configure.ac): ... to here.
2248
2249 2011-05-22  Bruno Haible  <bruno@clisp.org>
2250
2251         wcscspn: Move AC_LIBOBJ invocations to module description.
2252         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
2253         here...
2254         * modules/wcscspn (configure.ac): ... to here.
2255
2256 2011-05-22  Bruno Haible  <bruno@clisp.org>
2257
2258         wcscpy: Move AC_LIBOBJ invocations to module description.
2259         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
2260         * modules/wcscpy (configure.ac): ... to here.
2261
2262 2011-05-22  Bruno Haible  <bruno@clisp.org>
2263
2264         wcscoll: Move AC_LIBOBJ invocations to module description.
2265         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
2266         here...
2267         * modules/wcscoll (configure.ac): ... to here.
2268
2269 2011-05-22  Bruno Haible  <bruno@clisp.org>
2270
2271         wcscmp: Move AC_LIBOBJ invocations to module description.
2272         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
2273         * modules/wcscmp (configure.ac): ... to here.
2274
2275 2011-05-22  Bruno Haible  <bruno@clisp.org>
2276
2277         wcschr: Move AC_LIBOBJ invocations to module description.
2278         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
2279         * modules/wcschr (configure.ac): ... to here.
2280
2281 2011-05-22  Bruno Haible  <bruno@clisp.org>
2282
2283         wcscat: Move AC_LIBOBJ invocations to module description.
2284         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
2285         * modules/wcscat (configure.ac): ... to here.
2286
2287 2011-05-22  Bruno Haible  <bruno@clisp.org>
2288
2289         wcscasecmp: Move AC_LIBOBJ invocations to module description.
2290         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
2291         here...
2292         * modules/wcscasecmp (configure.ac): ... to here.
2293
2294 2011-05-22  Bruno Haible  <bruno@clisp.org>
2295
2296         wcrtomb: Move AC_LIBOBJ invocations to module description.
2297         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
2298         invocations from here...
2299         * modules/wcrtomb (configure.ac): ... to here.
2300
2301 2011-05-22  Bruno Haible  <bruno@clisp.org>
2302
2303         wcpncpy: Move AC_LIBOBJ invocations to module description.
2304         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
2305         here...
2306         * modules/wcpncpy (configure.ac): ... to here.
2307
2308 2011-05-22  Bruno Haible  <bruno@clisp.org>
2309
2310         wcpcpy: Move AC_LIBOBJ invocations to module description.
2311         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
2312         * modules/wcpcpy (configure.ac): ... to here.
2313
2314 2011-05-22  Bruno Haible  <bruno@clisp.org>
2315
2316         waitpid: Move AC_LIBOBJ invocations to module description.
2317         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
2318         invocation from here...
2319         * modules/waitpid (configure.ac): ... to here.
2320
2321 2011-05-22  Bruno Haible  <bruno@clisp.org>
2322
2323         utimensat: Move AC_LIBOBJ invocations to module description.
2324         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
2325         here...
2326         * modules/utimensat (configure.ac): ... to here.
2327
2328 2011-05-22  Bruno Haible  <bruno@clisp.org>
2329
2330         usleep: Move AC_LIBOBJ invocations to module description.
2331         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
2332         here...
2333         * modules/usleep (configure.ac): ... to here.
2334
2335 2011-05-22  Bruno Haible  <bruno@clisp.org>
2336
2337         unlockpt: Move AC_LIBOBJ invocations to module description.
2338         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
2339         gl_PREREQ_UNLOCKPT invocations from here...
2340         * modules/unlockpt (configure.ac): ... to here.
2341
2342 2011-05-22  Bruno Haible  <bruno@clisp.org>
2343
2344         unlink: Respect rules for use of AC_LIBOBJ.
2345         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
2346         * modules/unlink (configure.ac): ... to here.
2347
2348 2011-05-22  Bruno Haible  <bruno@clisp.org>
2349
2350         uname: Move AC_LIBOBJ invocations to module description.
2351         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
2352         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
2353         here...
2354         * modules/uname (configure.ac): ... to here.
2355
2356 2011-05-22  Bruno Haible  <bruno@clisp.org>
2357
2358         ttyname_r: Move AC_LIBOBJ invocations to module description.
2359         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
2360         gl_PREREQ_TTYNAME_R invocations from here...
2361         * modules/ttyname_r (configure.ac): ... to here.
2362
2363 2011-05-22  Bruno Haible  <bruno@clisp.org>
2364
2365         tsearch: Move AC_LIBOBJ invocations to module description.
2366         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
2367         invocations from here...
2368         * modules/tsearch (configure.ac): ... to here.
2369
2370 2011-05-22  Bruno Haible  <bruno@clisp.org>
2371
2372         towctrans: Move AC_LIBOBJ invocations to module description.
2373         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
2374         AC_LIBOBJ invocation from here...
2375         * modules/towctrans (configure.ac): ... to here.
2376
2377 2011-05-22  Bruno Haible  <bruno@clisp.org>
2378
2379         tmpfile: Move AC_LIBOBJ invocations to module description.
2380         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
2381         invocations from here...
2382         * modules/tmpfile (configure.ac): ... to here.
2383
2384 2011-05-22  Bruno Haible  <bruno@clisp.org>
2385
2386         times: Move AC_LIBOBJ invocations to module description.
2387         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
2388         * modules/times (configure.ac): ... to here.
2389
2390 2011-05-22  Bruno Haible  <bruno@clisp.org>
2391
2392         time_r: Move AC_LIBOBJ invocations to module description.
2393         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
2394         invocations from here...
2395         * modules/time_r (configure.ac): ... to here.
2396
2397 2011-05-22  Bruno Haible  <bruno@clisp.org>
2398
2399         timegm: Move AC_LIBOBJ invocations to module description.
2400         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
2401         invocations from here...
2402         * modules/timegm (configure.ac): ... to here.
2403
2404 2011-05-22  Bruno Haible  <bruno@clisp.org>
2405
2406         tcgetsid: Move AC_LIBOBJ invocations to module description.
2407         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
2408         and gl_PREREQ_TCGETSID invocations from here...
2409         * modules/tcgetsid (configure.ac): ... to here.
2410         (Depends-on): Update conditions.
2411
2412 2011-05-22  Bruno Haible  <bruno@clisp.org>
2413
2414         symlinkat: Move AC_LIBOBJ invocations to module description.
2415         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
2416         here...
2417         * modules/symlinkat (configure.ac): ... to here.
2418
2419 2011-05-22  Bruno Haible  <bruno@clisp.org>
2420
2421         symlink: Move AC_LIBOBJ invocations to module description.
2422         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
2423         here...
2424         * modules/symlink (configure.ac): ... to here.
2425
2426 2011-05-22  Bruno Haible  <bruno@clisp.org>
2427
2428         strverscmp: Move AC_LIBOBJ invocations to module description.
2429         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
2430         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
2431         from here...
2432         * modules/strverscmp (configure.ac): ... to here.
2433
2434 2011-05-22  Bruno Haible  <bruno@clisp.org>
2435
2436         strtok_r: Move AC_LIBOBJ invocations to module description.
2437         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
2438         and gl_PREREQ_STRTOK_R invocations from here...
2439         * modules/strtok_r (configure.ac): ... to here.
2440         (Depends-on): Update conditions.
2441
2442 2011-05-22  Bruno Haible  <bruno@clisp.org>
2443
2444         strtoumax: Move AC_LIBOBJ invocations to module description.
2445         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
2446         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
2447         from here...
2448         * modules/strtoumax (configure.ac): ... to here.
2449
2450 2011-05-22  Bruno Haible  <bruno@clisp.org>
2451
2452         strtoimax: Move AC_LIBOBJ invocations to module description.
2453         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
2454         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
2455         from here...
2456         * modules/strtoimax (configure.ac): ... to here.
2457
2458 2011-05-22  Bruno Haible  <bruno@clisp.org>
2459
2460         strtoull: Move AC_LIBOBJ invocations to module description.
2461         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
2462         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
2463         from here...
2464         * modules/strtoull (configure.ac): ... to here.
2465
2466 2011-05-22  Bruno Haible  <bruno@clisp.org>
2467
2468         strtoll: Move AC_LIBOBJ invocations to module description.
2469         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
2470         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
2471         here...
2472         * modules/strtoll (configure.ac): ... to here.
2473
2474 2011-05-22  Bruno Haible  <bruno@clisp.org>
2475
2476         strtoul: Move AC_LIBOBJ invocations to module description.
2477         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
2478         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
2479         * modules/strtoul (configure.ac): ... to here.
2480
2481 2011-05-22  Bruno Haible  <bruno@clisp.org>
2482
2483         strtol: Move AC_LIBOBJ invocations to module description.
2484         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
2485         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
2486         * modules/strtol (configure.ac): ... to here.
2487
2488 2011-05-22  Bruno Haible  <bruno@clisp.org>
2489
2490         strtod: Move AC_LIBOBJ invocations to module description.
2491         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
2492         invocations from here...
2493         * modules/strtod (configure.ac): ... to here.
2494
2495 2011-05-22  Bruno Haible  <bruno@clisp.org>
2496
2497         strstr*: Move AC_LIBOBJ invocations to module description.
2498         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
2499         invocations from here...
2500         * modules/strstr-simple (configure.ac): ... to here.
2501         * modules/strstr (configure.ac): ... and here.
2502
2503 2011-05-22  Bruno Haible  <bruno@clisp.org>
2504
2505         strsignal: Move AC_LIBOBJ invocations to module description.
2506         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
2507         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
2508         * modules/strsignal (configure.ac): ... to here.
2509         (Depends-on): Update conditions.
2510
2511 2011-05-22  Bruno Haible  <bruno@clisp.org>
2512
2513         strsep: Move AC_LIBOBJ invocations to module description.
2514         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
2515         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
2516         here...
2517         * modules/strsep (configure.ac): ... to here.
2518
2519 2011-05-22  Bruno Haible  <bruno@clisp.org>
2520
2521         strptime: Move AC_LIBOBJ invocations to module description.
2522         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
2523         gl_PREREQ_STRPTIME invocations from here...
2524         * modules/strptime (configure.ac): ... to here.
2525
2526 2011-05-22  Bruno Haible  <bruno@clisp.org>
2527
2528         strpbrk: Move AC_LIBOBJ invocations to module description.
2529         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
2530         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
2531         here...
2532         * modules/strpbrk (configure.ac): ... to here.
2533
2534 2011-05-22  Bruno Haible  <bruno@clisp.org>
2535
2536         strnlen: Move AC_LIBOBJ invocations to module description.
2537         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
2538         invocations from here...
2539         * modules/strnlen (configure.ac): ... to here.
2540
2541 2011-05-22  Bruno Haible  <bruno@clisp.org>
2542
2543         strndup: Move AC_LIBOBJ invocations to module description.
2544         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
2545         invocations from here...
2546         * modules/strndup (configure.ac): ... to here.
2547         (Depends-on): Update conditions.
2548
2549 2011-05-22  Bruno Haible  <bruno@clisp.org>
2550
2551         strncat: Move AC_LIBOBJ invocations to module description.
2552         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
2553         invocations from here...
2554         * modules/strncat (configure.ac): ... to here.
2555
2556 2011-05-22  Bruno Haible  <bruno@clisp.org>
2557
2558         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
2559         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
2560         invocations from here...
2561         * modules/strdup (configure.ac): ... to here.
2562         * modules/strdup-posix (configure.ac): ... and here.
2563
2564 2011-05-22  Bruno Haible  <bruno@clisp.org>
2565
2566         strcspn: Move AC_LIBOBJ invocations to module description.
2567         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
2568         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
2569         here...
2570         * modules/strcspn (configure.ac): ... to here.
2571
2572 2011-05-22  Bruno Haible  <bruno@clisp.org>
2573
2574         strchrnul: Move AC_LIBOBJ invocations to module description.
2575         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
2576         gl_PREREQ_STRCHRNUL invocations from here...
2577         * modules/strchrnul (configure.ac): ... to here.
2578
2579 2011-05-22  Bruno Haible  <bruno@clisp.org>
2580
2581         strcasestr*: Move AC_LIBOBJ invocations to module description.
2582         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
2583         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
2584         * modules/strcasestr-simple (configure.ac): ... to here.
2585         * modules/strcasestr (configure.ac): ... and here.
2586
2587 2011-05-22  Bruno Haible  <bruno@clisp.org>
2588
2589         strcase: Move AC_LIBOBJ invocations to module description.
2590         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
2591         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
2592         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
2593         gl_PREREQ_STRNCASECMP invocations from here...
2594         * modules/strcase (configure.ac): ... to here.
2595
2596 2011-05-22  Bruno Haible  <bruno@clisp.org>
2597
2598         stpncpy: Move AC_LIBOBJ invocations to module description.
2599         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
2600         here...
2601         * modules/stpncpy (configure.ac): ... to here.
2602
2603 2011-05-22  Bruno Haible  <bruno@clisp.org>
2604
2605         stpcpy: Move AC_LIBOBJ invocations to module description.
2606         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
2607         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
2608         here...
2609         * modules/stpcpy (configure.ac): ... to here.
2610
2611 2011-05-21  Bruno Haible  <bruno@clisp.org>
2612
2613         stat: Move AC_LIBOBJ invocations to module description.
2614         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
2615         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
2616         here...
2617         * modules/stat (configure.ac): ... to here.
2618
2619 2011-05-21  Bruno Haible  <bruno@clisp.org>
2620
2621         sleep: Move AC_LIBOBJ invocations to module description.
2622         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
2623         * modules/sleep (configure.ac): ... to here.
2624
2625 2011-05-21  Bruno Haible  <bruno@clisp.org>
2626
2627         signbit: Move AC_LIBOBJ invocations to module description.
2628         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
2629         * modules/signbit (configure.ac): ... to here.
2630
2631 2011-05-21  Bruno Haible  <bruno@clisp.org>
2632
2633         sigprocmask: Move AC_LIBOBJ invocations to module description.
2634         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
2635         gl_PREREQ_SIGPROMASK invocations from here...
2636         * modules/sigprocmask (configure.ac): ... to here.
2637
2638 2011-05-21  Bruno Haible  <bruno@clisp.org>
2639
2640         sigaction: Move AC_LIBOBJ invocations to module description.
2641         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
2642         gl_PREREQ_SIGACTION invocations from here...
2643         * modules/sigaction (configure.ac): ... to here.
2644
2645 2011-05-21  Bruno Haible  <bruno@clisp.org>
2646
2647         sig2str: Move AC_LIBOBJ invocations to module description.
2648         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
2649         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
2650         here...
2651         * modules/sig2str (configure.ac): ... to here.
2652
2653 2011-05-21  Bruno Haible  <bruno@clisp.org>
2654
2655         setlocale: Move AC_LIBOBJ invocations to module description.
2656         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
2657         gl_PREREQ_SETLOCALE invocations from here...
2658         * modules/setlocale (configure.ac): ... to here.
2659
2660 2011-05-21  Bruno Haible  <bruno@clisp.org>
2661
2662         unsetenv: Move AC_LIBOBJ invocations to module description.
2663         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
2664         and gl_PREREQ_UNSETENV invocations from here...
2665         * modules/unsetenv (configure.ac): ... to here.
2666         (Depends-on): Update.
2667
2668 2011-05-21  Bruno Haible  <bruno@clisp.org>
2669
2670         setenv: Move AC_LIBOBJ invocations to module description.
2671         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
2672         here...
2673         * modules/setenv (configure.ac): ... to here.
2674
2675 2011-05-21  Bruno Haible  <bruno@clisp.org>
2676
2677         selinux-h: Move AC_LIBOBJ invocations to module description.
2678         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
2679         AC_LIBOBJ invocation from here...
2680         * modules/selinux-h (configure.ac): ... to here.
2681
2682 2011-05-21  Bruno Haible  <bruno@clisp.org>
2683
2684         select: Respect rules for use of AC_LIBOBJ.
2685         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
2686         here...
2687         * modules/select (configure.ac): ... to here.
2688
2689 2011-05-21  Bruno Haible  <bruno@clisp.org>
2690
2691         scandir: Move AC_LIBOBJ invocations to module description.
2692         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
2693         invocations from here...
2694         * modules/scandir (configure.ac): ... to here.
2695
2696 2011-05-21  Bruno Haible  <bruno@clisp.org>
2697
2698         rpmatch: Move AC_LIBOBJ invocations to module description.
2699         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
2700         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
2701         here...
2702         * modules/rpmatch (configure.ac): ... to here.
2703
2704 2011-05-21  Bruno Haible  <bruno@clisp.org>
2705
2706         rmdir: Respect rules for use of AC_LIBOBJ.
2707         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
2708         * modules/rmdir (configure.ac): ... to here.
2709
2710 2011-05-21  Bruno Haible  <bruno@clisp.org>
2711
2712         renameat: Move AC_LIBOBJ invocations to module description.
2713         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
2714         here...
2715         * modules/renameat (configure.ac): ... to here.
2716
2717 2011-05-21  Bruno Haible  <bruno@clisp.org>
2718
2719         rename: Respect rules for use of AC_LIBOBJ.
2720         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
2721         here...
2722         * modules/rename (configure.ac): ... to here.
2723
2724 2011-05-21  Bruno Haible  <bruno@clisp.org>
2725
2726         remove: Move AC_LIBOBJ invocations to module description.
2727         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
2728         here...
2729         * modules/remove (configure.ac): ... to here.
2730
2731 2011-05-21  Bruno Haible  <bruno@clisp.org>
2732
2733         relocatable-lib: Move AC_LIBOBJ invocations to module description.
2734         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
2735         macro.
2736         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
2737         * modules/relocatable-lib (configure.ac): ... to here.
2738         * modules/relocatable-prog-wrapper (configure.ac): Invoke
2739         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
2740
2741 2011-05-21  Bruno Haible  <bruno@clisp.org>
2742
2743         relocatable-prog: Move AC_LIBOBJ invocations to module description.
2744         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
2745         here...
2746         * modules/relocatable-prog (configure.ac): ... to here.
2747
2748 2011-05-21  Bruno Haible  <bruno@clisp.org>
2749
2750         regex: Move AC_LIBOBJ invocations to module description.
2751         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
2752         invocations from here...
2753         * modules/regex (configure.ac): ... to here.
2754
2755 2011-05-21  Bruno Haible  <bruno@clisp.org>
2756
2757         realloc-*: Move AC_LIBOBJ invocations to module description.
2758         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
2759         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
2760         AC_LIBOBJ invocations from here...
2761         * modules/realloc-gnu (configure.ac): ... to here.
2762         * modules/realloc-posix (configure.ac): ... and here.
2763
2764 2011-05-21  Bruno Haible  <bruno@clisp.org>
2765
2766         readutmp: Move AC_LIBOBJ invocations to module description.
2767         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
2768         * modules/readutmp (configure.ac): ... to here.
2769
2770 2011-05-21  Bruno Haible  <bruno@clisp.org>
2771
2772         readlinkat: Move AC_LIBOBJ invocations to module description.
2773         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
2774         here...
2775         * modules/readlinkat (configure.ac): ... to here.
2776
2777 2011-05-21  Bruno Haible  <bruno@clisp.org>
2778
2779         readlink: Move AC_LIBOBJ invocations to module description.
2780         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
2781         gl_PREREQ_READLINK invocations from here...
2782         * modules/readlink (configure.ac): ... to here.
2783
2784 2011-05-21  Bruno Haible  <bruno@clisp.org>
2785
2786         readline: Move AC_LIBOBJ invocations to module description.
2787         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
2788         gl_PREREQ_READLINE invocations from here...
2789         * modules/readline (configure.ac): ... to here.
2790
2791 2011-05-21  Bruno Haible  <bruno@clisp.org>
2792
2793         read: Move AC_LIBOBJ invocations to module description.
2794         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
2795         * modules/read (configure.ac): ... to here.
2796
2797 2011-05-21  Bruno Haible  <bruno@clisp.org>
2798
2799         rawmemchr: Move AC_LIBOBJ invocations to module description.
2800         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
2801         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
2802         from here...
2803         * modules/rawmemchr (configure.ac): ... to here.
2804
2805 2011-05-21  Bruno Haible  <bruno@clisp.org>
2806
2807         random_r: Move AC_LIBOBJ invocations to module description.
2808         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
2809         gl_PREREQ_RANDOM_R invocations from here...
2810         * modules/random_r (configure.ac): ... to here.
2811
2812 2011-05-21  Bruno Haible  <bruno@clisp.org>
2813
2814         pwrite: Move AC_LIBOBJ invocations to module description.
2815         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
2816         * modules/pwrite (configure.ac): ... to here.
2817
2818 2011-05-21  Bruno Haible  <bruno@clisp.org>
2819
2820         putenv: Move AC_LIBOBJ invocations to module description.
2821         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
2822         * modules/putenv (configure.ac): ... to here.
2823
2824 2011-05-21  Bruno Haible  <bruno@clisp.org>
2825
2826         login_tty: Move AC_LIBOBJ invocations to module description.
2827         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
2828         * modules/login_tty (configure.ac): ... to here.
2829
2830 2011-05-21  Bruno Haible  <bruno@clisp.org>
2831
2832         openpty: Move AC_LIBOBJ invocations to module description.
2833         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
2834         * modules/openpty (configure.ac): ... to here.
2835
2836 2011-05-21  Bruno Haible  <bruno@clisp.org>
2837
2838         forkpty: Move AC_LIBOBJ invocations to module description.
2839         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
2840         * modules/forkpty (configure.ac): ... to here.
2841
2842 2011-05-21  Bruno Haible  <bruno@clisp.org>
2843
2844         ptsname: Move AC_LIBOBJ invocations to module description.
2845         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
2846         invocations from here...
2847         * modules/ptsname (configure.ac): ... to here.
2848
2849 2011-05-21  Bruno Haible  <bruno@clisp.org>
2850
2851         pread: Move AC_LIBOBJ invocations to module description.
2852         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
2853         * modules/pread (configure.ac): ... to here.
2854
2855 2011-05-21  Bruno Haible  <bruno@clisp.org>
2856
2857         posix_spawn*: Move AC_LIBOBJ invocations to module description.
2858         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
2859         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
2860         * modules/posix_spawn (configure.ac): ... to here.
2861         * modules/posix_spawnp (configure.ac): ... and here.
2862
2863 2011-05-21  Bruno Haible  <bruno@clisp.org>
2864
2865         popen: Move AC_LIBOBJ invocations to module description.
2866         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
2867         invocations from here...
2868         * modules/popen (configure.ac): ... to here.
2869
2870 2011-05-21  Bruno Haible  <bruno@clisp.org>
2871
2872         poll: Move AC_LIBOBJ invocations to module description.
2873         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
2874         invocations from here...
2875         * modules/poll (configure.ac): ... to here.
2876
2877 2011-05-21  Bruno Haible  <bruno@clisp.org>
2878
2879         pipe-posix: Move AC_LIBOBJ invocations to module description.
2880         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
2881         * modules/pipe-posix (configure.ac): ... to here.
2882
2883 2011-05-21  Bruno Haible  <bruno@clisp.org>
2884
2885         openat: Respect rules for use of AC_LIBOBJ.
2886         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
2887         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
2888         * modules/openat (configure.ac): ... to here.
2889
2890 2011-05-21  Bruno Haible  <bruno@clisp.org>
2891
2892         obstack-printf*: Move AC_LIBOBJ invocations to module description.
2893         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
2894         invocation from here...
2895         * modules/obstack-printf (configure.ac): ... to here.
2896         * modules/obstack-printf-posix (configure.ac): ... and here.
2897
2898 2011-05-21  Bruno Haible  <bruno@clisp.org>
2899
2900         nl_langinfo: Move AC_LIBOBJ invocations to module description.
2901         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
2902         from here...
2903         * modules/nl_langinfo (configure.ac): ... to here.
2904
2905 2011-05-21  Bruno Haible  <bruno@clisp.org>
2906
2907         nanosleep: Move AC_LIBOBJ invocations to module description.
2908         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
2909         gl_PREREQ_NANOSLEEP invocations from here...
2910         * modules/nanosleep (configure.ac): ... to here.
2911
2912 2011-05-21  Bruno Haible  <bruno@clisp.org>
2913
2914         mountlist: Move AC_LIBOBJ invocations to module description.
2915         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
2916         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
2917         * modules/mountlist (configure.ac): ... to here.
2918
2919 2011-05-21  Bruno Haible  <bruno@clisp.org>
2920
2921         mktime: Respect rules for use of AC_LIBOBJ.
2922         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
2923         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
2924         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
2925         (gl_FUNC_MKTIME_INTERNAL): ... and here...
2926         * modules/mktime (configure.ac): ... to here.
2927         * modules/mktime-internal (configure.ac): ... and here.
2928         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
2929
2930 2011-05-21  Bruno Haible  <bruno@clisp.org>
2931
2932         mkstemps: Move AC_LIBOBJ invocations to module description.
2933         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
2934         here...
2935         * modules/mkstemps (configure.ac): ... to here.
2936
2937 2011-05-21  Bruno Haible  <bruno@clisp.org>
2938
2939         mkstemp: Move AC_LIBOBJ invocations to module description.
2940         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
2941         gl_PREREQ_MKSTEMP invocations from here...
2942         * modules/mkstemp (configure.ac): ... to here.
2943
2944 2011-05-21  Bruno Haible  <bruno@clisp.org>
2945
2946         mkostemps: Move AC_LIBOBJ invocations to module description.
2947         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
2948         here...
2949         * modules/mkostemps (configure.ac): ... to here.
2950
2951 2011-05-21  Bruno Haible  <bruno@clisp.org>
2952
2953         mkostemp: Move AC_LIBOBJ invocations to module description.
2954         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
2955         gl_PREREQ_MKOSTEMP invocations from here...
2956         * modules/mkostemp (configure.ac): ... to here.
2957
2958 2011-05-21  Bruno Haible  <bruno@clisp.org>
2959
2960         mknod: Move AC_LIBOBJ invocations to module description.
2961         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
2962         * modules/mknod (configure.ac): ... to here.
2963
2964 2011-05-21  Bruno Haible  <bruno@clisp.org>
2965
2966         mkfifoat: Move AC_LIBOBJ invocations to module description.
2967         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
2968         here...
2969         * modules/mkfifoat (configure.ac): ... to here.
2970
2971 2011-05-21  Bruno Haible  <bruno@clisp.org>
2972
2973         mkfifo: Respect rules for use of AC_LIBOBJ.
2974         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
2975         here...
2976         * modules/mkfifo (configure.ac): ... to here.
2977
2978 2011-05-21  Bruno Haible  <bruno@clisp.org>
2979
2980         mkdtemp: Move AC_LIBOBJ invocations to module description.
2981         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
2982         invocations from here...
2983         * modules/mkdtemp (configure.ac): ... to here.
2984
2985 2011-05-21  Bruno Haible  <bruno@clisp.org>
2986
2987         mkdir: Move AC_LIBOBJ invocations to module description.
2988         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
2989         * modules/mkdir (configure.ac): ... to here.
2990
2991 2011-05-21  Bruno Haible  <bruno@clisp.org>
2992
2993         memset: Move AC_LIBOBJ invocations to module description.
2994         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
2995         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
2996         here...
2997         * modules/memset (configure.ac): ... to here.
2998
2999 2011-05-21  Bruno Haible  <bruno@clisp.org>
3000
3001         memrchr: Move AC_LIBOBJ invocations to module description.
3002         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
3003         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
3004         here...
3005         * modules/memrchr (configure.ac): ... to here.
3006
3007 2011-05-21  Bruno Haible  <bruno@clisp.org>
3008
3009         mempcpy: Move AC_LIBOBJ invocations to module description.
3010         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
3011         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
3012         here...
3013         * modules/mempcpy (configure.ac): ... to here.
3014
3015 2011-05-21  Bruno Haible  <bruno@clisp.org>
3016
3017         memmove: Move AC_LIBOBJ invocations to module description.
3018         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
3019         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
3020         here...
3021         * modules/memmove (configure.ac): ... to here.
3022
3023 2011-05-21  Bruno Haible  <bruno@clisp.org>
3024
3025         memmem*: Move AC_LIBOBJ invocations to module description.
3026         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
3027         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
3028         here...
3029         (gl_FUNC_MEMMEM): ... and here...
3030         * modules/memmem-simple (configure.ac): ... to here.
3031         * modules/memmem (configure.ac): ... and here.
3032
3033 2011-05-21  Bruno Haible  <bruno@clisp.org>
3034
3035         memcpy: Move AC_LIBOBJ invocations to module description.
3036         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
3037         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
3038         here...
3039         * modules/memcpy (configure.ac): ... to here.
3040
3041 2011-05-21  Bruno Haible  <bruno@clisp.org>
3042
3043         memcmp: Simplify autoconf macro.
3044         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
3045         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
3046         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
3047
3048 2011-05-21  Bruno Haible  <bruno@clisp.org>
3049
3050         memcmp: Move AC_LIBOBJ invocations to module description.
3051         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
3052         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
3053         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
3054         * modules/memcmp (configure.ac): ... to here.
3055         (Depends-on): Update conditions.
3056
3057 2011-05-21  Bruno Haible  <bruno@clisp.org>
3058
3059         memchr: Respect rules for use of AC_LIBOBJ.
3060         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
3061         invocations from here...
3062         * modules/memchr (configure.ac): ... to here.
3063
3064 2011-05-21  Bruno Haible  <bruno@clisp.org>
3065
3066         mbtowc: Move AC_LIBOBJ invocations to module description.
3067         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
3068         invocations from here...
3069         * modules/mbtowc (configure.ac): ... to here.
3070
3071 2011-05-21  Bruno Haible  <bruno@clisp.org>
3072
3073         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
3074         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
3075         gl_PREREQ_MBSRTOWCS invocations from here...
3076         * modules/mbsrtowcs (configure.ac): ... to here.
3077
3078 2011-05-21  Bruno Haible  <bruno@clisp.org>
3079
3080         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
3081         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
3082         gl_PREREQ_MBSNRTOWCS invocations from here...
3083         * modules/mbsnrtowcs (configure.ac): ... to here.
3084
3085 2011-05-21  Bruno Haible  <bruno@clisp.org>
3086
3087         mbsinit: Move AC_LIBOBJ invocations to module description.
3088         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
3089         invocations from here...
3090         * modules/mbsinit (configure.ac): ... to here.
3091
3092 2011-05-21  Bruno Haible  <bruno@clisp.org>
3093
3094         mbrlen: Move AC_LIBOBJ invocations to module description.
3095         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
3096         invocations from here...
3097         * modules/mbrlen (configure.ac): ... to here.
3098
3099 2011-05-21  Bruno Haible  <bruno@clisp.org>
3100
3101         mbrtowc: Respect rules for use of AC_LIBOBJ.
3102         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
3103         invocations from here...
3104         * modules/mbrtowc (configure.ac): ... to here.
3105
3106 2011-05-21  Bruno Haible  <bruno@clisp.org>
3107
3108         malloc-*: Move AC_LIBOBJ invocations to module description.
3109         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
3110         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
3111         AC_LIBOBJ invocations from here...
3112         * modules/malloc-gnu (configure.ac): ... to here.
3113         * modules/malloc-posix (configure.ac): ... and here.
3114
3115 2011-05-21  Bruno Haible  <bruno@clisp.org>
3116
3117         lstat, openat: Respect rules for use of AC_LIBOBJ.
3118         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
3119         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
3120         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
3121         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
3122         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
3123         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
3124         here.
3125         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
3126
3127 2011-05-21  Bruno Haible  <bruno@clisp.org>
3128
3129         lseek: Move AC_LIBOBJ invocations to module description.
3130         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
3131         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
3132         * modules/lseek (configure.ac): ... to here.
3133
3134 2011-05-21  Bruno Haible  <bruno@clisp.org>
3135
3136         linkat: Move AC_LIBOBJ invocations to module description.
3137         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
3138         here...
3139         * modules/linkat (configure.ac): ... to here.
3140
3141 2011-05-21  Bruno Haible  <bruno@clisp.org>
3142
3143         link: Respect rules for use of AC_LIBOBJ.
3144         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
3145         * modules/link (configure.ac): ... to here.
3146
3147 2011-05-21  Bruno Haible  <bruno@clisp.org>
3148
3149         lchown: Move AC_LIBOBJ invocations to module description.
3150         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
3151         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
3152         * modules/lchown (configure.ac): ... to here.
3153
3154 2011-05-21  Bruno Haible  <bruno@clisp.org>
3155
3156         iswctype: Move AC_LIBOBJ invocations to module description.
3157         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
3158         here...
3159         * modules/iswctype (configure.ac): ... to here.
3160
3161 2011-05-21  Bruno Haible  <bruno@clisp.org>
3162
3163         iswblank: Move AC_LIBOBJ invocations to module description.
3164         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
3165         here...
3166         * modules/iswblank (configure.ac): ... to here.
3167
3168 2011-05-21  Bruno Haible  <bruno@clisp.org>
3169
3170         atanl: Move AC_LIBOBJ invocations to module description.
3171         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
3172         * modules/atanl (configure.ac): ... to here.
3173
3174 2011-05-21  Bruno Haible  <bruno@clisp.org>
3175
3176         acosl: Move AC_LIBOBJ invocations to module description.
3177         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
3178         * modules/acosl (configure.ac): ... to here.
3179
3180 2011-05-21  Bruno Haible  <bruno@clisp.org>
3181
3182         asinl: Respect rules for use of AC_LIBOBJ.
3183         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
3184         * modules/asinl (configure.ac): ... to here.
3185
3186 2011-05-21  Bruno Haible  <bruno@clisp.org>
3187
3188         tanl: Move AC_LIBOBJ invocations to module description.
3189         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
3190         * modules/tanl (configure.ac): ... to here.
3191
3192 2011-05-21  Bruno Haible  <bruno@clisp.org>
3193
3194         cosl: Move AC_LIBOBJ invocations to module description.
3195         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
3196         * modules/cosl (configure.ac): ... to here.
3197
3198 2011-05-21  Bruno Haible  <bruno@clisp.org>
3199
3200         sinl: Move AC_LIBOBJ invocations to module description.
3201         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
3202         * modules/sinl (configure.ac): ... to here.
3203
3204 2011-05-21  Bruno Haible  <bruno@clisp.org>
3205
3206         logl: Move AC_LIBOBJ invocations to module description.
3207         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
3208         * modules/logl (configure.ac): ... to here.
3209
3210 2011-05-21  Bruno Haible  <bruno@clisp.org>
3211
3212         expl: Move AC_LIBOBJ invocations to module description.
3213         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
3214         * modules/expl (configure.ac): ... to here.
3215
3216 2011-05-21  Bruno Haible  <bruno@clisp.org>
3217
3218         roundl: Move AC_LIBOBJ invocations to module description.
3219         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
3220         * modules/roundl (configure.ac): ... to here.
3221
3222 2011-05-21  Bruno Haible  <bruno@clisp.org>
3223
3224         round: Move AC_LIBOBJ invocations to module description.
3225         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
3226         * modules/round (configure.ac): ... to here.
3227
3228 2011-05-21  Bruno Haible  <bruno@clisp.org>
3229
3230         roundf: Move AC_LIBOBJ invocations to module description.
3231         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
3232         * modules/roundf (configure.ac): ... to here.
3233
3234 2011-05-21  Bruno Haible  <bruno@clisp.org>
3235
3236         truncl: Move AC_LIBOBJ invocations to module description.
3237         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
3238         * modules/truncl (configure.ac): ... to here.
3239
3240 2011-05-21  Bruno Haible  <bruno@clisp.org>
3241
3242         trunc: Move AC_LIBOBJ invocations to module description.
3243         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
3244         * modules/trunc (configure.ac): ... to here.
3245
3246 2011-05-21  Bruno Haible  <bruno@clisp.org>
3247
3248         truncf: Move AC_LIBOBJ invocations to module description.
3249         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
3250         * modules/truncf (configure.ac): ... to here.
3251
3252 2011-05-21  Bruno Haible  <bruno@clisp.org>
3253
3254         ceill: Move AC_LIBOBJ invocations to module description.
3255         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
3256         * modules/ceill (configure.ac): ... to here.
3257
3258 2011-05-21  Bruno Haible  <bruno@clisp.org>
3259
3260         ceil: Move AC_LIBOBJ invocations to module description.
3261         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
3262         * modules/ceil (configure.ac): ... to here.
3263
3264 2011-05-21  Bruno Haible  <bruno@clisp.org>
3265
3266         ceilf: Move AC_LIBOBJ invocations to module description.
3267         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
3268         * modules/ceilf (configure.ac): ... to here.
3269
3270 2011-05-21  Bruno Haible  <bruno@clisp.org>
3271
3272         floorl: Respect rules for use of AC_LIBOBJ.
3273         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
3274         * modules/floorl (configure.ac): ... to here.
3275
3276 2011-05-21  Bruno Haible  <bruno@clisp.org>
3277
3278         floor: Respect rules for use of AC_LIBOBJ.
3279         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
3280         * modules/floor (configure.ac): ... to here.
3281
3282 2011-05-21  Bruno Haible  <bruno@clisp.org>
3283
3284         floorf: Move AC_LIBOBJ invocations to module description.
3285         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
3286         * modules/floorf (configure.ac): ... to here.
3287
3288 2011-05-20  Bruno Haible  <bruno@clisp.org>
3289
3290         sqrtl: Respect rules for use of AC_LIBOBJ.
3291         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
3292         * modules/sqrtl (configure.ac): ... to here.
3293
3294 2011-05-20  Bruno Haible  <bruno@clisp.org>
3295
3296         ldexpl: Respect rules for use of AC_LIBOBJ.
3297         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
3298         * modules/ldexpl (configure.ac): ... to here.
3299
3300 2011-05-20  Bruno Haible  <bruno@clisp.org>
3301
3302         frexpl*: Respect rules for use of AC_LIBOBJ.
3303         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
3304         invocation from here...
3305         * modules/frexpl (configure.ac): ... to here.
3306         * modules/frexpl-nolibm (configure.ac): ... and here.
3307
3308 2011-05-20  Bruno Haible  <bruno@clisp.org>
3309
3310         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
3311         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
3312         invocation from here...
3313         * modules/frexp (configure.ac): ... to here.
3314         * modules/frexp-nolibm (configure.ac): ... and here.
3315
3316 2011-05-20  Bruno Haible  <bruno@clisp.org>
3317
3318         isnan: Respect rules for use of AC_LIBOBJ.
3319         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
3320         invocations here.
3321         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
3322         REPLACE_ISNAN.
3323         * modules/isnand (configure.ac): Likewise.
3324         * modules/isnanl (configure.ac): Likewise.
3325
3326 2011-05-20  Bruno Haible  <bruno@clisp.org>
3327
3328         isnanl*: Respect rules for use of AC_LIBOBJ.
3329         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
3330         invocation from here...
3331         * modules/isnanl (configure.ac): ... to here.
3332         * modules/isnanl-nolibm (configure.ac): ... and here.
3333
3334 2011-05-20  Bruno Haible  <bruno@clisp.org>
3335
3336         isnand*: Move AC_LIBOBJ invocations to module description.
3337         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
3338         invocation from here...
3339         * modules/isnand (configure.ac): ... to here.
3340         * modules/isnand-nolibm (configure.ac): ... and here.
3341
3342 2011-05-20  Bruno Haible  <bruno@clisp.org>
3343
3344         isnanf*: Move AC_LIBOBJ invocations to module description.
3345         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
3346         invocation from here...
3347         * modules/isnanf (configure.ac): ... to here.
3348         * modules/isnanf-nolibm (configure.ac): ... and here.
3349
3350 2011-05-20  Bruno Haible  <bruno@clisp.org>
3351
3352         isnan*: Separate the AC_LIBOBJ invocations.
3353         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
3354         AC_LIBOBJ invocation.
3355         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
3356         here.
3357         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
3358         AC_LIBOBJ invocation.
3359         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
3360         here.
3361         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
3362         AC_LIBOBJ invocation.
3363         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
3364         here.
3365         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
3366
3367 2011-05-08  Bruno Haible  <bruno@clisp.org>
3368
3369         isinf: Move AC_LIBOBJ invocations to module description.
3370         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
3371         * modules/isinf (configure.ac): ... to here.
3372
3373 2011-05-08  Bruno Haible  <bruno@clisp.org>
3374
3375         isfinite: Move AC_LIBOBJ invocations to module description.
3376         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
3377         * modules/isfinite (configure.ac): ... to here.
3378
3379 2011-05-08  Bruno Haible  <bruno@clisp.org>
3380
3381         isblank: Move AC_LIBOBJ invocations to module description.
3382         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
3383         here...
3384         * modules/isblank (configure.ac): ... to here.
3385
3386 2011-05-08  Bruno Haible  <bruno@clisp.org>
3387
3388         isapipe: Move AC_LIBOBJ invocations to module description.
3389         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
3390         gl_PREREQ_ISAPIPE invocations from here...
3391         * modules/isapipe (configure.ac): ... to here.
3392         (Depends-on): Update condition.
3393
3394 2011-05-08  Bruno Haible  <bruno@clisp.org>
3395
3396         ioctl: Move AC_LIBOBJ invocations to module description.
3397         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
3398         invocations from here...
3399         * modules/ioctl (configure.ac): ... to here.
3400         (Depends-on): Update condition.
3401
3402 2011-05-08  Bruno Haible  <bruno@clisp.org>
3403
3404         imaxdiv: Move AC_LIBOBJ invocations to module description.
3405         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
3406         invocations from here...
3407         * modules/imaxdiv (configure.ac): ... to here.
3408
3409 2011-05-08  Bruno Haible  <bruno@clisp.org>
3410
3411         imaxabs: Move AC_LIBOBJ invocations to module description.
3412         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
3413         invocations from here...
3414         * modules/imaxabs (configure.ac): ... to here.
3415
3416 2011-05-08  Bruno Haible  <bruno@clisp.org>
3417
3418         getaddrinfo: Move AC_LIBOBJ invocations to module description.
3419         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
3420         AC_LIBOBJ invocations from here...
3421         * modules/getaddrinfo (configure.ac): ... to here.
3422         (Depends-on): Add conditions.
3423
3424 2011-05-08  Bruno Haible  <bruno@clisp.org>
3425
3426         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
3427         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
3428         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
3429         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
3430         (gl_PREREQ_INET_PTON): ... from here.
3431         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
3432         gl_PREREQ_INET_PTON here.
3433         (Depends-on): Update condition.
3434
3435 2011-05-08  Bruno Haible  <bruno@clisp.org>
3436
3437         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
3438         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
3439         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
3440         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
3441         (gl_PREREQ_INET_NTOP): ... from here.
3442         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
3443         gl_PREREQ_INET_NTOP here.
3444         (Depends-on): Update condition.
3445
3446 2011-05-08  Bruno Haible  <bruno@clisp.org>
3447
3448         iconv_open: Move AC_LIBOBJ invocations to module description.
3449         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
3450         AC_LIBOBJ invocations from here...
3451         * modules/iconv_open (configure.ac): ... to here.
3452
3453 2011-05-08  Bruno Haible  <bruno@clisp.org>
3454
3455         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
3456         If module 'iconv_open' is among the main modules and module
3457         'iconv_open-utf' is among the tests dependencies, then
3458         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
3459         return the special iconv_t values. Therefore iconv() and iconv_close()
3460         must support these special iconv_t values, already in lib, not only in
3461         tests.
3462         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
3463         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
3464         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
3465         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
3466         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
3467         (Depends-on): Add the dependencies of iconv_open-utf.
3468         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
3469         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
3470         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
3471
3472 2011-05-08  Bruno Haible  <bruno@clisp.org>
3473
3474         group-member: Move AC_LIBOBJ invocations to module description.
3475         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
3476         gl_PREREQ_GROUP_MEMBER invocations from here...
3477         * modules/group-member (configure.ac): ... to here.
3478
3479 2011-05-08  Bruno Haible  <bruno@clisp.org>
3480
3481         grantpt: Move AC_LIBOBJ invocations to module description.
3482         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
3483         invocations from here...
3484         * modules/grantpt (configure.ac): ... to here.
3485
3486 2011-05-08  Bruno Haible  <bruno@clisp.org>
3487
3488         glob: Move AC_LIBOBJ invocations to module description.
3489         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
3490         from here...
3491         * modules/glob (configure.ac): ... to here.
3492
3493 2011-05-08  Bruno Haible  <bruno@clisp.org>
3494
3495         getusershell: Move AC_LIBOBJ invocations to module description.
3496         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
3497         Move AC_LIBOBJ invocation from here...
3498         * modules/getusershell (configure.ac): ... to here.
3499         (Depends-on): Update condition.
3500
3501 2011-05-08  Bruno Haible  <bruno@clisp.org>
3502
3503         gettimeofday: Move AC_LIBOBJ invocations to module description.
3504         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
3505         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
3506         gl_PREREQ_GETTIMEOFDAY invocations from here...
3507         * modules/gettimeofday (configure.ac): ... to here.
3508
3509 2011-05-08  Bruno Haible  <bruno@clisp.org>
3510
3511         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
3512         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
3513         just gl_FUNC_TZSET.
3514         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
3515         (gl_FUNC_TZSET_CLOBBER): Remove actions.
3516         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
3517         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
3518
3519 2011-05-08  Bruno Haible  <bruno@clisp.org>
3520
3521         getsubopt: Move AC_LIBOBJ invocations to module description.
3522         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
3523         gl_PREREQ_GETSUBOPT invocations from here...
3524         * modules/getsubopt (configure.ac): ... to here.
3525
3526 2011-05-08  Bruno Haible  <bruno@clisp.org>
3527
3528         getpass-gnu: Move AC_LIBOBJ invocations to module description.
3529         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
3530         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
3531         * modules/getpass-gnu (configure.ac): ... to here.
3532
3533 2011-05-08  Bruno Haible  <bruno@clisp.org>
3534
3535         getpass: Move AC_LIBOBJ invocations to module description.
3536         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
3537         gl_PREREQ_GETPASS invocations from here...
3538         * modules/getpass (configure.ac): ... to here.
3539
3540 2011-05-08  Bruno Haible  <bruno@clisp.org>
3541
3542         getpagesize: Move AC_LIBOBJ invocations to module description.
3543         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
3544         from here...
3545         * modules/getpagesize (configure.ac): ... to here.
3546
3547 2011-05-08  Bruno Haible  <bruno@clisp.org>
3548
3549         getopt: Move AC_LIBOBJ invocations to module description.
3550         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
3551         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
3552         invocations from here...
3553         * modules/getopt-gnu (configure.ac): ... to here.
3554         * modules/getopt-posix (configure.ac): ... and here.
3555         (Depends-on): Update condition.
3556
3557 2011-05-08  Bruno Haible  <bruno@clisp.org>
3558
3559         getopt, argp: Respect rules for use of AC_LIBOBJ.
3560         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
3561         (gl_REPLACE_GETOPT_ALWAYS): New macro.
3562         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
3563         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
3564
3565 2011-05-08  Bruno Haible  <bruno@clisp.org>
3566
3567         getlogin_r: Move AC_LIBOBJ invocations to module description.
3568         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
3569         gl_PREREQ_GETLOGIN_R invocations from here...
3570         * modules/getlogin_r (configure.ac): ... to here.
3571
3572 2011-05-08  Bruno Haible  <bruno@clisp.org>
3573
3574         getlogin: Move AC_LIBOBJ invocations to module description.
3575         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
3576         here...
3577         * modules/getlogin (configure.ac): ... to here.
3578
3579 2011-05-08  Bruno Haible  <bruno@clisp.org>
3580
3581         getloadavg: Move AC_LIBOBJ invocations to module description.
3582         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
3583         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
3584         * modules/getloadavg (configure.ac): ... to here.
3585
3586 2011-05-08  Bruno Haible  <bruno@clisp.org>
3587
3588         gethrxtime: Move AC_LIBOBJ invocations to module description.
3589         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
3590         LIB_GETHRXTIME from here...
3591         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
3592         invocations from here...
3593         * modules/gethrxtime (configure.ac): ... to here.
3594
3595 2011-05-08  Bruno Haible  <bruno@clisp.org>
3596
3597         gethostname: Move AC_LIBOBJ invocations to module description.
3598         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
3599         gl_PREREQ_GETHOSTNAME invocations from here...
3600         * modules/gethostname (configure.ac): ... to here.
3601
3602 2011-05-08  Bruno Haible  <bruno@clisp.org>
3603
3604         getgroups: Move AC_LIBOBJ invocations to module description.
3605         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
3606         here...
3607         * modules/getgroups (configure.ac): ... to here.
3608
3609 2011-05-08  Bruno Haible  <bruno@clisp.org>
3610
3611         getdtablesize: Move AC_LIBOBJ invocations to module description.
3612         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
3613         invocation from here...
3614         * modules/getdtablesize (configure.ac): ... to here.
3615
3616 2011-05-08  Bruno Haible  <bruno@clisp.org>
3617
3618         getdomainname: Move AC_LIBOBJ invocations to module description.
3619         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
3620         gl_PREREQ_GETDOMAINNAME invocations from here...
3621         * modules/getdomainname (configure.ac): ... to here.
3622
3623 2011-05-08  Bruno Haible  <bruno@clisp.org>
3624
3625         getline: Move AC_LIBOBJ invocations to module description.
3626         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
3627         invocations from here...
3628         * modules/getline (configure.ac): ... to here.
3629
3630 2011-05-08  Bruno Haible  <bruno@clisp.org>
3631
3632         getline: Simplify.
3633         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
3634         It's already handled through the module dependency.
3635
3636 2011-05-08  Bruno Haible  <bruno@clisp.org>
3637
3638         getdelim: Move AC_LIBOBJ invocations to module description.
3639         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
3640         and gl_PREREQ_GETDELIM invocations from here...
3641         * modules/getdelim (configure.ac): ... to here.
3642         (Depends-on): Fix condition.
3643
3644 2011-05-08  Bruno Haible  <bruno@clisp.org>
3645
3646         getcwd: Move AC_LIBOBJ invocations to module description.
3647         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
3648         invocations from here...
3649         * modules/getcwd (configure.ac): ... to here.
3650
3651 2011-05-08  Bruno Haible  <bruno@clisp.org>
3652
3653         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
3654         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
3655         here...
3656         * modules/getcwd-lgpl (configure.ac): ... to here.
3657
3658 2011-05-07  Bruno Haible  <bruno@clisp.org>
3659
3660         crypto/gc: Move AC_LIBOBJ invocations to module description.
3661         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
3662         * modules/crypto/gc (configure.ac): ... to here.
3663
3664 2011-05-07  Bruno Haible  <bruno@clisp.org>
3665
3666         fwriting: Move AC_LIBOBJ invocations to module description.
3667         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
3668         here...
3669         * modules/fwriting (configure.ac): ... to here.
3670
3671 2011-05-07  Bruno Haible  <bruno@clisp.org>
3672
3673         fwritable: Move AC_LIBOBJ invocations to module description.
3674         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
3675         here...
3676         * modules/fwritable (configure.ac): ... to here.
3677
3678 2011-05-07  Bruno Haible  <bruno@clisp.org>
3679
3680         futimens: Move AC_LIBOBJ invocations to module description.
3681         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
3682         here...
3683         * modules/futimens (configure.ac): ... to here.
3684
3685 2011-05-07  Bruno Haible  <bruno@clisp.org>
3686
3687         ftruncate: Move AC_LIBOBJ invocations to module description.
3688         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
3689         gl_PREREQ_FTRUNCATE invocations from here...
3690         * modules/ftruncate (configure.ac): ... to here.
3691
3692 2011-05-07  Bruno Haible  <bruno@clisp.org>
3693
3694         fsync: Move AC_LIBOBJ invocations to module description.
3695         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
3696         invocations from here...
3697         * modules/fsync (configure.ac): ... to here.
3698
3699 2011-05-07  Bruno Haible  <bruno@clisp.org>
3700
3701         fsusage: Move AC_LIBOBJ invocations to module description.
3702         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
3703         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
3704         * modules/fsusage (configure.ac): ... to here.
3705
3706 2011-05-07  Bruno Haible  <bruno@clisp.org>
3707
3708         freopen: Move AC_LIBOBJ invocations to module description.
3709         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
3710         invocations from here...
3711         * modules/freopen (configure.ac): ... to here.
3712
3713 2011-05-07  Bruno Haible  <bruno@clisp.org>
3714
3715         free: Move AC_LIBOBJ invocations to module description.
3716         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
3717         invocations from here...
3718         * modules/free (configure.ac): ... to here.
3719
3720 2011-05-07  Bruno Haible  <bruno@clisp.org>
3721
3722         freadable: Move AC_LIBOBJ invocations to module description.
3723         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
3724         here...
3725         * modules/freadable (configure.ac): ... to here.
3726
3727 2011-05-07  Bruno Haible  <bruno@clisp.org>
3728
3729         fpurge: Move AC_LIBOBJ invocations to module description.
3730         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
3731         invocations from here...
3732         * modules/fpurge (configure.ac): ... to here.
3733
3734 2011-05-07  Bruno Haible  <bruno@clisp.org>
3735
3736         fpending: Move AC_LIBOBJ invocations to module description.
3737         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
3738         gl_FUNC_FPENDING.
3739         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
3740         invocations from here...
3741         * modules/fpending (configure.ac): ... to here.
3742
3743 2011-05-07  Bruno Haible  <bruno@clisp.org>
3744
3745         fopen: Move AC_LIBOBJ invocations to module description.
3746         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
3747         invocations from here...
3748         * modules/fopen (configure.ac): ... to here.
3749
3750 2011-05-07  Bruno Haible  <bruno@clisp.org>
3751
3752         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
3753         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
3754         gl_FUNC_FNMATCH_POSIX.
3755         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
3756         invocations from here...
3757         * modules/fnmatch (configure.ac): ... to here.
3758         * modules/fnmatch-gnu (configure.ac): ... and here.
3759
3760 2011-05-07  Bruno Haible  <bruno@clisp.org>
3761
3762         flock: Move AC_LIBOBJ invocations to module description.
3763         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
3764         invocations from here...
3765         * modules/flock (configure.ac): ... to here.
3766
3767 2011-05-07  Bruno Haible  <bruno@clisp.org>
3768
3769         fileblocks: Move AC_LIBOBJ invocations to module description.
3770         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
3771         gl_PREREQ_FILEBLOCKS invocations from here...
3772         * modules/fileblocks (configure.ac): ... to here.
3773
3774 2011-05-06  Bruno Haible  <bruno@clisp.org>
3775
3776         fflush: Move AC_LIBOBJ invocations to module description.
3777         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
3778         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
3779         invocations from here...
3780         * modules/fflush (configure.ac): ... to here.
3781
3782 2011-05-06  Bruno Haible  <bruno@clisp.org>
3783
3784         fdopendir: Move AC_LIBOBJ invocations to module description.
3785         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
3786         here...
3787         * modules/fdopendir (configure.ac): ... to here.
3788         (Depends-on): Improve conditions.
3789
3790 2011-05-06  Bruno Haible  <bruno@clisp.org>
3791
3792         _Exit: Move AC_LIBOBJ invocations to module description.
3793         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
3794         invocations from here...
3795         * modules/_Exit (configure.ac): ... to here.
3796
3797 2011-05-21  Bruno Haible  <bruno@clisp.org>
3798
3799         euidaccess: Respect rules for use of AC_LIBOBJ.
3800         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
3801         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
3802         from here...
3803         * modules/euidaccess (configure.ac): ... to here.
3804
3805 2011-05-06  Bruno Haible  <bruno@clisp.org>
3806
3807         error: Move AC_LIBOBJ invocations to module description.
3808         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
3809         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
3810         invocations from here...
3811         * modules/error (configure.ac): ... to here.
3812
3813 2011-05-06  Bruno Haible  <bruno@clisp.org>
3814
3815         duplocale: Move AC_LIBOBJ invocations to module description.
3816         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
3817         gl_PREREQ_DUPLOCALE invocations from here...
3818         * modules/duplocale (configure.ac): ... to here.
3819
3820 2011-05-05  Bruno Haible  <bruno@clisp.org>
3821
3822         dirfd: Move AC_LIBOBJ invocations to module description.
3823         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
3824         gl_FUNC_DIRFD.
3825         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
3826         here...
3827         * modules/dirfd (configure.ac): ... to here.
3828         (Depends-on): Fix condition.
3829
3830 2011-05-05  Bruno Haible  <bruno@clisp.org>
3831
3832         chown: Respect rules for use of AC_LIBOBJ.
3833         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
3834         * modules/chown (configure.ac): ... to here.
3835
3836 2011-05-05  Bruno Haible  <bruno@clisp.org>
3837
3838         chdir-long: Move AC_LIBOBJ invocations to module description.
3839         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
3840         gl_PREREQ_CHDIR_LONG invocations from here...
3841         * modules/chdir-long (configure.ac): ... to here.
3842
3843 2011-05-05  Bruno Haible  <bruno@clisp.org>
3844
3845         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
3846         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
3847         from here...
3848         * modules/canonicalize-lgpl (configure.ac): ... to here.
3849
3850 2011-05-05  Bruno Haible  <bruno@clisp.org>
3851
3852         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
3853         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
3854         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
3855         REPLACE_CALLOC.
3856         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
3857         * modules/calloc-gnu (configure.ac): Likewise.
3858
3859 2011-05-05  Bruno Haible  <bruno@clisp.org>
3860
3861         btowc: Move AC_LIBOBJ invocations to module description.
3862         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
3863         invocations from here...
3864         * modules/btowc (configure.ac): ... to here.
3865
3866 2011-05-21  Bruno Haible  <bruno@clisp.org>
3867
3868         atexit: Move AC_LIBOBJ invocations to module description.
3869         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
3870         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
3871         here...
3872         * modules/atexit (configure.ac): ... to here.
3873
3874 2011-05-05  Bruno Haible  <bruno@clisp.org>
3875
3876         atoll: Move AC_LIBOBJ invocations to module description.
3877         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
3878         invocations from here...
3879         * modules/atoll (configure.ac): ... to here.
3880
3881 2011-05-05  Bruno Haible  <bruno@clisp.org>
3882
3883         argz: Move AC_LIBOBJ invocations to module description.
3884         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
3885         * modules/argz (configure.ac): ... to here.
3886
3887 2011-05-05  Bruno Haible  <bruno@clisp.org>
3888
3889         alphasort: Move AC_LIBOBJ invocations to module description.
3890         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
3891         gl_PREREQ_ALPHASORT invocations from here...
3892         * modules/alphasort (configure.ac): ... to here.
3893
3894 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
3895
3896         verify: new macro verify_expr; verify_true deprecated
3897         * NEWS: Mention this.
3898         * doc/verify.texi (Compile-time Assertions): Document this.
3899         * lib/verify.h (verify_true): Deprecate.
3900         (verify_expr): New macro.
3901         * tests/test-verify.c (function): Test verify_expr.
3902
3903 2011-06-14  Jim Meyering  <meyering@redhat.com>
3904
3905         init.sh: give more portable redirection-related advice in a comment
3906         * tests/init.sh (stderr_fileno_): Update the advice in comments.
3907         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
3908         for lots of discussion.  Stefano Lattarini suggested the solution
3909         of putting "9>&2" after the command.  Reported by Bruno Haible.
3910
3911 2011-06-13  Bruno Haible  <bruno@clisp.org>
3912
3913         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
3914         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
3915         'none'.
3916
3917 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
3918
3919         ftoastr: use strtof only if HAVE_STRTOF
3920         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
3921         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
3922         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
3923         * modules/ftoastr (configure.ac): Check for strtof.
3924
3925 2011-06-13  Bruno Haible  <bruno@clisp.org>
3926
3927         gnulib-tool: Addendum to 2011-06-08 commit.
3928         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
3929         and --witness-c-macro have been given, augment AM_CPPFLAGS.
3930
3931 2011-06-13  Bruno Haible  <bruno@clisp.org>
3932
3933         fseeko: Provide a non-inline replacement of fseek().
3934         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
3935         * modules/fseeko (Depends-on): Add fseek.
3936         * modules/fseek (License): Change to LGPLv2+.
3937
3938 2011-06-13  Bruno Haible  <bruno@clisp.org>
3939
3940         ftello: Provide a non-inline replacement of ftell().
3941         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
3942         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
3943         not have ftello() (such as on mingw).
3944         * modules/ftello (Depends-on): Add ftell.
3945         * modules/ftell (License): Change to LGPLv2+.
3946
3947 2011-05-07  Bruno Haible  <bruno@clisp.org>
3948
3949         ftell: Move AC_LIBOBJ invocations to module description.
3950         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
3951         * modules/ftell (configure.ac): ... to here.
3952
3953 2011-05-07  Bruno Haible  <bruno@clisp.org>
3954
3955         ftello: Respect rules for use of AC_LIBOBJ.
3956         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
3957         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
3958         here...
3959         * modules/ftello (configure.ac): ... to here.
3960
3961 2011-05-07  Bruno Haible  <bruno@clisp.org>
3962
3963         fseeko: Simplify.
3964         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
3965         (gl_FUNC_FSEEKO): Inline it here.
3966
3967 2011-05-07  Bruno Haible  <bruno@clisp.org>
3968
3969         fseek: Move AC_LIBOBJ invocations to module description.
3970         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
3971         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
3972         * modules/fseek (configure.ac): ... to here.
3973
3974 2011-05-07  Bruno Haible  <bruno@clisp.org>
3975
3976         fseek: Respect rules for use of AC_LIBOBJ.
3977         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
3978         here...
3979         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
3980
3981 2011-05-07  Bruno Haible  <bruno@clisp.org>
3982
3983         fseeko: Respect rules for use of AC_LIBOBJ.
3984         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
3985         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
3986         here...
3987         * modules/fseeko (configure.ac): ... to here.
3988
3989 2011-06-13  Bruno Haible  <bruno@clisp.org>
3990
3991         gnulib-tool: Allow comments in the 'Depends-on' section.
3992         * doc/gnulib.texi (Module description): Mention comment syntax in the
3993         Depends-on section.
3994         * gnulib-tool (func_get_dependencies): Filter out comment lines.
3995
3996 2011-06-13  Bruno Haible  <bruno@clisp.org>
3997
3998         file-set.h: guard __attibute__ use, now that it's not always defined
3999         * lib/file-set.h (record_file): Use __attribute__ only with compiler
4000         versions that support it.  This fixes a coreutils build failure with
4001         the vendor cc on HP-UX 11.31.
4002
4003 2011-06-12  Bruno Haible  <bruno@clisp.org>
4004
4005         acl: Add support for HP-UX >= 11.11 JFS ACLs.
4006         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
4007         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
4008         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
4009         (acl, aclsort): New declarations.
4010         (aclv_nontrivial): New declaration.
4011         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
4012         (file_has_acl): Read also the second kind of HP-UX ACLs.
4013         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
4014         kind of HP-UX ACLs if the first kind fails.
4015         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
4016         second kind of HP-UX ACLs.
4017         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
4018         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
4019         agree.
4020         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
4021         hpuxjfs.
4022         Handle hpuxjfs.
4023         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
4024         hpuxjfs.
4025         Handle hpuxjfs.
4026         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
4027         (func_test_same_acls): Use both lsacl and getacl.
4028         Handle hpuxjfs.
4029         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
4030         (func_test_same_acls): Use both lsacl and getacl.
4031         Handle hpuxjfs.
4032
4033 2011-06-12  Bruno Haible  <bruno@clisp.org>
4034
4035         acl: Complete the 2010-08-10 fix.
4036         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
4037         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
4038         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
4039         explicitly.
4040         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
4041         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
4042
4043 2011-06-12  Bruno Haible  <bruno@clisp.org>
4044
4045         spawn-pipe tests: Comments.
4046         * tests/test-spawn-pipe-child.c (main): Update comment.
4047         Reported by James Youngman <jay@gnu.org>.
4048
4049 2011-06-11  James Youngman  <jay@gnu.org>
4050
4051         New module 'stat-size'.
4052         * modules/stat-size: New module.  Provides macros for accessing
4053         file size information in instances of struct stat.  Depends on the
4054         fileblocks module because it calls st_blocks.
4055         * lib/stat-size.h: New file, adapted from coreutils' system.h.
4056         * doc/gnulib.texi: Include stat-size.texi.
4057         * doc/stat-size.texi: Documentation for this module.
4058         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
4059         * m4/fileblocks.m4: Mention that stat-size depends on the call to
4060         AC_STRUCT_ST_BLOCKS.
4061
4062 2011-06-09  Bruno Haible  <bruno@clisp.org>
4063
4064         thread: Support pthreads-win32.
4065         * lib/glthread/thread.h (gl_thread_self): Define differently on
4066         pthreads-win32.
4067         (gl_null_thread): New declaration.
4068         (gl_thread_self_pointer): New macro.
4069         * lib/glthread/thread.c (gl_null_thread): New constant.
4070         * tests/test-lock.c: Use gl_thread_self_pointer instead of
4071         gl_thread_self.
4072         * tests/test-tls.c: Likewise.
4073         Suggested by Paul Eggert. Reported by Eric Blake.
4074
4075 2011-06-09  Bruno Haible  <bruno@clisp.org>
4076
4077         thread: Fix confusion between NULL and 0.
4078         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
4079         Reported by Paul Eggert.
4080
4081 2011-06-09  Bruno Haible  <bruno@clisp.org>
4082
4083         spawn-pipe tests: Avoid test failure on HP-UX 11.
4084         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
4085         is closed.
4086
4087 2011-06-09  Bruno Haible  <bruno@clisp.org>
4088
4089         acl tests: Fix compilation error on HP-UX 11.
4090         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
4091
4092 2011-06-09  Bruno Haible  <bruno@clisp.org>
4093
4094         rmdir: Avoid test failure on HP-UX 10.20.
4095         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
4096         EEXIST.
4097
4098 2011-06-08  Eric Blake  <eblake@redhat.com>
4099
4100         perror: fix test on mingw
4101         * modules/perror-tests (Depends-on): Add dup2.
4102
4103         strerror_r-posix: fix on MacOS
4104         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
4105         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
4106         logic bug.
4107         * lib/strerror_r.c (strerror_r): Fix the bug.
4108         * lib/strerror.c (strerror): Likewise.
4109         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
4110         problem.
4111         * doc/posix-functions/strerror.texi (strerror): Likewise.
4112         * doc/posix-functions/perror.texi (perror): Likewise.
4113         * tests/test-strerror.c (main): Enhance test.
4114         * tests/test-strerror_r.c (main): Likewise.
4115
4116 2011-06-08  Bruno Haible  <bruno@clisp.org>
4117
4118         gnulib-tool: Better isolation between different gnulib-tool invocations.
4119         * gnulib-tool: New option --witness-c-macro.
4120         (witness_c_macro): New variable.
4121         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
4122         AM_CPPFLAGS define it as a C macro.
4123         (func_emit_tests_Makefile_am): Likewise.
4124         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
4125         read it from there.
4126         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
4127         m4_define, not AC_DEFUN.
4128         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
4129         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
4130         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
4131         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
4132         s|...|...|, to substitute the values of the GNULIB_* module indicator
4133         variables.
4134         * modules/dirent (Makefile.am): Likewise.
4135         * modules/fcntl-h (Makefile.am): Likewise.
4136         * modules/iconv-h (Makefile.am): Likewise.
4137         * modules/langinfo (Makefile.am): Likewise.
4138         * modules/locale (Makefile.am): Likewise.
4139         * modules/math (Makefile.am): Likewise.
4140         * modules/netdb (Makefile.am): Likewise.
4141         * modules/poll-h (Makefile.am): Likewise.
4142         * modules/pty (Makefile.am): Likewise.
4143         * modules/search (Makefile.am): Likewise.
4144         * modules/signal (Makefile.am): Likewise.
4145         * modules/spawn (Makefile.am): Likewise.
4146         * modules/stdio (Makefile.am): Likewise.
4147         * modules/stdlib (Makefile.am): Likewise.
4148         * modules/string (Makefile.am): Likewise.
4149         * modules/sys_ioctl (Makefile.am): Likewise.
4150         * modules/sys_select (Makefile.am): Likewise.
4151         * modules/sys_socket (Makefile.am): Likewise.
4152         * modules/sys_stat (Makefile.am): Likewise.
4153         * modules/sys_times (Makefile.am): Likewise.
4154         * modules/sys_utsname (Makefile.am): Likewise.
4155         * modules/sys_wait (Makefile.am): Likewise.
4156         * modules/termios (Makefile.am): Likewise.
4157         * modules/time (Makefile.am): Likewise.
4158         * modules/unistd (Makefile.am): Likewise.
4159         * modules/wchar (Makefile.am): Likewise.
4160
4161 2011-06-08  Eric Blake  <eblake@redhat.com>
4162
4163         strerror: simplify replacement
4164         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
4165         * modules/strerror (configure.ac): No prereqs needed here...
4166         * modules/strerror-override (configure.ac): ...but this needs it.
4167         (Files): Add file for needed prereq macro.
4168
4169 2011-06-08  Bruno Haible  <bruno@clisp.org>
4170
4171         strerror_r-posix: Tweaks.
4172         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
4173         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
4174         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
4175         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
4176         (gl_FUNC_STRERROR_R): ... to here.
4177         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
4178
4179 2011-06-07  Eric Blake  <eblake@redhat.com>
4180
4181         perror: document fixed bugs
4182         * doc/posix-functions/perror.texi (perror): Document recent
4183         patches.
4184
4185 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
4186
4187         stat-time: get_stat_birthtime failure is better-defined
4188         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
4189         return a timestamp whose tv_sec and tv_nsec values are both -1.
4190         Previously, the spec said only that the tv_nsec value was negative.
4191         This upward-compatible change simplifies GNU tar a bit.
4192
4193 2011-06-07  Eric Blake  <eblake@redhat.com>
4194
4195         strerror_r-posix: work around cygwin 1.7.9
4196         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
4197         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
4198         bug without replacing strerror_r.
4199         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
4200         strerror_r is buggy, but without requiring strerror_r compilation.
4201         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
4202
4203         test-perror: relax test to ignore cygwin bug
4204         * tests/test-perror2.c (main): Relax test on requiring detection
4205         of stream errors, and use unbuffered stream.
4206         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
4207         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
4208         * doc/posix-functions/fputc.texi (fputc): Likewise.
4209         * doc/posix-functions/fputs.texi (fputs): Likewise.
4210         * doc/posix-functions/fputws.texi (fputws): Likewise.
4211         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
4212         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
4213         * doc/posix-functions/getopt.texi (getopt): Likewise.
4214         * doc/posix-functions/perror.texi (perror): Likewise.
4215         * doc/posix-functions/printf.texi (printf): Likewise.
4216         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
4217         * doc/posix-functions/psignal.texi (psignal): Likewise.
4218         * doc/posix-functions/putc.texi (putc): Likewise.
4219         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
4220         Likewise.
4221         * doc/posix-functions/putchar.texi (putchar): Likewise.
4222         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
4223         Likewise.
4224         * doc/posix-functions/puts.texi (puts): Likewise.
4225         * doc/posix-functions/putwc.texi (putwc): Likewise.
4226         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
4227         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
4228         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
4229         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
4230         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
4231         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
4232         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
4233         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
4234
4235 2011-05-22  Bruno Haible  <bruno@clisp.org>
4236
4237         strerror: Move AC_LIBOBJ invocations to module description.
4238         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
4239         gl_PREREQ_STRERROR invocations from here...
4240         * modules/strerror (configure.ac): ... to here.
4241
4242 2011-05-21  Bruno Haible  <bruno@clisp.org>
4243
4244         perror: Use common idiom.
4245         * modules/perror (configure.ac): Reorder statements.
4246
4247 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
4248
4249         tests: fix usage message in 'mktempd_'
4250         * tests/init.sh (mktempd_): In the usage message, use literal
4251         'mktempd_', not '$ME' (which is even undefined), as the name of
4252         the subroutine.
4253
4254 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
4255
4256         tests init: new function 'fatal_', for hard errors
4257         Before this patch, the only way offered by tests/init.sh to
4258         properly signal a hard error was the `framework_failure_'
4259         function.  But the error message issued by that function,
4260         as its name would suggest, refers to a set-up failure in the
4261         testsuite, while hard errors can obviously also be due to
4262         other reasons.  The best way to fix this inconsistency is to
4263         introduce a new function with a more general error message.
4264         * tests/init.sh (fatal_): New function.
4265
4266 2011-06-06  Eric Blake  <eblake@redhat.com>
4267
4268         canonicalize-lgpl: use common idiom
4269         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
4270         over newer POSIX -Rf.
4271         Reported by Bruno Haible.
4272
4273         canonicalize-lgpl: work around AIX realpath bug
4274         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
4275         * doc/posix-functions/realpath.texi (realpath): Document it.
4276         Reported by Bruno Haible.
4277
4278         strerror: work around FreeBSD bug
4279         * lib/strerror.c (strerror): Special case 0.
4280         Reported by Bruno Haible.
4281
4282         strerror-override: avoid bloating errno module
4283         * modules/errno (Files, configure.ac): Move replacement strings...
4284         * modules/strerror-override: ...to new module.
4285         * modules/strerror (Depends-on): Add strerror-override.
4286         * modules/strerror_r-posix (Depends-on): Likewise.
4287         * MODULES.html.sh: Document new module.
4288         Reported by Bruno Haible.
4289
4290 2011-06-06  Bruno Haible  <bruno@clisp.org>
4291
4292         spawn-pipe tests: Rename program.
4293         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
4294         * tests/test-spawn-pipe-child.c: Update comment.
4295         * tests/test-spawn-pipe.sh: Update.
4296         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
4297
4298         spawn-pipe tests: Link the child program only against libc.
4299         * tests/test-spawn-pipe-child.c: New file, extracted from
4300         tests/test-spawn-pipe.c.
4301         (main): Expect only one argument.
4302         (is_open): New function, copied from tests/test-pipe.c.
4303         * tests/test-spawn-pipe.c: Don't include <errno.h>.
4304         (child_main): Remove function.
4305         (test_pipe): Pass only one argument to the child program.
4306         (main): Remove child process code. Expect the child program's name as
4307         first argument.
4308         * tests/test-spawn-pipe.sh: Pass the child program's name as first
4309         argument.
4310         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
4311         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
4312         test-spawn-pipe-child against no libraries.
4313
4314 2011-06-06  Bruno Haible  <bruno@clisp.org>
4315
4316         careadlinkat: Avoid mismatch between ssize_t and int.
4317         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
4318         * lib/careadlinkat.c (careadlinkatcwd): Define always.
4319
4320 2011-06-06  Jim Meyering  <meyering@redhat.com>
4321
4322         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
4323         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
4324         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
4325
4326 2011-06-05  Bruno Haible  <bruno@clisp.org>
4327
4328         ansi-c++-opt: Interoperability with libtool.
4329         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
4330         set the variable to "no", not to ":".
4331         * NEWS: Mention the change.
4332
4333 2011-06-05  Bruno Haible  <bruno@clisp.org>
4334
4335         acl: Fix test failure on AIX 7.
4336         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
4337         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
4338
4339 2011-06-05  Bruno Haible  <bruno@clisp.org>
4340
4341         pipe-filter-ii: Fix test failure on AIX and IRIX.
4342         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
4343         with EAGAIN, retry with a smaller buffer size.
4344
4345 2011-06-05  Bruno Haible  <bruno@clisp.org>
4346
4347         localename: Fix link dependencies.
4348         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
4349         * modules/localename-tests (Makefile.am): Link test-localename with
4350         $(LIBTHREAD).
4351
4352 2011-06-05  Bruno Haible  <bruno@clisp.org>
4353
4354         error: Avoid gcc warning.
4355         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
4356
4357 2011-06-05  Bruno Haible  <bruno@clisp.org>
4358
4359         unsetenv: Avoid gcc warning.
4360         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
4361
4362 2011-06-05  Bruno Haible  <bruno@clisp.org>
4363
4364         setenv: Avoid gcc warning.
4365         * lib/setenv.c (setenv): Provide declaration if system lacks it.
4366
4367 2011-06-05  Bruno Haible  <bruno@clisp.org>
4368
4369         sys_select: Ensure memset is declared also on AIX 7.
4370         * lib/sys_select.in.h: Include <string.h> also on AIX.
4371         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
4372         self-contained also on AIX 7.1.
4373
4374 2011-06-04  Jim Meyering  <meyering@redhat.com>
4375
4376         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
4377         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
4378         function name, "error".
4379         (_gl_translatable_diag_func_re): New configurable variable.
4380
4381 2011-06-04  Bruno Haible  <bruno@clisp.org>
4382
4383         getopt: Avoid gcc warning.
4384         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
4385
4386 2011-06-04  Bruno Haible  <bruno@clisp.org>
4387
4388         strerror_r: Fix comments.
4389         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
4390         commit.
4391
4392 2011-06-04  Bruno Haible  <bruno@clisp.org>
4393
4394         perror: Fix compilation error.
4395         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
4396         Undefine fprintf, not sprintf.
4397         * modules/perror (Depends-on): Remove intprops, verify.
4398
4399 2011-06-04  Bruno Haible  <bruno@clisp.org>
4400
4401         setlocale: Enable replacement on Cygwin 1.5.
4402         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
4403         Cygwin 1.5.x.
4404         * doc/posix-functions/setlocale.texi: Mention that the problem with the
4405         LC_CTYPE category also exists on Cygwin 1.5.x.
4406
4407 2011-06-04  Bruno Haible  <bruno@clisp.org>
4408
4409         strerror-override: Don't disable symbol renamings.
4410         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
4411         * lib/strerror-override.c: Include config.h.
4412         (strerror_override): Don't undefine.
4413
4414 2011-06-03  Bruno Haible  <bruno@clisp.org>
4415
4416         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
4417         * lib/localename.h: Update copyright header.
4418         * lib/localename.c: Likewise.
4419         * lib/relocatable.h: Likewise.
4420         * lib/relocatable.c: Likewise.
4421
4422 2011-06-02  Bruno Haible  <bruno@clisp.org>
4423
4424         doc: Fix a module name.
4425         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
4426
4427 2011-06-02  Bruno Haible  <bruno@clisp.org>
4428
4429         pipe2: Remove dependency on 'nonblocking' module.
4430         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
4431         O_NONBLOCK is defined by gnulib.
4432         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
4433         is zero.
4434         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
4435         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
4436         defined by gnulib.
4437         (get_nonblocking_flag): New function.
4438         (main): Test O_NONBLOCK flag only if it is nonzero.
4439         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
4440
4441 2011-06-03  Jim Meyering  <meyering@redhat.com>
4442
4443         maint: three new prohibit-header-without-use rules
4444         Prohibit use of cloexec.h, posixver.h, same.h without use.
4445         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
4446         (sc_prohibit_posixver_without_use): Likewise.
4447         (sc_prohibit_same_without_use): Likewise.
4448
4449 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
4450
4451         allocator: 'die' routine is now given requested size
4452         * lib/allocator.h (struct allocator.die): New size arg.
4453         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
4454         If the actual problem is an ssize_t limitation, not a size_t or
4455         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
4456
4457 2011-06-01  Eric Blake  <eblake@redhat.com>
4458
4459         strerror: drop strerror_r dependency
4460         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
4461         * lib/strerror-override.c (strerror_override): ...to new file.
4462         * lib/strerror-override.h: Add prototype.
4463         * lib/strerror-impl.h: Delete.
4464         * lib/strerror.c (strerror): New implementation.
4465         * modules/errno (Files): Add new files.
4466         (configure.ac): Compile new file as appropriate.
4467         * modules/strerror (Files): Drop unused file.
4468         (Depends-on): Drop strerror_r-posix.
4469         * MODULES.html.sh: Document strerror_r-posix.
4470         Requested by Sam Steingold.
4471
4472         perror: call strerror_r directly
4473         * modules/perror (Files): Drop strerror-impl.h.
4474         * lib/perror.c (perror): Use our own stack buffer, rather than
4475         calling a wrapper that uses static storage.
4476         * doc/posix-functions/perror.texi (perror): Document a limitation
4477         of our replacement.
4478
4479         strerror_r: fix includes for FreeBSD
4480         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
4481         since we use abort on some platforms.
4482         Reported by Matthias Bolte.
4483
4484 2011-05-31  Bruno Haible  <bruno@clisp.org>
4485
4486         Fix link errors in tests: openat-die uses gettext-h.
4487         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
4488         against $(LIBINTL).
4489         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
4490         against $(LIBINTL).
4491         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
4492         $(LIBINTL).
4493         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
4494         against $(LIBINTL).
4495         * modules/linkat-tests (Makefile.am): Link test-linkat against
4496         $(LIBINTL).
4497         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
4498         $(LIBINTL).
4499         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
4500         against $(LIBINTL).
4501         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
4502         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
4503         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
4504         $(LIBINTL).
4505         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
4506         $(LIBINTL).
4507         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
4508         $(LIBINTL).
4509         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4510
4511 2011-05-31  Bruno Haible  <bruno@clisp.org>
4512
4513         Fix link errors in tests: wait-process uses gettext-h.
4514         * modules/nonblocking-pipe-tests (Makefile.am): Set
4515         test_nonblocking_pipe_main_LDADD.
4516         * modules/nonblocking-socket-tests (Makefile.am): Link
4517         test-nonblocking-socket-main against $(LIBINTL).
4518         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4519
4520 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
4521
4522         assert-h: work around 'verify' incompatibility
4523         * lib/verify.h: Use @...@ directives, not ifdef.
4524         * modules/assert-h (assert.h): Implement the directives.
4525         (assert.h): Substitute the symbol-prefix more consistently.
4526
4527 2011-05-29  Jim Meyering  <meyering@redhat.com>
4528
4529         trim: remove three superfluous assignments
4530         * lib/trim.c (trim2): Remove three superfluous assignments
4531         and correct brace positioning.
4532
4533 2011-05-29  Bruno Haible  <bruno@clisp.org>
4534
4535         wctype-h: Avoid namespace pollution on Solaris 2.6.
4536         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
4537         identifiers.
4538         * doc/posix-headers/wctype.texi: Mention the problem.
4539         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4540
4541 2011-05-28  Jim Meyering  <meyering@redhat.com>
4542
4543         parse-datetime.y: accommodate -Wstrict-overflow
4544         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
4545         placate -Wstrict-overflow.
4546
4547         trim: avoid a warning from -O2 -Wstrict-overflow
4548         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
4549
4550 2011-05-29  Bruno Haible  <bruno@clisp.org>
4551
4552         gnulib-tool: Fix bug in yesterday's commit.
4553         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
4554         twice.
4555
4556 2011-05-29  Bruno Haible  <bruno@clisp.org>
4557
4558         Allow multiple gnulib generated include files to be combined.
4559         * gnulib-tool (func_compute_include_guard_prefix): New function.
4560         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
4561         ${gl_include_guard_prefix} references.
4562         (func_import, func_create_testdir): Invoke
4563         func_compute_include_guard_prefix.
4564         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
4565         * lib/ctype.in.h: Likewise.
4566         * lib/dirent.in.h: Likewise.
4567         * lib/errno.in.h: Likewise.
4568         * lib/fcntl.in.h: Likewise.
4569         * lib/float.in.h: Likewise.
4570         * lib/getopt.in.h: Likewise.
4571         * lib/iconv.in.h: Likewise.
4572         * lib/langinfo.in.h: Likewise.
4573         * lib/locale.in.h: Likewise.
4574         * lib/math.in.h: Likewise.
4575         * lib/netdb.in.h: Likewise.
4576         * lib/netinet_in.in.h: Likewise.
4577         * lib/poll.in.h: Likewise.
4578         * lib/pthread.in.h: Likewise.
4579         * lib/pty.in.h: Likewise.
4580         * lib/sched.in.h: Likewise.
4581         * lib/se-selinux.in.h: Likewise.
4582         * lib/search.in.h: Likewise.
4583         * lib/signal.in.h: Likewise.
4584         * lib/spawn.in.h: Likewise.
4585         * lib/stdarg.in.h: Likewise.
4586         * lib/stddef.in.h: Likewise.
4587         * lib/stdint.in.h: Likewise.
4588         * lib/stdio.in.h: Likewise.
4589         * lib/stdlib.in.h: Likewise.
4590         * lib/string.in.h: Likewise.
4591         * lib/strings.in.h: Likewise.
4592         * lib/sys_file.in.h: Likewise.
4593         * lib/sys_ioctl.in.h: Likewise.
4594         * lib/sys_select.in.h: Likewise.
4595         * lib/sys_socket.in.h: Likewise.
4596         * lib/sys_stat.in.h: Likewise.
4597         * lib/sys_time.in.h: Likewise.
4598         * lib/sys_times.in.h: Likewise.
4599         * lib/sys_uio.in.h: Likewise.
4600         * lib/sys_utsname.in.h: Likewise.
4601         * lib/sys_wait.in.h: Likewise.
4602         * lib/sysexits.in.h: Likewise.
4603         * lib/termios.in.h: Likewise.
4604         * lib/time.in.h: Likewise.
4605         * lib/unistd.in.h: Likewise.
4606         * lib/wchar.in.h: Likewise.
4607         * lib/wctype.in.h: Likewise.
4608         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
4609         * modules/ctype (Makefile.am): Likewise.
4610         * modules/dirent (Makefile.am): Likewise.
4611         * modules/errno (Makefile.am): Likewise.
4612         * modules/fcntl-h (Makefile.am): Likewise.
4613         * modules/float (Makefile.am): Likewise.
4614         * modules/getopt-posix (Makefile.am): Likewise.
4615         * modules/iconv-h (Makefile.am): Likewise.
4616         * modules/langinfo (Makefile.am): Likewise.
4617         * modules/locale (Makefile.am): Likewise.
4618         * modules/math (Makefile.am): Likewise.
4619         * modules/netdb (Makefile.am): Likewise.
4620         * modules/netinet_in (Makefile.am): Likewise.
4621         * modules/poll-h (Makefile.am): Likewise.
4622         * modules/pthread (Makefile.am): Likewise.
4623         * modules/pty (Makefile.am): Likewise.
4624         * modules/sched (Makefile.am): Likewise.
4625         * modules/search (Makefile.am): Likewise.
4626         * modules/selinux-h (Makefile.am): Likewise.
4627         * modules/signal (Makefile.am): Likewise.
4628         * modules/spawn (Makefile.am): Likewise.
4629         * modules/stdarg (Makefile.am): Likewise.
4630         * modules/stddef (Makefile.am): Likewise.
4631         * modules/stdint (Makefile.am): Likewise.
4632         * modules/stdio (Makefile.am): Likewise.
4633         * modules/stdlib (Makefile.am): Likewise.
4634         * modules/string (Makefile.am): Likewise.
4635         * modules/strings (Makefile.am): Likewise.
4636         * modules/sys_file (Makefile.am): Likewise.
4637         * modules/sys_ioctl (Makefile.am): Likewise.
4638         * modules/sys_select (Makefile.am): Likewise.
4639         * modules/sys_socket (Makefile.am): Likewise.
4640         * modules/sys_stat (Makefile.am): Likewise.
4641         * modules/sys_time (Makefile.am): Likewise.
4642         * modules/sys_times (Makefile.am): Likewise.
4643         * modules/sys_uio (Makefile.am): Likewise.
4644         * modules/sys_utsname (Makefile.am): Likewise.
4645         * modules/sys_wait (Makefile.am): Likewise.
4646         * modules/sysexits (Makefile.am): Likewise.
4647         * modules/termios (Makefile.am): Likewise.
4648         * modules/time (Makefile.am): Likewise.
4649         * modules/unistd (Makefile.am): Likewise.
4650         * modules/wchar (Makefile.am): Likewise.
4651         * modules/wctype-h (Makefile.am): Likewise.
4652         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
4653
4654 2011-05-29  Bruno Haible  <bruno@clisp.org>
4655
4656         assert-h: Allow multiple gnulib generated replacements to coexist.
4657         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
4658
4659 2011-05-29  Bruno Haible  <bruno@clisp.org>
4660
4661         argp: Allow coexistence with strerror_r-posix module.
4662         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
4663         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
4664         by gnulib's <string.h> replacement), assume it has the POSIX signature,
4665         not the glibc signature.
4666
4667 2011-05-28  Bruno Haible  <bruno@clisp.org>
4668
4669         gnulib-tool: Alternative structure of testdirs, similar to --import.
4670         * gnulib-tool: New option --single-configure.
4671         (func_usage): Document it.
4672         (single_configure): New variable.
4673         (func_modules_transitive_closure_separately,
4674         func_modules_transitive_closure_separately,
4675         func_determine_use_libtests, func_modules_add_dummy_separately,
4676         func_modules_to_filelist_separately): New functions, extracted from
4677         func_import.
4678         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
4679         (func_import): Use the new functions.
4680         (func_create_testdir): Set final_modules. Handle $single_configure =
4681         true case.
4682
4683 2011-05-28  Bruno Haible  <bruno@clisp.org>
4684
4685         getloadavg: Remove an unreliable safety check.
4686         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
4687         getloadavg.c is in place.
4688         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
4689         Reported by Sam Steingold <sds@gnu.org>.
4690
4691 2011-05-28  Bruno Haible  <bruno@clisp.org>
4692
4693         doc: Cleanup yet another file produced by texinfo.tex.
4694         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
4695
4696 2011-05-28  Bruno Haible  <bruno@clisp.org>
4697
4698         Finish the conditional dependencies mechanism.
4699         * gnulib-tool: New option --no-conditional-dependencies.
4700         (func_usage): Document it. Don't mark --conditional-dependencies as
4701         experimental.
4702         (cond_dependencies): The possible values can now be true, false, empty.
4703         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
4704         (func_import): Store setting in gnulib-cache.m4 and read it from there.
4705         * doc/gnulib-tool.texi (Conditional dependencies): New section.
4706
4707 2011-05-28  Bruno Haible  <bruno@clisp.org>
4708
4709         doc: Use a recent texinfo.tex.
4710         * doc/Makefile (tex_opts): New variable.
4711         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
4712
4713 2011-05-28  Jim Meyering  <meyering@redhat.com>
4714
4715         intprops.h: adjust comment to match code change
4716         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
4717         only once, it *may* have side effects.  Also fix an unrelated typo.
4718         (_GL_INT_SIGNED): Likewise.
4719
4720 2011-05-26  Simon Josefsson  <simon@josefsson.org>
4721
4722         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
4723
4724 2011-05-26  Bruno Haible  <bruno@clisp.org>
4725
4726         mbsrchr: Avoid collision with system function on Interix.
4727         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
4728         Reported by Markus Duft <mduft@gentoo.org>.
4729
4730 2011-05-15  James Youngman  <jay@gnu.org>
4731
4732         getopt: for ambiguous options, enumerate the possibilities.
4733         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
4734         the ambiguous options when an ambiguous prefix is given. This was
4735         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
4736         glibc change was
4737         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
4738
4739 2011-05-25  Eric Blake  <eblake@redhat.com>
4740
4741         getcwd: work around mingw bug
4742         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
4743         * doc/posix-functions/getcwd.texi (getcwd): Document it.
4744         Reported by Matthias Bolte.
4745
4746 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
4747
4748         test-intprops: disable -Wtype-limits diagnostics
4749         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
4750         diagnostics.  Otherwise, the integer overflow macros generate many
4751         diagnostics.  Reported by Jim Meyering in
4752         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
4753
4754         intprops: shorten, to pacify gcc -Woverlength-strings
4755         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
4756         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
4757         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
4758         likely to run afoul of C compiler limits for string constant lengths.
4759         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
4760
4761 2011-05-24  Eric Blake  <eblake@redhat.com>
4762
4763         docs: document recently fixed glibc printf bug
4764         * doc/posix-functions/fprintf.texi (fprintf): Document it.
4765         * doc/posix-functions/printf.texi (printf): Likewise.
4766         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
4767         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
4768
4769         closein-tests: convert to init.sh
4770         * modules/closein-tests (Files): Add init.sh
4771         * tests/test-closein.sh Use it.
4772
4773         yesno-tests: convert to init.sh
4774         * modules/yesno-tests (Files): Add init.sh.
4775         * tests/test-yesno.sh: Use it.
4776
4777         atexit-tests: ensure reliable exit status
4778         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
4779         Reported by Bruno Haible.
4780
4781 2011-05-24  Bruno Haible  <bruno@clisp.org>
4782
4783         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
4784         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
4785         gl_PREREQ_STRERROR_R invocations from here...
4786         * modules/strerror_r-posix (configure.ac): ... to here.
4787
4788 2011-05-24  Eric Blake  <eblake@redhat.com>
4789
4790         strerror_r: fix missing header
4791         * lib/strerror_r.c: Avoid compiler warning about snprintf.
4792
4793         strerror_r: fix AIX test failures
4794         * lib/strerror_r.c (strerror_r): Convert silent truncation to
4795         ERANGE failure.
4796
4797         strerror_r: fix Solaris test failures
4798         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
4799         failures.
4800         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
4801
4802         strerror_r: enforce POSIX recommendations
4803         * lib/strerror_r.c (safe_copy): New helper method.
4804         (strerror_r): Guarantee a non-empty string.
4805         * tests/test-strerror_r.c (main): Enhance tests to incorporate
4806         recent POSIX rulings and to match our strerror guarantees.
4807         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
4808
4809 2011-05-24  Jim Meyering  <meyering@redhat.com>
4810
4811         test-perror2.c: avoid warning about unused variable
4812         * tests/test-perror2.c (main): Remove declaration of unused "fp".
4813
4814 2011-05-24  Eric Blake  <eblake@redhat.com>
4815
4816         perror: avoid spurious test failure on HP-UX
4817         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
4818
4819         tests: fix logic bug in init.sh
4820         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
4821         shell.
4822
4823 2011-05-24  Jim Meyering  <meyering@redhat.com>
4824
4825         utimensat: do not reference an out-of-scope buffer
4826         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
4827         declared in an inner scope, yet "times" would be dereferenced outside
4828         the scope in which "ts" was valid.
4829         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
4830         of ts[2] "out/up", so that the use of aliased "times" (via
4831         "times = ts;") does not end up referencing an out-of-scope "ts"
4832
4833         opendir-safer.c: don't clobber errno; don't close negative FD
4834         * lib/opendir-safer.c (opendir_safer):
4835         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
4836         file descriptor, and more importantly, don't clobber the
4837         offending errno value with EINVAL.  Before, upon failure
4838         of dup_safer, we would pass the negative file descriptor to
4839         fdopendir, which would clobber errno.
4840
4841 2011-05-23  Bruno Haible  <bruno@clisp.org>
4842
4843         idcache: Fix module description.
4844         * modules/idcache (Include): Set to "idcache.h".
4845
4846 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
4847
4848         gnulib-tool: fix portability problem with MacOS sed
4849         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
4850         before the "}".  Problem reported by Leo in
4851         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
4852         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
4853         sed_extract_condition1, sed_extract_condition2.
4854
4855 2011-05-23  Bruno Haible  <bruno@clisp.org>
4856
4857         hash: Simplify autoconf macro.
4858         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
4859
4860 2011-05-23  Bruno Haible  <bruno@clisp.org>
4861
4862         getugroups: Fix module description.
4863         * modules/getugroups (Include): Set to "getugroups.h".
4864
4865 2011-05-23  Bruno Haible  <bruno@clisp.org>
4866
4867         linkat: Simplify autoconf macro.
4868         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
4869
4870 2011-05-23  Bruno Haible  <bruno@clisp.org>
4871             Eric Blake  <eblake@redhat.com>
4872
4873         linkat, renameat: Update dependencies.
4874         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
4875         * modules/linkat (Depends-on): Likewise. Remove also readlink,
4876         symlinkat.
4877
4878 2011-05-23  Jim Meyering  <meyering@redhat.com>
4879
4880         maint.mk: more tight_scope improvements
4881         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
4882         (_gl_TS_headers): Define only in if-0'd block.
4883         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
4884         sometimes we must *not* use it.  Adjust uses accordingly.
4885         (sc_tight_scope): Use much simpler grep-based test to determine
4886         whether we skip this rule.
4887
4888         maint.mk: generalize/improve the tight-scope rule
4889         * top/maint.mk: Emit a warning when the test is skipped.
4890         (_gl_TS_dir): Add $(srcdir)/ prefix.
4891         (_gl_TS_function_match): Simplify, rather than trying
4892         to enumerate common types.  Otherwise, it would fail to match an
4893         "extern unsigned char const *" declaration in idutils.
4894         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
4895         a way to support use of that type of macro.
4896         (_gl_TS_var_match): Simplify regexp.
4897         (_gl_TS_obj_files): New configurable variable.
4898         (_gl_TS_headers): Likewise.
4899
4900 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
4901
4902         verify: fix bug when gnulib <assert.h> is also included
4903         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
4904         is defined, not if _GL_STATIC_ASSERT_H is not defined.
4905         Perhaps there's a better way, but this fixes the immediate problem.
4906         Problem reported by Bruno Haible in
4907         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
4908
4909 2011-05-22  Bruno Haible  <bruno@clisp.org>
4910
4911         xgetcwd: Simplify autoconf macro.
4912         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
4913
4914 2011-05-22  Bruno Haible  <bruno@clisp.org>
4915
4916         New module 'mktime-internal'.
4917         * modules/mktime-internal: New file.
4918         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
4919         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
4920         mktime_internal as a C macro if libc has __mktime_internal.
4921         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
4922         conditions.
4923         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
4924
4925 2011-05-22  Bruno Haible  <bruno@clisp.org>
4926
4927         timegm: Correct mktime replacement statements.
4928         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
4929         defining mktime as a C macro. This completes a 2009-07-28 commit.
4930
4931 2011-05-22  Bruno Haible  <bruno@clisp.org>
4932
4933         timegm: Simplify autoconf macro.
4934         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
4935
4936 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
4937
4938         clock-time: change to LGPLv2+.
4939         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
4940         BSD-like but we have no mark for that; this is good enough for now.
4941
4942 2011-05-21  Bruno Haible  <bruno@clisp.org>
4943
4944         strerror_r: Fix comments.
4945         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
4946
4947 2011-05-21  Bruno Haible  <bruno@clisp.org>
4948
4949         relocatable-prog-wrapper: Fix possible link error.
4950         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
4951         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
4952         (gl_FUNC_SETENV): ... to here.
4953         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
4954         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
4955
4956 2011-05-21  Bruno Haible  <bruno@clisp.org>
4957
4958         relocatable-prog-wrapper: Assume strerror() exists.
4959         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
4960         m4/strerror.m4.
4961         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
4962         * lib/relocwrapper.c: Remove mention of strerror module.
4963         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
4964         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
4965         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
4966         C macro.
4967
4968 2011-05-21  Bruno Haible  <bruno@clisp.org>
4969
4970         select: Simplify replacement idiom.
4971         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
4972         Win32 platforms.
4973         * lib/sys_select.in.h (select): Simplify accordingly.
4974         * modules/select (Depends-on): Likewise.
4975
4976 2011-05-21  Bruno Haible  <bruno@clisp.org>
4977
4978         mkdir-p: Simplify autoconf macro.
4979         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
4980         gl_FUNC_LCHOWN.
4981
4982 2011-05-21  Eric Blake  <eblake@redhat.com>
4983
4984         strerror_r: avoid clobbering strerror on cygwin
4985         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
4986         fall back instead to sys_errlist.
4987         * modules/strerror (configure.ac): Add witness.
4988         * tests/test-strerror_r.c (main): Enhance test.
4989         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
4990         * tests/test-perror2.c (main): Free memory before exit.
4991
4992 2011-05-21  Bruno Haible  <bruno@clisp.org>
4993
4994         mkdtemp: Use gnulib naming conventions.
4995         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
4996         * modules/mkdtemp (configure.ac): Update.
4997
4998 2011-05-20  Eric Blake  <eblake@redhat.com>
4999
5000         strerror_r: avoid corrupting errno on Solaris
5001         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
5002         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
5003
5004         strerror_r: avoid compiler warning
5005         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
5006
5007         strerror_r: simplify AIX code
5008         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
5009
5010         test-perror: avoid spurious failure on FreeBSD
5011         * modules/perror-tests (Depends-on): Add strerror, now that
5012         strerror_r no longer pulls it in.
5013
5014 2011-05-20  Bruno Haible  <bruno@clisp.org>
5015
5016         strerror_r-posix: Remove unused dependencies.
5017         * modules/strerror_r-posix (Depends-on): Remove strerror.
5018         Reported by Eric Blake.
5019
5020 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
5021
5022         intprops: remove assumption about A|B representation
5023         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
5024         is a valid integer if both A and B are.  Although this is true for
5025         all known practical hosts, the C standard doesn't guarantee it,
5026         and the code need not assume it.  Also, this change may work around
5027         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
5028         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
5029
5030 2011-05-20  Eric Blake  <eblake@redhat.com>
5031
5032         perror: work around FreeBSD bug
5033         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
5034         is broken.  Move AC_LIBOBJ...
5035         * modules/perror (configure.ac): Here.
5036         * doc/posix-functions/perror.texi (perror): Document this.
5037         * tests/test-perror2.c (main): Enhance test.
5038
5039         test-perror: check for strerror interactions
5040         * tests/macros.h (STREQ): Add macro.
5041         * modules/perror-tests (Files): Add second test.
5042         * tests/test-perror2.c (main): New file.
5043         * doc/posix-functions/perror.texi (perror): Document glibc bug.
5044
5045         test-perror: rewrite to use init script
5046         * modules/perror-tests (Files): Add init.sh.
5047         * tests/test-perror.sh: Use temporary directory.
5048
5049 2011-05-20  Jim Meyering  <meyering@redhat.com>
5050
5051         maint: replace misused "a" with "an"
5052         * doc/intprops.texi: "a integer"
5053         * doc/regex.texi: "a explanation"
5054         * lib/alignof.h: "a object"
5055         * lib/argmatch.h: "a explanation"
5056         * lib/argp-help.c: "a option" and "a OPTION_DOC"
5057         * lib/stdint.in.h: "a integer"
5058         * lib/userspec.c: "a owner"
5059         * doc/gnulib.texi: Fix "a idea", and reword.
5060
5061 2011-05-19  Jim Meyering  <meyering@redhat.com>
5062
5063         maint: correct misuse of "a" and "an"
5064         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
5065         * lib/argp-help.c: "an docum...": s/an/a/
5066         * lib/argp-parse.c: "An vector": s/An/A/
5067         * lib/execute.c: "an native": s/an/a/
5068         * lib/spawn-pipe.c: Likewise.
5069         * lib/gc.h: "an Gc_rc": s/an/a/
5070         * lib/unigbrk.in.h: "an grapheme": s/an/a/
5071         * lib/fts.c: "an stat.st_dev": s/an/a/
5072
5073 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
5074
5075         intprops-tests: work around HP-UX 11.23 cc bug with constants
5076         * tests/test-intprops.c (VERIFY): New macro.
5077         (main): Use it, instead of verify, to work around the compiler bug; see
5078         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
5079
5080         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
5081         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
5082         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
5083         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
5084         (_GL_REMAINDER_OVERFLOW): Use it.
5085
5086         intprops-tests: revert unsigned part of previous change
5087         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
5088         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
5089         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
5090         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
5091
5092 2011-05-19  Bruno Haible  <bruno@clisp.org>
5093
5094         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
5095         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
5096         strerror_r() returned without filling the buffer.
5097         Reported by Eric Blake.
5098
5099 2011-05-19  Eric Blake  <eblake@redhat.com>
5100
5101         strerror_r: guarantee unchanged errno
5102         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
5103         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
5104         failure.
5105         * tests/test-strerror_r.c (main): Enhance test.
5106
5107 2011-05-19  Bruno Haible  <bruno@clisp.org>
5108
5109         strerror_r: Reorder #if blocks.
5110         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
5111         for consistency with the previous commit.
5112
5113 2011-05-19  Bruno Haible  <bruno@clisp.org>
5114
5115         perror: Avoid clobbering the strerror buffer when possible.
5116         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
5117         * lib/strerror.c: Include it.
5118         * modules/strerror (Files): Add lib/strerror-impl.h.
5119         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
5120         (my_strerror): New function, defined through lib/strerror-impl.h.
5121         (perror): Use it instead of strerror.
5122         * modules/perror (Files): Add lib/strerror-impl.h.
5123         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
5124
5125 2011-05-19  Eric Blake  <eblake@redhat.com>
5126
5127         strerror_r: fix on newer cygwin
5128         * lib/strerror_r.c (strerror_r): Cygwin now has
5129         __xpg_strerror_r, use it.
5130
5131 2011-05-19  Bruno Haible  <bruno@clisp.org>
5132
5133         strerror_r: Avoid clobbering the strerror buffer when possible.
5134         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
5135         (sys_nerr, sys_errlist): New declarations.
5136         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
5137         HP-UX, native Win32, IRIX, and 32-bit Solaris.
5138         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
5139
5140 2011-05-19  Bruno Haible  <bruno@clisp.org>
5141
5142         strerror_r: Fix test failure on mingw.
5143         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
5144         EXTEND_STRERROR_R.
5145         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
5146         macros from errno.in.h instead.
5147
5148 2011-05-19  Eric Blake  <eblake@redhat.com>
5149
5150         strerror: relax test for Solaris
5151         * tests/test-strerror.c (main): Permit Solaris behavior.
5152         * tests/test-strerror_r.c (main): Likewise.
5153
5154         strerror: enforce POSIX ruling on strerror(0)
5155         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
5156         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
5157         * lib/strerror_r.c (rpl_strerror_r): Work around it.
5158         * doc/posix-functions/strerror.texi (strerror): Document it.
5159         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
5160         * tests/test-strerror.c (main): Strengthen test.
5161         * tests/test-strerror_r.c (main): Likewise.
5162
5163 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
5164
5165         intprop-tests: port to older and more-pedantic compilers
5166         * modules/intprops-tests (Files): Add tests/macros.h.
5167         * tests/test-intprops.c: Include macros.h.
5168         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
5169         it's no longer documented to expand to an integer constant expression.
5170         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
5171         argument is floating point, as it's no longer documented to expand
5172         to an integer constant expression in that case.
5173         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
5174         compiler bugs reported by Bruno Haible.  See
5175         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
5176         (U0, U1): New constants, to work around the same bugs.  Also,
5177         in tests, use e.g., "(unsigned int) 39" rather than "39u".
5178
5179         intprops: work around C compiler bugs
5180         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
5181         bug in Sun C 5.11 2010/08/13 and other compilers; see
5182         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
5183
5184         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
5185         * doc/intprops.texi (Integer Type Determination): Fix
5186         documentation for TYPE_IS_INTEGER: it returns an constant
5187         expression, not an integer constant expression.  Fix doc for
5188         TYPE_SIGNED: it returns an integer constant expression only if its
5189         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
5190         hardly worth documented that way....)
5191
5192 2011-05-18  Bruno Haible  <bruno@clisp.org>
5193
5194         strerror_r: Avoid clobbering the strerror buffer when possible.
5195         * lib/strerror_r.c (strerror_r): Merge the three implementations.
5196         Handle gnulib defined errno values here. When strerror() returns NULL
5197         or an empty string, return EINVAL.
5198         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
5199         gnulib defined errno values here.
5200         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
5201
5202 2011-05-18  Eric Blake  <eblake@redhat.com>
5203
5204         fnmatch: avoid compiler warning
5205         * lib/fnmatch_loop.c (FCT): Use correct type.
5206         Reported by Matthias Bolte.
5207
5208 2011-05-13  Jim Meyering  <meyering@redhat.com>
5209
5210         maint.mk: three new prohibit_<HDR>_without_use rules
5211         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
5212         (sc_prohibit_stdio-safer_without_use): Likewise.
5213         (sc_prohibit_xfreopen_without_use): Likewise.
5214
5215 2011-05-17  Jim Meyering  <meyering@redhat.com>
5216
5217         announce-gen: fail if the NEWS delta is empty
5218         If there's nothing noteworthy in NEWS, then either you forgot
5219         or you shouldn't be releasing.
5220         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
5221
5222 2011-05-17  Pádraig Brady <P@draigBrady.com>
5223
5224         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
5225         reserved symbols starting with double underscore from the check.
5226
5227 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
5228
5229         intprops: add doc
5230         * doc/intprops.texi: New file, documenting intprops.
5231         * doc/gnulib.texi (Particular Modules): Include it.
5232
5233         verify: add doc to gnulib manual and fix example
5234         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
5235         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
5236         (Compile-time Assertions): Fix example so it can't overflow.
5237
5238 2011-05-17  Jim Meyering  <meyering@redhat.com>
5239
5240         warnings.m4: don't usurp save_CPPFLAGS variable name
5241         * m4/warnings.m4: Prefix local temporary variable name with gl_.
5242
5243         doc: fix typo
5244         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
5245
5246 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
5247             Bruno Haible  <bruno@clisp.org>
5248
5249         doc: Tweak recent change.
5250         * README (Portability guidelines): Tweak new text.
5251         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
5252         Interix 6.1.
5253
5254 2011-05-16  Eric Blake  <eblake@redhat.com>
5255
5256         inttypes: avoid autoconf warning
5257         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
5258         * m4/stdint.m4 (gl_STDINT_H): Likewise.
5259
5260 2011-05-16  Sam Steingold <sds@gnu.org>
5261         and Eric Blake  <eblake@redhat.com>
5262
5263         vc-list-files: accept multiple directory operands
5264         * build-aux/vc-list-files: Iterate over all remaining operands.
5265
5266 2011-05-16  Bruno Haible  <bruno@clisp.org>
5267
5268         Fix confusion regarding deprecated modules.
5269         * modules/calloc (Status, Notice): Mark module as deprecated, not
5270         obsolete.
5271         * modules/fnmatch-posix (Status, Notice): Likewise.
5272         * modules/getdate (Status, Notice): Likewise.
5273         * modules/getopt (Status, Notice): Likewise.
5274         * modules/malloc (Status, Notice): Likewise.
5275         * modules/pipe (Status, Notice): Likewise.
5276         * modules/realloc (Status, Notice): Likewise.
5277         * modules/rename-dest-slash (Status, Notice): Likewise.
5278         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
5279         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
5280         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
5281         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
5282         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
5283
5284 2011-05-16  Bruno Haible  <bruno@clisp.org>
5285
5286         doc: List the target platforms.
5287         * doc/gnulib-intro.texi (Target Platforms): New section.
5288         * doc/gnulib.texi (Introduction): Update menu.
5289         * README (Portability guidelines): Refer to the new section. Update
5290         statement about oldest supported environment. Remove rationale why
5291         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
5292         unportable C89 function.
5293         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
5294         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
5295
5296 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
5297
5298         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
5299
5300 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
5301
5302         intprops-tests: new module
5303         * modules/intprops-tests, tests/test-intprops.c: New files.
5304
5305         intprops: add safe, portable integer overflow checking
5306         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
5307         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
5308         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
5309         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
5310         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
5311         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
5312         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
5313         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
5314         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
5315         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
5316         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
5317
5318 2011-05-12  James Youngman  <jay@gnu.org>
5319
5320         Add a test for glibc's Bugzilla bug #12378.
5321         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
5322         doesn't allow the literal matching of a lone "[" (which is
5323         required by POSIX).
5324         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
5325
5326 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
5327
5328         Sync glibc change fixing Bugzilla bug #12378.
5329         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
5330         beginning and fall back to matching as normal character if the
5331         string ends before the matching ']' is found.  This is what POSIX
5332         requires.
5333
5334 2011-05-13  Eric Blake  <eblake@redhat.com>
5335
5336         getcwd-lgpl: relax test for FreeBSD
5337         * doc/posix-functions/getcwd.texi (getcwd): Document portability
5338         issue.
5339         * tests/test-getcwd-lgpl.c (main): Relax test.
5340         Reported by Matthias Bolte.
5341
5342 2011-05-11  Eric Blake  <eblake@redhat.com>
5343
5344         test-fflush: silence compiler warning
5345         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
5346
5347 2011-05-11  Bruno Haible  <bruno@clisp.org>
5348
5349         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
5350         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
5351         * modules/canonicalize (Depends-on): Add 'nocrash'.
5352         * modules/canonicalize-lgpl (Depends-on): Likewise.
5353         * doc/posix-functions/realpath.texi: Update platforms list.
5354         Reported by Ryan Schmidt <ryandesign@macports.org>.
5355
5356 2011-05-11  Bruno Haible  <bruno@clisp.org>
5357
5358         group-member: Declare function in <unistd.h>.
5359         * lib/unistd.in.h (group_member): New declaration.
5360         * lib/group-member.h: Remove file.
5361         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
5362         * tests/test-unistd-c++.cc: Check signature of group_member.
5363         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
5364         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
5365         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
5366         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
5367         HAVE_GROUP_MEMBER.
5368         * modules/group-member (Files): Remove lib/group-member.h.
5369         (Depends-on): Add unistd. Specify conditions.
5370         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
5371         (Include): Change to <unistd.h>.
5372         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
5373         HAVE_GROUP_MEMBER.
5374         * NEWS: Mention the change.
5375         * lib/euidaccess.c: Don't include group-member.h.
5376
5377 2011-05-11  Bruno Haible  <bruno@clisp.org>
5378
5379         group-member: Document module.
5380         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
5381         module.
5382
5383 2011-05-11  Bruno Haible  <bruno@clisp.org>
5384
5385         fclose: Fix mistake earlier today.
5386         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
5387
5388 2011-05-11  Eric Blake  <eblake@redhat.com>
5389
5390         fclose: preserve fflush errors
5391         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
5392         Reported by Jim Meyering.
5393
5394         bootstrap: support a prereq of 'rpcgen -' on RHEL5
5395         * build-aux/bootstrap (check_versions): When no specific version
5396         is required, merely check that the app produces an exit status
5397         that indicates its existence.
5398
5399         maint.mk: drop redundant check
5400         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
5401         the same but better.
5402
5403 2011-05-11  Bruno Haible  <bruno@clisp.org>
5404
5405         fclose: Fix possible link error.
5406         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
5407         unregister_shadow_fd. Improve comments.
5408         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
5409         Eric Blake.
5410
5411 2011-05-11  Jim Meyering  <meyering@redhat.com>
5412
5413         maint.mk: improve "can not" detection and generalize rule name
5414         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
5415         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
5416         Use the same technique as in sc_prohibit_doubled_word, so that
5417         we recognize "can not" also when the words are separated by a newline.
5418         Suggested by Eric Blake.
5419         (perl_filename_lineno_text_): Define.  Factored out of...
5420         (prohibit_doubled_word_): ...here.  Use the new definition.
5421         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
5422         (prohibit_undesirable_word_seq_RE_): New overridable variable.
5423         (ignore_undesirable_word_sequence_RE_): New overridable variable.
5424
5425 2011-05-10  Eric Blake  <eblake@redhat.com>
5426
5427         fclose: avoid double close race when possible
5428         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
5429         all but WINDOWS_SOCKETS.
5430
5431 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
5432
5433         openat: correct new comment
5434         * lib/openat-proc.c (openat_proc_name): Correct the comment.
5435
5436 2011-05-10  Jim Meyering  <meyering@redhat.com>
5437
5438         openat: add comments
5439         * lib/openat-proc.c (openat_proc_name): Add comments,
5440         mostly from Eric Blake.
5441
5442 2011-05-09  Eric Blake  <eblake@redhat.com>
5443
5444         openat: reduce syscalls in first probe of /proc
5445         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
5446         be a directory.  Simplify the probe for .. bugs.
5447         * modules/openat (Depends-on): Drop same-inode.
5448         Reported by Bastien ROUCARIES.
5449
5450 2011-05-09  Jim Meyering  <meyering@redhat.com>
5451
5452         maint.mk: change semantics/name of tight_scope variables
5453         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
5454         Rename variables to align with semantics that make them more useful.
5455
5456         maint.mk: tweak new rule's name not to impinge
5457         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
5458         (sc_tight_scope): Use new rule name rather than $@-0.
5459
5460         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
5461         * top/maint.mk (sc_tight_scope): New rule.
5462         (sc_tight_scope-0): New rule, ifdef'd out.
5463         (_gl_TS_dir): Default.
5464         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
5465         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
5466
5467 2011-05-09  Simon Josefsson  <simon@josefsson.org>
5468
5469         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
5470         Haible <bruno@clisp.org>.
5471
5472 2011-05-08  Bruno Haible  <bruno@clisp.org>
5473
5474         Comments.
5475         * m4/isnanf.m4: Add comment.
5476         * m4/isnanl.m4: Likewise.
5477
5478 2011-05-08  Bruno Haible  <bruno@clisp.org>
5479
5480         glob: Remove obsolete macro.
5481         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
5482
5483 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
5484
5485         intprops: Sun C 5.11 supports __typeof__
5486         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
5487         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
5488         which is new.
5489         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
5490
5491         intprops: switch to usual gnulib indenting and naming
5492         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
5493         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
5494
5495         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
5496
5497 2011-05-08  Jim Meyering  <meyering@redhat.com>
5498
5499         maint.mk: suppress "Entering/Leaving directory" diag in announcement
5500         * top/maint.mk (release-prep): Use make's --no-print-directory
5501         option when generating the announcement.  This eliminates the
5502         pesky "make[2]: Entering/Leaving directory" diagnostics in the
5503         generated announcement template.
5504
5505 2011-05-08  Bruno Haible  <bruno@clisp.org>
5506
5507         tzset: Fix gettimeofday wrapper on Solaris 2.6.
5508         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
5509         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
5510
5511 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
5512
5513         ignore-value, verify: Omit include files from lib_SOURCES.
5514         * modules/ignore-value, modules/verify (Makefile.am):
5515         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
5516         that leads Automake to duplicate use of am__objects_... variables
5517         in Makefile.in.  See
5518         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
5519
5520 2011-05-07  Bruno Haible  <bruno@clisp.org>
5521
5522         fclose: Simplify autoconf macro.
5523         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
5524         defined.
5525
5526 2011-05-07  Bruno Haible  <bruno@clisp.org>
5527
5528         canonicalize-lgpl: Fix autoconf macro ordering bug.
5529         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
5530         gl_STDLIB_H_DEFAULTS.
5531
5532 2011-05-06  Eric Blake  <eblake@redhat.com>
5533
5534         maintainer-makefile: make sc_po_check easier to tune
5535         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
5536         to probe for strings, such as an alternate location for gnulib.
5537
5538         fclose: guarantee behavior on seekable stdin
5539         * modules/fclose (Depends-on): Add fflush.
5540         * doc/posix-functions/fclose.texi (fclose): Document this.
5541         * tests/test-fclose.c (main): Make test for this unconditional.
5542
5543 2011-05-06  Bruno Haible  <bruno@clisp.org>
5544
5545         fflush, fpurge: Relicense under LGPLv2+.
5546         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
5547         * modules/fpurge (License): Likewise.
5548         With permission from Eric Blake and Jim Meyering.
5549         Suggested by Eric Blake.
5550
5551 2011-05-06  Karl Berry  <karl@gnu.org>
5552
5553         * MODULES.html.sh (func_all_modules): remove exit.
5554
5555 2011-05-06  Jim Meyering  <meyering@redhat.com>
5556
5557         maint.mk: use info-gnu@ as the default only for a stable release
5558         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
5559         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
5560         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
5561         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
5562
5563 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
5564
5565         assert-h: new module, which supports C1X-style static_assert
5566         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
5567         * lib/verify.h: Revamp so that this can be copied into assert.h,
5568         while retaining the ability to use it standalone as before.
5569         Rename private identifiers so as not to encroach on the
5570         standard C namespace, since this is now used by assert.h.
5571         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
5572         the old verify_true.
5573         (_GL_VERIFY_TRUE): New macro, with much of the contents of
5574         the old verify_true.  Use _GL_VERIFY_TYPE.
5575         (_GL_VERIFY): New macro, with much of the contents of the old verify.
5576         (static_assert): New macro, if _GL_STATIC_ASSERT_H
5577         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
5578         defined when this file is copied into the replacement assert.h.
5579         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
5580         and _Static_assert is not built in.
5581         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
5582         defined, and use the new macros mentioned above.
5583         * doc/posix-headers/assert.texi: Document this.
5584
5585 2011-05-05  Bruno Haible  <bruno@clisp.org>
5586
5587         fclose, fflush: Respect rules for use of AC_LIBOBJ.
5588         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
5589         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
5590         gl_REPLACE_FCLOSE here.
5591         * modules/fflush (Depends-on): Remove fclose.
5592         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
5593         combination with module 'fclose'.
5594
5595 2011-05-05  Bruno Haible  <bruno@clisp.org>
5596
5597         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
5598         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
5599         gl_FUNC_FFLUSH.
5600         (gl_FUNC_FFLUSH): Use it.
5601         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
5602         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
5603         gl_REPLACE_FSEEKO here.
5604
5605 2011-05-05  Bruno Haible  <bruno@clisp.org>
5606
5607         tzset: Relicense under LGPL.
5608         * modules/tzset (License): Change to LGPL.
5609         No agreement needed; it's a no-op.
5610
5611         strtoimax, strtoumax: Relicense under LGPL.
5612         * modules/strtoimax (License): Change to LGPL.
5613         * modules/strtoumax (License): Likewise.
5614         With permission from Jim Meyering, Paul Eggert:
5615         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
5616         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
5617
5618         getgroups: Relicense under LGPL.
5619         * modules/getgroups (License): Change to LGPL.
5620         With permission from Jim Meyering, Paul Eggert, Eric Blake:
5621         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
5622         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
5623         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
5624
5625         nanosleep: Relicense under LGPL.
5626         * modules/nanosleep (License): Change to LGPL.
5627         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
5628         Haible:
5629         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
5630         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
5631         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
5632         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
5633
5634         futimens: Relicense under LGPL.
5635         * modules/futimens (License): Change to LGPL.
5636         With permission from Eric Blake:
5637         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
5638
5639         fflush: Relicense under LGPL.
5640         * modules/fflush (License): Change to LGPL.
5641         With permission from Eric Blake, Bruno Haible, Jim Meyering:
5642         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
5643         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
5644         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
5645
5646         tmpfile: Relicense under LGPL.
5647         * modules/tmpfile (License): Change to LGPL.
5648         With permission from Ben Pfaff:
5649         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
5650
5651         isfinite: Relicense under LGPL.
5652         * modules/isfinite (License): Change to LGPL.
5653         With permission from Ben Pfaff, Bruno Haible:
5654         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
5655         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
5656
5657         acosl..tanl: Relicense under LGPL.
5658         * modules/acosl (License): Change to LGPL.
5659         * modules/asinl (License): Likewise.
5660         * modules/atanl (License): Likewise.
5661         * modules/cosl (License): Likewise.
5662         * modules/expl (License): Likewise.
5663         * modules/logl (License): Likewise.
5664         * modules/sinl (License): Likewise.
5665         * modules/sqrtl (License): Likewise.
5666         * modules/tanl (License): Likewise.
5667         Source code originally from glibc and Paolo Bonzini. Agreements:
5668         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
5669         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
5670
5671 2011-05-05  Bruno Haible  <bruno@clisp.org>
5672
5673         signal: Define sighandler_t.
5674         * lib/signal.in.h (sighandler_t): New type.
5675         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
5676         whether sighandler_t is defined.
5677         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
5678         * modules/signal (Depends-on): Add extensions.
5679         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
5680         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
5681         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
5682
5683 2011-05-05  Eric Blake  <eblake@redhat.com>
5684
5685         maint: remove useless REPLACE_*_H macros
5686         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
5687         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
5688         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
5689         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
5690         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
5691         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
5692         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
5693         * m4/btowc.m4: Update callers.
5694         * m4/dirfd.m4: Likewise.
5695         * m4/duplocale.m4: Likewise.
5696         * m4/fchdir.m4: Likewise.
5697         * m4/fdopendir.m4: Likewise.
5698         * m4/inet_ntop.m4: Likewise.
5699         * m4/inet_pton.m4: Likewise.
5700         * m4/ioctl.m4: Likewise.
5701         * m4/mbrlen.m4: Likewise.
5702         * m4/mbrtowc.m4: Likewise.
5703         * m4/mbsinit.m4: Likewise.
5704         * m4/mbsnrtowcs.m4: Likewise.
5705         * m4/mbsrtowcs.m4: Likewise.
5706         * m4/poll.m4: Likewise.
5707         * m4/setlocale.m4: Likewise.
5708         * m4/wcrtomb.m4: Likewise.
5709         * m4/wcsnrtombs.m4: Likewise.
5710         * m4/wcsrtombs.m4: Likewise.
5711         * m4/wctob.m4: Likewise.
5712         * m4/wcwidth.m4: Likewise.
5713         * modules/posix_spawn: Likewise.
5714         * modules/posix_spawn_file_actions_addclose: Likewise.
5715         * modules/posix_spawn_file_actions_adddup2: Likewise.
5716         * modules/posix_spawn_file_actions_addopen: Likewise.
5717         * modules/posix_spawn_file_actions_destroy: Likewise.
5718         * modules/posix_spawn_file_actions_init: Likewise.
5719         * modules/posix_spawnattr_destroy: Likewise.
5720         * modules/posix_spawnattr_getflags: Likewise.
5721         * modules/posix_spawnattr_getpgroup: Likewise.
5722         * modules/posix_spawnattr_getschedparam: Likewise.
5723         * modules/posix_spawnattr_getschedpolicy: Likewise.
5724         * modules/posix_spawnattr_getsigdefault: Likewise.
5725         * modules/posix_spawnattr_getsigmask: Likewise.
5726         * modules/posix_spawnattr_init: Likewise.
5727         * modules/posix_spawnattr_setflags: Likewise.
5728         * modules/posix_spawnattr_setpgroup: Likewise.
5729         * modules/posix_spawnattr_setschedparam: Likewise.
5730         * modules/posix_spawnattr_setschedpolicy: Likewise.
5731         * modules/posix_spawnattr_setsigdefault: Likewise.
5732         * modules/posix_spawnattr_setsigmask: Likewise.
5733         * modules/posix_spawnp: Likewise.
5734
5735 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
5736
5737         Add option to do-release-commit-and-tag to specify branch.
5738         * build-aux/do-release-commit-and-tag: Add --branch.
5739
5740 2011-05-03  Bruno Haible  <bruno@clisp.org>
5741
5742         Avoid unnecessary compilation units, through conditional dependencies.
5743         * modules/accept (Depends-on): Add conditions to the dependencies.
5744         * modules/acosl (Depends-on): Likewise.
5745         * modules/argz (Depends-on): Likewise.
5746         * modules/asinl (Depends-on): Likewise.
5747         * modules/atanl (Depends-on): Likewise.
5748         * modules/atoll (Depends-on): Likewise.
5749         * modules/bind (Depends-on): Likewise.
5750         * modules/btowc (Depends-on): Likewise.
5751         * modules/canonicalize-lgpl (Depends-on): Likewise.
5752         * modules/ceil (Depends-on): Likewise.
5753         * modules/ceilf (Depends-on): Likewise.
5754         * modules/ceill (Depends-on): Likewise.
5755         * modules/chdir-long (Depends-on): Likewise.
5756         * modules/chown (Depends-on): Likewise.
5757         * modules/close (Depends-on): Likewise.
5758         * modules/connect (Depends-on): Likewise.
5759         * modules/cosl (Depends-on): Likewise.
5760         * modules/dirfd (Depends-on): Likewise.
5761         * modules/dprintf (Depends-on): Likewise.
5762         * modules/dprintf-posix (Depends-on): Likewise.
5763         * modules/error (Depends-on): Likewise.
5764         * modules/euidaccess (Depends-on): Likewise.
5765         * modules/expl (Depends-on): Likewise.
5766         * modules/faccessat (Depends-on): Likewise.
5767         * modules/fchdir (Depends-on): Likewise.
5768         * modules/fclose (Depends-on): Likewise.
5769         * modules/fcntl (Depends-on): Likewise.
5770         * modules/fdopendir (Depends-on): Likewise.
5771         * modules/fflush (Depends-on): Likewise.
5772         * modules/floor (Depends-on): Likewise.
5773         * modules/floorf (Depends-on): Likewise.
5774         * modules/floorl (Depends-on): Likewise.
5775         * modules/fnmatch (Depends-on): Likewise.
5776         * modules/fopen (Depends-on): Likewise.
5777         * modules/fprintf-posix (Depends-on): Likewise.
5778         * modules/frexp (Depends-on): Likewise.
5779         * modules/frexp-nolibm (Depends-on): Likewise.
5780         * modules/frexpl (Depends-on): Likewise.
5781         * modules/frexpl-nolibm (Depends-on): Likewise.
5782         * modules/fseek (Depends-on): Likewise.
5783         * modules/fsusage (Depends-on): Likewise.
5784         * modules/ftell (Depends-on): Likewise.
5785         * modules/ftello (Depends-on): Likewise.
5786         * modules/futimens (Depends-on): Likewise.
5787         * modules/getcwd (Depends-on): Likewise.
5788         * modules/getcwd-lgpl (Depends-on): Likewise.
5789         * modules/getdelim (Depends-on): Likewise.
5790         * modules/getdomainname (Depends-on): Likewise.
5791         * modules/getgroups (Depends-on): Likewise.
5792         * modules/gethostname (Depends-on): Likewise.
5793         * modules/getline (Depends-on): Likewise.
5794         * modules/getlogin_r (Depends-on): Likewise.
5795         * modules/getopt-posix (Depends-on): Likewise.
5796         * modules/getpeername (Depends-on): Likewise.
5797         * modules/getsockname (Depends-on): Likewise.
5798         * modules/getsockopt (Depends-on): Likewise.
5799         * modules/getsubopt (Depends-on): Likewise.
5800         * modules/getusershell (Depends-on): Likewise.
5801         * modules/glob (Depends-on): Likewise.
5802         * modules/grantpt (Depends-on): Likewise.
5803         * modules/iconv_open (Depends-on): Likewise.
5804         * modules/iconv_open-utf (Depends-on): Likewise.
5805         * modules/inet_ntop (Depends-on): Likewise.
5806         * modules/inet_pton (Depends-on): Likewise.
5807         * modules/ioctl (Depends-on): Likewise.
5808         * modules/isapipe (Depends-on): Likewise.
5809         * modules/isfinite (Depends-on): Likewise.
5810         * modules/isinf (Depends-on): Likewise.
5811         * modules/lchown (Depends-on): Likewise.
5812         * modules/ldexpl (Depends-on): Likewise.
5813         * modules/link (Depends-on): Likewise.
5814         * modules/linkat (Depends-on): Likewise.
5815         * modules/listen (Depends-on): Likewise.
5816         * modules/logl (Depends-on): Likewise.
5817         * modules/lstat (Depends-on): Likewise.
5818         * modules/mbrlen (Depends-on): Likewise.
5819         * modules/mbrtowc (Depends-on): Likewise.
5820         * modules/mbsinit (Depends-on): Likewise.
5821         * modules/mbsnrtowcs (Depends-on): Likewise.
5822         * modules/mbsrtowcs (Depends-on): Likewise.
5823         * modules/mbtowc (Depends-on): Likewise.
5824         * modules/memcmp (Depends-on): Likewise.
5825         * modules/mkdir (Depends-on): Likewise.
5826         * modules/mkdtemp (Depends-on): Likewise.
5827         * modules/mkfifo (Depends-on): Likewise.
5828         * modules/mkfifoat (Depends-on): Likewise.
5829         * modules/mknod (Depends-on): Likewise.
5830         * modules/mkostemp (Depends-on): Likewise.
5831         * modules/mkostemps (Depends-on): Likewise.
5832         * modules/mkstemp (Depends-on): Likewise.
5833         * modules/mkstemps (Depends-on): Likewise.
5834         * modules/mktime (Depends-on): Likewise.
5835         * modules/nanosleep (Depends-on): Likewise.
5836         * modules/open (Depends-on): Likewise.
5837         * modules/openat (Depends-on): Likewise.
5838         * modules/perror (Depends-on): Likewise.
5839         * modules/poll (Depends-on): Likewise.
5840         * modules/popen (Depends-on): Likewise.
5841         * modules/posix_spawn (Depends-on): Likewise.
5842         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
5843         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
5844         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
5845         * modules/posix_spawnp (Depends-on): Likewise.
5846         * modules/pread (Depends-on): Likewise.
5847         * modules/printf-posix (Depends-on): Likewise.
5848         * modules/ptsname (Depends-on): Likewise.
5849         * modules/putenv (Depends-on): Likewise.
5850         * modules/pwrite (Depends-on): Likewise.
5851         * modules/readline (Depends-on): Likewise.
5852         * modules/readlink (Depends-on): Likewise.
5853         * modules/readlinkat (Depends-on): Likewise.
5854         * modules/recv (Depends-on): Likewise.
5855         * modules/recvfrom (Depends-on): Likewise.
5856         * modules/regex (Depends-on): Likewise.
5857         * modules/remove (Depends-on): Likewise.
5858         * modules/rename (Depends-on): Likewise.
5859         * modules/renameat (Depends-on): Likewise.
5860         * modules/rmdir (Depends-on): Likewise.
5861         * modules/round (Depends-on): Likewise.
5862         * modules/roundf (Depends-on): Likewise.
5863         * modules/roundl (Depends-on): Likewise.
5864         * modules/rpmatch (Depends-on): Likewise.
5865         * modules/select (Depends-on): Likewise.
5866         * modules/send (Depends-on): Likewise.
5867         * modules/sendto (Depends-on): Likewise.
5868         * modules/setenv (Depends-on): Likewise.
5869         * modules/setlocale (Depends-on): Likewise.
5870         * modules/setsockopt (Depends-on): Likewise.
5871         * modules/shutdown (Depends-on): Likewise.
5872         * modules/sigaction (Depends-on): Likewise.
5873         * modules/signbit (Depends-on): Likewise.
5874         * modules/sigprocmask (Depends-on): Likewise.
5875         * modules/sinl (Depends-on): Likewise.
5876         * modules/sleep (Depends-on): Likewise.
5877         * modules/snprintf (Depends-on): Likewise.
5878         * modules/snprintf-posix (Depends-on): Likewise.
5879         * modules/socket (Depends-on): Likewise.
5880         * modules/sprintf-posix (Depends-on): Likewise.
5881         * modules/sqrtl (Depends-on): Likewise.
5882         * modules/stat (Depends-on): Likewise.
5883         * modules/strchrnul (Depends-on): Likewise.
5884         * modules/strdup-posix (Depends-on): Likewise.
5885         * modules/strerror (Depends-on): Likewise.
5886         * modules/strerror_r-posix (Depends-on): Likewise.
5887         * modules/strndup (Depends-on): Likewise.
5888         * modules/strnlen (Depends-on): Likewise.
5889         * modules/strptime (Depends-on): Likewise.
5890         * modules/strsep (Depends-on): Likewise.
5891         * modules/strsignal (Depends-on): Likewise.
5892         * modules/strstr-simple (Depends-on): Likewise.
5893         * modules/strtod (Depends-on): Likewise.
5894         * modules/strtoimax (Depends-on): Likewise.
5895         * modules/strtok_r (Depends-on): Likewise.
5896         * modules/strtoumax (Depends-on): Likewise.
5897         * modules/symlink (Depends-on): Likewise.
5898         * modules/symlinkat (Depends-on): Likewise.
5899         * modules/tanl (Depends-on): Likewise.
5900         * modules/tcgetsid (Depends-on): Likewise.
5901         * modules/tmpfile (Depends-on): Likewise.
5902         * modules/trunc (Depends-on): Likewise.
5903         * modules/truncf (Depends-on): Likewise.
5904         * modules/truncl (Depends-on): Likewise.
5905         * modules/uname (Depends-on): Likewise.
5906         * modules/unlink (Depends-on): Likewise.
5907         * modules/unlockpt (Depends-on): Likewise.
5908         * modules/unsetenv (Depends-on): Likewise.
5909         * modules/usleep (Depends-on): Likewise.
5910         * modules/utimensat (Depends-on): Likewise.
5911         * modules/vasprintf (Depends-on): Likewise.
5912         * modules/vdprintf (Depends-on): Likewise.
5913         * modules/vdprintf-posix (Depends-on): Likewise.
5914         * modules/vfprintf-posix (Depends-on): Likewise.
5915         * modules/vprintf-posix (Depends-on): Likewise.
5916         * modules/vsnprintf (Depends-on): Likewise.
5917         * modules/vsnprintf-posix (Depends-on): Likewise.
5918         * modules/vsprintf-posix (Depends-on): Likewise.
5919         * modules/wcrtomb (Depends-on): Likewise.
5920         * modules/wcscasecmp (Depends-on): Likewise.
5921         * modules/wcscspn (Depends-on): Likewise.
5922         * modules/wcsdup (Depends-on): Likewise.
5923         * modules/wcsncasecmp (Depends-on): Likewise.
5924         * modules/wcsnrtombs (Depends-on): Likewise.
5925         * modules/wcspbrk (Depends-on): Likewise.
5926         * modules/wcsrtombs (Depends-on): Likewise.
5927         * modules/wcsspn (Depends-on): Likewise.
5928         * modules/wcsstr (Depends-on): Likewise.
5929         * modules/wcstok (Depends-on): Likewise.
5930         * modules/wcswidth (Depends-on): Likewise.
5931         * modules/wctob (Depends-on): Likewise.
5932         * modules/wctomb (Depends-on): Likewise.
5933         * modules/wctype (Depends-on): Likewise.
5934         * modules/wcwidth (Depends-on): Likewise.
5935         * modules/write (Depends-on): Likewise.
5936
5937 2011-05-03  Bruno Haible  <bruno@clisp.org>
5938
5939         Support for conditional dependencies.
5940         * doc/gnulib.texi (Module description): Document the syntax of
5941         conditional dependencies.
5942         * gnulib-tool: New option --conditional-dependencies.
5943         (func_usage): Document it.
5944         (cond_dependencies): New variable.
5945         (func_get_automake_snippet_conditional,
5946         func_get_automake_snippet_unconditional): New functions, extracted from
5947         func_get_automake_snippet.
5948         (func_get_automake_snippet): Use them.
5949         (sed_first_32_chars): New variable.
5950         (func_module_shellfunc_name): New function.
5951         (func_module_shellvar_name): New function.
5952         (func_module_conditional_name): New function.
5953         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
5954         func_cond_module_condition): New functions.
5955         (func_modules_transitive_closure): Add support for conditional
5956         dependencies.
5957         (func_emit_lib_Makefile_am): For a conditional module, enclose the
5958         conditional automake snippet in an automake conditional.
5959         (func_emit_autoconf_snippets): Emit shell functions that contain the
5960         code for conditional modules.
5961         (func_import, func_create_testdir): Update specification.
5962
5963 2011-05-03  Eric Blake  <eblake@redhat.com>
5964
5965         test-getaddrinfo: report error information
5966         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
5967
5968 2011-05-03  Jim Meyering  <meyering@redhat.com>
5969
5970         bootstrap: avoid build failure when $GZIP is set
5971         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
5972         program name.  If defined at all, it is supposed to list gzip options.
5973         Reported by Alan Curry in http://debbugs.gnu.org/8609
5974
5975 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
5976
5977         readme-release: new module with release instructions
5978         * modules/readme-release: New module.
5979         * top/README-release: New file, from coreutils, grep, diffutils.
5980         * MODULES.html.sh (Support for maintaining and releasing): Add it.
5981
5982 2011-05-02  Eric Blake  <eblake@redhat.com>
5983
5984         fflush: also replace fclose when fixing fflush
5985         * modules/fflush (Depends-on): Add fclose.
5986         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
5987         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
5988         memstreams with no backing fd.
5989         * doc/posix-functions/fclose.texi (fclose): Document the use of
5990         fflush module to fix the bug.
5991         * tests/test-fclose.c (main): Relax test when fclose is used in
5992         isolation.
5993
5994         fclose: add some tests
5995         * modules/fclose-tests: New test module.
5996         * tests/test-fclose.c: New file.
5997         * doc/posix-functions/fclose.texi (fclose): Document the bug.
5998
5999         fclose: reduced dependencies
6000         * modules/fclose (Depends-on): Switch from fflush/fseeko to
6001         simpler lseek.
6002         * lib/fclose.c (rpl_fclose): Likewise.
6003         Reported by Simon Josefsson.
6004
6005         exit: drop remaining clients
6006         * modules/argmatch (Depends-on): Replace exit with stdlib.
6007         * modules/copy-file (Depends-on): Likewise.
6008         * modules/execute (Depends-on): Likewise.
6009         * modules/exitfail (Depends-on): Likewise.
6010         * modules/obstack (Depends-on): Likewise.
6011         * modules/pagealign_alloc (Depends-on): Likewise.
6012         * modules/pipe-filter-gi (Depends-on): Likewise.
6013         * modules/pipe-filter-ii (Depends-on): Likewise.
6014         * modules/savewd (Depends-on): Likewise.
6015         * modules/spawn-pipe (Depends-on): Likewise.
6016         * modules/wait-process (Depends-on): Likewise.
6017         * modules/xsetenv (Depends-on): Likewise.
6018         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
6019         * modules/git-merge-changelog (Depends-on): Likewise.
6020         * modules/long-options (Depends-on): Likewise.
6021         * modules/pt_chown (Depends-on): Likewise.
6022         * modules/sysexits (Depends-on): Likewise.
6023
6024         freading: relax license from LGPLv3+ to LGPLv2+
6025         * modules/freading (License): Relax LGPL version.
6026
6027 2011-05-02  Bruno Haible  <bruno@clisp.org>
6028
6029         fchdir: Remove unused dependencies.
6030         * modules/fchdir (Depends-on): Remove include_next.
6031
6032 2011-05-02  Bruno Haible  <bruno@clisp.org>
6033
6034         gnulib-tool: Refactor.
6035         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
6036         from func_emit_autoconf_snippets.
6037         (func_emit_autoconf_snippets): Use it.
6038
6039 2011-05-02  Simon Josefsson  <simon@josefsson.org>
6040
6041         * NEWS: Document removal of 'exit'.
6042         * modules/exit: Remove file.
6043
6044 2011-05-01  Bruno Haible  <bruno@clisp.org>
6045
6046         Update DEPENDENCIES.
6047         * DEPENDENCIES (gettext): Recommend the newest release.
6048         Reported by Simon Josefsson.
6049
6050 2011-05-01  Bruno Haible  <bruno@clisp.org>
6051
6052         gnulib-tool: Reduce code duplication.
6053         * gnulib-tool (func_emit_autoconf_snippets): New function.
6054         (func_import, func_create_testdir): Use it.
6055
6056 2011-04-30  Eric Blake  <eblake@redhat.com>
6057
6058         fclose: don't fail on non-seekable input stream
6059         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
6060         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
6061         since fflush is allowed to fail in that case.
6062
6063 2011-04-30  Bruno Haible  <bruno@clisp.org>
6064
6065         dup3: cleanup
6066         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
6067
6068 2011-04-30  Bruno Haible  <bruno@clisp.org>
6069
6070         netdb: Make it work in C++ mode.
6071         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
6072         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
6073         module.
6074         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
6075         gl_MODULE_INDICATOR_FOR_TESTS.
6076         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
6077         * modules/netdb-c++-tests: New file.
6078         * tests/test-netdb-c++.cc: New file.
6079
6080 2011-04-30  Bruno Haible  <bruno@clisp.org>
6081
6082         New modules 'vfscanf', 'vscanf'.
6083         * modules/vfscanf: New file.
6084         * modules/vscanf: New file.
6085         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
6086         here.
6087         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
6088         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
6089
6090 2011-04-30  Bruno Haible  <bruno@clisp.org>
6091
6092         passfd: Add comments.
6093         * lib/passfd.c: Add comments about platforms.
6094
6095 2011-04-30  Bruno Haible  <bruno@clisp.org>
6096
6097         sys_uio: Make <sys/uio.h> self-contained.
6098         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
6099         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
6100
6101 2011-04-30  Bruno Haible  <bruno@clisp.org>
6102
6103         sys_socket: Ensure 'struct iovec' definition.
6104         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
6105         <sys/socket.h>.
6106         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
6107
6108 2011-04-30  Bruno Haible  <bruno@clisp.org>
6109
6110         sys_uio: Protect definition of 'struct iovec'.
6111         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
6112         it as a C struct.
6113
6114 2011-04-30  Bruno Haible  <bruno@clisp.org>
6115
6116         manywarnings: fix indentation
6117         * m4/manywarnings.m4: Indent by 2 spaces consistently.
6118
6119 2011-04-30  Pádraig Brady <P@draigBrady.com>
6120
6121         manywarnings: add -Wno-missing-field-initializers if needed.
6122         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
6123         option if it's needed to allow initialization with { 0, }
6124
6125 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
6126
6127         announce-gen: cosmetic improvement
6128         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
6129
6130 2011-04-29  Jim Meyering  <meyering@redhat.com>
6131
6132         vc-list-files: indent with spaces, not TABs
6133         * build-aux/vc-list-files: Convert leading TABs to spaces,
6134         to match the style of most other files in gnulib.
6135
6136         announce-gen: indent with spaces, not TABs
6137         * build-aux/announce-gen: Convert all TABs to spaces, to match
6138         the style of most other files in gnulib.
6139
6140 2011-04-29  Eric Blake  <eblake@redhat.com>
6141
6142         quotearg: avoid uninitialized variable use
6143         * lib/quotearg.c (quoting_options_from_style): Initialize
6144         remaining fields, and ensure that custom styles are only used via
6145         quoting_options rather than quoting_style.
6146
6147 2011-04-29  Jim Meyering  <meyering@redhat.com>
6148
6149         maint.mk: remove unused VC-tag variable
6150         * top/maint.mk (VC-tag): Remove unused variable.
6151
6152 2011-04-29  Bruno Haible  <bruno@clisp.org>
6153
6154         netdb: fix gai_strerror replacements
6155         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
6156         * modules/netdb: Substitute it.
6157
6158 2011-04-29  Jim Meyering  <meyering@redhat.com>
6159
6160         test-getcwd.c: avoid new set-but-not-used warning
6161         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
6162         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
6163         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
6164         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
6165
6166         test-hash.c: avoid a new shadowing warning
6167         * tests/test-hash.c (main): Don't shadow "dup".
6168
6169 2011-04-28  Eric Blake  <eblake@redhat.com>
6170
6171         getaddrinfo: fix gai_strerror signature
6172         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
6173         and work around mingw with UNICODE defined.
6174         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
6175         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
6176         * modules/netdb (Makefile.am): Substitute it.
6177         * lib/netdb.in.h (gai_strerror): Declare replacement.
6178         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
6179         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
6180         the fix.
6181
6182         getsockopt: avoid compiler warning
6183         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
6184         Reported by Matthias Bolte.
6185
6186         tests: drop unused link dependency
6187         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
6188         * modules/dirent-safer-tests (Makefile.am): Likewise.
6189         * modules/fdopendir-tests (Makefile.am): Likewise.
6190         * modules/mkfifoat-tests (Makefile.am): Likewise.
6191         * modules/openat-safer-tests (Makefile.am): Likewise.
6192         * modules/openat-tests (Makefile.am): Likewise.
6193         * modules/readlinkat-tests (Makefile.am): Likewise.
6194         * modules/symlinkat-tests (Makefile.am): Likewise.
6195         * modules/linkat-tests (Makefile.am): Likewise.
6196         (Depends-on): Switch to filenamecat-lgpl.
6197         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
6198         LIBINTL.
6199         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
6200         * tests/test-linkat.c (main): Don't require xalloc.
6201
6202         hash, mgetgroups: drop xalloc dependency
6203         * lib/hash.c (includes): Adjust includes.
6204         * lib/mgetgroups.c (includes): Likewise.
6205         (xgetgroups): Move...
6206         * lib/xgetgroups.c: ...to new file.
6207         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
6208         * modules/xgetgroups: New file, split from...
6209         * modules/mgetgroups: ...here.
6210         (Depends-on): Add xalloc-oversized.
6211         * modules/hash (Depends-on): Likewise.
6212         * modules/hash-tests (Depends-on): Drop xalloc.
6213         (test_hash_LDADD): Drop unused library.
6214         * tests/test-hash.c (main): Break xalloc dependency.
6215         (includes): Drop unused include.
6216
6217         xalloc-oversized: new module
6218         * modules/xalloc-oversized: New module.
6219         * modules/xalloc (Depends-on): Add it.
6220         * lib/xalloc.h (xalloc_oversized): Move...
6221         * lib/xalloc-oversized.h: ...into new file.
6222
6223         utimecmp: drop dependency on xmalloc
6224         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
6225         due to memory pressure.
6226         * modules/utimecmp (Depends-on): Drop xalloc.
6227
6228 2011-04-27  Eric Blake  <eblake@redhat.com>
6229
6230         getcwd: fix mingw bugs
6231         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
6232         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
6233         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
6234
6235 2011-04-27  Bruno Haible  <bruno@clisp.org>
6236
6237         mkstemps: Ensure declaration on MacOS X 10.5.
6238         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
6239         * doc/glibc-functions/mkstemps.texi: Document header file problem on
6240         MacOS X.
6241
6242 2011-04-27  Bruno Haible  <bruno@clisp.org>
6243
6244         mkstemp: More documentation.
6245         * doc/posix-functions/mkstemp.texi: Document header file problem on
6246         MacOS X.
6247
6248 2011-04-27  Bruno Haible  <bruno@clisp.org>
6249
6250         mkstemp: Tweak configure message when cross-compiling.
6251         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
6252         result as a guess.
6253
6254 2011-04-27  Bruno Haible  <bruno@clisp.org>
6255
6256         clean-temp: Clarify what it does.
6257         * lib/clean-temp.h: Add more comments.
6258         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
6259         module.
6260         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
6261         * doc/glibc-functions/mkstemps.texi: Likewise.
6262         * doc/glibc-functions/mkostemps.texi: Likewise.
6263
6264 2011-04-27  Eric Blake  <eblake@redhat.com>
6265
6266         fchdir: avoid extra chdir and fix test
6267         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
6268         getcwd-lgpl.
6269         * lib/fchdir.c (get_name): Any absolute name will do; it does not
6270         have to be canonical.
6271         (canonicalize_file_name): Drop unused macro.
6272         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
6273
6274         filenamecat-lgpl: fix licence
6275         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
6276         when it was first created.
6277
6278         linkat, renameat: add missing dependency
6279         * modules/linkat (Depends-on): Require getcwd-lgpl.
6280         * modules/renameat (Depends-on): Likewise.
6281
6282         tests: reduce dependencies
6283         * tests/test-linkat.c (main): Use lighter-weight getcwd.
6284         * tests/test-renameat.c (main): Likewise.
6285         * modules/linkat-tests (Depends-on): Relax dependency.
6286         * modules/renameat-tests (Depends-on): Likewise.
6287         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
6288         dependency explicit.
6289
6290         save-cwd: reduce default dependency
6291         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
6292         * lib/save-cwd.c: Update comments.
6293         * NEWS: Document the semantic change.
6294
6295         getcwd: enhance tests
6296         * tests/test-getcwd-lgpl.c: New file, taken from...
6297         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
6298         repeat long path stress tests from m4 probe.
6299         * modules/getcwd-lgpl-tests: New module.
6300         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
6301         * m4/getcwd-abort-bug.m4: Update comment.
6302         * m4/getcwd-path-max.m4: Likewise.
6303
6304         getcwd-lgpl: new module
6305         * modules/getcwd-lgpl: New module.
6306         * lib/getcwd-lgpl.c: New file.
6307         * doc/posix-functions/getcwd.texi (getcwd): Document it.
6308         * MODULES.html.sh (lacking POSIX:2008): Likewise.
6309         * modules/getcwd (configure.ac): Set C witness.
6310         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
6311
6312         getcwd: tweak comments
6313         * m4/getcwd-abort-bug.m4: Fix comments.
6314         * m4/getcwd-path-max.m4: Likewise.
6315         * m4/getcwd.m4: Likewise.
6316
6317 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
6318         and Eric Blake  <eblake@redhat.com>
6319
6320         mkstemp: replace if system version uses wrong permissions
6321         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
6322         read/write mode bits set in file created by mkstemp.
6323         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
6324
6325 2011-04-27  Eric Blake  <eblake@redhat.com>
6326
6327         passfd: avoid compiler warning
6328         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
6329         Reported by Laine Stump.
6330
6331 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
6332
6333         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
6334         required by the NetBSD (and perhaps other 4.4BSD derived) join.
6335
6336 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
6337         and Eric Blake  <eblake@redhat.com>
6338
6339         mkstemp: mention clean-temp module
6340         * lib/mkstemp.c: Add comment.
6341         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
6342
6343 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
6344
6345         inttypes: also provide default values for 32-bit tests
6346         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
6347         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
6348
6349 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
6350
6351         strtoumax: remove dependency on strtoimax
6352         This is like the strtoull change of yesterday.
6353         * modules/strtoumax (Files): Add lib/strtoimax.c.
6354         (Depends-on): Remove strtoimax and add verify.
6355
6356         inttypes-incomplete: new module
6357         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
6358         all but the PRI* and SCN* parts of gl_INTTYPES_H.
6359         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
6360         of gl_INTTYPES_H.
6361         (gl_INTTYPES_H): Rewrite in terms of these new macros.
6362         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
6363         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
6364         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
6365         * modules/strtoumax, modules/xstrtol (Depends-on):
6366         Depend on inttypes-incomplete, not inttypes.
6367         * modules/inttypes-incomplete: New module, containing the contents
6368         of the old modules/inttypes module, except that the Files: section
6369         omits m4/inttypes-pri.m4, and the configure.ac section invokes
6370         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
6371         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
6372         (Depends-on): Depend only on inttypes-incomplete.
6373         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
6374
6375         inttypes: omit now-redundant strtoimax and strtoumax work
6376         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
6377         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
6378
6379         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
6380         This supports apps that need pointers to strtoimax and strtoumax,
6381         and ports to HP-UX 11.00 64.bit, which has macros that expand to
6382         nonexistent functions.  See
6383         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
6384         et seq.
6385         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
6386         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
6387         a macro.
6388         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
6389
6390 2011-04-25  Simon Josefsson  <simon@josefsson.org>
6391
6392         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
6393
6394 2011-04-25  Bruno Haible  <bruno@clisp.org>
6395
6396         strtol, strtoul: Mark modules as obsolete.
6397         * modules/strtol (Status, Notice): New sections.
6398         * modules/strtoul (Status, Notice): New sections.
6399
6400 2011-04-25  Bruno Haible  <bruno@clisp.org>
6401
6402         strtod: Remove check for strtod, unless supporting old platforms.
6403         * modules/strtod-obsolete: New file.
6404         * m4/strtod-obsolete.m4: New file.
6405         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
6406         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
6407         * modules/strtod (Depends-on): Add strtod-obsolete.
6408         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
6409
6410 2011-04-25  Bruno Haible  <bruno@clisp.org>
6411
6412         strcase: Make module obsolete.
6413         * modules/strcase (Status, Notice): New sections.
6414
6415 2011-04-25  Bruno Haible  <bruno@clisp.org>
6416
6417         dup2: Remove check for dup2, unless supporting old obsolete platforms.
6418         * modules/dup2-obsolete: New file.
6419         * m4/dup2-obsolete.m4: New file.
6420         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
6421         gl_FUNC_DUP2_OBSOLETE is not also defined.
6422         * modules/dup2 (Depends-on): Add dup2-obsolete.
6423         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
6424
6425 2011-04-25  Bruno Haible  <bruno@clisp.org>
6426
6427         strnlen: Avoid memchr related link error on old obsolete platforms.
6428         * modules/memchr-obsolete: New file.
6429         * m4/memchr-obsolete.m4: New file.
6430         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
6431         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
6432         * modules/memchr (Depends-on): Add memchr-obsolete.
6433         * modules/strnlen (Depends-on): Likewise.
6434         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
6435
6436 2011-04-25  Jim Meyering  <meyering@redhat.com>
6437
6438         maint.mk: makefile_at_at_check extend and clean up
6439         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
6440         in addition to */Makefile.am.
6441         Exempt legitimate uses of @VAR@ notation, e.g.,
6442         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
6443         Remove obsolete coreutils-specific comment.
6444         Prompted by discussion here:
6445         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
6446
6447 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
6448
6449         strtoul: remove dependency on strtol
6450         This is so that 'configure' need not check for strtol merely because
6451         the application needs strtoul.
6452         * modules/strtoul (Files): Add lib/strtol.c.
6453         (Depends-on): Remove strtol.
6454
6455         strtoull: remove dependency on strtoul
6456         This is like the strtoll change.
6457         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
6458         (Depends-on): Remove strtoul.
6459
6460         strtoll: remove dependency on strtol
6461         This is so that 'configure' need not check for strtol merely because
6462         the application needs strtoll.
6463         * modules/strtoll (Files): Add lib/strtol.c.
6464         (Depends-on): Remove strtol.
6465
6466 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
6467
6468         inttypes: Move some configure check to module 'imaxdiv'.
6469         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
6470         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
6471         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
6472
6473 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
6474
6475         inttypes: Move some configure check to module 'imaxabs'.
6476         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
6477         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
6478         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
6479
6480 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
6481
6482         inttypes: Remove configure tests that are not needed since 2009-12-31.
6483         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
6484         gl_cv_header_working_inttypes_h.
6485
6486 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
6487
6488         * modules/strnlen (Depends-on): Remove memchr.
6489         The strnlen implementation doesn't need the memchr module's fixes; see
6490         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
6491
6492         strtol: remove dependency on wchar
6493         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
6494         * modules/strtol (Depends-on): Remove wchar.
6495
6496 2011-04-21  Eric Blake  <eblake@redhat.com>
6497
6498         passfd: fix test regression on Linux
6499         * modules/passfd-tests (configure.ac): Correct socketpair check.
6500
6501         passfd: speed up configure and drop unused code
6502         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
6503         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
6504         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
6505         Instead of probing at configure for unix_scm_rights_bsd44_way,
6506         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
6507         check to a struct member probe.
6508         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
6509         (sendfd, recvfd): Update preprocessor checks.
6510         * modules/passfd (Files): Reflect rename, and drop unused file.
6511         (Depends-on): Drop unused dependency.
6512
6513         passfd: allow compilation on mingw
6514         * modules/sys_socket (Depends-on): Add sys_uio.
6515         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
6516         iovec and a minimal struct msghdr.
6517         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
6518         * tests/test-sys_socket.c (main): Enhance test.
6519         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
6520         guaranteed to provide what we need.
6521         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
6522         * modules/passfd-tests (Depends-on): Add sys_wait.
6523         * tests/test-passfd.c (main): Skip test on mingw, for now.
6524         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
6525         partial 'struct msghdr' implementation.
6526
6527         sys_uio: new module
6528         * modules/sys_uio: New module.
6529         * modules/sys_uio-tests: Likewise.
6530         * lib/sys_uio.in.h: New file.
6531         * m4/sys_uio_h.m4: Likewise.
6532         * tests/test-sys_uio.c: Likewise.
6533         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
6534         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
6535
6536 2011-04-20  Jim Meyering  <meyering@redhat.com>
6537
6538         useless-if-before-free: avoid false-positive
6539         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
6540         disjunct so that it too requires a terminating ";".  Without that,
6541         this script would identify as useless one statement from gcc that
6542         was not:
6543           if (aligned_ptr)
6544             free (((void **) aligned_ptr) [-1]);
6545
6546 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
6547
6548         doc: update users.txt.
6549         * users.txt: Add barcode.
6550
6551 2011-04-19  Bruno Haible  <bruno@clisp.org>
6552
6553         ioctl: Remove link dependency on native Windows.
6554         * lib/fd-hook.h: Renamed from lib/close-hook.h.
6555         (gl_close_fn, gl_ioctl_fn): New types.
6556         (struct fd_hook): Renamed from struct close_hook. Change type of
6557         private_close_fn field. Add private_ioctl_fn field.
6558         (close_hook_fn): Add parameter for primary close method.
6559         (execute_close_hooks, execute_all_close_hooks): Likewise.
6560         (ioctl_hook_fn): New type.
6561         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
6562         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
6563         argument.
6564         (unregister_fd_hook): Renamed from unregister_close_hook.
6565         * lib/fd-hook.c: Renamed from lib/close-hook.c.
6566         Don't include <unistd.h>.
6567         (close): Remove undef.
6568         (anchor): Update.
6569         (execute_close_hooks): Add argument for primary close method.
6570         (execute_all_close_hooks): Likewise.
6571         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
6572         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
6573         argument. Allow each argument to be NULL.
6574         (unregister_fd_hook): Renamed from unregister_close_hook.
6575         * lib/close.c (rpl_close): Pass 'close' function pointer to
6576         execute_all_close_hooks.
6577         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
6578         (primary_ioctl): New function.
6579         (ioctl): Don't call ioctlsocket here. Instead, call
6580         execute_all_ioctl_hooks.
6581         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
6582         close method.
6583         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
6584         (fd_sockets_hook): Renamed from close_sockets_hook.
6585         (gl_sockets_startup, gl_sockets_cleanup): Update.
6586         * modules/fd-hook: Renamed from modules/close-hook. Update.
6587         * modules/close (Depends-on): Add fd-hook, remove close-hook.
6588         * modules/sockets (Depends-on): Likewise.
6589         * modules/ioctl (Depends-on): Add fd-hook.
6590         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
6591         GNULIB_SOCKET.
6592
6593 2011-04-19  Bruno Haible  <bruno@clisp.org>
6594
6595         Move the support of O_NONBLOCK in open() to the 'open' module.
6596         * modules/nonblocking (Depends-on): Remove 'open'.
6597         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
6598         gl_cv_have_open_O_NONBLOCK.
6599         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
6600         O_NONBLOCK support.
6601         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
6602
6603 2011-04-17  Bruno Haible  <bruno@clisp.org>
6604
6605         pipe2: Simplify code.
6606         * lib/pipe2.c (pipe2): Reduce code duplication.
6607
6608 2011-04-17  Bruno Haible  <bruno@clisp.org>
6609
6610         nonblocking: Add comment.
6611         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
6612
6613 2011-04-17  Bruno Haible  <bruno@clisp.org>
6614
6615         nonblocking: Add tests for sockets.
6616         * tests/test-nonblocking-socket.sh: New file.
6617         * tests/test-nonblocking-socket-main.c: New file.
6618         * tests/test-nonblocking-socket-child.c: New file.
6619         * tests/test-nonblocking-socket.h: New file.
6620         * tests/socket-server.h: New file.
6621         * tests/socket-client.h: New file.
6622         * modules/nonblocking-socket-tests: New file.
6623         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
6624
6625 2011-04-17  Bruno Haible  <bruno@clisp.org>
6626
6627         nonblocking: Add tests for pipes.
6628         * tests/test-nonblocking-pipe.sh: New file.
6629         * tests/test-nonblocking-pipe-main.c: New file.
6630         * tests/test-nonblocking-pipe-child.c: New file.
6631         * tests/test-nonblocking-pipe.h: New file.
6632         * tests/test-nonblocking-writer.h: New file.
6633         * tests/test-nonblocking-reader.h: New file.
6634         * tests/test-nonblocking-misc.h: New file.
6635         * modules/nonblocking-pipe-tests: New file.
6636         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
6637
6638 2011-04-16  Bruno Haible  <bruno@clisp.org>
6639
6640         gettext: Clarify the needed programmer actions.
6641         * modules/gettext (Notice): New field.
6642         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
6643
6644 2011-04-16  Bruno Haible  <bruno@clisp.org>
6645
6646         strchrnul: Tweak last commit.
6647         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
6648         bug.
6649         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
6650         as in _GL_FUNCDECL_SYS.
6651         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
6652         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
6653
6654 2011-04-15  Eric Blake  <eblake@redhat.com>
6655
6656         strchrnul: work around cygwin bug
6657         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
6658         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
6659         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
6660         * modules/string (Makefile.am): Substitute it.
6661         * lib/string.in.h (strchrnul): Use it.
6662
6663 2011-04-15  Bruno Haible  <bruno@clisp.org>
6664
6665         Don't require lib/stdio-write.c when only module 'stdio' is used.
6666         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
6667         invocation.
6668         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
6669
6670 2011-04-14  Bruno Haible  <bruno@clisp.org>
6671
6672         Support non-blocking pipe I/O in read() on native Windows.
6673         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
6674         (read): New declaration.
6675         * lib/read.c: New file.
6676         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
6677         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
6678         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
6679         vscanf): New declarations.
6680         * lib/stdio-read.c: New file.
6681         * m4/read.m4: New file.
6682         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
6683         REPLACE_READ.
6684         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
6685         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
6686         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
6687         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
6688         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
6689         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
6690         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
6691         * modules/read: New file.
6692         * modules/nonblocking (Files): Add lib/stdio-read.c.
6693         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
6694         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
6695         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
6696         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
6697         * modules/pread (Depends-on): Add read.
6698         * modules/safe-read (Depends-on): Likewise.
6699         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
6700         gets, scanf, vfscanf, vscanf): Verify signatures.
6701         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
6702         problem with non-blocking pipes.
6703         * doc/posix-functions/fgetc.texi: Likewise.
6704         * doc/posix-functions/fgets.texi: Likewise.
6705         * doc/posix-functions/fread.texi: Likewise.
6706         * doc/posix-functions/fscanf.texi: Likewise.
6707         * doc/posix-functions/getc.texi: Likewise.
6708         * doc/posix-functions/getchar.texi: Likewise.
6709         * doc/posix-functions/gets.texi: Likewise.
6710         * doc/posix-functions/scanf.texi: Likewise.
6711         * doc/posix-functions/vfscanf.texi: Likewise.
6712         * doc/posix-functions/vscanf.texi: Likewise.
6713
6714 2011-04-14  Bruno Haible  <bruno@clisp.org>
6715
6716         Support non-blocking pipe I/O in write() on native Windows.
6717         * lib/write.c (rpl_write): Split a write request that failed merely
6718         because the byte count was larger than the pipe buffer's size.
6719         * doc/posix-functions/write.texi: Mention the problem with large byte
6720         counts.
6721
6722 2011-04-14  Bruno Haible  <bruno@clisp.org>
6723
6724         wchar: Ensure that wchar_t gets defined on uClibc.
6725         * lib/wchar.in.h: On uClibc, include <stddef.h>.
6726         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
6727
6728 2011-04-13  Bruno Haible  <bruno@clisp.org>
6729
6730         safe-write, full-read: Avoid unnecessary compilation units.
6731         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
6732         (Depends-on): Remove safe-read. Add ssize_t.
6733         * modules/full-read (Files): Add lib/full-write.c.
6734         (Depends-on): Add full-write.
6735
6736 2011-04-13  Bruno Haible  <bruno@clisp.org>
6737
6738         Support non-blocking pipe I/O and SIGPIPE in pwrite().
6739         * modules/pwrite (Depends-on): Add 'write'.
6740
6741 2011-04-13  Bruno Haible  <bruno@clisp.org>
6742
6743         Support non-blocking pipe I/O in write() on native Windows.
6744         * lib/unistd.in.h (write): Enable replacement also if
6745         GNULIB_UNISTD_H_NONBLOCKING is 1.
6746         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
6747         (rpl_write): When failing to write on a non-blocking pipe, change
6748         errno from ENOSPC to EAGAIN.
6749         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
6750         putchar, puts, vfprintf, vprintf): Enable replacement also if
6751         GNULIB_STDIO_H_NONBLOCKING is 1.
6752         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
6753         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
6754         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
6755         CALL_WITH_SIGPIPE_EMULATION.
6756         (CALL_WITH_SIGPIPE_EMULATION): Use them.
6757         * m4/nonblocking.m4: New file.
6758         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
6759         for non-blocking I/O support.
6760         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6761         GNULIB_UNISTD_H_NONBLOCKING.
6762         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
6763         required for non-blocking I/O support.
6764         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
6765         * modules/nonblocking (Files): Add m4/nonblocking.m4,
6766         lib/stdio-write.c, m4/asm-underscore.m4.
6767         (Depends-on): Add stdio, unistd.
6768         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
6769         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
6770         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
6771         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
6772         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
6773         problem with non-blocking pipes.
6774         * doc/posix-functions/fputc.texi: Likewise.
6775         * doc/posix-functions/fputs.texi: Likewise.
6776         * doc/posix-functions/fwrite.texi: Likewise.
6777         * doc/posix-functions/printf.texi: Likewise.
6778         * doc/posix-functions/putc.texi: Likewise.
6779         * doc/posix-functions/putchar.texi: Likewise.
6780         * doc/posix-functions/puts.texi: Likewise.
6781         * doc/posix-functions/vfprintf.texi: Likewise.
6782         * doc/posix-functions/vprintf.texi: Likewise.
6783         * doc/posix-functions/write.texi: Likewise.
6784
6785 2011-04-10  Jim Meyering  <meyering@redhat.com>
6786
6787         maint.mk: prohibit doubled words
6788         Detect them also when they're separated by a newline.
6789         There are 3 ways to customize it:
6790           - disable the test on a per file basis, as usual with rules using
6791             $(VC_LIST_EXCEPT)
6792           - replace the default doubled-word-selecting regexp (affects all files)
6793           - ignore a particular file-vs-doubled-word match
6794         I nearly used that last one to ignore the "is is" match in
6795         coreutils' NEWS file, since the text was "ls -is is ..."
6796         To do that, I would have added this line to cfg.mk:
6797           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
6798         but it would have ignored any "is is" match in NEWS.
6799         Low probability, but still...
6800         Instead, I changed the text, slightly:
6801           -  ls -is is now consistent with ls -lis in ignoring values returned
6802           +  "ls -is" is now consistent with ls -lis in ignoring values returned
6803         * top/maint.mk (prohibit_double_word_RE_): Provide default.
6804         (prohibit_doubled_word_): Define.
6805         (sc_prohibit_doubled_word): New rule.
6806         (sc_prohibit_the_the): Remove.  Subsumed by the above.
6807
6808 2011-04-10  Jim Meyering  <meyering@redhat.com>
6809
6810         maint: fix doubled-word typo in comment
6811         * m4/gethostname.m4: s/is is/it is/
6812         * m4/getdomainname.m4: Likewise.
6813
6814 2011-04-10  Jim Meyering  <meyering@redhat.com>
6815
6816         maint: remove doubled word: s/it it/it/
6817         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
6818
6819 2011-04-10  Jim Meyering  <meyering@redhat.com>
6820
6821         maint.mk: remove useless semicolon and backslash
6822         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
6823         semicolon and backslash.
6824
6825 2011-04-10  Bruno Haible  <bruno@clisp.org>
6826
6827         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
6828         * modules/stdint-tests (Depends-on): Add wchar.
6829
6830 2011-04-10  Jim Meyering  <meyering@redhat.com>
6831
6832         maint: remove doubled words in comments, e.g., s/a a/a/
6833         * lib/strptime.c (day_of_the_week): s/the the/the/
6834         * tests/test-chown.h (test_chown): s/a a/a/
6835
6836         test-chown.h: correct a cast
6837         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
6838         when the destination is a stat.st_gid.
6839
6840 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
6841
6842         getaddrinfo: Fix test for sa_len member.
6843         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
6844         include <sys/types.h> before <sys/socket.h>.
6845
6846 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
6847
6848         maint: change "can not" to "cannot"
6849         * doc/posix-functions/iconv.texi (iconv): This one crossed line
6850         boundaries.
6851
6852 2011-04-09  Jim Meyering  <meyering@redhat.com>
6853
6854         maint: change "a a" to "a"
6855         * tests/test-lchown.h (test_lchown): s/a a/a/
6856
6857         maint.mk: prohibit \<the the\>
6858         * top/maint.mk (sc_prohibit_the_the): New rule.
6859
6860         maint: fix "the the" in comment
6861         * lib/count-one-bits.h: s/the the/the/
6862
6863         maint: change "can not" to "cannot"
6864         But do not change the occurrences in maintain.texi or in
6865         build-aux/po/Makefile.in.in, which I presume comes from gettext.
6866         * doc/gnulib-tool.texi: s/can not/cannot/
6867         * doc/posix-functions/accept.texi (accept): Likewise.
6868         * doc/posix-functions/socket.texi (socket): Likewise.
6869         * lib/mbrtowc.c: Likewise.
6870
6871         maint.mk: prohibit use of "can not"
6872         * top/maint.mk (sc_prohibit_can_not): New rule.
6873         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
6874
6875 2011-04-09  Bruno Haible  <bruno@clisp.org>
6876
6877         careadlinkat: Guard against misuse of careadlinkatcwd.
6878         * lib/careadlinkat.c: Include <stdlib.h>.
6879         (careadlinkatcwd): Check that the fd argument is as expected.
6880
6881 2011-04-09  Bruno Haible  <bruno@clisp.org>
6882
6883         careadlinkat: Use common coding style.
6884         * lib/careadlinkat.c: Move gnulib includes after system includes.
6885
6886 2011-04-09  Bruno Haible  <bruno@clisp.org>
6887
6888         careadlinkat: Clarify specification.
6889         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
6890         (careadlinkatcwd): Add comment.
6891         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
6892
6893 2011-04-09  Bruno Haible  <bruno@clisp.org>
6894
6895         areadlinkat: Avoid link error on many platforms.
6896         * modules/areadlinkat (Depends-on): Add areadlink.
6897
6898 2011-04-09  Bruno Haible  <bruno@clisp.org>
6899
6900         allocator, careadlinkat: Fix double-inclusion guard.
6901         * lib/allocator.h: Fix double-inclusion guard.
6902         * lib/careadlinkat.h: Likewise.
6903
6904 2011-04-09  Bruno Haible  <bruno@clisp.org>
6905
6906         relocatable-prog-wrapper: Update after module 'areadlink' changed.
6907         * lib/relocwrapper.c: Update dependencies hierarchy.
6908         * build-aux/install-reloc: Update list of files to be compiled.
6909         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
6910         lib/allocator.[hc].
6911
6912 2011-04-08  Eric Blake  <eblake@redhat.com>
6913
6914         strftime: silence gnulib-tool warning
6915         * modules/strftime-tests (Depends-on): Drop automatic dependency.
6916
6917 2011-04-08  Bruno Haible  <bruno@clisp.org>
6918
6919         verify: Fix syntax error with GCC 4.6 in C++ mode.
6920         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
6921         (HAVE_STATIC_ASSERT): New macro.
6922         (verify_true, verify): Use 'static_assert' if it is supported and
6923         '_Static_assert' is not supported.
6924
6925 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
6926
6927         allocator: New module.
6928         * modules/allocator, lib/allocator.c: New files.
6929         * lib/allocator.h (stdlib_allocator): New decl.
6930         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
6931         Remove.  Do not include <stdlib.h>.
6932         (careadlinkat): Use stdlib_allocator instead of rolling our own.
6933         * modules/careadlinkat (Files): Remove lib/allocator.h.
6934         (Depends-on): Add allocator.
6935
6936         stdlib: let modules use system malloc, realloc
6937         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
6938         if !_GL_USE_STDLIB_ALLOC.
6939         (malloc, realloc): Limit this change to a smaller scope.
6940
6941         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
6942         (malloc, realloc): Don't #undef; no longer needed.
6943         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6944         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6945         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
6946         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6947         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6948         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6949         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6950         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
6951
6952         careadlinkat: rename members to avoid problem
6953         * lib/allocator.h (struct allocator): Rename members from
6954         malloc/realloc to allocate/reallocate, to avoid problems if malloc
6955         and realloc are #define'd.  Reported by Eric Blake in
6956         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
6957         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
6958
6959 2011-04-08  Eric Blake  <eblake@redhat.com>
6960
6961         nonblocking: reduce dependency
6962         * tests/test-nonblocking.c: Only test sockets when in use.
6963         * modules/nonblocking-tests (Depends-on): Drop socket.
6964         (Makefile.am): Link even if sockets are not present.
6965         * modules/pipe2-tests (Makefile.am): Likewise.
6966         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
6967
6968         pipe2: fix O_NONBLOCK support on mingw
6969         * modules/pipe2 (Depends-on): Add nonblocking.
6970         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
6971         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
6972         * tests/test-nonblocking.c (main): Likewise.
6973         * modules/pipe2-tests (Makefile.am): Avoid link failure.
6974
6975         fcntl-h: fix O_ACCMODE on cygwin
6976         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
6977         * lib/fcntl.in.h (O_ACCMODE): Fix it.
6978
6979         pipe-filter: drop O_NONBLOCK workarounds
6980         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
6981         * modules/pipe-filter-ii (Depends-on): Likewise.
6982         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
6983
6984         nonblocking: provide O_NONBLOCK for mingw
6985         * modules/nonblocking (Depends-on): Add open.
6986         (configure.ac): Set new witness macro.
6987         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
6988         * modules/fcntl-h (Makefile.am): Substitute it.
6989         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
6990         nonblocking module is in use.
6991         * lib/nonblocking.c: Adjust portability test.
6992         * lib/open.c (open): Don't let native open see gnulib flag.
6993         * tests/test-fcntl-h.c (main): Enhance test.
6994         * tests/test-open.h (test_open): Likewise.
6995         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
6996
6997         careadlinkat: fix compilation error on mingw
6998         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
6999         within struct allocator.
7000
7001 2011-04-06  Eric Blake  <eblake@redhat.com>
7002
7003         binary-io: relicense under LGPLv2+
7004         * modules/binary-io (License): Relax to LGPLv2+.
7005         Requested for libvirt, and required by pipe2.
7006
7007 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
7008
7009         verify: use _Static_assert if available
7010         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
7011         (verify_true, verify): Use it if available.  This generates better
7012         diagnostics with GCC 4.6.0 and later.
7013
7014 2011-04-05  Bruno Haible  <bruno@clisp.org>
7015
7016         Remove leftover generated .h files after config.status changed.
7017
7018         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
7019         GL_GENERATE_ALLOCA_H.
7020         * modules/alloca-opt (Makefile.am): Remove alloca.h if
7021         GL_GENERATE_ALLOCA_H evaluates to false.
7022
7023         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
7024         GL_GENERATE_ARGZ_H.
7025         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
7026         evaluates to false.
7027
7028         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
7029         GL_GENERATE_BYTESWAP_H.
7030         * modules/byteswap (Makefile.am): Remove byteswap.h if
7031         GL_GENERATE_BYTESWAP_H evaluates to false.
7032
7033         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
7034         GL_GENERATE_ERRNO_H.
7035         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
7036         evaluates to false.
7037
7038         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
7039         GL_GENERATE_FLOAT_H.
7040         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
7041         evaluates to false.
7042
7043         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
7044         GL_GENERATE_FNMATCH_H.
7045         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
7046         GL_GENERATE_FNMATCH_H evaluates to false.
7047
7048         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
7049         GL_GENERATE_GLOB_H.
7050         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
7051         evaluates to false.
7052
7053         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
7054         automake conditional GL_GENERATE_ICONV_H.
7055         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
7056         evaluates to false.
7057
7058         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
7059         GL_GENERATE_NETINET_IN_H.
7060         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
7061         GL_GENERATE_NETINET_IN_H evaluates to false.
7062
7063         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
7064         conditional GL_GENERATE_PTHREAD_H.
7065         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
7066         * modules/pthread (Makefile.am): Remove pthread.h if
7067         GL_GENERATE_PTHREAD_H evaluates to false.
7068
7069         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
7070         GL_GENERATE_SCHED_H.
7071         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
7072         evaluates to false.
7073
7074         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
7075         conditional GL_GENERATE_SELINUX_CONTEXT_H.
7076         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
7077         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
7078
7079         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
7080         GL_GENERATE_STDARG_H.
7081         * modules/stdarg (Makefile.am): Remove stdarg.h if
7082         GL_GENERATE_STDARG_H evaluates to false.
7083
7084         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
7085         GL_GENERATE_STDBOOL_H.
7086         * modules/stdbool (Makefile.am): Remove stdbool.h if
7087         GL_GENERATE_STDBOOL_H evaluates to false.
7088
7089         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
7090         conditional GL_GENERATE_STDDEF_H.
7091         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
7092         * modules/stddef (Makefile.am): Remove stddef.h if
7093         GL_GENERATE_STDDEF_H evaluates to false.
7094
7095         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
7096         GL_GENERATE_STDINT_H.
7097         * modules/stdint (Makefile.am): Remove stdint.h if
7098         GL_GENERATE_STDINT_H evaluates to false.
7099
7100         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
7101         GL_GENERATE_SYSEXITS_H.
7102         * modules/sysexits (Makefile.am): Remove sysexits.h if
7103         GL_GENERATE_SYSEXITS_H evaluates to false.
7104
7105         Reported by Karl Berry and Ralf Wildenhues.
7106
7107 2011-04-05  Bruno Haible  <bruno@clisp.org>
7108
7109         Ensure to rebuild generated .h files when config.status has changed.
7110         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
7111         config.status.
7112         * modules/ctype (Makefile.am): Likewise.
7113         * modules/dirent (Makefile.am): Likewise.
7114         * modules/errno (Makefile.am): Likewise.
7115         * modules/fcntl-h (Makefile.am): Likewise.
7116         * modules/float (Makefile.am): Likewise.
7117         * modules/getopt-posix (Makefile.am): Likewise.
7118         * modules/glob (Makefile.am): Likewise.
7119         * modules/iconv-h (Makefile.am): Likewise.
7120         * modules/inttypes (Makefile.am): Likewise.
7121         * modules/langinfo (Makefile.am): Likewise.
7122         * modules/locale (Makefile.am): Likewise.
7123         * modules/math (Makefile.am): Likewise.
7124         * modules/netdb (Makefile.am): Likewise.
7125         * modules/netinet_in (Makefile.am): Likewise.
7126         * modules/poll-h (Makefile.am): Likewise.
7127         * modules/pthread (Makefile.am): Likewise.
7128         * modules/pty (Makefile.am): Likewise.
7129         * modules/sched (Makefile.am): Likewise.
7130         * modules/search (Makefile.am): Likewise.
7131         * modules/selinux-h (Makefile.am): Likewise.
7132         * modules/signal (Makefile.am): Likewise.
7133         * modules/spawn (Makefile.am): Likewise.
7134         * modules/stdarg (Makefile.am): Likewise.
7135         * modules/stdbool (Makefile.am): Likewise.
7136         * modules/stddef (Makefile.am): Likewise.
7137         * modules/stdint (Makefile.am): Likewise.
7138         * modules/stdio (Makefile.am): Likewise.
7139         * modules/stdlib (Makefile.am): Likewise.
7140         * modules/string (Makefile.am): Likewise.
7141         * modules/strings (Makefile.am): Likewise.
7142         * modules/sys_file (Makefile.am): Likewise.
7143         * modules/sys_ioctl (Makefile.am): Likewise.
7144         * modules/sys_select (Makefile.am): Likewise.
7145         * modules/sys_socket (Makefile.am): Likewise.
7146         * modules/sys_stat (Makefile.am): Likewise.
7147         * modules/sys_time (Makefile.am): Likewise.
7148         * modules/sys_times (Makefile.am): Likewise.
7149         * modules/sys_utsname (Makefile.am): Likewise.
7150         * modules/sys_wait (Makefile.am): Likewise.
7151         * modules/sysexits (Makefile.am): Likewise.
7152         * modules/termios (Makefile.am): Likewise.
7153         * modules/time (Makefile.am): Likewise.
7154         * modules/unistd (Makefile.am): Likewise.
7155         * modules/wchar (Makefile.am): Likewise.
7156         * modules/wctype-h (Makefile.am): Likewise.
7157         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
7158
7159 2011-04-05  Bruno Haible  <bruno@clisp.org>
7160
7161         pipe2: Relicense under LGPLv2+.
7162         * modules/pipe2 (License): Change to LGPLv2+.
7163         Requested by Eric Blake, for libvirt.
7164
7165 2011-04-05  Bruce Korb  <bkorb@gnu.org>
7166
7167         bootstrap: compute gnulib_extra_files after updating build_aux
7168         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
7169         change build_aux or also supply gnulib_extra_files.  Handle correctly.
7170
7171 2011-04-05  Eric Blake  <eblake@redhat.com>
7172
7173         bootstrap: preserve git whitelist item sorting
7174         * build-aux/bootstrap (sort_patterns): New function.
7175         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
7176
7177 2011-04-05  Simon Josefsson  <simon@josefsson.org>
7178
7179         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
7180         sc_space_tab check.
7181
7182 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
7183
7184         areadlink, areadlinkat: rewrite in terms of careadlinkat
7185         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
7186         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
7187         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
7188         (malloc, realloc): Remove #undefs.
7189         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
7190         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
7191         readlink, ssize_t, stdint, unistd.
7192         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
7193         areadlink, stdint.
7194
7195         careadlinkat: new module
7196         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
7197         * modules/careadlinkat: New files, written by me with
7198         a review and feedback from Ben Pfaff in
7199         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
7200
7201 2011-04-01  Bruno Haible  <bruno@clisp.org>
7202
7203         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
7204         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
7205         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
7206         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
7207         Reported by Bruce Korb <bruce.korb@gmail.com>.
7208
7209 2011-04-01  Bruno Haible  <bruno@clisp.org>
7210
7211         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
7212         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
7213         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
7214         * modules/wcpcpy (Depends-on): Add extensions.
7215         * modules/wcpncpy (Depends-on): Likewise.
7216         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
7217         systems.
7218         * doc/posix-functions/wcpncpy.texi: Likewise.
7219         * doc/posix-functions/wcwidth.texi: Likewise.
7220
7221 2011-03-31  Eric Blake  <eblake@redhat.com>
7222
7223         nonblocking: fix mingw test failures
7224         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
7225         non-blocking flag on regular file.
7226         (get_nonblocking_flag): Set errno on invalid fd.
7227         * tests/test-nonblocking.c (main): Avoid test failure on
7228         directories if fchdir is not active.
7229         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
7230
7231 2011-03-31  Bruno Haible  <bruno@clisp.org>
7232
7233         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
7234         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
7235         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
7236         Reported by Simon Josefsson <simon@josefsson.org>.
7237
7238 2011-03-31  Bruno Haible  <bruno@clisp.org>
7239         and Eric Blake  <eblake@redhat.com>
7240
7241         nonblocking: new module
7242         * modules/nonblocking: New module.
7243         * modules/nonblocking-tests: Likewise.
7244         * lib/nonblocking.h: New file.
7245         * lib/nonblocking.c: Likewise.
7246         * tests/test-nonblocking.c: New test.
7247         * lib/ioctl.c (ioctl) [mingw]: Update comment.
7248
7249 2011-03-30  Bruno Haible  <bruno@clisp.org>
7250
7251         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
7252         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
7253         instead of 'printf' format for GCC >= 4.4.
7254         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
7255         (fprintf, printf, vfprintf, vprintf): Declare with
7256         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
7257         the system's vfprintf() function.
7258         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
7259
7260 2011-03-30  Eric Blake  <eblake@redhat.com>
7261
7262         passfd: fix scoping bug
7263         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
7264         before sendmsg/recvmsg.
7265
7266         passfd: standardize coding conventions
7267         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
7268         can be learned at compile time.
7269         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
7270         ifdefs.
7271         (sendfd, recvfd): Follow gnulib code conventions.
7272
7273         passfd: fix incorrect sendmsg arguments
7274         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
7275         incorrect msg_controllen value.
7276         * modules/passfd-tests (Depends-on): Check for alarm.
7277         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
7278         Reported by Bastien ROUCARIES.
7279
7280 2011-03-30  Bruno Haible  <bruno@clisp.org>
7281
7282         c-strcasestr: Relicense under LGPLv2+.
7283         * modules/c-strcasestr (License): Change to LGPLv2+.
7284         Requested by Eric Blake, for libvirt.
7285
7286 2011-03-30  Simon Josefsson  <simon@josefsson.org>
7287
7288         * users.txt: Add libidn2.  Fix libtasn1 link.
7289
7290 2011-03-30  Jim Meyering  <meyering@redhat.com>
7291
7292         tests: readlink* ("",... fails with EINVAL on newer kernels
7293         readlink and readlinkat have typically failed with ENOENT for
7294         the invalid, empty file name,  "".  However, with the advent
7295         of linux-2.6.39, they fail with EINVAL.
7296         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
7297         when operating on the empty file name.
7298         * tests/test-readlink.h (test_readlink): Likewise.
7299
7300 2011-03-29  Bruno Haible  <bruno@clisp.org>
7301
7302         Relicense some modules under LGPLv2+, for libidn2.
7303         * modules/array-mergesort (License): Change to LGPLv2+.
7304         * modules/c-strcaseeq (License): Likewise.
7305         * modules/striconveh (License): Likewise.
7306         * modules/striconveha (License): Likewise.
7307         * modules/uniconv/base (License): Likewise.
7308         * modules/uniconv/u8-conv-from-enc (License): Likewise.
7309         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
7310         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
7311         * modules/unictype/base (License): Likewise.
7312         * modules/unictype/bidiclass-of (License): Likewise.
7313         * modules/unictype/category-M (License): Likewise.
7314         * modules/unictype/category-none (License): Likewise.
7315         * modules/unictype/category-of (License): Likewise.
7316         * modules/unictype/category-test (License): Likewise.
7317         * modules/unictype/category-test-withtable (License): Likewise.
7318         * modules/unictype/combining-class (License): Likewise.
7319         * modules/unictype/joiningtype-of (License): Likewise.
7320         * modules/unictype/scripts (License): Likewise.
7321         * modules/uninorm/base (License): Likewise.
7322         * modules/uninorm/canonical-decomposition (License): Likewise.
7323         * modules/uninorm/composition (License): Likewise.
7324         * modules/uninorm/decompose-internal (License): Likewise.
7325         * modules/uninorm/decomposition-table (License): Likewise.
7326         * modules/uninorm/nfc (License): Likewise.
7327         * modules/uninorm/nfd (License): Likewise.
7328         * modules/uninorm/u32-normalize (License): Likewise.
7329         * modules/unistr/base (License): Likewise.
7330         * modules/unistr/u32-cpy (License): Likewise.
7331         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
7332         * modules/unistr/u32-to-u8 (License): Likewise.
7333         * modules/unistr/u32-uctomb (License): Likewise.
7334         * modules/unistr/u8-check (License): Likewise.
7335         * modules/unistr/u8-mblen (License): Likewise.
7336         * modules/unistr/u8-mbtouc (License): Likewise.
7337         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
7338         * modules/unistr/u8-mbtoucr (License): Likewise.
7339         * modules/unistr/u8-prev (License): Likewise.
7340         * modules/unistr/u8-strlen (License): Likewise.
7341         * modules/unistr/u8-to-u32 (License): Likewise.
7342         * modules/unistr/u8-uctomb (License): Likewise.
7343         * modules/unitypes (License): Likewise.
7344         Requested by Simon Josefsson.
7345
7346 2011-03-29  Simon Josefsson  <simon@josefsson.org>
7347
7348         lib-symbol-visibility: Add a notice.
7349         * modules/lib-symbol-visibility (Notice): New field.
7350
7351 2011-03-29  Bruno Haible  <bruno@clisp.org>
7352
7353         getaddrinfo: Doc fix.
7354         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
7355         section "fixed in Gnulib".
7356
7357 2011-03-28  Simon Josefsson  <simon@josefsson.org>
7358
7359         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
7360         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
7361
7362 2011-03-26  Bruno Haible  <bruno@clisp.org>
7363
7364         unictype/property-byname: Reduce the number of load-time relocations.
7365         * lib/unictype/pr_byname.c: Include <stdlib.h>.
7366         (UC_PROPERTY_INDEX_*): New enumeration values.
7367         (uc_property_byname): Convert an index from the lookup table to an
7368         uc_property_t.
7369         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
7370         values.
7371
7372 2011-03-26  Bruno Haible  <bruno@clisp.org>
7373
7374         unictype/property-byname: Allow omitted word separators and aliases.
7375         * lib/unictype/pr_byname.gperf: Add property names without word
7376         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
7377         for 'space'.
7378
7379 2011-03-26  Bruno Haible  <bruno@clisp.org>
7380
7381         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
7382         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
7383         also hyphens to space.
7384         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
7385         without spaces.
7386         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
7387
7388 2011-03-26  Bruno Haible  <bruno@clisp.org>
7389
7390         unictype/joiningtype-byname: Recognize long names as well.
7391         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
7392         a long name.
7393         * lib/unictype/joiningtype_byname.c: Include <string.h>,
7394         unictype/joiningtype_byname.h.
7395         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
7396         * lib/unictype/joiningtype_byname.gperf: New file.
7397         * modules/unictype/joiningtype-byname (Files): Add
7398         lib/unictype/joiningtype_byname.gperf.
7399         (Depends-on): Add gperf.
7400         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
7401         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
7402         long names.
7403
7404         Tests for module 'unictype/joiningtype-longname'.
7405         * modules/unictype/joiningtype-longname-tests: New file.
7406         * tests/unictype/test-joiningtype_longname.c: New file.
7407
7408         New module 'unictype/joiningtype-longname'.
7409         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
7410         * lib/unictype/joiningtype_longname.c: New file.
7411         * modules/unictype/joiningtype-longname: New file.
7412         * modules/unictype/joiningtype-all (Depends-on): Add
7413         unictype/joiningtype-longname.
7414
7415 2011-03-26  Bruno Haible  <bruno@clisp.org>
7416
7417         unictype/bidiclass-byname: Recognize long names as well.
7418         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
7419         name.
7420         * lib/unictype/bidi_byname.c: Include <string.h>,
7421         unictype/bidi_byname.h.
7422         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
7423         * lib/unictype/bidi_byname.gperf: New file.
7424         * modules/unictype/bidiclass-byname (Files): Add
7425         lib/unictype/bidi_byname.gperf.
7426         (Depends-on): Add gperf.
7427         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
7428         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
7429         long names.
7430
7431         Tests for module 'unictype/bidiclass-longname'.
7432         * modules/unictype/bidiclass-longname-tests: New file.
7433         * tests/unictype/test-bidi_longname.c: New file.
7434
7435         New module 'unictype/bidiclass-longname'.
7436         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
7437         * lib/unictype/bidi_longname.c: New file.
7438         * modules/unictype/bidiclass-longname: New file.
7439         * modules/unictype/bidiclass-all (Depends-on): Add
7440         unictype/bidiclass-longname.
7441
7442 2011-03-26  Bruno Haible  <bruno@clisp.org>
7443
7444         unictype/bidi*: Rename modules.
7445         * modules/unictype/bidiclass-all: Renamed from
7446         modules/unictype/bidicategory-all.
7447         * modules/unictype/bidiclass-name: Renamed from
7448         modules/unictype/bidiclass-name.
7449         (Description): Update.
7450         * modules/unictype/bidiclass-name-tests: Renamed from
7451         modules/unictype/bidicategory-name-tests.
7452         * modules/unictype/bidiclass-byname: Renamed from
7453         modules/unictype/bidicategory-byname.
7454         (Description): Update.
7455         * modules/unictype/bidiclass-byname-tests: Renamed from
7456         modules/unictype/bidicategory-byname-tests.
7457         * modules/unictype/bidiclass-of: Renamed from
7458         modules/unictype/bidicategory-of.
7459         (Description): Update.
7460         * modules/unictype/bidiclass-of-tests: Renamed from
7461         modules/unictype/bidicategory-of-tests.
7462         * modules/unictype/bidiclass-test: Renamed from
7463         modules/unictype/bidicategory-test.
7464         (Description): Update.
7465         * modules/unictype/bidiclass-test-tests: Renamed from
7466         modules/unictype/bidicategory-test-tests.
7467         * modules/unictype/bidicategory-all: New file, a simple redirection.
7468         * modules/unictype/bidicategory-name: Likewise.
7469         * modules/unictype/bidicategory-byname: Likewise.
7470         * modules/unictype/bidicategory-of: Likewise.
7471         * modules/unictype/bidicategory-test: Likewise.
7472         * modules/unictype/property-bidi-* (Dependencies): Update.
7473         * lib/unictype/bidi_*.c: Update comment.
7474
7475 2011-03-26  Bruno Haible  <bruno@clisp.org>
7476
7477         unictype/bidi*: Rename functions, part 2.
7478         * modules/unictype/bidicategory-name (configure.ac): Update required
7479         libunistring version.
7480         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
7481
7482 2011-03-25  Bruno Haible  <bruno@clisp.org>
7483
7484         New module 'unictype/combining-class-all'.
7485         * modules/unictype/combining-class-all: New file.
7486
7487         Tests for module 'unictype/combining-class-byname'.
7488         * modules/unictype/combining-class-byname-tests: New file.
7489         * tests/unictype/test-combiningclass_byname.c: New file.
7490
7491         New module 'unictype/combining-class-byname'.
7492         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
7493         * lib/unictype/combiningclass_byname.c: New file.
7494         * lib/unictype/combiningclass_byname.gperf: New file.
7495         * modules/unictype/combining-class-byname: New file.
7496
7497         Tests for module 'unictype/combining-class-longname'.
7498         * modules/unictype/combining-class-longname-tests: New file.
7499         * tests/unictype/test-combiningclass_longname.c: New file.
7500
7501         New module 'unictype/combining-class-longname'.
7502         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
7503         * lib/unictype/combiningclass_longname.c: New file.
7504         * modules/unictype/combining-class-longname: New file.
7505
7506         Tests for module 'unictype/combining-class-name'.
7507         * modules/unictype/combining-class-name-tests: New file.
7508         * tests/unictype/test-combiningclass_name.c: New file.
7509
7510         New module 'unictype/combining-class-name'.
7511         * lib/unictype.in.h (uc_combining_class_name): New declaration.
7512         * lib/unictype/combiningclass_name.c: New file.
7513         * modules/unictype/combining-class-name: New file.
7514
7515 2011-03-25  Bruno Haible  <bruno@clisp.org>
7516
7517         unictype/combining-class: Rename source files.
7518         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
7519         of unictype/combining.h.
7520         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
7521         Update.
7522         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
7523         * modules/unictype/combining-class (Description): Fix.
7524         (Files, Makefile.am): Update.
7525         * tests/unictype/test-combiningclass.c: Renamed from
7526         tests/unictype/test-combining.c.
7527         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
7528
7529 2011-03-25  Bruno Haible  <bruno@clisp.org>
7530
7531         unictype: Update list of canonical combining classes.
7532         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
7533
7534 2011-03-25  Bruno Haible  <bruno@clisp.org>
7535
7536         unictype/category-byname: Recognize long names as well.
7537         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
7538         a long name.
7539         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
7540         unictype/categ_byname.h.
7541         (UC_CATEGORY_INDEX_*): New enumeration values.
7542         (uc_general_category_byname): Use uc_general_category_lookup and
7543         convert from index to value.
7544         * lib/unictype/categ_byname.gperf: New file.
7545         * modules/unictype/category-byname (Files): Add
7546         lib/unictype/categ_byname.gperf.
7547         (Depends-on): Add gperf.
7548         (Makefile.am): Add rule for generating unictype/categ_byname.h.
7549         * tests/unictype/test-categ_byname.c (main): Test the recognition of
7550         long names.
7551
7552         Tests for module 'unictype/category-longname'.
7553         * modules/unictype/category-longname-tests: New file.
7554         * tests/unictype/test-categ_longname.c: New file.
7555
7556         New module 'unictype/category-longname'.
7557         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
7558         * lib/unictype/categ_longname.c: New file.
7559         * modules/unictype/category-longname: New file.
7560         * modules/unictype/category-all (Depends-on): Add it.
7561
7562 2011-03-25  Bruno Haible  <bruno@clisp.org>
7563
7564         Tests for module 'unictype/category-LC'.
7565         * modules/unictype/category-LC-tests: New file.
7566         * tests/unictype/test-categ_LC.c: New file, automatically generated.
7567
7568         New module 'unictype/category-LC'.
7569         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
7570         (UC_CATEGORY_LC): New declaration.
7571         (UC_CASED_LETTER): New macro.
7572         * lib/gen-uni-tables.c (is_category_LC): New function.
7573         (output_categories): Also handle category LC.
7574         (UC_CATEGORY_MASK_LC): New enumeration value.
7575         (general_category_byname): Also handle category LC.
7576         * lib/unictype/categ_LC.c: New file.
7577         * lib/unictype/categ_LC.h: New file, automatically generated.
7578         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
7579         category LC.
7580         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
7581         * modules/unictype/category-LC: New file.
7582         * modules/unictype/category-byname (Depends-on): Add
7583         unictype/category-LC.
7584         * modules/unictype/category-all (Depends-on): Likewise.
7585
7586 2011-03-25  Eric Blake  <eblake@redhat.com>
7587
7588         xmalloc: revert yesterday's regression
7589         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
7590         realloc's underlying behavior (allowing allocation of zero-size
7591         objects, especially if malloc-gnu is also in use).
7592
7593 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
7594
7595         maint.mk: add missing version to VC-tag
7596         * top/maint.mk: git tag was missing actual tag name; add it.
7597
7598         valgrind: do leak checking, and exit with code 1 on error (not 0)
7599         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
7600         to VALGRIND.
7601
7602 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
7603
7604         posix-modules: say what it does.
7605         * posix-modules: Add a line to the --help output saying what it does.
7606
7607 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
7608
7609         xmalloc: Do not leak if underlying realloc is C99 compatible.
7610         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
7611         This avoids a leak on C99-based systems.  See
7612         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
7613
7614 2011-03-24  Eric Blake  <eblake@redhat.com>
7615
7616         realloc: document portability problem
7617         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
7618         passing 0 size to realloc.
7619
7620 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
7621
7622         doc: update users.txt
7623         * users.txt: Add cvsps, tmpwatch
7624
7625 2011-03-23  Matt Rice  <ratmice@gmail.com>
7626
7627         doc: update users.txt
7628         * users.txt: Add gdb.
7629
7630 2011-03-23  Jim Meyering  <meyering@redhat.com>
7631
7632         doc: update users.txt
7633         Looking through matches up to the following URL (there are still
7634         several more pages), I found several projects that use gnulib:
7635         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
7636         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
7637         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
7638
7639 2011-03-22  Bruno Haible  <bruno@clisp.org>
7640
7641         unictype/bidi*: Rename functions.
7642         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
7643         uc_bidi_class, uc_is_bidi_class): New declarations.
7644         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
7645         uc_bidi_category_byname.
7646         (uc_bidi_category_byname): New function.
7647         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
7648         u_bidi_category_name.
7649         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
7650         (uc_bidi_category_name): New function.
7651         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
7652         uc_bidi_category.
7653         (uc_bidi_category): New function.
7654         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
7655         uc_is_bidi_category. Invoke uc_bidi_class.
7656         (uc_is_bidi_category): New function.
7657         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
7658         instead of uc_bidi_category_byname.
7659         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
7660         instead of uc_bidi_category_name.
7661         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
7662         uc_bidi_category.
7663         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
7664         instead of uc_is_bidi_category.
7665
7666 2011-03-21  Bruno Haible  <bruno@clisp.org>
7667
7668         New module 'unictype/joininggroup-all'.
7669         * modules/unictype/joininggroup-all: New file.
7670
7671         Tests for module 'unictype/joininggroup-of'.
7672         * modules/unictype/joininggroup-of-tests: New file.
7673         * tests/unictype/test-joininggroup_of.c: New file.
7674         * tests/unictype/test-joininggroup_of.h: New file, automatically
7675         generated by gen-uni-tables.
7676
7677         New module 'unictype/joininggroup-of'.
7678         * modules/unictype/joininggroup-of: New file.
7679         * lib/unictype/joininggroup_of.c: New file.
7680         * lib/unictype/joininggroup_of.h: New file, automatically generated by
7681         gen-uni-tables.
7682
7683         Tests for module 'unictype/joininggroup-byname'.
7684         * modules/unictype/joininggroup-byname-tests: New file.
7685         * tests/unictype/test-joininggroup_byname.c: New file.
7686
7687         New module 'unictype/joininggroup-byname'.
7688         * modules/unictype/joininggroup-byname: New file.
7689         * lib/unictype/joininggroup_byname.c: New file.
7690         * lib/unictype/joininggroup_byname.gperf: New file.
7691
7692         Tests for module 'unictype/joininggroup-name'.
7693         * modules/unictype/joininggroup-name-tests: New file.
7694         * tests/unictype/test-joininggroup_name.c: New file.
7695
7696         New module 'unictype/joininggroup-name'.
7697         * modules/unictype/joininggroup-name: New file.
7698         * lib/unictype/joininggroup_name.c: New file.
7699         * lib/unictype/joininggroup_name.h: New file.
7700
7701         New module 'unictype/joiningtype-all'.
7702         * modules/unictype/joiningtype-all: New file.
7703
7704         Tests for module 'unictype/joiningtype-of'.
7705         * modules/unictype/joiningtype-of-tests: New file.
7706         * tests/unictype/test-joiningtype_of.c: New file.
7707         * tests/unictype/test-joiningtype_of.h: New file, automatically
7708         generated by gen-uni-tables.
7709
7710         New module 'unictype/joiningtype-of'.
7711         * modules/unictype/joiningtype-of: New file.
7712         * lib/unictype/joiningtype_of.c: New file.
7713         * lib/unictype/joiningtype_of.h: New file, automatically generated by
7714         gen-uni-tables.
7715
7716         Tests for module 'unictype/joiningtype-byname'.
7717         * modules/unictype/joiningtype-byname-tests: New file.
7718         * tests/unictype/test-joiningtype_byname.c: New file.
7719
7720         New module 'unictype/joiningtype-byname'.
7721         * modules/unictype/joiningtype-byname: New file.
7722         * lib/unictype/joiningtype_byname.c: New file.
7723
7724         Tests for module 'unictype/joiningtype-name'.
7725         * modules/unictype/joiningtype-name-tests: New file.
7726         * tests/unictype/test-joiningtype_name.c: New file.
7727
7728         New module 'unictype/joiningtype-name'.
7729         * modules/unictype/joiningtype-name: New file.
7730         * lib/unictype/joiningtype_name.c: New file.
7731
7732         unictype: Add support for Arabic shaping properties.
7733         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
7734         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
7735         declarations.
7736         (UC_JOINING_GROUP_*): New enumeration values.
7737         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
7738         declarations.
7739         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
7740         (unicode_joining_type): New variable.
7741         (UC_JOINING_GROUP_*): New enumeration values.
7742         (unicode_joining_group): New variable.
7743         (fill_arabicshaping, joining_type_as_c_identifier,
7744         output_joining_type_test, output_joining_type,
7745         joining_group_as_c_identifier, output_joining_group_test,
7746         output_joining_group): New functions.
7747         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
7748         fill_arabicshaping and output_joining_type_test, output_joining_type,
7749         output_joining_group_test, output_joining_group.
7750         Reported by Simon Josefsson.
7751
7752 2011-03-21  Jim Meyering  <meyering@redhat.com>
7753
7754         strftime: fix a bug in yesterday's change
7755         * lib/strftime.c (add): Accommodate width's initial value of -1.
7756         Otherwise, nstrftime would copy uninitialized data into
7757         the result buffer.
7758
7759 2011-03-21  Jim Meyering  <meyering@redhat.com>
7760
7761         tests: add strftime-tests module
7762         * tests/test-strftime.c: New file.
7763         * modules/strftime-tests: New module.
7764
7765 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
7766
7767         strftime: don't assume a byte count fits in 'int'
7768         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
7769         found this problem by static analysis, using gcc -Wstrict-overflow
7770         (GCC 4.5.2, x86-64).  This reported an optimization that depended
7771         on an integer overflow having undefined behavior, but it turns out
7772         that the argument is a size, which might not fit in 'int' anyway,
7773
7774 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
7775
7776         stdio: don't require ignore_value around fwrite
7777
7778         This patch works around libc bug 11959
7779         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
7780         Without this patch, applications must often write
7781         ignore_value (fwrite (...)) even though the ignore_value is
7782         not helpful here.  It's common to write many objects, using
7783         fwrite/printf/etc., and then use ferror to detect output error.
7784
7785         I considered making this patch optional, but decided against it,
7786         because libc is obviously being inconsistent here: there is no
7787         reason libc should insist that user code must inspect fwrite
7788         return's value without also insisting that it inspect printf's,
7789         putchar's, etc.  If user code wants to have a strict style where
7790         all these functions' values are checked (so that ferror need not
7791         be checked), we could add support for that style in a new gnulib
7792         module, but in the meantime it's better to be consistent and to
7793         support common usage.
7794
7795         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
7796         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
7797         that we are compiling in checking mode, and if not C++, and
7798         if not already wrapping fwrite for some other reason.
7799         (fwrite): #define to rpl_fwrite if the latter is defined.
7800
7801 2011-03-20  Bruno Haible  <bruno@clisp.org>
7802
7803         verror: Fix compilation error introduced on 2011-02-13.
7804         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
7805         instead of __attribute__.
7806         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7807
7808 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
7809             Bruno Haible  <bruno@clisp.org>
7810
7811         socklen: do not depend on sys_socket
7812         While trying to modify Emacs to use gnulib's socklen module,
7813         I discovered a circular dependency: socklen depends on sys_socket
7814         and vice versa.  Emacs can use socklen, but it does not need
7815         sys_socket because it has its own substitute for sys/socket.h.
7816         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
7817         gl_TYPE_SOCKLEN_T.
7818         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
7819         gl_PREREQ_SYS_H_SOCKET.
7820         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
7821         gl_PREREQ_SYS_H_SOCKET.
7822         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
7823         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
7824         * modules/socklen (Depends-on): Do not depend on sys_socket.
7825         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
7826
7827 2011-03-20  Jim Meyering  <meyering@redhat.com>
7828
7829         maint.mk: sort file names *after* new transformation
7830         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
7831         prefix would have led to an unwarranted failure in GNU parted.
7832         Sort after that transformation.
7833
7834 2011-03-19  Jim Meyering  <meyering@redhat.com>
7835
7836         maint.mk: fix po-file syntax-check rule
7837         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
7838         Patch by Bruno Haible.
7839
7840 2011-03-19  Bruno Haible  <bruno@clisp.org>
7841
7842         socklen: Update comment.
7843         * m4/socklen.m4: Update comment about platforms.
7844
7845 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
7846             Bruno Haible  <bruno@clisp.org>
7847
7848         inet_ntop, inet_pton: Simplify.
7849         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
7850         documented to provide socklen_t and we already depend on sys_socket.
7851         * modules/inet_pton (Depends-on): Likewise.
7852         * lib/arpa_inet.in.h: Adjust comment.
7853
7854 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
7855             Bruno Haible  <bruno@clisp.org>
7856
7857         netdb: Simplify.
7858         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
7859         documented to provide socklen_t and we already depend on sys_socket.
7860         * lib/netdb.in.h: Adjust comment.
7861
7862 2011-03-19  Bruno Haible  <bruno@clisp.org>
7863
7864         sys_socket, netdb: Document problem with socklen_t.
7865         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
7866         platforms.
7867         * doc/posix-headers/netdb.texi: Likewise.
7868
7869 2011-03-18  Eric Blake  <eblake@redhat.com>
7870
7871         maint.mk: let po check work in VPATH build
7872         * top/maint.mk (po_file): Allow cfg.mk override.
7873         (sc_po_check): Allow VPATH use.
7874         Reported by Jiri Denemark.
7875
7876 2011-03-16  Jim Meyering  <meyering@redhat.com>
7877
7878         maint.mk: allow fine-grained syntax-check exclusion via Make variables
7879         Before, you would have had to create one .x-sc_ file per rule in order
7880         to exempt offending files.  Now, you may instead use a Make variable --
7881         usually defined in cfg.mk -- whose name identifies the affected rule.
7882         * top/maint.mk (_sc_excl): Define.
7883         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
7884         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
7885
7886 2011-03-13  Bruno Haible  <bruno@clisp.org>
7887
7888         ignore-value tests: Avoid warnings.
7889         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
7890         empty for gcc < 3.4.
7891
7892 2011-03-13  Bruno Haible  <bruno@clisp.org>
7893
7894         passfd: Fix link error on Solaris.
7895         * modules/passfd (Description): Correct.
7896         (Depends-on): Add socketlib.
7897         (Link): New section.
7898         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
7899
7900 2011-03-13  Bruno Haible  <bruno@clisp.org>
7901
7902         passfd: Fix link error on AIX 5.2.
7903         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
7904
7905 2011-03-13  Bruno Haible  <bruno@clisp.org>
7906
7907         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
7908         * lib/sys_socket.in.h: Include <stddef.h>.
7909         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
7910         CMSG_FIRSTHDR. Remove unused variable.
7911
7912 2011-03-13  Bruno Haible  <bruno@clisp.org>
7913
7914         passfd: Fix compilation error on OpenBSD.
7915         * lib/passfd.c: Include <sys/uio.h>.
7916
7917 2011-03-13  Bruno Haible  <bruno@clisp.org>
7918
7919         passfd test: Fix warnings.
7920         * tests/test-passfd.c: Include <sys/wait.h>.
7921         (main): Fix typo.
7922
7923 2011-03-13  Bruno Haible  <bruno@clisp.org>
7924
7925         passfd module, part 4, tweaks.
7926         * tests/test-passfd.c: Reorder includes.
7927         (main): Fix perror and printf calls.
7928
7929 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
7930
7931         passfd module, part 4.
7932         * modules/passfd-tests: New file.
7933         * tests/test-passfd.c: New file.
7934
7935 2011-03-13  Jim Meyering  <meyering@redhat.com>
7936
7937         Makefile: rely on GNU make; derive syntax-check rule names
7938         Rather than requiring that each sc_ rule be listed as a dependent
7939         of "check", use features of GNU make to derive the list.
7940         * Makefile (syntax-check-rules): Define.
7941         (check): Depend on the new variable, not the hard-coded list.
7942
7943 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
7944             Bruno Haible  <bruno@clisp.org>
7945
7946         passfd module, part 3.
7947         * lib/passfd.h (recvfd): Add a flags argument.
7948         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
7949         (recvfd): Add a flags argument.
7950         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
7951         exists.
7952         * modules/passfd (Depends-on): Add cloexec.
7953         Suggested by Eric Blake.
7954
7955 2011-03-13  Bruno Haible  <bruno@clisp.org>
7956
7957         passfd module, part 2, tweaks.
7958         * modules/passfd (Files): Reorder.
7959         (Depends-on): Remove errno.
7960         (Include): Remove <sys/socket.h>, <sys/un.h>.
7961         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
7962         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
7963         specification header. Include <sys/socket.h> always. Don't include
7964         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
7965         (sendfd): Clarify that it sets errno when it fails.
7966         (recvfd): Fix specification.
7967
7968 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
7969
7970         passfd module, part 2.
7971         * modules/passfd: New file.
7972         * lib/passfd.h: New file.
7973         * lib/passfd.c: New file.
7974
7975 2011-03-12  Bruno Haible  <bruno@clisp.org>
7976
7977         wcswidth, mbswidth: Avoid integer overflow.
7978         * lib/wcswidth.c: Include <limits.h>.
7979         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
7980         * lib/mbswidth.c: Include <limits.h>.
7981         (mbsnwidth): Avoid 'int' overflow.
7982         Reported by Jim Meyering.
7983
7984 2011-03-12  Bruno Haible  <bruno@clisp.org>
7985
7986         futimens, utimensat: Avoid endless recursion on Solaris 10.
7987         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
7988         Solaris.
7989         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
7990         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
7991
7992 2011-03-11  Jim Meyering  <meyering@redhat.com>
7993
7994         maint.mk: relax a regexp to accommodate other formatting styles
7995         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
7996         between "ngettext" and the following "(".
7997
7998 2011-03-11  Pádraig Brady <P@draigBrady.com>
7999
8000         maint.mk: suppress a false positive warning
8001         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
8002         diagnostics are marked with ngettext.
8003
8004 2011-03-10  Eric Blake  <eblake@redhat.com>
8005
8006         wchar: add explicit dependencies, for Tru64
8007         * modules/mbmemcasecoll (Depends-on): Add wchar.
8008         * modules/mbtowc (Depends-on): Likewise.
8009         * modules/vasnprintf (Depends-on): Likewise.
8010         * modules/unistdio/u-printf-args (Depends-on): Likewise.
8011         * modules/wctomb (Depends-on): Likewise.
8012         Reported by Peter O'Gorman.
8013
8014 2011-03-08  Bruno Haible  <bruno@clisp.org>
8015
8016         passfd module, part 1, tweaks.
8017         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
8018         Improve indentation. Improve AC_MSG_CHECKING messages.
8019         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
8020         gl_SOCKET_FAMILIES.
8021
8022 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
8023
8024         passfd module, part 1.
8025         * m4/afunix.m4: New file.
8026         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
8027         sockets.
8028
8029 2011-03-08  Bruno Haible  <bruno@clisp.org>
8030
8031         regex-quote: New API.
8032         * lib/regex-quote.h: Include <stdbool.h>.
8033         (struct regex_quote_spec): New type.
8034         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
8035         New declarations.
8036         (regex_quote_length, regex_quote_copy, regex_quote): Take a
8037         'const struct regex_quote_spec *' argument.
8038         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
8039         (pcre_special): New constant.
8040         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
8041         New functions.
8042         (regex_quote_length, regex_quote_copy, regex_quote): Take a
8043         'const struct regex_quote_spec *' argument.
8044         * modules/regex-quote (Depends-on): Add stdbool.
8045         * tests/test-regex-quote.c (check): Update for new API. Add test for
8046         anchored results.
8047         * NEWS: Mention the API change.
8048         Reported by Reuben Thomas and Eric Blake.
8049
8050 2011-03-06  Bruno Haible  <bruno@clisp.org>
8051
8052         regex-quote: Fix creation of POSIX extended regular expressions.
8053         * lib/regex-quote.c (ere_special): Add grouping and alternation
8054         operators.
8055
8056 2011-03-05  Bruno Haible  <bruno@clisp.org>
8057
8058         doc: Improve doc regarding autopoint vs. gnulib.
8059         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
8060         disable autopoint while running autoreconf.
8061         Suggested by Ralf Wildenhues.
8062
8063 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8064
8065         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
8066         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
8067
8068 2011-03-03  Bruce Korb  <bkorb@gnu.org>
8069
8070         parse-duration: remove xalloc.h dependency
8071         * lib/parse-duration.c (parse_period): handle NULL return from
8072         strdup instead of calling xstrdup().
8073         * modules/parse-duration: remove "xalloc" dependency
8074
8075 2011-03-03  Matthew Booth  <mbooth@redhat.com>
8076
8077         bootstrap: honor m4_base when running aclocal
8078         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
8079
8080 2011-03-02  Jim Meyering  <meyering@redhat.com>
8081
8082         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
8083         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
8084         on request from Matt Booth.
8085
8086 2011-03-01  Eric Blake  <eblake@redhat.com>
8087
8088         test-link: work on Hurd
8089         * tests/test-link.h (test_link): Hurd rejects linking directories
8090         with EISDIR instead of the POSIX-mandated EPERM.
8091
8092 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
8093
8094         stdio: simplify by moving files to printf-posix, sigpipe
8095         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
8096         since this symbol is needed only if printf is replaced.
8097         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
8098         Require gl_ASM_SYMBOL_PREFIX.
8099         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
8100         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
8101         (Depends-on): Add 'raise'.
8102         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
8103         * modules/stdio (Files): Remove lib/stdio-write.c,
8104         m4/asm-underscore.m4.
8105         (Depends-on): Remove 'raise'.
8106
8107         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
8108         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
8109         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
8110         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
8111
8112 2011-02-28  Bruno Haible  <bruno@clisp.org>
8113
8114         localcharset: Assume ANSI C behaviour of free().
8115         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
8116         calling free().
8117         Suggested by Simon Josefsson <simon@josefsson.org>.
8118
8119 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
8120             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
8121             Bruno Haible  <bruno@clisp.org>  (tiny change)
8122
8123         On Cygwin, use /proc file system instead of win32 API.
8124         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
8125         Win32 file names.
8126         (DllMain): Simplify by removing Cygwin specific code.
8127         (find_shared_library_fullname): Use Linux specific implementation also
8128         for Cygwin.
8129         (get_shared_library_fullname): Update accordingly.
8130         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
8131         Win32 file names.
8132         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
8133         Cygwin specific code.
8134
8135 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
8136             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
8137
8138         Fix OpenMP flag detection for various Fortran compilers.
8139         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
8140         OpenMP-conditional compilation construct, to force compile
8141         failure with missing OpenMP flag.
8142         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
8143
8144 2011-02-25  Eric Blake  <eblake@redhat.com>
8145
8146         strstr: expand test coverage
8147         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
8148         compilation.
8149         * tests/test-memmem.c (main): Duplicate tests.
8150         * tests/test-strcasestr.c (main): Likewise.
8151         * tests/test-c-strcasestr.c (main): Likewise.
8152
8153 2011-02-25  Jim Meyering  <meyering@redhat.com>
8154
8155         maint.mk: detect missing-NL-at-EOF, too
8156         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
8157         it also detects when a file lacks a newline at EOF.
8158         (require_exactly_one_NL_at_EOF_): Renamed from
8159         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
8160         since people may well have .x-sc_... file names tied to the
8161         existing name.  Suggested by Eric Blake.
8162
8163 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
8164
8165         dirname: move m4/dos.m4 functionality into lib/dosname.h
8166
8167         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
8168         extracts symbols from it, puts them into config.h; but it's much
8169         easier to use the symbols directly.  filename.h already does this,
8170         but it disagrees with dos.m4 in some respects.  This patch
8171         introduces a different include file dosname.h that packages up
8172         dos.m4, and then later we can work on merging filename.h and
8173         dosname.h.  Applications that need only the easy-to-configure
8174         symbols should consider including dosname.h rather than dirname.h.
8175         * NEWS: Mention incompatible changes.
8176         * m4/dos.m4: Remove.
8177         * lib/dosname.h, modules/dosname: New files.
8178         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
8179         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
8180         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
8181         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
8182         Include dosname.h, not dirname.h.
8183         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
8184         Include dosname.h, for definitions of symbols like ISSLASH
8185         that used to be in config.h.
8186         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
8187         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
8188         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
8189         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
8190         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
8191         * modules/rmdir (Files): Likewise.
8192         * modules/stat (Files): Likewise.
8193         * modules/unlink (Files): Likewise.
8194         * modules/dirname-lgpl (Depends-on): Add dosname.
8195         * modules/lstat (Depends-on): Likewise.
8196         * modules/openat (Depends-on): Likewise.
8197         * modules/rmdir (Depends-on): Likewise.
8198         * modules/savewd (Depends-on): Likewise.
8199         * modules/stat (Depends-on): Likewise.
8200         * modules/unlink (Depends-on): Likewise.
8201         * modules/openat (Depends-on): Remove dirname-lgpl.
8202         * modules/savewd (Depends-on): Likewise.
8203         * tests/test-dirname.c: Do not use removed symbols like
8204         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
8205         the remaining symbols, e.g., ISSLASH ('\\').
8206
8207 2011-02-25  Eric Blake  <eblake@redhat.com>
8208
8209         strstr: revert patches that introduced bug and pessimization
8210         * lib/str-two-way.h: Add another reference.
8211         (two_way_short_needle, two_way_long_needle): Revert changes from
8212         2011-02-24; they pessimize search speed.
8213         (critical_factorization): Partially revert changes from
8214         2010-06-22; they violate the requirement that the left half of the
8215         needle be smaller than the period of the needle.
8216
8217 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
8218
8219         filenamecat: remove unnecessary dependency on dirname-lgpl
8220         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
8221         is no direct dependency, just an indirect one via filenamecat-lgpl.
8222
8223         remove: remove unnecessary use of m4/dos.m4
8224         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
8225         * modules/remove (FILES): Remove m4/dos.m4.
8226
8227         * lib/openat-proc.c: Don't include dirname.h; not needed.
8228
8229         backupfile: remove unnecessary use of m4/dos.m4
8230         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
8231         of its symbols are used by the backupfile code.  backupfile.c does
8232         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
8233         for the rare case of programs that want all their backup file
8234         names to live within 8+3 limits, and dos.m4 doesn't address that.
8235         * modules/backupfile (Files): Remove m4/dos.m4.
8236
8237 2011-02-24  Jim Meyering  <meyering@redhat.com>
8238
8239         strstr: fix a bug whereby strstr would mistakenly return NULL
8240         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
8241         in period calculation.
8242         (two_way_long_needle): Likewise.
8243         The original problem was reported by Mike Stump in
8244         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
8245         Ralf Wildenhues provided the short needle and haystack.
8246         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
8247         Add a more involved test to trigger the bug in two_way_long_needle.
8248
8249 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
8250
8251         gnulib-tool: remove use of bold display in help screen
8252         * gnulib-tool (func_usage): Do not use bold display anymore in the
8253         help screen.  That was just meant to be a temporary emphasis for a
8254         backward-incompatible change.
8255
8256 2011-02-23  Bruno Haible  <bruno@clisp.org>
8257
8258         Fix misindentation of preprocessor directives.
8259         * lib/argp-namefrob.h: Reindent preprocessor directives.
8260         * lib/getopt_int.h (struct _getopt_data): Likewise.
8261         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
8262         * lib/vasnprintf.c (decode_long_double): Likewise.
8263         * tests/test-argmatch.c: Insert blank lines, for clarity.
8264         * tests/test-exclude.c: Likewise.
8265
8266 2011-02-22  Bruno Haible  <bruno@clisp.org>
8267
8268         ioctl: Fix for MacOS X in 64-bit mode.
8269         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
8270         value.
8271         Suggested by Eric Blake.
8272         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
8273
8274 2011-02-22  Jim Meyering  <meyering@redhat.com>
8275
8276         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
8277         * Makefile (sc_cpp_indent_check): Don't limit the check to files
8278         in lib/.
8279
8280 2011-02-22  Eric Blake  <eblake@redhat.com>
8281
8282         maint: avoid any CDPATH issue
8283         * Makefile (sc_cpp_indent_check): Anchor cd argument.
8284
8285         maint: adjust cpp indentation for my modules, as well
8286         * Makefile (sc_cpp_indent_check): Add my name.
8287         * lib/fbufmode.c: Filter through cppi.
8288         * lib/fpurge.c: Likewise.
8289         * lib/freadable.c: Likewise.
8290         * lib/freading.c: Likewise.
8291         * lib/fwritable.c: Likewise.
8292         * lib/fwriting.c: Likewise.
8293         * lib/sigaction.c: Likewise.
8294
8295 2011-02-22  Jim Meyering  <meyering@redhat.com>
8296
8297         maint: adjust cpp indentation to reflect nesting depth
8298         I.e., in a block of code that begins with an unnested "#if",
8299         put one space between the "#" in column 1 and following token.
8300         For example,
8301         -#include <sys/vfs.h>
8302         +# include <sys/vfs.h>
8303         Do this only in .c files that are part of a module I maintain.
8304         * lib/linkat.c: Filter through cppi.
8305         * lib/nanosleep.c: Likewise.
8306         * lib/openat.c: Likewise.
8307         * lib/openat-die.c: Likewise.
8308         * lib/dup3.c: Likewise.
8309         * lib/fchownat.c: Likewise.
8310         * lib/flock.c: Likewise.
8311         * lib/fsync.c: Likewise.
8312         * lib/fts.c: Likewise.
8313         * lib/getpass.c: Likewise.
8314         * lib/gettimeofday.c: Likewise.
8315         * lib/userspec.c: Likewise.
8316         * Makefile (sc_cpp_indent_check): New rule, to check this.
8317
8318 2011-02-22  Bruno Haible  <bruno@clisp.org>
8319
8320         New module 'wctomb'.
8321         * lib/stdlib.in.h (wctomb): New declaration.
8322         * lib/wctomb.c: New file.
8323         * lib/wctomb-impl.h: New file.
8324         * m4/wctomb.m4: New file.
8325         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
8326         REPLACE_WCTOMB.
8327         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
8328         REPLACE_WCTOMB.
8329         * modules/wctomb: New file.
8330         * tests/test-stdlib-c++.cc: Test signature of wctomb.
8331         * doc/posix-functions/wctomb.texi: Mention the new module.
8332         * modules/wctob (Depends-on): Add wctomb.
8333
8334 2011-02-22  Bruno Haible  <bruno@clisp.org>
8335
8336         New module 'mbtowc'.
8337         * lib/stdlib.in.h (mbtowc): New declaration.
8338         * lib/mbtowc.c: New file.
8339         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
8340         * m4/mbtowc.m4: New file.
8341         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
8342         REPLACE_MBTOWC.
8343         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
8344         REPLACE_MBTOWC.
8345         * modules/mbtowc: New file.
8346         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
8347         * doc/posix-functions/mbtowc.texi: Mention the new module.
8348         * modules/btowc (Depends-on): Add mbtowc.
8349
8350 2011-02-22  Bruno Haible  <bruno@clisp.org>
8351
8352         wcrtomb: Add more tests for native Windows platforms.
8353         * tests/test-wcrtomb-w32-1.sh: New file.
8354         * tests/test-wcrtomb-w32-2.sh: New file.
8355         * tests/test-wcrtomb-w32-3.sh: New file.
8356         * tests/test-wcrtomb-w32-4.sh: New file.
8357         * tests/test-wcrtomb-w32-5.sh: New file.
8358         * tests/test-wcrtomb-w32.c: New file.
8359         * modules/wcrtomb-tests (Files): Add them.
8360         (Makefile.am): Arrange to run these tests.
8361         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
8362         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
8363
8364 2011-02-20  Bruno Haible  <bruno@clisp.org>
8365
8366         wcrtomb: Enhance test.
8367         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
8368
8369 2011-02-20  Bruno Haible  <bruno@clisp.org>
8370
8371         mbrtowc: Tiny optimization.
8372         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
8373
8374 2011-02-20  Jim Meyering  <meyering@redhat.com>
8375
8376         test-exclude.c: remove unmatched #endif
8377         * tests/test-exclude.c: Remove stray #endif, left over from
8378         the change of a week ago.
8379
8380 2011-02-19  Jim Meyering  <meyering@redhat.com>
8381
8382         git-version-gen: skip "-dirty" check when appropriate
8383         * build-aux/git-version-gen: Don't run any git commands when the
8384         version string comes from .tarball-version.  Prior to this, we
8385         would run git update-index --refresh even from a just-unpacked
8386         tarball directory, and that could affect a .git/ directory in a
8387         parent of the build directory.  Reported by Mike Frysinger.
8388
8389 2011-02-19  Bruno Haible  <bruno@clisp.org>
8390
8391         unictype/property-byname: Reduce the size of the 'data' segment.
8392         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
8393
8394 2011-02-19  Bruno Haible  <bruno@clisp.org>
8395
8396         unictype/scripts: Reduce the size of the 'data' segment.
8397         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
8398         '%pic'.
8399         * lib/unictype/scripts_byname.gperf: Regenerated.
8400
8401 2011-02-19  Bruno Haible  <bruno@clisp.org>
8402
8403         stdint: Update documentation.
8404         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
8405
8406 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
8407
8408         stdint: omit redundant check for wchar.h
8409         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
8410         always tests whether wchar.h exists, so remove the now-redundant test.
8411
8412 2011-02-18  Bruno Haible  <bruno@clisp.org>
8413
8414         stdint: Cut dependency to module 'wchar'.
8415         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
8416         include the necessary prerequisites.
8417         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
8418         * modules/stdint (Depends-on): Remove wchar.
8419         (Makefile.am): Substitute HAVE_WCHAR_H.
8420         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
8421
8422 2011-02-18  Eric Blake  <eblake@redhat.com>
8423
8424         longlong: skip, rather than fail, on cross-compilation
8425         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
8426         when cross-compiling; regression from 2011-02-16.
8427
8428 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
8429
8430         * NEWS: Mention 2011-02-08 change to stdlib.
8431
8432 2011-02-17  Bruno Haible  <bruno@clisp.org>
8433
8434         getloadavg: Add comments about platforms.
8435         * m4/getloadavg.m4: Add comment.
8436         * lib/getloadavg.c: Likewise.
8437
8438 2011-02-17  Bruno Haible  <bruno@clisp.org>
8439
8440         getloadavg: Fix link error on Solaris 2.6.
8441         * modules/getloadavg (Link): New section.
8442         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
8443         linking test-getloadavg.
8444         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
8445         getloadavg.
8446
8447 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
8448
8449         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
8450         It was 'int', but this doesn't match the IRIX 6.5 manual.
8451         Suggested by Bruno Haible in
8452         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
8453
8454 2011-02-17  Bruno Haible  <bruno@clisp.org>
8455
8456         havelib: Fix comments.
8457         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
8458         change.
8459
8460 2011-02-17  Bruno Haible  <bruno@clisp.org>
8461
8462         havelib: Update config.rpath.
8463         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
8464
8465 2011-02-17  Bruno Haible  <bruno@clisp.org>
8466
8467         getloadavg test: Add some plausibility checks.
8468         * tests/test-getloadavg.c (check_avg): Print a warning when the value
8469         is improbable.
8470
8471 2011-02-16  Eric Blake  <eblake@redhat.com>
8472
8473         maintainer-makefile: make syntax-check a no-op from tarballs
8474         * top/maint.mk (no-vc-detected): New rule.
8475         (local-checks-available): Use it to avoid hanging if someone tries
8476         'make syntax-check' from a tarball.  Also append to any non-syntax
8477         checks already defined in cfg.mk.
8478
8479 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
8480
8481         longlong: tune, particularly for common case of c99
8482
8483         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
8484         or running anything if c99, or if unsigned long long int does not
8485         work.  In either case, we know the answer without further tests.
8486         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
8487         it at most once, and use its results for both long long int and
8488         unsigned long long int.  This is more likely to be efficient in
8489         the common case where the program wants to check for both long
8490         long int and unsigned long long int.
8491         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
8492         since the answer is already known.
8493
8494 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
8495
8496         getloadavg: set errno
8497         * lib/getloadavg.c: Set errno when returning -1.  If no other
8498         error number looks appropriate, set it to ENOSYS if the getloadavg
8499         looks like it can't possibly ever work, ENOTSUP otherwise.
8500         Suggested by Bruno Haible in
8501         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
8502
8503         getloadavg: trim unused parts and speed up 'configure'
8504         * NEWS: Document this.
8505         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
8506         always compiled if getloadavg is absent.
8507         Move test code to ...
8508         * tests/test-getloadavg.c: New file, containing previous
8509         contents of test from lib/getloadavg.c.  It also contains
8510         suggestions by Bruno Haible in
8511         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
8512         * modules/getloadavg-tests: New file.
8513         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
8514         Do tests in the same order as they're needed for getloadavg.c.
8515         Omit setgid-related tests that generate symbols KMEM_GROUP,
8516         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
8517         Do only the tests that are needed to see whether the system has
8518         getloadavg, moving the other tests into ...
8519         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
8520         NLIST_NAME_UNION; nobody should be using it.  Do not define
8521         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
8522         relevant, as the user of this module shouldn't care how getloadavg
8523         is implemented.
8524
8525         getloadavg: omit unused var
8526         * lib/getloadavg.c (getloadavg): Omit unused local variable.
8527
8528 2011-02-15  Jim Meyering  <meyering@redhat.com>
8529
8530         doc: update users.txt
8531         * users.txt: Update iwhd's URL.
8532
8533 2011-02-13  Bruno Haible  <bruno@clisp.org>
8534
8535         Consistent macro naming for macros that use GCC __attribute__.
8536         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
8537         _ATTRIBUTE_NONNULL_.
8538         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
8539         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
8540         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
8541         ATTRIBUTE_DEPRECATED.
8542         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
8543         ATTRIBUTE_NORETURN.
8544         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
8545         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
8546         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
8547         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
8548         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
8549         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
8550         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
8551         ATTRIBUTE_SENTINEL.
8552         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
8553         ATTRIBUTE_RETURN_CHECK.
8554         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
8555         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
8556         ATTRIBUTE_NORETURN.
8557         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
8558         Reported by Paul Eggert.
8559
8560 2011-02-13  Bruno Haible  <bruno@clisp.org>
8561
8562         Don't interfere with a program's definition of __attribute__.
8563         * lib/argp.h (__attribute__): Remove definition.
8564         (_GL_ATTRIBUTE_FORMAT): New macro.
8565         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
8566         * lib/argp-fmtstream.h (__attribute__): Remove definition.
8567         (_GL_ATTRIBUTE_FORMAT): New macro.
8568         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
8569         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
8570         GCC 3 or newer.
8571         * lib/error.h (__attribute__): Remove definition.
8572         (_GL_ATTRIBUTE_FORMAT): New macro.
8573         (error, error_at_line): Use it.
8574         * lib/hash.h (__attribute__): Remove definition.
8575         (ATTRIBUTE_WUR): Update definition. Define always.
8576         * lib/openat.h (__attribute__): Remove definition.
8577         (ATTRIBUTE_NORETURN): Update definition. Define always.
8578         * lib/sigpipe-die.h (__attribute__): Remove definition.
8579         (ATTRIBUTE_NORETURN): Update definition. Define always.
8580         * lib/vasnprintf.h (__attribute__): Remove definition.
8581         (_GL_ATTRIBUTE_FORMAT): New macro.
8582         (asnprintf, vasnprintf): Use it.
8583         * lib/xalloc.h (__attribute__): Remove definition.
8584         (ATTRIBUTE_NORETURN): Update definition. Define always.
8585         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
8586         * lib/xmemdup0.h (__attribute__): Remove definition.
8587         (ATTRIBUTE_NORETURN): Update definition. Define always.
8588         * lib/xprintf.h (__attribute__): Remove definition.
8589         (_GL_ATTRIBUTE_FORMAT): New macro.
8590         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
8591         * lib/xstrtol.h (__attribute__): Remove definition.
8592         (ATTRIBUTE_NORETURN): Update definition. Define always.
8593         * lib/xvasprintf.h (__attribute__): Remove definition.
8594         (_GL_ATTRIBUTE_FORMAT): New macro.
8595         (xasprintf, xvasprintf): Use it.
8596         * tests/test-argmatch.c (__attribute__): Remove definition.
8597         (ATTRIBUTE_NORETURN): Update definition. Define always.
8598         * tests/test-exclude.c (__attribute__): Remove definition.
8599         (ATTRIBUTE_NORETURN): Update definition. Define always.
8600         Reported by Paul Eggert.
8601
8602 2011-02-13  Bruno Haible  <bruno@clisp.org>
8603
8604         mbrtowc: Add more tests for native Windows platforms.
8605         * tests/test-mbrtowc-w32-1.sh: New file.
8606         * tests/test-mbrtowc-w32-2.sh: New file.
8607         * tests/test-mbrtowc-w32-3.sh: New file.
8608         * tests/test-mbrtowc-w32-4.sh: New file.
8609         * tests/test-mbrtowc-w32-5.sh: New file.
8610         * tests/test-mbrtowc-w32.c: New file.
8611         * modules/mbrtowc-tests (Files): Add them.
8612         (Makefile.am): Arrange to run these tests.
8613         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
8614         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
8615
8616 2011-02-13  Bruno Haible  <bruno@clisp.org>
8617
8618         mbrtowc: Work around native Windows bug.
8619         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
8620         guess when no suitable locale for testing was found.
8621         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
8622
8623 2011-02-13  Bruno Haible  <bruno@clisp.org>
8624
8625         mbsinit: Work around mingw bug.
8626         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
8627         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
8628         Windows.
8629         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
8630
8631 2011-02-13  Bruno Haible  <bruno@clisp.org>
8632
8633         mbsinit: Don't crash for a NULL argument.
8634         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
8635         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
8636
8637 2011-02-13  Bruno Haible  <bruno@clisp.org>
8638
8639         Don't interfere with a program's definition of __attribute__.
8640         * lib/stdio.in.h (__attribute__): Remove definition.
8641         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
8642         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
8643         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
8644         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
8645         * lib/string.in.h (__attribute__): Remove definition.
8646         Reported by Paul Eggert.
8647
8648 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
8649
8650         stdlib: don't get in the way of non-GCC __attribute__
8651         See thread starting at
8652         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
8653         Revert previous stdlib change, installing the following instead:
8654         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
8655         to get in the way of a non-GCC compiler that supports __attribute__.
8656         (_GL_ATTRIBUTE_RETURN): New macro.
8657         (_Exit): Use it instead of __attribute__.
8658
8659 2011-02-12  Bruno Haible  <bruno@clisp.org>
8660
8661         quotearg test: Avoid test failure on mingw.
8662         * tests/test-quotearg.sh: Convert the locale identifier from native
8663         Windows syntax to Unix syntax.
8664
8665 2011-02-12  Bruno Haible  <bruno@clisp.org>
8666
8667         setlocale: Prefer gnulib's override over libintl's override.
8668         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
8669         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
8670         GNULIB_defined_setlocale is set.
8671
8672 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
8673
8674         stdlib: support non-GCC __attribute__
8675
8676         Fix a serious and tricky problem encountered when attempting to
8677         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
8678         5.5, but it crashed due to memory corruption on Solaris 10 with
8679         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
8680         bits that are otherwise zero.  This tagging is optional inside
8681         Emacs but is preferred and is used when __attribute__ ((__aligned
8682         (8))) works, as it does with both recent-enough GCC and with Sun C
8683         5.11.  However, Sun C 5.11 is not GCC and does not #define
8684         __GNUC__ and __GNUC_MINOR__.
8685
8686         When I added the getloadavg module to Emacs, it brought in
8687         stdlib.in.h, which contained this fragment:
8688
8689            #ifndef __attribute__
8690            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
8691            #  define __attribute__(Spec)   /* empty */
8692            # endif
8693            #endif
8694
8695         When files that include <stdlib.h> were compiled with Sun C 5.11,
8696         the above code disabled __attribute__ ((__aligned (8))), which
8697         caused variables to not be properly aligned, which eventually led
8698         to the pointer corruption mentioned above.  (This was a bit hard
8699         to diagnose, unfortunately.)
8700
8701         Several "#define __attribute__(X) /* empty */" code snippets need
8702         to be eradicated from Gnulib to work with non-GCC compilers that
8703         support __attribute__.  The Autoconf way to do this is to test for
8704         each kind of attribute that we want support for, and selectively
8705         enable that in source code.
8706
8707         Fix this problem just for stdlib.h, by adding a test for the
8708         __noreturn__ attribute, and change stdlib.in.h to use that test
8709         when needed.  This technique can be easily generalized to the
8710         other *.in.h files and attributes, and a similar technique can be
8711         used for *.h and *.c files.  This patch is enough to solve the
8712         problem for Emacs + getloadavg, and I thought I'd publish it for
8713         feedback before undertaking further, similar fixes in other
8714         modules.
8715
8716         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
8717         because it's not needed for stdlib.h.  It merely substitutes the
8718         value directly into stdlib.h.  We may well need to #define it, or
8719         similar symbols, for other modules, but it's nice to also have an
8720         option to not #define it for applications like Emacs that do not
8721         need it.
8722
8723         * lib/stdlib.in.h (__attribute__): Do not #define.
8724         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
8725         be defined only if the _Exit module is also used.
8726         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
8727         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
8728         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
8729         platforms.
8730         * modules/_Exit (Files): Add m4/attribute.m4.
8731         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
8732         * m4/attribute.m4: New file.
8733
8734 2011-02-12  Bruno Haible  <bruno@clisp.org>
8735
8736         wcsrtombs: Work around bug on native Windows.
8737         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
8738         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
8739         instead of len.
8740         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
8741
8742 2011-02-12  Bruno Haible  <bruno@clisp.org>
8743
8744         mbsrtowcs: Work around bug on native Windows.
8745         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
8746         against mingw bug.
8747         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
8748
8749 2011-02-12  Bruno Haible  <bruno@clisp.org>
8750
8751         Avoid setlocale bugs in tests.
8752         * modules/btowc (Dependencies): Add setlocale.
8753         * modules/c-strcase (Dependencies): Likewise.
8754         * modules/mbmemcasecmp (Dependencies): Likewise.
8755         * modules/mbmemcasecoll (Dependencies): Likewise.
8756         * modules/mbrtowc (Dependencies): Likewise.
8757         * modules/mbscasecmp (Dependencies): Likewise.
8758         * modules/mbscasestr (Dependencies): Likewise.
8759         * modules/mbschr (Dependencies): Likewise.
8760         * modules/mbscspn (Dependencies): Likewise.
8761         * modules/mbsinit (Dependencies): Likewise.
8762         * modules/mbsncasecmp (Dependencies): Likewise.
8763         * modules/mbsnrtowcs (Dependencies): Likewise.
8764         * modules/mbspbrk (Dependencies): Likewise.
8765         * modules/mbspcasecmp (Dependencies): Likewise.
8766         * modules/mbsrchr (Dependencies): Likewise.
8767         * modules/mbsrtowcs (Dependencies): Likewise.
8768         * modules/mbsspn (Dependencies): Likewise.
8769         * modules/mbsstr (Dependencies): Likewise.
8770         * modules/nl_langinfo (Dependencies): Likewise.
8771         * modules/quotearg (Dependencies): Likewise.
8772         * modules/unicase/locale-language (Dependencies): Likewise.
8773         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
8774         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
8775         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
8776         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
8777         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
8778         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
8779         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
8780         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
8781         * modules/vasnprintf-posix (Dependencies): Likewise.
8782         * modules/wcrtomb (Dependencies): Likewise.
8783         * modules/wcsnrtombs (Dependencies): Likewise.
8784         * modules/wcsrtombs (Dependencies): Likewise.
8785
8786 2011-02-12  Bruno Haible  <bruno@clisp.org>
8787
8788         setlocale: Workaround native Windows bug.
8789         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
8790         succeeds but sets LC_CTYPE to "C", report a failure.
8791         * tests/test-setlocale2.sh: New file.
8792         * tests/test-setlocale2.c: New file.
8793         * modules/setlocale-tests (Files): Add the new files.
8794         (Makefile.am): Enable test-setlocale2.sh test.
8795         * doc/posix-functions/setlocale.texi: Mention workaround.
8796
8797 2011-02-11  Bruno Haible  <bruno@clisp.org>
8798
8799         Tests for module 'setlocale'.
8800         * modules/setlocale-tests: New file.
8801         * tests/test-setlocale1.sh: New file.
8802         * tests/test-setlocale1.c: New file.
8803
8804         New module 'setlocale'.
8805         * lib/locale.in.h (setlocale): New declaration.
8806         * lib/setlocale.c: New file, based on
8807         gettext/gettext-runtime/intl/setlocale.c.
8808         * m4/setlocale.m4: New file.
8809         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
8810         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
8811         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
8812         REPLACE_SETLOCALE.
8813         * modules/setlocale: New file.
8814         * tests/test-locale-c++.cc: Test the declaration of setlocale.
8815         * doc/posix-functions/setlocale.texi: Mention the new module.
8816
8817 2011-02-11  Bruno Haible  <bruno@clisp.org>
8818
8819         Prepare for locale dependent tests on mingw.
8820         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
8821         because it has the wrong locale encoding.
8822         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
8823         French_France.1252 instead of "fr".
8824         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
8825         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
8826         because it has the wrong locale encoding.
8827         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
8828         native Windows, try Turkish_Turkey.65001.
8829         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
8830         Chinese_China.54936.
8831
8832         Prepare for locale dependent tests on mingw.
8833         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
8834         differently.
8835         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
8836         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
8837         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
8838         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
8839
8840 2011-02-11  Eric Blake  <eblake@redhat.com>
8841
8842         strptime: avoid compiler warnings
8843         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
8844         compiler warnings about dead code.
8845         Reported by Daniel P. Berrange.
8846
8847 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
8848
8849         doc: update users.txt
8850         * users.txt: Add rcs.
8851
8852 2011-02-10  John W. Eaton  <jwe@gnu.org>
8853
8854         doc: update users.txt
8855         * users.txt: Add octave.
8856
8857 2011-02-10  Jim Meyering  <meyering@redhat.com>
8858
8859         doc: update users.txt
8860         * users.txt: Add iwhd.
8861
8862 2011-02-09  Bruno Haible  <bruno@clisp.org>
8863
8864         gnulib-tool: Make copyright notice adjustment more robust.
8865         * gnulib-tool (func_import): In sed_transform_main_lib_file,
8866         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
8867         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
8868         License".
8869         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
8870
8871 2011-02-06  Bruno Haible  <bruno@clisp.org>
8872
8873         New module 'towctrans'.
8874         * modules/towctrans: New file.
8875         * lib/wctype.in.h (towctrans): New declaration.
8876         * lib/towctrans.c: New file.
8877         * lib/towctrans-impl.h: New file.
8878         * m4/towctrans.m4: New file.
8879         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
8880         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
8881         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
8882         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
8883         * doc/posix-functions/towctrans.texi: Mention the new module.
8884
8885 2011-02-06  Bruno Haible  <bruno@clisp.org>
8886
8887         New module 'wctrans'.
8888         * modules/wctrans: New file.
8889         * lib/wctype.in.h (wctrans): New declaration.
8890         * lib/wctrans.c: New file.
8891         * lib/wctrans-impl.h: New file.
8892         * m4/wctrans.m4: New file.
8893         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
8894         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
8895         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
8896         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
8897         * doc/posix-functions/wctrans.texi: Mention the new module.
8898
8899 2011-02-06  Bruno Haible  <bruno@clisp.org>
8900
8901         New module 'iswctype'.
8902         * modules/iswctype: New file.
8903         * lib/wctype.in.h (iswctype): New declaration.
8904         * lib/iswctype.c: New file.
8905         * lib/iswctype-impl.h: New file.
8906         * m4/iswctype.m4: New file.
8907         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
8908         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
8909         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
8910         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
8911         * doc/posix-functions/iswctype.texi: Mention the new module and the
8912         HP-UX 11.00 problem.
8913
8914 2011-02-06  Bruno Haible  <bruno@clisp.org>
8915
8916         New module 'wctype'.
8917         * modules/wctype: Change to represent the wctype() substitute.
8918         * lib/wctype.in.h (wctype): New declaration.
8919         * lib/wctype.c: New file.
8920         * lib/wctype-impl.h: New file.
8921         * m4/wctype.m4: New file.
8922         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
8923         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
8924         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
8925         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
8926         * doc/posix-functions/wctype.texi: Mention the new module and the
8927         HP-UX 11.00 problem.
8928
8929 2011-02-06  Bruno Haible  <bruno@clisp.org>
8930
8931         wctype-h: Ensure wctype_t and wctrans_t are defined.
8932         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
8933         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
8934         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
8935         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
8936         HAVE_WCTRANS_T.
8937         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
8938
8939 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
8940
8941         flock: fix license typo
8942
8943         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
8944         omitted.
8945
8946 2011-02-08  Bruno Haible  <bruno@clisp.org>
8947
8948         Split large sed scripts, for HP-UX sed.
8949         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
8950         to avoid HP-UX limit of 99 commands, in the near future.
8951         * modules/stdlib (Makefile.am): Likewise.
8952         * modules/unistd (Makefile.am): Likewise.
8953         * modules/wchar (Makefile.am): Likewise.
8954         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
8955         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
8956         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
8957
8958 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
8959             Bruno Haible  <bruno@clisp.org>
8960
8961         stdlib: improve random_r modularization
8962         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
8963         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
8964         you also need the random_r module to get this material right.
8965         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
8966         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
8967         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
8968
8969 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
8970
8971         stdlib: don't depend on stdint
8972         * lib/stdlib.in.h: Don't include <stdint.h> merely because
8973         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
8974         be independent of whether stdint.h is needed.
8975         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
8976         here, instead of ...
8977         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
8978         struct random_data should be using the random_r module, not just
8979         the stdlib module (which wouldn't make sense: what package needs
8980         just struct random_data without also needing random_r?).
8981         * modules/stdlib (Depends-on): Remove stdint.
8982
8983         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
8984         See the thread rooted at
8985         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
8986         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
8987         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
8988         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
8989         __VMS)); previously it was always included (via fcntl--.h).
8990         (getloadavg): Do not use c_strtod.  Instead, approximate it by
8991         hand; this is good enough for load averages.  Also, do not use
8992         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
8993         flags directly if available and don't bother otherwise.  (Packages
8994         that need the extra reliability should use the modules that define
8995         these flags on older platforms that lack them.)
8996         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
8997         fcntl-safer.
8998
8999 2011-02-08  Jim Meyering  <meyering@redhat.com>
9000
9001         di-set.h, ino-map.h: add multiple-inclusion guard
9002         Technically, the guard is required only for ino-map.h, due to its
9003         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
9004         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
9005         * lib/ino-map.h: Likewise.
9006
9007 2011-02-06  Bruno Haible  <bruno@clisp.org>
9008
9009         iswblank: Ensure declaration on glibc systems.
9010         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
9011         * modules/iswblank (Dependencies): Add 'extensions'.
9012         * doc/posix-functions/iswblank.texi: Document the glibc problem.
9013
9014 2011-02-06  Bruno Haible  <bruno@clisp.org>
9015
9016         New module 'iswblank'.
9017         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
9018         * modules/iswblank: New file.
9019         * modules/wctype-h (Files): Remove lib/iswblank.c.
9020         (Makefile.am): Substitute GNULIB_ISWBLANK.
9021         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
9022         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
9023         (gl_WCTYPE_H_DEFAULTS): New macro.
9024         (gl_WCTYPE_H): Require it. Remove iswblank related code.
9025         * modules/iswblank-tests: New file.
9026         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
9027         * tests/test-wctype-h.c (main): Remove iswblank tests.
9028         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
9029         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
9030         of 'wctype-h'.
9031         * NEWS: Mention the change.
9032         * modules/mbchar (Depends-on): Add iswblank.
9033
9034 2011-02-08  Bruno Haible  <bruno@clisp.org>
9035
9036         di-set tests: Refactor.
9037         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
9038         unnecessary includes.
9039         (ASSERT): Remove macro.
9040         (main): Make C90 compliant by avoiding variable declaration after
9041         statement.
9042         * modules/di-set-tests (Files): Add tests/macros.h.
9043
9044 2011-02-08  Bruno Haible  <bruno@clisp.org>
9045
9046         ino-map tests: Refactor.
9047         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
9048         unnecessary includes.
9049         (ASSERT): Remove macro.
9050         (main): Make C90 compliant by avoiding variable declaration after
9051         statement.
9052         * modules/ino-map-tests (Files): Add tests/macros.h.
9053
9054 2011-02-08  Jim Meyering  <meyering@redhat.com>
9055
9056         di-set: add "const" to a cast
9057         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
9058         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
9059
9060 2011-02-06  Bruno Haible  <bruno@clisp.org>
9061
9062         Rename module 'wctype' to 'wctype-h'.
9063         * modules/wctype-h: Renamed from modules/wctype.
9064         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
9065         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
9066         (Files, Depends-on, Makefile.am): Update.
9067         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
9068         (Files, Makefile.am): Update.
9069         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
9070         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
9071         * doc/posix-headers/wctype.texi: Update.
9072         * doc/posix-functions/iswalnum.texi: Update.
9073         * doc/posix-functions/iswalpha.texi: Update.
9074         * doc/posix-functions/iswblank.texi: Update.
9075         * doc/posix-functions/iswcntrl.texi: Update.
9076         * doc/posix-functions/iswdigit.texi: Update.
9077         * doc/posix-functions/iswgraph.texi: Update.
9078         * doc/posix-functions/iswlower.texi: Update.
9079         * doc/posix-functions/iswprint.texi: Update.
9080         * doc/posix-functions/iswpunct.texi: Update.
9081         * doc/posix-functions/iswspace.texi: Update.
9082         * doc/posix-functions/iswupper.texi: Update.
9083         * doc/posix-functions/iswxdigit.texi: Update.
9084         * doc/posix-functions/towlower.texi: Update.
9085         * doc/posix-functions/towupper.texi: Update.
9086         * NEWS: Mention the change.
9087         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
9088         * modules/mbchar (Dependencies): Likewise.
9089         * modules/mbswidth (Dependencies): Likewise.
9090         * modules/quotearg (Dependencies): Likewise.
9091         * modules/regex (Dependencies): Likewise.
9092         * modules/wcscasecmp (Dependencies): Likewise.
9093         * modules/wcsncasecmp (Dependencies): Likewise.
9094         * modules/wcwidth (Dependencies): Likewise.
9095
9096 2011-02-06  Bruno Haible  <bruno@clisp.org>
9097
9098         New module 'wcswidth'.
9099         * modules/wcswidth: New file.
9100         * lib/wchar.in.h (wcswidth): New declaration.
9101         * lib/wcswidth.c: New file.
9102         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
9103         * m4/wcswidth.m4: New file.
9104         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
9105         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
9106         REPLACE_WCSWIDTH.
9107         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
9108         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
9109         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
9110         * doc/posix-functions/wcswidth.texi: Mention the new module.
9111
9112 2011-02-06  Bruno Haible  <bruno@clisp.org>
9113
9114         New module 'wcstok'.
9115         * modules/wcstok: New file.
9116         * lib/wchar.in.h (wcstok): New declaration.
9117         * lib/wcstok.c: New file.
9118         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
9119         * m4/wcstok.m4: New file.
9120         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
9121         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
9122         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
9123         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
9124         * doc/posix-functions/wcstok.texi: Mention the new module.
9125
9126 2011-02-06  Bruno Haible  <bruno@clisp.org>
9127
9128         New module 'wcsstr'.
9129         * modules/wcsstr: New file.
9130         * lib/wchar.in.h (wcsstr): New declaration.
9131         * lib/wcsstr.c: New file.
9132         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
9133         * m4/wcsstr.m4: New file.
9134         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
9135         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
9136         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
9137         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
9138         * doc/posix-functions/wcsstr.texi: Mention the new module.
9139
9140 2011-02-06  Bruno Haible  <bruno@clisp.org>
9141
9142         New module 'wcspbrk'.
9143         * modules/wcspbrk: New file.
9144         * lib/wchar.in.h (wcspbrk): New declaration.
9145         * lib/wcspbrk.c: New file.
9146         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
9147         * m4/wcspbrk.m4: New file.
9148         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
9149         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
9150         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
9151         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
9152         * doc/posix-functions/wcspbrk.texi: Mention the new module.
9153
9154 2011-02-06  Bruno Haible  <bruno@clisp.org>
9155
9156         New module 'wcsspn'.
9157         * modules/wcsspn: New file.
9158         * lib/wchar.in.h (wcsspn): New declaration.
9159         * lib/wcsspn.c: New file.
9160         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
9161         * m4/wcsspn.m4: New file.
9162         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
9163         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
9164         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
9165         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
9166         * doc/posix-functions/wcsspn.texi: Mention the new module.
9167
9168 2011-02-06  Bruno Haible  <bruno@clisp.org>
9169
9170         New module 'wcscspn'.
9171         * modules/wcscspn: New file.
9172         * lib/wchar.in.h (wcscspn): New declaration.
9173         * lib/wcscspn.c: New file.
9174         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
9175         * m4/wcscspn.m4: New file.
9176         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
9177         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
9178         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
9179         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
9180         * doc/posix-functions/wcscspn.texi: Mention the new module.
9181
9182 2011-02-06  Bruno Haible  <bruno@clisp.org>
9183
9184         New module 'wcsrchr'.
9185         * modules/wcsrchr: New file.
9186         * lib/wchar.in.h (wcsrchr): New declaration.
9187         * lib/wcsrchr.c: New file.
9188         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
9189         * m4/wcsrchr.m4: New file.
9190         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
9191         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
9192         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
9193         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
9194         * doc/posix-functions/wcsrchr.texi: Mention the new module.
9195
9196 2011-02-06  Bruno Haible  <bruno@clisp.org>
9197
9198         New module 'wcschr'.
9199         * modules/wcschr: New file.
9200         * lib/wchar.in.h (wcschr): New declaration.
9201         * lib/wcschr.c: New file.
9202         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
9203         * m4/wcschr.m4: New file.
9204         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
9205         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
9206         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
9207         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
9208         * doc/posix-functions/wcschr.texi: Mention the new module.
9209
9210 2011-02-06  Bruno Haible  <bruno@clisp.org>
9211
9212         New module 'wcsdup'.
9213         * modules/wcsdup: New file.
9214         * lib/wchar.in.h (wcsdup): New declaration.
9215         * lib/wcsdup.c: New file.
9216         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
9217         * m4/wcsdup.m4: New file.
9218         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
9219         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
9220         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
9221         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
9222         * doc/posix-functions/wcsdup.texi: Mention the new module.
9223
9224 2011-02-06  Bruno Haible  <bruno@clisp.org>
9225
9226         New module 'wcsxfrm'.
9227         * modules/wcsxfrm: New file.
9228         * lib/wchar.in.h (wcsxfrm): New declaration.
9229         * lib/wcsxfrm.c: New file.
9230         * lib/wcsxfrm-impl.h: New file.
9231         * m4/wcsxfrm.m4: New file.
9232         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
9233         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
9234         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
9235         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
9236         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
9237
9238 2011-02-06  Bruno Haible  <bruno@clisp.org>
9239
9240         New module 'wcscoll'.
9241         * modules/wcscoll: New file.
9242         * lib/wchar.in.h (wcscoll): New declaration.
9243         * lib/wcscoll.c: New file.
9244         * lib/wcscoll-impl.h: New file.
9245         * m4/wcscoll.m4: New file.
9246         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
9247         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
9248         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
9249         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
9250         * doc/posix-functions/wcscoll.texi: Mention the new module.
9251
9252 2011-02-06  Bruno Haible  <bruno@clisp.org>
9253
9254         New module 'wcsncasecmp'.
9255         * modules/wcsncasecmp: New file.
9256         * lib/wchar.in.h (wcsncasecmp): New declaration.
9257         * lib/wcsncasecmp.c: New file.
9258         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
9259         * m4/wcsncasecmp.m4: New file.
9260         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
9261         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
9262         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
9263         HAVE_WCSNCASECMP.
9264         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
9265         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
9266
9267 2011-02-06  Bruno Haible  <bruno@clisp.org>
9268
9269         New module 'wcscasecmp'.
9270         * modules/wcscasecmp: New file.
9271         * lib/wchar.in.h (wcscasecmp): New declaration.
9272         * lib/wcscasecmp.c: New file.
9273         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
9274         * m4/wcscasecmp.m4: New file.
9275         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
9276         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
9277         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
9278         HAVE_WCSCASECMP.
9279         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
9280         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
9281
9282 2011-02-05  Bruno Haible  <bruno@clisp.org>
9283
9284         New module 'wcsncmp'.
9285         * modules/wcsncmp: New file.
9286         * lib/wchar.in.h (wcsncmp): New declaration.
9287         * lib/wcsncmp.c: New file.
9288         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
9289         * m4/wcsncmp.m4: New file.
9290         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
9291         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
9292         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
9293         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
9294         * doc/posix-functions/wcsncmp.texi: Mention the new module.
9295
9296 2011-02-05  Bruno Haible  <bruno@clisp.org>
9297
9298         New module 'wcscmp'.
9299         * modules/wcscmp: New file.
9300         * lib/wchar.in.h (wcscmp): New declaration.
9301         * lib/wcscmp.c: New file.
9302         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
9303         * m4/wcscmp.m4: New file.
9304         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
9305         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
9306         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
9307         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
9308         * doc/posix-functions/wcscmp.texi: Mention the new module.
9309
9310 2011-02-05  Bruno Haible  <bruno@clisp.org>
9311
9312         New module 'wcsncat'.
9313         * modules/wcsncat: New file.
9314         * lib/wchar.in.h (wcsncat): New declaration.
9315         * lib/wcsncat.c: New file.
9316         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
9317         * m4/wcsncat.m4: New file.
9318         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
9319         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
9320         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
9321         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
9322         * doc/posix-functions/wcsncat.texi: Mention the new module.
9323
9324 2011-02-05  Bruno Haible  <bruno@clisp.org>
9325
9326         New module 'wcscat'.
9327         * modules/wcscat: New file.
9328         * lib/wchar.in.h (wcscat): New declaration.
9329         * lib/wcscat.c: New file.
9330         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
9331         * m4/wcscat.m4: New file.
9332         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
9333         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
9334         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
9335         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
9336         * doc/posix-functions/wcscat.texi: Mention the new module.
9337
9338 2011-02-05  Bruno Haible  <bruno@clisp.org>
9339
9340         New module 'wcpncpy'.
9341         * modules/wcpncpy: New file.
9342         * lib/wchar.in.h (wcpncpy): New declaration.
9343         * lib/wcpncpy.c: New file.
9344         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
9345         * m4/wcpncpy.m4: New file.
9346         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
9347         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
9348         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
9349         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
9350         * doc/posix-functions/wcpncpy.texi: Mention the new module.
9351
9352 2011-02-05  Bruno Haible  <bruno@clisp.org>
9353
9354         New module 'wcsncpy'.
9355         * modules/wcsncpy: New file.
9356         * lib/wchar.in.h (wcsncpy): New declaration.
9357         * lib/wcsncpy.c: New file.
9358         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
9359         * m4/wcsncpy.m4: New file.
9360         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
9361         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
9362         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
9363         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
9364         * doc/posix-functions/wcsncpy.texi: Mention the new module.
9365
9366 2011-02-05  Bruno Haible  <bruno@clisp.org>
9367
9368         New module 'wcpcpy'.
9369         * modules/wcpcpy: New file.
9370         * lib/wchar.in.h (wcpcpy): New declaration.
9371         * lib/wcpcpy.c: New file.
9372         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
9373         * m4/wcpcpy.m4: New file.
9374         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
9375         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
9376         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
9377         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
9378         * doc/posix-functions/wcpcpy.texi: Mention the new module.
9379
9380 2011-02-05  Bruno Haible  <bruno@clisp.org>
9381
9382         New module 'wcscpy'.
9383         * modules/wcscpy: New file.
9384         * lib/wchar.in.h (wcscpy): New declaration.
9385         * lib/wcscpy.c: New file.
9386         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
9387         * m4/wcscpy.m4: New file.
9388         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
9389         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
9390         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
9391         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
9392         * doc/posix-functions/wcscpy.texi: Mention the new module.
9393
9394 2011-02-05  Bruno Haible  <bruno@clisp.org>
9395
9396         New module 'wcsnlen'.
9397         * modules/wcsnlen: New file.
9398         * lib/wchar.in.h (wcsnlen): New declaration.
9399         * lib/wcsnlen.c: New file.
9400         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
9401         * m4/wcsnlen.m4: New file.
9402         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
9403         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
9404         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
9405         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
9406         * doc/posix-functions/wcsnlen.texi: Mention the new module.
9407
9408 2011-02-05  Bruno Haible  <bruno@clisp.org>
9409
9410         New module 'wcslen'.
9411         * modules/wcslen: New file.
9412         * lib/wchar.in.h (wcslen): New declaration.
9413         * lib/wcslen.c: New file.
9414         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
9415         * m4/wcslen.m4: New file.
9416         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
9417         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
9418         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
9419         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
9420         * doc/posix-functions/wcslen.texi: Mention the new module.
9421
9422 2011-02-05  Bruno Haible  <bruno@clisp.org>
9423
9424         New module 'wmemset'.
9425         * modules/wmemset: New file.
9426         * lib/wchar.in.h (wmemset): New declaration.
9427         * lib/wmemset.c: New file.
9428         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
9429         * m4/wmemset.m4: New file.
9430         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
9431         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
9432         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
9433         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
9434         * doc/posix-functions/wmemset.texi: Mention the new module.
9435
9436 2011-02-05  Bruno Haible  <bruno@clisp.org>
9437
9438         New module 'wmemmove'.
9439         * modules/wmemmove: New file.
9440         * lib/wchar.in.h (wmemmove): New declaration.
9441         * lib/wmemmove.c: New file.
9442         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
9443         * m4/wmemmove.m4: New file.
9444         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
9445         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
9446         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
9447         HAVE_WMEMMOVE.
9448         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
9449         * doc/posix-functions/wmemmove.texi: Mention the new module.
9450
9451 2011-02-05  Bruno Haible  <bruno@clisp.org>
9452
9453         New module 'wmemcpy'.
9454         * modules/wmemcpy: New file.
9455         * lib/wchar.in.h (wmemcpy): New declaration.
9456         * lib/wmemcpy.c: New file.
9457         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
9458         * m4/wmemcpy.m4: New file.
9459         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
9460         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
9461         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
9462         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
9463         * doc/posix-functions/wmemcpy.texi: Mention the new module.
9464
9465 2011-02-05  Bruno Haible  <bruno@clisp.org>
9466
9467         New module 'wmemcmp'.
9468         * modules/wmemcmp: New file.
9469         * lib/wchar.in.h (wmemcmp): New declaration.
9470         * lib/wmemcmp.c: New file.
9471         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
9472         * m4/wmemcmp.m4: New file.
9473         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
9474         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
9475         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
9476         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
9477         * doc/posix-functions/wmemcmp.texi: Mention the new module.
9478
9479 2011-02-07  Jim Meyering  <meyering@redhat.com>
9480
9481         di-set, ino-map: new modules, from coreutils
9482         * lib/di-set.c: New file.
9483         * lib/di-set.h: Likewise.
9484         * lib/ino-map.c: Likewise.
9485         * lib/ino-map.h: Likewise.
9486         * modules/di-set: Likewise.
9487         * modules/di-set-tests: Likewise.
9488         * modules/ino-map: Likewise.
9489         * modules/ino-map-tests: Likewise.
9490         * tests/test-di-set.c: Likewise.
9491         * tests/test-ino-map.c: Likewise.
9492
9493 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
9494
9495         getloadavg: merge minor changes from Emacs
9496
9497         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
9498         (getloadavg): Use memset, not bzero.
9499
9500         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
9501         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
9502         clash (bug#86).
9503
9504 2010-11-14  Bruno Haible  <bruno@clisp.org>
9505
9506         Allow multiple gnulib generated replacements to coexist.
9507         * lib/getopt.in.h (struct option): Avoid identical redefinition.
9508         * lib/inttypes.in.h (imaxdiv_t): Likewise.
9509         * lib/langinfo.in.h (nl_item): Likewise.
9510         * lib/math.in.h (_NaN, NAN): Likewise.
9511         * lib/netdb.in.h (struct addrinfo): Likewise.
9512         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
9513         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
9514         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
9515         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
9516         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
9517         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
9518         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
9519         pthread_mutexattr_init, pthread_mutexattr_settype,
9520         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
9521         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
9522         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
9523         pthread_spin_trylock, pthread_spin_unlock): Likewise.
9524         * lib/sched.in.h (struct sched_param): Likewise.
9525         * lib/se-selinux.in.h (security_class_t, security_context_t,
9526         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
9527         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
9528         lsetfilecon, fsetfilecon, security_check_context,
9529         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
9530         Likewise.
9531         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
9532         Likewise.
9533         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
9534         _gl_function_taking_int_returning_void_t, union sigval,
9535         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
9536         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
9537         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
9538         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
9539         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
9540         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
9541         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
9542         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
9543         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
9544         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
9545         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
9546         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
9547         socklen_t, rpl_fd_isset): Likewise.
9548         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
9549         * lib/sys_time.in.h (struct timeval): Likewise.
9550         * lib/sys_times.in.h (struct tms): Likewise.
9551         * lib/sys_utsname.in.h (struct utsname):
9552         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
9553         * lib/unistd.in.h (getpagesize): Likewise.
9554         * lib/wchar.in.h (mbstate_t): Likewise.
9555         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
9556         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
9557         towlower, towupper): Likewise.
9558         Reported by Sam Steingold <sds@gnu.org>.
9559
9560 2011-02-05  Eric Blake  <eblake@redhat.com>
9561
9562         unsetenv: work around Haiku issues
9563         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
9564         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
9565
9566 2010-12-30  Bruce Korb  <bkorb@gnu.org>
9567
9568         libposix: avoid calling error() within libposix
9569         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
9570         is defined.
9571
9572 2011-02-05  Eric Blake  <eblake@redhat.com>
9573
9574         strerror_r-posix: port to cygwin
9575         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
9576         implementation.
9577         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
9578         * tests/test-strerror_r.c (main): Fix test.
9579         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
9580         issue.
9581
9582 2011-02-05  Bruno Haible  <bruno@clisp.org>
9583
9584         New module 'wmemchr'.
9585         * modules/wmemchr: New file.
9586         * lib/wchar.in.h (wmemchr): New declaration.
9587         * lib/wmemchr.c: New file.
9588         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
9589         * m4/wmemchr.m4: New file.
9590         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
9591         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
9592         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
9593         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
9594         * doc/posix-functions/wmemchr.texi: Mention the new module.
9595
9596 2011-02-04  Eric Blake  <eblake@redhat.com>
9597
9598         fdopendir: detect FreeBSD bug
9599         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
9600         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
9601
9602 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
9603
9604         stdbool: do not define HAVE_STDBOOL_H
9605         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
9606         AC_HEADER_STDBOOL.  All uses changed.  Do not define
9607         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
9608         imported from the latest Autoconf git.  It was motivated by Emacs,
9609         which uses gnulib but does not need HAVE_STDBOOL_H.
9610
9611 2011-02-04  Bruno Haible  <bruno@clisp.org>
9612
9613         wcsnrtombs: Prepare for new module wwcsnrtombs.
9614         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
9615         * lib/wcsnrtombs.c: Include it.
9616         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
9617
9618         wcsrtombs: Prepare for new module wwcsrtombs.
9619         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
9620         * lib/wcsrtombs.c: Include it.
9621         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
9622
9623         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
9624         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
9625         * lib/mbsnrtowcs.c: Include it.
9626         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
9627
9628         mbsrtowcs: Prepare for new module mbsrtowwcs.
9629         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
9630         * lib/mbsrtowcs.c: Include it.
9631         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
9632
9633 2011-02-04  Bruno Haible  <bruno@clisp.org>
9634
9635         vasnprintf: Reduce use of malloc for small format strings.
9636         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
9637         (arguments): Add room for the first 7 arguments.
9638         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
9639         (char_directives, u8_directives, u16_directives, u32_directives): Add
9640         room for the first 7 directives.
9641         * lib/printf-parse.c: Include <string.h>.
9642         (PRINTF_PARSE): Change memory handling code so that it uses the first
9643         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
9644         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
9645         Reported by Pádraig Brady <P@draigbrady.com>.
9646
9647 2011-01-31  Eric Blake  <eblake@redhat.com>
9648
9649         dup2: work around Haiku bug
9650         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
9651         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
9652         * doc/posix-functions/dup2.texi (dup2): Document the bug.
9653         * tests/test-dup2.c (main): Enhance test.
9654
9655 2011-01-31  Simon Josefsson  <simon@josefsson.org>
9656
9657         doc: off_t is not available in eglibc 2.11.2 stdio.h.
9658         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
9659         declared by eglibc 2.11.2.
9660         * lib/stdio.in.h: Likewise.
9661
9662 2011-01-31  Eric Blake  <eblake@redhat.com>
9663
9664         ignore-value: add missing test dependency
9665         * tests/test-ignore-value.c: Revert previous change; stdio.h
9666         provides off_t.
9667         * modules/ignore-value-tests (Depends-on): Add missing dependency.
9668
9669 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
9670
9671         mktime: clarify long_int width checking
9672         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
9673         the top level, to make it clearer that the assumption about
9674         long_int width is being checked.  See
9675         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
9676
9677 2011-01-30  Simon Josefsson  <simon@josefsson.org>
9678
9679         ignore-value: Fix self-test.
9680         * tests/test-ignore-value.c: Include sys/types.h for off_t.
9681
9682 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
9683
9684         TYPE_MAXIMUM: avoid theoretically undefined behavior
9685         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
9686         negative number, which the C Standard says has undefined behavior.
9687         In practice this is not a problem, but might as well do it by the book.
9688         Reported by Rich Felker and Eric Blake; see
9689         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
9690         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
9691         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
9692         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9693         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
9694         * m4/stdint.m4 (gl_STDINT_H): Likewise.
9695         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
9696
9697         mktime: #undef mktime before #defining it
9698         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
9699
9700         mktime: systematically normalize tm_isdst comparisons
9701         * lib/mktime.c (isdst_differ): New function.
9702         (__mktime_internal): Use it systematically for all isdst comparisons.
9703         This completes the fix for libc BZ #6723, and removes the need for
9704         normalizing tm_isdst.  See
9705         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
9706         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
9707
9708         mktime: fix some integer overflow issues and sidestep the rest
9709
9710         This was prompted by a bug report by Benjamin Lindner for MinGW
9711         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
9712         His bug is due to signed integer overflow (0 - INT_MIN), and I
9713         I scanned through mktime.c looking for other integer overflow
9714         problems, fixing all the bugs I found.
9715
9716         Although the C Standard says the resulting code is still not safe
9717         in the presence of integer overflow, in practice it should be good
9718         enough for all real-world two's-complement implementations, except
9719         for debugging environments that deliberately trap on integer
9720         overflow (e.g., gcc -ftrapv).
9721
9722         * lib/mktime.c (WRAPV): New macro.
9723         (SHR): Also check that long_int and time_t shift right in the
9724         usual way, before using the fast-but-unportable method.
9725         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
9726         used.  The code already assumed two's complement, so there's
9727         no need to test for alternatives.  All uses removed.
9728         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
9729         the C standard.  Problem reported by Rich Felker in
9730         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
9731         (twos_complement_arithmetic): Also check long_int and time_t.
9732         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
9733         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
9734         (__mktime_internal): Avoid integer overflow with unary subtraction
9735         in two instances where -1 - X is an adequate replacement for -X,
9736         since the calculations are approximate.
9737
9738 2011-01-29  Eric Blake  <eblake@redhat.com>
9739
9740         mktime: avoid infinite loop
9741         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
9742         type; behavior is still undefined but portable to all known targets.
9743         Reported by Rich Felker.
9744
9745 2011-01-29  Simon Josefsson  <simon@josefsson.org>
9746
9747         rename, unlink, same-inode: Relicense.
9748         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
9749         * modules/unlink (License): Likewise.
9750         * modules/same-inode (License): Likewise.
9751
9752 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
9753
9754         mktime: avoid problems on NetBSD 5 / i386
9755         * lib/mktime.c (long_int): New type.  This works around a problem
9756         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
9757         but time_t is 64 bits, and where I expect the existing code is
9758         wrong in some cases.
9759         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
9760         (ydhms_diff): Bring back the compile-time check for wide-enough
9761         year and yday.
9762
9763         mktime: fix misspelling in comment
9764         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
9765         This merges all recent glibc changes of importance.
9766
9767 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9768
9769         move-if-change: cope with concurrent mv of identical file.
9770         * build-aux/move-if-change (CMPPROG): Accept environment
9771         variable as an override for `cmp'.
9772         (usage): Document CMPPROG.
9773         Adjust comparison to drop stdout.  Cope with failure of mv if
9774         the target file exists and is identical to the source, for
9775         parallel builds.
9776         Report from H.J. Lu against binutils in PR binutils/12283.
9777
9778 2011-01-28  Bruce Korb  <bkorb@gnu.org>
9779
9780         * users.txt: Mention sharutils.
9781
9782 2011-01-28  Simon Josefsson  <simon@josefsson.org>
9783
9784         * users.txt: Mention OATH Toolkit.
9785
9786 2011-01-27  Bruno Haible  <bruno@clisp.org>
9787
9788         Prepare for supporting FreeBSD 10.
9789         * build-aux/config.libpath: Remove handling of freebsd1*.
9790
9791 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
9792
9793         Prepare for supporting FreeBSD 10.
9794         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
9795         match FreeBSD 10.0.
9796
9797 2011-01-27  Bruno Haible  <bruno@clisp.org>
9798
9799         vma-iter, get-rusage-as: Add OpenBSD support.
9800         * modules/vma-iter (configure.ac): Test for mquery.
9801         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
9802         * lib/vma-iter.c: Include <sys/mman.h>.
9803         (vma_iterate): Add an implementation based on mquery().
9804         * lib/resource-ext.h (get_rusage_as): Update comments.
9805         * lib/get-rusage-as.c: Likewise.
9806         * lib/get-rusage-data.c: Likewise.
9807
9808 2011-01-26  Karl Berry  <karl@gnu.org>
9809
9810         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
9811         variables to make it easier to override the makeinfo program used.
9812
9813 2011-01-26  Eric Blake  <eblake@redhat.com>
9814
9815         fcntl: work around Haiku F_DUPFD bugs
9816         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
9817         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
9818         cloexec bit on duplication.
9819         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
9820
9821 2011-01-26  Bruno Haible  <bruno@clisp.org>
9822
9823         Enable memory leak tests on AIX.
9824         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
9825         * tests/test-fprintf-posix3.c (main): Likewise.
9826
9827 2011-01-26  Bruno Haible  <bruno@clisp.org>
9828
9829         Tests for module 'get-rusage-data'.
9830         * modules/get-rusage-data-tests: New file.
9831         * tests/test-get-rusage-data.c: New file.
9832
9833         New module 'get-rusage-data'.
9834         * lib/resource-ext.h (get_rusage_data): New declaration.
9835         * lib/get-rusage-data.c: New file.
9836         * modules/get-rusage-data: New file.
9837
9838 2011-01-25  Bruno Haible  <bruno@clisp.org>
9839
9840         get-rusage-as: Allow for easier testing.
9841         * lib/resource-ext.h (get_rusage_as): Add comment.
9842         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
9843         (main): New function for interactive testing.
9844
9845 2011-01-25  Bruno Haible  <bruno@clisp.org>
9846
9847         vma-iter: Treat Haiku like BeOS.
9848         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
9849         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
9850
9851 2011-01-25  Eric Blake  <eblake@redhat.com>
9852
9853         c-stack: fix regression on cygwin when libsigsegv is present
9854         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
9855
9856 2011-01-24  Bruno Haible  <bruno@clisp.org>
9857
9858         vma-iter: Avoid empty intervals.
9859         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
9860         on an empty interval.
9861
9862 2011-01-24  Jim Meyering  <meyering@redhat.com>
9863
9864         u64: remove unnecessary #include
9865         * lib/u64.h: Don't include <stddef.h>.  It was not used.
9866
9867 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
9868
9869         Allow the user to avoid the HAVE_RAW_DECL_* macros.
9870         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
9871
9872 2011-01-23  Bruno Haible  <bruno@clisp.org>
9873
9874         New module 'vma-iter'.
9875         * lib/vma-iter.h: New file.
9876         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
9877         * modules/vma-iter: New file.
9878         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
9879         for get_rusage_as_via_iterator.
9880         (vma_iterate_callback): New function.
9881         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
9882         * modules/get-rusage-as (Depends-on): Add vma-iter.
9883
9884 2011-01-23  Bruno Haible  <bruno@clisp.org>
9885
9886         uninorm: Tweak includes.
9887         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
9888         Reported by Jim Meyering.
9889
9890 2011-01-23  Bruno Haible  <bruno@clisp.org>
9891
9892         get-rusage-as: Improve on NetBSD.
9893         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
9894         /proc, like on FreeBSD.
9895
9896 2011-01-23  Jim Meyering  <meyering@redhat.com>
9897
9898         xreadlink.h: remove unnecessary #include
9899         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
9900
9901         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
9902         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
9903
9904 2011-01-23  Bruno Haible  <bruno@clisp.org>
9905
9906         get-rusage-as: Fix bug.
9907         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
9908         original limit when aborting the first loop.
9909
9910 2011-01-23  Bruno Haible  <bruno@clisp.org>
9911
9912         wctype: Ensure valid C syntax.
9913         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
9914         unconditionally, instead of gl_NEXT_HEADERS conditionally.
9915
9916 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
9917
9918         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
9919         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
9920         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
9921         as they are needed only for configure's test case.
9922         This removes two unnecessary symbols from config.h.
9923
9924         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
9925         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
9926         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
9927         AC_CHECK_HEADERS_ONCE on a header that we also invoke
9928         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
9929         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
9930         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
9931         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
9932         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
9933         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9934         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
9935         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9936         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
9937         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
9938         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
9939         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9940         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
9941         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
9942
9943 2011-01-21  Eric Blake  <eblake@redhat.com>
9944
9945         maintainer-makefile: work with older git for submodule check
9946         * top/maint.mk (public-submodule-commit): Rewrite to avoid
9947         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
9948         Reported by Matthias Bolte.
9949
9950         bootstrap: minor portability fixes
9951         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
9952         (usage): Omit leading capital and trailing . on help phrases, per
9953         GNU Coding Standards.
9954         (check_versions, top level): Prefix messages with script name.
9955
9956 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
9957
9958         bootstrap: support --no-git option
9959         * build-aux/bootstrap: Add --no-git option, to be used when
9960         --gnulib-srcdir points to the exact desired checkout.
9961
9962 2011-01-21  Eric Blake  <eblake@redhat.com>
9963
9964         strerror_r-posix: work with glibc 2.13
9965         * lib/strerror_r.c (strerror_r): Fix return type.
9966
9967 2011-01-21  Pádraig Brady  <P@draigBrady.com>
9968             Bruno Haible  <bruno@clisp.org>
9969
9970         uN_strstr: New unit tests.
9971         * modules/unistr/u8-strstr-tests: New file.
9972         * modules/unistr/u16-strstr-tests: New file.
9973         * modules/unistr/u32-strstr-tests: New file.
9974         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
9975         * tests/unistr/test-u8-strstr.c: New file.
9976         * tests/unistr/test-u16-strstr.c: New file.
9977         * tests/unistr/test-u32-strstr.c: New file.
9978
9979 2011-01-21  Pádraig Brady  <P@draigBrady.com>
9980             Bruno Haible  <bruno@clisp.org>
9981
9982         Make uN_strstr functions O(n) worst-case.
9983         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
9984         16-bit and 32-bit unit cases, use the unibyte algorithm from
9985         lib/mbsstr.c.
9986         * lib/unistr/u8-strstr.c: Include <string.h>.
9987         (UNIT_IS_UINT8_T): New macro.
9988         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
9989         (U_STRLEN, U_STRNLEN): New macros.
9990         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
9991         (U_STRLEN, U_STRNLEN): New macros.
9992         * modules/unistr/u8-strstr (Depends-on): Add strstr.
9993         (configure.ac): Update required libunistring version.
9994         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
9995         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
9996         malloca.
9997         (configure.ac): Update required libunistring version.
9998         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
9999         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
10000         malloca.
10001         (configure.ac): Update required libunistring version.
10002
10003 2011-01-21  Pádraig Brady  <P@draigBrady.com>
10004             Bruno Haible  <bruno@clisp.org>
10005
10006         Prepare for faster uN_strstr functions.
10007         * lib/str-kmp.h: Support definable UNITs.
10008         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
10009         needle_len argument.
10010         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
10011         * lib/mbscasestr.c (mbscasestr): Likewise.
10012
10013 2011-01-21  Pádraig Brady <P@draigBrady.com>
10014
10015         malloca-tests: make faster by unsetting MALLOC_PERTURB_
10016         * tests/test-malloca.c (main): Unset the environment variable
10017         to greatly speed up the test.
10018         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
10019         * modules/malloca-tests: Depend on unsetenv.
10020
10021 2011-01-21  Pádraig Brady <P@draigBrady.com>
10022
10023         ignore-value: remove stdint dependency
10024         * lib/ignore-value.h: Remove <stdint.h>
10025         * modules/ignore-value: Remove stdint dependency.
10026
10027 2011-01-21  Jim Meyering  <meyering@redhat.com>
10028
10029         maint.mk: adjust variable name to be consistent with other gl_ vars
10030         * top/maint.mk (gl_public_submodule_commit): Rename the variable
10031         to be lower case.
10032
10033 2011-01-20  Jim Meyering  <meyering@redhat.com>
10034
10035         maint.mk: make "check" depend on public-submodule-commit by default
10036         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
10037
10038 2011-01-20  Bruno Haible  <bruno@clisp.org>
10039
10040         mbfile, mbiter: Complete change from 2008-12-21.
10041         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
10042         * m4/mbiter.m4 (gl_MBITER): Likewise.
10043
10044 2011-01-20  Jim Meyering  <meyering@redhat.com>
10045
10046         init.sh: insert space between each function name and "()"
10047         * tests/init.sh: Make it a little easier to see that a function's
10048         name is "warn_", and not "warn" when looking at the first part of
10049         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
10050
10051 2011-01-20  Jim Meyering  <meyering@redhat.com>
10052
10053         mountlist: clean up code formatting
10054         * lib/mountlist.c (read_file_system_list): Split a long line,
10055         correct bracing style, use NULL in place of "(struct statfs *)0",
10056         don't parenthesize return value, add spaces around "=" and after
10057         ";-in-for-stmt".
10058
10059 2011-01-14  Markus Duft <mduft@gentoo.org>
10060
10061         mountlist: add support for Interix
10062         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
10063         Apply statvfs to all entries of /dev/fs.
10064         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
10065         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
10066
10067 2011-01-20  Jim Meyering  <meyering@redhat.com>
10068
10069         maint.mk: improve the public-submodule-commit rule
10070         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
10071         to suppress printing of its commands... unless V=1.
10072         Add git submodule's --quiet option to suppress printing of e.g.,
10073         "Entering gnulib" output.
10074         "cd" into $(srcdir) before running git submodule.
10075
10076 2011-01-20  Bruno Haible  <bruno@clisp.org>
10077
10078         include_next: Fix bug introduced on 2011-01-18.
10079         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
10080         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
10081         ac_cv_header_... variable if the second argument is not 'check'.
10082         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
10083         gl_NEXT_HEADERS_INTERNAL.
10084
10085 2011-01-20  Bruno Haible  <bruno@clisp.org>
10086
10087         Allow the user to avoid the GNULIB_TEST_* macros.
10088         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
10089         Suggested by Paul Eggert.
10090
10091 2011-01-14  Jim Meyering  <meyering@redhat.com>
10092
10093         bootstrap: avoid failure when there is no .gitmodules file
10094         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
10095         has been assigned to, even when its value is the empty string.
10096         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
10097         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
10098         Reported by John W. Eaton <jwe@gnu.org>.
10099
10100 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
10101
10102         assume <ctype.h>, ..., <time.h> exist
10103         For years gnulib has been assuming the existence of the headers
10104         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
10105         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
10106         them, since they don't appear to be needed.
10107         * README (Portability guidelines): Document this.
10108         * lib/flock.c: Assume <fcntl.h> exists.
10109         * lib/regex_internal.h: Assume <locale.h> exists.
10110         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
10111         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
10112         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
10113         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
10114         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
10115         * m4/regex.m4 (gl_REGEX): Likewise.
10116         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
10117         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
10118         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
10119         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
10120         * tests/test-argp.c: Likewise.
10121         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
10122
10123         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
10124         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
10125         AA_APPLE_UNIVERSAL_BUILD.  See
10126         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
10127         * NEWS: Document this.
10128
10129 2011-01-19  Eric Blake  <eblake@redhat.com>
10130
10131         c-stack: assume stack overflow if SA_SIGINFO unsupported
10132         * lib/c-stack.c (SIGACTION_WORKS): Rename...
10133         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
10134         sigaction will work.
10135         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
10136         behavior match Linux.
10137         * tests/test-c-stack.c (main): Prefer NULL for pointers.
10138
10139         stdbool-tests: accomodate Haiku
10140         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
10141
10142         binary-io: fix O_TEXT on Haiku
10143         * modules/binary-io (Depends-on): Add fcntl-h.
10144         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
10145         than blindly undefining O_TEXT.
10146         Reported by Scott McCreary.
10147
10148 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
10149
10150         include_next: do not check for standard headers like stddef.h
10151
10152         I found this problem when modifying Emacs to use gnulib.
10153         I noticed that it added HAVE_STDDEF_H to config.h, even though
10154         gnulib always assumes <stddef.h> exists as per README and this
10155         symbol is unnecessary.
10156         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
10157         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
10158         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
10159         faster for headers like stddef.h that are known to exist.
10160         (gl_CHECK_NEXT_HEADERS): Use it.
10161         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
10162         rather than gl_CHECK_NEXT_HEADERS.
10163         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
10164         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
10165
10166 2011-01-18  Eric Blake  <eblake@redhat.com>
10167
10168         ansi-c++-opt: skip C++ dependency style if C++ is unused
10169         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
10170         tests when we know C++ compilation is not desired.
10171         Reported by Scott McCreary.
10172
10173 2011-01-18  Bruno Haible  <bruno@clisp.org>
10174
10175         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
10176         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
10177         (main): Perform test also when getrlimit and setrlimit don't exist or
10178         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
10179         limiting the address space size using setrlimit, compare the address
10180         space size before and after the the test.
10181         * tests/test-dprintf-posix2.c: Likewise.
10182         * tests/test-fprintf-posix3.sh: Update skip messages.
10183         * tests/test-dprintf-posix2.sh: Likewise.
10184         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
10185         * modules/dprintf-posix-tests (Depends-on): Likewise.
10186         Reported by Bruce Korb <bkorb@gnu.org> and
10187         Gary V. Vaughan <gary@gnu.org>.
10188
10189 2011-01-18  Bruno Haible  <bruno@clisp.org>
10190
10191         get-rusage-as: Improvement for Cygwin.
10192         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
10193         areas that are merely reserved.
10194
10195 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
10196
10197         strftime: remove dependencies on multibyte modules
10198
10199         strftime depended on mbrlen, mbsinit, and wchar, but these modules
10200         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
10201         only if __osf__ is defined, and I suspect OSF doesn't need these
10202         other modules.  If my guess is wrong, we'll need to come up with a
10203         variant of strftime that doesn't need the multibyte modules.
10204
10205         I discovered this problem when attempting modify Emacs to use the
10206         strftime module.  With the previous gnulib, this caused Emacs to
10207         need 31 new files, ranging from lib/config.charset to
10208         m4/wint_t.m4.  This was overkill and I expect would be offputting
10209         to the Emacs maintainers.  After this change, only 6 new files are
10210         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
10211         stdbool.m4, and tm_gmtoff.m4.
10212
10213         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
10214         Suggested by Bruno Haible in
10215         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
10216         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
10217         and do not check for wchar.h.
10218         * modules/strftime (Files): Remove m4/mbstate_t.m4.
10219         (Depends-on): Remove mbrlen, mbsinit, wchar.
10220
10221 2011-01-18  Bruno Haible  <bruno@clisp.org>
10222
10223         Tests for module 'get-rusage-as'.
10224         * modules/get-rusage-as-tests: New file.
10225         * tests/test-get-rusage-as.c: New file.
10226
10227         New module 'get-rusage-as'.
10228         * modules/get-rusage-as: New file.
10229         * lib/resource-ext.h: New file.
10230         * lib/get-rusage-as.c: New file.
10231
10232 2011-01-17  Eric Blake  <eblake@redhat.com>
10233
10234         sigaction: relax license from LGPLv3+ to LGPLv2+
10235         * modules/sigaction (License): Relax to LGPLv2+.
10236
10237 2011-01-14  Bruno Haible  <bruno@clisp.org>
10238
10239         filemode: Make function declarations usable in C++ mode.
10240         * lib/filemode.h: Enclose function declarations in extern "C" block.
10241         Reported by John W. Eaton <jwe@gnu.org>.
10242
10243 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
10244
10245         save-cwd: no longer include "xgetcwd.h"
10246         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
10247         This avoids a compilation failure in projects that use save-cwd
10248         without also using the xgetcwd module.
10249
10250 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
10251
10252         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
10253         This is so that a program like Emacs, which needs only dtoastr,
10254         does not have to bother with distributing and compiling ftoastr
10255         and ldtoastr.
10256         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
10257         * modules/dtoastr, modules/ldtoastr: New files.
10258         * modules/ftoastr: Now works just for 'float'.
10259         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
10260         (Makefile.am): Remove ftoastr.h (not needed and no effect),
10261         dtoastr.c, ldtoastr.c.
10262
10263 2011-01-11  Jim Meyering  <meyering@redhat.com>
10264
10265         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
10266         There is no need to work around the lack of the fchdir function,
10267         since gnulib can now provide a replacement when required.
10268         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
10269         * modules/save-cwd (Depends-on): Add fchdir.
10270
10271 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
10272
10273         openat, save-cwd: avoid xmalloc
10274
10275         This removes a direct (but undocumented) dependency of openat on
10276         xalloc, along with an indirect dependency via save-cwd.  It also
10277         removes a dependency of save-cwd on xgetcwd, and thereby
10278         indirectly on xalloc.  This change causes the openat substitute
10279         to fall back on save_cwd when memory is tight, and for save_cwd to
10280         fail instead of dying when memory is tight, but that's good enough.
10281         Problem and initial idea for fix reported by Bastien Roucaries in
10282         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
10283
10284         * lib/openat-proc.c: Include stdlib.h (for malloc), not
10285         xalloc.h (for xmalloc).
10286         (openat_proc_name): Use malloc, not xmalloc.
10287         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
10288         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
10289
10290         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
10291         This avoids heap allocation for file names whose lengths are in
10292         the range 512..1023, with the upper bound increasing to at most
10293         4031 depending on the platform's PATH_MAX.  (We do not want
10294         pathmax.h here as it might supply a non-constant PATH_MAX.)
10295         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
10296         Perhaps they should be moved to malloca.h?
10297         (OPENAT_BUFFER_SIZE): Use them.
10298
10299 2011-01-10  Bruno Haible  <bruno@clisp.org>
10300
10301         doc: Update users.txt.
10302         * users.txt: Add recutils.
10303
10304 2011-01-09  Karl Berry  <karl@gnu.org>
10305
10306         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
10307
10308         * doc/configmake.texi: New file.
10309         * doc/gnulib.texi: Include it.
10310         * modules/configmake: Move documentation from here.
10311
10312 2011-01-09  Bruno Haible  <bruno@clisp.org>
10313
10314         Update to Unicode 6.0.0.
10315         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
10316         (get_lbp): Update for Unicode 6.0.0.
10317         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
10318         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
10319         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
10320         U+11001, U+11038..U+11046. Remove U+06DE.
10321         (uc_width): Fix bounds of planes.
10322         * tests/uniwidth/test-uc_width2.sh: Same updates as in
10323         lib/uniwidth/width.c.
10324         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
10325         trailing whitespace removed.
10326         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
10327         without comments, but with the original copyright notice.
10328         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
10329         * lib/unicase/ignorable.h: Likewise.
10330         * lib/unicase/tocasefold.h: Likewise.
10331         * lib/unicase/tolower.h: Likewise.
10332         * lib/unicase/totitle.h: Likewise.
10333         * lib/unicase/toupper.h: Likewise.
10334         * lib/unictype/bidi_of.h: Likewise.
10335         * lib/unictype/blocks.h: Likewise.
10336         * lib/unictype/categ_C.h: Likewise.
10337         * lib/unictype/categ_Cn.h: Likewise.
10338         * lib/unictype/categ_L.h: Likewise.
10339         * lib/unictype/categ_Ll.h: Likewise.
10340         * lib/unictype/categ_Lm.h: Likewise.
10341         * lib/unictype/categ_Lo.h: Likewise.
10342         * lib/unictype/categ_Lu.h: Likewise.
10343         * lib/unictype/categ_M.h: Likewise.
10344         * lib/unictype/categ_Mc.h: Likewise.
10345         * lib/unictype/categ_Me.h: Likewise.
10346         * lib/unictype/categ_Mn.h: Likewise.
10347         * lib/unictype/categ_N.h: Likewise.
10348         * lib/unictype/categ_Nd.h: Likewise.
10349         * lib/unictype/categ_No.h: Likewise.
10350         * lib/unictype/categ_P.h: Likewise.
10351         * lib/unictype/categ_Po.h: Likewise.
10352         * lib/unictype/categ_S.h: Likewise.
10353         * lib/unictype/categ_Sc.h: Likewise.
10354         * lib/unictype/categ_Sk.h: Likewise.
10355         * lib/unictype/categ_Sm.h: Likewise.
10356         * lib/unictype/categ_So.h: Likewise.
10357         * lib/unictype/categ_of.h: Likewise.
10358         * lib/unictype/combining.h: Likewise.
10359         * lib/unictype/ctype_alnum.h: Likewise.
10360         * lib/unictype/ctype_alpha.h: Likewise.
10361         * lib/unictype/ctype_graph.h: Likewise.
10362         * lib/unictype/ctype_lower.h: Likewise.
10363         * lib/unictype/ctype_print.h: Likewise.
10364         * lib/unictype/ctype_punct.h: Likewise.
10365         * lib/unictype/ctype_upper.h: Likewise.
10366         * lib/unictype/decdigit.h: Likewise.
10367         * lib/unictype/digit.h: Likewise.
10368         * lib/unictype/numeric.h: Likewise.
10369         * lib/unictype/pr_alphabetic.h: Likewise.
10370         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
10371         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
10372         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
10373         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
10374         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
10375         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
10376         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
10377         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
10378         * lib/unictype/pr_case_ignorable.h: Likewise.
10379         * lib/unictype/pr_cased.h: Likewise.
10380         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
10381         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
10382         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
10383         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
10384         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
10385         * lib/unictype/pr_combining.h: Likewise.
10386         * lib/unictype/pr_composite.h: Likewise.
10387         * lib/unictype/pr_currency_symbol.h: Likewise.
10388         * lib/unictype/pr_decimal_digit.h: Likewise.
10389         * lib/unictype/pr_deprecated.h: Likewise.
10390         * lib/unictype/pr_format_control.h: Likewise.
10391         * lib/unictype/pr_grapheme_base.h: Likewise.
10392         * lib/unictype/pr_grapheme_extend.h: Likewise.
10393         * lib/unictype/pr_grapheme_link.h: Likewise.
10394         * lib/unictype/pr_id_continue.h: Likewise.
10395         * lib/unictype/pr_id_start.h: Likewise.
10396         * lib/unictype/pr_ideographic.h: Likewise.
10397         * lib/unictype/pr_lowercase.h: Likewise.
10398         * lib/unictype/pr_math.h: Likewise.
10399         * lib/unictype/pr_numeric.h: Likewise.
10400         * lib/unictype/pr_other_alphabetic.h: Likewise.
10401         * lib/unictype/pr_other_id_continue.h: Likewise.
10402         * lib/unictype/pr_other_math.h: Likewise.
10403         * lib/unictype/pr_punctuation.h: Likewise.
10404         * lib/unictype/pr_sentence_terminal.h: Likewise.
10405         * lib/unictype/pr_terminal_punctuation.h: Likewise.
10406         * lib/unictype/pr_unassigned_code_value.h: Likewise.
10407         * lib/unictype/pr_unified_ideograph.h: Likewise.
10408         * lib/unictype/pr_uppercase.h: Likewise.
10409         * lib/unictype/pr_xid_continue.h: Likewise.
10410         * lib/unictype/pr_xid_start.h: Likewise.
10411         * lib/unictype/scripts.h: Likewise.
10412         * lib/unictype/scripts_byname.gperf: Likewise.
10413         * lib/unictype/sy_java_ident.h: Likewise.
10414         * lib/unigbrk/gbrkprop.h: Likewise.
10415         * lib/unilbrk/lbrkprop1.h: Likewise.
10416         * lib/unilbrk/lbrkprop2.h: Likewise.
10417         * lib/uninorm/decomposition-table2.h: Likewise.
10418         * lib/uniwbrk/wbrkprop.h: Likewise.
10419         * tests/unicase/test-cased.c: Likewise.
10420         * tests/unicase/test-ignorable.c: Likewise.
10421         * tests/unicase/test-uc_tolower.c: Likewise.
10422         * tests/unicase/test-uc_totitle.c: Likewise.
10423         * tests/unicase/test-uc_toupper.c: Likewise.
10424         * tests/unictype/test-categ_C.c: Likewise.
10425         * tests/unictype/test-categ_Cn.c: Likewise.
10426         * tests/unictype/test-categ_L.c: Likewise.
10427         * tests/unictype/test-categ_Ll.c: Likewise.
10428         * tests/unictype/test-categ_Lm.c: Likewise.
10429         * tests/unictype/test-categ_Lo.c: Likewise.
10430         * tests/unictype/test-categ_Lu.c: Likewise.
10431         * tests/unictype/test-categ_M.c: Likewise.
10432         * tests/unictype/test-categ_Mc.c: Likewise.
10433         * tests/unictype/test-categ_Me.c: Likewise.
10434         * tests/unictype/test-categ_Mn.c: Likewise.
10435         * tests/unictype/test-categ_N.c: Likewise.
10436         * tests/unictype/test-categ_Nd.c: Likewise.
10437         * tests/unictype/test-categ_No.c: Likewise.
10438         * tests/unictype/test-categ_P.c: Likewise.
10439         * tests/unictype/test-categ_Po.c: Likewise.
10440         * tests/unictype/test-categ_S.c: Likewise.
10441         * tests/unictype/test-categ_Sc.c: Likewise.
10442         * tests/unictype/test-categ_Sk.c: Likewise.
10443         * tests/unictype/test-categ_Sm.c: Likewise.
10444         * tests/unictype/test-categ_So.c: Likewise.
10445         * tests/unictype/test-ctype_alnum.c: Likewise.
10446         * tests/unictype/test-ctype_alpha.c: Likewise.
10447         * tests/unictype/test-ctype_graph.c: Likewise.
10448         * tests/unictype/test-ctype_lower.c: Likewise.
10449         * tests/unictype/test-ctype_print.c: Likewise.
10450         * tests/unictype/test-ctype_punct.c: Likewise.
10451         * tests/unictype/test-ctype_upper.c: Likewise.
10452         * tests/unictype/test-decdigit.h: Likewise.
10453         * tests/unictype/test-digit.h: Likewise.
10454         * tests/unictype/test-numeric.h: Likewise.
10455         * tests/unictype/test-pr_alphabetic.c: Likewise.
10456         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
10457         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
10458         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
10459         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
10460         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
10461         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
10462         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
10463         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
10464         * tests/unictype/test-pr_case_ignorable.c: Likewise.
10465         * tests/unictype/test-pr_cased.c: Likewise.
10466         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
10467         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
10468         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
10469         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
10470         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
10471         * tests/unictype/test-pr_combining.c: Likewise.
10472         * tests/unictype/test-pr_composite.c: Likewise.
10473         * tests/unictype/test-pr_currency_symbol.c: Likewise.
10474         * tests/unictype/test-pr_decimal_digit.c: Likewise.
10475         * tests/unictype/test-pr_deprecated.c: Likewise.
10476         * tests/unictype/test-pr_format_control.c: Likewise.
10477         * tests/unictype/test-pr_grapheme_base.c: Likewise.
10478         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
10479         * tests/unictype/test-pr_grapheme_link.c: Likewise.
10480         * tests/unictype/test-pr_id_continue.c: Likewise.
10481         * tests/unictype/test-pr_id_start.c: Likewise.
10482         * tests/unictype/test-pr_ideographic.c: Likewise.
10483         * tests/unictype/test-pr_lowercase.c: Likewise.
10484         * tests/unictype/test-pr_math.c: Likewise.
10485         * tests/unictype/test-pr_numeric.c: Likewise.
10486         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
10487         * tests/unictype/test-pr_other_id_continue.c: Likewise.
10488         * tests/unictype/test-pr_other_math.c: Likewise.
10489         * tests/unictype/test-pr_punctuation.c: Likewise.
10490         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
10491         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
10492         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
10493         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
10494         * tests/unictype/test-pr_uppercase.c: Likewise.
10495         * tests/unictype/test-pr_xid_continue.c: Likewise.
10496         * tests/unictype/test-pr_xid_start.c: Likewise.
10497         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
10498         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
10499         changes.
10500         * lib/unictype/categ_Cc.h: Likewise.
10501         * lib/unictype/categ_Cf.h: Likewise.
10502         * lib/unictype/categ_Co.h: Likewise.
10503         * lib/unictype/categ_Cs.h: Likewise.
10504         * lib/unictype/categ_Lt.h: Likewise.
10505         * lib/unictype/categ_Nl.h: Likewise.
10506         * lib/unictype/categ_Pc.h: Likewise.
10507         * lib/unictype/categ_Pd.h: Likewise.
10508         * lib/unictype/categ_Pe.h: Likewise.
10509         * lib/unictype/categ_Pf.h: Likewise.
10510         * lib/unictype/categ_Pi.h: Likewise.
10511         * lib/unictype/categ_Ps.h: Likewise.
10512         * lib/unictype/categ_Z.h: Likewise.
10513         * lib/unictype/categ_Zl.h: Likewise.
10514         * lib/unictype/categ_Zp.h: Likewise.
10515         * lib/unictype/categ_Zs.h: Likewise.
10516         * lib/unictype/ctype_blank.h: Likewise.
10517         * lib/unictype/ctype_cntrl.h: Likewise.
10518         * lib/unictype/ctype_digit.h: Likewise.
10519         * lib/unictype/ctype_space.h: Likewise.
10520         * lib/unictype/ctype_xdigit.h: Likewise.
10521         * lib/unictype/mirror.h: Likewise.
10522         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
10523         * lib/unictype/pr_bidi_block_separator.h: Likewise.
10524         * lib/unictype/pr_bidi_common_separator.h: Likewise.
10525         * lib/unictype/pr_bidi_control.h: Likewise.
10526         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
10527         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
10528         * lib/unictype/pr_bidi_european_digit.h: Likewise.
10529         * lib/unictype/pr_bidi_pdf.h: Likewise.
10530         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
10531         * lib/unictype/pr_bidi_whitespace.h: Likewise.
10532         * lib/unictype/pr_dash.h: Likewise.
10533         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
10534         * lib/unictype/pr_diacritic.h: Likewise.
10535         * lib/unictype/pr_extender.h: Likewise.
10536         * lib/unictype/pr_hex_digit.h: Likewise.
10537         * lib/unictype/pr_hyphen.h: Likewise.
10538         * lib/unictype/pr_ids_binary_operator.h: Likewise.
10539         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
10540         * lib/unictype/pr_ignorable_control.h: Likewise.
10541         * lib/unictype/pr_iso_control.h: Likewise.
10542         * lib/unictype/pr_join_control.h: Likewise.
10543         * lib/unictype/pr_left_of_pair.h: Likewise.
10544         * lib/unictype/pr_line_separator.h: Likewise.
10545         * lib/unictype/pr_logical_order_exception.h: Likewise.
10546         * lib/unictype/pr_non_break.h: Likewise.
10547         * lib/unictype/pr_not_a_character.h: Likewise.
10548         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
10549         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
10550         * lib/unictype/pr_other_id_start.h: Likewise.
10551         * lib/unictype/pr_other_lowercase.h: Likewise.
10552         * lib/unictype/pr_other_uppercase.h: Likewise.
10553         * lib/unictype/pr_paired_punctuation.h: Likewise.
10554         * lib/unictype/pr_paragraph_separator.h: Likewise.
10555         * lib/unictype/pr_pattern_syntax.h: Likewise.
10556         * lib/unictype/pr_pattern_white_space.h: Likewise.
10557         * lib/unictype/pr_private_use.h: Likewise.
10558         * lib/unictype/pr_quotation_mark.h: Likewise.
10559         * lib/unictype/pr_radical.h: Likewise.
10560         * lib/unictype/pr_soft_dotted.h: Likewise.
10561         * lib/unictype/pr_space.h: Likewise.
10562         * lib/unictype/pr_titlecase.h: Likewise.
10563         * lib/unictype/pr_variation_selector.h: Likewise.
10564         * lib/unictype/pr_white_space.h: Likewise.
10565         * lib/unictype/pr_zero_width.h: Likewise.
10566         * lib/unictype/sy_c_ident.h: Likewise.
10567         * lib/unictype/sy_c_whitespace.h: Likewise.
10568         * lib/unictype/sy_java_whitespace.h: Likewise.
10569         * lib/uninorm/composition-table.gperf: Likewise.
10570         * lib/uninorm/decomposition-table1.h: Likewise.
10571         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
10572         LB8.
10573         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
10574         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
10575         * modules/unictype/*: Bump version number of expected libunistring
10576         version.
10577
10578 2011-01-09  Bruno Haible  <bruno@clisp.org>
10579
10580         Update to Unicode 5.2.0.
10581         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
10582         trailing whitespace removed.
10583
10584 2011-01-09  Bruno Haible  <bruno@clisp.org>
10585
10586         New Unicode character properties, from Unicode 5.2.0.
10587         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
10588         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
10589         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
10590         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
10591         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
10592         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
10593         uc_is_property_cased, uc_is_property_case_ignorable,
10594         uc_is_property_changes_when_lowercased,
10595         uc_is_property_changes_when_uppercased,
10596         uc_is_property_changes_when_titlecased,
10597         uc_is_property_changes_when_casefolded,
10598         uc_is_property_changes_when_casemapped): New declarations.
10599         * lib/unictype/pr_byname.gperf: Add the new properties.
10600         * modules/unictype/property-byname (Depends-on): Depend on the new
10601         properties modules.
10602         * modules/unictype/property-all (Depends-on): Likewise.
10603         * MODULES.html.sh (Unicode string functions): Add
10604         unictype/property-case-ignorable, unictype/property-cased,
10605         unictype/property-changes-when-casefolded,
10606         unictype/property-changes-when-casemapped,
10607         unictype/property-changes-when-lowercased,
10608         unictype/property-changes-when-titlecased,
10609         unictype/property-changes-when-uppercased.
10610
10611         New module 'unictype/property-changes-when-casemapped'.
10612         * modules/unictype/property-changes-when-casemapped: New file.
10613         * lib/unictype/pr_changes_when_casemapped.c: New file.
10614         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
10615         generated by gen-uni-tables.
10616         * modules/unictype/property-changes-when-casemapped-tests: New file.
10617         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
10618         automatically generated by gen-uni-tables.
10619
10620         New module 'unictype/property-changes-when-casefolded'.
10621         * modules/unictype/property-changes-when-casefolded: New file.
10622         * lib/unictype/pr_changes_when_casefolded.c: New file.
10623         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
10624         generated by gen-uni-tables.
10625         * modules/unictype/property-changes-when-casefolded-tests: New file.
10626         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
10627         automatically generated by gen-uni-tables.
10628
10629         New module 'unictype/property-changes-when-titlecased'.
10630         * modules/unictype/property-changes-when-titlecased: New file.
10631         * lib/unictype/pr_changes_when_titlecased.c: New file.
10632         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
10633         generated by gen-uni-tables.
10634         * modules/unictype/property-changes-when-titlecased-tests: New file.
10635         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
10636         automatically generated by gen-uni-tables.
10637
10638         New module 'unictype/property-changes-when-uppercased'.
10639         * modules/unictype/property-changes-when-uppercased: New file.
10640         * lib/unictype/pr_changes_when_uppercased.c: New file.
10641         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
10642         generated by gen-uni-tables.
10643         * modules/unictype/property-changes-when-uppercased-tests: New file.
10644         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
10645         automatically generated by gen-uni-tables.
10646
10647         New module 'unictype/property-changes-when-lowercased'.
10648         * modules/unictype/property-changes-when-lowercased: New file.
10649         * lib/unictype/pr_changes_when_lowercased.c: New file.
10650         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
10651         generated by gen-uni-tables.
10652         * modules/unictype/property-changes-when-lowercased-tests: New file.
10653         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
10654         automatically generated by gen-uni-tables.
10655
10656         New module 'unictype/property-case-ignorable'.
10657         * modules/unictype/property-case-ignorable: New file.
10658         * lib/unictype/pr_case_ignorable.c: New file.
10659         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
10660         by gen-uni-tables.
10661         * modules/unictype/property-case-ignorable-tests: New file.
10662         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
10663         generated by gen-uni-tables.
10664
10665         New module 'unictype/property-cased'.
10666         * modules/unictype/property-cased: New file.
10667         * lib/unictype/pr_cased.c: New file.
10668         * lib/unictype/pr_cased.h: New file, automatically generated by
10669         gen-uni-tables.
10670         * modules/unictype/property-cased-tests: New file.
10671         * tests/unictype/test-pr_cased.c: New file, automatically generated by
10672         gen-uni-tables.
10673
10674 2011-01-09  Bruno Haible  <bruno@clisp.org>
10675
10676         Update to Unicode 5.2.0.
10677         * lib/gen-uni-tables.c (output_predicate, output_category,
10678         output_combclass, output_bidi_category, output_decimal_digit_test,
10679         output_decimal_digit, output_digit_test, output_digit,
10680         output_numeric_test, output_numeric, output_mirror, output_scripts,
10681         output_scripts_byname, output_blocks, output_ident_category): Fix
10682         comment header.
10683         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
10684         get_wbp.
10685         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
10686         items.
10687         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
10688         Changes_When_Lowercased, Changes_When_Uppercased,
10689         Changes_When_Titlecased, Changes_When_Casefolded,
10690         Changes_When_Casemapped.
10691         (is_property_alphabetic, is_property_default_ignorable_code_point):
10692         Update for Unicode 5.2.0.
10693         (is_property_cased, is_property_case_ignorable,
10694         is_property_changes_when_lowercased,
10695         is_property_changes_when_uppercased,
10696         is_property_changes_when_titlecased,
10697         is_property_changes_when_casefolded,
10698         is_property_changes_when_casemapped): New functions.
10699         (output_properties): Output also the properties cased, case_ignorable,
10700         changes_when_lowercased, changes_when_uppercased,
10701         changes_when_titlecased, changes_when_casefolded,
10702         changes_when_casemapped.
10703         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
10704         Unicode TR#11 revision 17 -> 19.
10705         (LBP_CP): New enumeration value.
10706         (LBP_*): Adjust values accordingly.
10707         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
10708         TR#14 revision 22 -> 24.
10709         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
10710         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
10711         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
10712         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
10713         is_WBP_MIDLETTER.
10714         (output_composition_tables): Allow for 24 bits instead of 16 bits in
10715         the code1 and code2 of each composition rule.
10716         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
10717         * lib/unicase/ignorable.h: Likewise.
10718         * lib/unicase/tocasefold.h: Likewise.
10719         * lib/unicase/tolower.h: Likewise.
10720         * lib/unicase/totitle.h: Likewise.
10721         * lib/unicase/toupper.h: Likewise.
10722         * lib/unictype/bidi_of.h: Likewise.
10723         * lib/unictype/blocks.h: Likewise.
10724         * lib/unictype/categ_C.h: Likewise.
10725         * lib/unictype/categ_Cf.h: Likewise.
10726         * lib/unictype/categ_Cn.h: Likewise.
10727         * lib/unictype/categ_L.h: Likewise.
10728         * lib/unictype/categ_Ll.h: Likewise.
10729         * lib/unictype/categ_Lm.h: Likewise.
10730         * lib/unictype/categ_Lo.h: Likewise.
10731         * lib/unictype/categ_Lu.h: Likewise.
10732         * lib/unictype/categ_M.h: Likewise.
10733         * lib/unictype/categ_Mc.h: Likewise.
10734         * lib/unictype/categ_Mn.h: Likewise.
10735         * lib/unictype/categ_N.h: Likewise.
10736         * lib/unictype/categ_Nd.h: Likewise.
10737         * lib/unictype/categ_Nl.h: Likewise.
10738         * lib/unictype/categ_No.h: Likewise.
10739         * lib/unictype/categ_P.h: Likewise.
10740         * lib/unictype/categ_Pd.h: Likewise.
10741         * lib/unictype/categ_Po.h: Likewise.
10742         * lib/unictype/categ_S.h: Likewise.
10743         * lib/unictype/categ_Sc.h: Likewise.
10744         * lib/unictype/categ_So.h: Likewise.
10745         * lib/unictype/categ_of.h: Likewise.
10746         * lib/unictype/combining.h: Likewise.
10747         * lib/unictype/ctype_alnum.h: Likewise.
10748         * lib/unictype/ctype_alpha.h: Likewise.
10749         * lib/unictype/ctype_graph.h: Likewise.
10750         * lib/unictype/ctype_lower.h: Likewise.
10751         * lib/unictype/ctype_print.h: Likewise.
10752         * lib/unictype/ctype_punct.h: Likewise.
10753         * lib/unictype/ctype_upper.h: Likewise.
10754         * lib/unictype/decdigit.h: Likewise.
10755         * lib/unictype/digit.h: Likewise.
10756         * lib/unictype/numeric.h: Likewise.
10757         * lib/unictype/pr_alphabetic.h: Likewise.
10758         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
10759         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
10760         * lib/unictype/pr_bidi_european_digit.h: Likewise.
10761         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
10762         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
10763         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
10764         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
10765         * lib/unictype/pr_combining.h: Likewise.
10766         * lib/unictype/pr_composite.h: Likewise.
10767         * lib/unictype/pr_currency_symbol.h: Likewise.
10768         * lib/unictype/pr_dash.h: Likewise.
10769         * lib/unictype/pr_decimal_digit.h: Likewise.
10770         * lib/unictype/pr_deprecated.h: Likewise.
10771         * lib/unictype/pr_diacritic.h: Likewise.
10772         * lib/unictype/pr_extender.h: Likewise.
10773         * lib/unictype/pr_grapheme_base.h: Likewise.
10774         * lib/unictype/pr_grapheme_extend.h: Likewise.
10775         * lib/unictype/pr_grapheme_link.h: Likewise.
10776         * lib/unictype/pr_id_continue.h: Likewise.
10777         * lib/unictype/pr_id_start.h: Likewise.
10778         * lib/unictype/pr_ideographic.h: Likewise.
10779         * lib/unictype/pr_ignorable_control.h: Likewise.
10780         * lib/unictype/pr_logical_order_exception.h: Likewise.
10781         * lib/unictype/pr_lowercase.h: Likewise.
10782         * lib/unictype/pr_numeric.h: Likewise.
10783         * lib/unictype/pr_other_alphabetic.h: Likewise.
10784         * lib/unictype/pr_punctuation.h: Likewise.
10785         * lib/unictype/pr_sentence_terminal.h: Likewise.
10786         * lib/unictype/pr_terminal_punctuation.h: Likewise.
10787         * lib/unictype/pr_unassigned_code_value.h: Likewise.
10788         * lib/unictype/pr_unified_ideograph.h: Likewise.
10789         * lib/unictype/pr_uppercase.h: Likewise.
10790         * lib/unictype/pr_xid_continue.h: Likewise.
10791         * lib/unictype/pr_xid_start.h: Likewise.
10792         * lib/unictype/pr_zero_width.h: Likewise.
10793         * lib/unictype/scripts.h: Likewise.
10794         * lib/unictype/scripts_byname.gperf: Likewise.
10795         * lib/unictype/sy_java_ident.h: Likewise.
10796         * lib/unigbrk/gbrkprop.h: Likewise.
10797         * lib/unilbrk/lbrkprop1.h: Likewise.
10798         * lib/unilbrk/lbrkprop2.h: Likewise.
10799         * lib/unilbrk/lbrktables.h: Likewise.
10800         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
10801         LBP_CP. Implement rule LB30.
10802         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
10803         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
10804         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
10805         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
10806         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
10807         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
10808         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
10809         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
10810         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
10811         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
10812         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
10813         bits instead of 16 bits in the code1 and code2 of each composition
10814         rule.
10815         (uc_composition): Update for Unicode 5.2.0.
10816         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
10817         * lib/uninorm/decomposition-table2.h: Likewise.
10818         * lib/uniwbrk/wbrkprop.h: Likewise.
10819         * tests/unicase/test-cased.c: Likewise.
10820         * tests/unicase/test-ignorable.c: Likewise.
10821         * tests/unicase/test-uc_tolower.c: Likewise.
10822         * tests/unicase/test-uc_totitle.c: Likewise.
10823         * tests/unicase/test-uc_toupper.c: Likewise.
10824         * tests/unictype/test-categ_C.c: Likewise.
10825         * tests/unictype/test-categ_Cf.c: Likewise.
10826         * tests/unictype/test-categ_Cn.c: Likewise.
10827         * tests/unictype/test-categ_L.c: Likewise.
10828         * tests/unictype/test-categ_Ll.c: Likewise.
10829         * tests/unictype/test-categ_Lm.c: Likewise.
10830         * tests/unictype/test-categ_Lo.c: Likewise.
10831         * tests/unictype/test-categ_Lu.c: Likewise.
10832         * tests/unictype/test-categ_M.c: Likewise.
10833         * tests/unictype/test-categ_Mc.c: Likewise.
10834         * tests/unictype/test-categ_Mn.c: Likewise.
10835         * tests/unictype/test-categ_N.c: Likewise.
10836         * tests/unictype/test-categ_Nd.c: Likewise.
10837         * tests/unictype/test-categ_Nl.c: Likewise.
10838         * tests/unictype/test-categ_No.c: Likewise.
10839         * tests/unictype/test-categ_P.c: Likewise.
10840         * tests/unictype/test-categ_Pd.c: Likewise.
10841         * tests/unictype/test-categ_Po.c: Likewise.
10842         * tests/unictype/test-categ_S.c: Likewise.
10843         * tests/unictype/test-categ_Sc.c: Likewise.
10844         * tests/unictype/test-categ_So.c: Likewise.
10845         * tests/unictype/test-ctype_alnum.c: Likewise.
10846         * tests/unictype/test-ctype_alpha.c: Likewise.
10847         * tests/unictype/test-ctype_graph.c: Likewise.
10848         * tests/unictype/test-ctype_lower.c: Likewise.
10849         * tests/unictype/test-ctype_print.c: Likewise.
10850         * tests/unictype/test-ctype_punct.c: Likewise.
10851         * tests/unictype/test-ctype_upper.c: Likewise.
10852         * tests/unictype/test-decdigit.h: Likewise.
10853         * tests/unictype/test-digit.h: Likewise.
10854         * tests/unictype/test-numeric.h: Likewise.
10855         * tests/unictype/test-pr_alphabetic.c: Likewise.
10856         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
10857         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
10858         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
10859         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
10860         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
10861         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
10862         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
10863         * tests/unictype/test-pr_combining.c: Likewise.
10864         * tests/unictype/test-pr_composite.c: Likewise.
10865         * tests/unictype/test-pr_currency_symbol.c: Likewise.
10866         * tests/unictype/test-pr_dash.c: Likewise.
10867         * tests/unictype/test-pr_decimal_digit.c: Likewise.
10868         * tests/unictype/test-pr_deprecated.c: Likewise.
10869         * tests/unictype/test-pr_diacritic.c: Likewise.
10870         * tests/unictype/test-pr_extender.c: Likewise.
10871         * tests/unictype/test-pr_grapheme_base.c: Likewise.
10872         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
10873         * tests/unictype/test-pr_grapheme_link.c: Likewise.
10874         * tests/unictype/test-pr_id_continue.c: Likewise.
10875         * tests/unictype/test-pr_id_start.c: Likewise.
10876         * tests/unictype/test-pr_ideographic.c: Likewise.
10877         * tests/unictype/test-pr_ignorable_control.c: Likewise.
10878         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
10879         * tests/unictype/test-pr_lowercase.c: Likewise.
10880         * tests/unictype/test-pr_numeric.c: Likewise.
10881         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
10882         * tests/unictype/test-pr_punctuation.c: Likewise.
10883         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
10884         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
10885         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
10886         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
10887         * tests/unictype/test-pr_uppercase.c: Likewise.
10888         * tests/unictype/test-pr_xid_continue.c: Likewise.
10889         * tests/unictype/test-pr_xid_start.c: Likewise.
10890         * tests/unictype/test-pr_zero_width.c: Likewise.
10891         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
10892         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
10893         changed behaviour: line breaking is now disallowed between a letter
10894         or '=' and '('.
10895         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
10896         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
10897         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
10898         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
10899         * tests/uniwidth/test-uc_width2.sh: Same updates as in
10900         lib/uniwidth/width.c.
10901         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
10902         without comments, but with the original copyright notice.
10903         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
10904         changes.
10905         * lib/unictype/categ_Cc.h: Likewise.
10906         * lib/unictype/categ_Co.h: Likewise.
10907         * lib/unictype/categ_Cs.h: Likewise.
10908         * lib/unictype/categ_Lt.h: Likewise.
10909         * lib/unictype/categ_Me.h: Likewise.
10910         * lib/unictype/categ_Pc.h: Likewise.
10911         * lib/unictype/categ_Pe.h: Likewise.
10912         * lib/unictype/categ_Pf.h: Likewise.
10913         * lib/unictype/categ_Pi.h: Likewise.
10914         * lib/unictype/categ_Ps.h: Likewise.
10915         * lib/unictype/categ_Sk.h: Likewise.
10916         * lib/unictype/categ_Sm.h: Likewise.
10917         * lib/unictype/categ_Z.h: Likewise.
10918         * lib/unictype/categ_Zl.h: Likewise.
10919         * lib/unictype/categ_Zp.h: Likewise.
10920         * lib/unictype/categ_Zs.h: Likewise.
10921         * lib/unictype/ctype_blank.h: Likewise.
10922         * lib/unictype/ctype_cntrl.h: Likewise.
10923         * lib/unictype/ctype_digit.h: Likewise.
10924         * lib/unictype/ctype_space.h: Likewise.
10925         * lib/unictype/ctype_xdigit.h: Likewise.
10926         * lib/unictype/mirror.h: Likewise.
10927         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
10928         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
10929         * lib/unictype/pr_bidi_block_separator.h: Likewise.
10930         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
10931         * lib/unictype/pr_bidi_common_separator.h: Likewise.
10932         * lib/unictype/pr_bidi_control.h: Likewise.
10933         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
10934         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
10935         * lib/unictype/pr_bidi_pdf.h: Likewise.
10936         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
10937         * lib/unictype/pr_bidi_whitespace.h: Likewise.
10938         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
10939         * lib/unictype/pr_format_control.h: Likewise.
10940         * lib/unictype/pr_hex_digit.h: Likewise.
10941         * lib/unictype/pr_hyphen.h: Likewise.
10942         * lib/unictype/pr_ids_binary_operator.h: Likewise.
10943         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
10944         * lib/unictype/pr_iso_control.h: Likewise.
10945         * lib/unictype/pr_join_control.h: Likewise.
10946         * lib/unictype/pr_left_of_pair.h: Likewise.
10947         * lib/unictype/pr_line_separator.h: Likewise.
10948         * lib/unictype/pr_math.h: Likewise.
10949         * lib/unictype/pr_non_break.h: Likewise.
10950         * lib/unictype/pr_not_a_character.h: Likewise.
10951         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
10952         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
10953         * lib/unictype/pr_other_id_continue.h: Likewise.
10954         * lib/unictype/pr_other_id_start.h: Likewise.
10955         * lib/unictype/pr_other_lowercase.h: Likewise.
10956         * lib/unictype/pr_other_math.h: Likewise.
10957         * lib/unictype/pr_other_uppercase.h: Likewise.
10958         * lib/unictype/pr_paired_punctuation.h: Likewise.
10959         * lib/unictype/pr_paragraph_separator.h: Likewise.
10960         * lib/unictype/pr_pattern_syntax.h: Likewise.
10961         * lib/unictype/pr_pattern_white_space.h: Likewise.
10962         * lib/unictype/pr_private_use.h: Likewise.
10963         * lib/unictype/pr_quotation_mark.h: Likewise.
10964         * lib/unictype/pr_radical.h: Likewise.
10965         * lib/unictype/pr_soft_dotted.h: Likewise.
10966         * lib/unictype/pr_space.h: Likewise.
10967         * lib/unictype/pr_titlecase.h: Likewise.
10968         * lib/unictype/pr_variation_selector.h: Likewise.
10969         * lib/unictype/pr_white_space.h: Likewise.
10970         * lib/unictype/sy_c_ident.h: Likewise.
10971         * lib/unictype/sy_c_whitespace.h: Likewise.
10972         * lib/unictype/sy_java_whitespace.h: Likewise.
10973         * modules/uni*/*: Bump version number of expected libunistring version.
10974         Reported by Simon Josefsson.
10975
10976 2011-01-09  Karl Heuer  <kwzh@gnu.org>
10977
10978         useless-if-before-free: fix typo in --help and make the internal,
10979         automatic version date update process work once again.
10980         --help output contained a NUL character instead of the
10981         backslash-zero that was intended.  Also, the "must lie within
10982         the first 8 lines" line is on line 9, and hence not getting
10983         automatically updated.
10984         * build-aux/useless-if-before-free: Fix the former by adding a
10985         backslash, and the latter by condensing the three lines of what-it-does
10986         to a single line, leaving one line of slack for the future.
10987
10988 2011-01-09  Bruno Haible  <bruno@clisp.org>
10989
10990         uniwidth/width: Fix width of U+1D173..U+1D17A.
10991         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
10992         symbolic_width, output_width_property_test): New functions.
10993         (main): Invoke output_nonspacing_property, output_width_property_test.
10994         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
10995         U+1D173..U+1D17A.
10996         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
10997         1.
10998         * modules/uniwidth/*: Bump version number of expected libunistring
10999         version.
11000         * modules/unilbrk/*: Likewise.
11001
11002 2011-01-08  Bruno Haible  <bruno@clisp.org>
11003
11004         uninorm tests: Preserve copyright of Unicode data file.
11005         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
11006         Mention modifications.
11007
11008 2011-01-08  Bruno Haible  <bruno@clisp.org>
11009
11010         gen-uni-tables: Prepare for Unicode 5.2.0.
11011         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
11012         (debug_output_lbp, output_lbp): Update.
11013
11014 2011-01-08  Bruno Haible  <bruno@clisp.org>
11015
11016         unilbrk: Clarify gen-uni-tables.c code.
11017         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
11018         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
11019         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
11020
11021 2011-01-07  Bruno Haible  <bruno@clisp.org>
11022
11023         strtod: Restore errno when successfully parsing Infinity or NaN.
11024         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
11025         restore the original errno.
11026
11027 2011-01-07  Bruno Haible  <bruno@clisp.org>
11028
11029         remove test: Avoid failure on HP-UX 11.
11030         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
11031
11032 2011-01-07  Bruno Haible  <bruno@clisp.org>
11033
11034         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
11035         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
11036         error code.
11037
11038 2011-01-07  Pádraig Brady <P@draigBrady.com>
11039
11040         ignore-value: fixup comments, and add Eric Blake
11041         as an author since he rewrote the macros.
11042         * lib/ignore-value.h (ignore_value):  State that
11043         we now support aggregates.  Also specify exactly
11044         when the GCC warn_unused_result feature was added.
11045
11046 2011-01-06  Eric Blake  <eblake@redhat.com>
11047
11048         ignore-value: support aggregate types
11049         * lib/ignore-value.h (ignore_value): Provide separate gcc
11050         definition.
11051         * modules/ignore-value-tests: New test module.
11052         * tests/test-ignore-value.c: New test.
11053
11054         maint.mk: improve sc_prohibit_strcmp regex
11055         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
11056         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
11057         definition of STRNEQ.
11058
11059         signal: work around Haiku issue with SIGBUS
11060         * lib/siglist.h: Add comment.
11061         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
11062         strsignal's favoring of SIGSEGV.
11063         * tests/test-signal.c (main): Avoid test failure.
11064         * doc/posix-headers/signal.texi (signal.h): Document the issue.
11065         Reported by Scott McCreary.
11066
11067         maint.mk: add pre-release check to ensure submodule commits are public
11068         * top/maint.mk (public-submodule-commit): New rule.
11069         (submodule-checks): New variable.
11070         (alpha beta stable): Depend on the variable.
11071
11072 2011-01-05  Pádraig Brady <P@draigBrady.com>
11073         and Jim Meyering  <meyering@redhat.com>
11074
11075         ignore-value: make ignore_value more generic; deprecate ignore_ptr
11076         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
11077         (ATTRIBUTE_DEPRECATED): Define.
11078         (_ignore_case): New function.
11079         (ignore_value): New macro, to replace the old function.
11080         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
11081         * modules/ignore-value (Depends-on): Add stdint.
11082
11083 2011-01-04  Eric Blake  <eblake@redhat.com>
11084
11085         doc: regenerate INSTALL
11086         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
11087         @firstparagraphindent support, now that autoconf dropped it.
11088         (INSTALL_PRELUDE): Reinstate old macro.
11089         * doc/install.texi: Resync from autoconf.
11090         * doc/INSTALL: Reflect recent autoconf update.
11091         * doc/INSTALL.ISO: Likewise.
11092         * doc/INSTALL.UTF-8: Likewise.
11093         Reported by Karl Berry.
11094
11095 2011-01-04  Bruce Korb  <address@hidden>
11096
11097         git-version-gen: avoid a sub-shell
11098         * build-aux/git-version-gen: Redirect stderr in `...` via
11099         "exec 2>...", rather than via an added sub-shell.
11100
11101 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
11102
11103         git-version-gen: use (...) rather than sh -c '...'
11104         * build-aux/git-version-gen: Rather than hard-coding a shell's name
11105         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
11106
11107 2011-01-03  Jim Meyering  <meyering@redhat.com>
11108
11109         git-version-gen: convert leading TABs to spaces
11110         * build-aux/git-version-gen: Expand leading TABs.
11111
11112         git-version-gen: handle failed "git rev-list"
11113         * build-aux/git-version-gen: Rather than leaking a "fatal" error
11114         from git and proceeding as if it had succeeded but printed no SHA1
11115         checksums, suppress the diagnostic and handle the failure.
11116         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
11117
11118         git-version-gen: include command name in one more diagnostic
11119         * build-aux/git-version-gen: When the required .tarball-version file
11120         was missing or unreadable, you might see the diagnostic from "cat",
11121         but no trace of the name of the invoking script.  Now, you still see
11122         the diagnostic from cat, but also get one from "git-version-gen: ".
11123         Inspired by a patch from Bruce Korb.
11124
11125         update-copyright: adjust test to match changed code
11126         * tests/test-update-copyright.sh: Change test's expected output
11127         to match new actual output.
11128
11129 2011-01-02  Bruno Haible  <bruno@clisp.org>
11130
11131         getlogin_r: Avoid test failure on HP-UX 11.
11132         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
11133         ERANGE when the second argument is zero.
11134         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
11135         portability problem.
11136
11137 2011-01-02  Bruce Korb  <bkorb@gnu.org>
11138
11139         * build-aux/update-copyright: doc Simon's changes
11140
11141 2011-01-02  Simon Josefsson  <simon@josefsson.org>
11142
11143         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
11144         environment variable.
11145
11146 2011-01-02  Bruno Haible  <bruno@clisp.org>
11147
11148         unigbrk: Avoid gcc warnings.
11149         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
11150         unused variable.
11151         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
11152         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
11153         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
11154         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
11155         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
11156         Change type of first argument to 'const char *'.
11157         (main): Remove unused variable.
11158         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
11159         type of first argument to 'const char *'.
11160         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
11161         Likewise.
11162         (main): Change type of variable 's'.
11163         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
11164         to 'int'.
11165
11166 2011-01-02  Bruno Haible  <bruno@clisp.org>
11167
11168         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
11169         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
11170         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
11171         bug.
11172         * lib/pwrite.c: Undo 2010-12-31 patch.
11173         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
11174
11175 2011-01-02  Bruno Haible  <bruno@clisp.org>
11176
11177         pread: Fix test whether it works.
11178         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
11179
11180 2011-01-02  Bruno Haible  <bruno@clisp.org>
11181
11182         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
11183         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
11184         ends in "6". Don't require a specific month name. Try also the locale
11185         names found on HP-UX 11 and Solaris 7.
11186
11187 2011-01-02  Bruno Haible  <bruno@clisp.org>
11188
11189         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
11190         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
11191         C linkage.
11192         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
11193
11194 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
11195
11196         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
11197         for consistency, since the "cluster" term is not used elsewhere.
11198         * lib/unigbrk.in.h: Update name.
11199         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
11200         * lib/unigbrk/u16-grapheme-next.c: Update name.
11201         * lib/unigbrk/u16-grapheme-prev.c: Update name.
11202         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
11203         * lib/unigbrk/u32-grapheme-next.c: Update name.
11204         * lib/unigbrk/u32-grapheme-prev.c: Update name.
11205         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
11206         * lib/unigbrk/u8-grapheme-next.c: Update name.
11207         * lib/unigbrk/u8-grapheme-prev.c: Update name.
11208         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
11209         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
11210         Suggested by Bruno Haible.
11211
11212 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
11213
11214         Remove module 'u8-grapheme-len' as too redundant with
11215         'u8-grapheme-next'.
11216         * modules/unigbrk/u8-grapheme-len: Delete file.
11217         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
11218         * lib/unigbrk.in.h: Remove prototype for deleted function.
11219         * lib/unigbrk/u8-grapheme-len.c: Delete file.
11220         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
11221
11222         Remove module 'u16-grapheme-len' as too redundant with
11223         'u16-grapheme-next'.
11224         * modules/unigbrk/u16-grapheme-len: Delete file.
11225         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
11226         * lib/unigbrk.in.h: Remove prototype for deleted function.
11227         * lib/unigbrk/u16-grapheme-len.c: Delete file.
11228         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
11229
11230         Remove module 'u32-grapheme-len' as too redundant with
11231         'u32-grapheme-next'.
11232         * modules/unigbrk/u32-grapheme-len: Delete file.
11233         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
11234         * lib/unigbrk.in.h: Remove prototype for deleted function.
11235         * lib/unigbrk/u32-grapheme-len.c: Delete file.
11236         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
11237
11238         Suggested by Bruno Haible.
11239
11240 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
11241
11242         * unigbrk.in.h: Fix typo: "ben" => "been".
11243         Reported by Bruno Haible.
11244
11245 2011-01-01  Jim Meyering  <meyering@redhat.com>
11246
11247         maint: update almost all copyright ranges to include 2011
11248         Run the new "make update-copyright" rule.
11249
11250 2011-01-01  Jim Meyering  <meyering@redhat.com>
11251
11252         maint: update-copyright: exempt doc/INSTALL*
11253         * Makefile (update-copyright): Also exclude doc/INSTALL*,
11254         since they are generated.  Suggested by Bruno Haible.
11255
11256 2011-01-01  Jim Meyering  <meyering@redhat.com>
11257
11258         maint: refine the update-copyright rule
11259         * Makefile (update-copyright): Also exclude any file that includes
11260         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
11261         code that merely generates the comment.
11262
11263 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
11264
11265         New module 'u8-grapheme-len'.
11266         * modules/unigbrk/u8-grapheme-len: New file.
11267         * modules/unigbrk/u8-grapheme-len-tests: New file.
11268         * lib/unigbrk.in.h: Add prototype for new function.
11269         * lib/unigbrk/u8-grapheme-len.c: New file.
11270         * tests/unigbrk/test-u8-grapheme-len.c: New file.
11271
11272         New module 'u16-grapheme-len'.
11273         * modules/unigbrk/u16-grapheme-len: New file.
11274         * modules/unigbrk/u16-grapheme-len-tests: New file.
11275         * lib/unigbrk.in.h: Add prototype for new function.
11276         * lib/unigbrk/u16-grapheme-len.c: New file.
11277         * tests/unigbrk/test-u16-grapheme-len.c: New file.
11278
11279         New module 'u32-grapheme-len'.
11280         * modules/unigbrk/u32-grapheme-len: New file.
11281         * modules/unigbrk/u32-grapheme-len-tests: New file.
11282         * lib/unigbrk.in.h: Add prototype for new function.
11283         * lib/unigbrk/u32-grapheme-len.c: New file.
11284         * tests/unigbrk/test-u32-grapheme-len.c: New file.
11285
11286         New module 'u8-grapheme-next'.
11287         * modules/unigbrk/u8-grapheme-next: New file.
11288         * modules/unigbrk/u8-grapheme-next-tests: New file.
11289         * lib/unigbrk.in.h: Add prototype for new function.
11290         * lib/unigbrk/u8-grapheme-next.c: New file.
11291         * tests/unigbrk/test-u8-grapheme-next.c: New file.
11292
11293         New module 'u16-grapheme-next'.
11294         * modules/unigbrk/u16-grapheme-next: New file.
11295         * modules/unigbrk/u16-grapheme-next-tests: New file.
11296         * lib/unigbrk.in.h: Add prototype for new function.
11297         * lib/unigbrk/u16-grapheme-next.c: New file.
11298         * tests/unigbrk/test-u16-grapheme-next.c: New file.
11299
11300         New module 'u32-grapheme-next'.
11301         * modules/unigbrk/u32-grapheme-next: New file.
11302         * modules/unigbrk/u32-grapheme-next-tests: New file.
11303         * lib/unigbrk.in.h: Add prototype for new function.
11304         * lib/unigbrk/u32-grapheme-next.c: New file.
11305         * tests/unigbrk/test-u32-grapheme-next.c: New file.
11306
11307         New module 'u8-grapheme-prev'.
11308         * modules/unigbrk/u8-grapheme-prev: New file.
11309         * modules/unigbrk/u8-grapheme-prev-tests: New file.
11310         * lib/unigbrk.in.h: Add prototype for new function.
11311         * lib/unigbrk/u8-grapheme-prev.c: New file.
11312         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
11313
11314         New module 'u16-grapheme-prev'.
11315         * modules/unigbrk/u16-grapheme-prev: New file.
11316         * modules/unigbrk/u16-grapheme-prev-tests: New file.
11317         * lib/unigbrk.in.h: Add prototype for new function.
11318         * lib/unigbrk/u16-grapheme-prev.c: New file.
11319         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
11320
11321         New module 'u32-grapheme-prev'.
11322         * modules/unigbrk/u32-grapheme-prev: New file.
11323         * modules/unigbrk/u32-grapheme-prev-tests: New file.
11324         * lib/unigbrk.in.h: Add prototype for new function.
11325         * lib/unigbrk/u32-grapheme-prev.c: New file.
11326         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
11327
11328         New module 'u8-grapheme-breaks'.
11329         * modules/unigbrk/u8-grapheme-breaks: New file.
11330         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
11331         * lib/unigbrk.in.h: Add prototype for new function.
11332         * lib/unigbrk/u8-grapheme-breaks.c: New file.
11333         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
11334
11335         New module 'u16-grapheme-breaks'.
11336         * modules/unigbrk/u16-grapheme-breaks: New file.
11337         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
11338         * lib/unigbrk.in.h: Add prototype for new function.
11339         * lib/unigbrk/u16-grapheme-breaks.c: New file.
11340         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
11341
11342         New module 'u32-grapheme-breaks'.
11343         * modules/unigbrk/u32-grapheme-breaks: New file.
11344         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
11345         * lib/unigbrk.in.h: Add prototype for new function.
11346         * lib/unigbrk/u32-grapheme-breaks.c: New file.
11347         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
11348
11349         New module 'ulc-grapheme-breaks'.
11350         * modules/unigbrk/ulc-grapheme-breaks: New file.
11351         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
11352         * m4/locale-ar.m4: New file.
11353         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
11354         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
11355         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
11356
11357 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
11358
11359         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
11360         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
11361         modified how this file was generated before I initially submitted
11362         the module, but failed to regenerate it.  This meant that several
11363         of the level2 entries were wrong.
11364         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
11365         Remove the division-by-2 that is folded into the table now that
11366         gbrkprop.h has been regenerated properly.  Now -1 entries are
11367         handled correctly.
11368
11369         New module 'unigbrk/uc-gbrk-prop-tests'.
11370         * modules/unigbrk/uc-gbrk-prop-tests: New file.
11371         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
11372         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
11373         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
11374
11375 2011-01-01  Bruno Haible  <bruno@clisp.org>
11376
11377         Avoid use of hexadecimal escapes.
11378         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
11379         instead of hexadecimal escapes.
11380
11381 2011-01-01  Jim Meyering  <meyering@redhat.com>
11382
11383         maint: new rule to update copyright year ranges
11384         * Makefile (update-copyright): New rule.
11385
11386         maint: indent with TABs in Makefile
11387         * Makefile: Expand leading sequences of spaces to TABs
11388
11389         version-etc: update the copyright year it reports
11390         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
11391
11392 2010-12-31  Bruno Haible  <bruno@clisp.org>
11393
11394         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
11395         * lib/isfinite.c (zerof, zerod, zerol): New variables.
11396         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
11397         zero.
11398
11399 2010-12-31  Bruno Haible  <bruno@clisp.org>
11400
11401         pwrite: Work around HP-UX 11.11 bug.
11402         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
11403         works and set REPLACE_PWRITE if not.
11404         * lib/pwrite.c (pwrite): Add an implementation that uses the system
11405         function.
11406         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
11407
11408 2010-12-31  Bruno Haible  <bruno@clisp.org>
11409
11410         pread: Work around HP-UX 11 bugs.
11411         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
11412         and set REPLACE_PREAD if not.
11413         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
11414
11415 2010-12-31  Eric Blake  <eblake@redhat.com>
11416
11417         nl_langinfo: fix YESEXPR on Irix 6.5
11418         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
11419         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
11420         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
11421         it.
11422
11423 2010-12-31  Bruno Haible  <bruno@clisp.org>
11424
11425         iconv: Document HP-UX 11 bug.
11426         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
11427
11428 2010-12-31  Bruno Haible  <bruno@clisp.org>
11429
11430         ldexpl: Fix link error on HP-UX 11.
11431         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
11432         LDEXPL_LIBM, using $ISNANL_LIBM.
11433
11434 2010-12-31  Eric Blake  <eblake@redhat.com>
11435
11436         ftello: avoid compilation failure with SunStudio c89
11437         * lib/ftello.c (ftello): Use lseek, not llseek.
11438
11439         tests: avoid failing coreutils tests on cygwin
11440         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
11441         (create_exe_shims_): Return 0 when skipping.
11442
11443 2010-12-31  Bruno Haible  <bruno@clisp.org>
11444
11445         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
11446         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
11447
11448 2010-12-31  Bruno Haible  <bruno@clisp.org>
11449
11450         waitpid: Fix link error in C++ mode.
11451         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
11452
11453 2010-12-31  Bruno Haible  <bruno@clisp.org>
11454
11455         isnan: Use GCC built-ins when possible.
11456         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
11457         __builtin_isnan.
11458         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
11459         (isnan): Define using GCC built-ins for GCC >= 4.0.
11460
11461 2010-12-31  Bruno Haible  <bruno@clisp.org>
11462
11463         isnand: Fix mistake.
11464         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
11465         __builtin_isnand.
11466
11467 2010-12-31  Bruno Haible  <bruno@clisp.org>
11468
11469         open: Avoid C++ error on HP-UX 11.
11470         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
11471
11472 2010-12-31  Bruno Haible  <bruno@clisp.org>
11473
11474         time_r: Add missing declarations on HP-UX 11.
11475         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
11476         instead of HAVE_LOCALTIME_R.
11477         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
11478         HAVE_LOCALTIME_R always.
11479         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
11480         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
11481         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
11482         HAVE_LOCALTIME_R.
11483         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
11484         * doc/posix-functions/localtime_r.texi: Likewise.
11485
11486 2010-12-29  Eric Blake  <eblake@redhat.com>
11487
11488         mountlist: tweak previous commit
11489         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
11490         Reported by Paul Eggert.
11491
11492         mountlist: fix local drive detection on cygwin
11493         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
11494         that works for cygwin.
11495
11496 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
11497
11498         ftoastr, snprintf: ftoastr + snprintf module
11499         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
11500         since the snprintf module now should be good enough here.
11501         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
11502         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
11503         and gl_MODULE_INDICATOR([snprintf]), but the former enables
11504         GNULIB_SNPRINTF only for the test directory, and the latter
11505         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
11506         seems to suffice by itself.
11507
11508 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
11509
11510         alloca: one step towards thread-safety
11511         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
11512         need for a static variable.  All callers changed.  This does not
11513         make the alloca replacement thread-safe, but it's one step.
11514
11515         tests: minor indenting change
11516         * tests/init.sh: Sync from coreutils housekeeping patch
11517         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
11518         to keep lines within 80 columns.
11519
11520 2010-12-28  Jim Meyering  <meyering@redhat.com>
11521
11522         regex: don't infloop on persistent failing calloc
11523         * lib/regexec.c (build_trtable): Return failure indication upon
11524         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
11525         In glibc, this was fixed for version 2.13:
11526         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
11527
11528 2010-12-28  Bruno Haible  <bruno@clisp.org>
11529             Paul Eggert <eggert@cs.ucla.edu>
11530
11531         linkat: Make implementation robust against system behaviour variations.
11532         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
11533         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
11534         way, and to -2 if it needs a generic runtime test.
11535         * lib/linkat.c (solaris_optimized_link_immediate,
11536         solaris_optimized_link_follow): New functions.
11537         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
11538         (check_same_link): Use it.
11539
11540 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
11541
11542         New module 'unigbrk/base'.
11543         * modules/unigbrk/base: New file.
11544         * lib/unigbrk.in.h: New file.
11545
11546         New module 'unigbrk/uc-gbrk-prop'.
11547         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
11548         * modules/unigbrk/uc-gbrk-prop: New file.
11549         * lib/unigbrk/gbrkprop.h: New file.
11550         * lib/unigbrk/uc-gbrk-prop.c: New file.
11551
11552         New module 'unigbrk/uc-is-grapheme-break'.
11553         * modules/unigbrk/uc-is-grapheme-break: New file.
11554         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
11555         * lib/unigbrk/uc-is-grapheme-break.c: New file.
11556         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
11557         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
11558         * tests/unigbrk/GraphemeBreakTest.txt: New file.
11559
11560         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
11561
11562 2010-12-27  Bruno Haible  <bruno@clisp.org>
11563
11564         linkat test: Avoid failure on Solaris 11 2010-11.
11565         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
11566
11567 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
11568
11569         utimens: work around glibc rounding bug on more platforms
11570         * lib/utimens.c (fdutimens): Work around rounding bug even if
11571         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
11572         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
11573
11574 2010-12-27  Bruno Haible  <bruno@clisp.org>
11575
11576         select tests: Improve comments.
11577         * tests/test-select.c (do_select): Add comments.
11578
11579 2010-12-27  Bruno Haible  <bruno@clisp.org>
11580
11581         select tests: Safer way of handling timeout.
11582         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
11583         at every invocation.
11584
11585 2010-12-27  Bruno Haible  <bruno@clisp.org>
11586
11587         select tests: Use 'bool' where appropriate.
11588         * tests/test-select.c (connect_to_socket): Change argument type to
11589         'bool'.
11590
11591 2010-12-27  Bruno Haible  <bruno@clisp.org>
11592
11593         select tests: Use existing modules.
11594         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
11595         (configure.ac): Don't test for unistd.h.
11596         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
11597         declared in <unistd.h>.
11598
11599 2010-12-27  Bruno Haible  <bruno@clisp.org>
11600
11601         mbrtowc: Work around a Solaris 7 bug.
11602         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
11603         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
11604         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
11605         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
11606         MBRTOWC_NULL_ARG1_BUG.
11607         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
11608         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
11609         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
11610         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
11611
11612 2010-12-27  Jim Meyering  <meyering@redhat.com>
11613
11614         read-file.c: tweak syntax
11615         * lib/read-file.c (fread_file): Remove space after "*" in function
11616         definitions.
11617
11618 2010-12-27  Bruno Haible  <bruno@clisp.org>
11619
11620         times test: Avoid gcc warnings on OSF/1.
11621         * tests/test-times.c (main): Cast printf arguments from clock_t to
11622         'long int'.
11623
11624 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
11625
11626         utimens: work around glibc rounding bug on older Linux kernels
11627         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
11628         on Linux with a glibc whose utimes might not work, then work
11629         around a longstanding glibc bug involving rounding rather than
11630         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
11631         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
11632
11633 2010-12-26  Bruno Haible  <bruno@clisp.org>
11634
11635         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
11636         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
11637         _GL_CXXALIAS_SYS.
11638         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11639
11640 2010-12-26  Bruno Haible  <bruno@clisp.org>
11641
11642         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
11643         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
11644         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
11645         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
11646         looking for the declaration.
11647         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
11648         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
11649         problem.
11650         * doc/posix-functions/inet_pton.texi: Likewise.
11651
11652 2010-12-26  Bruno Haible  <bruno@clisp.org>
11653
11654         arpa_inet: Use the common idioms with C++ support.
11655         * lib/arpa_inet.in.h: Include c++defs.h.
11656         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
11657         support.
11658         * modules/arpa_inet (Depends-on): Add c++defs.
11659         (Makefile.am): Substitute the contents of c++defs.h.
11660         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
11661         * modules/arpa_inet-c++-tests: New file.
11662         * tests/test-arpa_inet-c++.cc: New file.
11663
11664 2010-12-25  Bruno Haible  <bruno@clisp.org>
11665
11666         Fix more C++ link errors on Solaris 8.
11667         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
11668         $(LIB_EACCESS).
11669         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
11670         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
11671         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
11672         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
11673         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
11674
11675 2010-12-25  Bruno Haible  <bruno@clisp.org>
11676
11677         printf-posix: Fix link error when a non-GCC compiler is used.
11678         * lib/stdio.in.h (printf): When not using GCC, override printf
11679         correctly.
11680         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11681
11682 2010-12-25  Bruno Haible  <bruno@clisp.org>
11683
11684         strerror_r-posix: Update doc.
11685         * doc/posix-functions/strerror_r.texi: Update doc about the return
11686         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
11687
11688 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
11689
11690         utimens: simplify the logic of the previous change
11691         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
11692         This should not affect whether the test succeeds or fails.
11693
11694         utimens: configure better on hosts with NFS clock skew
11695         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
11696         uses the clock of the local host.  It might use the clock of the
11697         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
11698         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
11699
11700 2010-12-25  Bruno Haible  <bruno@clisp.org>
11701
11702         ptsname test: Avoid failure on Solaris.
11703         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
11704         open a pseudo-terminal; don't use BSD-style ptys.
11705         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
11706
11707 2010-12-25  Bruno Haible  <bruno@clisp.org>
11708
11709         ptsname: Avoid ERANGE failure on some systems.
11710         * lib/ptsname.c (buffer): Increase size.
11711
11712 2010-12-25  Bruno Haible  <bruno@clisp.org>
11713
11714         rename, renameat: Avoid test failures at NFS mounted locations.
11715         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
11716         so that subsequent mkdir calls succeed.
11717
11718 2010-12-25  Bruno Haible  <bruno@clisp.org>
11719
11720         iswblank: Fix C++ link error on Solaris 8.
11721         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
11722         _GL_FUNCDECL_SYS.
11723
11724 2010-12-25  Bruno Haible  <bruno@clisp.org>
11725
11726         unistd: Fix C++ link error on Solaris 8.
11727         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
11728
11729 2010-12-25  Bruno Haible  <bruno@clisp.org>
11730
11731         readlink doc: Mention an old glibc bug.
11732         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
11733
11734 2010-12-25  Bruno Haible  <bruno@clisp.org>
11735
11736         fcntl-h: Fix for use of C++ on glibc systems.
11737         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
11738         also on glibc systems in C++ mode.
11739         Reported by Gary V. Vaughan <gary@gnu.org>.
11740
11741 2010-12-25  Bruno Haible  <bruno@clisp.org>
11742
11743         roundl-ieee: Make it work on OSF/1 5.1 with cc.
11744         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
11745
11746 2010-12-25  Bruno Haible  <bruno@clisp.org>
11747
11748         truncl-ieee: Make it work on OSF/1 5.1 with cc.
11749         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
11750         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
11751         test whether truncl works according to ISO C 99 with IEC 60559.
11752         * m4/truncl-ieee.m4: New file.
11753         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
11754         m4/signbit.m4.
11755         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
11756
11757 2010-12-25  Bruno Haible  <bruno@clisp.org>
11758
11759         ceill-ieee: Make it work on OSF/1 5.1 with cc.
11760         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
11761         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
11762         test whether ceill works according to ISO C 99 with IEC 60559.
11763         * m4/ceill-ieee.m4: New file.
11764         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
11765         m4/signbit.m4.
11766         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
11767
11768 2010-12-25  Bruno Haible  <bruno@clisp.org>
11769
11770         Ensure all prerequisites of <wchar.h> are included.
11771         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
11772         before <wchar.h>.
11773         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
11774         gl_MBRLEN_NUL_RETVAL): Likewise.
11775         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
11776         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
11777         AC_FUNC_MBRTOWC): Likewise.
11778         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
11779         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
11780         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
11781         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
11782         Likewise.
11783         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
11784         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
11785         (gl_WCHAR_H): Improve comments.
11786         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
11787
11788 2010-12-25  Bruno Haible  <bruno@clisp.org>
11789
11790         strtok_r: Fix C syntax error in autoconf macro.
11791         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
11792         characters in test program.
11793
11794 2010-12-24  Bruno Haible  <bruno@clisp.org>
11795
11796         ceil, trunc, round: Fix gcc warnings.
11797         * lib/ceil.c (MIN): Undefine before redefining.
11798         * lib/trunc.c (MIN): Likewise.
11799         * lib/round.c (MIN): Likewise.
11800         Include <math.h> first.
11801
11802 2010-12-24  Bruno Haible  <bruno@clisp.org>
11803
11804         select tests: Avoid failures on OSF/1 5.1.
11805         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
11806         failure of closing the last socket; it may fail with ECONNRESET.
11807
11808 2010-12-24  Eric Blake  <eblake@redhat.com>
11809
11810         stdint: avoid HP-UX 10.20 preprocessor bug
11811         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
11812         than #if.
11813         * tests/test-floor2.c (main): Likewise.
11814         Reported by Peter O'Gorman.
11815
11816         pipe: make obsoletion transition easier
11817         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
11818         * modules/pipe (Files): Include revived file.
11819         (Include): Drop reference, to mirror getdate's behavior.
11820
11821 2010-12-24  Bruno Haible  <bruno@clisp.org>
11822
11823         sys_socket: Hide mismatch of declarations on NonStop Kernel.
11824         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
11825         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
11826         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11827
11828 2010-12-24  Bruno Haible  <bruno@clisp.org>
11829
11830         gethostname: Ensure declaration on NonStop Kernel.
11831         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
11832         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11833
11834 2010-12-24  Bruno Haible  <bruno@clisp.org>
11835
11836         sys_select: Ensure all necessary types on NonStop Kernel.
11837         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
11838         include <sys/time.h>.
11839         * doc/posix-headers/sys_select.texi: Mention that it's missing on
11840         NonStop Kernel.
11841         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11842
11843 2010-12-24  Bruno Haible  <bruno@clisp.org>
11844
11845         sys_select: Remove unneeded include.
11846         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
11847         have <sys/select.h>.
11848
11849 2010-12-24  Bruno Haible  <bruno@clisp.org>
11850
11851         gethostname: Provide a fallback for HOST_NAME_MAX.
11852         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
11853         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
11854         instead.
11855         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11856
11857 2010-12-24  Bruno Haible  <bruno@clisp.org>
11858
11859         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
11860         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
11861         (SA_RESTART): Likewise.
11862         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11863
11864 2010-12-24  Bruno Haible  <bruno@clisp.org>
11865
11866         signal: Define NSIG.
11867         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
11868         * tests/test-signal.c (nsig): New variable.
11869         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11870
11871 2010-12-24  Bruno Haible  <bruno@clisp.org>
11872
11873         rename, renameat: Avoid test failures on OSF/1 5.1.
11874         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
11875         alternative error codes.
11876         * tests/test-renameat.c (main): Likewise.
11877
11878 2010-12-24  Bruno Haible  <bruno@clisp.org>
11879
11880         *printf: Detect large precisions bug on Solaris 10/SPARC.
11881         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
11882         by Paul Eggert.
11883         * tests/test-snprintf-posix.h (test_function): Add this test code here
11884         too.
11885         * tests/test-sprintf-posix.h (test_function): Likewise.
11886         * tests/test-vasnprintf-posix.c (test_function): Likewise.
11887         * tests/test-vasprintf-posix.c (test_function): Likewise.
11888         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
11889         around by gnulib.
11890         * doc/posix-functions/printf.texi: Likewise.
11891         * doc/posix-functions/snprintf.texi: Likewise.
11892         * doc/posix-functions/sprintf.texi: Likewise.
11893         * doc/posix-functions/vfprintf.texi: Likewise.
11894         * doc/posix-functions/vprintf.texi: Likewise.
11895         * doc/posix-functions/vsnprintf.texi: Likewise.
11896         * doc/posix-functions/vsprintf.texi: Likewise.
11897         * doc/posix-functions/dprintf.texi: Undo last commit.
11898         * doc/posix-functions/vdprintf.texi: Likewise.
11899
11900 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
11901
11902         tests: port test-fdutimensat.c to Solaris 8
11903         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
11904         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
11905         On Solaris 8, it fails with errno == ENOSYS, because there is no
11906         futimens (so it can't use the fd), and there is no lutimens (so it
11907         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
11908
11909         vsnprintf: make more consistent with snprintf; doc fixes
11910
11911         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
11912         the byte count return problem was promoted from the snprintf-posix
11913         to the snprintf module.
11914         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
11915         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
11916         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
11917         * tests/test-snprintf.c (main): Check the byte count returned.
11918         * tests/test-vsnprintf.c (main): Likewise.
11919
11920 2010-12-23  Eric Blake  <eblake@redhat.com>
11921
11922         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
11923         * modules/sigpipe (License): Relax license.
11924
11925 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
11926
11927         doc: document Solaris printf bug with large float precisions
11928         * doc/posix-functions/dprintf.texi (dprintf):
11929         * doc/posix-functions/fprintf.texi (fprintf):
11930         * doc/posix-functions/printf.texi (printf):
11931         * doc/posix-functions/snprintf.texi (snprintf):
11932         * doc/posix-functions/sprintf.texi (sprintf):
11933         * doc/posix-functions/vdprintf.texi (vdprintf):
11934         * doc/posix-functions/vfprintf.texi (vfprintf):
11935         * doc/posix-functions/vprintf.texi (vprintf):
11936         * doc/posix-functions/vsnprintf.texi (vsnprintf):
11937         * doc/posix-functions/vsprintf.texi (vsprintf):
11938         Mention that these functions mishandle large floating point
11939         precisions on Solaris 10.  The same bug is also present in Solaris
11940         8, and I assume earlier.  This causes "cd gnulib-tests; make
11941         check" to fail on Solaris 8 (and I assume, later) when building
11942         the latest coreutils, in test-vasprintf-posix's call to
11943         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
11944         the wide flavors (e.g., wprintf) so this patch just updates the
11945         documentation for the narrow ones.
11946
11947         test-posixtm.c: add two tests
11948         * tests/test-posixtm.c: Add two tests, to highlight the
11949         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
11950         around this bug; this is merely to document it.
11951
11952 2010-12-22  Bruno Haible  <bruno@clisp.org>
11953
11954         getlogin_r: Work around portability problem on OSF/1.
11955         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
11956         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
11957         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
11958         test for a truncated result.
11959         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
11960         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
11961         * modules/getlogin_r (Depends-on): Add memchr.
11962         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
11963
11964 2010-12-22  Bruno Haible  <bruno@clisp.org>
11965
11966         ptsname: Avoid test failure on OSF/1 5.1.
11967         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
11968         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
11969         (same_slave): New function.
11970         (main): Use it to compare ptsname's result with the expected file name.
11971
11972 2010-12-22  Bruno Haible  <bruno@clisp.org>
11973
11974         Port extended stdio modules to HP NonStop Kernel.
11975         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
11976         macros.
11977         * lib/fbufmode.c: Update comments.
11978         * lib/fflush.c: Likewise.
11979         * lib/fpurge.c: Likewise.
11980         * lib/freadable.c: Likewise.
11981         * lib/freadahead.c: Likewise.
11982         * lib/freading.c: Likewise.
11983         * lib/freadptr.c: Likewise.
11984         * lib/freadseek.c: Likewise.
11985         * lib/fseeko.c: Likewise.
11986         * lib/fseterr.c: Likewise.
11987         * lib/fwritable.c: Likewise.
11988         * lib/fwriting.c: Likewise.
11989         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11990
11991 2010-12-22  Bruno Haible  <bruno@clisp.org>
11992
11993         ttyname_r: Work around bug on OSF/1 5.1.
11994         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
11995         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
11996         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
11997         present.
11998         * lib/ttyname_r.c (ttyname_r): Update comments.
11999
12000 2010-12-22  Bruno Haible  <bruno@clisp.org>
12001
12002         round: Implement result sign according to IEEE 754.
12003         * lib/round.c (MIN, MINUS_ZERO): New macros.
12004         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
12005         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
12006         * tests/test-round-ieee.c (main): Likewise.
12007         * tests/test-roundl-ieee.c (main): Likewise.
12008
12009         trunc: Implement result sign according to IEEE 754.
12010         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
12011         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
12012         * tests/test-trunc2.c: Include minus-zero.h.
12013         (MINUS_ZERO): New macro.
12014         (trunc_reference): Keep in sync with lib/trunc.c.
12015         * tests/test-truncf2.c: Include minus-zero.h.
12016         (MINUS_ZERO): New macro.
12017         (truncf_reference): Keep in sync with lib/trunc.c.
12018         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
12019         * tests/test-trunc-ieee.c (main): Likewise.
12020         * tests/test-truncl-ieee.c (main): Likewise.
12021
12022         ceil: Implement result sign according to IEEE 754.
12023         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
12024         (FUNC): Return -0.0 for -1 < x < 0.
12025         * tests/test-ceil2.c: Include minus-zero.h.
12026         (MINUS_ZERO): New macro.
12027         (ceil_reference): Keep in sync with lib/ceil.c.
12028         * tests/test-ceilf2.c: Include minus-zero.h.
12029         (MINUS_ZERO): New macro.
12030         (ceilf_reference): Keep in sync with lib/ceil.c.
12031         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
12032         * tests/test-ceil-ieee.c (main): Likewise.
12033         * tests/test-ceill-ieee.c (main): Likewise.
12034
12035         floor: Implement result sign according to IEEE 754.
12036         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
12037         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
12038         * tests/test-floorf2.c (floorf_reference): Likewise.
12039         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
12040         * tests/test-floor-ieee.c (main): Likewise.
12041         * tests/test-floorl-ieee.c (main): Likewise.
12042
12043 2010-12-22  Bruno Haible  <bruno@clisp.org>
12044
12045         getaddrinfo: Update doc.
12046         * doc/posix-functions/gai_strerror.texi: Return type is also different
12047         on AIX and HP-UX.
12048
12049 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
12050
12051         getaddrinfo, inet_ntop: Update doc for Solaris.
12052         * doc/posix-functions/gai_strerror.texi: Return type is also an
12053         issue on Solaris 9 and earlier.
12054         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
12055         on Solaris 10 and earlier.
12056
12057 2010-12-21  Bruno Haible  <bruno@clisp.org>
12058
12059         New module 'roundl-ieee'.
12060         * modules/roundl-ieee: New file.
12061         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
12062         test whether roundl works according to ISO C 99 with IEC 60559.
12063         * m4/roundl-ieee.m4: New file.
12064         * modules/roundl-ieee-tests: New file.
12065         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
12066         * tests/test-roundl.c (main): Remove signbit tests.
12067         * modules/roundl-tests (Depends-on): Remove signbit.
12068         * doc/posix-functions/roundl.texi: Mention the new module.
12069
12070 2010-12-21  Bruno Haible  <bruno@clisp.org>
12071
12072         New module 'truncl-ieee'.
12073         * modules/truncl-ieee: New file.
12074         * modules/truncl-ieee-tests: New file.
12075         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
12076         * tests/test-truncl.c (main): Remove signbit tests.
12077         * modules/truncl-tests (Depends-on): Remove signbit.
12078         * doc/posix-functions/truncl.texi: Mention the new module.
12079
12080 2010-12-21  Bruno Haible  <bruno@clisp.org>
12081
12082         New module 'ceill-ieee'.
12083         * modules/ceill-ieee: New file.
12084         * modules/ceill-ieee-tests: New file.
12085         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
12086         * tests/test-ceill.c (main): Remove signbit tests.
12087         * modules/ceill-tests (Depends-on): Remove signbit.
12088         * doc/posix-functions/ceill.texi: Mention the new module.
12089
12090 2010-12-21  Bruno Haible  <bruno@clisp.org>
12091
12092         New module 'floorl-ieee'.
12093         * modules/floorl-ieee: New file.
12094         * modules/floorl-ieee-tests: New file.
12095         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
12096         * tests/test-floorl.c (main): Remove signbit tests.
12097         * modules/floorl-tests (Depends-on): Remove signbit.
12098         * doc/posix-functions/floorl.texi: Mention the new module.
12099
12100 2010-12-21  Bruno Haible  <bruno@clisp.org>
12101
12102         New module 'round-ieee'.
12103         * modules/round-ieee: New file.
12104         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
12105         whether round works according to ISO C 99 with IEC 60559.
12106         * m4/round-ieee.m4: New file.
12107         * modules/round-ieee-tests: New file.
12108         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
12109         * tests/test-round1.c (main): Remove signbit tests.
12110         * modules/round-tests (Depends-on): Remove 'signbit'.
12111         * doc/posix-functions/round.texi: Mention the new module.
12112
12113 2010-12-21  Bruno Haible  <bruno@clisp.org>
12114
12115         New module 'trunc-ieee'.
12116         * modules/trunc-ieee: New file.
12117         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
12118         whether trunc works according to ISO C 99 with IEC 60559.
12119         * m4/trunc-ieee.m4: New file.
12120         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
12121         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
12122         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
12123         * modules/trunc-ieee-tests: New file.
12124         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
12125         * tests/test-trunc1.c (main): Remove signbit tests.
12126         * modules/trunc-tests (Depends-on): Remove 'signbit'.
12127         * doc/posix-functions/trunc.texi: Mention the new module.
12128
12129 2010-12-21  Bruno Haible  <bruno@clisp.org>
12130
12131         New module 'ceil-ieee'.
12132         * modules/ceil-ieee: New file.
12133         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
12134         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
12135         ISO C 99 with IEC 60559.
12136         * m4/ceil-ieee.m4: New file.
12137         * modules/ceil (Files): Add lib/ceil.c.
12138         (Depends-on): Add 'float'.
12139         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
12140         * lib/math.in.h (ceil): New declaration.
12141         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
12142         REPLACE_CEIL.
12143         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
12144         * modules/ceil-ieee-tests: New file.
12145         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
12146         * tests/test-math-c++.cc: Check the signature of 'ceil'.
12147         * doc/posix-functions/ceil.texi: Mention the new module.
12148
12149 2010-12-21  Bruno Haible  <bruno@clisp.org>
12150
12151         New module 'floor-ieee'.
12152         * modules/floor-ieee: New file.
12153         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
12154         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
12155         ISO C 99 with IEC 60559.
12156         * m4/floor-ieee.m4: New file.
12157         * modules/floor (Files): Add lib/floor.c.
12158         (Depends-on): Add 'float'.
12159         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
12160         * lib/math.in.h (floor): New declaration.
12161         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
12162         REPLACE_FLOOR.
12163         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
12164         * modules/floor-ieee-tests: New file.
12165         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
12166         * tests/test-math-c++.cc: Check the signature of 'floor'.
12167         * doc/posix-functions/floor.texi: Mention the new module.
12168
12169 2010-12-21  Bruno Haible  <bruno@clisp.org>
12170
12171         New module 'roundf-ieee'.
12172         * modules/roundf-ieee: New file.
12173         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
12174         test whether roundf works according to ISO C 99 with IEC 60559.
12175         * m4/roundf-ieee.m4: New file.
12176         * modules/roundf-ieee-tests: New file.
12177         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
12178         * tests/test-roundf1.c (main): Remove signbit tests.
12179         * modules/roundf-tests (Depends-on): Remove 'signbit'.
12180         * doc/posix-functions/roundf.texi: Mention the new module.
12181
12182 2010-12-21  Bruno Haible  <bruno@clisp.org>
12183
12184         New module 'truncf-ieee'.
12185         * modules/truncf-ieee: New file.
12186         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
12187         test whether truncf works according to ISO C 99 with IEC 60559.
12188         * m4/truncf-ieee.m4: New file.
12189         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
12190         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
12191         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
12192         * modules/truncf-ieee-tests: New file.
12193         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
12194         * tests/test-truncf1.c (main): Remove signbit tests.
12195         * modules/truncf-tests (Depends-on): Remove 'signbit'.
12196         * doc/posix-functions/truncf.texi: Mention the new module.
12197
12198 2010-12-21  Bruno Haible  <bruno@clisp.org>
12199
12200         New module 'ceilf-ieee'.
12201         * modules/ceilf-ieee: New file.
12202         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
12203         test whether ceilf works according to ISO C 99 with IEC 60559.
12204         * m4/ceilf-ieee.m4: New file.
12205         * modules/ceilf-ieee-tests: New file.
12206         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
12207         * tests/test-ceilf1.c (main): Remove signbit tests.
12208         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
12209         * doc/posix-functions/ceilf.texi: Mention the new module.
12210
12211 2010-12-21  Bruno Haible  <bruno@clisp.org>
12212
12213         New module 'floorf-ieee'.
12214         * modules/floorf-ieee: New file.
12215         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
12216         test whether floorf works according to ISO C 99 with IEC 60559.
12217         * m4/floorf-ieee.m4: New file.
12218         * modules/floorf-ieee-tests: New file.
12219         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
12220         * tests/test-floorf1.c (main): Remove signbit tests.
12221         * modules/floorf-tests (Depends-on): Remove 'signbit'.
12222         * doc/posix-functions/floorf.texi: Mention the new module.
12223
12224 2010-12-21  Bruno Haible  <bruno@clisp.org>
12225
12226         Support for minus zero in autoconf macros.
12227         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
12228         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
12229         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
12230         * tests/minus-zero.h: Update comments.
12231
12232 2010-12-21  Bruno Haible  <bruno@clisp.org>
12233
12234         Tests for module 'ceil'.
12235         * modules/ceil-tests: New file.
12236         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
12237         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
12238
12239 2010-12-21  Bruno Haible  <bruno@clisp.org>
12240
12241         Tests for module 'floor'.
12242         * modules/floor-tests: New file.
12243         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
12244         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
12245
12246 2010-12-21  Bruno Haible  <bruno@clisp.org>
12247
12248         math: Fix indentation.
12249         * lib/math.in.h (floorf): Fix indentation.
12250
12251 2010-12-21  Bruno Haible  <bruno@clisp.org>
12252
12253         Fix cross-compilation guesses on Solaris.
12254         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
12255         not match "solaris2.10".
12256         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
12257         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
12258         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
12259
12260 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
12261
12262         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
12263         This fixes a problem observed with the latest coreutils snapshot
12264         that caused a test to fail on Solaris 8.  src/csplit.c's call
12265         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
12266         earlier, instead of returning the number of bytes that would have
12267         been generated; this causes csplit to incorrectly report memory
12268         exhaustion.
12269         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
12270         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
12271         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
12272         comments to match.
12273         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
12274         Fix typo in matching older versions of Solaris: "solaris2.10"
12275         is matched by the shell pattern "solaris2.[0-9]*".  This matters
12276         only for guessing while cross-compiling.
12277         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
12278
12279 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
12280
12281         ftoastr: fix comment again
12282         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
12283         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
12284         Also, simplify example a bit by using flags = 0.
12285
12286 2010-12-20  Bruno Haible  <bruno@clisp.org>
12287
12288         round*, trunc*: Update documentation regarding glibc.
12289         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
12290         * doc/posix-functions/round.texi: Likewise.
12291         * doc/posix-functions/roundl.texi: Likewise.
12292         * doc/posix-functions/truncf.texi: Likewise.
12293         * doc/posix-functions/trunc.texi: Likewise.
12294         * doc/posix-functions/truncl.texi: Likewise.
12295
12296 2010-12-20  Bruno Haible  <bruno@clisp.org>
12297
12298         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
12299         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
12300         * doc/posix-functions/round.texi: Likewise.
12301         * doc/posix-functions/roundl.texi: Likewise.
12302
12303 2010-12-20  Bruno Haible  <bruno@clisp.org>
12304
12305         ttyname_r: Add missing declaration on HP-UX 11.
12306         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
12307         HAVE_TTYNAME_R.
12308         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
12309         declared. Set HAVE_TTYNAME_R always.
12310         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12311         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
12312         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
12313         HAVE_TTYNAME_R.
12314         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
12315
12316 2010-12-20  Bruno Haible  <bruno@clisp.org>
12317
12318         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
12319         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
12320         * doc/posix-functions/getlogin_r.texi: Likewise.
12321         * tests/test-getlogin.c: Include <errno.h>.
12322         (main): Avoid test failure on HP-UX 11.11.
12323         * tests/test-getlogin_r.c (main): Likewise.
12324
12325 2010-12-20  Bruno Haible  <bruno@clisp.org>
12326
12327         getlogin_r: Add missing declaration on HP-UX 11.
12328         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
12329         declared also when it exists as a function.
12330         * doc/posix-functions/getlogin_r.texi: Document this workaround.
12331
12332 2010-12-20  Bruno Haible  <bruno@clisp.org>
12333
12334         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
12335         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
12336         through wcrtomb.
12337
12338 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
12339
12340         ftoastr: fix comment
12341         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
12342         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
12343
12344 2010-12-19  Bruno Haible  <bruno@clisp.org>
12345
12346         isnan: Ensure it is a macro.
12347         * lib/math.in.h (isnan): Define as a macro if not already a macro.
12348         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
12349         Solaris.
12350
12351 2010-12-19  Bruno Haible  <bruno@clisp.org>
12352
12353         ldexpl test: Fix link error on OSF/1 5.1.
12354         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
12355
12356 2010-12-19  Bruno Haible  <bruno@clisp.org>
12357
12358         wctype: Make it work in C++ mode on OSF/1 5.1.
12359         * lib/wctype.in.h (iswblank): Declare but not define here.
12360         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
12361         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
12362         * modules/wctype (Files): Add lib/iswblank.c.
12363
12364 2010-12-19  Bruno Haible  <bruno@clisp.org>
12365
12366         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
12367         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
12368         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
12369
12370 2010-12-19  Bruno Haible  <bruno@clisp.org>
12371
12372         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
12373         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
12374         _POSIX_PII_SOCKET.
12375         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
12376         * doc/posix-functions/recvfrom.texi: Likewise.
12377         * doc/posix-functions/send.texi: Likewise.
12378         * doc/posix-functions/sendto.texi: Likewise.
12379
12380 2010-12-19  Bruno Haible  <bruno@clisp.org>
12381
12382         tcgetsid: Add missing declaration on OSF/1 5.1.
12383         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
12384         HAVE_TCGETSID.
12385         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
12386         Don't set HAVE_TCGETSID.
12387         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
12388         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
12389         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
12390         HAVE_TCGETSID.
12391         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
12392
12393 2010-12-19  Bruno Haible  <bruno@clisp.org>
12394
12395         stdio: Fix problem with popen() declaration on OSF/1 5.1.
12396         * lib/stdio.in.h: During the include_next statement, let recursive
12397         includes of this file include only the system header file.
12398
12399 2010-12-19  Bruno Haible  <bruno@clisp.org>
12400
12401         iconv_open: Fix regression from 2010-12-04.
12402         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
12403         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
12404
12405 2010-12-19  Bruno Haible  <bruno@clisp.org>
12406
12407         stdbool test: Avoid a gcc warning.
12408         * tests/test-stdbool.c (main): Fail if e1 is false.
12409         Reported by Jim Meyering.
12410
12411 2010-12-19  Jim Meyering  <meyering@redhat.com>
12412
12413         setenv: restore to working order
12414         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
12415         mistakenly removed.
12416         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
12417         HAVE_SETENV.
12418         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
12419         HAVE_SETENV.
12420
12421 2010-12-19  Bruno Haible  <bruno@clisp.org>
12422
12423         Document some different function declarations on OSF/1 5.1.
12424         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
12425         * doc/posix-functions/inet_ntop.texi: Likewise.
12426         * doc/posix-functions/gethostname.texi: Likewise.
12427         * lib/unistd.in.h (gethostname): Update comment.
12428
12429 2010-12-19  Bruno Haible  <bruno@clisp.org>
12430
12431         doc: Mention vasprintf-posix module.
12432         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
12433         the 'vasprintf-posix' module.
12434         * doc/glibc-functions/vasprintf.texi: Likewise.
12435
12436 2010-12-19  Bruno Haible  <bruno@clisp.org>
12437
12438         unsetenv: Add missing declaration on OSF/1 5.1.
12439         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
12440         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
12441         Don't set HAVE_UNSETENV. In the test program, set _BSD.
12442         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
12443         not HAVE_UNSETENV.
12444         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
12445         HAVE_UNSETENV.
12446         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
12447
12448 2010-12-19  Bruno Haible  <bruno@clisp.org>
12449
12450         setenv: Add missing declaration on OSF/1 5.1.
12451         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
12452         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
12453         declared. Don't set HAVE_SETENV.
12454         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
12455         not HAVE_SETENV.
12456         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
12457         HAVE_SETENV.
12458         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
12459
12460 2010-12-19  Bruno Haible  <bruno@clisp.org>
12461
12462         nl_langinfo tests: Avoid gcc warning.
12463         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
12464
12465 2010-12-19  Bruno Haible  <bruno@clisp.org>
12466
12467         mknod: Avoid error in C++ mode on OSF/1 with GCC.
12468         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
12469         _GL_CXXALIAS_SYS.
12470
12471 2010-12-19  Bruno Haible  <bruno@clisp.org>
12472
12473         stdbool: Relax test.
12474         * tests/test-stdbool.c (e): Don't require that casts from a variable's
12475         address to 'bool' work in static initializer, for compilers other than
12476         GCC.
12477
12478 2010-12-19  Bruno Haible  <bruno@clisp.org>
12479
12480         ftello: Add missing declaration on OSF/1 5.1.
12481         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
12482         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
12483         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
12484         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
12485         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
12486
12487 2010-12-19  Bruno Haible  <bruno@clisp.org>
12488
12489         fseeko: Add missing declaration on OSF/1 5.1.
12490         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
12491         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
12492         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
12493         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
12494         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
12495
12496 2010-12-19  Bruno Haible  <bruno@clisp.org>
12497
12498         fchdir: Add missing declaration on OSF/1 5.1.
12499         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
12500         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
12501         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
12502         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
12503         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
12504
12505 2010-12-19  Bruno Haible  <bruno@clisp.org>
12506
12507         relocatable-prog-wrapper: Separate from relocatable-prog.
12508         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
12509         uninstall-relocwrapper rule here.
12510         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
12511         Reported by Ian Beckwith <ianb@erislabs.net>.
12512
12513 2010-12-19  Bruno Haible  <bruno@clisp.org>
12514
12515         unistr/u8-mbsnlen: Add missing dependency.
12516         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
12517         Reported by Ian Beckwith <ianb@erislabs.net>.
12518
12519 2010-12-19  Bruno Haible  <bruno@clisp.org>
12520
12521         iconv: Make it possible again to use this module without 'iconv-h'.
12522         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
12523         if it is not defined.
12524         Reported by Ian Beckwith <ianb@erislabs.net>.
12525
12526 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
12527
12528         acl: port to Solaris 8 when copying from tmpfs to ufs
12529         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
12530         error number.  Problem observed on Solaris 8 with latest
12531         coreutils, with "mv A B", where A is on a tmpfs file system and B
12532         is on a ufs file system.  This caused coreutils' mv/part-symlink
12533         test to fail.
12534
12535         tests: set fail=0 at start
12536         * tests/init.sh (setup_): Move fail=0 initialization here ...
12537         (mktempd_): ... from here, so that tests can rely on fail being
12538         set to 0 initially.  This fixes a problem in coreutils; see:
12539         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
12540
12541 2010-12-18  Bruno Haible  <bruno@clisp.org>
12542
12543         memmem-simple: Stylistic changes.
12544         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
12545         Fix preprocessor directive indentation.
12546
12547 2010-12-15  Pádraig Brady <P@draigBrady.com>
12548
12549         memmem, memmem-simple: reorganize and expand empty needle check
12550         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
12551         functional checks to memmem-simple so that one has a fully functional
12552         memmem by using just this module.
12553         Restrict the performance only check to the memmem module.
12554         Also expand the empty needle check to ensure the correct
12555         pointer is returned, not just a non NULL pointer.
12556         * doc/glibc-functions/memmem.texi: Rearrange the portability
12557         documentation to correlate with the rearranged checks.
12558         Clarify exactly how the memmem and memmem-simple modules
12559         relate to each other.
12560
12561 2010-12-15  Pádraig Brady <P@draigBrady.com>
12562             Bruno Haible  <bruno@clisp.org>
12563
12564         Improve cross-compilation guesses for uClibc.
12565         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
12566         that uClibc does not have the glibc bug.
12567         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
12568         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
12569
12570 2010-12-14  Eric Blake  <eblake@redhat.com>
12571
12572         configmake: provide fallbacks for oldest supported autotools
12573         * m4/configmake.m4: New file.
12574         * modules/configmake (Files): Ship it.
12575         (configure.ac): Use it to guarantee fallbacks.
12576
12577 2010-12-13  Pádraig Brady <P@draigBrady.com>
12578
12579         read-file: Improve handling of large files
12580         * lib/read-file.c (fread_file): Minimize realloc()s
12581         for regular files, and better manage sizes around SIZE_MAX.
12582
12583 2010-12-13  Eric Blake  <eblake@redhat.com>
12584
12585         cloexec, fcntl: relax license
12586         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
12587         consent from all contributors.
12588         * modules/fcntl (License): Likewise.
12589
12590 2010-12-10  Bruno Haible  <bruno@clisp.org>
12591
12592         Tests for module 'pipe-posix'.
12593         * modules/pipe-posix-tests: New file.
12594         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
12595
12596 2010-12-10  Bruno Haible  <bruno@clisp.org>
12597
12598         pipe-posix: Make it work in C++ mode.
12599         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
12600         (pipe): Use common idiom, not a macro definition.
12601         * lib/pipe.c: New file.
12602         * m4/pipe.m4: New file.
12603         * modules/pipe-posix (Description): Enhance.
12604         (Files): Add lib/pipe.c, m4/pipe.m4.
12605         (configure.ac): Invoke gl_FUNC_PIPE.
12606         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
12607         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
12608         * tests/test-unistd-c++.cc: Check the signature of pipe.
12609
12610 2010-12-10  Bruno Haible  <bruno@clisp.org>
12611
12612         Rename module 'pipe' to 'spawn-pipe'.
12613         * modules/spawn-pipe: New file, renamed from modules/pipe.
12614         (Files, configure.ac, Makefile.am): Update.
12615         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
12616         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
12617         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
12618         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
12619         "spawn-pipe.h" instead of "pipe.h".
12620         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
12621         to gl_SPAWN_PIPE.
12622         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
12623         (Files, Makefile.am): Update.
12624         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
12625         Update.
12626         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
12627         Include "spawn-pipe.h" instead of "pipe.h".
12628         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
12629         * lib/javacomp.c: Likewise.
12630         * lib/javaversion.c: Likewise.
12631         * lib/pipe-filter-gi.c: Likewise.
12632         * lib/pipe-filter-ii.c: Likewise.
12633         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
12634         * modules/javacomp (Depends-on): Likewise.
12635         * modules/javaversion (Depends-on): Likewise.
12636         * modules/pipe-filter-gi (Depends-on): Likewise.
12637         * modules/pipe-filter-ii (Depends-on): Likewise.
12638         * MODULES.html.sh (Executing programs): Update.
12639         * NEWS: Mention the change.
12640
12641 2010-12-10  Eric Blake  <eblake@redhat.com>
12642
12643         pipe-posix: new module
12644         * modules/pipe-posix: New file.
12645         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
12646         (gl_UNISTD_H): Check for declaration.
12647         * modules/unistd (Makefile.am): Substitute it.
12648         * lib/unistd.in.h (pipe): Provide it for mingw.
12649         * doc/posix-functions/pipe.texi (pipe): Update documentation.
12650         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
12651
12652 2010-12-07  Bruno Haible  <bruno@clisp.org>
12653
12654         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
12655         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
12656         u8_strcmp_gnu.
12657         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
12658
12659 2010-12-06  Bruno Haible  <bruno@clisp.org>
12660
12661         Update internal documentation.
12662         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
12663
12664 2010-12-04  Bruno Haible  <bruno@clisp.org>
12665
12666         Put more information about failed tests into the test return codes.
12667         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
12668         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
12669         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
12670         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
12671         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
12672         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
12673         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
12674         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
12675         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
12676         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
12677         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
12678         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
12679         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
12680         * m4/stdint.m4 (gl_STDINT_H): Likewise.
12681         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
12682         returns a bit mask.
12683         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
12684         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
12685         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
12686         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
12687         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
12688         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
12689         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
12690         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
12691         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
12692         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
12693         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
12694         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
12695         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
12696         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
12697         * m4/link.m4 (gl_FUNC_LINK): Likewise.
12698         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
12699         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
12700         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
12701         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
12702         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
12703         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
12704         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
12705         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
12706         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
12707         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
12708         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
12709         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
12710         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
12711         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
12712         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
12713         gl_PRINTF_PRECISION): Likewise.
12714         * m4/regex.m4 (gl_REGEX): Likewise.
12715         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
12716         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
12717         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
12718         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
12719         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
12720         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
12721         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
12722         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
12723         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
12724         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
12725         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
12726         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
12727         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
12728         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
12729         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
12730         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
12731         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
12732         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
12733         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
12734         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
12735         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
12736         enumerated value.
12737         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
12738
12739 2010-12-04  Bruno Haible  <bruno@clisp.org>
12740
12741         Update for Solaris 11 2010-11.
12742         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
12743         Express, released in November 2010.
12744
12745 2010-12-04  Bruno Haible  <bruno@clisp.org>
12746
12747         nproc: Relax license.
12748         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
12749         and Paul Eggert.
12750         Requested by Ludovic Courtès <ludo@gnu.org>.
12751
12752 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
12753
12754         utimecmp: fine-grained src to nearby coarse-grained dest
12755
12756         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
12757         and the source is on a file system with higher-resolution time
12758         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
12759         not work, and the time stamps are close together, the algorithm to
12760         determine the exact resolution from the read-back mtime was buggy:
12761         it had a "!=" where it should have had an "==".  This bug has been
12762         in the code ever since it was introduced to gnulib.
12763         Problem reported by Dan Jacobson in
12764         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
12765
12766 2010-11-30  Bruno Haible  <bruno@clisp.org>
12767
12768         strerror_r-posix: Fix autoconf test.
12769         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
12770
12771 2010-11-28  Bruno Haible  <bruno@clisp.org>
12772             Paul Eggert  <eggert@cs.ucla.edu>
12773
12774         Tests for module 'getdomainname'.
12775         * modules/getdomainname-tests: New file.
12776         * tests/test-getdomainname.c: New file, based on
12777         tests/test-gethostname.c.
12778
12779 2010-11-28  Bruno Haible  <bruno@clisp.org>
12780             Paul Eggert  <eggert@cs.ucla.edu>
12781
12782         getdomainname: Use the system function when possible.
12783         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
12784         (getdomainname): Replace if needed. Provide the declaration if it is
12785         missing. Don't use _GL_CXXALIAS_SYS_CAST.
12786         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
12787         (getdomainname): When the system has getdomainname, call the system
12788         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
12789         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
12790         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
12791         found in libnsl. Look for the declaration also in <netdb.h>. Replace
12792         the function if its second argument is of type 'int' or if it is found
12793         in libnsl.
12794         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
12795         <sys/systeminfo.h> and sysinfo().
12796         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
12797         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12798         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
12799         HAVE_GETDOMAINNAME.
12800         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
12801         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
12802         * doc/glibc-functions/getdomainname.texi: Document the problems with
12803         the getdomainname declaration.
12804
12805 2010-11-28  Bruno Haible  <bruno@clisp.org>
12806
12807         sys_socket: Ensure ss_family field on AIX.
12808         * lib/sys_socket.in.h (ss_family): New macro definition.
12809         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
12810         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
12811         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
12812         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
12813         * modules/sys_socket (Makefile.am): Substitute
12814         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
12815         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
12816
12817 2010-11-27  Bruno Haible  <bruno@clisp.org>
12818
12819         readline: Improve configure output.
12820         * m4/readline.m4 (gl_FUNC_READLINE): Make the
12821         "checking for readline..." result understandable.
12822
12823 2010-11-27  Bruno Haible  <bruno@clisp.org>
12824
12825         *printf-posix: Detect a bug on Solaris 10/x86.
12826         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
12827         for floating-point output.
12828         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
12829         directive.
12830         * tests/test-snprintf-posix.h (test_function): Likewise.
12831         * tests/test-sprintf-posix.h (test_function): Likewise.
12832         * tests/test-vasprintf-posix.c (test_function): Likewise.
12833         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
12834         * doc/posix-functions/printf.texi: Likewise.
12835         * doc/posix-functions/snprintf.texi: Likewise.
12836         * doc/posix-functions/sprintf.texi: Likewise.
12837         * doc/posix-functions/vfprintf.texi: Likewise.
12838         * doc/posix-functions/vprintf.texi: Likewise.
12839         * doc/posix-functions/vsnprintf.texi: Likewise.
12840         * doc/posix-functions/vsprintf.texi: Likewise.
12841         * doc/glibc-functions/obstack_printf.texi: Likewise.
12842         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
12843
12844 2010-11-27  Bruno Haible  <bruno@clisp.org>
12845
12846         Fix link error when module libunistring-optional is in use.
12847         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
12848         * modules/striconveha-tests (Makefile.am): Likewise.
12849
12850 2010-11-27  Bruno Haible  <bruno@clisp.org>
12851
12852         regex: Mention link dependencies.
12853         * modules/regex (Link): New section.
12854         * modules/rpmatch (Link): Likewise.
12855         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
12856
12857 2010-11-27  Bruno Haible  <bruno@clisp.org>
12858
12859         ftoastr: Fix compilation error on Solaris.
12860         * lib/ftoastr.c: Include <config.h>.
12861
12862 2010-11-27  Bruno Haible  <bruno@clisp.org>
12863
12864         getloadavg: Update documentation.
12865         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
12866
12867 2010-11-27  Bruno Haible  <bruno@clisp.org>
12868
12869         sys_socket: Fix test whether the functions are declared.
12870         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
12871         not <sys/select.h>.
12872
12873 2010-11-27  Bruno Haible  <bruno@clisp.org>
12874
12875         getpass: Make sure to get system declaration on some platforms.
12876         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
12877         gl_USE_SYSTEM_EXTENSIONS.
12878         * modules/getpass (Depends-on): Add extensions.
12879
12880 2010-11-26  Bruno Haible  <bruno@clisp.org>
12881
12882         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
12883         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
12884         'iconv' module is present.
12885         (ICONV_CONST): New macro.
12886         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
12887         ICONV_CONST.
12888         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
12889         set ICONV_CONST.
12890         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
12891         here.
12892         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
12893         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
12894         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
12895         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
12896         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
12897         present.
12898
12899 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
12900
12901         ftoastr: comment fix
12902         * lib/ftoastr.c: "little" -> "little or no" in comment
12903
12904 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
12905
12906         stdint: port to GCC 4.3 + OSX + Octave
12907         On this platform, stdint.h is buggy and defines int64_t to long
12908         long int.  The replacement defined it to long int, causing
12909         problems with C++ style name mangling.  Instead, trust the system
12910         definition if INT64_MAX is defined, and likewise for the unsigned
12911         variant.   Problem reported by Jarno Rajahalme in
12912         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
12913         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
12914         and don't mess with int64_t and INT64_MAX in this case.
12915         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
12916
12917 2010-11-24  Bruno Haible  <bruno@clisp.org>
12918
12919         doc: Corrections regarding MacOS X 10.4 and 10.5.
12920         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
12921         MacOS X.
12922         Reported by Simon Josefsson.
12923
12924 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
12925
12926         Uninstall ".bin" files installed by relocwrapper.
12927         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
12928         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
12929         unless it is already there.
12930
12931 2010-11-21  Bruno Haible  <bruno@clisp.org>
12932
12933         Update for NetBSD 5.0.
12934         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
12935         NetBSD; the test fails on NetBSD 5.0.
12936         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
12937         about NetBSD.
12938
12939 2010-11-21  Bruno Haible  <bruno@clisp.org>
12940
12941         Update for HP-UX 11.23 and HP-UX 11.31.
12942         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
12943         HP-UX.
12944
12945 2010-11-21  Bruno Haible  <bruno@clisp.org>
12946
12947         Update for MacOS X 10.5.
12948         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
12949         MacOS X; the test fails on MacOS X 10.5.8.
12950         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
12951         about MacOS X.
12952
12953 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
12954
12955         bootstrap: add bootstrap_sync option.
12956         See discussion at
12957         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
12958         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
12959         * build-aux/bootstrap: Accept --bootstrap-sync to update
12960         bootstrap if it is not identical to the local gnulib's
12961         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
12962         enable this by default.  Accept --no-bootstrap-sync to disable
12963         it.
12964
12965 2010-11-20  Bruno Haible  <bruno@clisp.org>
12966
12967         Ensure that <features.h> is included before __GLIBC__ is tested.
12968         * lib/printf-parse.h: Include <features.h>.
12969         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
12970         Reported by Mike Frysinger <vapier@gentoo.org>.
12971
12972         Ensure that <features.h> is included before __GLIBC__ is tested.
12973         * lib/wchar.in.h: Include <features.h>.
12974         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
12975         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
12976         Reported by Mike Frysinger <vapier@gentoo.org>.
12977
12978         Ensure that <features.h> is included before __GLIBC__ is tested.
12979         * lib/arpa_inet.in.h: Include <features.h>.
12980         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
12981         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
12982         Reported by Mike Frysinger <vapier@gentoo.org>.
12983
12984         Ensure that <features.h> is included before __GLIBC__ is tested.
12985         * build-aux/link-warning.h: Include <features.h>.
12986         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
12987         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
12988         Reported by Mike Frysinger <vapier@gentoo.org>.
12989
12990         Ensure that <features.h> is included before __GLIBC__ is tested.
12991         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
12992         Reported by Mike Frysinger <vapier@gentoo.org>.
12993
12994 2010-11-20  Bruno Haible  <bruno@clisp.org>
12995
12996         memmem: Fix autoconf test.
12997         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
12998
12999 2010-11-20  Bruno Haible  <bruno@clisp.org>
13000
13001         Port to uClibc.
13002         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
13003         * lib/fcntl.in.h: Likewise.
13004         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
13005         * lib/mbrtowc.c (mbrtowc): Likewise.
13006         * lib/relocatable.c (find_shared_library_fullname): Likewise.
13007         * lib/strerror_r.c: Likewise.
13008         * lib/unistr/u8-strnlen.c: Likewise.
13009         * lib/vasnprintf.c (decimal_point_char): Likewise.
13010         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
13011         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
13012         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
13013         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
13014         * tests/test-sigaction.c (handler, main): Likewise.
13015         * lib/freading.h: Treat uClibc like a non-glibc platform.
13016         * lib/freading.c: Likewise.
13017         * lib/gettext.h: Likewise.
13018         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
13019         Likewise.
13020         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
13021         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
13022         * lib/propername.c (proper_name_utf8): Likewise.
13023         * lib/spawn.in.h: Likewise.
13024         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
13025         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
13026         mem_cd_iconveh_internal): Likewise.
13027         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
13028         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
13029         strstr, strcasestr): Likewise.
13030         * lib/unicodeio.c (unicode_to_mb): Likewise.
13031         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
13032         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
13033         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
13034         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
13035         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
13036         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
13037         * lib/unistr/u8-stpncpy.c: Likewise.
13038         * lib/vasnprintf.c (VASNPRINTF): Likewise.
13039         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
13040         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
13041         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
13042         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
13043         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
13044         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
13045         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
13046         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
13047         Likewise.
13048         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
13049         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
13050         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
13051         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
13052         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
13053         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
13054         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
13055         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
13056         * tests/test-getopt.h (OPTIND_MIN): Likewise.
13057         * tests/test-striconveha.c (main): Likewise.
13058         * tests/test-vasnprintf-posix.c (test_function): Likewise.
13059         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
13060         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
13061         * doc/posix-functions/getline.texi: Likewise.
13062         Reported by Mike Frysinger <vapier@gentoo.org>.
13063
13064 2010-11-20  Bruno Haible  <bruno@clisp.org>
13065
13066         nproc: Fix condition.
13067         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
13068         HAVE_PTHREAD_AFFINITY_NP.
13069
13070 2010-11-20  Bruno Haible  <bruno@clisp.org>
13071
13072         Fix a comment.
13073         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
13074
13075 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
13076
13077         ftoastr: don't assume snprintf
13078         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
13079         Implement a subset of snprintf here, by using sprintf safely.
13080         * modules/ftoastr (Depends-on): Remove snprintf.
13081
13082 2010-11-19  Jim Meyering  <meyering@redhat.com>
13083
13084         test-rename.h: fix compilation failure
13085         * tests/test-rename.h (test_rename): Add omitted "}".
13086
13087 2010-11-17  Jim Meyering  <meyering@redhat.com>
13088
13089         maint.mk: add a URL discussing the no-@acronym policy
13090         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
13091
13092 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
13093
13094         ftoastr: depend on snprintf, improve comments
13095         * lib/ftoastr.c: Also mention Loitsch's draft.
13096         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
13097         needed in the current implementation, but it might simplify
13098         speeding up the code later.
13099         * modules/ftoastr: Depend on snprintf; this improves portability.
13100         Suggested by Bruno Haible in the same email.
13101
13102         ftoastr: port to hosts lacking strtof and strtold
13103         Problem reported by Bruno Haible in
13104         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
13105         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
13106         environment and strtold (and presumably strtof) are not available.
13107         * modules/ftoastr (Files): Add m4/c-strtod.m4.
13108         (configure.ac): Require gl_C99_STRTOLD.
13109
13110 2010-11-18  Bruno Haible  <bruno@clisp.org>
13111
13112         c-strtold: Avoid link error on AIX 7.
13113         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
13114         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
13115         (gl_C_STRTOLD): Test whether strtold_l exists.
13116         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13117
13118 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
13119
13120         intprops: new macro INT_BITS_STRLEN_BOUND
13121         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
13122         ftoastr.h.  This exposes an internal of intprops.h that was formerly
13123         not exposed.  Also, it uses a slightly tighter bound than before;
13124         though this makes no practical difference, we might as well be as
13125         tight as we easily can.
13126
13127         ftoastr: new module, for lossless conversion of floats to short strings
13128         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
13129         * modules/ftoastr: New files.
13130
13131 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
13132
13133         bootstrap: port to Solaris sed
13134         * build-aux/bootstrap (get_version): Port to Solaris sed.
13135         See Ralf Wildenhues's note in
13136         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
13137
13138 2010-11-14  Jim Meyering  <meyering@redhat.com>
13139
13140         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
13141         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
13142         and move definition closer to sole use.
13143
13144 2010-11-13  Jim Meyering  <meyering@redhat.com>
13145
13146         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
13147         Now we require at least autoconf-2.59, which means the work-around
13148         is no longer needed.
13149         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
13150         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
13151         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
13152         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
13153         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
13154
13155 2010-11-13  Bruno Haible  <bruno@clisp.org>
13156
13157         rename, renameat: Avoid test failures at NFS mounted locations.
13158         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
13159         functions.
13160         (test_rename): Use assert_nonexistent.
13161         * tests/test-rename.c: Include <dirent.h>.
13162         * tests/test-renameat.c: Likewise.
13163         Reported by Gary V. Vaughan <gary@gnu.org>.
13164
13165         rename, renameat: Document Linux bug with NFS
13166         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
13167         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
13168         * doc/posix-functions/renameat.texi: Likewise.
13169         Suggested by Eric Blake.
13170
13171 2010-11-13  Bruno Haible  <bruno@clisp.org>
13172
13173         rename test: Add comments.
13174         * tests/test-rename.h (test_rename): Add structure and comments.
13175
13176 2010-11-13  Eric Blake  <eblake@redhat.com>
13177
13178         maintainer-makefile: cover a few more files
13179         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
13180         scripts generated within C files, for libvirt.
13181
13182 2010-11-13  Bruno Haible  <bruno@clisp.org>
13183
13184         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
13185         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
13186         character, return the number of bytes that belong together, not always
13187         1.
13188         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
13189         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
13190         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
13191         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
13192         number of bytes of an invalid character.
13193         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
13194         (main): Invoke it.
13195         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
13196         results.
13197         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
13198         malformed byte sequences.
13199         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
13200         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
13201         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
13202         Reported by Ben Pfaff and Paolo Bonzini.
13203
13204 2010-11-13  Bruno Haible  <bruno@clisp.org>
13205
13206         openat: Work around glibc bug with fchownat() and empty file names.
13207         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
13208         (gl_FUNC_FCHOWNAT): Invoke it.
13209         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
13210         * doc/posix-functions/fchownat.texi: Document the glibc bug.
13211         Reported by Gary V. Vaughan <gary@gnu.org>.
13212
13213 2010-11-13  Bruno Haible  <bruno@clisp.org>
13214
13215         openat: Ensure autoconf macro ordering.
13216         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
13217         gl_USE_SYSTEM_EXTENSIONS.
13218         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
13219
13220 2010-11-13  Bruno Haible  <bruno@clisp.org>
13221
13222         Update comments.
13223         * lib/unistr/u8-check.c: Update file name in comments.
13224         * lib/unistr/u8-mblen.c: Likewise.
13225         * lib/unistr/u8-prev.c: Likewise.
13226         * lib/unistr/u8-strmblen.c: Likewise.
13227         * lib/unistr/u8-strmbtouc.c: Likewise.
13228
13229 2010-11-13  Jim Meyering  <meyering@redhat.com>
13230
13231         tests: avoid test failure on Solaris 10 due to lack of PATH export
13232         * tests/test-update-copyright.sh: Don't forget to export PATH.
13233
13234         init.sh: ensure that IFS is defined, just in case...
13235         * tests/init.sh (setup_): Ensure that IFS is defined,
13236         so that saving and restoring it works as expected.  This
13237         appears to be useful at least for an old version of dash
13238         from a long time ago (RH 6).  See here for details:
13239         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
13240
13241         maint.mk: tighten "test a == b" check
13242         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
13243         test to files that contain something like #!/bin/sh.
13244         Without this, coreutils would get two false positives in
13245         the comments of C source files.
13246
13247 2010-11-12  Eric Blake  <eblake@redhat.com>
13248
13249         bootstrap: fix typo in previous attempt
13250         * build-aux/bootstrap (buildreq): Correct the grouping.
13251         Reported by Paul Eggert.
13252
13253         maintainer-makefile: prohibit test x == x
13254         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
13255         Based on a report by Matthias Bolte.
13256
13257         bootstrap: allow FreeBSD gzip
13258         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
13259         which has no '.' and goes to stderr.
13260         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
13261         Reported by Matthias Bolte.
13262
13263         maintainer-makefile: check for i18n setup
13264         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
13265         will likely work.
13266
13267 2010-11-12  Bruno Haible  <bruno@clisp.org>
13268
13269         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
13270         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
13271         * lib/nanosleep.c (nanosleep): Likewise.
13272
13273 2010-11-11  Bruno Haible  <bruno@clisp.org>
13274
13275         fcntl-h: Fix for use of C++ on glibc systems.
13276         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
13277         also on glibc systems in C++ mode.
13278         Reported by Gary V. Vaughan <gary@gnu.org>.
13279
13280 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
13281
13282         mknod: avoid false failure with dash
13283         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
13284
13285 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
13286
13287         unlink: Fix "is it should" typo in diagnostic.
13288         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
13289         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
13290
13291 2010-11-11  Bruno Haible  <bruno@clisp.org>
13292
13293         Tests for module 'strerror_r-posix'.
13294         * modules/strerror_r-posix-tests: New file.
13295         * tests/test-strerror_r.c: New file.
13296         * tests/test-string-c++.cc: Check the signature of strerror_r.
13297
13298         New module 'strerror_r-posix'.
13299         * lib/string.in.h (strerror_r): New declaration.
13300         * lib/strerror_r.c: New file.
13301         * m4/strerror_r.m4: New file.
13302         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
13303         of strerror_r.
13304         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
13305         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
13306         * modules/strerror_r-posix: New file.
13307         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
13308         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
13309         * doc/posix-functions/strerror_r.texi: Mention the new module and the
13310         portability problems.
13311
13312 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
13313
13314         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
13315         line is also considered for output. Quoted function name in shell
13316         command, so temporary files for functions like MyClass::operator()
13317         are removed correctly without errors.
13318
13319 2010-11-09  Bruno Haible  <bruno@clisp.org>
13320
13321         * doc/posix-functions/strerror.texi: List more failing platforms.
13322
13323         * doc/posix-functions/strerror.texi: Add a comment.
13324
13325 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
13326
13327         fdopendir: fix bug on MacOS X when low on file descriptors
13328
13329         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
13330         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
13331         All callers changed.
13332         (fdopendir): Invoke save_cwd at the top level, not after using
13333         multiple dup() calls to use up file descriptors.  Then retry
13334         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
13335         less than the maximum number of open file descriptors, because
13336         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
13337         on Mac OS X 10.6.4 for tar 1.24
13338         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
13339         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
13340         and for tar 1.25
13341         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
13342
13343 2010-11-07  Bruno Haible  <bruno@clisp.org>
13344
13345         vasnprintf: Support I flag on glibc systems.
13346         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
13347         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
13348         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
13349         snprintf function.
13350         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
13351         glibc systems.
13352         * tests/test-vasnprintf-posix3.c: New file.
13353         * modules/vasnprintf-posix-tests (Files): Add it.
13354         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
13355
13356 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
13357
13358         [html] Fix copy/paste bug: Use unique name for compiler warnings.
13359         * MODULES.html.sh: For compiler warnings, use name
13360         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
13361
13362 2010-11-05  Eric Blake  <eblake@redhat.com>
13363
13364         ceil, floor: avoid spurious failure with icc
13365         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
13366         [denormals-as-zero] when optimizing without -mieee-fp option.
13367         * tests/test-floorf2.c (floorf_reference): Likewise.
13368         * tests/test-ceilf1.c (dummy): New function.
13369         (main): Use it to outsmart icc's optimization.
13370         * tests/test-floorf1.c (dummy, main): Likewise.
13371
13372         tests: require working signbit
13373         * modules/ceilf-tests (Depends-on): Add signbit.
13374         * modules/ceill-tests (Depends-on): Likewise.
13375         * modules/floorf-tests (Depends-on): Likewise.
13376         * modules/floorl-tests (Depends-on): Likewise.
13377         * modules/round-tests (Depends-on): Likewise.
13378         * modules/roundf-tests (Depends-on): Likewise.
13379         * modules/roundl-tests (Depends-on): Likewise.
13380         * modules/trunc-tests (Depends-on): Likewise.
13381         * modules/truncf-tests (Depends-on): Likewise.
13382         * modules/truncl-tests (Depends-on): Likewise.
13383
13384         strtod: work around icc bug
13385         * lib/strtod.c (minus_zero): Define to working value.
13386         (strtod): Use it to avoid icc bug.
13387
13388         copysign: enhance tests
13389         * modules/copysign-tests (Files): Add minus-zero.h.
13390         * tests/test-copysign.c (main): Also test zeros.
13391
13392 2010-11-04  Eric Blake  <eblake@redhat.com>
13393
13394         ceil, floor, round, trunc: enhance tests of -0
13395         * tests/test-ceilf1.c (main): Ensure correct sign of result.
13396         * tests/test-ceill.c (main): Likewise.
13397         * tests/test-floorf1.c (main): Likewise.
13398         * tests/test-floorl.c (main): Likewise.
13399         * tests/test-round1.c (main): Likewise.
13400         * tests/test-roundf1.c (main): Likewise.
13401         * tests/test-roundl.c (main): Likewise.
13402         * tests/test-trunc1.c (main): Likewise.
13403         * tests/test-truncf1.c (main): Likewise.
13404         * tests/test-truncl.c (main): Likewise.
13405
13406 2010-11-04  Eric Blake  <eblake@redhat.com>
13407
13408         frexp, tests: work around ICC bug with -zero
13409         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
13410         works with more compilers.
13411         * tests/minus-zero.h: New file.
13412         * modules/ceilf-tests (Files): Include it.
13413         * modules/ceill-tests (Files): Likewise.
13414         * modules/floorf-tests (Files): Likewise.
13415         * modules/floorl-tests (Files): Likewise.
13416         * modules/frexp-nolibm-tests (Files): Likewise.
13417         * modules/frexp-tests (Files): Likewise.
13418         * modules/frexpl-nolibm-tests (Files): Likewise.
13419         * modules/frexpl-tests (Files): Likewise.
13420         * modules/isnan-tests (Files): Likewise.
13421         * modules/isnand-nolibm-tests (Files): Likewise.
13422         * modules/isnand-tests (Files): Likewise.
13423         * modules/isnanf-nolibm-tests (Files): Likewise.
13424         * modules/isnanf-tests (Files): Likewise.
13425         * modules/isnanl-nolibm-tests (Files): Likewise.
13426         * modules/isnanl-tests (Files): Likewise.
13427         * modules/round-tests (Files): Likewise.
13428         * modules/roundf-tests (Files): Likewise.
13429         * modules/roundl-tests (Files): Likewise.
13430         * modules/ldexpl-tests (Files): Likewise.
13431         * modules/signbit-tests (Files): Likewise.
13432         * modules/snprintf-posix-tests (Files): Likewise.
13433         * modules/sprintf-posix-tests (Files): Likewise.
13434         * modules/strtod-tests (Files): Likewise.
13435         * modules/trunc-tests (Files): Likewise.
13436         * modules/truncf-tests (Files): Likewise.
13437         * modules/truncl-tests (Files): Likewise.
13438         * modules/vsnprintf-posix-tests (Files): Likewise.
13439         * modules/vsprintf-posix-tests (Files): Likewise.
13440         * modules/vasnprintf-posix-tests (Files): Likewise.
13441         * modules/vasprintf-posix-tests (Files): Likewise.
13442         * tests/test-ceilf1.c (main): Use it.
13443         * tests/test-ceill.c (main): Likewise.
13444         * tests/test-floorf1.c (main): Likewise.
13445         * tests/test-floorl.c (main): Likewise.
13446         * tests/test-frexp.c (main): Likewise.
13447         * tests/test-frexpl.c (main): Likewise.
13448         * tests/test-isnan.c (main): Likewise.
13449         * tests/test-isnand.h (main): Likewise.
13450         * tests/test-isnanf.h (main): Likewise.
13451         * tests/test-isnanl.h (main): Likewise.
13452         * tests/test-ldexpl.c (main): Likewise.
13453         * tests/test-round.c (main): Likewise.
13454         * tests/test-roundf.c (main): Likewise.
13455         * tests/test-roundl.c (main): Likewise.
13456         * tests/test-signbit.c (test_signbitf, test_signbitd)
13457         (test_signbitl): Likewise.
13458         * tests/test-snprintf-posix.h (test_function): Likewise.
13459         * tests/test-sprintf-posix.h (test_function): Likewise.
13460         * tests/test-strtod.c (main): Likewise.
13461         * tests/test-trunc1.c (main): Likewise.
13462         * tests/test-truncf1.c (main): Likewise.
13463         * tests/test-truncl.c (main): Likewise.
13464
13465         isnanl: work around icc bug
13466         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
13467
13468 2010-11-03  Eric Blake  <eblake@redhat.com>
13469
13470         tests: fix compiler warnings
13471         * tests/test-getopt.h (test_getopt): Fix condition.
13472         * tests/test-getopt_long.h (test_getopt_long): Likewise.
13473         * tests/test-pipe2.c (main): Likewise.
13474         * tests/test-quotearg-simple.c (main): Avoid icc warning.
13475
13476         utimens: fix broken m4 test
13477         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
13478
13479 2010-10-28  Bruno Haible  <bruno@clisp.org>
13480
13481         posix_spawn*, getdtablesize: Relax license.
13482         * modules/posix_spawn (License): Change to LGPLv2+.
13483         * modules/posix_spawnp (License): Likewise.
13484         * modules/posix_spawn-internal (License): Likewise.
13485         * modules/posix_spawnattr_init (License): Likewise.
13486         * modules/posix_spawnattr_getflags (License): Likewise.
13487         * modules/posix_spawnattr_setflags (License): Likewise.
13488         * modules/posix_spawnattr_getpgroup (License): Likewise.
13489         * modules/posix_spawnattr_setpgroup (License): Likewise.
13490         * modules/posix_spawnattr_getschedparam (License): Likewise.
13491         * modules/posix_spawnattr_setschedparam (License): Likewise.
13492         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
13493         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
13494         * modules/posix_spawnattr_getsigdefault (License): Likewise.
13495         * modules/posix_spawnattr_setsigdefault (License): Likewise.
13496         * modules/posix_spawnattr_getsigmask (License): Likewise.
13497         * modules/posix_spawnattr_setsigmask (License): Likewise.
13498         * modules/posix_spawnattr_destroy (License): Likewise.
13499         * modules/posix_spawn_file_actions_init (License): Likewise.
13500         * modules/posix_spawn_file_actions_addclose (License): Likewise.
13501         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
13502         * modules/posix_spawn_file_actions_addopen (License): Likewise.
13503         * modules/posix_spawn_file_actions_destroy (License): Likewise.
13504         * modules/getdtablesize (License): Likewise.
13505         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
13506
13507 2010-10-26  Bruno Haible  <bruno@clisp.org>
13508
13509         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
13510         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
13511         Cygwin and mingw.
13512         Suggested by Eric Blake.
13513
13514 2010-10-26  Bruno Haible  <bruno@clisp.org>
13515
13516         stdio: Work around compilation error due to renameat() on Solaris 10.
13517         * lib/stdio.in.h: Include <unistd.h> on Solaris.
13518         * lib/renameat.c: Don't include <unistd.h> here.
13519         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
13520         Reported by Paul Eggert and Eric Blake.
13521
13522 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
13523
13524         renameat: port to Solaris 10, which declares renameat in unistd.h
13525
13526         * lib/renameat.c: Include unistd.h before stdio.h, because
13527         Solaris 10 declares renameat in unistd.h.  Problem encountered
13528         when building GNU tar 1.24 on Solaris 10.
13529
13530 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
13531
13532         fdopendir: fix C89 compilation
13533         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
13534         compilers.
13535
13536 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
13537
13538         inttostr: simplify by removing unnecessary redundancy
13539         * lib/anytostr.c: Don't include verify.h.
13540         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
13541         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
13542         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
13543         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
13544         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
13545         Likewise.
13546         * modules/inttostr (Depends-on): Remove 'verify'.
13547
13548 2010-10-23  Bruno Haible  <bruno@clisp.org>
13549
13550         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
13551         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
13552         Reported by Eric Blake.
13553
13554 2010-10-23  Bruno Haible  <bruno@clisp.org>
13555
13556         Tests: Fix LOCALE_JA on MirBSD 10.
13557         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
13558         to an UTF-8 locale.
13559         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
13560         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
13561         Reported by Eric Blake.
13562
13563 2010-10-21  Bruno Haible  <bruno@clisp.org>
13564
13565         nl_langinfo test: Avoid test failure on NetBSD 5.
13566         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
13567         Reported by Eric Blake.
13568
13569 2010-10-21  Eric Blake  <eblake@redhat.com>
13570
13571         c-stack: work around libsigsegv 2.8 bug
13572         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
13573         overflow on at least PowerPC64.
13574
13575 2010-10-17  Bruno Haible  <bruno@clisp.org>
13576
13577         userspec: Drop redundant file.
13578         * modules/userspec (Files): Remove lib/inttostr.h.
13579
13580 2010-10-17  Bruno Haible  <bruno@clisp.org>
13581
13582         nl_langinfo tests: Silence some warnings.
13583         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
13584         Reported by Jim Meyering.
13585
13586 2010-10-17  Bruno Haible  <bruno@clisp.org>
13587
13588         Make use of GCC's attribute __alloc_size__.
13589         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
13590         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
13591         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
13592         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
13593         __alloc_size__.
13594         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
13595         Suggested by Jim Meyering.
13596
13597 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
13598
13599         bootstrap: anchor .gitignore entries.
13600         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
13601         with...
13602         (insert_vc_ignore): ... this new function, which prepends `/' to
13603         all .gitignore entries before passing them to
13604         insert_sorted_if_absent.
13605
13606 2010-10-16  Bruno Haible  <bruno@clisp.org>
13607
13608         nextafter: Fix configure check.
13609         * modules/nextafter (configure.ac): Correct expected prototype.
13610
13611 2010-10-16  Bruno Haible  <bruno@clisp.org>
13612
13613         termios: Update documentation.
13614         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
13615
13616 2010-10-16  Bruno Haible  <bruno@clisp.org>
13617
13618         tests: Make them compile with TinyCC.
13619         * tests/test-strstr.c (main): Remove parentheses around array
13620         initializer.
13621
13622 2010-10-15  Eric Blake  <eblake@redhat.com>
13623
13624         ignore-value: make header idempotent
13625         * lib/ignore-value.h: Add double-inclusion guards.
13626         Reported by Stefan Berger.
13627
13628 2010-10-15  Jim Meyering  <meyering@redhat.com>
13629
13630         GNUmakefile: handle "stable" target, not "major"
13631         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
13632         lists in maint.mk and announce-gen.  Without this, "make stable"
13633         would fail to ensure that $(VERSION) is up to date.
13634
13635 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
13636
13637         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
13638         & co.
13639
13640 2010-10-14  Bruno Haible  <bruno@clisp.org>
13641
13642         vasnprintf: Don't set errno to 0.
13643         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
13644         block that sets it to 0.
13645         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
13646
13647 2010-10-14  Bruno Haible  <bruno@clisp.org>
13648
13649         socketlib: Fix.
13650         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
13651         gl_PREREQ_SYS_H_WINSOCK2.
13652         Reported by Ian Beckwith <ianb@erislabs.net>.
13653
13654 2010-10-13  Jim Meyering  <meyering@redhat.com>
13655
13656         test-select-stdin.c: avoid warn_unused_result warnings
13657         * tests/test-select-stdin.c: Include "macros.h".
13658         ASSERT that read and fflush succeed.
13659
13660 2010-10-13  Jim Meyering  <meyering@redhat.com>
13661
13662         git-version-gen: do require git-VC'd files in cwd
13663         * build-aux/git-version-gen: Reject a git version string
13664         if there are no commits associated with the current directory.
13665         This avoids an unlikely false-positive (unrelated dir whose parent
13666         repository also contains a tag matching v*), as pointed out
13667         by Giuseppe Scrivano in
13668         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
13669
13670 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
13671
13672         argv-iter: omit nonconforming declaration
13673         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
13674         enum arg_iter_err declaration, which doesn't conform to C99.
13675         Solaris 10 cc warns about this.
13676
13677 2010-10-13  Eric Blake  <eblake@redhat.com>
13678
13679         termios: fix compilation on mingw
13680         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
13681         (gl_TERMIOS_H): Adjust it on mingw.
13682         * modules/termios (Makefile.am): Substitute new key.
13683         * lib/termios.in.h (includes): Make include_next conditional.
13684         * doc/posix-headers/termios.texi (termios.h): Update
13685         documentation.
13686         Reported by Daniel P. Berrange.
13687
13688 2010-10-13  Jim Meyering  <meyering@redhat.com>
13689
13690         git-version-gen: don't require that .git/ be in the current dir
13691         * build-aux/git-version-gen: Adjust this script so that it works
13692         when run from any working directory beneath the top-level .git/-
13693         containing directory.  Inspired by a patch from Giuseppe Scrivano,
13694         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
13695
13696         test-select: avoid warn_unused_result warnings
13697         * tests/test-select.c: Include "macros.h".
13698         ASSERT that each call to read, write, and pipe succeeds.
13699         While not technically required, also check each "close".
13700         * modules/select-tests (Files): Add tests/macros.h.
13701
13702         test-symlinkat: remove declaration of unused local
13703         * tests/test-symlinkat.c (main): Remove unused local, "buf".
13704
13705         test-inttostr: avoid shadowing warnings
13706         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
13707         and use malloc rather than the stack for the same reason as
13708         mentioned in the comment justifying the other allocation.
13709
13710 2010-10-11  Bruno Haible  <bruno@clisp.org>
13711
13712         stdlib: Allow multiple gnulib generated replacements to coexist.
13713         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
13714         Reported by Sam Steingold <sds@gnu.org>.
13715
13716 2010-10-11  Jim Meyering  <meyering@redhat.com>
13717
13718         fix a documentation typo
13719         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
13720
13721 2010-10-11  Eric Blake  <eblake@redhat.com>
13722
13723         futimens: work around Solaris 11 bug
13724         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
13725         * tests/test-futimens.h (test_futimens): Enhance, rather than
13726         weaken test.
13727         * doc/posix-functions/futimens.texi (futimens): Document the bug.
13728
13729 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
13730
13731         Indentation.
13732         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
13733         higher-level operators more to the left.
13734
13735 2010-10-11  Jim Meyering  <meyering@redhat.com>
13736
13737         test-futimens: avoid unwarranted test failure on Solaris 5.11
13738         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
13739         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
13740         because it tries to dereference the NULL name argument.
13741
13742 2010-10-11  Bruno Haible  <bruno@clisp.org>
13743
13744         Indentation.
13745         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
13746         indentation.
13747
13748 2010-10-11  Jim Meyering  <meyering@redhat.com>
13749
13750         spawn.in.h: make indentation consistent with parentheses
13751         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
13752         Make indentation consistent with parentheses.
13753
13754 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
13755
13756         Fix mismatched parens in previous commit
13757         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
13758         parens.
13759
13760 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
13761
13762         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
13763
13764         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
13765         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
13766         * lib/malloca.c: Include "verify.h".
13767         (verify1): Remove, replacing with a verify call.
13768         * lib/relocwrapper.c (verify1): Likewise.
13769         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
13770         Likewise.
13771         * modules/malloca (Depends-on): Add 'verify'.
13772         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
13773         * modules/vasnprintf (Depends-on): Add 'verify'.
13774         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
13775         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
13776         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
13777         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
13778         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
13779         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
13780         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
13781
13782         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
13783
13784         Formerly the style was sometimes 2*X - 1, because the C standard
13785         was wrongly thought to disallow ?: in integral constant expressions.
13786         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
13787         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
13788         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
13789         * lib/stdint.in.h (_verify_intmax_size): Likewise.
13790         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
13791         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
13792         verify that time_t cannot be floating.
13793
13794 2010-10-08  Eric Blake  <eblake@redhat.com>
13795
13796         time: enforce recent POSIX ruling that time_t is integral
13797         * lib/time.in.h (__time_t_must_be_integral): Detect any
13798         problematic systems, allowing the rest of gnulib to assume POSIX.
13799
13800 2010-10-08  Jim Meyering  <meyering@redhat.com>
13801
13802         fdopendir: fix a bug on systems lacking openat and /proc support
13803         OpenBSD 4.7 is one such system.  The most noticeable effect was
13804         failure of any application making nontrivial use of fts: rm, du,
13805         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
13806           ./rm: traversal failed: `a': Bad file descriptor
13807         Debugging that, you see that even though FD 6 was closed just
13808         prior to the opendir call in fd_clone_opendir, its resulting
13809         dir->dd_fd was 8, rather than the expected value of 6:
13810
13811         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
13812         93                close (fd);
13813         (gdb) n
13814         94                dir = fd_clone_opendir (dupfd);
13815         (gdb) n
13816         95                saved_errno = errno;
13817         (gdb) p dir->dd_fd
13818         $11 = 8
13819
13820         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
13821         The problem is that on OpenBSD, fd_clone_opendir has to resort
13822         to using the old-style save/restore CWD mechanism, due to its
13823         lack of openat/proc support, and *that* would steal the FD (6)
13824         that opendir was supposed to use.
13825
13826         The fix is to squirrel away the desired FD so that save_cwd uses a
13827         different one, and then free the dest FD right before calling opendir.
13828         That guarantees opendir will use the required file descriptor.
13829
13830         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
13831
13832 2010-10-08  Bruno Haible  <bruno@clisp.org>
13833
13834         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
13835         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
13836
13837 2010-10-08  Bruno Haible  <bruno@clisp.org>
13838
13839         nanosleep: Make replacement POSIX compliant.
13840         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
13841         is out of range.
13842         Reported by Jim Meyering.
13843
13844 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
13845
13846         bootstrap: add hook for altering gnulib.mk, for Bison
13847         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
13848         the Bison bootstrapping process can rewrite file names and variables
13849         in this file before later parts of 'bootstrap' use the file.
13850         Bison wants to include lib/gnulib.mk from the top-level makefile,
13851         so it needs the file names in this file to be relative to the top
13852         level, not relative to lib; plus it needs variable names to be
13853         rewritten.
13854         (slurp): Use the new function.
13855
13856         bootstrap: reformat for readability
13857         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
13858
13859 2010-10-08  Eric Blake  <eblake@redhat.com>
13860
13861         docs: update cygwin progress
13862         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
13863         1.7.7.
13864         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
13865         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
13866         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
13867         * doc/posix-functions/carg.texi (carg): Likewise.
13868         * doc/posix-functions/cargf.texi (cargf): Likewise.
13869         * doc/posix-functions/casin.texi (casin): Likewise.
13870         * doc/posix-functions/casinf.texi (casinf): Likewise.
13871         * doc/posix-functions/casinh.texi (casinh): Likewise.
13872         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
13873         * doc/posix-functions/catan.texi (catan): Likewise.
13874         * doc/posix-functions/catanf.texi (catanf): Likewise.
13875         * doc/posix-functions/catanh.texi (catanh): Likewise.
13876         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
13877         * doc/posix-functions/ccos.texi (ccos): Likewise.
13878         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
13879         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
13880         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
13881         * doc/posix-functions/cexp.texi (cexp): Likewise.
13882         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
13883         * doc/posix-functions/cimag.texi (cimag): Likewise.
13884         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
13885         * doc/posix-functions/clog.texi (clog): Likewise.
13886         * doc/posix-functions/clogf.texi (clogf): Likewise.
13887         * doc/posix-functions/conj.texi (conj): Likewise.
13888         * doc/posix-functions/conjf.texi (conjf): Likewise.
13889         * doc/posix-functions/cpow.texi (cpow): Likewise.
13890         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
13891         * doc/posix-functions/cproj.texi (cproj): Likewise.
13892         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
13893         * doc/posix-functions/creal.texi (creal): Likewise.
13894         * doc/posix-functions/crealf.texi (crealf): Likewise.
13895         * doc/posix-functions/csin.texi (csin): Likewise.
13896         * doc/posix-functions/csinf.texi (csinf): Likewise.
13897         * doc/posix-functions/csinh.texi (csinh): Likewise.
13898         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
13899         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
13900         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
13901         * doc/posix-functions/ctan.texi (ctan): Likewise.
13902         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
13903         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
13904         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
13905         * doc/posix-headers/complex.texi (complex.h): Likewise.
13906
13907 2010-10-07  Jim Meyering  <meyering@redhat.com>
13908
13909         parse-datetime: avoid compilation failure on OpenBSD 4.7
13910         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
13911         This works around a compilation failure on OpenBSD 4.7:
13912         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
13913
13914 2010-10-07  Eric Blake  <eblake@redhat.com>
13915
13916         docs: update cygwin progress
13917         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
13918         1.7.6.
13919         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
13920         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
13921         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
13922         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
13923         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
13924         Likewise.
13925         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
13926         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
13927         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
13928         Likewise.
13929         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
13930         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
13931         Likewise.
13932         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
13933         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
13934         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
13935         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
13936         Likewise.
13937         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
13938         Likewise.
13939         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
13940
13941         docs: update parse-datetime history
13942         * doc/parse-datetime.texi (Authors of parse_datetime): Better
13943         documentation of this function's history and alternatives.
13944
13945         cygwin: use more robust version check
13946         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
13947         exclude an eventual cygwin 1.9.1.
13948         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
13949         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
13950         (gl_FUNC_STRCASESTR): Likewise.
13951         Reported by Bruno Haible.
13952
13953 2010-10-06  Bruno Haible  <bruno@clisp.org>
13954
13955         string, sys_select: Avoid #including large headers unless necessary.
13956         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
13957         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
13958         OSF/1, BeOS, Haiku.
13959         Reported by Jim Meyering.
13960
13961 2010-10-05  Eric Blake  <eblake@redhat.com>
13962
13963         memmem, strstr, strcasestr: fix bug with long periodic needle
13964         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
13965         periodic needle having false positive.
13966         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
13967         and cygwin 1.7.7.
13968         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
13969         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
13970         (gl_FUNC_STRCASESTR): Likewise.
13971         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
13972         * tests/test-memmem.c (main): Expose the bug.
13973         * tests/test-strcasestr.c (main): Likewise.
13974         * tests/test-strstr.c (main): Likewise.
13975         * tests/test-c-strcasestr.c (main): Likewise.
13976         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
13977         * doc/posix-functions/strstr.texi (strstr): Likewise.
13978         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
13979         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
13980
13981 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
13982
13983         parse-datetime: do some more renaming
13984         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
13985         parse_datetime, not get_date.  Mention the renaming.
13986         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
13987         in comments.
13988         * m4/bison.m4: Likewise.
13989
13990 2010-10-05  Eric Blake  <eblake@redhat.com>
13991
13992         parse-datetime: better name than get_date
13993         * NEWS: Reword the deprecation notice.
13994         * modules/get_date: Rename to modules/parse-datetime.
13995         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
13996         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
13997         * lib/get_date.y: Rename to lib/parse-datetime.y.
13998         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
13999         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
14000         * doc/getdate.texi: Provide fallback wrapper.
14001         * lib/getdate.h: Move guts, and wrap...
14002         * lib/parse-datetime.h: ...new file.
14003         * lib/parse-datetime.y (get_date): Rename...
14004         (parse_datetime): ...to this.
14005         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
14006         (gl_PARSE_DATETIME): ...to this.
14007         * doc/posix-functions/getdate.texi (get_date): Provide fallback
14008         documentation.
14009         * modules/getdate (Files): Provide fallback docs and header.
14010         (Notice, Depends-on): Update references.
14011         * tests/test-parse-datetime.c: Likewise.
14012         * DEPENDENCIES: Likewise.
14013         * MODULES.html.sh (Date and time <time.h>): Likewise.
14014         * doc/parse-datetime.texi (Date input formats)
14015         (Authors of parse_datetime): Likewise.
14016         * modules/parse-datetime (Files, configure.ac, Makefile.am)
14017         (Include): Likewise.
14018         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
14019         * gnulib-tool: Likewise.
14020         * m4/bison.m4 (gl_BISON): Likewise.
14021         Suggested by Bruno Haible.
14022
14023 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
14024
14025         more ports to Solaris tr, which needs [] around ranges
14026         * gnulib-tool: Solaris tr needs [] around ranges.
14027         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
14028         * tests/test-pipe-filter-gi1.c (main): Likewise.
14029         * tests/test-pipe-filter-ii1.c (main): Likewise.
14030
14031 2010-10-05  Eric Blake  <eblake@redhat.com>
14032
14033         bootstrap: fix Solaris regression
14034         * build-aux/bootstrap (check_versions): Solaris tr still needs []
14035         around ranges.
14036         Reported by Pádraig Brady.
14037
14038         bootstrap: work with pkg-config
14039         * build-aux/bootstrap (check_versions): Also transliterate - in
14040         prerequisite name.
14041         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
14042         prerequisites that were already found, to avoid confusion.
14043         Reported by Justin Clift.
14044
14045         faccessat: remove unused wrappers
14046         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
14047         presence of these wrappers dragged in -lgen on Solaris.
14048         Reported by Clemens Brogi; fix suggested by Paul Eggert.
14049
14050 2010-10-05  Jim Meyering  <meyering@redhat.com>
14051
14052         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
14053         * Makefile (sc_pragma_columns): New syntax-check rule.
14054
14055 2010-10-04  Bruno Haible  <bruno@clisp.org>
14056
14057         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
14058         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
14059         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
14060         Reported by Bruce Korb and Eric Blake.
14061
14062 2010-10-04  Bruno Haible  <bruno@clisp.org>
14063
14064         threadlib: Make option --with-libpth-prefix work.
14065         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
14066         use $LIBPTH, not just -lpth.
14067
14068 2010-10-04  Bruno Haible  <bruno@clisp.org>
14069
14070         Avoid line length limitation from HP NonStop system header files.
14071         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
14072         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
14073         * lib/ctype.in.h: Likewise.
14074         * lib/dirent.in.h: Likewise.
14075         * lib/errno.in.h: Likewise.
14076         * lib/fcntl.in.h: Likewise.
14077         * lib/float.in.h: Likewise.
14078         * lib/getopt.in.h: Likewise.
14079         * lib/iconv.in.h: Likewise.
14080         * lib/inttypes.in.h: Likewise.
14081         * lib/langinfo.in.h: Likewise.
14082         * lib/locale.in.h: Likewise.
14083         * lib/math.in.h: Likewise.
14084         * lib/netdb.in.h: Likewise.
14085         * lib/netinet_in.in.h: Likewise.
14086         * lib/poll.in.h: Likewise.
14087         * lib/pthread.in.h: Likewise.
14088         * lib/pty.in.h: Likewise.
14089         * lib/sched.in.h: Likewise.
14090         * lib/se-selinux.in.h: Likewise.
14091         * lib/search.in.h: Likewise.
14092         * lib/signal.in.h: Likewise.
14093         * lib/spawn.in.h: Likewise.
14094         * lib/stdarg.in.h: Likewise.
14095         * lib/stddef.in.h: Likewise.
14096         * lib/stdint.in.h: Likewise.
14097         * lib/stdio.in.h: Likewise.
14098         * lib/stdlib.in.h: Likewise.
14099         * lib/string.in.h: Likewise.
14100         * lib/strings.in.h: Likewise.
14101         * lib/sys_file.in.h: Likewise.
14102         * lib/sys_ioctl.in.h: Likewise.
14103         * lib/sys_select.in.h: Likewise.
14104         * lib/sys_socket.in.h: Likewise.
14105         * lib/sys_stat.in.h: Likewise.
14106         * lib/sys_time.in.h: Likewise.
14107         * lib/sys_times.in.h: Likewise.
14108         * lib/sys_utsname.in.h: Likewise.
14109         * lib/sys_wait.in.h: Likewise.
14110         * lib/sysexits.in.h: Likewise.
14111         * lib/termios.in.h: Likewise.
14112         * lib/time.in.h: Likewise.
14113         * lib/unistd.in.h: Likewise.
14114         * lib/wchar.in.h: Likewise.
14115         * lib/wctype.in.h: Likewise.
14116         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
14117         * modules/ctype (Makefile.am): Likewise.
14118         * modules/dirent (Makefile.am): Likewise.
14119         * modules/errno (Makefile.am): Likewise.
14120         * modules/fcntl-h (Makefile.am): Likewise.
14121         * modules/float (Makefile.am): Likewise.
14122         * modules/getopt-posix (Makefile.am): Likewise.
14123         * modules/iconv-h (Makefile.am): Likewise.
14124         * modules/inttypes (Makefile.am): Likewise.
14125         * modules/langinfo (Makefile.am): Likewise.
14126         * modules/locale (Makefile.am): Likewise.
14127         * modules/math (Makefile.am): Likewise.
14128         * modules/netdb (Makefile.am): Likewise.
14129         * modules/netinet_in (Makefile.am): Likewise.
14130         * modules/poll-h (Makefile.am): Likewise.
14131         * modules/pthread (Makefile.am): Likewise.
14132         * modules/pty (Makefile.am): Likewise.
14133         * modules/sched (Makefile.am): Likewise.
14134         * modules/search (Makefile.am): Likewise.
14135         * modules/selinux-h (Makefile.am): Likewise.
14136         * modules/signal (Makefile.am): Likewise.
14137         * modules/spawn (Makefile.am): Likewise.
14138         * modules/stdarg (Makefile.am): Likewise.
14139         * modules/stddef (Makefile.am): Likewise.
14140         * modules/stdint (Makefile.am): Likewise.
14141         * modules/stdio (Makefile.am): Likewise.
14142         * modules/stdlib (Makefile.am): Likewise.
14143         * modules/string (Makefile.am): Likewise.
14144         * modules/strings (Makefile.am): Likewise.
14145         * modules/sys_file (Makefile.am): Likewise.
14146         * modules/sys_ioctl (Makefile.am): Likewise.
14147         * modules/sys_select (Makefile.am): Likewise.
14148         * modules/sys_socket (Makefile.am): Likewise.
14149         * modules/sys_stat (Makefile.am): Likewise.
14150         * modules/sys_time (Makefile.am): Likewise.
14151         * modules/sys_times (Makefile.am): Likewise.
14152         * modules/sys_utsname (Makefile.am): Likewise.
14153         * modules/sys_wait (Makefile.am): Likewise.
14154         * modules/sysexits (Makefile.am): Likewise.
14155         * modules/termios (Makefile.am): Likewise.
14156         * modules/time (Makefile.am): Likewise.
14157         * modules/unistd (Makefile.am): Likewise.
14158         * modules/wchar (Makefile.am): Likewise.
14159         * modules/wctype (Makefile.am): Likewise.
14160
14161 2010-10-04  Bruno Haible  <bruno@clisp.org>
14162
14163         read-file tests: Avoid a test failure on NonStop Kernel.
14164         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
14165         a regular file.
14166         Reported by Joachim Schmitz <schmitz@hp.com>.
14167
14168 2010-10-03  Bruno Haible  <bruno@clisp.org>
14169
14170         gnulib-tool: Fixes for --create-testdir with --libtool.
14171         * gnulib-tool (func_get_automake_snippet): Don't augment
14172         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
14173         an executable.
14174         (func_create_testdir): Handle module 'alloca' like func_import.
14175         Reported by Bruce Korb <bruce.korb@gmail.com>.
14176
14177 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
14178
14179         Avoid some lines longer than 80 characters.
14180         * lib/stdint.in.h: Break long comment lines.
14181         * lib/math.in.h: Likewise.
14182         (_GL_NUM_UINT_WORDS): New macro, for readability.
14183         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
14184         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
14185         * lib/stdlib.in.h: Likewise.
14186         * lib/spawn.in.h: Likewise.
14187         * lib/sys_socket.in.h: Update an URL.
14188         * lib/sys_stat.in.h: Break long line.
14189
14190 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
14191
14192         Improve pmccabe2html.
14193         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
14194         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
14195         when the sources change. Remove the line in the HTML about "Used
14196         ranges" (which implied that there might be other unused ranges),
14197         rename "Resume" to "Summary" (easier to understand for more users).
14198         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
14199         styles, and some unnecessary blank lines.
14200
14201 2010-10-03  Bruno Haible  <bruno@clisp.org>
14202             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
14203
14204         acl: Add support for ACLs on NonStop Kernel.
14205         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
14206         Check whether the function aclsort() exists.
14207         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
14208         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
14209         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
14210         (acl_nontrivial [HAVE_ACLSORT]: New function.
14211         (file_has_acl): Implement for NonStop Kernel.
14212         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
14213         (qset_acl): Implement for NonStop Kernel.
14214         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
14215         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
14216         (main): Implement for NonStop Kernel.
14217         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
14218         Kernel. Handle this flavor.
14219         * tests/test-set-mode-acl.sh: Likewise.
14220         * tests/test-copy-acl.sh: Likewise.
14221         * tests/test-copy-file.sh: Likewise.
14222
14223 2010-10-03  Bruno Haible  <bruno@clisp.org>
14224
14225         Info about ACLs on NonStop Kernel.
14226         * doc/acl-resources.txt: Add info about NonStop Kernel.
14227         References by Joachim Schmitz <schmitz@hp.com>.
14228
14229 2010-10-02  Bruno Haible  <bruno@clisp.org>
14230
14231         Define missing EDQUOT on NonStop Kernel.
14232         * lib/errno.in.h (EDQUOT): Assign a value if missing.
14233         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
14234         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
14235         missing.
14236         * doc/posix-headers/errno.texi: Mention the NSK bug.
14237         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
14238         Reported by Joachim Schmitz <schmitz@hp.com>.
14239
14240 2010-10-02  Bruno Haible  <bruno@clisp.org>
14241
14242         Update doc for POSIX:2008.
14243         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
14244         Update URL of POSIX specification.
14245
14246 2010-10-02  Bruno Haible  <bruno@clisp.org>
14247
14248         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
14249         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
14250         from gnulib, not from Automake.
14251
14252 2010-10-02  Bruno Haible  <bruno@clisp.org>
14253
14254         New module 'system-posix'.
14255         * modules/system-posix: New file.
14256         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
14257         module is present.
14258         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
14259         GNULIB_SYSTEM_POSIX.
14260         * modules/stdlib (Depends-on): Remove sys_wait.
14261         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
14262         * doc/posix-functions/system.texi: Mention the new module.
14263         * doc/posix-headers/stdlib.texi: Likewise.
14264         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
14265         define test_sys_wait_macros to a no-op.
14266         Reported by Sam Steingold <sds@gnu.org>.
14267
14268 2010-09-30  Bruno Haible  <bruno@clisp.org>
14269
14270         More renaming from 'getdate' to 'get_date'.
14271         * doc/get_date.texi: Renamed from doc/getdate.texi.
14272         * modules/get_date (Files): Update.
14273         * MODULES.html.sh (Date and time <time.h>): Update.
14274         * DEPENDENCIES: Update.
14275         * gnulib-tool: Update comment.
14276         * m4/bison.m4 (gl_BISON): Likewise.
14277         * m4/get_date.m4 (gl_GET_DATE): Likewise.
14278
14279 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
14280
14281         bootstrap: support ACLOCAL_FLAGS during aclocal
14282         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
14283         can add additional -I dir for third-party .m4 files.
14284
14285 2010-09-30  Eric Blake  <eblake@redhat.com>
14286
14287         bootstrap: use glibtoolize on MacOS
14288         * build-aux/bootstrap (check_versions): Convert libtool into
14289         libtoolize.
14290         (tool search): Move libtool check earlier, and look for
14291         glibtoolize for MacOS.
14292         (gnulib_tool_options): Auto-add --libtool when appropriate.
14293         Reported by Justin Clift.
14294
14295         poll: fix typo that broke test on MacOS
14296         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
14297         Reported by Justin Clift.
14298
14299         getdate: rename to get_date
14300         Note: getdate.h is not renamed, to minimize client impact.
14301         * modules/getdate: Mark obsolete.  Move old contents...
14302         * modules/get_date: ...to new module name.
14303         * modules/getdate-tests: Move...
14304         * modules/get_date-tests: ...here.
14305         * m4/getdate.m4: Move...
14306         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
14307         * lib/getdate.y: Move...
14308         * lib/get_date.y: ...here.
14309         * tests/test-getdate.c: Move...
14310         * tests/test-get_date.c: ...here.
14311         * doc/posix-functions/getdate.texi (getdate): Update name.
14312         * NEWS: Mention the change.
14313
14314 2010-09-29  Bruno Haible  <bruno@clisp.org>
14315
14316         Separate the module 'waitpid' from the module 'sys_wait'.
14317         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
14318         present.
14319         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
14320         gl_MODULE_INDICATOR_FOR_TESTS.
14321         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
14322         * modules/sys_wait (Depends-on): Remove waitpid.
14323         (Makefile.am): Substitute GNULIB_WAITPID.
14324         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
14325         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
14326         signature only if the 'waitpid' module is present.
14327         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
14328         * NEWS: Mention the change.
14329         * modules/grantpt (Depends-on): Add waitpid.
14330         * modules/wait-process (Depends-on): Likewise.
14331
14332 2010-09-29  Bruno Haible  <bruno@clisp.org>
14333
14334         More tests for module 'sys_wait'.
14335         * modules/sys_wait-c++-tests: New file.
14336         * tests/test-sys_wait-c++.cc: New file.
14337         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
14338         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
14339
14340 2010-09-29  Bruno Haible  <bruno@clisp.org>
14341
14342         New module 'waitpid'.
14343         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
14344         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
14345         Don't include <process.h>.
14346         (waitpid): Declare only, using modern idiom.
14347         * m4/waitpid.m4: New file.
14348         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
14349         * modules/waitpid: New file.
14350         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
14351         (Makefile.am): Update.
14352         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
14353
14354 2010-09-28  Bruno Haible  <bruno@clisp.org>
14355
14356         poll: Assume ANSI C.
14357         * lib/poll.c (poll): Use an ANSI C declaration.
14358
14359 2010-09-28  Bruno Haible  <bruno@clisp.org>
14360
14361         poll-h: Create poll.h on all platforms.
14362         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
14363         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
14364         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
14365         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
14366         (gl_REPLACE_POLL_H): Don't set POLL_H.
14367         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
14368         * modules/poll-h (Depends-on): Add include_next.
14369         (Makefile.am): Create poll.h unconditionally. Substitute also
14370         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
14371
14372 2010-09-28  Bruno Haible  <bruno@clisp.org>
14373
14374         Tests for module 'poll-h'.
14375         * modules/poll-h-c++-tests: New file.
14376         * tests/test-poll-h-c++.cc: New file.
14377
14378         Tests for module 'poll-h'.
14379         * modules/poll-h-tests: New file.
14380         * tests/test-poll-h.c: New file.
14381
14382 2010-09-28  Bruno Haible  <bruno@clisp.org>
14383
14384         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
14385         * modules/poll-h (Depends-on): Add 'extensions'.
14386
14387 2010-09-28  Bruno Haible  <bruno@clisp.org>
14388
14389         New module 'poll-h'.
14390         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
14391         (poll): Use modern idiom.
14392         * modules/poll-h: New file.
14393         * modules/poll (Files): Remove lib/poll.in.h.
14394         (Depends-on): Add poll-h.
14395         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
14396         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
14397         * m4/poll_h.m4: New file.
14398         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
14399         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
14400         and invoke gl_REPLACE_POLL_H.
14401         * lib/poll.c: Use common idiom.
14402         * tests/test-poll.c: Likewise.
14403         * doc/posix-headers/poll.texi: Mention the poll-h module.
14404         Suggested by Eric Blake.
14405
14406 2010-09-26  Bruno Haible  <bruno@clisp.org>
14407
14408         sys_wait: Implement WSTOPSIG.
14409         * lib/sys_wait.in.h (WSTOPSIG): New macro.
14410         Reported by Simon Josefsson.
14411
14412 2010-09-26  Simon Josefsson  <simon@josefsson.org>
14413
14414         stdlib, sys_wait: Avoid compilation error on mingw.
14415         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
14416
14417 2010-09-26  Bruno Haible  <bruno@clisp.org>
14418
14419         stdlib tests: Avoid code duplication.
14420         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
14421         * modules/sys_wait-tests (Files): Likewise.
14422         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
14423         * tests/test-stdlib.c: Include test-sys_wait.h.
14424         (main): Invoke test_sys_wait_macros.
14425         * tests/test-sys_wait.c: Include test-sys_wait.h.
14426         (main): Invoke test_sys_wait_macros.
14427
14428 2010-09-25  Simon Josefsson  <simon@josefsson.org>
14429
14430         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
14431         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
14432         sure Windows sockets are working before calling getaddrinfo.
14433         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
14434         * doc/gnulib.texi (Windows sockets): Fix typo.
14435
14436 2010-09-25  Bruno Haible  <bruno@clisp.org>
14437
14438         Tests for module 'regex-quote'.
14439         * modules/regex-quote-tests: New file.
14440         * tests/test-regex-quote.c: New file.
14441
14442         New module 'regex-quote'.
14443         * lib/regex-quote.h: New file.
14444         * lib/regex-quote.c: New file.
14445         * modules/regex-quote: New file.
14446         Suggested by Reuben Thomas <rrt@sc3d.org>.
14447
14448 2010-09-24  Bruno Haible  <bruno@clisp.org>
14449
14450         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
14451         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
14452
14453 2010-09-23  Bruno Haible  <bruno@clisp.org>
14454
14455         setenv: Relax license.
14456         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
14457         Blake.
14458         Requested by Eric Blake.
14459
14460 2010-09-22  Bruno Haible  <bruno@clisp.org>
14461
14462         termios: Relax license.
14463         * modules/termios (License): Change to LGPLv2+.
14464         Requested by Eric Blake.
14465
14466 2010-09-22  Bruno Haible  <bruno@clisp.org>
14467
14468         threadlib: Allow the package to change the default to 'no'.
14469         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
14470         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
14471         Reported by Paul Eggert.
14472
14473 2010-09-22  Pádraig Brady  <P@draigbrady.com>
14474             Bruno Haible  <bruno@clisp.org>
14475
14476         Fix endless loop in mbmemcasecoll.
14477         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
14478         byte.
14479         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
14480
14481 2010-09-22  Bruno Haible  <bruno@clisp.org>
14482
14483         Tests for module 'memcoll'.
14484         * modules/memcoll-tests: New file.
14485         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
14486
14487         memcoll, xmemcoll: Clarify size vs. length.
14488         * modules/memcoll.c (memcoll0): Clarify specification.
14489         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
14490         passed to collate_error.
14491
14492 2010-09-22  Bruno Haible  <bruno@clisp.org>
14493
14494         Tests for module 'memcasecmp'.
14495         * modules/memcasecmp-tests: New file.
14496         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
14497
14498 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
14499
14500         * lib/pthread.in.h: Add split double-inclusion guard, and include
14501         system <pthread.h> if there is one.  Use @@-style as in other
14502         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
14503         pthread.h doesn't.
14504         (pthread_mutexattr_destroy, pthread_mutexattr_init):
14505         (pthread_mutexattr_settype, pthread_mutex_trylock):
14506         New static inline functions, if there's no system <pthread.h>.
14507         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
14508         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
14509         Approximate with mutexes if the system lacks spinlocks, as in
14510         MacOS.
14511         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
14512         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
14513         @@-style.  Check for spinlocks separately.
14514         (gl_PTHREAD_DEFAULTS): New macro.
14515         * modules/pthread: Redo to use a more typical style for in.h files.
14516
14517 2010-09-21  Eric Blake  <eblake@redhat.com>
14518
14519         net_if: enhance tests
14520         * tests/test-net_if.c (main): Move signature checks earlier.
14521         Print failures to stderr.
14522         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
14523         Document the bug that we do not yet fix.
14524
14525 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
14526
14527         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
14528         about gnulib, not GSS.
14529
14530 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
14531
14532         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
14533         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
14534         for Emacs.
14535         * build-aux/pmccabe2html: Make Makefile.am example code more
14536         cut-and-paste friendly.
14537
14538 2010-09-21  Simon Josefsson  <simon@josefsson.org>
14539
14540         * tests/test-net_if.c: New file.
14541         * modules/net_if-tests: New file.
14542
14543 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
14544
14545         pthread: add pthread_spin_destroy
14546         * lib/pthread.in.h (pthread_spin_destroy): New function.
14547
14548 2010-09-19  Bruno Haible  <bruno@clisp.org>
14549
14550         gnulib-tool: Fix --help output.
14551         * gnulib-tool (func_usage): Fix help message.
14552         Reported by Reuben Thomas <rrt@sc3d.org>.
14553
14554 2010-09-18  Jim Meyering  <meyering@redhat.com>
14555
14556         maint.mk: avoid unexpanded \n in two diagnostics
14557         * top/maint.mk (sc_prohibit_always_true_header_tests):
14558         Don't use a literal \n in a halt=... assignment.  It would not be
14559         expanded, and the two \n bytes would appear in the diagnostic output
14560         rather than the desired newline.  Use halt=$$(printf ... instead.
14561         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
14562
14563 2010-09-18  Bruno Haible  <bruno@clisp.org>
14564
14565         netinet_in: Doc tweak.
14566         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
14567         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14568
14569 2010-09-18  Jim Meyering  <meyering@redhat.com>
14570
14571         init.sh: correct an outdated comment
14572         * tests/init.sh (create_exe_shims_):  s/function/alias/
14573
14574         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
14575         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
14576         a file named "*.exe" is removed between the glob expansion and the
14577         processing of that oddly named file.
14578
14579 2010-09-17  Eric Blake  <eblake@redhat.com>
14580
14581         mirbsd: add some more support
14582         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
14583         in BSD family.
14584         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
14585         devices as OpenBSD.
14586         * m4/host-os.m4 (mirbsd): Add MirBSD.
14587
14588         tests: fix unportable assumption on sys/wait.h
14589         * tests/test-sys_wait.c (main): Relax test.
14590         * tests/test-stdlib.c (main): Likewise.
14591
14592         init.sh: accomodate directory with no .exes
14593         * tests/init.sh: Accomodate directory containing only scripts.
14594
14595         tests: avoid compiler warning
14596         * tests/test-stdlib.c (main): Use the variable.
14597
14598         fdutimens, fdutimensat: update signature, again
14599         * lib/utimens.h (gl_futimens): Delete, and move signature...
14600         (fdutimens): ...here.
14601         (fdutimensat): Rearrange signature.
14602         (lutimensat): Rename variable for clarity.
14603         * lib/fdutimensat.c (fdutimensat): Update signature.
14604         * lib/utimens.c (fdutimens): Likewise.
14605         (gl_futimens): Delete.
14606         (utimens, lutimens): Update callers.
14607         * lib/futimens.c (futimens): Likewise.
14608         * tests/test-fdutimensat.c: Likewise.
14609         * tests/test-utimens.c: Likewise.
14610         * tests/test-futimens.h: Update comment.
14611         * NEWS: Mention this.
14612         Suggested by Paul Eggert.
14613
14614 2010-09-17  Bruno Haible  <bruno@clisp.org>
14615
14616         Take over the maintenance of some older macros from Autoconf.
14617         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
14618         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
14619         GNU Autoconf.
14620         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
14621         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
14622
14623 2010-09-17  Eric Blake  <eblake@redhat.com>
14624
14625         fdutimensat: drop atflag validation
14626         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
14627         with valid fd, to close a race scenario where futimens is
14628         unsupported and FILE was replaced by a symlink.
14629         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
14630         accordingly.
14631         Suggested by Paul Eggert.
14632
14633 2010-09-16  Bruno Haible  <bruno@clisp.org>
14634
14635         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
14636         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
14637
14638 2010-09-16  Bruno Haible  <bruno@clisp.org>
14639
14640         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
14641         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
14642         login_tty exists.
14643         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14644
14645 2010-09-16  Bruno Haible  <bruno@clisp.org>
14646
14647         login_tty: Make the replacement code work on BSD systems.
14648         * lib/login_tty.c: Include <sys/ioctl.h>.
14649         (login_tty): Use ioctl TIOCSCTTY when available.
14650         * modules/login_tty (Depends-on): Add sys_ioctl.
14651         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14652
14653 2010-09-16  Bruno Haible  <bruno@clisp.org>
14654
14655         login_tty: Stricter unit test.
14656         * modules/login_tty-tests (Depends-on): Add tcgetsid.
14657         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
14658         and tcgetsid() after login_tty.
14659         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14660
14661 2010-09-16  Bruno Haible  <bruno@clisp.org>
14662
14663         New module 'tcgetsid'.
14664         * lib/tcgetsid.c: New file.
14665         * m4/tcgetsid.m4: New file.
14666         * modules/tcgetsid: New file.
14667         * modules/termios (Depends-on): Add c++defs, warn-on-use.
14668         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
14669         GNULIB_TCGETSID, HAVE_TCGETSID.
14670         * lib/termios.in.h: Include <sys/types.h>.
14671         (tcgetsid): New declaration.
14672         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
14673         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
14674         * doc/posix-functions/tcgetsid.texi: Mention the new module.
14675         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
14676
14677 2010-09-16  Bruno Haible  <bruno@clisp.org>
14678
14679         Tests for module 'termios'.
14680         * modules/termios-c++-tests: New file.
14681         * modules/termios-tests: New file.
14682         * tests/test-termios-c++.cc: New file.
14683         * tests/test-termios.c: New file.
14684
14685         New module 'termios'.
14686         * modules/termios: New file.
14687         * lib/termios.in.h: New file.
14688         * m4/termios_h.m4: New file.
14689         * doc/posix-headers/termios.texi: Mention the new module.
14690
14691 2010-09-16  Eric Blake  <eblake@redhat.com>
14692
14693         fdutimensat: add an atflag parameter
14694         * lib/fdutimensat.c (fdutimensat): Add new parameter.
14695         * lib/utimens.h (fdutimensat): Update prototype.
14696         * tests/test-fdutimensat.c: Adjust test to match.
14697         * NEWS: Document the change.
14698         Suggested by Paul Eggert.
14699
14700 2010-09-16  Bruno Haible  <bruno@clisp.org>
14701
14702         Fix typos in comments.
14703         * lib/striconveh.h: Fix typo in comment.
14704         * lib/login_tty.c (login_tty): Likewise.
14705
14706 2010-09-15  Bruno Haible  <bruno@clisp.org>
14707
14708         stdlib: clarify MirBSD WEXITSTATUS bug
14709         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
14710         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
14711
14712 2010-09-15  Eric Blake  <eblake@redhat.com>
14713
14714         stdlib: work around MirBSD WEXITSTATUS bug
14715         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
14716         * modules/stdlib (Depends-on): Add sys_wait.
14717         * tests/test-sys_wait.c (main): Enhance test.
14718         * tests/test-stdlib.c (main): Likewise.
14719         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
14720
14721         docs: mention MacOS issue with WEXITSTATUS(constant)
14722         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
14723         issue.
14724         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
14725
14726         strnlen: add tests
14727         * modules/strnlen-tests: New file.
14728         * tests/test-strnlen.c: Likewise.
14729
14730 2010-09-14  Bruno Haible  <bruno@clisp.org>
14731
14732         unistr/base: Avoid link errors when module 'libunistring' is also used.
14733         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
14734         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
14735         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
14736         Declare also when HAVE_LIBUNISTRING is set.
14737         Reported by Pádraig Brady <P@draigbrady.com>.
14738
14739 2010-09-14  Eric Blake  <eblake@redhat.com>
14740
14741         test-rawmemchr: make more robust
14742         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
14743         (Depends-on, configure.ac): Add needed prerequisites to use it.
14744         * modules/memchr-tests (Files, Depends-on, configure.ac):
14745         Likewise, to avoid implicit reliance on memchr module prereqs.
14746         * tests/test-memchr.c (main): Ensure proper masking.
14747         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
14748         reads.
14749
14750         memchr: detect glibc Alpha bug
14751         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
14752         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
14753         Alpha.
14754         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
14755         * tests/test-memchr.c (main): Enhance test.
14756         Reported by Nelson H. F. Beebe.
14757
14758 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
14759
14760         fts, getcwd, glob: audit for dirfd returning -1
14761         * lib/fts.c (opendir): Remove #define; no longer used.
14762         (opendirat): New arg PDIR_FD.  All callers changed.
14763         (fts_build, _opendir2): Use new opendirat to avoid the need for
14764         dirfd, or for checking whether dirfd returns a negative value.
14765         Don't use opendir; always use openat followed by fdopendir.
14766         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
14767         it.
14768         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
14769         returns -1 here.
14770         * modules/fts (Depends-on): Remove dirfd.
14771         * modules/getcwd (Depends-on): Likewise.
14772
14773 2010-09-13  Eric Blake  <eblake@redhat.com>
14774
14775         float: fix broken MirBSD header
14776         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
14777         * doc/posix-headers/float.texi (float.h): Document it.
14778
14779 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
14780
14781         fts: use O_NOFOLLOW to avoid race condition when opening a directory
14782         * lib/fts.c (opendirat): New arg extra_flags.
14783         (__opendir2): Use it to avoid following symlinks when opening
14784         a directory, if symlinks are not supposed to be followed.  See
14785         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
14786
14787         fdopendir: preserve argument fd before returning
14788         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
14789         (fdopendir_with_dup, fd_clone_opendir): New static functions.
14790         (fdopendir): Use them, arranging for FD to be open to the same
14791         directory that it was when it started.  (It might be temporarily
14792         closed while fdopendir is running, so this not thread- or
14793         signal-safe.)  Be careful to do the right thing even when file
14794         descriptors are scarce and dup fails with errno == EMFILE.  See
14795         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
14796
14797 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
14798
14799         regex: Pass the system regex if its only problem is 32-bit regoff_t.
14800         * NEWS: Document change.
14801         * m4/regex.m4: Disable test for regoff_t size.
14802
14803 2010-09-13  Jim Meyering  <meyering@redhat.com>
14804
14805         fts: don't operate on an invalid file descriptor after failed dup
14806         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
14807         negative file descriptor.
14808
14809 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
14810
14811         savedir: add streamsavedir, deprecate fdsavedir
14812         * NEWS: Mention deprecation of fdsavedir.
14813         * lib/savedir.c (streamsavedir): New extern function, whose name
14814         ends in "savedir" to be consistent with the others.  This differs
14815         from savedirstream in that it doesn't close its argument.  The
14816         next version of GNU tar will use this instead of fdsavedir, to
14817         avoid some race conditions and conserve file descriptors.
14818         (savedirstream): Reimplement as a wrapper around streamsavedir.
14819         (fdsavedir): Add a comment deprecating this function.  As far as
14820         I know, only GNU tar used it, and GNU tar doesn't need it any more.
14821         * lib/savedir.h (streamsavedir): New decl.
14822         (fdsavedir): Add a comment deprecating this.
14823
14824 2010-09-10  Bruno Haible  <bruno@clisp.org>
14825
14826         langinfo: Fix last commit.
14827         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
14828         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
14829         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14830
14831 2010-09-10  Bruno Haible  <bruno@clisp.org>
14832
14833         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
14834         * lib/progreloc.c (O_EXEC): Define fallback.
14835
14836 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
14837
14838         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
14839         * NEWS: Document recent changes to fcntl-h.
14840         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
14841         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
14842         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
14843         Similarly for O_SEARCH; this last was already true, but not documented.
14844         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
14845         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
14846         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
14847         Likewise.
14848         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
14849         is zero, not whether it is defined.
14850         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
14851         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
14852         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
14853
14854 2010-09-10  Bruno Haible  <bruno@clisp.org>
14855
14856         langinfo, nl_langinfo: Fix for IRIX 5.3.
14857         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
14858         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
14859         HAVE_LANGINFO_YESEXPR.
14860         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
14861         HAVE_LANGINFO_YESEXPR.
14862         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
14863         HAVE_LANGINFO_T_FMT_AMPM is 0.
14864         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
14865         HAVE_LANGINFO_YESEXPR is 0.
14866         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
14867         NOEXPR.
14868         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
14869         * doc/posix-functions/nl_langinfo.texi: Likewise.
14870         Reported by Eric Blake.
14871
14872 2010-09-10  Bruno Haible  <bruno@clisp.org>
14873
14874         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
14875         * doc/glibc-functions/login_tty.texi: Mention the include file problem
14876         on FreeBSD 8.0 and OpenBSD 4.6.
14877         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
14878         * m4/pty_h.m4 (gl_PTY_H): Likewise.
14879         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
14880         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
14881         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
14882         ac_includes_default.
14883         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14884
14885 2010-09-09  Eric Blake  <eblake@redhat.com>
14886
14887         strsignal: work around NetBSD bug
14888         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
14889         * lib/string.in.h (includes): Likewise.
14890         * doc/posix-functions/strsignal.texi (strsignal): Document the
14891         bug.
14892         Reported by Nelson H. F. Beebe.
14893
14894         gnulib-tool: work with NetBSD /bin/sh
14895         * gnulib-tool (func_cache_var, func_cache_lookup_module)
14896         (func_get_description, func_get_comment, func_get_status)
14897         (func_get_notice, func_get_applicability, func_get_filelist)
14898         (func_get_dependencies, func_get_autoconf_early_snippet)
14899         (func_get_autoconf_snippet, func_get_automake_snippet)
14900         (func_get_include_directive, func_get_link_directive)
14901         (func_get_license, func_get_maintainer, func_import): Avoid
14902         shell syntax errors from parsing syntax extensions.
14903
14904 2010-09-09  Bruno Haible  <bruno@clisp.org>
14905
14906         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
14907         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
14908         a reliable way to determine whether the 'alias' command works.
14909
14910 2010-09-08  Jim Meyering  <meyering@redhat.com>
14911
14912         init.sh: penalize a set-x-impaired shell; don't disqualify it
14913         * tests/init.sh: Too many shells corrupt application stderr when
14914         you set -x, so we can't afford to disqualify them, since at least
14915         on Irix-6.5, that would disqualify all bourne shells.
14916         Instead, use a two-pass approach.
14917         On the first pass, try to find a shell that meets the stricter
14918         condition that set -x does not corrupt stderr.
14919         If no shell meets the stricter condition, retest each candidate
14920         shell, but without that extra condition.  Finally, when
14921         VERBOSE=yes is requested and set -x might cause trouble, simply
14922         issue a warning and refrain from enabling debug output.
14923
14924 2010-09-08  Eric Blake  <eblake@redhat.com>
14925
14926         unsetenv: fix OpenBSD bug
14927         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
14928         * doc/posix-functions/unsetenv.texi (unsetenv): Update
14929         documentation.
14930         Reported by Jim Meyering.
14931
14932         strtod: work around IRIX 6.5 bug
14933         * lib/strtod.c (strtod): Reparse number on shorter string if
14934         exponent parse was invalid.
14935         * tests/test-strtod.c (main): Add check for "0x1p 2".
14936         Reported by Tom G. Christensen.
14937
14938         getopt: optimize previous patch
14939         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
14940         empty variable.  Speed up awk script.
14941         Reported by Paolo Bonzini.
14942
14943 2010-09-08  Jim Meyering  <meyering@redhat.com>
14944
14945         test.sh: disqualify shells for which set -x corrupts stderr
14946         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
14947         and OpenBSD 4.7.  They make it so with "set -x", environment settings
14948         appear in stderr output.  For example, this command:
14949             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
14950         prints "P=1" on those two systems:
14951
14952 2010-09-08  Bruno Haible  <bruno@clisp.org>
14953
14954         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
14955         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
14956         commands, because some shells ignore redirections when there is an
14957         error in the command lookup.
14958         Reported by Eric Blake.
14959
14960 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
14961
14962         * lib/regex.h: Fix a mention of `regex_compile' (should be
14963         `re_compile_pattern').
14964         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
14965         (re_set_registers): Correct name of parameter in comment.
14966
14967         * doc/regex.texi: Add documentation for missing syntax flags.
14968         Remove commented-out documentation of defunct syntax option
14969         RE_NO_EMPTY_ALTS.
14970         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
14971         Add documentation of re_set_registers.
14972         Document trick to re-use a pattern buffer by setting fastmap manually.
14973         Update documentation of struct re_pattern_buffer per public members.
14974         Uncomment documentation of equivalence class operators and
14975         collating symbol operators, since they are now implemented,
14976         Explain leftmost-longest matching in relation to alternatives.
14977         Tidy documentation of substring matching.
14978         Remove POSIX documentation, which is done better in
14979         glibc, and refer the reader there. Keep BSD API documentation, as
14980         that is not readily available elsewhere.
14981
14982 2010-09-07  Eric Blake  <eblake@redhat.com>
14983
14984         getopt: handle POSIXLY_CORRECT set but not exported
14985         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
14986         export state of POSIXLY_CORRECT, due to bash set -o posix.
14987         Reported by Dustin J. Mitchell.
14988
14989 2010-09-05  Bruno Haible  <bruno@clisp.org>
14990
14991         gnulib-tool: Highlight the changed options.
14992         * gnulib-tool (func_usage): Display the --import, --add-import,
14993         --remove-import explanations in bold font.
14994
14995 2010-09-06  Karl Berry  <karl@gnu.org>
14996
14997         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
14998
14999 2010-09-05  Bruno Haible  <bruno@clisp.org>
15000
15001         uniwidth/width: Update comment.
15002         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
15003         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
15004
15005 2010-09-05  Bruno Haible  <bruno@clisp.org>
15006
15007         isinf, isnan: Relax license.
15008         * modules/isinf (License): Change from GPL to LGPL, with consent from
15009         Ben Pfaff.
15010         * modules/isnan (License): Likewise.
15011         Requested by Ludovic Courtès.
15012
15013 2010-09-04  Bruno Haible  <bruno@clisp.org>
15014
15015         gnulib-tool: Help migration from --import to --add-import or --update.
15016         * gnulib-tool: Emit a verbose error message when --import is used
15017         without any module name.
15018
15019 2010-09-04  Bruno Haible  <bruno@clisp.org>
15020
15021         Update doc about gnulib-tool.
15022         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
15023         'gnulib-tool --update' in more detail.
15024         Reported by Eric Blake.
15025
15026 2010-09-04  Bruno Haible  <bruno@clisp.org>
15027
15028         gnulib-tool: Change --import. New options --add/remove-import.
15029         * gnulib-tool: New options --add-import, --remove-import.
15030         (func_usage): Document them.
15031         (have_associative): Define always.
15032         (func_import): In import mode, don't merge the specified settings with
15033         the cached settings. Implement remove-import mode.
15034         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
15035         Explain when to use them versus --import.
15036         (Simple update): Use --add-import instead of --import.
15037         * NEWS: Mention the change.
15038
15039 2010-09-04  Bruno Haible  <bruno@clisp.org>
15040
15041         * doc/gnulib-tool.texi (Initial import): Update paragraph about
15042         separate gnulib.mk.
15043
15044 2010-09-04  Bruno Haible  <bruno@clisp.org>
15045
15046         gnulib-tool: Don't talk about CVS any more.
15047         * gnulib-tool (func_usage, func_import): Write "version control"
15048         instead of CVS.
15049
15050 2010-09-04  Jim Meyering  <meyering@redhat.com>
15051
15052         maint.mk: avoid obscure sc_copyright_check failure in coreutils
15053         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
15054         false positives (whose names may be ill-chosen) when searching
15055         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
15056         would cause a false-positive.
15057
15058         avoid coreutils "make distcheck" failure
15059         Coreutils tests with an absolute build directory name that contains
15060         a space.  Not quoting this directory name caused a failure.
15061         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
15062         * tests/test-vc-list-files-cvs.sh: Likewise.
15063
15064 2010-09-04  Bruno Haible  <bruno@clisp.org>
15065
15066         gnulib-tool: Avoid error when run in a package without Makefile.am.
15067         * gnulib-tool: When collecting the m4dirs in a package that does not
15068         have a Makefile.am, eliminate those directories that contain no
15069         gnulib-cache.m4. Fix expression that counts these directories.
15070
15071 2010-09-04  Bruno Haible  <bruno@clisp.org>
15072
15073         update-copyright test: Improve output when perl is missing or too old.
15074         * tests/test-update-copyright.sh: Move test of Perl version down after
15075         the test whether Perl exists. Provide an explanation relating Perl's
15076         error message to Automake's SKIP: message.
15077
15078 2010-09-04  Bruno Haible  <bruno@clisp.org>
15079
15080         Don't augment PATH in TESTS_ENVIRONMENT.
15081         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
15082         set abs_aux_dir instead of augmenting PATH.
15083         * modules/vc-list-files-tests (Makefile.am): Likewise.
15084         * tests/test-update-copyright.sh: Augment PATH here.
15085         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
15086         path_prepend_.
15087         * tests/test-vc-list-files-git.sh: Likewise.
15088
15089 2010-09-04  Jim Meyering  <meyering@redhat.com>
15090
15091         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
15092         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
15093
15094 2010-09-04  Bruno Haible  <bruno@clisp.org>
15095
15096         strdup: Fix compilation error in C++ mode.
15097         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
15098         the macro.
15099
15100 2010-09-04  Bruno Haible  <bruno@clisp.org>
15101
15102         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
15103         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
15104         macro into a function.
15105         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15106
15107 2010-09-04  Bruno Haible  <bruno@clisp.org>
15108
15109         Set PATH_SEPARATOR the same way autoconf does.
15110         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
15111         the value of PATH_SEPARATOR the same way autoconf-generated configure
15112         scripts do.
15113         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
15114         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
15115
15116 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
15117
15118         Set PATH_SEPARATOR the same way autoconf does.
15119         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
15120         the same way autoconf-generated configure scripts do.
15121         * posix-modules: Likewise.
15122
15123 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
15124
15125         hash: fix safe_hasher const typo
15126         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
15127         const; otherwise, there is a type error later.
15128
15129 2010-09-02  Jim Meyering  <meyering@redhat.com>
15130
15131         test-update-copyright.sh: require perl 5.8.0
15132         * tests/test-update-copyright.sh: Require 5.8.0,
15133         which Tom G. Christensen has confirmed is adequate,
15134         while 5.6.1 is not.
15135
15136 2010-09-02  Eric Blake  <eblake@redhat.com>
15137
15138         tests: init.sh improvements for re-exec'ing with zsh
15139         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
15140         -vx through shell re-exec.
15141         Reported by Tom G. Christensen.
15142
15143         wctype: fix typo in previous commit
15144         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
15145         Reported by Ludovic Courtès.
15146
15147 2010-09-02  Jim Meyering  <meyering@redhat.com>
15148
15149         test-update-copyright.sh: skip test if Perl is too old
15150         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
15151         Reported by Tom G. Christensen.
15152
15153 2010-09-02  Bruno Haible  <bruno@clisp.org>
15154
15155         wctype: Avoid compilation error on IRIX 6.5.30.
15156         * lib/wctype.in.h (iswblank): Declare with a replacement if
15157         REPLACE_ISWBLANK is set.
15158         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
15159         declared. Set REPLACE_ISWBLANK.
15160         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
15161         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
15162         * doc/posix-headers/wctype.texi: Likewise.
15163         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15164
15165 2010-09-01  Bruno Haible  <bruno@clisp.org>
15166
15167         New module 'socketlib'.
15168         * modules/socketlib: New file.
15169         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
15170         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
15171         * modules/sockets (Depends-on): Add socketlib.
15172         Suggested by Sam Steingold <sds@gnu.org>.
15173
15174 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
15175
15176         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
15177
15178         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
15179         when one needs search access to a directory but not read access.
15180         On systems where it is available, it works in some cases where
15181         O_RDONLY does not, namely on directories that are searchable but
15182         not readable, and which need only to be searchable.  If O_SEARCH
15183         is not available, fall back to the traditional method of using
15184         O_RDONLY.
15185
15186         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
15187         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
15188         when opening a directory that needs only to be searchable.
15189         * lib/chdir-safer.c (chdir_no_follow): Likewise.
15190         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
15191         * lib/openat-proc.c (openat_proc_name): Likewise.
15192         * lib/openat.c (openat_needs_fchdir): Likewise.
15193         * lib/save-cwd.c (save_cwd): Likewise.
15194         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
15195
15196 2010-08-28  Bruno Haible  <bruno@clisp.org>
15197
15198         New module 'host-cpu-c-abi'.
15199         * modules/host-cpu-c-abi: New file.
15200         * m4/host-cpu-c-abi.m4: New file, based on part of
15201         clisp/src/m4/general.m4.
15202         Requested by Sam Steingold <sds@gnu.org>.
15203
15204 2010-08-31  Eric Blake  <eblake@redhat.com>
15205         and Jim Meyering  <meyering@redhat.com>
15206
15207         hash: factor, and guard against misbehaving hasher function
15208         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
15209         of table->hasher's return value.  Also protect against a hash value
15210         so large that adding it to table->bucket results in a NULL pointer.
15211         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
15212         Use it in place of open-coded check-and-abort.
15213
15214 2010-08-30  Bruno Haible  <bruno@clisp.org>
15215
15216         hash: silence spurious clang warning
15217         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
15218         Reported by Eric Blake.
15219
15220 2010-08-30  Eric Blake  <eblake@redhat.com>
15221
15222         strstr, memmem, strcasestr: avoid leaked shell message
15223         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
15224         FreeBSD.
15225         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
15226         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
15227
15228         tests: silence clang warning
15229         * tests/test-malloca.c (do_allocation): Avoid dead store.
15230
15231 2010-08-29  Bruno Haible  <bruno@clisp.org>
15232
15233         gettext: Fix recent mistake.
15234         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
15235
15236 2010-08-29  Bruno Haible  <bruno@clisp.org>
15237
15238         selinux-h: Offer a --without-selinux option.
15239         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
15240         --without-selinux was specified, skip all tests and define
15241         HAVE_SELINUX_SELINUX_H to 0.
15242         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
15243         set LIB_SELINUX to empty.
15244         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
15245         gl_LIBSELINUX. If --without-selinux was specified, replace
15246         selinux/context.h.
15247         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
15248
15249 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15250             Bruno Haible  <bruno@clisp.org>
15251
15252         Make the module 'realloc-gnu' work again on AIX and OSF/1.
15253         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
15254         of HAVE_REALLOC.
15255         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
15256         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
15257         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
15258         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
15259
15260 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15261             Bruno Haible  <bruno@clisp.org>
15262
15263         Make the module 'calloc-gnu' work again on AIX and OSF/1.
15264         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
15265         HAVE_CALLOC.
15266         * lib/xmalloc.c: Update accordingly.
15267         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
15268         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
15269         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
15270
15271 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15272             Bruno Haible  <bruno@clisp.org>
15273
15274         Make the module 'malloc-gnu' work again on AIX and OSF/1.
15275         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
15276         HAVE_MALLOC.
15277         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
15278         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
15279         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
15280
15281 2010-08-29  Bruno Haible  <bruno@clisp.org>
15282
15283         Update modules list.
15284         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
15285         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
15286         (String handling <string.h>): Add astrxfrm.
15287         (File system functions): Add readlinkat.
15288
15289 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15290
15291         Tests for module 'realloc-gnu'.
15292         * modules/realloc-gnu-tests: New file.
15293         * tests/test-realloc-gnu.c: New file.
15294
15295         Tests for module 'calloc-gnu'.
15296         * modules/calloc-gnu-tests: New file.
15297         * tests/test-calloc-gnu.c: New file.
15298
15299         Tests for module 'malloc-gnu'.
15300         * modules/malloc-gnu-tests: New file.
15301         * tests/test-malloc-gnu.c: New file.
15302
15303 2010-08-28  Bruno Haible  <bruno@clisp.org>
15304
15305         Rename module 'realloc' -> 'realloc-gnu'.
15306         * modules/realloc-gnu: New file, copied from modules/realloc.
15307         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
15308         obsolete.
15309         * modules/mgetgroups (Depends-on): Update.
15310         * doc/posix-functions/realloc.texi: Update.
15311         * NEWS: Mention the change.
15312
15313         Rename module 'calloc' -> 'calloc-gnu'.
15314         * modules/calloc-gnu: New file, copied from modules/calloc.
15315         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
15316         obsolete.
15317         * doc/posix-functions/calloc.texi: Update.
15318         * NEWS: Mention the change.
15319
15320         Rename module 'malloc' -> 'malloc-gnu'.
15321         * modules/malloc-gnu: New file, copied from modules/malloc.
15322         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
15323         obsolete.
15324         * modules/argp (Depends-on): Update.
15325         * modules/regex (Depends-on): Update.
15326         * doc/posix-functions/malloc.texi: Update.
15327         * NEWS: Mention the change.
15328
15329 2010-08-28  Eric Blake  <eblake@redhat.com>
15330
15331         pread, pwrite: add missing dependency
15332         * modules/pread (Depends-on): Add extensions.
15333         * modules/pwrite (Depends-on): Likewise.
15334
15335 2010-08-28  Bruno Haible  <bruno@clisp.org>
15336
15337         unistr/u*-strchr: Fix tests dependencies.
15338         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
15339         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
15340         Reported by Ian Beckwith <ianb@erislabs.net>.
15341
15342 2010-08-28  Bruno Haible  <bruno@clisp.org>
15343
15344         read-file: Don't occupy too much unused memory.
15345         * lib/read-file.c (fread_file): Shrink the buffer at the end.
15346
15347 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
15348             Eric Blake  <eblake@redhat.com>
15349             Bruno Haible  <bruno@clisp.org>
15350
15351         read-file: Avoid memory reallocations with regular files.
15352         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
15353         (fread_file): With regular files, use the remaining length as the
15354         initial buffer size.  Check against overflow.
15355         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
15356         sys_stat.
15357
15358 2010-08-28  Bruno Haible  <bruno@clisp.org>
15359
15360         ftello: Relax license.
15361         * modules/ftello (License): Relax to LGPLv2+.
15362         Reported by Eric Blake.
15363
15364 2010-08-28  Bruno Haible  <bruno@clisp.org>
15365
15366         Avoid relocwrapper link errors due to gnulib replacement functions.
15367         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
15368         function.
15369         Reported by Ben Pfaff <blp@cs.stanford.edu>.
15370
15371 2010-08-28  Bruno Haible  <bruno@clisp.org>
15372
15373         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
15374         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
15375         defined.
15376         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
15377         Suggested by Eric Blake.
15378
15379 2010-08-28  Bruno Haible  <bruno@clisp.org>
15380
15381         sys_socket, netdb: Ensure socklen_t gets defined.
15382         * modules/sys_socket (Depends-on): Add socklen.
15383         * modules/netdb (Depends-on): Likewise.
15384         * modules/getaddrinfo (Depends-on): Remove socklen.
15385         * modules/getsockopt (Depends-on): Likewise.
15386         * modules/setsockopt (Depends-on): Likewise.
15387         * tests/test-sys_socket.c: Check that socklen_t is defined.
15388         * tests/test-netdb.c: Likewise.
15389         * m4/socklen.m4: Update comments.
15390         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15391
15392 2010-08-27  Eric Blake  <eblake@redhat.com>
15393
15394         login_tty: add missing dependency
15395         * modules/login_tty (Depends-on): Add pty.
15396
15397 2010-08-26  Eric Blake  <eblake@redhat.com>
15398
15399         lib-symbol-versions: fix m4 quoting
15400         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
15401         format for AC_LINK_IFELSE.
15402
15403         glob: fix compile test
15404         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
15405
15406         btowc: fix missing file
15407         * modules/btowc (Files): Also ship locale-fr.m4.
15408
15409         lseek: fix link test
15410         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
15411         AC_LINK_IFELSE.
15412
15413         include_next: silence autoconf 2.68 warning
15414         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
15415         AC_COMPILE_IFELSE as special.
15416         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
15417         autoconf < 2.68.
15418
15419         acl: fix compilation test
15420         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
15421         AC_COMPILE_IFELSE.
15422
15423 2010-08-26  Bruno Haible  <bruno@clisp.org>
15424
15425         Modernize AC_TRY_RUN invocations.
15426         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
15427         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
15428         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
15429         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
15430         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
15431         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
15432         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
15433         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
15434         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
15435         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
15436         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
15437         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
15438         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
15439         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
15440         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
15441         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
15442         gl_MBRLEN_NUL_RETVAL): Likewise.
15443         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
15444         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
15445         Likewise.
15446         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
15447         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
15448         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
15449         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
15450         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
15451         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
15452         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
15453         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
15454         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
15455         Likewise.
15456         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
15457         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
15458         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
15459         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
15460         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15461         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
15462         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
15463         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
15464         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
15465         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
15466
15467 2010-08-26  Bruno Haible  <bruno@clisp.org>
15468
15469         Modernize AC_TRY_LINK invocations.
15470         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
15471         AC_TRY_LINK.
15472         * m4/argp.m4 (gl_ARGP): Likewise.
15473         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
15474         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
15475         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
15476         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
15477         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
15478         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
15479         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
15480         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
15481         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
15482         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
15483         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
15484         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
15485         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
15486         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
15487         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
15488         * m4/hostent.m4 (gl_HOSTENT): Likewise.
15489         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
15490         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
15491         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
15492         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
15493         Likewise.
15494         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
15495         Likewise.
15496         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
15497         Likewise.
15498         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
15499         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
15500         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
15501         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
15502         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
15503         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
15504         * m4/servent.m4 (gl_SERVENT): Likewise.
15505         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
15506         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
15507         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
15508         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
15509         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
15510         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
15511         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
15512         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15513         * modules/tsearch-tests (configure.ac): Likewise.
15514
15515 2010-08-26  Bruno Haible  <bruno@clisp.org>
15516
15517         Modernize AC_TRY_COMPILE invocations.
15518         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
15519         AC_TRY_COMPILE.
15520         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
15521         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
15522         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
15523         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
15524         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
15525         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
15526         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
15527         * m4/lock.m4 (gl_LOCK): Likewise.
15528         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
15529         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
15530         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
15531         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
15532         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
15533         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
15534         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
15535         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
15536         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
15537         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
15538         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
15539         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
15540         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
15541         extraneous semicolon.
15542
15543 2010-08-26  Jim Meyering  <meyering@redhat.com>
15544
15545         stat-time: relax license LGPL
15546         * modules/stat-time (License): Change from GPL to LGPL,
15547         with consent from all contributors, for use in libguile.
15548         Requested by Ludovic Courtès.
15549
15550 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
15551
15552         poll: return immediately on POLLHUP.
15553         * lib/poll.c (poll): Always set timeout before wait_timeout is
15554         computed.
15555
15556 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15557
15558         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
15559         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
15560         rmdir ("dir/.//"), unlinkat.
15561
15562 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
15563
15564         stdbool: avoid spurious failure with modern xlc
15565         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
15566
15567 2010-08-24  Bruno Haible  <bruno@clisp.org>
15568
15569         getloadavg: simplify code
15570         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
15571         gl_have_func. Update comments.
15572
15573 2010-08-24  Eric Blake  <eblake@redhat.com>
15574
15575         getloadavg: don't define SVR4 on cygwin
15576         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
15577         only define SVR4 when -lkvm is required.
15578         Reported by Yaakov Selkowitz.
15579
15580 2010-08-24  Bruno Haible  <bruno@clisp.org>
15581
15582         priv-set: fix comment
15583         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
15584
15585 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
15586
15587         priv-set: fix comments
15588         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
15589         to match code, as suggested by David Bartley in:
15590         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
15591
15592 2010-08-23  Eric Blake  <eblake@redhat.com>
15593
15594         stdbool: avoid rejecting clang
15595         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
15596         * tests/test-stdbool.c: Enable more tests if using the system
15597         <stdbool.h> instead of the gnulib replacement.
15598         (main): Move xlc bug test to a runtime test for all compilers.
15599         Reported by Anders Kaseorg.
15600
15601         argz: fix shell quoting issue
15602         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
15603         Reported by Charles Wilson.
15604
15605 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
15606             Erik Faye-Lund <kusmabite@gmail.com>
15607
15608         poll, select: handle ERROR_BROKEN_PIPE.
15609         * lib/poll.c (win32_compute_revents): Return POLLHUP when
15610         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
15611         * lib/select.c (win32_compute_revents): Do not mark a pipe
15612         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
15613
15614 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
15615
15616         fts: allow compilation with C++
15617         * lib/fts_.h: Specify extern "C" linkage with C++.
15618
15619 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15620
15621         Fix gnulib-tool sed script de-commentation for AIX sed.
15622         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
15623         sed.
15624
15625 2010-08-17  Eric Blake  <eblake@redhat.com>
15626
15627         test-stddef: test for (some) offsetof bugs
15628         * tests/test-stddef.c: Enhance test to ensure correct type of
15629         offsetof.
15630         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
15631         that we are not fixing at this time.
15632
15633 2010-08-15  Bruno Haible  <bruno@clisp.org>
15634
15635         stpncpy: Allow stpncpy to be defined as a macro.
15636         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
15637         if it's already correctly declared.
15638         * lib/string.in.h (stpncpy): Undefine before redefining.
15639         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
15640
15641 2010-08-14  Bruno Haible  <bruno@clisp.org>
15642
15643         Rename module 'memxfrm' to 'amemxfrm'.
15644         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
15645         (amemxfrm): Renamed from memxfrm.
15646         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
15647         (amemxfrm): Renamed from memxfrm.
15648         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
15649         * NEWS: Mention the change.
15650         * MODULES.html.sh (String handling <string.h>): Update.
15651         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
15652         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
15653         * lib/unicase/u16-casexfrm.c: Likewise.
15654         * lib/unicase/u32-casexfrm.c: Likewise.
15655         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
15656         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
15657         * lib/uninorm/u16-normxfrm.c: Likewise.
15658         * lib/uninorm/u32-normxfrm.c: Likewise.
15659         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
15660         memxfrm.
15661         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
15662         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
15663         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
15664         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
15665         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
15666         Suggested by Paul Eggert.
15667
15668 2010-08-14  Bruno Haible  <bruno@clisp.org>
15669
15670         Tests for module 'astrxfrm'.
15671         * modules/astrxfrm-tests: New file.
15672         * tests/test-astrxfrm.c: New file.
15673
15674         New module 'astrxfrm'.
15675         * lib/astrxfrm.h: New file.
15676         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
15677         * modules/astrxfrm: New file.
15678
15679 2010-08-14  Reuben Thomas <rrt@sc3d.org>
15680
15681         regex: Tweak doc.
15682         * doc/regex.texi (Overview): Don't mention regex.c.
15683         (GNU Regular Expression Compiling): Likewise.
15684         (Match-end-of-line Operator): Mention 'not_eol'.
15685
15686 2010-08-14  Brian Gough  <bjg@gnu.org>
15687             Bruno Haible  <bruno@clisp.org>
15688
15689         git-merge-changelog: add doc relating to use with bzr and hg.
15690         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
15691
15692 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
15693
15694         pthread: fix pthread.h creation for srcdir != builddir
15695         * modules/pthread (Makefile.am): Fix the rule to work also in a
15696         non-srcdir build.
15697
15698 2010-08-13  Karl Berry  <karl@gnu.org>
15699
15700         * doc/regex.texi (Predefined Syntaxes): @smallexample.
15701         * doc/posix-*/*: force line break before @url of POSIX
15702         specifications.
15703         Suggested by Werner Lemberg.
15704
15705 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
15706
15707         strtod: fix const diagnostic
15708         * lib/strtod.c (strtod): Don't assign const char * to char *,
15709         as this elicits a warning from GCC when warnings are enabled.
15710
15711 2010-08-10  Pádraig Brady <P@draigbrady.com>
15712         and Eric Blake  <eblake@redhat.com>
15713
15714         copy-acl: ignore ENOTSUP on HP-UX
15715         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
15716         so that it is available for HP-UX.
15717         * lib/copy-acl.c (qcopy_acl): Use it.
15718         Reported by Patrick M. Callahan.
15719
15720 2010-08-10  Eric Blake  <eblake@redhat.com>
15721
15722         open, chown: relax license
15723         * modules/open (License): Change to LGPLv2+, with consent by all
15724         authors, for use in augeas.
15725         * modules/chown (License): Likewise.
15726         * modules/lchown (Likewise): Likewise.
15727         Requested by Adam Stokes.
15728
15729 2010-08-09  Karl Berry  <karl@gnu.org>
15730
15731         * build-aux/ar-lib: new file, import from Automake.
15732         * config/srclist.txt: autocheck for updates.
15733
15734 2010-08-09  Eric Blake  <eblake@redhat.com>
15735
15736         readlinkat: adjust client modules
15737         * modules/areadlinkat (Depends-on): Use readlinkat, not
15738         symlinkat.
15739         * modules/areadlinkat-with-size (Depends-on): Likewise.
15740
15741         mknod: be more vocal about danger of running tests as root
15742         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
15743         root, since that is just asking for problems.
15744         Suggested by Bruno Haible, based on a report by Rainer Tammer.
15745
15746         readlinkat: split into its own module
15747         * modules/symlinkat: Split readlinkat...
15748         * modules/readlinkat: ...into separate module.
15749         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
15750         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
15751         * lib/symlinkat.c (readlinkat): Move...
15752         * lib/readlinkat.c: ...into new file.
15753         * modules/symlinkat-tests: Split readlinkat test...
15754         * modules/readlinkat-tests: ...into separate module.
15755         * tests/test-symlinkat.c: Split...
15756         * tests/test-readlinkat.c: ...into new file.
15757         * NEWS: Document the split.
15758         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
15759         * lib/unistd.in.h (readlinkat): Likewise.
15760         Suggested by Bruno Haible.
15761
15762 2010-08-08  Bruno Haible  <bruno@clisp.org>
15763
15764         memxfrm: Speed up.
15765         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
15766         that usually only one call to strxfrm is necessary for each string
15767         part.
15768         Reported by Paul Eggert <eggert@cs.ucla.edu>.
15769
15770 2010-08-07  Karl Berry  <karl@gnu.org>
15771
15772         * doc/posix-headers/limits.texi,
15773         * doc/posix-functions/malloc.texi,
15774         * doc/posix-functions/strsignal.texi: missing @item.
15775         * doc/ld-version-script.texi: spurious leading i.
15776         * doc/regex.texi (Interval Operators): no commas inside @var.
15777
15778 2010-08-01  Bruno Haible  <bruno@clisp.org>
15779
15780         Integrate the regex documentation.
15781         * doc/gnulib.texi: Define 'cn' index.
15782         (Regular expressions): New a chapter that includes regex.texi and
15783         regexprops-generic.texi.
15784         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
15785         syntax.
15786
15787         Whitespace cleanup.
15788         * doc/regex.texi: Remove trailing spaces.
15789
15790         Add regex documentation.
15791         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
15792         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
15793         Written by Kathy A. Hargreaves and Karl Berry.
15794
15795 2010-08-01  Bruno Haible  <bruno@clisp.org>
15796
15797         link: Update documentation.
15798         * doc/posix-functions/link.texi: Update regarding Solaris.
15799
15800 2010-07-31  Bruno Haible  <bruno@clisp.org>
15801
15802         Update modules list.
15803         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
15804         (String handling <string.h>): Add memcmp2, memxfrm.
15805         (Container data structures): Add xlist, xsublist, xoset.
15806         (Core language properties): Add alignof, unused-parameter.
15807         (Process control, Numeric conversion functions <stdlib.h>): Renamed
15808         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
15809         (Unibyte characters <ctype.h>): New section.
15810         (String handling <string.h>): New section.
15811         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
15812         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
15813         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
15814         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
15815         tan, tanh, tanl, y0, y1, yn.
15816         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
15817         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
15818         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
15819         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
15820         unlockpt, vdprintf, vdprintf-posix.
15821         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
15822         (File system functions): Add concat-filename, sys_file, sys_ioctl,
15823         xconcat-filename.
15824         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
15825         getdtablesize, pipe2, pipe2-safer.
15826         (Security): New section.
15827         (Networking functions): Add accept4.
15828         (Signal handling): Add sigpipe.
15829         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
15830         mbmemcasecoll.
15831         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
15832         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
15833         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
15834         pipe-filter-ii.
15835         (Misc): Add argp-version-etc, login_tty, parse-duration.
15836
15837 2010-07-31  Bruno Haible  <bruno@clisp.org>
15838
15839         Improve doc in MODULES.html.
15840         * modules/linkat (Description): Add the word "function".
15841         * modules/mkfifo (Description): Likewise.
15842         * modules/mknod (Description): Likewise.
15843         * modules/remove (Description): Likewise.
15844         * modules/renameat (Description): Likewise.
15845         * modules/stat (Description): Likewise.
15846         * modules/symlink (Description): Likewise.
15847         * modules/unlink (Description): Likewise.
15848
15849 2010-07-31  Bruno Haible  <bruno@clisp.org>
15850
15851         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
15852         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
15853         option --enable/disable-c++ instead of --enable/disable-cxx.
15854         * NEWS: Mention the change.
15855
15856 2010-07-31  Bruno Haible  <bruno@clisp.org>
15857
15858         readlink, areadlink: Relax test a bit.
15859         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
15860         alternative to ENOTDIR.
15861         * tests/test-areadlink.h (test_areadlink): Likewise.
15862         Reported by Rainer Tammer.
15863
15864 2010-07-31  Bruno Haible  <bruno@clisp.org>
15865
15866         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
15867         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
15868         character, perform the search using U_STRCHR.
15869         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
15870         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
15871         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
15872         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
15873         Suggested by Paolo Bonzini.
15874
15875 2010-07-31  Bruno Haible  <bruno@clisp.org>
15876
15877         unistr/u*-strstr: Fix dependencies.
15878         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
15879         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
15880         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
15881
15882 2010-07-31  Bruno Haible  <bruno@clisp.org>
15883
15884         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
15885         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
15886         the beginning of the loop.
15887         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
15888         cases in 'switch' statement.
15889
15890         unistr/u8-strchr: Fix several bugs.
15891         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
15892         the string. When not found, return NULL, not a pointer near the end.
15893
15894         More tests for unistr/u8-strchr.
15895         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
15896         that the function does not read past the first occurrence of the byte
15897         being searched.
15898         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
15899         * tests/unistr/test-u16-strchr.c (main): New function.
15900         * tests/unistr/test-u32-strchr.c (main): New function.
15901
15902 2010-07-31  Bruno Haible  <bruno@clisp.org>
15903
15904         posix-modules: Ignore backup files of documentation files.
15905         * posix-modules: grep only through files named *.texi.
15906
15907 2010-07-31  Bruno Haible  <bruno@clisp.org>
15908
15909         symlinkat: Fix documentation.
15910         * doc/posix-functions/readlinkat.texi: Fix module name.
15911
15912 2010-07-31  Bruno Haible  <bruno@clisp.org>
15913
15914         fchownat: Replace also when chown has the trailing slash bug.
15915         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
15916         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
15917         introduced on 2010-04-10.
15918         Reported by Rainer Tammer.
15919
15920 2010-07-31  Bruno Haible  <bruno@clisp.org>
15921
15922         linkat: Work around AIX 7.1 bug.
15923         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
15924         whether linkat handles trailing slash correctly. If not, replace linkat
15925         and define LINKAT_TRAILING_SLASH_BUG.
15926         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
15927         check whether (fd1,file1) points to a directory if file1 or file2 ends
15928         in a slash. Code taken from lib/link.c.
15929         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
15930         Reported by Rainer Tammer.
15931
15932 2010-07-31  Bruno Haible  <bruno@clisp.org>
15933
15934         Correctly determine whether pow is available in libc on AIX 7 with xlc.
15935         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
15936         This disables an xlc optimization that was causing wrong test results.
15937         Reported by Rainer Tammer.
15938
15939 2010-07-31  Bruno Haible  <bruno@clisp.org>
15940
15941         iconv: Work around AIX 6.1..7.1 bug.
15942         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
15943         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
15944         cross-compiling, guess no on all versions of AIX.
15945         Reported by Rainer Tammer.
15946
15947 2010-07-31  Bruno Haible  <bruno@clisp.org>
15948
15949         readlink: Relax test a bit.
15950         * tests/test-readlink.h (test_readlink): Allow different errno value
15951         when readlink is called with a file name that ends in / and refers to
15952         a file.
15953         Suggested by Eric Blake.
15954         Reported by Rainer Tammer.
15955
15956 2010-07-31  Bruno Haible  <bruno@clisp.org>
15957
15958         copysign: Does not require -lm on glibc systems.
15959         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
15960         gl_COMMON_DOUBLE_MATHFUNC.
15961         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
15962
15963 2010-07-31  Bruno Haible  <bruno@clisp.org>
15964
15965         duplocale: Work around AIX 7.1 bug.
15966         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
15967         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
15968         * lib/duplocale.c (rpl_duplocale): Update comment.
15969         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
15970         Reported by Rainer Tammer.
15971
15972 2010-07-30  Bruno Haible  <bruno@clisp.org>
15973
15974         dirfd: Avoid link error on AIX 7.1.
15975         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
15976         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
15977         exist, set REPLACE_DIRFD.
15978         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
15979         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
15980         * doc/posix-functions/dirfd.texi: Update.
15981         Reported by Rainer Tammer.
15982
15983 2010-07-30  Eric Blake  <eblake@redhat.com>
15984
15985         strtod: next round of AIX fixes
15986         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
15987         exponent.
15988         * tests/test-strtod.c (main): Enhance tests.
15989         * doc/posix-functions/strtod.texi (strtod): Document next bug.
15990         Reported by Rainer Tammer.
15991
15992         futimens: fix configure check
15993         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
15994         Reported by Bruno Haible.
15995
15996 2010-07-30  Bruno Haible  <bruno@clisp.org>
15997
15998         getline: Update regarding AIX.
15999         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
16000         Reported by Rainer Tammer.
16001
16002 2010-07-30  Bruno Haible  <bruno@clisp.org>
16003
16004         wcwidth: Drop replacement on AIX 7.
16005         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
16006         AIX 7.
16007         Reported by Rainer Tammer.
16008
16009 2010-07-30  Bruno Haible  <bruno@clisp.org>
16010
16011         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
16012         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
16013         a 'char *'.
16014         Reported by Rainer Tammer.
16015
16016 2010-07-30  Bruno Haible  <bruno@clisp.org>
16017
16018         unlink: Update regarding AIX.
16019         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
16020         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
16021         Reported by Rainer Tammer.
16022
16023 2010-07-30  Bruno Haible  <bruno@clisp.org>
16024
16025         symlink: Update regarding AIX.
16026         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
16027         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
16028         Reported by Rainer Tammer.
16029
16030 2010-07-30  Bruno Haible  <bruno@clisp.org>
16031
16032         strndup: Update regarding AIX.
16033         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
16034         AIX 7.
16035         Reported by Rainer Tammer.
16036
16037 2010-07-30  Bruno Haible  <bruno@clisp.org>
16038
16039         stat: Update regarding AIX.
16040         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
16041         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
16042         Reported by Rainer Tammer.
16043
16044 2010-07-30  Bruno Haible  <bruno@clisp.org>
16045
16046         truncl: Fix autoconf test.
16047         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
16048         whether truncl works.
16049         Reported by Rainer Tammer.
16050
16051 2010-07-30  Bruno Haible  <bruno@clisp.org>
16052
16053         round: Update regarding AIX.
16054         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
16055         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
16056         Reported by Rainer Tammer.
16057
16058 2010-07-30  Bruno Haible  <bruno@clisp.org>
16059
16060         rename: Update regarding AIX.
16061         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
16062         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
16063         Reported by Rainer Tammer.
16064
16065 2010-07-30  Bruno Haible  <bruno@clisp.org>
16066
16067         printf.m4: Update regarding AIX.
16068         * m4/printf.m4: Update comments regarding AIX.
16069         Reported by Rainer Tammer.
16070
16071 2010-07-30  Bruno Haible  <bruno@clisp.org>
16072
16073         iconv: Update regarding AIX.
16074         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
16075         AIX 7.
16076         Reported by Rainer Tammer.
16077
16078 2010-07-30  Bruno Haible  <bruno@clisp.org>
16079
16080         getopt: Update regarding AIX.
16081         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
16082         no on AIX.
16083         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
16084         Reported by Rainer Tammer.
16085
16086 2010-07-30  Bruno Haible  <bruno@clisp.org>
16087
16088         ldexpl; Update regarding AIX.
16089         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
16090         on AIX 7.
16091         Reported by Rainer Tammer.
16092
16093 2010-07-30  Bruno Haible  <bruno@clisp.org>
16094
16095         frexpl: Update regarding AIX.
16096         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
16097         on AIX 7.
16098         Reported by Rainer Tammer.
16099
16100 2010-07-30  Bruno Haible  <bruno@clisp.org>
16101
16102         open, fopen: Update regarding AIX.
16103         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
16104         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
16105         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
16106         * doc/posix-functions/fopen.texi: Likewise.
16107         Reported by Rainer Tammer.
16108
16109 2010-07-30  Bruno Haible  <bruno@clisp.org>
16110
16111         chown: Update doc regarding AIX.
16112         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
16113         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
16114         Reported by Rainer Tammer.
16115
16116 2010-07-30  Eric Blake  <eblake@redhat.com>
16117
16118         strtod: fix bug in replacement function on AIX
16119         * lib/strtod.c (strtod): Special case broken "0x" parse in
16120         underlying strtod.
16121         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
16122         * doc/posix-functions/strtod.texi (strtod): Likewise.
16123         Reported by Rainer Tammer.
16124
16125 2010-07-30  Bruno Haible  <bruno@clisp.org>
16126
16127         mbrlen: Fix cross-compilation guess for AIX.
16128         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
16129         guess. Leftover from 2008-12-22.
16130
16131 2010-07-30  Bruno Haible  <bruno@clisp.org>
16132
16133         mbrtowc: Fix cross-compilation guess for AIX.
16134         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
16135         guess. Leftover from 2008-12-21.
16136
16137 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
16138
16139         init.sh: work around trap limitation of some shells
16140         * tests/init.sh (setup_): Move exit trap outside of shell function.
16141
16142 2010-07-29  Eric Blake  <eblake@redhat.com>
16143
16144         strtod: aid debugging
16145         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
16146         understanding why strtod is rejected.
16147
16148 2010-07-28  Bruno Haible  <bruno@clisp.org>
16149
16150         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
16151         * lib/unistr/u8-chr.c: Include <string.h>.
16152         * tests/unistr/test-u8-chr.c: Likewise.
16153         * tests/unistr/test-u16-chr.c: Likewise.
16154         * tests/unistr/test-u32-chr.c: Likewise.
16155         * tests/unistr/test-u8-strchr.c: Likewise.
16156         * tests/unistr/test-u16-strchr.c: Likewise.
16157         * tests/unistr/test-u32-strchr.c: Likewise.
16158         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
16159         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
16160         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
16161         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
16162
16163 2010-07-28  Bruno Haible  <bruno@clisp.org>
16164
16165         Use spaces for indentation, not tabs.
16166         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
16167
16168 2010-07-27  Bruno Haible  <bruno@clisp.org>
16169
16170         mbspcasecmp: Fix function specification.
16171         * lib/string.in.h (mbspcasecmp): Fix specification comment.
16172         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
16173         Reported by Eric Blake <eblake@redhat.com>.
16174
16175 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
16176
16177         timespec: use cast and not conditional, as truncation isn't possible
16178         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
16179         instead of a conditional.  Comment about the situation in more detail.
16180         This undoes most of the 2009-10-29 patch.
16181
16182 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
16183
16184         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
16185         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
16186         * lib/unistr/u8-strchr.c: Likewise.
16187         * modules/unistr/u8-chr: Depend on memchr.
16188
16189         unistr/u*-strchr: add tests
16190         * modules/unistr/u8-strchr-tests: New file.
16191         * modules/unistr/u16-strchr-tests: New file.
16192         * modules/unistr/u32-strchr-tests: New file.
16193         * tests/unistr/test-strchr.h: New file.
16194         * tests/unistr/test-u8-strchr.c: New file.
16195         * tests/unistr/test-u16-strchr.c: New file.
16196         * tests/unistr/test-u32-strchr.c: New file.
16197
16198         unistr/u*-chr: test multibyte sequences more
16199         * tests/unistr/test-chr.h: Do complete testing of the characters in the
16200         test vector.
16201         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
16202         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
16203         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
16204
16205         unistr/u*-chr: test multibyte sequences
16206         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
16207
16208         unistr/u*-chr: prepare for multibyte tests
16209         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
16210         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
16211         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
16212         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
16213         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
16214         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
16215
16216 2010-07-18  Bruno Haible  <bruno@clisp.org>
16217
16218         unistr/u8-strchr: Optimize non-ASCII argument case.
16219         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
16220         because the first byte often matches anyway.
16221         Reported by Pádraig Brady <P@draigbrady.com>.
16222
16223 2010-07-15  Karl Berry  <karl@gnu.org>
16224
16225         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
16226
16227 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
16228
16229         getcwd: on Solaris, work better if ancestors are inaccessible
16230         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
16231         buffer and size, try again with a large buffer.  This works better
16232         on Solaris, since its getcwd succeeds even if the path to the root
16233         is inaccessible, and this is helpful in common cases such as .zfs
16234         hidden directories.  Problem reported by J Chapman Flack in
16235         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
16236         Use system getcwd if it's declared, not merely if it's partly
16237         working; use the partly-working test only to avoid needless effort
16238         if the system getcwd fails.
16239         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
16240         comment that was already obsolete and is now even more obsolete.
16241         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
16242         now might call strdup.
16243
16244 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
16245
16246         pthread: Add enough so that coreutils/src/sort.c compiles.
16247         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
16248         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
16249         gnulib. Include <sched.h> and <time.h>, as per POSIX.
16250         Include <sys/types.h>, in case it defines pthread_t.
16251         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
16252         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
16253         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
16254         (pthread_rwlockattr_t, pthread_spinlock_t):
16255         New typedefs, if HAVE_PTHREAD_T is not defined.
16256         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
16257         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
16258         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
16259         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
16260         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
16261         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
16262         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
16263         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
16264         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
16265         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
16266         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
16267         New macros.
16268         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
16269         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
16270         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
16271         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
16272         (pthread_spin_unlock): New dummy functions.
16273         (pthread_create): Return EAGAIN; don't set errno.
16274         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
16275         require AC_C_INLINE.
16276         * modules/pthread (Depends-on): Add sched, time.
16277         (pthread.h): Use AM_V_GEN.
16278
16279 2010-07-13  Bruno Haible  <bruno@clisp.org>
16280
16281         striconveh: Don't malloc memory if the result buffer is sufficient.
16282         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
16283         buffer if its size is sufficient.
16284         Reported by Ludovic Courtès <ludo@gnu.org>.
16285
16286 2010-07-13  Bruno Haible  <bruno@clisp.org>
16287
16288         strtod: Add safety check.
16289         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
16290
16291 2010-07-12  Bruno Haible  <bruno@clisp.org>
16292
16293         Unify tests that set gl_cv_func_ldexpl_no_libm.
16294         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
16295         gl_FUNC_LDEXPL.
16296         (gl_FUNC_LDEXPL): Invoke it.
16297         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
16298
16299 2010-07-12  Bruno Haible  <bruno@clisp.org>
16300
16301         Unify tests that set gl_cv_func_ldexp_no_libm.
16302         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
16303         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
16304         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
16305         (configure.ac): Simply invoke gl_FUNC_LDEXP.
16306         * modules/strtod (Files): Add m4/ldexp.m4.
16307
16308 2010-07-12  Bruno Haible  <bruno@clisp.org>
16309
16310         Unify tests that set gl_cv_func_frexpl_no_libm.
16311         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
16312         gl_FUNC_FREXPL_NO_LIBM.
16313         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
16314         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
16315
16316 2010-07-12  Bruno Haible  <bruno@clisp.org>
16317
16318         Unify tests that set gl_cv_func_frexp_no_libm.
16319         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
16320         gl_FUNC_FREXP_NO_LIBM.
16321         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
16322         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
16323
16324 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
16325
16326         memcoll: clarify sizes versus lengths, document better, and tweak perf
16327         * lib/memcoll.c (strcoll_loop, memcoll0):
16328         Improve quality of descriptive comments.  Name variables
16329         consistently as to whether they are lengths (which do not include
16330         terminating null) versus sizes (which do).
16331         * lib/xmemcoll.c (xmemcoll0): Likewise.
16332         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
16333         returned when s1size == 0; this is easier to compile and saves
16334         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
16335
16336 2010-07-12  Bruno Haible  <bruno@clisp.org>
16337
16338         Tests for module '_Exit'.
16339         * modules/_Exit-tests: New file.
16340         * tests/test-_Exit.sh: New file.
16341         * tests/test-_Exit.c: New file.
16342
16343         New module '_Exit'.
16344         * lib/stdlib.in.h (__attribute__): New macro.
16345         (_Exit): New declaration.
16346         * lib/_Exit.c: New file.
16347         * m4/_Exit.m4: New file.
16348         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
16349         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
16350         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
16351         * modules/_Exit: New file.
16352         * tests/test-stdlib-c++.cc (_Exit): Check signature.
16353         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
16354
16355 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
16356
16357         strtod: make it more-accurate typically, and don't require libm
16358         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
16359         Include limits.h.  Don't include string.h.
16360         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
16361         (locale_isspace): New function, so that no casts are needed to
16362         check whether *s is a space.
16363         (ldexp): Provide an unused dummy if not available.
16364         (scale_radix_exp, parse_number, underlying_strtod): New functions.
16365         (strtod): Use them.  This implementation prefers to use the
16366         underlying strtod if available, falling back on our own code
16367         only to fix known bugs.  This is more likely to produce an
16368         accurate result.  Also, it avoids the use of libm functions.
16369         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
16370         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
16371         was absent, but it caused a test failure with coreutils.
16372         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
16373         with libm.
16374         * modules/strtod (Makefile.am, Link): libm is no longer needed.
16375         * modules/strtod-tests (Makefile.am): Likewise.
16376
16377 2010-07-11  Pádraig Brady  <P@draigBrady.com>
16378             Bruno Haible  <bruno@clisp.org>
16379
16380         unistr/u8-strchr: Optimize ASCII argument case.
16381         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
16382
16383 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
16384
16385         (x)memcoll: minor tweaks
16386         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
16387         is after the type that it qualifies.
16388         (memcoll0): Likewise.
16389         * lib/memcoll.h (memcoll0): Likewise.
16390         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
16391         * lib/xmemcoll.h (xmemcoll0): Likewise.
16392         * lib/memcoll.c (memcoll0): Correct the comment.  This function
16393         differs from memcoll in that the NUL byte is part of the argument.
16394         Omit the abort-checks, as performance is a real issue here.  Plus,
16395         the checks were wrong anyway (an off-by-one error).  Omit local
16396         variable 'diff', as it's a bit clearer that way.
16397         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
16398         no longer needed.
16399
16400 2010-07-08  Chen Guo <chenguo4@yahoo.com>
16401
16402         (x)memcoll: speedup when input is known to be NUL delimited
16403         * lib/memcoll.c: Include stdlib.
16404         (memcoll0): New function.
16405         (strcoll_loop): New function, refactored for use in both memcoll
16406         and memcoll0.
16407         * lib/memcoll.h (memcoll0): Add prototype.
16408         * lib/xmemcoll.c (xmemcoll0): New function.
16409         (collate_error): New function, refactored for use in both xmemcoll
16410         and xmemcoll0.
16411         * lib/xmemcoll.h (xmemcoll0): Add prototype.
16412         * m4/memcoll.m4: add inline invocation.
16413
16414 2010-07-06  Pádraig Brady  <P@draigBrady.com>
16415
16416         * build-aux/bootstrap: Remove any local translations
16417         from the translation project synchronization directory,
16418         so that local only translations are not distributed.
16419
16420 2010-07-04  Bruno Haible  <bruno@clisp.org>
16421
16422         fsusage: Clarify which code applies to which platforms.
16423         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
16424         platform.
16425         * lib/fsusage.c (get_fs_usage): Likewise.
16426
16427 2010-07-04  Bruno Haible  <bruno@clisp.org>
16428
16429         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
16430         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
16431         Reported by Martin Lambers <marlam@marlam.de>.
16432
16433 2010-07-04  Jim Meyering  <meyering@redhat.com>
16434
16435         hash: once again explicitly disallow insertion of NULL
16436         * lib/hash.c (hash_insert0): Reinstate just-removed test:
16437         inserting a NULL pointer cannot work with these functions.
16438         Add a comment with details.
16439         This reverts part of the 2010-07-01 commit, 5bef1a35
16440         "hash: extend module to deal with non-pointer keys".
16441
16442 2010-07-01  Bruno Haible  <bruno@clisp.org>
16443
16444         stdbool: Update doc.
16445         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
16446         Info from Christian Weisgerber <naddy@mips.inka.de>.
16447
16448 2010-07-01  Jim Meyering  <meyering@redhat.com>
16449
16450         hash: extend module to deal with non-pointer keys
16451         * lib/hash.c (hash_insert0): New interface, much like hash_insert
16452         but that allows insertion of non-pointer entries.
16453         Do not disallow an ENTRY value of NULL.
16454         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
16455         * lib/hash.h (hash_insert0): Declare.
16456
16457 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
16458
16459         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
16460         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
16461         not present (i.e. with autoconf 2.59 and when using gettextize, not
16462         gnulib), require AC_GNU_SOURCE instead.
16463
16464 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
16465
16466         idpriv-drop: Fix tests.
16467         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
16468         not to the test-idpriv-droptemp program.
16469
16470 2010-06-29  Bruno Haible  <bruno@clisp.org>
16471
16472         string: Fix syntax error with g++ 2.96.
16473         * lib/string.in.h (__pure__): Remove definition.
16474         (_GL_ATTRIBUTE_PURE): New macro.
16475         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
16476         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
16477         Reported by Christian Weisgerber <naddy@mips.inka.de>.
16478
16479 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
16480
16481         unitypes: Fix bug introduced on 2010-05-18.
16482         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
16483
16484 2010-06-22  Eric Blake  <eblake@redhat.com>
16485
16486         memmem: slight optimization
16487         * lib/str-two-way.h (critical_factorization): Update comments.
16488         Reduce work during factorization phase.
16489         Reported by Carlos Bueno <carlos@bueno.org>.
16490
16491 2010-06-21  Bruno Haible  <bruno@clisp.org>
16492
16493         Fix HAVE_CALLOC_POSIX misnomer.
16494         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
16495         !HAVE_CALLOC_POSIX.
16496         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
16497         HAVE_CALLOC_POSIX.
16498         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
16499         instead of HAVE_CALLOC_POSIX.
16500         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
16501         HAVE_CALLOC_POSIX.
16502
16503         Use modern idiom for calloc() replacement.
16504         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
16505         AC_FUNC_CALLOC.
16506         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
16507         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
16508         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
16509         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
16510         (gl_REPLACE_CALLOC): New macro.
16511
16512 2010-06-21  Bruno Haible  <bruno@clisp.org>
16513
16514         Fix HAVE_REALLOC_POSIX misnomer.
16515         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
16516         !HAVE_REALLOC_POSIX.
16517         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
16518         HAVE_REALLOC_POSIX.
16519         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
16520         instead of HAVE_REALLOC_POSIX.
16521         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
16522         HAVE_REALLOC_POSIX.
16523
16524         Use modern idiom for realloc() replacement.
16525         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
16526         AC_FUNC_REALLOC.
16527         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
16528         Autoconf's AC_FUNC_REALLOC.
16529         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
16530         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
16531         (gl_REPLACE_REALLOC): New macro.
16532         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
16533
16534 2010-06-21  Bruno Haible  <bruno@clisp.org>
16535
16536         Fix HAVE_MALLOC_POSIX misnomer.
16537         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
16538         !HAVE_MALLOC_POSIX.
16539         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
16540         HAVE_MALLOC_POSIX.
16541         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
16542         instead of HAVE_MALLOC_POSIX.
16543         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
16544         HAVE_MALLOC_POSIX.
16545
16546         Use modern idiom for malloc() replacement.
16547         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
16548         AC_FUNC_MALLOC.
16549         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
16550         Autoconf's AC_FUNC_MALLOC.
16551         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
16552         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
16553         (gl_REPLACE_MALLOC): New macro.
16554         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
16555
16556 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
16557
16558         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
16559         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
16560         This macro takes 3 arguments, not 4.
16561
16562 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
16563
16564         ipv6: fix detection under mingw
16565         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
16566         in6_addr.
16567
16568 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
16569
16570         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
16571         that strtod() works when cross-compiling to a glibc version known
16572         to work.
16573
16574 2010-06-15  Bruno Haible  <bruno@clisp.org>
16575
16576         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
16577
16578 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
16579
16580         select: Correct timeout.
16581         * lib/select.c (rpl_select): Compute wait_timeout correctly.
16582
16583 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
16584
16585         git-version-gen: init shell var to avoid env var influence
16586         * build-aux/git-version-gen (v): Init shell var to empty.
16587
16588 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
16589
16590         priv-set: Don't assume that priv.h exists merely because getppriv does.
16591         See Jan Andersen's bug report about AIX 5L in
16592         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
16593         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
16594         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
16595         * lib/priv-set.h: Likewise.
16596         * tests/test-priv-set.c: Likewise.
16597
16598 2010-06-13  Bruno Haible  <bruno@clisp.org>
16599
16600         relocatable: Make it easier to test whether to install wrappers.
16601         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
16602         RELOCATABLE_VIA_WRAPPER.
16603
16604 2010-06-13  Bruno Haible  <bruno@clisp.org>
16605
16606         gnulib-tool: Display specified modules and dependencies differently.
16607         * gnulib-tool (func_show_module_list): New function.
16608         (func_import, func_create_testdir): Invoke it.
16609         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
16610
16611 2010-06-13  Bruno Haible  <bruno@clisp.org>
16612
16613         gnulib-tool: Align code of func_import and func_create_testdir.
16614         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
16615         specified_modules.
16616
16617 2010-06-12  Jim Meyering  <meyering@redhat.com>
16618
16619         test-inttostr: avoid spurious failure on Solaris 9
16620         * tests/test-inttostr.c (main): Skip the test when snprintf fails
16621         to accept "%ju".  Reported by Bruno Haible.
16622
16623 2010-06-11  Jim Meyering  <meyering@redhat.com>
16624
16625         test-sys_socket: mark variables as used more readably
16626         * tests/test-sys_socket.c (main): Mark otherwise unused variables
16627         as "used" explicitly via (void) statement casts.  This is more
16628         readable than using them in an artificial return expression.
16629         Suggestion from Bruno Haible.
16630
16631 2010-06-11  Bruno Haible  <bruno@clisp.org>
16632
16633         Avoid some more warnings from "gcc -Wwrite-strings".
16634         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
16635         to 'const char *'.
16636         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
16637         * tests/test-c-strcasestr.c (main): Likewise.
16638         * tests/test-mbscasestr1.c (main): Likewise.
16639         * tests/test-mbscasestr2.c (main): Likewise.
16640         * tests/test-memmem.c (main): Likewise.
16641         * tests/test-strstr.c (main): Likewise.
16642         * tests/test-strcasestr.c (main): Likewise.
16643
16644 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16645
16646         init.sh: change framework_failure_ to fail with status 99, not 1
16647         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
16648         automake's parallel-tests rule that this is an unexpected failure,
16649         even if the test is listed in XFAIL_TESTS.
16650
16651 2010-06-11  Jim Meyering  <meyering@redhat.com>
16652
16653         test-inttostr: avoid warnings about 4-6KB literal strings
16654         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
16655         Include "macros.h", for its definition of ASSERT.
16656         (CK): s/assert/ASSERT/
16657         * modules/inttostr-tests (Files): Add macros.h.
16658
16659         init.sh: don't use $ME_ or skip_ before they are defined
16660         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
16661         their first uses.  Also hoist their companions: warn_, fail_,
16662         framework_failure_, $stderr_fileno.  Prompted by a patch from
16663         Stefano Lattarini.
16664
16665         test-sys_socket: avoid set-but-not-used warnings from gcc
16666         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
16667         avoid warning about set-but-not-used variables.
16668
16669         test-xvasprintf: avoid 'const' discard warnings
16670         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
16671         "const" when assigning from literal strings.
16672         (test_xasprintf): Add "void" in function argument list to placate
16673         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
16674
16675         tests: avoid compilation warnings in argmatch and exclude tests...
16676         in packages that define ARGMATCH_DIE_DECL, like coreutils.
16677         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
16678         Since it always exits, declare with the "noreturn" attribute.
16679         * tests/test-argmatch.c: Likewise.
16680
16681         tests: avoid 'const' discard warnings in mbsstr tests
16682         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
16683         * tests/test-mbsstr2.c (main): Likewise.
16684
16685         test-verify: avoid warning from gcc's -Wmissing-declarations
16686         * tests/test-verify.c (function): Declare to be static.
16687
16688         test-inttostr.c: include <string.h> for use of strcmp
16689         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
16690
16691         test-linkat: avoid failed assertion on "other" architectures
16692         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
16693         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
16694         sparc: https://bugs.launchpad.net/bugs/591968
16695
16696 2010-06-11  Jim Meyering  <meyering@redhat.com>
16697
16698         printf.m4: avoid autoconf's "Expanded Before Required" warning
16699         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
16700         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
16701         autoconf warning.
16702
16703 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
16704
16705         Replacement header templates are now named with ".in", not "_".
16706         * doc/gnulib-intro.texi: Correct.
16707
16708 2010-06-10  Jim Meyering  <meyering@redhat.com>
16709
16710         inttostr-tests: depend on snprintf, not snprintf-posix
16711         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
16712         snprintf-posix, to avoid this aclocal failure:
16713           missing file gnulib-tests/vasnprintf.c
16714           configure.ac:45: error: expected source file, required through \
16715           AC_LIBSOURCES, not found
16716
16717 2010-06-10  Jim Meyering  <meyering@redhat.com>
16718
16719         inttostr: add a new function, inttostr, and tests
16720         The namesake function was not available.  The existence of the
16721         template file, inttostr.c makes its addition nontrivial.
16722         * lib/anytostr.c: Rename from inttostr.c.
16723         (anytostr): Rename from inttostr.
16724         * lib/inttostr.c: New file.
16725         * modules/inttostr (Files): Add anytostr.c.
16726         (Makefile.am): Set lib_SOURCES instead of ...
16727         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
16728         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
16729         * lib/offtostr.c: Likewise.
16730         * lib/uinttostr.c: Likewise.
16731         * lib/umaxtostr.c: Likewise.
16732         * modules/inttostr-tests: New file.
16733         * tests/test-inttostr.c: New file.  Test these functions.
16734
16735 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
16736             Bruno Haible  <bruno@clisp.org>
16737
16738         Add "Extending Gnulib" chapter to manual.
16739         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
16740         chapter.
16741         (Extending Gnulib): New chapter.
16742         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
16743         chapter.
16744
16745 2010-06-09  Bruno Haible  <bruno@clisp.org>
16746
16747         Avoid relocwrapper link errors due to gnulib replacement functions.
16748         * lib/areadlink.c: Use the system's malloc, realloc functions.
16749         (areadlink): Set errno to ENOMEM explicitly.
16750         * modules/areadlink (Depends-on): Remove malloc-posix.
16751         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16752
16753 2010-06-09  Bruno Haible  <bruno@clisp.org>
16754
16755         Avoid relocwrapper link errors due to gnulib replacement functions.
16756         * lib/canonicalize-lgpl.c: Use the system's malloc function.
16757         * lib/malloca.c: Likewise.
16758         * lib/relocatable.c: Likewise.
16759         * lib/progreloc.c: Use the system's malloc, sprintf functions.
16760         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
16761         * lib/setenv.c: Use the system's malloc, realloc functions.
16762         * lib/strerror.c: Use the system's sprintf function.
16763         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16764
16765 2010-06-04  Bruno Haible  <bruno@clisp.org>
16766
16767         Prefer documented low-level autoconf macro names.
16768         * m4/lib-link.m4: Use m4_translit instead of translit.
16769         * m4/environ.m4: Likewise.
16770         * m4/mathfunc.m4: Likewise.
16771         * m4/onceonly.m4: Likewise.
16772         * m4/stdint.m4: Likewise.
16773         Suggested by Eric Blake.
16774
16775 2010-06-04  Martin Lambers  <marlam@marlam.de>
16776             Bruno Haible  <bruno@clisp.org>
16777
16778         havelib: Allow library names with '+' characters.
16779         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
16780         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
16781
16782 2010-06-09  Bruno Haible  <bruno@clisp.org>
16783
16784         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
16785         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
16786         realloc failed.
16787
16788 2010-06-08  Peter Simons  <simons@cryp.to>
16789
16790         maint.mk: make the news-check rule more configurable
16791         * top/maint.mk (news-check-lines-spec): New variable.
16792         (news-check): Use "sed -n 1,10p" in place of "head".
16793
16794 2010-06-07  Jim Meyering  <meyering@redhat.com>
16795
16796         do-release-commit-and-tag: fix typo in --help
16797         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
16798
16799         regex: avoid new dead-code warning with gcc-4.6.0
16800         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
16801         if-block containing a while-loop.  It's been unused for at least
16802         5 years.
16803
16804 2010-06-05  Bruno Haible  <bruno@clisp.org>
16805
16806         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
16807         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
16808
16809 2010-06-04  Bruno Haible  <bruno@clisp.org>
16810
16811         Update to GNU gettext 0.18.1.
16812         * modules/gettext (configure.ac): Require gettext infrastructure from
16813         version 0.18.1.
16814
16815 2010-06-03  Bruno Haible  <bruno@clisp.org>
16816
16817         Don't use AC_LIBOBJ with file names in subdirectories.
16818         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
16819         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
16820         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
16821         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
16822         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
16823         gl_LIBUNISTRING_LIBSOURCE.
16824         (Makefile.am): Augment lib_SOURCES here, conditionally.
16825         * NEWS: Drop requirement for Automake option 'subdir-objects'.
16826
16827 2010-06-03  Bruno Haible  <bruno@clisp.org>
16828
16829         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
16830         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
16831         expansion does not end with a newline.
16832         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
16833         unnecessary newline.
16834
16835 2010-06-03  Bruno Haible  <bruno@clisp.org>
16836
16837         Reduce dependencies.
16838         * tests/test-quotearg.h: New file, extracted from
16839         tests/test-quotearg.c.
16840         * tests/test-quotearg-simple.c: New file, extracted from
16841         tests/test-quotearg.c.
16842         * tests/test-quotearg.c: Don't include <ctype.h>.
16843         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
16844         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
16845         use_quote_double_quotes, use_quotearg_colon): Moved to
16846         tests/test-quotearg.h.
16847         (results_g, flag_results, custom_quotes, custom_results): Moved
16848         to tests/test-quotearg-simple.c.
16849         (main): Moved the part that does not depend on gettext to
16850         tests/test-quotearg-simple.c. Return 77 if the test cannot be
16851         performed.
16852         * modules/quotearg-simple: New file.
16853         * modules/quotearg-simple-tests: New file.
16854         * modules/quotearg (Depends-on): Add quotearg-simple.
16855         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
16856         (Files): Add tests/test-quotearg.h.
16857         Reported by Paolo Bonzini.
16858
16859 2010-06-03  Bruno Haible  <bruno@clisp.org>
16860
16861         Reduce dependencies.
16862         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
16863
16864 2010-06-03  Bruno Haible  <bruno@clisp.org>
16865
16866         time: Undefine more broken macros.
16867         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
16868         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
16869         Reported by Eric Blake.
16870
16871 2010-06-03  Bruno Haible  <bruno@clisp.org>
16872
16873         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
16874         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
16875         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
16876         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
16877         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
16878         Reported by Ludovic Courtès <ludo@gnu.org>.
16879
16880 2010-06-02  Eric Blake  <eblake@redhat.com>
16881
16882         time: work with mingw + pthreads-win32 library
16883         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
16884         if timespec is defined only in pthread.h.
16885         * modules/time (Makefile.am): Substitute it.
16886         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
16887         <pthread.h>, when needed.
16888         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
16889         from the library.
16890
16891 2010-05-31  Bruno Haible  <bruno@clisp.org>
16892
16893         Avoid expanding two macros in the wrong order.
16894         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
16895         gl_LIBUNISTRING if it is defined.
16896         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
16897         autoconf >= 2.64.
16898         Reported by Ludovic Courtès <ludo@gnu.org>.
16899
16900 2010-05-27  Jim Meyering  <meyering@redhat.com>
16901
16902         maint.mk: also prohibit "#undef" of always-defined symbols
16903         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
16904         Allow more than one space before the symbol name.
16905         (sc_prohibit_always-defined_macros): Use grep's -E, now that
16906         the regexp uses alternation.
16907
16908 2010-05-26  Eric Blake  <eblake@redhat.com>
16909
16910         maint.mk: avoid echo -e
16911         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
16912         Convert all uses of echo -* to printf.
16913         Reported by Matthias Bolte.
16914
16915 2010-05-25  Bruno Haible  <bruno@clisp.org>
16916
16917         Update to GNU gettext 0.18, part 2.
16918         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
16919         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
16920
16921 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16922
16923         Add missing include in test-pwrite.c.
16924         * tests/test-pwrite.c: Include string.h, for strcmp.
16925
16926 2010-05-24  Bruno Haible  <bruno@clisp.org>
16927
16928         * NEWS: Mention requirement for Automake option 'subdir-objects'.
16929
16930 2010-05-24  Bruno Haible  <bruno@clisp.org>
16931
16932         Don't use conversion with transliteration in u{8,16,32}_strcoll.
16933         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
16934         iconveh_error argument.
16935         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
16936         U_STRCONV_TO_LOCALE.
16937         * lib/unistr/u16-strcoll.c: Likewise.
16938         * lib/unistr/u32-strcoll.c: Likewise.
16939         * modules/unistr/u8-strcoll (Depends-on): Add
16940         uniconv/u8-strconv-to-enc, localcharset. Remove
16941         uniconv/u8-strconv-to-locale.
16942         (configure.ac): Bump version number.
16943         * modules/unistr/u16-strcoll (Depends-on): Add
16944         uniconv/u16-strconv-to-enc, localcharset. Remove
16945         uniconv/u16-strconv-to-locale.
16946         (configure.ac): Bump version number.
16947         * modules/unistr/u32-strcoll (Depends-on): Add
16948         uniconv/u32-strconv-to-enc, localcharset. Remove
16949         uniconv/u32-strconv-to-locale.
16950         (configure.ac): Bump version number.
16951
16952 2010-05-24  Bruno Haible  <bruno@clisp.org>
16953
16954         Avoid a test failure on NetBSD 5.0.
16955         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
16956         an iconv() bug.
16957
16958 2010-05-24  Bruno Haible  <bruno@clisp.org>
16959
16960         Adjust #include directive style.
16961         * modules/regex (Includes): Recommend to write <regex.h>.
16962
16963 2010-05-24  Bruno Haible  <bruno@clisp.org>
16964
16965         regex: Don't require alloca.
16966         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
16967         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
16968         only inside if (0).
16969
16970 2010-05-23  Jim Meyering  <meyering@redhat.com>
16971
16972         test-renameat.c: include <sys/stat.h>
16973         * tests/test-renameat.c: Include <sys/stat.h>; required for
16974         definition of S_IS* macros.
16975
16976 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
16977
16978         Update maintainer documentation for 'relocatable-prog' module.
16979         * doc/relocatable-maint.texi: Update.
16980         Comments by Bruno Haible.
16981
16982 2010-05-23  Bruno Haible  <bruno@clisp.org>
16983
16984         git-merge-changelog: Enable --split-merged-entry by default.
16985         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
16986         (usage): Don't mention this option any more.
16987         Reported by Ralf Wildenhues.
16988
16989 2010-05-23  Jim Meyering  <meyering@redhat.com>
16990
16991         test-pwrite: do not leave behind a test file named "out"
16992         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
16993         The trivial-looking use of init.sh is really necessary.
16994         It ensures that the temporary file, "out", is created in
16995         a temporary directory, and removed upon termination.
16996         * tests/test-pwrite.sh: Re-add file.
16997         * modules/pwrite-tests: Reference it.
16998
16999 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17000
17001         Fix output redirection buglet in init.sh.
17002         * tests/init.sh: Fix redirection of stderr.
17003
17004 2010-05-20  Simon Josefsson  <simon@josefsson.org>
17005
17006         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
17007
17008 2010-05-17  Simon Josefsson  <simon@josefsson.org>
17009
17010         * modules/valgrind-tests: New file.
17011         * m4/valgrind-tests.m4: New file.
17012         * doc/valgrind-tests.texi: New file.
17013         * doc/gnulib.texi (Running self-tests under valgrind): New
17014         section.
17015
17016 2010-05-19  Bruno Haible  <bruno@clisp.org>
17017
17018         Clean up dead code in recent commit.
17019         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
17020         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
17021         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
17022         Suggested by Paolo Bonzini.
17023
17024 2010-05-19  Bruno Haible  <bruno@clisp.org>
17025
17026         Avoid valgrind error reports from libunistring.
17027         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
17028         * modules/libunistring (Files): Add it.
17029         * modules/libunistring-optional (Files): Likewise.
17030
17031 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
17032             Bruno Haible  <bruno@clisp.org>
17033
17034         New module 'libunistring-optional'.
17035         * modules/libunistring-optional: New file.
17036         * m4/libunistring-base.m4: New file.
17037         * m4/libunistring-optional.m4: New file.
17038         * lib/unicase.in.h: Renamed from lib/unicase.h.
17039         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
17040         * lib/unictype.in.h: Renamed from lib/unictype.h.
17041         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
17042         * lib/uniname.in.h: Renamed from lib/uniname.h.
17043         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
17044         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
17045         * lib/unistr.in.h: Renamed from lib/unistr.h.
17046         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
17047         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
17048         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
17049         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
17050         gl_LIBUNISTRING. If the library was found, determine the installed
17051         version and set LIBUNISTRING_VERSION.
17052         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
17053         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
17054         handle a configuration option --with-included-libunistring.
17055         * modules/libunistring (Files): Add m4/absolute-header.m4.
17056         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
17057         Add m4/libunistring-base.m4.
17058         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17059         (Makefile.am): Build unicase.h from unicase.in.h.
17060         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
17061         Add m4/libunistring-base.m4.
17062         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17063         (Makefile.am): Build uniconv.h from uniconv.in.h.
17064         * modules/unictype/base (Files): Use unictype.in.h instead of
17065         unictype.h. Add m4/libunistring-base.m4.
17066         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17067         (Makefile.am): Build unictype.h from unictype.in.h.
17068         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
17069         Add m4/libunistring-base.m4.
17070         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17071         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
17072         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
17073         Add m4/libunistring-base.m4.
17074         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17075         (Makefile.am): Build uniname.h from uniname.in.h.
17076         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
17077         Add m4/libunistring-base.m4.
17078         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17079         (Makefile.am): Build uninorm.h from uninorm.in.h.
17080         * modules/unistdio/base (Files): Use unistdio.in.h instead of
17081         unistdio.h. Add m4/libunistring-base.m4.
17082         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17083         (Makefile.am): Build unistdio.h from unistdio.in.h.
17084         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
17085         Add m4/libunistring-base.m4.
17086         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17087         (Makefile.am): Build unistr.h from unistr.in.h.
17088         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
17089         Add m4/libunistring-base.m4.
17090         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17091         (Makefile.am): Build unitypes.h from unitypes.in.h.
17092         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
17093         Add m4/libunistring-base.m4.
17094         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17095         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
17096         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
17097         uniwidth.h. Add m4/libunistring-base.m4.
17098         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17099         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
17100         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
17101         instead of augmenting lib_SOURCES.
17102         * modules/unicase/empty-suffix-context: Likewise.
17103         * modules/unicase/locale-language: Likewise.
17104         * modules/unicase/tolower: Likewise.
17105         * modules/unicase/totitle: Likewise.
17106         * modules/unicase/toupper: Likewise.
17107         * modules/unicase/u8-casecmp: Likewise.
17108         * modules/unicase/u8-casecoll: Likewise.
17109         * modules/unicase/u8-casefold: Likewise.
17110         * modules/unicase/u8-casexfrm: Likewise.
17111         * modules/unicase/u8-ct-casefold: Likewise.
17112         * modules/unicase/u8-ct-tolower: Likewise.
17113         * modules/unicase/u8-ct-totitle: Likewise.
17114         * modules/unicase/u8-ct-toupper: Likewise.
17115         * modules/unicase/u8-is-cased: Likewise.
17116         * modules/unicase/u8-is-casefolded: Likewise.
17117         * modules/unicase/u8-is-lowercase: Likewise.
17118         * modules/unicase/u8-is-titlecase: Likewise.
17119         * modules/unicase/u8-is-uppercase: Likewise.
17120         * modules/unicase/u8-prefix-context: Likewise.
17121         * modules/unicase/u8-suffix-context: Likewise.
17122         * modules/unicase/u8-tolower: Likewise.
17123         * modules/unicase/u8-totitle: Likewise.
17124         * modules/unicase/u8-toupper: Likewise.
17125         * modules/unicase/u16-casecmp: Likewise.
17126         * modules/unicase/u16-casecoll: Likewise.
17127         * modules/unicase/u16-casefold: Likewise.
17128         * modules/unicase/u16-casexfrm: Likewise.
17129         * modules/unicase/u16-ct-casefold: Likewise.
17130         * modules/unicase/u16-ct-tolower: Likewise.
17131         * modules/unicase/u16-ct-totitle: Likewise.
17132         * modules/unicase/u16-ct-toupper: Likewise.
17133         * modules/unicase/u16-is-cased: Likewise.
17134         * modules/unicase/u16-is-casefolded: Likewise.
17135         * modules/unicase/u16-is-lowercase: Likewise.
17136         * modules/unicase/u16-is-titlecase: Likewise.
17137         * modules/unicase/u16-is-uppercase: Likewise.
17138         * modules/unicase/u16-prefix-context: Likewise.
17139         * modules/unicase/u16-suffix-context: Likewise.
17140         * modules/unicase/u16-tolower: Likewise.
17141         * modules/unicase/u16-totitle: Likewise.
17142         * modules/unicase/u16-toupper: Likewise.
17143         * modules/unicase/u32-casecmp: Likewise.
17144         * modules/unicase/u32-casecoll: Likewise.
17145         * modules/unicase/u32-casefold: Likewise.
17146         * modules/unicase/u32-casexfrm: Likewise.
17147         * modules/unicase/u32-ct-casefold: Likewise.
17148         * modules/unicase/u32-ct-tolower: Likewise.
17149         * modules/unicase/u32-ct-totitle: Likewise.
17150         * modules/unicase/u32-ct-toupper: Likewise.
17151         * modules/unicase/u32-is-cased: Likewise.
17152         * modules/unicase/u32-is-casefolded: Likewise.
17153         * modules/unicase/u32-is-lowercase: Likewise.
17154         * modules/unicase/u32-is-titlecase: Likewise.
17155         * modules/unicase/u32-is-uppercase: Likewise.
17156         * modules/unicase/u32-prefix-context: Likewise.
17157         * modules/unicase/u32-suffix-context: Likewise.
17158         * modules/unicase/u32-tolower: Likewise.
17159         * modules/unicase/u32-totitle: Likewise.
17160         * modules/unicase/u32-toupper: Likewise.
17161         * modules/unicase/ulc-casecmp: Likewise.
17162         * modules/unicase/ulc-casecoll: Likewise.
17163         * modules/unicase/ulc-casexfrm: Likewise.
17164         * modules/uniconv/u8-conv-from-enc: Likewise.
17165         * modules/uniconv/u8-conv-to-enc: Likewise.
17166         * modules/uniconv/u8-strconv-from-enc: Likewise.
17167         * modules/uniconv/u8-strconv-from-locale: Likewise.
17168         * modules/uniconv/u8-strconv-to-enc: Likewise.
17169         * modules/uniconv/u8-strconv-to-locale: Likewise.
17170         * modules/uniconv/u16-conv-from-enc: Likewise.
17171         * modules/uniconv/u16-conv-to-enc: Likewise.
17172         * modules/uniconv/u16-strconv-from-enc: Likewise.
17173         * modules/uniconv/u16-strconv-from-locale: Likewise.
17174         * modules/uniconv/u16-strconv-to-enc: Likewise.
17175         * modules/uniconv/u16-strconv-to-locale: Likewise.
17176         * modules/uniconv/u32-conv-from-enc: Likewise.
17177         * modules/uniconv/u32-conv-to-enc: Likewise.
17178         * modules/uniconv/u32-strconv-from-enc: Likewise.
17179         * modules/uniconv/u32-strconv-from-locale: Likewise.
17180         * modules/uniconv/u32-strconv-to-enc: Likewise.
17181         * modules/uniconv/u32-strconv-to-locale: Likewise.
17182         * modules/unictype/bidicategory-byname: Likewise.
17183         * modules/unictype/bidicategory-name: Likewise.
17184         * modules/unictype/bidicategory-of: Likewise.
17185         * modules/unictype/bidicategory-test: Likewise.
17186         * modules/unictype/block-list: Likewise.
17187         * modules/unictype/block-test: Likewise.
17188         * modules/unictype/category-C: Likewise.
17189         * modules/unictype/category-Cc: Likewise.
17190         * modules/unictype/category-Cf: Likewise.
17191         * modules/unictype/category-Cn: Likewise.
17192         * modules/unictype/category-Co: Likewise.
17193         * modules/unictype/category-Cs: Likewise.
17194         * modules/unictype/category-L: Likewise.
17195         * modules/unictype/category-Ll: Likewise.
17196         * modules/unictype/category-Lm: Likewise.
17197         * modules/unictype/category-Lo: Likewise.
17198         * modules/unictype/category-Lt: Likewise.
17199         * modules/unictype/category-Lu: Likewise.
17200         * modules/unictype/category-M: Likewise.
17201         * modules/unictype/category-Mc: Likewise.
17202         * modules/unictype/category-Me: Likewise.
17203         * modules/unictype/category-Mn: Likewise.
17204         * modules/unictype/category-N: Likewise.
17205         * modules/unictype/category-Nd: Likewise.
17206         * modules/unictype/category-Nl: Likewise.
17207         * modules/unictype/category-No: Likewise.
17208         * modules/unictype/category-P: Likewise.
17209         * modules/unictype/category-Pc: Likewise.
17210         * modules/unictype/category-Pd: Likewise.
17211         * modules/unictype/category-Pe: Likewise.
17212         * modules/unictype/category-Pf: Likewise.
17213         * modules/unictype/category-Pi: Likewise.
17214         * modules/unictype/category-Po: Likewise.
17215         * modules/unictype/category-Ps: Likewise.
17216         * modules/unictype/category-S: Likewise.
17217         * modules/unictype/category-Sc: Likewise.
17218         * modules/unictype/category-Sk: Likewise.
17219         * modules/unictype/category-Sm: Likewise.
17220         * modules/unictype/category-So: Likewise.
17221         * modules/unictype/category-Z: Likewise.
17222         * modules/unictype/category-Zl: Likewise.
17223         * modules/unictype/category-Zp: Likewise.
17224         * modules/unictype/category-Zs: Likewise.
17225         * modules/unictype/category-and: Likewise.
17226         * modules/unictype/category-and-not: Likewise.
17227         * modules/unictype/category-byname: Likewise.
17228         * modules/unictype/category-name: Likewise.
17229         * modules/unictype/category-none: Likewise.
17230         * modules/unictype/category-of: Likewise.
17231         * modules/unictype/category-or: Likewise.
17232         * modules/unictype/category-test: Likewise.
17233         * modules/unictype/combining-class: Likewise.
17234         * modules/unictype/ctype-alnum: Likewise.
17235         * modules/unictype/ctype-alpha: Likewise.
17236         * modules/unictype/ctype-blank: Likewise.
17237         * modules/unictype/ctype-cntrl: Likewise.
17238         * modules/unictype/ctype-digit: Likewise.
17239         * modules/unictype/ctype-graph: Likewise.
17240         * modules/unictype/ctype-lower: Likewise.
17241         * modules/unictype/ctype-print: Likewise.
17242         * modules/unictype/ctype-punct: Likewise.
17243         * modules/unictype/ctype-space: Likewise.
17244         * modules/unictype/ctype-upper: Likewise.
17245         * modules/unictype/ctype-xdigit: Likewise.
17246         * modules/unictype/decimal-digit: Likewise.
17247         * modules/unictype/digit: Likewise.
17248         * modules/unictype/mirror: Likewise.
17249         * modules/unictype/numeric: Likewise.
17250         * modules/unictype/property-alphabetic: Likewise.
17251         * modules/unictype/property-ascii-hex-digit: Likewise.
17252         * modules/unictype/property-bidi-arabic-digit: Likewise.
17253         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
17254         * modules/unictype/property-bidi-block-separator: Likewise.
17255         * modules/unictype/property-bidi-boundary-neutral: Likewise.
17256         * modules/unictype/property-bidi-common-separator: Likewise.
17257         * modules/unictype/property-bidi-control: Likewise.
17258         * modules/unictype/property-bidi-embedding-or-override: Likewise.
17259         * modules/unictype/property-bidi-eur-num-separator: Likewise.
17260         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
17261         * modules/unictype/property-bidi-european-digit: Likewise.
17262         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
17263         * modules/unictype/property-bidi-left-to-right: Likewise.
17264         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
17265         * modules/unictype/property-bidi-other-neutral: Likewise.
17266         * modules/unictype/property-bidi-pdf: Likewise.
17267         * modules/unictype/property-bidi-segment-separator: Likewise.
17268         * modules/unictype/property-bidi-whitespace: Likewise.
17269         * modules/unictype/property-byname: Likewise.
17270         * modules/unictype/property-combining: Likewise.
17271         * modules/unictype/property-composite: Likewise.
17272         * modules/unictype/property-currency-symbol: Likewise.
17273         * modules/unictype/property-dash: Likewise.
17274         * modules/unictype/property-decimal-digit: Likewise.
17275         * modules/unictype/property-default-ignorable-code-point: Likewise.
17276         * modules/unictype/property-deprecated: Likewise.
17277         * modules/unictype/property-diacritic: Likewise.
17278         * modules/unictype/property-extender: Likewise.
17279         * modules/unictype/property-format-control: Likewise.
17280         * modules/unictype/property-grapheme-base: Likewise.
17281         * modules/unictype/property-grapheme-extend: Likewise.
17282         * modules/unictype/property-grapheme-link: Likewise.
17283         * modules/unictype/property-hex-digit: Likewise.
17284         * modules/unictype/property-hyphen: Likewise.
17285         * modules/unictype/property-id-continue: Likewise.
17286         * modules/unictype/property-id-start: Likewise.
17287         * modules/unictype/property-ideographic: Likewise.
17288         * modules/unictype/property-ids-binary-operator: Likewise.
17289         * modules/unictype/property-ids-trinary-operator: Likewise.
17290         * modules/unictype/property-ignorable-control: Likewise.
17291         * modules/unictype/property-iso-control: Likewise.
17292         * modules/unictype/property-join-control: Likewise.
17293         * modules/unictype/property-left-of-pair: Likewise.
17294         * modules/unictype/property-line-separator: Likewise.
17295         * modules/unictype/property-logical-order-exception: Likewise.
17296         * modules/unictype/property-lowercase: Likewise.
17297         * modules/unictype/property-math: Likewise.
17298         * modules/unictype/property-non-break: Likewise.
17299         * modules/unictype/property-not-a-character: Likewise.
17300         * modules/unictype/property-numeric: Likewise.
17301         * modules/unictype/property-other-alphabetic: Likewise.
17302         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
17303         * modules/unictype/property-other-grapheme-extend: Likewise.
17304         * modules/unictype/property-other-id-continue: Likewise.
17305         * modules/unictype/property-other-id-start: Likewise.
17306         * modules/unictype/property-other-lowercase: Likewise.
17307         * modules/unictype/property-other-math: Likewise.
17308         * modules/unictype/property-other-uppercase: Likewise.
17309         * modules/unictype/property-paired-punctuation: Likewise.
17310         * modules/unictype/property-paragraph-separator: Likewise.
17311         * modules/unictype/property-pattern-syntax: Likewise.
17312         * modules/unictype/property-pattern-white-space: Likewise.
17313         * modules/unictype/property-private-use: Likewise.
17314         * modules/unictype/property-punctuation: Likewise.
17315         * modules/unictype/property-quotation-mark: Likewise.
17316         * modules/unictype/property-radical: Likewise.
17317         * modules/unictype/property-sentence-terminal: Likewise.
17318         * modules/unictype/property-soft-dotted: Likewise.
17319         * modules/unictype/property-space: Likewise.
17320         * modules/unictype/property-terminal-punctuation: Likewise.
17321         * modules/unictype/property-test: Likewise.
17322         * modules/unictype/property-titlecase: Likewise.
17323         * modules/unictype/property-unassigned-code-value: Likewise.
17324         * modules/unictype/property-unified-ideograph: Likewise.
17325         * modules/unictype/property-uppercase: Likewise.
17326         * modules/unictype/property-variation-selector: Likewise.
17327         * modules/unictype/property-white-space: Likewise.
17328         * modules/unictype/property-xid-continue: Likewise.
17329         * modules/unictype/property-xid-start: Likewise.
17330         * modules/unictype/property-zero-width: Likewise.
17331         * modules/unictype/scripts: Likewise.
17332         * modules/unictype/syntax-c-ident: Likewise.
17333         * modules/unictype/syntax-c-whitespace: Likewise.
17334         * modules/unictype/syntax-java-ident: Likewise.
17335         * modules/unictype/syntax-java-whitespace: Likewise.
17336         * modules/unilbrk/u8-possible-linebreaks: Likewise.
17337         * modules/unilbrk/u8-width-linebreaks: Likewise.
17338         * modules/unilbrk/u16-possible-linebreaks: Likewise.
17339         * modules/unilbrk/u16-width-linebreaks: Likewise.
17340         * modules/unilbrk/u32-possible-linebreaks: Likewise.
17341         * modules/unilbrk/u32-width-linebreaks: Likewise.
17342         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
17343         * modules/unilbrk/ulc-width-linebreaks: Likewise.
17344         * modules/uniname/uniname: Likewise.
17345         * modules/uninorm/canonical-decomposition: Likewise.
17346         * modules/uninorm/composition: Likewise.
17347         * modules/uninorm/decomposing-form: Likewise.
17348         * modules/uninorm/decomposition: Likewise.
17349         * modules/uninorm/filter: Likewise.
17350         * modules/uninorm/nfc: Likewise.
17351         * modules/uninorm/nfd: Likewise.
17352         * modules/uninorm/nfkc: Likewise.
17353         * modules/uninorm/nfkd: Likewise.
17354         * modules/uninorm/u8-normalize: Likewise.
17355         * modules/uninorm/u8-normcmp: Likewise.
17356         * modules/uninorm/u8-normcoll: Likewise.
17357         * modules/uninorm/u8-normxfrm: Likewise.
17358         * modules/uninorm/u16-normalize: Likewise.
17359         * modules/uninorm/u16-normcmp: Likewise.
17360         * modules/uninorm/u16-normcoll: Likewise.
17361         * modules/uninorm/u16-normxfrm: Likewise.
17362         * modules/uninorm/u32-normalize: Likewise.
17363         * modules/uninorm/u32-normcmp: Likewise.
17364         * modules/uninorm/u32-normcoll: Likewise.
17365         * modules/uninorm/u32-normxfrm: Likewise.
17366         * modules/unistdio/u8-asnprintf: Likewise.
17367         * modules/unistdio/u8-asprintf: Likewise.
17368         * modules/unistdio/u8-snprintf: Likewise.
17369         * modules/unistdio/u8-sprintf: Likewise.
17370         * modules/unistdio/u8-u8-asnprintf: Likewise.
17371         * modules/unistdio/u8-u8-asprintf: Likewise.
17372         * modules/unistdio/u8-u8-snprintf: Likewise.
17373         * modules/unistdio/u8-u8-sprintf: Likewise.
17374         * modules/unistdio/u8-u8-vasnprintf: Likewise.
17375         * modules/unistdio/u8-u8-vasprintf: Likewise.
17376         * modules/unistdio/u8-u8-vsnprintf: Likewise.
17377         * modules/unistdio/u8-u8-vsprintf: Likewise.
17378         * modules/unistdio/u8-vasnprintf: Likewise.
17379         * modules/unistdio/u8-vasprintf: Likewise.
17380         * modules/unistdio/u8-vsnprintf: Likewise.
17381         * modules/unistdio/u8-vsprintf: Likewise.
17382         * modules/unistdio/u16-asnprintf: Likewise.
17383         * modules/unistdio/u16-asprintf: Likewise.
17384         * modules/unistdio/u16-snprintf: Likewise.
17385         * modules/unistdio/u16-sprintf: Likewise.
17386         * modules/unistdio/u16-u16-asnprintf: Likewise.
17387         * modules/unistdio/u16-u16-asprintf: Likewise.
17388         * modules/unistdio/u16-u16-snprintf: Likewise.
17389         * modules/unistdio/u16-u16-sprintf: Likewise.
17390         * modules/unistdio/u16-u16-vasnprintf: Likewise.
17391         * modules/unistdio/u16-u16-vasprintf: Likewise.
17392         * modules/unistdio/u16-u16-vsnprintf: Likewise.
17393         * modules/unistdio/u16-u16-vsprintf: Likewise.
17394         * modules/unistdio/u16-vasnprintf: Likewise.
17395         * modules/unistdio/u16-vasprintf: Likewise.
17396         * modules/unistdio/u16-vsnprintf: Likewise.
17397         * modules/unistdio/u16-vsprintf: Likewise.
17398         * modules/unistdio/u32-asnprintf: Likewise.
17399         * modules/unistdio/u32-asprintf: Likewise.
17400         * modules/unistdio/u32-snprintf: Likewise.
17401         * modules/unistdio/u32-sprintf: Likewise.
17402         * modules/unistdio/u32-u32-asnprintf: Likewise.
17403         * modules/unistdio/u32-u32-asprintf: Likewise.
17404         * modules/unistdio/u32-u32-snprintf: Likewise.
17405         * modules/unistdio/u32-u32-sprintf: Likewise.
17406         * modules/unistdio/u32-u32-vasnprintf: Likewise.
17407         * modules/unistdio/u32-u32-vasprintf: Likewise.
17408         * modules/unistdio/u32-u32-vsnprintf: Likewise.
17409         * modules/unistdio/u32-u32-vsprintf: Likewise.
17410         * modules/unistdio/u32-vasnprintf: Likewise.
17411         * modules/unistdio/u32-vasprintf: Likewise.
17412         * modules/unistdio/u32-vsnprintf: Likewise.
17413         * modules/unistdio/u32-vsprintf: Likewise.
17414         * modules/unistdio/ulc-asnprintf: Likewise.
17415         * modules/unistdio/ulc-asprintf: Likewise.
17416         * modules/unistdio/ulc-fprintf: Likewise.
17417         * modules/unistdio/ulc-snprintf: Likewise.
17418         * modules/unistdio/ulc-sprintf: Likewise.
17419         * modules/unistdio/ulc-vasnprintf: Likewise.
17420         * modules/unistdio/ulc-vasprintf: Likewise.
17421         * modules/unistdio/ulc-vfprintf: Likewise.
17422         * modules/unistdio/ulc-vsnprintf: Likewise.
17423         * modules/unistdio/ulc-vsprintf: Likewise.
17424         * modules/unistr/u8-check: Likewise.
17425         * modules/unistr/u8-chr: Likewise.
17426         * modules/unistr/u8-cmp: Likewise.
17427         * modules/unistr/u8-cmp2: Likewise.
17428         * modules/unistr/u8-cpy: Likewise.
17429         * modules/unistr/u8-cpy-alloc: Likewise.
17430         * modules/unistr/u8-endswith: Likewise.
17431         * modules/unistr/u8-mblen: Likewise.
17432         * modules/unistr/u8-mbsnlen: Likewise.
17433         * modules/unistr/u8-mbtouc: Likewise.
17434         * modules/unistr/u8-mbtouc-unsafe: Likewise.
17435         * modules/unistr/u8-mbtoucr: Likewise.
17436         * modules/unistr/u8-move: Likewise.
17437         * modules/unistr/u8-next: Likewise.
17438         * modules/unistr/u8-prev: Likewise.
17439         * modules/unistr/u8-set: Likewise.
17440         * modules/unistr/u8-startswith: Likewise.
17441         * modules/unistr/u8-stpcpy: Likewise.
17442         * modules/unistr/u8-stpncpy: Likewise.
17443         * modules/unistr/u8-strcat: Likewise.
17444         * modules/unistr/u8-strchr: Likewise.
17445         * modules/unistr/u8-strcmp: Likewise.
17446         * modules/unistr/u8-strcoll: Likewise.
17447         * modules/unistr/u8-strcpy: Likewise.
17448         * modules/unistr/u8-strcspn: Likewise.
17449         * modules/unistr/u8-strdup: Likewise.
17450         * modules/unistr/u8-strlen: Likewise.
17451         * modules/unistr/u8-strmblen: Likewise.
17452         * modules/unistr/u8-strmbtouc: Likewise.
17453         * modules/unistr/u8-strncat: Likewise.
17454         * modules/unistr/u8-strncmp: Likewise.
17455         * modules/unistr/u8-strncpy: Likewise.
17456         * modules/unistr/u8-strnlen: Likewise.
17457         * modules/unistr/u8-strpbrk: Likewise.
17458         * modules/unistr/u8-strrchr: Likewise.
17459         * modules/unistr/u8-strspn: Likewise.
17460         * modules/unistr/u8-strstr: Likewise.
17461         * modules/unistr/u8-strtok: Likewise.
17462         * modules/unistr/u8-to-u16: Likewise.
17463         * modules/unistr/u8-to-u32: Likewise.
17464         * modules/unistr/u8-uctomb: Likewise.
17465         * modules/unistr/u16-check: Likewise.
17466         * modules/unistr/u16-chr: Likewise.
17467         * modules/unistr/u16-cmp: Likewise.
17468         * modules/unistr/u16-cmp2: Likewise.
17469         * modules/unistr/u16-cpy: Likewise.
17470         * modules/unistr/u16-cpy-alloc: Likewise.
17471         * modules/unistr/u16-endswith: Likewise.
17472         * modules/unistr/u16-mblen: Likewise.
17473         * modules/unistr/u16-mbsnlen: Likewise.
17474         * modules/unistr/u16-mbtouc: Likewise.
17475         * modules/unistr/u16-mbtouc-unsafe: Likewise.
17476         * modules/unistr/u16-mbtoucr: Likewise.
17477         * modules/unistr/u16-move: Likewise.
17478         * modules/unistr/u16-next: Likewise.
17479         * modules/unistr/u16-prev: Likewise.
17480         * modules/unistr/u16-set: Likewise.
17481         * modules/unistr/u16-startswith: Likewise.
17482         * modules/unistr/u16-stpcpy: Likewise.
17483         * modules/unistr/u16-stpncpy: Likewise.
17484         * modules/unistr/u16-strcat: Likewise.
17485         * modules/unistr/u16-strchr: Likewise.
17486         * modules/unistr/u16-strcmp: Likewise.
17487         * modules/unistr/u16-strcoll: Likewise.
17488         * modules/unistr/u16-strcpy: Likewise.
17489         * modules/unistr/u16-strcspn: Likewise.
17490         * modules/unistr/u16-strdup: Likewise.
17491         * modules/unistr/u16-strlen: Likewise.
17492         * modules/unistr/u16-strmblen: Likewise.
17493         * modules/unistr/u16-strmbtouc: Likewise.
17494         * modules/unistr/u16-strncat: Likewise.
17495         * modules/unistr/u16-strncmp: Likewise.
17496         * modules/unistr/u16-strncpy: Likewise.
17497         * modules/unistr/u16-strnlen: Likewise.
17498         * modules/unistr/u16-strpbrk: Likewise.
17499         * modules/unistr/u16-strrchr: Likewise.
17500         * modules/unistr/u16-strspn: Likewise.
17501         * modules/unistr/u16-strstr: Likewise.
17502         * modules/unistr/u16-strtok: Likewise.
17503         * modules/unistr/u16-to-u32: Likewise.
17504         * modules/unistr/u16-to-u8: Likewise.
17505         * modules/unistr/u16-uctomb: Likewise.
17506         * modules/unistr/u32-check: Likewise.
17507         * modules/unistr/u32-chr: Likewise.
17508         * modules/unistr/u32-cmp: Likewise.
17509         * modules/unistr/u32-cmp2: Likewise.
17510         * modules/unistr/u32-cpy: Likewise.
17511         * modules/unistr/u32-cpy-alloc: Likewise.
17512         * modules/unistr/u32-endswith: Likewise.
17513         * modules/unistr/u32-mblen: Likewise.
17514         * modules/unistr/u32-mbsnlen: Likewise.
17515         * modules/unistr/u32-mbtouc: Likewise.
17516         * modules/unistr/u32-mbtouc-unsafe: Likewise.
17517         * modules/unistr/u32-mbtoucr: Likewise.
17518         * modules/unistr/u32-move: Likewise.
17519         * modules/unistr/u32-next: Likewise.
17520         * modules/unistr/u32-prev: Likewise.
17521         * modules/unistr/u32-set: Likewise.
17522         * modules/unistr/u32-startswith: Likewise.
17523         * modules/unistr/u32-stpcpy: Likewise.
17524         * modules/unistr/u32-stpncpy: Likewise.
17525         * modules/unistr/u32-strcat: Likewise.
17526         * modules/unistr/u32-strchr: Likewise.
17527         * modules/unistr/u32-strcmp: Likewise.
17528         * modules/unistr/u32-strcoll: Likewise.
17529         * modules/unistr/u32-strcpy: Likewise.
17530         * modules/unistr/u32-strcspn: Likewise.
17531         * modules/unistr/u32-strdup: Likewise.
17532         * modules/unistr/u32-strlen: Likewise.
17533         * modules/unistr/u32-strmblen: Likewise.
17534         * modules/unistr/u32-strmbtouc: Likewise.
17535         * modules/unistr/u32-strncat: Likewise.
17536         * modules/unistr/u32-strncmp: Likewise.
17537         * modules/unistr/u32-strncpy: Likewise.
17538         * modules/unistr/u32-strnlen: Likewise.
17539         * modules/unistr/u32-strpbrk: Likewise.
17540         * modules/unistr/u32-strrchr: Likewise.
17541         * modules/unistr/u32-strspn: Likewise.
17542         * modules/unistr/u32-strstr: Likewise.
17543         * modules/unistr/u32-strtok: Likewise.
17544         * modules/unistr/u32-to-u16: Likewise.
17545         * modules/unistr/u32-to-u8: Likewise.
17546         * modules/unistr/u32-uctomb: Likewise.
17547         * modules/uniwbrk/u8-wordbreaks: Likewise.
17548         * modules/uniwbrk/u16-wordbreaks: Likewise.
17549         * modules/uniwbrk/u32-wordbreaks: Likewise.
17550         * modules/uniwbrk/ulc-wordbreaks: Likewise.
17551         * modules/uniwbrk/wordbreak-property: Likewise.
17552         * modules/uniwidth/u8-strwidth: Likewise.
17553         * modules/uniwidth/u8-width: Likewise.
17554         * modules/uniwidth/u16-strwidth: Likewise.
17555         * modules/uniwidth/u16-width: Likewise.
17556         * modules/uniwidth/u32-strwidth: Likewise.
17557         * modules/uniwidth/u32-width: Likewise.
17558         * modules/uniwidth/width: Likewise.
17559         * modules/unicase/cased-tests (Makefile.am): Link all test programs
17560         with $(LIBUNISTRING).
17561         * modules/unicase/ignorable-tests: Likewise.
17562         * modules/unicase/locale-language-tests: Likewise.
17563         * modules/unicase/tolower-tests: Likewise.
17564         * modules/unicase/totitle-tests: Likewise.
17565         * modules/unicase/toupper-tests: Likewise.
17566         * modules/unicase/u8-casecmp-tests: Likewise.
17567         * modules/unicase/u8-casecoll-tests: Likewise.
17568         * modules/unicase/u8-casefold-tests: Likewise.
17569         * modules/unicase/u8-is-cased-tests: Likewise.
17570         * modules/unicase/u8-is-casefolded-tests: Likewise.
17571         * modules/unicase/u8-is-lowercase-tests: Likewise.
17572         * modules/unicase/u8-is-titlecase-tests: Likewise.
17573         * modules/unicase/u8-is-uppercase-tests: Likewise.
17574         * modules/unicase/u8-tolower-tests: Likewise.
17575         * modules/unicase/u8-totitle-tests: Likewise.
17576         * modules/unicase/u8-toupper-tests: Likewise.
17577         * modules/unicase/u16-casecmp-tests: Likewise.
17578         * modules/unicase/u16-casecoll-tests: Likewise.
17579         * modules/unicase/u16-casefold-tests: Likewise.
17580         * modules/unicase/u16-is-cased-tests: Likewise.
17581         * modules/unicase/u16-is-casefolded-tests: Likewise.
17582         * modules/unicase/u16-is-lowercase-tests: Likewise.
17583         * modules/unicase/u16-is-titlecase-tests: Likewise.
17584         * modules/unicase/u16-is-uppercase-tests: Likewise.
17585         * modules/unicase/u16-tolower-tests: Likewise.
17586         * modules/unicase/u16-totitle-tests: Likewise.
17587         * modules/unicase/u16-toupper-tests: Likewise.
17588         * modules/unicase/u32-casecmp-tests: Likewise.
17589         * modules/unicase/u32-casecoll-tests: Likewise.
17590         * modules/unicase/u32-casefold-tests: Likewise.
17591         * modules/unicase/u32-is-cased-tests: Likewise.
17592         * modules/unicase/u32-is-casefolded-tests: Likewise.
17593         * modules/unicase/u32-is-lowercase-tests: Likewise.
17594         * modules/unicase/u32-is-titlecase-tests: Likewise.
17595         * modules/unicase/u32-is-uppercase-tests: Likewise.
17596         * modules/unicase/u32-tolower-tests: Likewise.
17597         * modules/unicase/u32-totitle-tests: Likewise.
17598         * modules/unicase/u32-toupper-tests: Likewise.
17599         * modules/unicase/ulc-casecmp-tests: Likewise.
17600         * modules/unicase/ulc-casecoll-tests: Likewise.
17601         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
17602         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
17603         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
17604         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
17605         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
17606         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
17607         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
17608         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
17609         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
17610         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
17611         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
17612         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
17613         * modules/unictype/bidicategory-byname-tests: Likewise.
17614         * modules/unictype/bidicategory-name-tests: Likewise.
17615         * modules/unictype/bidicategory-of-tests: Likewise.
17616         * modules/unictype/bidicategory-test-tests: Likewise.
17617         * modules/unictype/block-list-tests: Likewise.
17618         * modules/unictype/block-of-tests: Likewise.
17619         * modules/unictype/block-test-tests: Likewise.
17620         * modules/unictype/category-C-tests: Likewise.
17621         * modules/unictype/category-Cc-tests: Likewise.
17622         * modules/unictype/category-Cf-tests: Likewise.
17623         * modules/unictype/category-Cn-tests: Likewise.
17624         * modules/unictype/category-Co-tests: Likewise.
17625         * modules/unictype/category-Cs-tests: Likewise.
17626         * modules/unictype/category-L-tests: Likewise.
17627         * modules/unictype/category-Ll-tests: Likewise.
17628         * modules/unictype/category-Lm-tests: Likewise.
17629         * modules/unictype/category-Lo-tests: Likewise.
17630         * modules/unictype/category-Lt-tests: Likewise.
17631         * modules/unictype/category-Lu-tests: Likewise.
17632         * modules/unictype/category-M-tests: Likewise.
17633         * modules/unictype/category-Mc-tests: Likewise.
17634         * modules/unictype/category-Me-tests: Likewise.
17635         * modules/unictype/category-Mn-tests: Likewise.
17636         * modules/unictype/category-N-tests: Likewise.
17637         * modules/unictype/category-Nd-tests: Likewise.
17638         * modules/unictype/category-Nl-tests: Likewise.
17639         * modules/unictype/category-No-tests: Likewise.
17640         * modules/unictype/category-P-tests: Likewise.
17641         * modules/unictype/category-Pc-tests: Likewise.
17642         * modules/unictype/category-Pd-tests: Likewise.
17643         * modules/unictype/category-Pe-tests: Likewise.
17644         * modules/unictype/category-Pf-tests: Likewise.
17645         * modules/unictype/category-Pi-tests: Likewise.
17646         * modules/unictype/category-Po-tests: Likewise.
17647         * modules/unictype/category-Ps-tests: Likewise.
17648         * modules/unictype/category-S-tests: Likewise.
17649         * modules/unictype/category-Sc-tests: Likewise.
17650         * modules/unictype/category-Sk-tests: Likewise.
17651         * modules/unictype/category-Sm-tests: Likewise.
17652         * modules/unictype/category-So-tests: Likewise.
17653         * modules/unictype/category-Z-tests: Likewise.
17654         * modules/unictype/category-Zl-tests: Likewise.
17655         * modules/unictype/category-Zp-tests: Likewise.
17656         * modules/unictype/category-Zs-tests: Likewise.
17657         * modules/unictype/category-and-not-tests: Likewise.
17658         * modules/unictype/category-and-tests: Likewise.
17659         * modules/unictype/category-byname-tests: Likewise.
17660         * modules/unictype/category-name-tests: Likewise.
17661         * modules/unictype/category-none-tests: Likewise.
17662         * modules/unictype/category-of-tests: Likewise.
17663         * modules/unictype/category-or-tests: Likewise.
17664         * modules/unictype/category-test-withtable-tests: Likewise.
17665         * modules/unictype/combining-class-tests: Likewise.
17666         * modules/unictype/ctype-alnum-tests: Likewise.
17667         * modules/unictype/ctype-alpha-tests: Likewise.
17668         * modules/unictype/ctype-blank-tests: Likewise.
17669         * modules/unictype/ctype-cntrl-tests: Likewise.
17670         * modules/unictype/ctype-digit-tests: Likewise.
17671         * modules/unictype/ctype-graph-tests: Likewise.
17672         * modules/unictype/ctype-lower-tests: Likewise.
17673         * modules/unictype/ctype-print-tests: Likewise.
17674         * modules/unictype/ctype-punct-tests: Likewise.
17675         * modules/unictype/ctype-space-tests: Likewise.
17676         * modules/unictype/ctype-upper-tests: Likewise.
17677         * modules/unictype/ctype-xdigit-tests: Likewise.
17678         * modules/unictype/decimal-digit-tests: Likewise.
17679         * modules/unictype/digit-tests: Likewise.
17680         * modules/unictype/mirror-tests: Likewise.
17681         * modules/unictype/numeric-tests: Likewise.
17682         * modules/unictype/property-alphabetic-tests: Likewise.
17683         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
17684         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
17685         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
17686         * modules/unictype/property-bidi-block-separator-tests: Likewise.
17687         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
17688         * modules/unictype/property-bidi-common-separator-tests: Likewise.
17689         * modules/unictype/property-bidi-control-tests: Likewise.
17690         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
17691         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
17692         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
17693         * modules/unictype/property-bidi-european-digit-tests: Likewise.
17694         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
17695         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
17696         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
17697         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
17698         * modules/unictype/property-bidi-pdf-tests: Likewise.
17699         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
17700         * modules/unictype/property-bidi-whitespace-tests: Likewise.
17701         * modules/unictype/property-byname-tests: Likewise.
17702         * modules/unictype/property-combining-tests: Likewise.
17703         * modules/unictype/property-composite-tests: Likewise.
17704         * modules/unictype/property-currency-symbol-tests: Likewise.
17705         * modules/unictype/property-dash-tests: Likewise.
17706         * modules/unictype/property-decimal-digit-tests: Likewise.
17707         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
17708         * modules/unictype/property-deprecated-tests: Likewise.
17709         * modules/unictype/property-diacritic-tests: Likewise.
17710         * modules/unictype/property-extender-tests: Likewise.
17711         * modules/unictype/property-format-control-tests: Likewise.
17712         * modules/unictype/property-grapheme-base-tests: Likewise.
17713         * modules/unictype/property-grapheme-extend-tests: Likewise.
17714         * modules/unictype/property-grapheme-link-tests: Likewise.
17715         * modules/unictype/property-hex-digit-tests: Likewise.
17716         * modules/unictype/property-hyphen-tests: Likewise.
17717         * modules/unictype/property-id-continue-tests: Likewise.
17718         * modules/unictype/property-id-start-tests: Likewise.
17719         * modules/unictype/property-ideographic-tests: Likewise.
17720         * modules/unictype/property-ids-binary-operator-tests: Likewise.
17721         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
17722         * modules/unictype/property-ignorable-control-tests: Likewise.
17723         * modules/unictype/property-iso-control-tests: Likewise.
17724         * modules/unictype/property-join-control-tests: Likewise.
17725         * modules/unictype/property-left-of-pair-tests: Likewise.
17726         * modules/unictype/property-line-separator-tests: Likewise.
17727         * modules/unictype/property-logical-order-exception-tests: Likewise.
17728         * modules/unictype/property-lowercase-tests: Likewise.
17729         * modules/unictype/property-math-tests: Likewise.
17730         * modules/unictype/property-non-break-tests: Likewise.
17731         * modules/unictype/property-not-a-character-tests: Likewise.
17732         * modules/unictype/property-numeric-tests: Likewise.
17733         * modules/unictype/property-other-alphabetic-tests: Likewise.
17734         * modules/unictype/property-other-default-ignorable-code-point-tests:
17735         Likewise.
17736         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
17737         * modules/unictype/property-other-id-continue-tests: Likewise.
17738         * modules/unictype/property-other-id-start-tests: Likewise.
17739         * modules/unictype/property-other-lowercase-tests: Likewise.
17740         * modules/unictype/property-other-math-tests: Likewise.
17741         * modules/unictype/property-other-uppercase-tests: Likewise.
17742         * modules/unictype/property-paired-punctuation-tests: Likewise.
17743         * modules/unictype/property-paragraph-separator-tests: Likewise.
17744         * modules/unictype/property-pattern-syntax-tests: Likewise.
17745         * modules/unictype/property-pattern-white-space-tests: Likewise.
17746         * modules/unictype/property-private-use-tests: Likewise.
17747         * modules/unictype/property-punctuation-tests: Likewise.
17748         * modules/unictype/property-quotation-mark-tests: Likewise.
17749         * modules/unictype/property-radical-tests: Likewise.
17750         * modules/unictype/property-sentence-terminal-tests: Likewise.
17751         * modules/unictype/property-soft-dotted-tests: Likewise.
17752         * modules/unictype/property-space-tests: Likewise.
17753         * modules/unictype/property-terminal-punctuation-tests: Likewise.
17754         * modules/unictype/property-test-tests: Likewise.
17755         * modules/unictype/property-titlecase-tests: Likewise.
17756         * modules/unictype/property-unassigned-code-value-tests: Likewise.
17757         * modules/unictype/property-unified-ideograph-tests: Likewise.
17758         * modules/unictype/property-uppercase-tests: Likewise.
17759         * modules/unictype/property-variation-selector-tests: Likewise.
17760         * modules/unictype/property-white-space-tests: Likewise.
17761         * modules/unictype/property-xid-continue-tests: Likewise.
17762         * modules/unictype/property-xid-start-tests: Likewise.
17763         * modules/unictype/property-zero-width-tests: Likewise.
17764         * modules/unictype/scripts-tests: Likewise.
17765         * modules/unictype/syntax-c-ident-tests: Likewise.
17766         * modules/unictype/syntax-c-whitespace-tests: Likewise.
17767         * modules/unictype/syntax-java-ident-tests: Likewise.
17768         * modules/unictype/syntax-java-whitespace-tests: Likewise.
17769         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
17770         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
17771         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
17772         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
17773         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
17774         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
17775         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
17776         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
17777         * modules/uniname/uniname-tests: Likewise.
17778         * modules/uninorm/canonical-decomposition-tests: Likewise.
17779         * modules/uninorm/compat-decomposition-tests: Likewise.
17780         * modules/uninorm/composition-tests: Likewise.
17781         * modules/uninorm/decomposing-form-tests: Likewise.
17782         * modules/uninorm/decomposition-tests: Likewise.
17783         * modules/uninorm/filter-tests: Likewise.
17784         * modules/uninorm/nfc-tests: Likewise.
17785         * modules/uninorm/nfd-tests: Likewise.
17786         * modules/uninorm/nfkc-tests: Likewise.
17787         * modules/uninorm/nfkd-tests: Likewise.
17788         * modules/uninorm/u8-normcmp-tests: Likewise.
17789         * modules/uninorm/u8-normcoll-tests: Likewise.
17790         * modules/uninorm/u16-normcmp-tests: Likewise.
17791         * modules/uninorm/u16-normcoll-tests: Likewise.
17792         * modules/uninorm/u32-normcmp-tests: Likewise.
17793         * modules/uninorm/u32-normcoll-tests: Likewise.
17794         * modules/unistdio/u8-asnprintf-tests: Likewise.
17795         * modules/unistdio/u8-vasnprintf-tests: Likewise.
17796         * modules/unistdio/u8-vasprintf-tests: Likewise.
17797         * modules/unistdio/u8-vsnprintf-tests: Likewise.
17798         * modules/unistdio/u8-vsprintf-tests: Likewise.
17799         * modules/unistdio/u16-asnprintf-tests: Likewise.
17800         * modules/unistdio/u16-vasnprintf-tests: Likewise.
17801         * modules/unistdio/u16-vasprintf-tests: Likewise.
17802         * modules/unistdio/u16-vsnprintf-tests: Likewise.
17803         * modules/unistdio/u16-vsprintf-tests: Likewise.
17804         * modules/unistdio/u32-asnprintf-tests: Likewise.
17805         * modules/unistdio/u32-vasnprintf-tests: Likewise.
17806         * modules/unistdio/u32-vasprintf-tests: Likewise.
17807         * modules/unistdio/u32-vsnprintf-tests: Likewise.
17808         * modules/unistdio/u32-vsprintf-tests: Likewise.
17809         * modules/unistdio/ulc-asnprintf-tests: Likewise.
17810         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
17811         * modules/unistdio/ulc-vasprintf-tests: Likewise.
17812         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
17813         * modules/unistdio/ulc-vsprintf-tests: Likewise.
17814         * modules/unistr/u8-check-tests: Likewise.
17815         * modules/unistr/u8-chr-tests: Likewise.
17816         * modules/unistr/u8-cmp-tests: Likewise.
17817         * modules/unistr/u8-cmp2-tests: Likewise.
17818         * modules/unistr/u8-cpy-alloc-tests: Likewise.
17819         * modules/unistr/u8-cpy-tests: Likewise.
17820         * modules/unistr/u8-mblen-tests: Likewise.
17821         * modules/unistr/u8-mbsnlen-tests: Likewise.
17822         * modules/unistr/u8-mbtouc-tests: Likewise.
17823         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
17824         * modules/unistr/u8-mbtoucr-tests: Likewise.
17825         * modules/unistr/u8-move-tests: Likewise.
17826         * modules/unistr/u8-next-tests: Likewise.
17827         * modules/unistr/u8-prev-tests: Likewise.
17828         * modules/unistr/u8-set-tests: Likewise.
17829         * modules/unistr/u8-stpcpy-tests: Likewise.
17830         * modules/unistr/u8-stpncpy-tests: Likewise.
17831         * modules/unistr/u8-strcat-tests: Likewise.
17832         * modules/unistr/u8-strcmp-tests: Likewise.
17833         * modules/unistr/u8-strcoll-tests: Likewise.
17834         * modules/unistr/u8-strcpy-tests: Likewise.
17835         * modules/unistr/u8-strdup-tests: Likewise.
17836         * modules/unistr/u8-strlen-tests: Likewise.
17837         * modules/unistr/u8-strmblen-tests: Likewise.
17838         * modules/unistr/u8-strmbtouc-tests: Likewise.
17839         * modules/unistr/u8-strncat-tests: Likewise.
17840         * modules/unistr/u8-strncmp-tests: Likewise.
17841         * modules/unistr/u8-strncpy-tests: Likewise.
17842         * modules/unistr/u8-strnlen-tests: Likewise.
17843         * modules/unistr/u8-to-u16-tests: Likewise.
17844         * modules/unistr/u8-to-u32-tests: Likewise.
17845         * modules/unistr/u8-uctomb-tests: Likewise.
17846         * modules/unistr/u16-check-tests: Likewise.
17847         * modules/unistr/u16-chr-tests: Likewise.
17848         * modules/unistr/u16-cmp-tests: Likewise.
17849         * modules/unistr/u16-cmp2-tests: Likewise.
17850         * modules/unistr/u16-cpy-alloc-tests: Likewise.
17851         * modules/unistr/u16-cpy-tests: Likewise.
17852         * modules/unistr/u16-mblen-tests: Likewise.
17853         * modules/unistr/u16-mbsnlen-tests: Likewise.
17854         * modules/unistr/u16-mbtouc-tests: Likewise.
17855         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
17856         * modules/unistr/u16-mbtoucr-tests: Likewise.
17857         * modules/unistr/u16-move-tests: Likewise.
17858         * modules/unistr/u16-next-tests: Likewise.
17859         * modules/unistr/u16-prev-tests: Likewise.
17860         * modules/unistr/u16-set-tests: Likewise.
17861         * modules/unistr/u16-stpcpy-tests: Likewise.
17862         * modules/unistr/u16-stpncpy-tests: Likewise.
17863         * modules/unistr/u16-strcat-tests: Likewise.
17864         * modules/unistr/u16-strcmp-tests: Likewise.
17865         * modules/unistr/u16-strcoll-tests: Likewise.
17866         * modules/unistr/u16-strcpy-tests: Likewise.
17867         * modules/unistr/u16-strdup-tests: Likewise.
17868         * modules/unistr/u16-strlen-tests: Likewise.
17869         * modules/unistr/u16-strmblen-tests: Likewise.
17870         * modules/unistr/u16-strmbtouc-tests: Likewise.
17871         * modules/unistr/u16-strncat-tests: Likewise.
17872         * modules/unistr/u16-strncmp-tests: Likewise.
17873         * modules/unistr/u16-strncpy-tests: Likewise.
17874         * modules/unistr/u16-strnlen-tests: Likewise.
17875         * modules/unistr/u16-to-u32-tests: Likewise.
17876         * modules/unistr/u16-to-u8-tests: Likewise.
17877         * modules/unistr/u16-uctomb-tests: Likewise.
17878         * modules/unistr/u32-check-tests: Likewise.
17879         * modules/unistr/u32-chr-tests: Likewise.
17880         * modules/unistr/u32-cmp-tests: Likewise.
17881         * modules/unistr/u32-cmp2-tests: Likewise.
17882         * modules/unistr/u32-cpy-alloc-tests: Likewise.
17883         * modules/unistr/u32-cpy-tests: Likewise.
17884         * modules/unistr/u32-mblen-tests: Likewise.
17885         * modules/unistr/u32-mbsnlen-tests: Likewise.
17886         * modules/unistr/u32-mbtouc-tests: Likewise.
17887         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
17888         * modules/unistr/u32-mbtoucr-tests: Likewise.
17889         * modules/unistr/u32-move-tests: Likewise.
17890         * modules/unistr/u32-next-tests: Likewise.
17891         * modules/unistr/u32-prev-tests: Likewise.
17892         * modules/unistr/u32-set-tests: Likewise.
17893         * modules/unistr/u32-stpcpy-tests: Likewise.
17894         * modules/unistr/u32-stpncpy-tests: Likewise.
17895         * modules/unistr/u32-strcat-tests: Likewise.
17896         * modules/unistr/u32-strcmp-tests: Likewise.
17897         * modules/unistr/u32-strcoll-tests: Likewise.
17898         * modules/unistr/u32-strcpy-tests: Likewise.
17899         * modules/unistr/u32-strdup-tests: Likewise.
17900         * modules/unistr/u32-strlen-tests: Likewise.
17901         * modules/unistr/u32-strmblen-tests: Likewise.
17902         * modules/unistr/u32-strmbtouc-tests: Likewise.
17903         * modules/unistr/u32-strncat-tests: Likewise.
17904         * modules/unistr/u32-strncmp-tests: Likewise.
17905         * modules/unistr/u32-strncpy-tests: Likewise.
17906         * modules/unistr/u32-strnlen-tests: Likewise.
17907         * modules/unistr/u32-to-u16-tests: Likewise.
17908         * modules/unistr/u32-to-u8-tests: Likewise.
17909         * modules/unistr/u32-uctomb-tests: Likewise.
17910         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
17911         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
17912         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
17913         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
17914         * modules/uniwidth/u8-strwidth-tests: Likewise.
17915         * modules/uniwidth/u8-width-tests: Likewise.
17916         * modules/uniwidth/u16-strwidth-tests: Likewise.
17917         * modules/uniwidth/u16-width-tests: Likewise.
17918         * modules/uniwidth/u32-strwidth-tests: Likewise.
17919         * modules/uniwidth/u32-width-tests: Likewise.
17920         * modules/uniwidth/width-tests: Likewise.
17921
17922 2010-05-18  Richard Jones  <rjones@redhat.com>
17923
17924         doc: users.txt: list hivex
17925         * users.txt: Add hivex.
17926
17927 2010-05-18  Richard Jones  <rjones@redhat.com>
17928
17929         doc: users.txt: list febootstrap
17930         * users.txt: Add febootstrap.
17931
17932 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
17933
17934         bootstrap: fix an error when gnulib is not used as a git submodule
17935         * build-aux/bootstrap (gnulib_path): If its length is zero then
17936         assign "gnulib" to it.
17937         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
17938
17939 2010-05-16  Bruno Haible  <bruno@clisp.org>
17940
17941         Avoid autoconf warnings about AM_ICONV.
17942         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
17943         2.64.
17944
17945 2010-05-16  Bruno Haible  <bruno@clisp.org>
17946
17947         absolute-header: Make the macro usable in more situations.
17948         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
17949         from gl_ABSOLUTE_HEADER.
17950         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
17951
17952 2010-05-16  James Youngman  <jay@gnu.org>
17953
17954         doc: update users.txt
17955         * users.txt: Add CSSC.
17956
17957 2010-05-16  Jim Meyering  <meyering@redhat.com>
17958
17959         init.sh: fix an error in the previous change; add more comments
17960         * tests/init.sh: Compare exit code in loop against 9, not 2.
17961         Patch by Bruno Haible.
17962         Make the two tests more similar by adding an empty "then" clause.
17963         Add comments.
17964
17965         init.sh: avoid unnecessary shell re-exec
17966         * tests/init.sh: Improve the re-exec-required check to first test the
17967         current shell.  If it passes the test, do not search for a shell that
17968         does pass, and do not re-exec.  This test is particularly contorted to
17969         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
17970         of $(...) evokes a syntax error and causes immediate shell exit with
17971         status 2.  Bruno Haible reported that the re-exec made it impossible
17972         to single-step through any init.sh-using script.
17973
17974 2010-05-16  Bruno Haible  <bruno@clisp.org>
17975
17976         Fix collision between gnulib's and libintl's printf replacements.
17977         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
17978         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
17979         (printf): When using GNU C, map the __printf__ function to rpl_printf
17980         via __asm__. When not using GNU C, define rpl_printf instead of
17981         __printf__.
17982         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
17983         commit.
17984         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
17985         commit.
17986         * m4/asm-underscore.m4: New file.
17987         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
17988         * modules/stdio (Files): Add m4/asm-underscore.m4.
17989         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
17990         Reported by Ben Pfaff.
17991
17992 2010-05-16  Bruno Haible  <bruno@clisp.org>
17993
17994         verify: Avoid skipping the test on openSUSE 11.0.
17995         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
17996
17997 2010-05-13  Bruno Haible  <bruno@clisp.org>
17998
17999         Avoid useless warnings from G++.
18000         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
18001         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
18002         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18003
18004 2010-05-11  Jim Meyering  <meyering@redhat.com>
18005
18006         maint.mk: tweak preceding change
18007         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
18008         regexps tighter by anchoring at EOL, and make the new group "shy"
18009         for slightly decreased overhead.
18010
18011 2010-05-11  Eric Blake  <eblake@redhat.com>
18012
18013         maint.mk: gnulib doesn't guarantee NSIG
18014         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
18015
18016 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
18017
18018         test-pwrite.c: Remove unused variable declaration.
18019         * tests/test-pwrite.c (main): Remove read_buf declaration.
18020
18021         Remove useless test-pwrite.sh file.
18022         * tests/test-pwrite.sh: Delete file.
18023         * modules/pwrite-tests: Remove references.
18024         Reported by Bruno Haible.
18025
18026 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
18027
18028         init.sh: fix a typo
18029         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
18030
18031 2010-05-10  Jim Meyering  <meyering@redhat.com>
18032
18033         maint.mk: avoid using a temporary file in the always-defined-macros check
18034         * top/maint.mk (.re-defmac): Remove rule.
18035         (gl_trap_): Remove definition.
18036         (sc_prohibit_always-defined_macros): Rewrite not to create and
18037         depend on a temporary file.  Instead, depend on GNU grep's ability
18038         to read a list of regular expressions from stdin when given "-f -".
18039
18040 2010-05-09  Bruno Haible  <bruno@clisp.org>
18041
18042         Update to GNU gettext 0.18, part 1.
18043         * m4/gettext.m4: Update to GNU gettext 0.18.
18044         * m4/intl.m4: Likewise.
18045         * m4/po.m4: Likewise.
18046         * modules/gettext (Files): Add m4/fcntl-o.m4.
18047         (configure.ac): Require gettext infrastructure from version 0.18.
18048
18049 2010-05-09  Jim Meyering  <meyering@redhat.com>
18050
18051         init.sh: enable MALLOC_PERTURB_
18052         * tests/init.sh: Enable glibc's malloc-perturbing option.
18053
18054         maint.mk: improve sc_cross_check_PATH_usage_in_tests
18055         With my recent change in init.sh from the two-line form:
18056             -#   : ${srcdir=.}
18057             -#   . "$srcdir/init.sh"; path_prepend_ .
18058             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
18059         I noticed that using the one-line form would cause this test
18060         to fail with a false-positive, or to stop working altogether,
18061         depending on whether help-version changed or all the tests did.
18062         * top/maint.mk (_hv_regex): Remove this definition.
18063         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
18064         (_hv_regex_strong): Use a stronger regex to check for conformance.
18065         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
18066         Give a separate diagnostic for lack of conforming use.
18067
18068         maint.mk: prohibit definition of symbols defined by gnulib
18069         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
18070         definition of symbols defined by gnulib.
18071
18072 2010-05-09  Bruno Haible  <bruno@clisp.org>
18073
18074         acl: Avoid test failure on Cygwin-hosted mingw.
18075         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
18076
18077 2010-05-09  Bruno Haible  <bruno@clisp.org>
18078
18079         error: Use system's fcntl function.
18080         * lib/error.c (fcntl): Undefine.
18081
18082 2010-05-09  Jim Meyering  <meyering@redhat.com>
18083
18084         verify: adjust formatting to be more consistent
18085         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
18086         argument-list '('s, and after one comma.
18087
18088 2010-05-09  Bruno Haible  <bruno@clisp.org>
18089
18090         error: More reliable output on mingw.
18091         * lib/error.c: Include <windows.h>.
18092         (is_open): New function.
18093         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
18094         defined.
18095
18096 2010-05-09  Bruno Haible  <bruno@clisp.org>
18097
18098         vasnprintf: Fix syntax errors in libintl build on mingw.
18099         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
18100         pad_ourselves and prec_ourselves after use.
18101
18102 2010-05-08  Bruno Haible  <bruno@clisp.org>
18103
18104         * lib/config.charset: Update comments for Cygwin 1.7.
18105         * lib/localcharset.c: Likewise.
18106
18107 2010-05-07  Jim Meyering  <meyering@redhat.com>
18108
18109         init.sh: improve comments
18110         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
18111         . "${srcdir=.}/init.sh"; path_prepend_ .
18112         Add a note about path_prepend_ and the alternative of using
18113         TESTS_ENVIRONMENT.
18114
18115 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
18116
18117         exclude: Unescape hashed patterns in wildcard mode.
18118         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
18119         to the hash list.
18120         * tests/test-exclude8.sh: New test case.
18121         * modules/exclude-tests: Add new test.
18122
18123 2010-05-05  Eric Blake  <eblake@redhat.com>
18124
18125         verify: automate tests
18126         * modules/verify-tests: New module.
18127         * tests/test-verify.sh: New file.
18128         * tests/test-verify.c: Guard each negative test with a unique id.
18129         Also avoid warning about unused left hand of comma expressions.
18130
18131 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
18132
18133         Further improvements to verify.h, suggested by Eric Blake.
18134         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
18135         the GL_* versions, to avoid collision with OpenGL.
18136         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
18137         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
18138         than testing merely whether it's defined.
18139
18140         Modify verify.h to pacify gcc -Wredundant_decls.
18141         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
18142         These use the prefix "GL_" since they're likely to be useful elsewhere.
18143         We may need to break them out into a different .h file.
18144         (__COUNTER__): Define to 0 if the compiler doesn't support it.
18145         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
18146         of verify_function__.
18147
18148 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
18149
18150         Tests for module pwrite.
18151         * modules/pwrite-tests: New file.
18152         * tests/test-pwrite.sh: New file.
18153         * tests/test-pwrite.c: New file.
18154
18155         New module pwrite.
18156         * lib/unistd.in.h (pwrite): New declaration.
18157         * lib/pwrite.c: New file, from glibc with modifications.
18158         * m4/pwrite.m4: New file.
18159         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
18160         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
18161         REPLACE_PWRITE.
18162         * modules/pwrite: New file.
18163         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
18164         REPLACE_PWRITE.
18165         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
18166         * doc/posix-functions/pwrite.texi: Mention the new module.
18167
18168 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
18169
18170         pread: Update documentation.
18171         * doc/posix-functions/pread.texi: Mention the 'pread' module.
18172
18173 2010-05-04  Eric Blake  <eblake@redhat.com>
18174
18175         docs: update cygwin progress
18176         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
18177         this bug.
18178         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
18179         Added in cygwin 1.7.2.
18180         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
18181         Likewise.
18182         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
18183         Likewise.
18184         * doc/glibc-functions/dup3.texi (dup3): Likewise.
18185         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
18186         * doc/glibc-functions/accept4.texi (accept4): Likewise.
18187         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
18188         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
18189         Mention nproc module.
18190         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
18191         bug in cygwin 1.7.5 addition.
18192         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
18193         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
18194         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
18195         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
18196         1.7.5.
18197         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
18198         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
18199         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
18200         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
18201         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
18202         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
18203         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
18204         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
18205         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
18206         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
18207         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
18208         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
18209         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
18210         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
18211         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
18212         Likewise.
18213         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
18214         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
18215         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
18216         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
18217         Likewise.
18218         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
18219         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
18220         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
18221         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
18222         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
18223         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
18224         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
18225         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
18226         Likewise.
18227         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
18228         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
18229         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
18230         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
18231         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
18232         Likewise.
18233         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
18234         Likewise.
18235         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
18236         Likewise.
18237         * doc/glibc-functions/xdrrec_endofrecord.texi
18238         (xdrrec_endofrecord): Likewise.
18239         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
18240         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
18241         Likewise.
18242         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
18243         Likewise.
18244
18245 2010-05-04  Jim Meyering  <meyering@redhat.com>
18246
18247         gendocs.sh: make its "-s FILE" option more useful
18248         * build-aux/gendocs.sh: When honoring the -s FILE option, update
18249         $PACKAGE to reflect the probably-different basename of "FILE".
18250
18251 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
18252
18253         bootstrap: don't ignore download_po_files failure
18254         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
18255         failure.
18256
18257 2010-05-03  Jim Meyering  <meyering@redhat.com>
18258
18259         maint.mk: allow to pass options to gendocs.sh
18260         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
18261         (gendocs_options_): New overridable variable.
18262
18263         gnu-web-doc-update: don't ignore configure or build failure
18264         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
18265
18266         announce-gen: backslash-escape '@'s in --help output
18267         * build-aux/announce-gen: Fix syntax errors.
18268
18269         maint.mk, announce-gen: allow project-specific announcement mail headers
18270         * top/maint.mk (translation_project_): Define default.
18271         (announcement_Cc_, announcement_mail_headers_): Likewise.
18272         (announcement): Invoke announce-gen with new --mail-headers option.
18273         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
18274
18275         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
18276         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
18277         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
18278         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
18279         line in the "err2" output file when running "make check" in verbose
18280         mode (i.e., with set -x enabled).
18281
18282 2010-05-03  Bruno Haible  <bruno@clisp.org>
18283
18284         wctob: Fix for weird platforms.
18285         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
18286         argument value.
18287
18288 2010-05-03  Jim Meyering  <meyering@redhat.com>
18289
18290         maint.mk: prohibit unwarranted use of <strings.h>
18291         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
18292         strings.h in a file that does not also use strcasecmp, strncasecmp,
18293         ffs or ffsll.
18294
18295         maint.mk: remove obsolete comments
18296         * top/maint.mk: Remove stale, commented-out rules.
18297
18298 2010-05-02  Bruno Haible  <bruno@clisp.org>
18299
18300         wcwidth: Declare also when it's aliased.
18301         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
18302         macro.
18303
18304 2010-05-02  Bruno Haible  <bruno@clisp.org>
18305
18306         Fix regression from 2010-04-25.
18307         * gnulib-tool (func_modules_transitive_closure): Check the status of
18308         all modules, not only of the tests that are of the form foo-tests where
18309         foo is a module.
18310
18311 2010-05-02  Bruno Haible  <bruno@clisp.org>
18312
18313         wctob: Work around nasty Cygwin 1.7.2 bug.
18314         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
18315         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
18316
18317 2010-05-01  Bruno Haible  <bruno@clisp.org>
18318
18319         fpurge: Sharper test.
18320         * tests/test-fpurge.c (main): Add one more ftell check.
18321         * modules/fpurge-tests (Depends-on): Add ftell.
18322         Suggested by Eric Blake.
18323
18324 2010-05-01  Bruno Haible  <bruno@clisp.org>
18325
18326         ftello: Another test.
18327         * tests/test-ftello3.c: New file.
18328         * modules/ftello-tests (Files): Add it.
18329         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
18330         MOSTLYCLEANFILES.
18331
18332         ftell: Another test.
18333         * tests/test-ftell3.c: New file.
18334         * modules/ftell-tests (Files): Add it.
18335         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
18336         MOSTLYCLEANFILES.
18337
18338 2010-05-01  Bruno Haible  <bruno@clisp.org>
18339
18340         ftell, ftello: Work around Solaris bug.
18341         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
18342         * lib/ftello.c: Include stdio-impl.h.
18343         (ftello): On Solaris, when _IOWRT is set, compute the result without
18344         looking at _IOREAD.
18345         * modules/ftello (Files): Add lib/stdio-impl.h.
18346         * doc/posix-functions/ftell.texi: Mention Solaris bug.
18347         * doc/posix-functions/ftello.texi: Likewise.
18348         Reported by Eric Blake.
18349
18350 2010-05-01  Bruno Haible  <bruno@clisp.org>
18351
18352         freading: Adapt to special meaning of _IOREAD flag on Solaris.
18353         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
18354         the _IOWRT flag is also set.
18355
18356 2010-05-01  Bruno Haible  <bruno@clisp.org>
18357
18358         Fix doc about a HP-UX stdio bug.
18359         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
18360         * doc/posix-functions/ftello.texi: Likewise.
18361
18362 2010-05-01  Bruno Haible  <bruno@clisp.org>
18363
18364         lseek test: Fix failure on Solaris.
18365         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
18366         output.
18367
18368 2010-04-30  Jim Meyering  <meyering@redhat.com>
18369
18370         bootstrap: don't ignore failure to generate po*/Makevars
18371         * build-aux/bootstrap (with_gettext): Don't ignore failure
18372         to create po/Makevars or runtime-po/Makevars.
18373
18374 2010-04-29  Eric Blake  <eblake@redhat.com>
18375
18376         headers: relax license to LGPLv2+
18377         * modules/fcntl-h (License): Relax license.
18378         * modules/getopt-posix (License): Likewise.
18379         * modules/locale (License): Likewise.
18380         * modules/math (License): Likewise.
18381         * modules/pty (License): Likewise.
18382         * modules/sched (License): Likewise.
18383         * modules/search (License): Likewise.
18384         * modules/spawn (License): Likewise.
18385         * modules/stdarg (License): Likewise.
18386         * modules/sysexits (License): Likewise.
18387
18388 2010-04-29  Jim Meyering  <meyering@redhat.com>
18389
18390         inttypes: relax license to LGPLv2+
18391         * modules/inttypes (License): Relax license.
18392
18393 2010-04-29  Simon Josefsson  <simon@josefsson.org>
18394
18395         * top/maint.mk (indent): Run twice to produce idempotent results.
18396
18397 2010-04-28  Bruno Haible  <bruno@clisp.org>
18398
18399         getdate: Generate getdate.c in the source directory.
18400         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
18401         MOSTLYCLEANFILES.
18402         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
18403
18404 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
18405
18406         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
18407         is not declared as a const *; avoid warnings in that case.
18408
18409 2010-04-28  Eric Blake  <eblake@redhat.com>
18410
18411         canonicalize-lgpl: avoid compiler warning
18412         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
18413         declaration' / 'extraneous semicolon' warning with some compilers.
18414         Reported by Andreas Gruenbacher.
18415
18416 2010-04-28  Jim Meyering  <meyering@redhat.com>
18417
18418         init.sh: ensure a more reliable exit status when exiting via trap
18419         * tests/init.sh (setup_): Don't rely on $? in signal handler.
18420         Inspired by patches from Dmitry V. Levin.
18421         Also trap on signal 3 (SIGQUIT).
18422
18423 2010-04-27  Bruno Haible  <bruno@clisp.org>
18424
18425         Update doc about utimes().
18426         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
18427         'utimens' module.
18428         Reported by Andreas Gruenbacher <agruen@suse.de>.
18429
18430 2010-04-27  Eric Blake  <eblake@redhat.com>
18431
18432         full-read, full-write: relax license
18433         * modules/full-read (License): Drop to LGPLv2+.
18434         * modules/full-write (License): Likewise.
18435         * modules/safe-read (License): Likewise.
18436         * modules/safe-write (License): Likewise.
18437
18438         pthread: mention library for linking
18439         * modules/pthread (Link): Mention $(LIB_PTHREAD).
18440
18441 2010-04-27  Jim Meyering  <meyering@redhat.com>
18442
18443         maint.mk: fix a bug introduced in last change
18444         * top/maint.mk (gl_assured_headers_): Now that all names are on
18445         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
18446         is not anchored to end of word, it should be adequate.
18447
18448         maint.mk: avoid side-effect in latest syntax-check
18449         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
18450         to run commands via $(shell...), and hence to incur cost only when
18451         the new rule is actually run.
18452
18453         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
18454         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
18455         and use that to create a regexp used to detect all #if HAVE_..._H uses.
18456         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
18457         (gl_assured_headers_, az_, AZ_): Define.
18458         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
18459
18460 2010-04-26  Jim Meyering  <jim@meyering.net>
18461             Bruno Haible  <bruno@clisp.org>
18462
18463         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
18464         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
18465         Prompted by an exchange with Gilles Espinasse.
18466
18467 2010-04-26  Jim Meyering  <meyering@redhat.com>
18468
18469         git-version-gen: aesthetic tweak
18470         * build-aux/git-version-gen: Use "$nl" rather than a literal,
18471         so that the command remains on a single line.
18472
18473 2010-04-26  Eric Blake  <eblake@redhat.com>
18474
18475         git-version-gen: allow use on EBCDIC hosts
18476         * build-aux/git-version-gen (dirty): Use literal rather than tying
18477         ourselves to ascii.
18478         Reported by Steve Goetze.
18479
18480 2010-04-25  Bruno Haible  <bruno@clisp.org>
18481
18482         netdb: Add support for GNULIB_POSIXCHECK.
18483         * lib/netdb.in.h: Include warn-on-use.h.
18484         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
18485         functions are used when GNULIB_POSIXCHECK is defined and the
18486         getaddrinfo module is not in use.
18487         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
18488         freeaddrinfo, gai_strerror, getnameinfo are declared.
18489         * modules/netdb (Depends-on): Add warn-on-use.
18490         (Makefile.am): Include warn-on-use.h in netdb.h.
18491
18492 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
18493
18494         build: avoid "make check" failure without .git/ directory
18495         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
18496         there is no .git/ directory.
18497
18498 2010-04-25  Bruno Haible  <bruno@clisp.org>
18499
18500         ptsname: Fix misuse of ttyname_r.
18501         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
18502         of errno.
18503
18504 2010-04-25  Bruno Haible  <bruno@clisp.org>
18505
18506         ttyname_r: Make it work on Solaris 10.
18507         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
18508         if the system function has the POSIX declaration. Test whether the
18509         function fails if the buffer is less than 128 bytes large.
18510         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
18511         system's ttyname_r function. Provide a reasonably large buffer.
18512         * modules/ttyname_r (Depends-on): Add extensions.
18513         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
18514
18515 2010-04-25  Bruno Haible  <bruno@clisp.org>
18516
18517         Use the 'extensions' module for some more functions on Solaris.
18518         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
18519         module.
18520         * doc/posix-functions/ctime_r.texi: Likewise.
18521         * doc/posix-functions/getgrgid_r.texi: Likewise.
18522         * doc/posix-functions/getgrnam_r.texi: Likewise.
18523         * doc/posix-functions/getpwnam_r.texi: Likewise.
18524         * doc/posix-functions/getpwuid_r.texi: Likewise.
18525         * doc/posix-functions/readdir_r.texi: Likewise.
18526         * doc/posix-functions/sigwait.texi: Likewise.
18527         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
18528         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
18529
18530 2010-04-25  Bruno Haible  <bruno@clisp.org>
18531
18532         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
18533         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
18534         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
18535         * lib/ttyname_r.c: Include <limits.h>.
18536         (ttyname_r): Define using the system's ttyname_r function, if it exists
18537         and not on Solaris.
18538         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
18539         set.
18540         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
18541         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
18542         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
18543         Reported by Simon Josefsson.
18544
18545 2010-04-25  Bruno Haible  <bruno@clisp.org>
18546
18547         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
18548         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
18549         * doc/posix-functions/ctime_r.texi: Likewise.
18550         * doc/posix-functions/getgrgid_r.texi: Likewise.
18551         * doc/posix-functions/getgrnam_r.texi: Likewise.
18552         * doc/posix-functions/getlogin_r.texi: Likewise.
18553         * doc/posix-functions/getpwnam_r.texi: Likewise.
18554         * doc/posix-functions/getpwuid_r.texi: Likewise.
18555         * doc/posix-functions/readdir_r.texi: Likewise.
18556         * doc/posix-functions/sigwait.texi: Likewise.
18557         * doc/posix-functions/ttyname_r.texi: Likewise.
18558         Reported by Simon Josefsson.
18559
18560 2010-04-25  Bruno Haible  <bruno@clisp.org>
18561
18562         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
18563         * gnulib-tool (func_usage): Document that --with-*-tests options apply
18564         also to --create-testdir.
18565         (func_acceptable): Don't consider the status of *-tests modules here.
18566         (func_modules_transitive_closure): Consider it here, before including a
18567         test module.
18568         (func_import, func_create_testdir): Set inc_all_direct_tests,
18569         inc_all_indirect_tests.
18570         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
18571         --create-testdir and --create-megatestdir.
18572
18573 2010-04-25  Bruno Haible  <bruno@clisp.org>
18574
18575         gnulib-tool: Add --without-*-tests options.
18576         * gnulib-tool (func_usage): Document the --without-*-tests options.
18577         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
18578         excl_unportable_tests): New variables.
18579         Fail if they are specified with --import or --update.
18580         (func_acceptable): Respect the excl_*_tests variables.
18581         (func_import): Set the excl_*_tests variables to empty.
18582
18583 2010-04-25  Simon Josefsson  <simon@josefsson.org>
18584             Bruno Haible  <bruno@clisp.org>
18585
18586         Work around a MacOS X 10.4 bug with openpty.
18587         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
18588         * tests/test-openpty.c (main): Close the master side explicitly.
18589
18590 2010-04-25  Bruno Haible  <bruno@clisp.org>
18591
18592         strnlen: Fix a C++ test error on MacOS X and Solaris.
18593         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
18594         the function is not declared.
18595         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
18596         Simon Josefsson.
18597
18598 2010-04-24  Bruno Haible  <bruno@clisp.org>
18599
18600         Avoid a gcc warning.
18601         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
18602         of correct type for %08lx directive.
18603         Reported by Eric Blake.
18604
18605 2010-04-24  Bruno Haible  <bruno@clisp.org>
18606
18607         vasnprintf: Correct errno value in case of out-of-memory.
18608         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
18609         or sprintf. Use the errno value from SNPRINTF or sprintf.
18610         Reported by Ian Beckwith <ianb@erislabs.net>.
18611
18612 2010-04-24  Bruno Haible  <bruno@clisp.org>
18613
18614         ansi-c++-opt: Find correct compiler when cross-compiling.
18615         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
18616         AC_CHECK_PROGS.
18617         Reported by Simon Josefsson.
18618
18619 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
18620
18621         vc-list-files: Add support for subversion
18622         * build-aux/vc-list-files: Use "svn list" to generate the list of
18623         files controlled by subversion.
18624
18625 2010-04-23  Jim Meyering  <meyering@redhat.com>
18626
18627         vc-list-files tests: convert to use init.sh
18628         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
18629         path_prepend_.
18630         Use Exit, not exit.
18631         Use skip_ rather than open coding it.
18632         Remove trap set-up and compare definitions.
18633         * tests/test-vc-list-files-git.sh: Likewise.
18634         * modules/vc-list-files-tests (Files): Add tests/init.sh.
18635
18636 2010-04-22  Simon Josefsson  <simon@josefsson.org>
18637
18638         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
18639         backup files.
18640
18641 2010-04-21  Simon Josefsson  <simon@josefsson.org>
18642
18643         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
18644
18645 2010-04-20  Eric Blake  <eblake@redhat.com>
18646
18647         tests: be robust to ignored SIGPIPE
18648         * tests/test-select-in.sh: Consume all output.
18649         * tests/test-lseek.sh: Check correct exit status, while avoiding
18650         EPIPE.
18651
18652 2010-04-20  Simon Josefsson  <simon@josefsson.org>
18653             Bruno Haible  <bruno@clisp.org>
18654
18655         visibility: Don't use -fvisibility if it leads to a warning.
18656         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
18657         yes, don't pretend that visibility works if it leads to a warning.
18658         Reported by Mike Gran <spk121@yahoo.com>.
18659
18660 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
18661
18662         * build-aux/bootstrap: Use "git -h" for testing for supported options
18663         instead of "git --help".  The short-form option only shows a summary,
18664         and doesn't layout the full man page.  Grep for the full option name
18665         in the summary, too.
18666
18667 2010-04-19  Bruno Haible  <bruno@clisp.org>
18668
18669         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
18670         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
18671         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
18672         mention of RELOCATABLE_STRIP.
18673         Reported by Sylvain Beucler <beuc@beuc.net>.
18674
18675 2010-04-19  Bruno Haible  <bruno@clisp.org>
18676
18677         * lib/diffseq.h: Fix typo in comment.
18678         Reported by Eric Blake.
18679
18680 2010-04-19  Bruno Haible  <bruno@clisp.org>
18681
18682         ioctl: Move autoconf macro to a .m4 file.
18683         * m4/ioctl.m4: New file, extracted from modules/ioctl.
18684         * modules/ioctl (Files): Add it.
18685         (configure.ac): Simply invoke gl_FUNC_IOCTL.
18686         Reported by Ian Beckwith <ianb@erislabs.net>.
18687
18688 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
18689             Bruno Haible  <bruno@clisp.org>
18690
18691         diffseq: Accommodate use-case with abstract arrays.
18692         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
18693         is not defined.
18694         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
18695         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
18696
18697 2010-04-18  Bruno Haible  <bruno@clisp.org>
18698
18699         * doc/posix-headers/stdbool.texi: More precise wording.
18700
18701 2010-04-17  Jim Meyering  <meyering@redhat.com>
18702
18703         maint.mk: use gnu-style indentation in an embedded perl script
18704         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
18705         Rename variable: s/two/last_two_bytes/
18706
18707 2010-04-16  Eric Blake  <eblake@redhat.com>
18708
18709         test-stdbool: skip test that fails with Solaris CC
18710         * tests/test-stdbool.c (f): Skip test that causes compilation
18711         error under buggy C++ compiler.
18712         * lib/stdbool.in.h: Document the limitation.
18713         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
18714
18715         setenv: allow compilation with C++
18716         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
18717         register keyword.
18718
18719         stdint: allow test to pass with C++
18720         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
18721
18722         getopt: allow compilation with C++
18723         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
18724         struct.
18725         * lib/getopt.c (_getopt_internal_r): Use correct type.
18726         Reported by Dagobert Michelson, via Joel E. Denny.
18727
18728 2010-04-16  Bruno Haible  <bruno@clisp.org>
18729
18730         Override netdb.h always.
18731         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
18732         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
18733         Reported by Ludovic Courtès <ludo@gnu.org>.
18734
18735 2010-04-15  Bruno Haible  <bruno@clisp.org>
18736
18737         openpty: Fix mistake from 2010-03-21.
18738         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
18739         Reported by Simon Josefsson.
18740
18741 2010-04-15  Eric Blake  <eblake@redhat.com>
18742
18743         test-forkpty: fix expected signature
18744         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
18745         Reported by Simon Josefsson.
18746
18747 2010-04-15  Jim Meyering  <meyering@redhat.com>
18748
18749         maint.mk: texinfo_suffix_re_: correct the default regexp
18750         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
18751
18752         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
18753         make it configurable via texinfo_suffix_re_.
18754
18755 2010-04-14  Eric Blake  <eblake@redhat.com>
18756
18757         strtok_r: relax license to LGPLv2+
18758         * modules/strtok_r (License): Relax license.
18759         Reported by Matthias Bolte.
18760
18761 2010-04-14  Simon Josefsson  <simon@josefsson.org>
18762
18763         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
18764         version 1.4.4 by default instead of requiring the libgcrypt
18765         version used during build.  This makes it possible to use the
18766         application with older but still binary compatible libgcrypt
18767         versions.
18768
18769 2010-04-13  Eric Blake  <eblake@redhat.com>
18770
18771         getopt-gnu: match recent glibc fixes and posix ruling
18772         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
18773         '+' handling, when requesting extensions.
18774         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
18775         'W;' handling.
18776         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
18777         * doc/posix-functions/getopt.texi (getopt): Document this.
18778         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
18779         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
18780         Likewise.
18781
18782         getopt: merge bug fixes from glibc
18783         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
18784         diagnostics.  Honor '+:' correctly.  Reject ';'.
18785
18786         getopt-posix: detect MacOS bug
18787         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
18788         optind when missing a required argument.
18789         * doc/posix-functions/getopt.texi (getopt): Document the bug.
18790         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
18791         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
18792         Likewise.
18793
18794         getopt-posix: avoid spurious failure on Solaris
18795         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
18796         an indicator that setting optind=1 is sufficient for reset.
18797
18798         getopt-posix: avoid spurious failure on FreeBSD
18799         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
18800         in POSIX mode, since the m4 test uses it.
18801
18802         gnulib-tool: silence warning on BSD sh
18803         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
18804
18805 2010-04-13  Jim Meyering  <meyering@redhat.com>
18806
18807         doc: users.txt: GNU patch now uses gnulib
18808         * users.txt: Add patch.
18809
18810 2010-04-12  Jim Meyering  <meyering@redhat.com>
18811
18812         maint.mk: generate more concise timing data for syntax-check rules
18813         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
18814         " done" from each line that reports a syntax-check test duration.
18815
18816 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
18817
18818         git-version-gen: use "git update-index..." rather than "git status"
18819         * build-aux/git-version-gen: Use git update-index --refresh, not
18820         "git status".  With some versions of git, "git status" would fail
18821         to update the index and result in an unwarranted "-dirty" suffix.
18822
18823 2010-04-11  Jim Meyering  <meyering@redhat.com>
18824
18825         openat: correct formatting (no semantic change)
18826         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
18827         Suggested by Bruno Haible.
18828
18829 2010-04-11  Bruno Haible  <bruno@clisp.org>
18830
18831         Stricter declaration checking in testdirs.
18832         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
18833         If for_tests is true, augment AM_CPPFLAGS to define
18834         GNULIB_STRICT_CHECKING.
18835         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
18836         GNULIB_STRICT_CHECKING is defined, verify that the function is
18837         declared.
18838
18839 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
18840             Bruno Haible  <bruno@clisp.org>
18841
18842         libunistring: Improve configure output.
18843         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
18844         Don't say "consider installing GNU libunistring" when checking again
18845         with libiconv.
18846
18847 2010-04-11  Bruno Haible  <bruno@clisp.org>
18848
18849         libunistring: Correct value of $LTLIBUNISTRING.
18850         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
18851         correct the value of $LTLIBUNISTRING.
18852
18853 2010-04-11  Bruno Haible  <bruno@clisp.org>
18854
18855         havelib: Add static libraries to LIBS in the right order.
18856         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
18857         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
18858
18859 2010-04-11  Bruno Haible  <bruno@clisp.org>
18860
18861         libunistring: Detect libunistring also when it depends on libiconv.
18862         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
18863         the second AC_LIB_HAVE_LINKFLAGS invocation.
18864
18865 2010-04-11  James Youngman  <jay@gnu.org>
18866
18867         close-stream: declare local scalars to be "const"
18868         * lib/close-stream.c (close_stream): Make boolean variables const
18869         to document the fact that we set but do not change them.
18870
18871 2010-04-11  Bruno Haible  <bruno@clisp.org>
18872
18873         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
18874
18875 2010-04-11  Jim Meyering  <meyering@redhat.com>
18876
18877         maint.mk: don't include dist-check.mk
18878         * top/maint.mk: Remove bogus include directive.
18879
18880         maint.mk: improve empty-line-at-EOF check
18881         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
18882         solution, rather than tail+Perl-based one.  The latter would read
18883         a few kilobytes from the end of each file, and did not handle empty
18884         files properly.
18885
18886         maint.mk: print the elapsed time for each syntax-check rule
18887         * top/maint.mk (sc_m_rules_): Save start time in a file.
18888         (sc_z_rules_): New rules: remove temp file and print elapsed time.
18889         (local-check): Interpose the .z rules
18890
18891 2010-04-11  Jim Meyering  <meyering@redhat.com>
18892
18893         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
18894         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
18895         empty file with one that ends in an empty line.
18896
18897 2010-04-10  Bruno Haible  <bruno@clisp.org>
18898
18899         mkdir: Make it work on mingw64.
18900         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
18901         * lib/mkdir.c: Update comment.
18902         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
18903
18904 2010-04-10  Bruno Haible  <bruno@clisp.org>
18905
18906         Don't override improved macro from newer autoconf.
18907         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
18908         autoconf >= 2.62.
18909         Reported by Joel E. Denny <jdenny@clemson.edu>.
18910
18911 2010-04-10  Jim Meyering  <meyering@redhat.com>
18912
18913         maint.mk: new syntax-check rule: prohibit empty lines at end of file
18914         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
18915
18916         maint.mk: correct a diagnostic
18917         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
18918         in diagnostic; now use $prohibit.
18919
18920 2010-04-10  Bruno Haible  <address@hidden>
18921
18922         fchownat: Fix a C++ test error on Solaris 8.
18923         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
18924         the function does not exist.
18925
18926 2010-04-10  Bruno Haible  <bruno@clisp.org>
18927
18928         vasnprintf: Add more tests.
18929         * tests/test-vasnprintf-posix.c: Include <errno.h>.
18930         (test_function): Test converting an invalid wide string.
18931
18932         vasnprintf: Correct handling of unconvertible wide string arguments.
18933         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
18934         VASNPRINTF.
18935         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
18936         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
18937         smaller than the expected maximum need for the directive. Set errno to
18938         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
18939         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
18940         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
18941         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
18942         * modules/vasnprintf (Files): Add m4/printf.m4.
18943         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18944
18945 2010-04-10  Bruno Haible  <bruno@clisp.org>
18946
18947         vasnprintf: Fix crash in %ls directive.
18948         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
18949         string is passed as argument to %ls, with no precision and no width.
18950         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18951
18952 2010-04-10  Bruno Haible  <bruno@clisp.org>
18953
18954         vasnprintf: Fix multiple test failures on mingw.
18955         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
18956         _snprintf, or snwprintf, not _snwprintf.
18957
18958 2010-04-10  Bruno Haible  <bruno@clisp.org>
18959
18960         write: Fix a C++ test error on mingw.
18961         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
18962
18963 2010-04-10  Bruno Haible  <bruno@clisp.org>
18964
18965         vasnprintf test: Reduce code duplication.
18966         * tests/test-vasnprintf.c (test_function): New function, extracted from
18967         test_vasnprintf.
18968         (test_vasnprintf, test_asnprintf): Invoke it.
18969
18970 2010-04-10  Bruno Haible  <bruno@clisp.org>
18971
18972         strnlen: Fix warning in C++ mode on MacOS X.
18973         * lib/string.in.h (strnlen): Use the modern idiom.
18974         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
18975         defining strnlen as a macro already in <config.h>.
18976         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
18977         REPLACE_STRNLEN.
18978         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
18979         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18980
18981 2010-04-08  James Youngman  <jay@gnu.org>
18982
18983         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
18984         the example.
18985
18986 2010-04-09  Jim Meyering  <meyering@redhat.com>
18987
18988         maint.mk: print better diagnostic when there is no $(_hv_file)
18989         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
18990         announce that when $(_hv_file) (aka help-version) does not exist.
18991
18992         init.sh: run tr in the "C" locale to avoid multibyte interpretation
18993         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
18994         not try to interpret its random input bytes.  Jarno Rajahalme reported
18995         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
18996         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
18997         (mktempd_): Likewise, just in case.
18998
18999         ftruncate: add two years to projected module removal date: 2012
19000         * m4/ftruncate.m4: Adjust comments.
19001
19002         ftruncate: mark module as obsolete; even MinGW provides it, now
19003         * modules/ftruncate (Status): Obsolete.
19004         (Notice): Say that.
19005         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
19006         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
19007
19008 2010-04-08  Bruno Haible  <bruno@clisp.org>
19009
19010         Fix side effects from tests-related modules.
19011         * modules/dprintf-posix (Comment): New section.
19012         * modules/fprintf-posix (Comment): Likewise.
19013         * modules/obstack-printf-posix (Comment): Likewise.
19014         * modules/printf-posix (Comment): Likewise.
19015         * modules/snprintf-posix (Comment): Likewise.
19016         * modules/sprintf-posix (Comment): Likewise.
19017         * modules/vasnprintf-posix (Comment): Likewise.
19018         * modules/vasprintf-posix (Comment): Likewise.
19019         * modules/vdprintf-posix (Comment): Likewise.
19020         * modules/vfprintf-posix (Comment): Likewise.
19021         * modules/vprintf-posix (Comment): Likewise.
19022         * modules/vsnprintf-posix (Comment): Likewise.
19023         * modules/vsprintf-posix (Comment): Likewise.
19024         * modules/xprintf-posix (Comment): Likewise.
19025         * modules/xvasprintf-posix (Comment): Likewise.
19026         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
19027         * modules/floorf-tests (Depends-on): Likewise.
19028         * modules/round-tests (Depends-on): Likewise.
19029         * modules/roundf-tests (Depends-on): Likewise.
19030         * modules/trunc-tests (Depends-on): Likewise.
19031         * modules/truncf-tests (Depends-on): Likewise.
19032         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
19033         'fprintf-posix' module is not present.
19034         * tests/test-floorf2.c (check): Likewise.
19035         * tests/test-trunc2.c (check): Likewise.
19036         * tests/test-truncf2.c (check): Likewise.
19037         * tests/test-round2.c (equal): Likewise.
19038         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
19039
19040 2010-04-07  Karl Berry  <karl@gnu.org>
19041
19042         * config/srclist.txt,
19043         * config/srclistvars.sh,
19044         * config/srclist-update: doc fixes.
19045
19046 2010-04-07  Jim Meyering  <meyering@redhat.com>
19047
19048         maint.mk: add a PATH crosschecking syntax-check rule
19049         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
19050         Useful if you use a test like the one in help-version (coreutils,
19051         diffutils, grep, gzip) that ensures $(VERSION) matches what is
19052         printed by prog --version.
19053
19054 2010-04-06  Bruno Haible  <bruno@clisp.org>
19055
19056         Fix link error on mingw.
19057         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
19058         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
19059
19060 2010-04-06  Bruno Haible  <bruno@clisp.org>
19061
19062         Assume rmdir exists.
19063         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
19064
19065 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
19066
19067         doc: update users.txt
19068         * users.txt: Add gcal.
19069
19070 2010-04-06  Jim Meyering  <meyering@redhat.com>
19071
19072         init.sh: simply unset TMPDIR rather than risking env -i
19073         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
19074         although it probably works fine on all Unix-based systems, some
19075         systems (Cygwin?) cannot tolerate a totally cleared environment.
19076         Suggestion from Eric Blake.
19077
19078 2010-04-06  Jim Meyering  <meyering@redhat.com>
19079
19080         init.sh: portability fix: use env's POSIX-specified -i option not -u
19081         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
19082         than unportable env -u.  Solaris 5.11's env lacks support for -u.
19083
19084 2010-04-05  Bruno Haible  <bruno@clisp.org>
19085
19086         btowc: Work around Cygwin 1.7.2 bug.
19087         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
19088         does not map NUL to 0.
19089         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
19090
19091 2010-04-05  Bruno Haible  <bruno@clisp.org>
19092
19093         Make the multithread modules work on Cygwin 1.7.2.
19094         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
19095         imported symbols can be declared weak, so that it returns "no" on
19096         Cygwin 1.7.2.
19097
19098 2010-04-05  Bruno Haible  <bruno@clisp.org>
19099
19100         Use the module 'strncat'.
19101         * modules/unistr/u8-strncat (Depends-on): Add strncat.
19102
19103         Tests for module 'strncat'.
19104         * modules/strncat-tests: New file.
19105         * tests/test-strncat.c: New file.
19106
19107         New module 'strncat'.
19108         * lib/string.in.h (strncat): New declaration.
19109         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
19110         * m4/strncat.m4: New file, based on m4/memchr.m4.
19111         * modules/strncat: New file.
19112         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
19113         is declared.
19114         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
19115         REPLACE_STRNCAT.
19116         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
19117         REPLACE_STRNCAT.
19118         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
19119         module.
19120         * tests/test-string-c++.cc: Check signature of strncat.
19121
19122 2010-04-05  Jim Meyering  <meyering@redhat.com>
19123
19124         xstrtoumax-tests: convert to use init.sh
19125         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
19126         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
19127         Use Exit, not exit.
19128         Remove uses of $EXEEXT and "./" to run a program in the current dir.
19129
19130         xstrtoimax-tests: convert to use init.sh
19131         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
19132         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
19133         Use Exit, not exit.
19134         Remove uses of $EXEEXT and "./" to run a program in the current dir.
19135
19136 2010-04-05  Bruno Haible  <bruno@clisp.org>
19137
19138         sys_socket: Avoid #define replacements in C++ mode.
19139         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
19140         warning to the function if possible, rather than #defining the symbol
19141         to a dysfunctional alias.
19142
19143 2010-04-05  Bruno Haible  <bruno@clisp.org>
19144
19145         fseeko: Fix C++ test error on mingw.
19146         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
19147         gl_FUNC_FSEEKO.
19148         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
19149         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
19150         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
19151         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
19152
19153 2010-04-05  Bruno Haible  <bruno@clisp.org>
19154
19155         duplocale: Improve test output.
19156         * tests/test-duplocale.c (main): Print reason for skipped test.
19157
19158 2010-04-05  Bruno Haible  <bruno@clisp.org>
19159
19160         Assume rmdir exists.
19161         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
19162         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
19163
19164 2010-04-05  Bruno Haible  <bruno@clisp.org>
19165
19166         Fix link error on Solaris 8 with cc.
19167         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
19168
19169 2010-04-05  Bruno Haible  <bruno@clisp.org>
19170
19171         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
19172         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
19173
19174 2010-04-05  Bruno Haible  <bruno@clisp.org>
19175
19176         vasprintf: Update documentation.
19177         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
19178
19179 2010-04-05  Bruno Haible  <bruno@clisp.org>
19180
19181         ptsname: Improve test.
19182         * tests/test-ptsname.c (main): Also try the various master names of BSD
19183         systems.
19184
19185 2010-04-05  Bruno Haible  <bruno@clisp.org>
19186
19187         memchr: Avoid a possible C++ test error.
19188         * lib/string.in.h (memchr): Provide declaration if function is missing.
19189         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
19190         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
19191         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
19192         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
19193
19194 2010-04-05  Bruno Haible  <bruno@clisp.org>
19195
19196         strtok_r: Improve idiom.
19197         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
19198         AC_LIBOBJ is used.
19199
19200 2010-04-05  Bruno Haible  <bruno@clisp.org>
19201
19202         strdup: Improve idiom.
19203         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
19204         AC_LIBOBJ is used.
19205         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
19206         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
19207         when AC_LIBOBJ is used.
19208
19209 2010-04-05  Bruno Haible  <bruno@clisp.org>
19210
19211         mbsinit, mbrtowc, wcrtomb: Improve idioms.
19212         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
19213         don't set REPLACE_MBSINIT to 1.
19214         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
19215         don't set REPLACE_MBRTOWC to 1.
19216         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
19217         exist, don't set REPLACE_MBSRTOWCS to 1.
19218         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
19219         exist, don't set REPLACE_MBSNRTOWCS to 1.
19220         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
19221         don't set REPLACE_WCRTOMB to 1.
19222         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
19223         exist, don't set REPLACE_WCSRTOMBS to 1.
19224         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
19225         exist, don't set REPLACE_WCSNRTOMBS to 1.
19226
19227 2010-04-05  Bruno Haible  <bruno@clisp.org>
19228
19229         ldexpl: Improve idiom.
19230         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
19231         make sure to set HAVE_DECL_LDEXPL to 0.
19232
19233 2010-04-05  Jim Meyering  <meyering@redhat.com>
19234
19235         xstrtol-tests: convert to use init.sh
19236         * modules/xstrtol-tests (Files): Add tests/init.sh.
19237         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
19238         Use Exit, not exit.
19239         Remove uses of $EXEEXT and "./" to run a program in the current dir.
19240
19241         atexit-tests: convert to use init.sh
19242         * modules/atexit-tests (Files): Add tests/init.sh.
19243         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
19244         Use Exit, not exit.
19245         Remove uses of $EXEEXT and "./" to run a program in the current dir.
19246
19247         init.sh: fix typo
19248         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
19249
19250         init.sh: make it easier for a test script to write to the tty, ...
19251         when using automake's parallel-tests mode.
19252         * tests/init.sh (stderr_fileno_): Define overridable variable.
19253         (warn_): New function, to use it.
19254         (fail_, skip_, framework_failure_): Use warn_.
19255
19256 2010-04-04  Bruno Haible  <bruno@clisp.org>
19257
19258         btowc: Avoid warning.
19259         * lib/btowc.c: Include <stdlib.h>.
19260         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
19261
19262 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
19263             Bruno Haible  <bruno@clisp.org>
19264
19265         wchar: Port to NetBSD 1.5.
19266         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
19267         * lib/wctype.in.h (WEOF): Likewise.
19268
19269 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
19270             Bruno Haible  <bruno@clisp.org>
19271
19272         Port extended stdio to NetBSD 1.5.
19273         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
19274         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
19275         older.
19276
19277 2010-04-04  Bruno Haible  <bruno@clisp.org>
19278
19279         string: Remove unused substitution.
19280         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
19281         HAVE_DECL_STRERROR.
19282         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
19283
19284 2010-04-04  Bruno Haible  <bruno@clisp.org>
19285
19286         strtod: Avoid a possible C++ test error.
19287         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
19288         set REPLACE_STRTOD.
19289
19290 2010-04-04  Bruno Haible  <bruno@clisp.org>
19291
19292         strerror: Update documentation.
19293         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
19294
19295 2010-04-04  Bruno Haible  <bruno@clisp.org>
19296
19297         stdio: Fix some C++ test errors on Solaris 8 with GCC.
19298         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
19299         _GL_CXXALIAS_SYS_CAST.
19300
19301 2010-04-04  Bruno Haible  <bruno@clisp.org>
19302
19303         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
19304         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
19305         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
19306         REPLACE_FREXPL to 1.
19307         * doc/posix-functions/frexpl.texi: Update documentation.
19308
19309 2010-04-04  Bruno Haible  <bruno@clisp.org>
19310
19311         math: Fix some C++ test errors on Solaris 8 and Cygwin.
19312         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
19313
19314 2010-04-04  Bruno Haible  <bruno@clisp.org>
19315
19316         Implement nanosleep for native Windows.
19317         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
19318
19319 2010-04-04  Bruno Haible  <bruno@clisp.org>
19320
19321         math: Fix some C++ test errors on Solaris 8.
19322         * lib/math.in.h (truncf, trunc): Use simpler idiom.
19323
19324 2010-04-04  Bruno Haible  <bruno@clisp.org>
19325
19326         math: Fix some C++ test errors on Cygwin.
19327         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
19328         truncl): Provide declaration if the system does not have it.
19329         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
19330         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
19331         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
19332         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
19333         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
19334         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
19335         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
19336         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
19337         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
19338         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
19339         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
19340         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
19341         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
19342         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
19343         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
19344         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
19345         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
19346         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
19347         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
19348         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
19349         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
19350         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
19351
19352 2010-04-04  Bruno Haible  <bruno@clisp.org>
19353
19354         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
19355         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
19356         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
19357         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
19358         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
19359         * m4/isinf.m4 (gl_ISINF): Likewise.
19360         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
19361
19362 2010-04-04  Bruno Haible  <bruno@clisp.org>
19363
19364         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
19365         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
19366
19367 2010-04-04  Bruno Haible  <bruno@clisp.org>
19368
19369         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
19370         * modules/tmpfile (configure.ac): Update.
19371
19372         tmpfile: Fix C++ test error on mingw.
19373         * lib/stdio.in.h (tmpfile): New declaration.
19374         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
19375         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
19376         * modules/tmpfile (Depends-on): Add stdio.
19377         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
19378         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
19379         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
19380         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
19381         REPLACE_TMPFILE.
19382         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
19383
19384 2010-04-04  Bruno Haible  <bruno@clisp.org>
19385
19386         ioctl: Fix C++ test error on mingw.
19387         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
19388         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
19389         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
19390
19391 2010-04-03  Bruno Haible  <bruno@clisp.org>
19392
19393         wcwidth: Fix C++ test error on mingw.
19394         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
19395         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
19396         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
19397
19398 2010-04-03  Bruno Haible  <bruno@clisp.org>
19399
19400         nanosleep: Fix C++ test error on mingw.
19401         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
19402         * lib/time.in.h (nanosleep): Use modern idiom.
19403         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
19404         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
19405         REPLACE_NANOSLEEP to 1.
19406         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
19407         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
19408
19409 2010-04-03  Bruno Haible  <bruno@clisp.org>
19410
19411         strptime: Fix C++ test error on mingw.
19412         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
19413         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
19414         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
19415         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
19416         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
19417         not REPLACE_STRPTIME.
19418         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
19419         REPLACE_STRPTIME.
19420
19421 2010-04-03  Bruno Haible  <bruno@clisp.org>
19422
19423         timegm: Fix C++ test error on mingw.
19424         * lib/time.in.h (timegm): Use modern idiom.
19425         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
19426         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
19427         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
19428         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
19429
19430 2010-04-03  Bruno Haible  <bruno@clisp.org>
19431
19432         timegm: Assume declaration if function exists.
19433         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
19434         if it exists. Don't clobber ac_cv_func_timegm.
19435
19436 2010-04-03  Bruno Haible  <bruno@clisp.org>
19437
19438         time_r: Fix C++ test error on mingw.
19439         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
19440         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
19441         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
19442         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
19443         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
19444
19445 2010-04-03  Bruno Haible  <bruno@clisp.org>
19446
19447         time_r: Minor updates.
19448         * modules/time_r (Description): Mention the provided functions.
19449         * lib/time_r.c: Don't include <string.h>.
19450         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
19451         * doc/posix-functions/localtime_r.texi: Likewise.
19452
19453 2010-04-03  Bruno Haible  <bruno@clisp.org>
19454
19455         time: Fix regression introduced on 2010-03-08.
19456         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
19457         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
19458
19459 2010-04-03  Jim Meyering  <meyering@redhat.com>
19460
19461         maint.mk: don't silently disable project-specific syntax-check rules
19462         * top/maint.mk (_prohibit_regexp): Define, to help people realize
19463         that they need to convert their project-specific syntax-check rules
19464         to use the new _sc_search_regexp.
19465
19466 2010-04-03  Bruno Haible  <bruno@clisp.org>
19467
19468         fchdir: Fix regression introduced on 2010-03-08.
19469         * lib/unistd.in.h (fchdir): Fix declaration.
19470         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
19471         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
19472         REPLACE_FCHDIR.
19473         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
19474         REPLACE_FCHDIR.
19475
19476 2010-04-03  Bruno Haible  <bruno@clisp.org>
19477
19478         getpagesize: Fix C++ test error on mingw.
19479         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
19480         system does not declare the function.
19481         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
19482         declared.
19483         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19484         HAVE_DECL_GETPAGESIZE.
19485         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
19486
19487 2010-04-03  Bruno Haible  <bruno@clisp.org>
19488
19489         stdio: Make C++ tests work on mingw.
19490         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
19491         does not declare the function.
19492
19493 2010-04-03  Bruno Haible  <bruno@clisp.org>
19494
19495         ftello: Fix C++ test error on mingw.
19496         * lib/stdio.in.h (ftello): Use modern idiom.
19497         * lib/ftello.c (ftello): Renamed from rpl_ftello.
19498         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
19499         is missing and that it needs to be replaced.
19500         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
19501         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
19502         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
19503
19504 2010-04-03  Bruno Haible  <bruno@clisp.org>
19505
19506         fseeko: Fix C++ test error on mingw.
19507         * lib/stdio.in.h (fseeko): Use modern idiom.
19508         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
19509         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
19510         is missing and that it needs to be replaced.
19511         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
19512         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
19513         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
19514
19515 2010-04-03  Bruno Haible  <bruno@clisp.org>
19516
19517         mkstemp: Fix C++ test error on mingw.
19518         * lib/stdlib.in.h (mkstemp): Use modern idiom.
19519         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
19520         function is missing and that it needs to be replaced.
19521         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
19522         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
19523
19524 2010-04-03  Bruno Haible  <bruno@clisp.org>
19525
19526         stpncpy: Fix C++ test error on mingw.
19527         * lib/string.in.h (stpncpy): Use modern idiom.
19528         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
19529         function is missing and that it needs to be replaced.
19530         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
19531         REPLACE_STPNCPY.
19532         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
19533
19534 2010-04-03  Bruno Haible  <bruno@clisp.org>
19535
19536         sys_stat: Fix C++ test error on mingw.
19537         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
19538         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
19539
19540 2010-04-03  Bruno Haible  <bruno@clisp.org>
19541
19542         pty: Update doc.
19543         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
19544
19545 2010-04-03  Bruno Haible  <bruno@clisp.org>
19546
19547         unistd: Fix C++ test error on mingw.
19548         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
19549
19550 2010-04-03  Bruno Haible  <bruno@clisp.org>
19551
19552         Update doc regarding mingw.
19553         * doc/glibc-functions/openpty.texi: Update regarding mingw.
19554         * doc/glibc-functions/login_tty.texi: Likewise.
19555         * doc/glibc-functions/forkpty.texi: Likewise.
19556
19557 2010-04-03  Bruno Haible  <bruno@clisp.org>
19558
19559         stdlib: Avoid compilation failure of c-strtold on mingw.
19560         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
19561
19562 2010-04-03  Bruno Haible  <bruno@clisp.org>
19563
19564         locale: Make C++ tests work on Cygwin and mingw.
19565         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
19566         cannot provide the function.
19567         Reported by Simon Josefsson.
19568
19569 2010-04-03  Bruno Haible  <bruno@clisp.org>
19570
19571         localename: Port to MacOS X 10.6.
19572         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
19573         memory layout of the locales in MacOS X 10.6 as well.
19574         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
19575
19576 2010-04-02  Bruno Haible  <bruno@clisp.org>
19577
19578         gnulib-tool: Ensure that long-running tests are executed last.
19579         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
19580         running tests after the one for the other tests.
19581
19582 2010-04-02  Bruno Haible  <bruno@clisp.org>
19583
19584         gnulib-tool: Ensure the tests in the main directory are executed first.
19585         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
19586         start with the current directory.
19587
19588 2010-04-02  Bruno Haible  <bruno@clisp.org>
19589
19590         Tests for module 'havelib', moved here from GNU gettext.
19591         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
19592         modifications.
19593         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
19594         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
19595         with modifications.
19596         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
19597         modifications.
19598         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
19599         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
19600         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
19601         with modifications.
19602         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
19603         with modifications.
19604         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
19605         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
19606         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
19607         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
19608         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
19609         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
19610         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
19611         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
19612         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
19613         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
19614         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
19615         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
19616         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
19617         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
19618         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
19619         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
19620         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
19621         with modifications.
19622         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
19623         with modifications.
19624         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
19625         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
19626         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
19627         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
19628         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
19629         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
19630         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
19631         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
19632         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
19633         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
19634         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
19635         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
19636         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
19637         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
19638         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
19639         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
19640         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
19641         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
19642         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
19643         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
19644         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
19645         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
19646         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
19647         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
19648         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
19649         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
19650         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
19651         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
19652         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
19653         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
19654         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
19655         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
19656         * tests/havelib/rpathx/rpathx.c: New file, from
19657         gettext/autoconf-lib-link.
19658         * tests/havelib/rpathx/Makefile.am: New file, from
19659         gettext/autoconf-lib-link.
19660         * tests/havelib/rpathx/configure.ac: New file, from
19661         gettext/autoconf-lib-link with modifications.
19662         * tests/havelib/rpathy/rpathy.c: New file, from
19663         gettext/autoconf-lib-link.
19664         * tests/havelib/rpathy/Makefile.am: New file, from
19665         gettext/autoconf-lib-link.
19666         * tests/havelib/rpathy/configure.ac: New file, from
19667         gettext/autoconf-lib-link with modifications.
19668         * tests/havelib/rpathz/rpathz.c: New file, from
19669         gettext/autoconf-lib-link.
19670         * tests/havelib/rpathz/Makefile.am: New file, from
19671         gettext/autoconf-lib-link.
19672         * tests/havelib/rpathz/configure.ac: New file, from
19673         gettext/autoconf-lib-link with modifications.
19674         * tests/havelib/rpathlx/usex.c: New file, from
19675         gettext/autoconf-lib-link.
19676         * tests/havelib/rpathlx/Makefile.am: New file, from
19677         gettext/autoconf-lib-link.
19678         * tests/havelib/rpathlx/configure.ac: New file, from
19679         gettext/autoconf-lib-link with modifications.
19680         * tests/havelib/rpathly/usey.c: New file, from
19681         gettext/autoconf-lib-link.
19682         * tests/havelib/rpathly/Makefile.am: New file, from
19683         gettext/autoconf-lib-link.
19684         * tests/havelib/rpathly/configure.ac: New file, from
19685         gettext/autoconf-lib-link with modifications.
19686         * tests/havelib/rpathlz/usez.c: New file, from
19687         gettext/autoconf-lib-link.
19688         * tests/havelib/rpathlz/Makefile.am: New file, from
19689         gettext/autoconf-lib-link.
19690         * tests/havelib/rpathlz/configure.ac: New file, from
19691         gettext/autoconf-lib-link with modifications.
19692         * tests/havelib/rpathlyx/usey.c: New file, from
19693         gettext/autoconf-lib-link.
19694         * tests/havelib/rpathlyx/Makefile.am: New file, from
19695         gettext/autoconf-lib-link.
19696         * tests/havelib/rpathlyx/configure.ac: New file, from
19697         gettext/autoconf-lib-link with modifications.
19698         * tests/havelib/rpathlzyx/usez.c: New file, from
19699         gettext/autoconf-lib-link.
19700         * tests/havelib/rpathlzyx/Makefile.am: New file, from
19701         gettext/autoconf-lib-link.
19702         * tests/havelib/rpathlzyx/configure.ac: New file, from
19703         gettext/autoconf-lib-link with modifications.
19704         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
19705         with modifications.
19706
19707 2010-04-02  Bruno Haible  <bruno@clisp.org>
19708
19709         gnulib-tool: Create distributed built sources also for the tests.
19710         * gnulib-tool (func_create_testdir): Also generate distributed built
19711         sources in the tests directory.
19712
19713 2010-04-02  Bruno Haible  <bruno@clisp.org>
19714
19715         gnulib-tool: Obey user's environment variables.
19716         * gnulib-tool (func_create_testdir): When creating built sources,
19717         respect the environment variables for autoconf, automake, etc. given by
19718         the user.
19719
19720 2010-04-02  Bruno Haible  <bruno@clisp.org>
19721
19722         gnulib-tool: Provide the value of --m4-base to modules.
19723         * gnulib-tool (func_import, func_create_testdir): Emit a definition
19724         of gl_m4_base.
19725
19726 2010-04-02  Eric Blake  <eblake@redhat.com>
19727
19728         maint.mk: fix some fallout
19729         * NEWS: Document the incompatible change, and its effect on cfg.mk.
19730         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
19731
19732 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
19733
19734         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
19735         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
19736         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
19737         (sc_cast_of_x_alloc_return_value): Likewise.
19738         (sc_cast_of_alloca_return_value): Likewise.
19739         (sc_space_tab): Likewise.
19740         (sc_prohibit_atoi_atof): Likewise.
19741         (sc_prohibit_magic_number_exit): Likewise.
19742         (sc_error_exit_success): Likewise.
19743         (sc_file_system): Likewise.
19744         (sc_prohibit_have_config_h): Likewise.
19745         (sc_require_config_h): Likewise.
19746         (sc_prohibit_HAVE_MBRTOWC): Likewise.
19747         (sc_obsolete_symbols): Likewise.
19748         (sc_changelog): Likewise.
19749         (sc_program_name): Likewise.
19750         (sc_the_the): Likewise.
19751         (sc_trailing_blank): Likewise.
19752         (sc_two_space_separator_in_usage): Likewise.
19753         (sc_useless_cpp_parens): Likewise.
19754         (sc_GPL_version): Likewise.
19755         (sc_GFDL_version): Likewise.
19756         (sc_texinfo_acronym): Likewise.
19757         (sc_prohibit_cvs_keyword): Likewise.
19758         (sc_prohibit_stat_st_blocks): Likewise.
19759         (sc_prohibit_S_IS_definition): Likewise.
19760         (sc_redundant_const): Likewise.
19761         (sc_makefile_TAB_only_indentation): Likewise.
19762         (sc_m4_quote_check): Likewise.
19763         (sc_makefile_path_separator_check): Likewise.
19764         (sc_copyright_check): Likewise.
19765         (sc_Wundef_boolean): Likewise.
19766         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
19767
19768         maint.mk: match 0 or more whitespace-before-function-call '('
19769         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
19770         that have zero or two-and-more spaces between the function name
19771         and the open parenthesis.
19772         (sc_error_message_warn_fatal): Likewise.
19773         (sc_error_message_uppercase): Likewise.
19774         (sc_error_message_period): Likewise.
19775
19776 2010-03-31  Eric Blake  <eblake@redhat.com>
19777
19778         maint.mk: check for [ as well as test
19779         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
19780         Based on a libvirt report by Matthias Bolte.
19781
19782         gnumakefile: don't squelch _version output
19783         * top/GNUmakefile (_version): Create one-shot dependency rather
19784         than using $(shell) when version must be regenerated.
19785         (_autoreconf): Run verbosely, by default.
19786
19787         sys_time: avoid compiler warnings
19788         * lib/sys_time.in.h (includes): Ensure gcc pragma is
19789         unconditional, fixing regression from 2010-03-29.
19790         Reported by Simon Josefsson.
19791
19792 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
19793
19794         maint.mk: s/_header_without_use/_sc_header_without_use/
19795         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
19796         (sc_prohibit_assert_without_use): Use the new name.
19797         (sc_prohibit_close_stream_without_use): Likewise.
19798         (sc_prohibit_getopt_without_use): Likewise.
19799         (sc_prohibit_quotearg_without_use): Likewise.
19800         (sc_prohibit_quote_without_use): Likewise.
19801         (sc_prohibit_long_options_without_use): Likewise.
19802         (sc_prohibit_inttostr_without_use): Likewise.
19803         (sc_prohibit_ignore_value_without_use): Likewise.
19804         (sc_prohibit_error_without_use): Likewise.
19805         (sc_prohibit_xalloc_without_use): Likewise.
19806         (sc_prohibit_hash_without_use): Likewise.
19807         (sc_prohibit_hash_pjw_without_use): Likewise.
19808         (sc_prohibit_safe_read_without_use): Likewise.
19809         (sc_prohibit_argmatch_without_use): Likewise.
19810         (sc_prohibit_canonicalize_without_use): Likewise.
19811         (sc_prohibit_root_dev_ino_without_use): Likewise.
19812         (sc_prohibit_openat_without_use): Likewise.
19813         (sc_prohibit_c_ctype_without_use): Likewise.
19814         (sc_prohibit_signal_without_use): Likewise.
19815         (sc_prohibit_intprops_without_use): Likewise.
19816
19817 2010-03-30  Eric Blake  <eblake@redhat.com>
19818
19819         maint: improve module indicators
19820         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
19821         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
19822         columns, and avoid extra macro expansion.
19823
19824         fdopendir: work around FreeBSD bug
19825         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
19826         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
19827         * modules/dirent (Makefile.am): Substitute it.
19828         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
19829         declaration.
19830         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
19831         fix.
19832         Reported by Christian Weisgerber <naddy@mips.inka.de>.
19833
19834 2010-03-29  Bruno Haible  <bruno@clisp.org>
19835
19836         Emit #pragma system_header after the inclusion guard, not before.
19837         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
19838         guard that spans the entire file, not before. This enables an
19839         optimization in GCC's preprocessor.
19840         * lib/ctype.in.h: Likewise.
19841         * lib/dirent.in.h: Likewise.
19842         * lib/errno.in.h: Likewise.
19843         * lib/float.in.h: Likewise.
19844         * lib/getopt.in.h: Likewise.
19845         * lib/iconv.in.h: Likewise.
19846         * lib/langinfo.in.h: Likewise.
19847         * lib/locale.in.h: Likewise.
19848         * lib/math.in.h: Likewise.
19849         * lib/netdb.in.h: Likewise.
19850         * lib/netinet_in.in.h: Likewise.
19851         * lib/pty.in.h: Likewise.
19852         * lib/sched.in.h: Likewise.
19853         * lib/se-selinux.in.h: Likewise.
19854         * lib/search.in.h: Likewise.
19855         * lib/spawn.in.h: Likewise.
19856         * lib/stdarg.in.h: Likewise.
19857         * lib/stdint.in.h: Likewise.
19858         * lib/string.in.h: Likewise.
19859         * lib/strings.in.h: Likewise.
19860         * lib/sys_file.in.h: Likewise.
19861         * lib/sys_ioctl.in.h: Likewise.
19862         * lib/sys_time.in.h: Likewise.
19863         * lib/sys_times.in.h: Likewise.
19864         * lib/sys_utsname.in.h: Likewise.
19865         * lib/sys_wait.in.h: Likewise.
19866         * lib/sysexits.in.h: Likewise.
19867         * lib/wctype.in.h: Likewise.
19868
19869 2010-03-28  James Youngman  <jay@gnu.org>
19870
19871         save-cwd: don't leak a file descriptor when the caller execs.
19872         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
19873         saved file descriptor.
19874         * modules/save-cwd (Depends-on): Depend on cloexec.
19875
19876 2010-03-29  Bruno Haible  <bruno@clisp.org>
19877
19878         Remove vestiges of fts-lgpl module.
19879         * lib/fts_.h: Assume GNULIB_FTS is 1.
19880         * lib/fts.c: Likewise.
19881         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
19882
19883 2010-03-28  Bruno Haible  <bruno@clisp.org>
19884
19885         Fix definition of tests witness macro.
19886         * gnulib-tool (func_import): Fix definition of witness macro.
19887
19888 2010-03-28  Bruno Haible  <bruno@clisp.org>
19889
19890         Fix ioctl's protoype on glibc systems.
19891         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
19892         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
19893         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
19894         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
19895         signature. If not, arrange to replace the ioctl function.
19896         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
19897         REPLACE_IOCTL.
19898         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
19899         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
19900         Reported by Ludovic Courtès <ludo@gnu.org>.
19901
19902 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
19903
19904         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
19905         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
19906         made it so grep -r --include=GLOB* ... did not work.
19907
19908 2010-03-26  Jim Meyering  <meyering@redhat.com>
19909             Eric Blake  <eblake@redhat.com>
19910
19911         maint.mk: prohibit use of test's -o and -a operators
19912         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
19913
19914 2010-03-28  Bruno Haible  <bruno@clisp.org>
19915
19916         Remove unused GNULIB_XYZ macro definitions.
19917         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
19918         invocation.
19919
19920 2010-03-28  Bruno Haible  <bruno@clisp.org>
19921
19922         Mark privileged tests modules.
19923         * modules/idpriv-drop-tests (Status): New section.
19924         * modules/idpriv-droptemp-tests (Status): New section.
19925
19926 2010-03-28  Bruno Haible  <bruno@clisp.org>
19927
19928         Split C++ tests into separate tests modules.
19929         * modules/dirent-c++-tests: New file, extracted from
19930         modules/dirent-tests.
19931         * modules/dirent-tests: Depend on it.
19932         * modules/fcntl-h-c++-tests: New file, extracted from
19933         modules/fcntl-h-tests.
19934         * modules/fcntl-h-tests: Depend on it.
19935         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
19936         * modules/glob-tests: Depend on it.
19937         * modules/iconv-h-c++-tests: New file, extracted from
19938         modules/iconv-h-tests.
19939         * modules/iconv-h-tests: Depend on it.
19940         * modules/langinfo-c++-tests: New file, extracted from
19941         modules/langinfo-tests.
19942         * modules/langinfo-tests: Depend on it.
19943         * modules/locale-c++-tests: New file, extracted from
19944         modules/locale-tests.
19945         * modules/locale-tests: Depend on it.
19946         * modules/math-c++-tests: New file, extracted from modules/math-tests.
19947         * modules/math-tests: Depend on it.
19948         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
19949         * modules/pty-tests: Depend on it.
19950         * modules/search-c++-tests: New file, extracted from
19951         modules/search-tests.
19952         * modules/search-tests: Depend on it.
19953         * modules/signal-c++-tests: New file, extracted from
19954         modules/signal-tests.
19955         * modules/signal-tests: Depend on it.
19956         * modules/spawn-c++-tests: New file, extracted from
19957         modules/spawn-tests.
19958         * modules/spawn-tests: Depend on it.
19959         * modules/stdio-c++-tests: New file, extracted from
19960         modules/stdio-tests.
19961         * modules/stdio-tests: Depend on it.
19962         * modules/stdlib-c++-tests: New file, extracted from
19963         modules/stdlib-tests.
19964         * modules/stdlib-tests: Depend on it.
19965         * modules/string-c++-tests: New file, extracted from
19966         modules/string-tests.
19967         * modules/string-tests: Depend on it.
19968         * modules/sys_ioctl-c++-tests: New file, extracted from
19969         modules/sys_ioctl-tests.
19970         * modules/sys_ioctl-tests: Depend on it.
19971         * modules/sys_select-c++-tests: New file, extracted from
19972         modules/sys_select-tests.
19973         * modules/sys_select-tests: Depend on it.
19974         * modules/sys_socket-c++-tests: New file, extracted from
19975         modules/sys_socket-tests.
19976         * modules/sys_socket-tests: Depend on it.
19977         * modules/sys_stat-c++-tests: New file, extracted from
19978         modules/sys_stat-tests.
19979         * modules/sys_stat-tests: Depend on it.
19980         * modules/sys_time-c++-tests: New file, extracted from
19981         modules/sys_time-tests.
19982         * modules/sys_time-tests: Depend on it.
19983         * modules/time-c++-tests: New file, extracted from modules/time-tests.
19984         * modules/time-tests: Depend on it.
19985         * modules/unistd-c++-tests: New file, extracted from
19986         modules/unistd-tests.
19987         * modules/unistd-tests: Depend on it.
19988         * modules/wchar-c++-tests: New file, extracted from
19989         modules/wchar-tests.
19990         * modules/wchar-tests: Depend on it.
19991         * modules/wctype-c++-tests: New file, extracted from
19992         modules/wctype-tests.
19993         * modules/wctype-tests: Depend on it.
19994         Reported by Simon Josefsson.
19995
19996 2010-03-28  Bruno Haible  <bruno@clisp.org>
19997
19998         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
19999         * gnulib-tool (func_exists_module): New function, extracted from
20000         func_verify_module.
20001         (func_verify_module): Use it.
20002         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
20003         'foo' only if 'foo' exists.
20004         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
20005         module.
20006
20007 2010-03-28  Bruno Haible  <bruno@clisp.org>
20008
20009         gnulib-tool: Add support for special categories of tests.
20010         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
20011         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
20012         (func_usage): Document them.
20013         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
20014         inc_unportable_tests, inc_all_tests): New variables.
20015         (func_acceptable): Consider these variables.
20016         (func_modules_transitive_closure): Make it work when the 'Status' field
20017         consists of multiple words.
20018         (func_import): Store and restore the values of inc_cxx_tests,
20019         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
20020         inc_all_tests in gnulib-comp.m4.
20021         (func_create_testdir): Set inc_all_tests to true.
20022         * doc/gnulib.texi (Extra tests modules): New section.
20023         Suggested by Jim Meyering.
20024
20025 2010-03-28  Bruno Haible  <bruno@clisp.org>
20026
20027         ansi-c++-opt: Allow turning off the C++ build by default.
20028         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
20029         gl_CXX_CHOICE_DEFAULT_NO is defined.
20030         Requested by Eric Blake.
20031
20032 2010-03-28  Bruno Haible  <bruno@clisp.org>
20033
20034         unistd: Avoid #define replacements in C++ mode.
20035         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
20036         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
20037         setsockopt, shutdown, select): In C++, attach a warning to the function
20038         if possible, rather than #defining the symbol to a dysfunctional alias.
20039         Reported by John W. Eaton <jwe@gnu.org>.
20040
20041 2010-03-28  Bruno Haible  <bruno@clisp.org>
20042
20043         Fix link errors on mingw.
20044         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
20045         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
20046         $(LIBSOCKET).
20047         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
20048         $(LIBSOCKET).
20049
20050 2010-03-28  Bruno Haible  <bruno@clisp.org>
20051             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20052
20053         lib-ignore: Determine different options for different compilers.
20054         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
20055         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
20056         Add comments.
20057         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
20058         * NEWS: Mention the change.
20059
20060 2010-03-27  Bruno Haible  <bruno@clisp.org>
20061
20062         Remove unused GNULIB_XYZ macro definitions.
20063         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
20064         * modules/fseek (configure.ac): Likewise.
20065         * modules/ioctl (configure.ac): Likewise.
20066         * modules/open (configure.ac): Likewise.
20067         * modules/stdlib-safer (configure.ac): Likewise.
20068
20069 2010-03-27  Bruno Haible  <bruno@clisp.org>
20070
20071         Add a remark about certain modules.
20072         * modules/malloc (Comment): New section.
20073         * modules/realloc (Comment): Likewise.
20074         * modules/sigpipe (Comment): Likewise.
20075
20076 2010-03-27  Bruno Haible  <bruno@clisp.org>
20077
20078         Resolve conflict between the two kinds of module indicators.
20079         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
20080         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
20081         * modules/canonicalize (configure.ac): Invoke
20082         gl_MODULE_INDICATOR_FOR_TESTS.
20083         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
20084         GNULIB_XYZ.
20085         * tests/test-dirent-c++.cc: Likewise.
20086         * tests/test-dirent-safer.c: Likewise.
20087         * tests/test-dup2.c: Likewise.
20088         * tests/test-fchdir.c: Likewise.
20089         * tests/test-fcntl-h-c++.cc: Likewise.
20090         * tests/test-getopt.c: Likewise.
20091         * tests/test-getopt.h: Likewise.
20092         * tests/test-langinfo-c++.cc: Likewise.
20093         * tests/test-locale-c++.cc: Likewise.
20094         * tests/test-math-c++.cc: Likewise.
20095         * tests/test-pty-c++.cc: Likewise.
20096         * tests/test-search-c++.cc: Likewise.
20097         * tests/test-signal-c++.cc: Likewise.
20098         * tests/test-spawn-c++.cc: Likewise.
20099         * tests/test-stdio-c++.cc: Likewise.
20100         * tests/test-stdlib-c++.cc: Likewise.
20101         * tests/test-string-c++.cc: Likewise.
20102         * tests/test-sys_ioctl-c++.cc: Likewise.
20103         * tests/test-sys_select-c++.cc: Likewise.
20104         * tests/test-sys_socket-c++.cc: Likewise.
20105         * tests/test-sys_stat-c++.cc: Likewise.
20106         * tests/test-sys_time-c++.cc: Likewise.
20107         * tests/test-time-c++.cc: Likewise.
20108         * tests/test-unistd-c++.cc: Likewise.
20109         * tests/test-wchar-c++.cc: Likewise.
20110         * tests/uninorm/test-u8-nfc.c: Likewise.
20111         * tests/uninorm/test-u8-nfd.c: Likewise.
20112         * tests/uninorm/test-u8-nfkc.c: Likewise.
20113         * tests/uninorm/test-u8-nfkd.c: Likewise.
20114         * tests/uninorm/test-u16-nfc.c: Likewise.
20115         * tests/uninorm/test-u16-nfd.c: Likewise.
20116         * tests/uninorm/test-u16-nfkc.c: Likewise.
20117         * tests/uninorm/test-u16-nfkd.c: Likewise.
20118         * tests/uninorm/test-u32-nfc.c: Likewise.
20119         * tests/uninorm/test-u32-nfc-big.c: Likewise.
20120         * tests/uninorm/test-u32-nfd.c: Likewise.
20121         * tests/uninorm/test-u32-nfd-big.c: Likewise.
20122         * tests/uninorm/test-u32-nfkc.c: Likewise.
20123         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
20124         * tests/uninorm/test-u32-nfkd.c: Likewise.
20125         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
20126         * tests/uninorm/test-u32-normalize-big.c: Likewise.
20127
20128 2010-03-27  Bruno Haible  <bruno@clisp.org>
20129
20130         Distinguish two kinds of module indicators.
20131         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
20132         gl_MODULE_INDICATOR.
20133         (gl_MODULE_INDICATOR): New macro.
20134         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
20135         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
20136         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
20137         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
20138         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
20139         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
20140         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
20141         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
20142         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
20143         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
20144         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
20145         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
20146         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
20147         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
20148         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
20149         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
20150         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
20151         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
20152         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
20153         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
20154         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
20155         * modules/cloexec (configure.ac): Likewise.
20156         * modules/getopt-gnu (configure.ac): Likewise.
20157         * modules/uninorm/u8-normalize (configure.ac): Likewise.
20158         * modules/uninorm/u16-normalize (configure.ac): Likewise.
20159         * modules/uninorm/u32-normalize (configure.ac): Likewise.
20160         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
20161
20162 2010-03-27  Bruno Haible  <bruno@clisp.org>
20163
20164         New module description field 'Comment'.
20165         * gnulib-tool: New option --extract-comment.
20166         (func_usage): Document it.
20167         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
20168         (func_get_comment): New function.
20169         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
20170
20171 2010-03-27  Bruno Haible  <bruno@clisp.org>
20172
20173         Addendum to 2010-02-07 commit.
20174         * gnulib-tool (func_usage): Document --extract-applicability option.
20175
20176 2010-03-27  Bruno Haible  <bruno@clisp.org>
20177
20178         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
20179         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
20180         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
20181         rather than link errors.
20182
20183 2010-03-27  Bruno Haible  <bruno@clisp.org>
20184
20185         Avoid side effects from tests-related modules on the compilation of lib.
20186         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
20187         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
20188         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
20189         parameter. Emit into AM_CPPFLAGS a definition of the designated C
20190         macro.
20191         (func_import): Define a witness macro. Assign it a value that depends
20192         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
20193         tests-related modules.
20194         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
20195         Reported by Jim Meyering.
20196
20197 2010-03-27  Bruno Haible  <bruno@clisp.org>
20198
20199         Factorize common .m4 code.
20200         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
20201         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
20202         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
20203         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
20204         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
20205         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
20206         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
20207         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
20208         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
20209         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
20210         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
20211         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
20212         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
20213         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
20214         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
20215         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
20216         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
20217         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
20218         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
20219         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
20220         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
20221         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
20222         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
20223         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
20224         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
20225         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
20226         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
20227         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
20228         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
20229         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
20230         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
20231         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
20232
20233 2010-03-27  Bruno Haible  <bruno@clisp.org>
20234
20235         Fix a compilation error on Cygwin with g++ >= 4.3.
20236         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
20237         if it is undefined or if we alias it to chmod.
20238         (lstat): Don't warn about the use of this function if it is undefined
20239         or if we alias it to stat.
20240         Reported by Simon Josefsson.
20241
20242 2010-03-27  Bruno Haible  <bruno@clisp.org>
20243
20244         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
20245         * modules/getlogin (configure.ac): Update.
20246
20247         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
20248         * modules/getlogin_r (configure.ac): Update.
20249
20250         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
20251         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
20252         * modules/inet_ntop (configure.ac): Update.
20253
20254         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
20255         * modules/inet_pton (configure.ac): Update.
20256
20257         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
20258         * modules/mbslen (configure.ac): Update.
20259
20260         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
20261         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
20262         * modules/forkpty (configure.ac): Update.
20263         * modules/openpty (configure.ac): Update.
20264
20265 2010-03-26  Simon Josefsson  <simon@josefsson.org>
20266
20267         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
20268         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
20269
20270 2010-03-25  Eric Blake  <eblake@redhat.com>
20271
20272         maint: use pragma consistently across replacement headers
20273         * lib/ctype.in.h (system_header): Hoist for consistent placement.
20274         * lib/dirent.in.h (system_header): Likewise.
20275         * lib/errno.in.h (system_header): Likewise.
20276         * lib/float.in.h (system_header): Likewise.
20277         * lib/getopt.in.h (system_header): Likewise.
20278         * lib/iconv.in.h (system_header): Likewise.
20279         * lib/inttypes.in.h (system_header): Likewise.
20280         * lib/langinfo.in.h (system_header): Likewise.
20281         * lib/locale.in.h (system_header): Likewise.
20282         * lib/math.in.h (system_header): Likewise.
20283         * lib/netdb.in.h (system_header): Likewise.
20284         * lib/netinet_in.in.h (system_header): Likewise.
20285         * lib/pty.in.h (system_header): Likewise.
20286         * lib/sched.in.h (system_header): Likewise.
20287         * lib/se-selinux.in.h (system_header): Likewise.
20288         * lib/search.in.h (system_header): Likewise.
20289         * lib/spawn.in.h (system_header): Likewise.
20290         * lib/stdarg.in.h (system_header): Likewise.
20291         * lib/stdint.in.h (system_header): Likewise.
20292         * lib/string.in.h (system_header): Likewise.
20293         * lib/strings.in.h (system_header): Likewise.
20294         * lib/sys_file.in.h (system_header): Likewise.
20295         * lib/sys_ioctl.in.h (system_header): Likewise.
20296         * lib/sys_socket.in.h (system_header): Likewise.
20297         * lib/sys_times.in.h (system_header): Likewise.
20298         * lib/sys_utsname.in.h (system_header): Likewise.
20299         * lib/sys_wait.in.h (system_header): Likewise.
20300         * lib/sysexits.in.h (system_header): Likewise.
20301         * lib/unistd.in.h (system_header): Likewise.
20302         * lib/wctype.in.h (system_header): Likewise.
20303
20304         arpa/inet: fix mingw compilation warning
20305         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
20306         Reported by Matthew Bolte.
20307
20308 2010-03-25  Bruno Haible  <bruno@clisp.org>
20309
20310         Avoid collision between gnulib wrapper and libintl wrapper.
20311         * lib/printf.c (printf): Don't define if a printf wrapper is already
20312         defined in intl/printf.c.
20313         Reported by Michel Boaventura <michel@michelboaventura.com>.
20314
20315 2010-03-25  Bruno Haible  <bruno@clisp.org>
20316
20317         Use ANSI C.
20318         * lib/readutmp.h (getutent): Provide ANSI C prototype.
20319
20320 2010-03-25  Bruno Haible  <bruno@clisp.org>
20321
20322         Minor formatting changes.
20323         * lib/acosl.c: Insert space before function argument list.
20324         * lib/argz.c: Likewise.
20325         * lib/asinl.c: Likewise.
20326         * lib/expl.c: Likewise.
20327         * lib/gen-uni-tables.c: Likewise.
20328         * lib/gettext.h: Likewise.
20329         * lib/glthread/lock.h: Likewise.
20330         * lib/tanl.c: Likewise.
20331         * lib/uniname/uniname.c: Likewise.
20332         * tests/test-idpriv-drop.c: Likewise.
20333         * tests/test-idpriv-droptemp.c: Likewise.
20334         * tests/test-lock.c: Likewise.
20335         * tests/test-tls.c: Likewise.
20336         * lib/argp-help.c: Insert space before function-like macro argument
20337         list.
20338         * lib/memcmp.c: Likewise.
20339         * tests/test-base64.c: Likewise.
20340         * lib/localename.c: Insert space before sizeof's argument list.
20341         * lib/safe-alloc.h: Likewise.
20342         * lib/file-set.h: Insert space before macro argument list.
20343         * tests/test-argp.c: Likewise.
20344         * lib/argp-namefrob.h: Insert space before function parameter list.
20345         * lib/getaddrinfo.c: Likewise.
20346         * lib/netdb.in.h: Likewise.
20347         * lib/parse-duration.h: Likewise.
20348         * lib/parse-duration.c: Likewise.
20349         * lib/poll.c: Likewise.
20350         * lib/select.c: Likewise.
20351         * lib/trim.h: Likewise.
20352         * tests/test-usleep.c: Likewise.
20353         * lib/ldexpl.c: Insert space before function parameter list and before
20354         function argument list.
20355         * lib/logl.c: Likewise.
20356         * lib/sqrtl.c: Likewise.
20357         * lib/trim.c: Likewise.
20358         * lib/cosl.c: Use GNU style indentation. Insert space before function
20359         argument list.
20360         * lib/sinl.c: Likewise.
20361         * lib/tsearch.c: Insert space after 'for'.
20362         Reported by Jim Meyering.
20363
20364 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
20365
20366         * maint.mk (sc_Wundef_boolean): Check for the presence of the
20367         config header before grepping, as it's not present before
20368         autoreconf/configure are run.  Reported by Simon Josefsson.
20369
20370 2010-03-23  Bruno Haible  <bruno@clisp.org>
20371
20372         pt_chown: Make it work with automake < 1.11.
20373         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
20374         Reported by Simon Josefsson.
20375
20376 2010-03-23  Bruno Haible  <bruno@clisp.org>
20377
20378         pt_chown: Don't depend on GPLed modules.
20379         * lib/pt_chown.c: Don't include idpriv.h.
20380         (main): Don't drop privileges.
20381         * modules/pt_chown (Depends-on): Remove idpriv-drop.
20382         Reported by Simon Josefsson.
20383
20384 2010-03-24  Simon Josefsson  <simon@josefsson.org>
20385
20386         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
20387         suggestions from karl@freefriends.org (Karl Berry).
20388
20389 2010-03-22  Eric Blake  <eblake@redhat.com>
20390
20391         gethostname: further tweaks
20392         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
20393         are overriding gethostname.
20394         Suggested by Bruno Haible.
20395
20396 2010-03-21  Bruno Haible  <bruno@clisp.org>
20397
20398         Fix comments.
20399         * lib/forkpty.c (rpl_forkpty): Fix comment.
20400         * lib/openpty.c (rpl_openpty): Likewise.
20401         Reported by Eric Blake.
20402
20403 2010-03-22  Eric Blake  <eblake@redhat.com>
20404
20405         gethostname: fix build on mingw
20406         * lib/unistd.in.h (includes): Work around fact that mingw
20407         <winsock2.h> re-includes <unistd.h>, by avoiding any
20408         redeclarations if we are being included by <winsock2.h>.
20409         Reported by Matthias Bolte.
20410
20411 2010-03-21  Bruno Haible  <bruno@clisp.org>
20412
20413         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
20414         * lib/forkpty.c (forkpty): New replacement function, from glibc with
20415         modifications.
20416         * lib/pty.in.h (forkpty): Update declaration. Add comments.
20417         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
20418         provide the replacement.
20419         * modules/forkpty (Depends-on): Add openpty, login_tty.
20420         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
20421         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
20422         * doc/glibc-functions/forkpty.texi: More supported platforms.
20423         * config/srclist.txt: Add forkpty.c (commented).
20424
20425 2010-03-21  Bruno Haible  <bruno@clisp.org>
20426
20427         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
20428         (Makefile.am): Verify that PTY_LIB is defined.
20429
20430         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
20431
20432 2010-03-21  Bruno Haible  <bruno@clisp.org>
20433
20434         Tests for module 'login_tty'.
20435         * modules/login_tty-tests: New file.
20436         * tests/test-login_tty.c: New file.
20437
20438         New module 'login_tty'.
20439         * lib/login_tty.c: New file.
20440         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
20441         * modules/login_tty: New file.
20442         * doc/glibc-functions/login_tty.texi: Mention the new module.
20443
20444 2010-03-21  Bruno Haible  <bruno@clisp.org>
20445
20446         login_tty: Documentation.
20447         * doc/glibc-functions/login_tty.texi: New file.
20448         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
20449
20450 2010-03-21  Bruno Haible  <bruno@clisp.org>
20451
20452         pty: Consistent macro naming.
20453         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
20454         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
20455         * modules/pty (configure.ac): Update.
20456
20457 2010-03-21  Bruno Haible  <bruno@clisp.org>
20458
20459         Tests for openpty: Make stricter.
20460         * tests/test-openpty.c (main): Add test of canonical processing and
20461         erase.
20462         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
20463
20464         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
20465         * lib/openpty.c (openpty): New replacement function.
20466         * lib/pty.in.h: Include <termios.h>.
20467         (openpty): Update declaration. Add comments.
20468         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
20469         is not declared, arrange to provide the replacement. Check for _getpty
20470         and posix_openpt.
20471         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
20472         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
20473         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
20474         * modules/pty-tests (test_pty_c___LDADD): New variable.
20475         * doc/glibc-functions/openpty.texi: More supported platforms.
20476
20477 2010-03-21  Bruno Haible  <bruno@clisp.org>
20478
20479         setenv: Tweaks.
20480         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
20481         the test program.
20482         * doc/posix-functions/setenv.texi: Update platforms list.
20483
20484 2010-03-21  Bruno Haible  <bruno@clisp.org>
20485
20486         New module 'unlockpt'.
20487         * lib/unlockpt.c: New file, from glibc with modifications.
20488         * m4/unlockpt.m4: New file.
20489         * modules/unlockpt: New file.
20490         * lib/stdlib.in.h (unlockpt): New declaration.
20491         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
20492         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
20493         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
20494         HAVE_UNLOCKPT.
20495         * doc/posix-functions/unlockpt.texi: Mention the new module.
20496         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
20497         * config/srclist.txt: Add unlockpt.c (commented).
20498
20499 2010-03-21  Jim Meyering  <meyering@redhat.com>
20500
20501         maint.mk: prohibit inclusion of "intprops.h" without use
20502         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
20503
20504 2010-03-21  Bruno Haible  <bruno@clisp.org>
20505
20506         New module 'grantpt'.
20507         * lib/grantpt.c: New file, from glibc with modifications.
20508         * m4/grantpt.m4: New file.
20509         * modules/grantpt: New file.
20510         * lib/stdlib.in.h (grantpt): New declaration.
20511         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
20512         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
20513         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
20514         HAVE_GRANTPT.
20515         * doc/posix-functions/grantpt.texi: Mention the new module.
20516         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
20517         * config/srclist.txt: Add grantpt.c (commented).
20518
20519 2010-03-21  Bruno Haible  <bruno@clisp.org>
20520
20521         New module 'pt_chown'.
20522         * lib/pt_chown.c: New file, from glibc with modifications.
20523         * lib/pty-private.h: New file, from glibc with modifications.
20524         * modules/pt_chown: New file.
20525         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
20526
20527 2010-03-21  Bruno Haible  <bruno@clisp.org>
20528
20529         Tests for module 'ptsname'.
20530         * modules/ptsname-tests: New file.
20531         * tests/test-ptsname.c: New file.
20532
20533         New module 'ptsname'.
20534         * lib/ptsname.c: New file, from glibc with modifications.
20535         * m4/ptsname.m4: New file.
20536         * modules/ptsname: New file.
20537         * lib/stdlib.in.h (ptsname): New declaration.
20538         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
20539         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
20540         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
20541         HAVE_PTSNAME.
20542         * doc/posix-functions/ptsname.texi: Mention the new module.
20543         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
20544         * config/srclist.txt: Add ptsname.c (commented).
20545
20546 2010-03-21  Bruno Haible  <bruno@clisp.org>
20547
20548         Tests for module 'ttyname_r'.
20549         * modules/ttyname_r-tests: New file.
20550         * tests/test-ttyname_r.c: New file.
20551
20552         New module 'ttyname_r'.
20553         * lib/ttyname_r.c: New file.
20554         * m4/ttyname_r.m4: New file.
20555         * modules/ttyname_r: New file.
20556         * lib/unistd.in.h (ttyname_r): New declaration.
20557         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
20558         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
20559         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
20560         HAVE_TTYNAME_R.
20561         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
20562         * doc/posix-functions/ttyname_r.texi: Mention the new module.
20563
20564 2010-03-20  Bruno Haible  <bruno@clisp.org>
20565
20566         signal: Undefine macro definitions in C++ mode.
20567         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
20568         sigfillset): Undefine macro definitions from the system header in C++
20569         mode.
20570         Reported by John W. Eaton <jwe@gnu.org>.
20571
20572 2010-03-20  Bruno Haible  <bruno@clisp.org>
20573
20574         Ensure no #include statements inside extern "C" { ... }.
20575         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
20576         contain #include statements.
20577         * lib/time.in.h: Likewise.
20578
20579 2010-03-20  Bruno Haible  <bruno@clisp.org>
20580
20581         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
20582         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
20583         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
20584         Reported by John W. Eaton <jwe@gnu.org>.
20585
20586 2010-03-20  Bruno Haible  <bruno@clisp.org>
20587
20588         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
20589         Reported by Jim Meyering.
20590
20591 2010-03-20  Bruno Haible  <bruno@clisp.org>
20592
20593         pipe: Set errno upon failure.
20594         * lib/pipe.h: Specify that when -1 is returned, errno is set.
20595         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
20596         errno value in error message.
20597
20598 2010-03-20  Bruno Haible  <bruno@clisp.org>
20599             Jim Meyering  <meyering@redhat.com>
20600
20601         lchown: Avoid "unused variable" warning.
20602         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
20603
20604 2010-03-20  Bruno Haible  <bruno@clisp.org>
20605
20606         Work around unlink() bug on MacOS X 10.5.6.
20607         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
20608         attempting to unlink a parent directory.
20609         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
20610         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
20611         activate for the replacement function.
20612         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
20613
20614 2010-03-20  Bruno Haible  <bruno@clisp.org>
20615
20616         Fix link errors on Solaris 8.
20617         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
20618         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
20619
20620 2010-03-19  Jim Meyering  <meyering@redhat.com>
20621
20622         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
20623         The _LIBC implementation of build_range_exp correctly honors the
20624         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
20625         However, the non-_LIBC implementation would ignore that syntax-bit
20626         flag and return REG_ERANGE unconditionally.
20627         This change makes it honor that flag.
20628         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
20629         Make two pointer parameters "const".
20630         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
20631         (parse_bracket_exp): Update caller.
20632
20633         regex.m4: correct the reversed range endpoint ([b-a]) test
20634         * m4/regex.m4: When requiring that [b-a] evoke failure,
20635         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
20636         test pass once again for x86-based systems.
20637
20638 2010-03-19  Bruno Haible  <bruno@clisp.org>
20639
20640         scandir: Fix link error on Solaris 8.
20641         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
20642         macros.
20643
20644 2010-03-19  Bruno Haible  <bruno@clisp.org>
20645
20646         getusershell: Fix documentation.
20647         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
20648         module.
20649         * doc/glibc-functions/setusershell.texi: Likewise.
20650
20651         getusershell: Provide declaration, missing on Solaris 9.
20652         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
20653         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
20654         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
20655         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
20656         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20657         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
20658         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
20659         HAVE_GETUSERSHELL.
20660         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
20661
20662 2010-03-19  Bruno Haible  <bruno@clisp.org>
20663
20664         wctype: Provide iswblank function.
20665         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
20666         exists and is fine.
20667         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
20668         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
20669         * tests/test-wctype.c (main): Re-enable the iswblank tests.
20670         * doc/posix-functions/iswblank.texi: Update.
20671
20672 2010-03-19  Bruno Haible  <bruno@clisp.org>
20673
20674         Tests of module 'pty' in C++ mode.
20675         * modules/pty-tests: New file.
20676         * tests/test-pty-c++.cc: New file.
20677         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
20678
20679 2010-03-19  Eric Blake  <eblake@redhat.com>
20680
20681         logb: fix documentation
20682         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
20683         1.5 declaration bug.
20684
20685         forkpty, openpty: prefer glibc's const-safe prototype
20686         * lib/forkpty.c (rpl_forkpty): New file.
20687         * lib/openpty.c (rpl_openpty): Likewise.
20688         * modules/forkpty (Files): Distribute it.
20689         * modules/openpty (Files): Likewise.
20690         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
20691         check...
20692         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
20693         replacement for for non-const BSD signature.
20694         * modules/pty (Makefile.am): Substitute witnesses.
20695         * lib/pty.in.h (forkpty, openpty): Declare replacements.
20696         * tests/test-forkpty.c: Update signature check.
20697         * tests/test-openpty.c: Likewise.
20698         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
20699         * doc/glibc-functions/openpty.texi (openpty): Likewise.
20700
20701         forkpty, openpty: split functions into new modules
20702         * modules/pty (Makefile.am): Substitute new witnesses.
20703         (Libraries): Move library detection...
20704         * modules/forkpty: ...into new module.
20705         * modules/openpty: Another new module.
20706         * modules/pty-tests: Rename and split...
20707         * modules/forkpty-tests: ...to this...
20708         * modules/openpty-tests: ...and this.
20709         * tests/test-pty.c: Rename and split...
20710         * tests/test-forkpty.c: ...to this...
20711         * tests/test-openpty.c: ...and this.
20712         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
20713         (gl_PTY): Split library searching...
20714         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
20715         (gl_FORKPTY, gl_OPENPTY): New macros.
20716         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
20717         * NEWS: Mention the split.
20718         * MODULES.html.sh (Misc): Document the modules.
20719         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
20720         * doc/glibc-functions/openpty.texi (openpty): Likewise.
20721
20722         pty: improve replacement header
20723         * lib/pty.in.h: New file.
20724         * modules/pty (Files): Ship it.
20725         (Makefile.am): Always build replacement.
20726         * m4/pty.m4: Rename...
20727         * m4/pty_h.m4: ...to this.
20728         (gl_PTY): Modernize setting of witness macros; update check of
20729         forkpty to take proper advantage of cache.
20730         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
20731
20732         getopt: avoid compiler warning
20733         * lib/getopt.c (attribute_hidden): Remove unused macro.
20734
20735 2010-03-18  Bruno Haible  <bruno@clisp.org>
20736
20737         Fix link errors on Solaris 8.
20738         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
20739         * modules/search-tests (test_search_c___LDADD): Likewise.
20740         * modules/signal-tests (test_signal_c___LDADD): Likewise.
20741         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
20742         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
20743         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
20744         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
20745         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
20746         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
20747
20748 2010-03-18  Bruno Haible  <bruno@clisp.org>
20749
20750         Fix bug introduced on 2010-03-14.
20751         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
20752         (gl_SPAWN_H): Require it.
20753         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
20754         Reported by Simon Josefsson.
20755
20756 2010-03-18  Bruno Haible  <bruno@clisp.org>
20757
20758         Fix typo introduced on 2009-12-31.
20759         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
20760         posix_spawn_file_actions_adddup2.
20761
20762 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
20763         and Eric Blake  <eblake@redhat.com>
20764
20765         test-vc-list-files-git: make more robust
20766         * tests/test-vc-list-files-git.sh: Unset problematic environment
20767         variables.  Chain commands together.
20768
20769 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
20770
20771         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
20772         `AC_CHECK_DECL' invocation.
20773
20774 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
20775
20776         * lib/inttostr.c (inttostr): Make sure the invocation of verify
20777         appears before executable statements. Suggested by Petr Sumbera
20778         <Petr.Sumbera@Sun.COM>.
20779
20780 2010-03-14  Bruno Haible  <bruno@clisp.org>
20781
20782         * tests/test-flock.c (test_exclusive): Comment out a test that causes
20783         portability problems. Instead use a simpler test.
20784         (main): Check that invalid arguments are rejected only on Linux.
20785
20786 2010-03-14  Bruno Haible  <bruno@clisp.org>
20787
20788         Fix bug introduced on 2009-12-31.
20789         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
20790         gl_PREREQ_SYS_H_WINSOCK2 always.
20791         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
20792         SYS_SOCKET_H variable.
20793         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
20794         Update comments.
20795         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
20796         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
20797         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20798         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
20799         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
20800
20801 2010-03-14  Bruno Haible  <bruno@clisp.org>
20802
20803         Fix values returned by sinl, cosl.
20804         * lib/trigl.h: Add specification comments.
20805         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
20806         that combines the values from the precomputed table with the values of
20807         the Chebyshev polynomials.
20808
20809 2010-03-14  Bruno Haible  <bruno@clisp.org>
20810
20811         Fix compilation error when modules 'posix_spawn[p]' are not used.
20812         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
20813         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
20814
20815 2010-03-14  Bruno Haible  <bruno@clisp.org>
20816
20817         Fix compilation error on mingw when module 'time_r' is not used.
20818         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
20819         is 1.
20820         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
20821         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
20822         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
20823         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
20824
20825 2010-03-14  Bruno Haible  <bruno@clisp.org>
20826
20827         Fix compilation error with Sun C.
20828         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
20829         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
20830         instead of GCC specific ULONG_LONG_MAX.
20831         * lib/xstrtoll.c: Likewise.
20832         * lib/xstrtoull.c: Likewise.
20833
20834 2010-03-13  Bruno Haible  <bruno@clisp.org>
20835
20836         Allow the user to disable C++ code and tests.
20837         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
20838         (gl_PROG_ANSI_CXX): Require it.
20839
20840 2010-03-13  Bruno Haible  <bruno@clisp.org>
20841
20842         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
20843         cases.
20844
20845 2010-03-13  Bruno Haible  <bruno@clisp.org>
20846
20847         Test that gnulib does not break the standard C++ headers.
20848         * tests/test-locale-c++2.cc: New file.
20849         * modules/locale-tests (Files): Add it.
20850         (Makefile.am): Compile it for test-locale-c++.
20851         * tests/test-math-c++2.cc: New file.
20852         * modules/math-tests (Files): Add it.
20853         (Makefile.am): Compile it for test-math-c++.
20854         * tests/test-signal-c++2.cc: New file.
20855         * modules/signal-tests (Files): Add it.
20856         (Makefile.am): Compile it for test-signal-c++.
20857         * tests/test-stdio-c++2.cc: New file.
20858         * modules/stdio-tests (Files): Add it.
20859         (Makefile.am): Compile it for test-stdio-c++.
20860         * tests/test-stdlib-c++2.cc: New file.
20861         * modules/stdlib-tests (Files): Add it.
20862         (Makefile.am): Compile it for test-stdlib-c++.
20863         * tests/test-string-c++2.cc: New file.
20864         * modules/string-tests (Files): Add it.
20865         (Makefile.am): Compile it for test-string-c++.
20866         * tests/test-time-c++2.cc: New file.
20867         * modules/time-tests (Files): Add it.
20868         (Makefile.am): Compile it for test-time-c++.
20869         Reported by John W. Eaton <jwe@gnu.org>.
20870
20871 2010-03-13  Bruno Haible  <bruno@clisp.org>
20872
20873         * gnulib-tool (func_usage): Clarify which options are available for
20874         --create-testdir and --create-megatestdir.
20875
20876 2010-03-13  Bruno Haible  <bruno@clisp.org>
20877
20878         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
20879         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
20880         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
20881         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
20882         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
20883         when appropriate.
20884         Reported by Jim Meyering.
20885
20886 2010-03-12  Simon Josefsson  <simon@josefsson.org>
20887
20888         * gnulib-tool (func_import): Explain origin of code.
20889
20890 2010-03-12  Bruno Haible  <bruno@clisp.org>
20891
20892         Fix problem with automake's definition of CXXLINK.
20893         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
20894         Reported by Simon Josefsson and Ludovic Courtès.
20895
20896 2010-03-12  Bruno Haible  <bruno@clisp.org>
20897
20898         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
20899         stable releases.
20900
20901 2010-03-11  Bruno Haible  <bruno@clisp.org>
20902
20903         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
20904         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
20905         whether the system provides one variant or multiple variants of the
20906         function.
20907         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
20908         C++ compilers.
20909         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
20910         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
20911         Reported by Jim Meyering.
20912
20913 2010-03-09  Simon Josefsson  <simon@josefsson.org>
20914
20915         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
20916
20917 2010-03-08  Bruno Haible  <bruno@clisp.org>
20918
20919         gnulib-tool: Add support for --libtool in --create-testdir.
20920         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
20921         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
20922
20923 2010-03-08  Eric Blake  <eblake@redhat.com>
20924
20925         gnulib-tool.texi: mention possibility of git submodule
20926         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
20927         submodules.
20928         * doc/.gitignore: Ignore another generated file.
20929
20930 2010-03-08  Karl Berry  <karl@gnu.org>
20931
20932         * doc/gnulib-tool.texi (VCS Issues): Mention third option
20933         of committing gnulib files while skipping others.
20934
20935 2010-03-07  Bruno Haible  <bruno@clisp.org>
20936
20937         Tests of module 'wctype' in C++ mode.
20938         * tests/test-wctype-c++.cc: New file.
20939         * modules/wctype-tests (Files): Add it and tests/signature.h.
20940         (Depends-on): Add ansi-c++-opt.
20941         (Makefile.am): Arrange to compile and run test-wctype-c++.
20942
20943         Tests of module 'wchar' in C++ mode.
20944         * tests/test-wchar-c++.cc: New file.
20945         * modules/wchar-tests (Files): Add it and tests/signature.h.
20946         (Depends-on): Add ansi-c++-opt.
20947         (Makefile.am): Arrange to compile and run test-wchar-c++.
20948         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
20949         gl_MODULE_INDICATOR.
20950
20951         Tests of module 'unistd' in C++ mode.
20952         * tests/test-unistd-c++.cc: New file.
20953         * modules/unistd-tests (Files): Add it and tests/signature.h.
20954         (Depends-on): Add ansi-c++-opt.
20955         (Makefile.am): Arrange to compile and run test-unistd-c++.
20956         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
20957         gl_MODULE_INDICATOR.
20958
20959         Tests of module 'time' in C++ mode.
20960         * tests/test-time-c++.cc: New file.
20961         * modules/time-tests (Files): Add it and tests/signature.h.
20962         (Depends-on): Add ansi-c++-opt.
20963         (Makefile.am): Arrange to compile and run test-time-c++.
20964         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
20965
20966         Tests of module 'sys_time' in C++ mode.
20967         * tests/test-sys_time-c++.cc: New file.
20968         * modules/sys_time-tests (Files): Add it and tests/signature.h.
20969         (Depends-on): Add ansi-c++-opt.
20970         (Makefile.am): Arrange to compile and run test-sys_time-c++.
20971         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
20972         gl_MODULE_INDICATOR.
20973
20974         Tests of module 'sys_stat' in C++ mode.
20975         * tests/test-sys_stat-c++.cc: New file.
20976         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
20977         (Depends-on): Add ansi-c++-opt.
20978         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
20979         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
20980         gl_MODULE_INDICATOR.
20981
20982         Tests of module 'sys_socket' in C++ mode.
20983         * tests/test-sys_socket-c++.cc: New file.
20984         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
20985         (Depends-on): Add ansi-c++-opt.
20986         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
20987         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
20988         gl_MODULE_INDICATOR.
20989
20990         Tests of module 'sys_select' in C++ mode.
20991         * tests/test-sys_select-c++.cc: New file.
20992         * modules/sys_select-tests (Files): Add it and tests/signature.h.
20993         (Depends-on): Add ansi-c++-opt.
20994         (Makefile.am): Arrange to compile and run test-sys_select-c++.
20995         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
20996         gl_MODULE_INDICATOR.
20997
20998         Tests of module 'sys_ioctl' in C++ mode.
20999         * tests/test-sys_ioctl-c++.cc: New file.
21000         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
21001         (Depends-on): Add ansi-c++-opt.
21002         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
21003         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
21004         gl_MODULE_INDICATOR.
21005
21006         Tests of module 'string' in C++ mode.
21007         * tests/test-string-c++.cc: New file.
21008         * modules/string-tests (Files): Add it and tests/signature.h.
21009         (Depends-on): Add ansi-c++-opt.
21010         (Makefile.am): Arrange to compile and run test-string-c++.
21011         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
21012         gl_MODULE_INDICATOR.
21013
21014         Tests of module 'stdlib' in C++ mode.
21015         * tests/test-stdlib-c++.cc: New file.
21016         * modules/stdlib-tests (Files): Add it and tests/signature.h.
21017         (Depends-on): Add ansi-c++-opt.
21018         (Makefile.am): Arrange to compile and run test-stdlib-c++.
21019         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
21020         gl_MODULE_INDICATOR.
21021
21022         Tests of module 'stdio' in C++ mode.
21023         * tests/test-stdio-c++.cc: New file.
21024         * modules/stdio-tests (Files): Add it and tests/signature.h.
21025         (Depends-on): Add ansi-c++-opt.
21026         (Makefile.am): Arrange to compile and run test-stdio-c++.
21027         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
21028         gl_MODULE_INDICATOR.
21029
21030         Tests of module 'spawn' in C++ mode.
21031         * tests/test-spawn-c++.cc: New file.
21032         * modules/spawn-tests (Files): Add it and tests/signature.h.
21033         (Depends-on): Add ansi-c++-opt.
21034         (Makefile.am): Arrange to compile and run test-spawn-c++.
21035         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
21036         gl_MODULE_INDICATOR.
21037
21038         Tests of module 'signal' in C++ mode.
21039         * tests/test-signal-c++.cc: New file.
21040         * modules/signal-tests (Files): Add it and tests/signature.h.
21041         (Depends-on): Add ansi-c++-opt.
21042         (Makefile.am): Arrange to compile and run test-signal-c++.
21043         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
21044         gl_MODULE_INDICATOR.
21045
21046         Tests of module 'search' in C++ mode.
21047         * tests/test-search-c++.cc: New file.
21048         * modules/search-tests (Files): Add it and tests/signature.h.
21049         (Depends-on): Add ansi-c++-opt.
21050         (Makefile.am): Arrange to compile and run test-search-c++.
21051         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
21052         gl_MODULE_INDICATOR.
21053
21054         Tests of module 'math' in C++ mode.
21055         * tests/test-math-c++.cc: New file.
21056         * modules/math-tests (Files): Add it and tests/signature.h.
21057         (Depends-on): Add ansi-c++-opt.
21058         (Makefile.am): Arrange to compile and run test-math-c++.
21059         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
21060
21061         Tests of module 'locale' in C++ mode.
21062         * tests/test-locale-c++.cc: New file.
21063         * modules/locale-tests (Files): Add it and tests/signature.h.
21064         (Depends-on): Add ansi-c++-opt.
21065         (Makefile.am): Arrange to compile and run test-locale-c++.
21066         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
21067         gl_MODULE_INDICATOR.
21068
21069         Tests of module 'langinfo' in C++ mode.
21070         * tests/test-langinfo-c++.cc: New file.
21071         * modules/langinfo-tests (Files): Add it and tests/signature.h.
21072         (Depends-on): Add ansi-c++-opt.
21073         (Makefile.am): Arrange to compile and run test-langinfo-c++.
21074         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
21075         gl_MODULE_INDICATOR.
21076
21077         Tests of module 'iconv-h' in C++ mode.
21078         * tests/test-iconv-h-c++.cc: New file.
21079         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
21080         (Depends-on): Add ansi-c++-opt.
21081         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
21082
21083         Tests of module 'glob' in C++ mode.
21084         * tests/test-glob-c++.cc: New file.
21085         * modules/glob-tests (Files): Add it.
21086         (Depends-on): Add ansi-c++-opt.
21087         (Makefile.am): Arrange to compile and run test-glob-c++.
21088
21089         Tests of module 'fcntl-h' in C++ mode.
21090         * tests/test-fcntl-h-c++.cc: New file.
21091         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
21092         (Depends-on): Add ansi-c++-opt.
21093         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
21094         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
21095         gl_MODULE_INDICATOR.
21096
21097         Tests of module 'dirent' in C++ mode.
21098         * tests/test-dirent-c++.cc: New file.
21099         * modules/dirent-tests (Files): Add it and tests/signature.h.
21100         (Depends-on): Add ansi-c++-opt.
21101         (Makefile.am): Arrange to compile and run test-dirent-c++.
21102         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
21103         gl_MODULE_INDICATOR.
21104
21105         New module 'ansi-c++-opt'.
21106         * modules/ansi-c++-opt: New file.
21107         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
21108
21109         Document C++ namespace mode.
21110         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
21111
21112         wctype: Avoid #define replacements in C++ mode.
21113         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
21114         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
21115         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
21116         In C++, define a namespaced alias symbol.
21117         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
21118         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
21119         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
21120         rule.
21121
21122         wchar: Avoid #define replacements in C++ mode.
21123         * lib/wchar.in.h: Include c++defs.h.
21124         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
21125         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
21126         symbol.
21127         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
21128         * modules/wchar (Depends-on): Add c++defs.
21129         (Makefile.am): Update wchar.h rule.
21130
21131         unistd: Avoid #define replacements in C++ mode.
21132         * lib/unistd.in.h: Include c++defs.h.
21133         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
21134         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
21135         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
21136         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
21137         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
21138         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
21139         symbol.
21140         (environ): Update.
21141         * modules/unistd (Depends-on): Add c++defs.
21142         (Makefile.am): Update unistd.h rule.
21143
21144         time: Avoid #define replacements in C++ mode.
21145         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
21146         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
21147         define a namespaced alias symbol.
21148         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
21149         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
21150         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
21151         * modules/time (Depends-on): Add c++defs, warn-on-use.
21152         (Makefile.am): Update time.h rule.
21153         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
21154         * modules/nanosleep (configure.ac): Likewise.
21155         * modules/strptime (configure.ac): Likewise.
21156         * modules/timegm (configure.ac): Likewise.
21157
21158         sys_time: Avoid #define replacements in C++ mode.
21159         * lib/sys_time.in.h: Include c++defs.h.
21160         (gettimeofday): In C++, define a namespaced alias symbol.
21161         * modules/sys_time (Depends-on): Add c++defs.
21162         (Makefile.am): Update sys/time.h rule.
21163
21164         sys_stat: Avoid #define replacements in C++ mode.
21165         * lib/sys_stat.in.h: Include c++defs.h.
21166         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
21167         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
21168         namespaced alias symbol.
21169         In C++, define a namespaced alias symbol.
21170         * modules/sys_stat (Depends-on): Add c++defs.
21171         (Makefile.am): Update sys/stat.h rule.
21172
21173         sys_socket: Avoid #define replacements in C++ mode.
21174         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
21175         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
21176         definitions also when the system has a <sys/socket.h>.
21177         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
21178         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
21179         In C++, define a namespaced alias symbol.
21180         * modules/sys_socket (Depends-on): Add c++defs.
21181         (Makefile.am): Update sys/socket.h rule.
21182
21183         sys_select: Avoid #define replacements in C++ mode.
21184         * lib/sys_select.in.h: Include c++defs.h. Enable the function
21185         definitions also when the system has a <sys/select.h>.
21186         (select): In C++, define a namespaced alias symbol.
21187         * modules/sys_select (Depends-on): Add c++defs.
21188         (Makefile.am): Update sys/select.h rule.
21189
21190         sys_ioctl: Avoid #define replacements in C++ mode.
21191         * lib/sys_ioctl.in.h: Include c++defs.h.
21192         (ioctl): In C++, define a namespaced alias symbol.
21193         * modules/sys_ioctl (Depends-on): Add c++defs.
21194         (Makefile.am): Update sys/ioctl.h rule.
21195
21196         string: Avoid #define replacements in C++ mode.
21197         * lib/string.in.h: Include c++defs.h.
21198         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
21199         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
21200         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
21201         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
21202         strsignal, strverscmp): In C++, define a namespaced alias symbol.
21203         * modules/string (Depends-on): Add c++defs.
21204         (Makefile.am): Update string.h rule.
21205
21206         stdlib: Avoid #define replacements in C++ mode.
21207         * lib/stdlib.in.h: Include c++defs.h.
21208         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
21209         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
21210         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
21211         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
21212         symbol.
21213         * modules/stdlib (Depends-on): Add c++defs.
21214         (Makefile.am): Update stdlib.h rule.
21215
21216         stdio: Avoid #define replacements in C++ mode.
21217         * lib/stdio.in.h: Include c++defs.h.
21218         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
21219         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
21220         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
21221         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
21222         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
21223         namespaced alias symbol.
21224         * modules/stdio (Depends-on): Add c++defs.
21225         (Makefile.am): Update stdio.h rule.
21226
21227         spawn: Avoid #define replacements in C++ mode.
21228         * lib/spawn.in.h: Include c++defs.h.
21229         (posix_spawn, posix_spawnp, posix_spawnattr_init,
21230         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
21231         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
21232         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
21233         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
21234         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
21235         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
21236         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
21237         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
21238         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
21239         In C++, define a namespaced alias symbol.
21240         * modules/spawn (Depends-on): Add c++defs.
21241         (Makefile.am): Update spawn.h rule.
21242
21243         signal: Avoid #define replacements in C++ mode.
21244         * lib/signal.in.h: Include c++defs.h.
21245         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
21246         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
21247         namespaced alias symbol.
21248         * modules/signal (Depends-on): Add c++defs.
21249         (Makefile.am): Update signal.h rule.
21250
21251         search: Avoid #define replacements in C++ mode.
21252         * lib/search.in.h: Include c++defs.h.
21253         (_gl_search_compar_fn, _gl_search_action_fn): New types.
21254         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
21255         symbol.
21256         * modules/search (Depends-on): Add c++defs.
21257         (Makefile.am): Update search.h rule.
21258
21259         math: Avoid #define replacements in C++ mode.
21260         * lib/math.in.h: Include c++defs.h.
21261         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
21262         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
21263         trunc, truncl): In C++, define a namespaced alias symbol.
21264         * modules/math (Depends-on): Add c++defs.
21265         (Makefile.am): Update math.h rule.
21266
21267         locale: Avoid #define replacements in C++ mode.
21268         * lib/locale.in.h: Include c++defs.h.
21269         (duplocale): In C++, define a namespaced alias symbol.
21270         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
21271         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
21272         * modules/locale (Depends-on): Add c++defs.
21273         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
21274
21275         langinfo: Avoid #define replacements in C++ mode.
21276         * lib/langinfo.in.h: Include c++defs.h.
21277         (nl_langinfo): In C++, define a namespaced alias symbol.
21278         * modules/langinfo (Depends-on): Add c++defs.
21279         (Makefile.am): Update langinfo.h rule.
21280
21281         iconv-h: Avoid #define replacements in C++ mode.
21282         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
21283         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
21284         symbol.
21285         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
21286         whenever iconv is present.
21287         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
21288         (Makefile.am): Update iconv.h rule.
21289
21290         glob: Avoid #define replacements in C++ mode.
21291         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
21292         (_gl_glob_errfunc_fn): New type.
21293         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
21294         symbol.
21295         * modules/glob (Depends-on): Add c++defs, warn-on-use.
21296         (Makefile.am): Update glob.h rule.
21297
21298         fcntl-h: Avoid #define replacements in C++ mode.
21299         * lib/fcntl.in.h: Include c++defs.h.
21300         (fcntl, open, openat): In C++, define a namespaced alias symbol.
21301         * modules/fcntl-h (Depends-on): Add c++defs.
21302         (Makefile.am): Update fcntl.h rule.
21303
21304         dirent: Avoid #define replacements in C++ mode.
21305         * lib/dirent.in.h: Include c++defs.h.
21306         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
21307         namespaced alias symbol.
21308         (dirfd): Update declaration.
21309         * modules/dirent (Depends-on): Add c++defs.
21310         (Makefile.am): Update dirent.h rule.
21311
21312         ctype: Make it usable in C++ code.
21313         * lib/ctype.in.h: Include c++defs.h.
21314         (isblank): Declare as extern "C".
21315         * modules/ctype (Depends-on): Add c++defs.
21316         (Makefile.am): Update ctype.h rule.
21317
21318         New module 'c++defs'.
21319         * modules/c++defs: New file.
21320         * build-aux/c++defs.h: New file.
21321         Reported by John W. Eaton <jwe@gnu.org>.
21322
21323 2010-03-07  Bruno Haible  <bruno@clisp.org>
21324
21325         logb: Provide missing declaration for Cygwin.
21326         * lib/math.in.h (logb): New declaration.
21327         * m4/logb.m4: New file.
21328         * modules/logb (Files): Add m4/logb.m4.
21329         (Depends-on): Add math.
21330         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
21331         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
21332         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
21333         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
21334         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
21335
21336 2010-03-07  Bruno Haible  <bruno@clisp.org>
21337
21338         Fix test-cond link error.
21339         * tests/test-cond.c: Include <stdio.h>.
21340
21341 2010-03-07  Bruno Haible  <bruno@clisp.org>
21342
21343         Fix test-dirent-safer link error.
21344         * modules/dirent-safer-tests (Makefile.am): Define
21345         test_dirent_safer_LDADD.
21346
21347 2010-03-07  Bruno Haible  <bruno@clisp.org>
21348
21349         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
21350         among default module list.
21351
21352 2010-03-07  Bruno Haible  <bruno@clisp.org>
21353
21354         Fix link error on platforms with GNU libiconv.
21355         * modules/unistr/u8-strcoll-tests (Makefile): Define
21356         test_u8_strcoll_LDADD.
21357         * modules/unistr/u16-strcoll-tests (Makefile): Define
21358         test_u16_strcoll_LDADD.
21359         * modules/unistr/u32-strcoll-tests (Makefile): Define
21360         test_u32_strcoll_LDADD.
21361
21362 2010-03-07  Bruno Haible  <bruno@clisp.org>
21363
21364         Use POSIX declarations for socket functions.
21365         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
21366         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
21367         rpl_sendto): Change declaration to match POSIX.
21368         * lib/connect.c (rpl_connect): Likewise.
21369         * lib/accept.c (rpl_accept): Likewise.
21370         * lib/bind.c (rpl_bind): Likewise.
21371         * lib/getpeername.c (rpl_getpeername): Likewise.
21372         * lib/getsockname.c (rpl_getsockname): Likewise.
21373         * lib/recv.c (rpl_recv): Likewise.
21374         * lib/send.c (rpl_send): Likewise.
21375         * lib/recvfrom.c (rpl_recvfrom): Likewise.
21376         * lib/sendto.c (rpl_sendto): Likewise.
21377
21378 2010-03-06  Bruno Haible  <bruno@clisp.org>
21379
21380         Clarify access, euidaccess, faccessat.
21381         * doc/posix-functions/faccessat.texi: Mention security problem under
21382         "Other problems", not "Portability problems".
21383         * doc/posix-functions/access.texi: Likewise. Mention a related security
21384         problem.
21385         * doc/glibc-functions/euidaccess.texi: Mention security problems.
21386         * lib/euidaccess.c: Add comments about platforms.
21387         * lib/unistd.in.h (access, euidaccess): Add warnings.
21388
21389 2010-03-07  Bruno Haible  <bruno@clisp.org>
21390
21391         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
21392         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
21393         (POSIX_SPAWN_SETSCHEDULER): Likewise.
21394         (POSIX_SPAWN_USEVFORK): Define in a way that works when
21395         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
21396         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
21397         declare when POSIX_SPAWN_SETSCHEDULER is zero.
21398         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
21399         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
21400         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
21401         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
21402         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
21403         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
21404         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
21405         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
21406         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
21407         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
21408         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
21409         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
21410         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
21411         Likewise.
21412         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
21413         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
21414         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
21415         Likewise.
21416         * tests/test-spawn.c (main): Make it work when
21417         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
21418
21419 2010-03-07  Bruno Haible  <bruno@clisp.org>
21420
21421         Fix incorrect Makefile.am generation in German locale.
21422         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
21423         Execute sed command with character range in C locale.
21424
21425 2010-03-06  Bruno Haible  <bruno@clisp.org>
21426
21427         Tests for module 'iconv-h'.
21428         * modules/iconv-h-tests: New file.
21429         * tests/test-iconv-h.c: New file.
21430
21431         New module 'iconv-h'.
21432         * modules/iconv-h: New file.
21433         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
21434         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
21435         (configure.ac): Remove gl_ICONV_H.
21436         (Makefile.am): Remove rule for iconv.h.
21437
21438 2010-03-06  Bruno Haible  <bruno@clisp.org>
21439
21440         More consistent naming of *.m4 files.
21441         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
21442         * modules/wctype (Files): Update.
21443
21444         More consistent naming of *.m4 files.
21445         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
21446         * modules/wchar (Files): Update.
21447
21448 2010-03-06  Jim Meyering  <meyering@redhat.com>
21449
21450         euidaccess: relax license to LGPLv2+
21451         * modules/euidaccess (License): Relax to LGPLv2+.
21452
21453 2010-03-06  Bruno Haible  <bruno@clisp.org>
21454
21455         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
21456         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
21457         (Makefile.am): Augment lib_SOURCES instead.
21458
21459 2010-03-04  Jim Meyering  <meyering@redhat.com>
21460
21461         utime: remove obsolete module
21462         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
21463         unnecessary for years, and has been marked as obsolete for 10 months.
21464         * modules/utime: Remove file.
21465         * lib/utime.c: Remove file.
21466         * m4/utime.m4: Remove file.
21467         * m4/utimes-null.m4: Remove file.
21468         * doc/posix-functions/utime.texi (utime): Remove reference to
21469         the module.  Move the sole "fixed by gnulib" item into the
21470         "problems not fixed by Gnulib" list.
21471         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
21472
21473 2010-03-05  Simon Josefsson  <simon@josefsson.org>
21474
21475         * modules/exit (License): Relax license to LGPLv2+.
21476         (Status): Mark as obsolete.
21477         * NEWS: Mention deprecated 'exit' module.
21478         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
21479         of now obsolete 'exit'.
21480
21481 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21482
21483         fts-lgpl: remove unused module
21484         * modules/fts-lgpl: Remove.
21485         * MODULES.html.sh (func_all_modules): Adjust.
21486         * check-module (find_included_lib_files): Adjust.
21487         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
21488
21489 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
21490
21491         copy-acl: enhance Solaris ACL error handling
21492         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
21493         * lib/set-mode-acl.c (qset_acl): Likewise.
21494
21495 2010-03-02  Bruno Haible  <bruno@clisp.org>
21496
21497         spawn: Don't override the system defined values on FreeBSD 8.
21498         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
21499         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
21500         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
21501         if HAVE_POSIX_SPAWN is 1.
21502         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
21503
21504 2010-03-01  Bruno Haible  <bruno@clisp.org>
21505
21506         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
21507         regarding Automake.
21508
21509 2010-02-25  Bruno Haible  <bruno@clisp.org>
21510
21511         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
21512         * gnulib-tool: Define 'echo' as a function only before the ksh alias
21513         setting, not afterwards.
21514         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
21515
21516 2010-02-24  Eric Blake  <eblake@redhat.com>
21517
21518         bootstrap, git-version-gen: use timestamp
21519         * build-aux/git-version-gen (scriptversion): Force UTC.
21520         * build-aux/bootstrap (scriptversion): New variable.
21521
21522         bootstrap: allow older git
21523         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
21524         older than 1.6.4.  Requested by the libvirt project.
21525
21526 2010-02-23  Eric Blake  <eblake@redhat.com>
21527
21528         warn-on-use: work with old autoconf
21529         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
21530         AS_VAR semantics of autoconf 2.60.
21531         Reported by Bruno Haible.
21532
21533         bootstrap: improve some comments
21534         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
21535         clarification comments.
21536
21537         gettimeofday: provide correct function
21538         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
21539         when replacement is declared, otherwise provide gettimeofday.
21540         Reported by Michael Goffioul.
21541
21542 2010-02-23  Jim Meyering  <meyering@redhat.com>
21543
21544         lib-ignore: relax license to "unlimited", not LGPLv2+
21545         * modules/lib-ignore (License): Relax to "unlimited".
21546
21547 2010-02-23  Jim Meyering  <meyering@redhat.com>
21548
21549         lib-ignore: relax license to LGPLv2+
21550         * modules/lib-ignore (License): Relax to LGPLv2+.
21551
21552 2010-02-22  Eric Blake  <eblake@redhat.com>
21553
21554         lseek: avoid bash 3.2 broken pipe bug
21555         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
21556         warning from bash 3.2.
21557         Reported by Ben Pfaff, with analysis from Bruno Haible.
21558
21559         bootstrap: support non-FSF copyright holder
21560         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
21561         bootstrap.conf override of COPYRIGHT_HOLDER.
21562         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
21563
21564         bootstrap: interoperate with gettext 0.14.1
21565         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
21566
21567         bootstrap: allow for alternate submodule location
21568         * build-aux/bootstrap (gnulib_path): New variable; use instead of
21569         hardcoding submodule location.
21570         (gnulib_mk): Allow direct use of Makefile.am.
21571
21572         bootstrap: use GNULIB_SRCDIR to reduce disk usage
21573         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
21574         rather than reconfiguring where the submodule points.
21575
21576         gettimeofday: restore support for platforms that lack function
21577         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
21578         replacement if function is missing.
21579         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
21580         * modules/sys_time (Makefile.am): Substitute it.
21581         * lib/sys_time.in.h (gettimeofday): Check it.
21582         Reported by Michael Goffioul.
21583
21584 2010-02-21  Bruno Haible  <bruno@clisp.org>
21585
21586         * lib/stdio.in.h (obstack_printf): Fix typo.
21587
21588 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
21589
21590         vc-list-files: use bzr ls's -R option
21591         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
21592         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
21593
21594 2010-02-21  Jim Meyering  <meyering@redhat.com>
21595
21596         init.sh: fix EXEEXT shims to work also for names like test-prog
21597         * tests/init.sh: Re-exec a better shell, when needed.
21598         If the current shell lacks support for posix $(...), an init.sh-using
21599         test will now try to find a shell that supports that.  If EXEEXT is
21600         nonempty, we also require support for hyphen-in-alias-name and shell
21601         substitutions like ${var#glob}.  Failure to find such a shell results
21602         in a skipped test.
21603
21604 2010-02-21  Bruno Haible  <bruno@clisp.org>
21605
21606         Really work around around "broken pipe" error message from bash 3.2.
21607         * gnulib-tool (func_reset_sigpipe): Remove function.
21608         (echo): In bash 3.2, define to a function that uses printf.
21609         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
21610
21611 2010-02-20  Bruno Haible  <bruno@clisp.org>
21612
21613         Restore support for automake 1.9.6 with autoconf 2.61.
21614         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
21615         Reported by James Youngman <jay@gnu.org>.
21616
21617 2010-02-20  Bruno Haible  <bruno@clisp.org>
21618
21619         Improve *printf warning condition.
21620         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
21621         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
21622         and the function is overridden due to SIGPIPE emulation.
21623
21624 2010-02-20  Bruno Haible  <bruno@clisp.org>
21625
21626         * lib/stdio.in.h: Tweak comments.
21627
21628 2010-02-19  Bruno Haible  <bruno@clisp.org>
21629
21630         Make it easier to find modules. New gnulib-tool option '--find'.
21631         * gnulib-tool: New option --find.
21632         (func_usage): Document it.
21633         (func_sanitize_modulelist): New function, extracted from
21634         func_all_modules.
21635         (func_all_modules): Invoke it.
21636         * doc/gnulib-tool.texi (Which modules?): New node.
21637
21638 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
21639
21640         * lib/sys_select.in.h: Provide select replacement even if
21641         sys/select.h exists on a system, for Interix.
21642
21643 2010-02-18  Jim Meyering  <meyering@redhat.com>
21644
21645         init.sh: don't use $(...) just yet
21646         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
21647         to accommodate e.g., Solaris' /bin/sh.
21648
21649 2010-02-17  Bruno Haible  <bruno@clisp.org>
21650
21651         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
21652         Reported by Ludovic Courtès <ludo@gnu.org>.
21653
21654 2010-02-16  Simon Josefsson  <simon@josefsson.org>
21655
21656         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
21657         linking with -lintl.
21658
21659 2010-02-17  Simon Josefsson  <simon@josefsson.org>
21660
21661         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
21662         if not provided by the system's netdb.h.  Reported by
21663         ludo@gnu.org (Ludovic Courtès).
21664
21665 2010-02-15  Jim Meyering  <meyering@redhat.com>
21666
21667         init.sh: improve portability and efficiency
21668         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
21669         "dummy" in a for loop.
21670         Use '!', not '^' to select the complement of a character set used
21671         in a "case" statement.
21672         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
21673         Suggestions from Eric Blake.
21674
21675         init.sh: automatically accommodate programs with the .exe suffix
21676         Automatically arrange for an invocation of "prog" to execute the
21677         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
21678         may use the simpler "prog", yet still work when built on a system
21679         that requires specifying the added suffix.
21680         Do this by constructing a function named "prog" that invokes
21681         "prog.exe" for each .exe file in selected directories.
21682         * tests/init.sh (find_exe_basenames_): New function.
21683         (create_exe_shim_functions_): New function.
21684         (path_prepend_): Use it.
21685
21686         maint.mk: mark syntax-check sc_*.m rules as .PHONY
21687         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
21688         "make -t syntax-check" doesn't create a ton of sc_*.m files.
21689
21690 2010-02-14  Jim Meyering  <meyering@redhat.com>
21691
21692         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
21693         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
21694         (sc_prohibit_hash_pjw_without_use): New rule.
21695
21696         maint.mk: allow the default upload destination dir to be overridden
21697         * top/maint.mk (upload_dest_dir_): Define with a default that
21698         preserves the status quo.
21699         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
21700         Reported by Peter Simons.
21701
21702         maint.mk: prohibit inclusion of "hash.h" without_use
21703         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
21704
21705 2010-02-10  Jim Meyering  <meyering@redhat.com>
21706
21707         maint.mk: prohibit inclusion of "ignore-value.h" without_use
21708         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
21709
21710 2010-02-09  Eric Blake  <ebb9@byu.net>
21711         and Bruno Haible  <bruno@clisp.org>
21712
21713         obstack-printf-posix: ensure declaration
21714         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
21715         extracted from gl_FUNC_OBSTACK_PRINTF.
21716         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
21717         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
21718         Likewise.
21719         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
21720         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
21721         0.
21722
21723 2010-02-08  Bruno Haible  <bruno@clisp.org>
21724
21725         gnulib-tool: Fix typo in 2010-02-07 commit.
21726         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
21727         Reported by Eric Blake.
21728
21729 2010-02-07  Bruno Haible  <bruno@clisp.org>
21730
21731         gnulib-tool: Fix up caching patches.
21732         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
21733         option --no-cache. Use associative arrays when supported by the shell.
21734         (sed_comments): New variable.
21735         (modcache): Renamed from do_cache.
21736         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
21737         abbreviate unnecessarily.
21738         (have_associative): New variable.
21739         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
21740         way also for ksh and zsh.
21741         (func_init_sed_convert_to_cache_statements): New function, extracted
21742         from func_cache_lookup_module. Add support for associative arrays.
21743         Don't set the c_MODULE_cached variable here. Ignore all lines before
21744         the first field header. Remove only the final newline, not all trailing
21745         newlines. Support empty fields correctly. Limit the use of 'eval' to
21746         assignments.
21747         (func_get_description, func_get_status, func_get_notice,
21748         func_get_applicability, func_get_filelist, func_get_dependencies,
21749         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
21750         func_get_automake_snippet, func_get_include_directive,
21751         func_get_link_directive, func_get_license, func_get_maintainer):
21752         Update documentation. List the unoptimized code first. Add support for
21753         associative arrays. Limit the use of 'eval' to assignments.
21754         (func_get_applicability): Undo stylistic pessimisations.
21755         (func_get_automake_snippet, func_get_include_directive): Reduce code
21756         duplication.
21757         (func_modules_transitive_closure, func_modules_add_dummy,
21758         func_modules_notice, func_modules_to_filelist, func_add_file,
21759         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
21760         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
21761         func_create_testdir, func_create_megatestdir): Update documentation.
21762
21763 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21764
21765         * gnulib-tool (func_cache_lookup_module): Store the module name
21766         belonging to the cache variable; error out if two different
21767         module names map to the same cache variable name.
21768
21769 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21770
21771         gnulib-tool: Make caching optional.
21772         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
21773         Update matching short versions of --no-changelog.
21774         (func_usage): Update.
21775         (sed_extract_cache_prog): Renamed from ...
21776         (sed_extract_prog): ... this; revert to old extraction script.
21777         (func_get_description, func_get_status)
21778         (func_get_notice, func_get_applicability, func_get_filelist)
21779         (func_get_dependencies, func_get_autoconf_early_snippet)
21780         (func_get_autoconf_snippet, func_get_automake_snippet)
21781         (func_get_include_directive, func_get_link_directive)
21782         (func_get_license, func_get_maintainer): If $do_cache is false,
21783         use old, non-caching extraction scripts.
21784         Suggestion by Bruno Haible.
21785
21786 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21787
21788         gnulib-tool: cache module metainformation.
21789         * gnulib-tool (sed_extract_prog): Match newline before each
21790         header, and rewrite header to a shell variable suffix.
21791         (func_cache_var, func_cache_lookup_module): New functions,
21792         to turn a module name into a cache variable prefix, and to
21793         look up and cache module metainformation.
21794         (func_get_description, func_get_status)
21795         (func_get_notice, func_get_applicability, func_get_filelist)
21796         (func_get_dependencies, func_get_autoconf_early_snippet)
21797         (func_get_autoconf_snippet, func_get_automake_snippet)
21798         (func_get_include_directive, func_get_link_directive)
21799         (func_get_license, func_get_maintainer): Use
21800         func_cache_lookup_module.
21801
21802 2010-02-07  Bruno Haible  <bruno@clisp.org>
21803
21804         fnctl: Fix missing dependency.
21805         * modules/fcntl (Depends-on): Add getdtablesize.
21806         Reported by John W. Eaton <jwe@gnu.org>.
21807
21808 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
21809
21810         Argp: fix recognition of short alias options.
21811
21812         * lib/argp-parse.c (convert_options): Fix improper use of
21813         `|' between character values.
21814         * tests/test-argp.c (group1_option): New alias option
21815         --read (-r).
21816         (group1_parser): Special handling for 'r'.
21817         (test15): New test case.
21818         (test_fun): Add test15.
21819         * tests/test-argp-2.sh: Update expected --help and --usage
21820         outputs.
21821
21822 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
21823
21824         * tests/test-argp.c: Fix indentation.
21825
21826 2010-02-04  Eric Blake  <ebb9@byu.net>
21827
21828         gettimeofday: expose type of second argument
21829         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
21830         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
21831         * tests/test-gettimeofday.c: Use it to silence warning.
21832         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
21833         the issue.
21834
21835 2010-02-03  Jim Meyering  <meyering@redhat.com>
21836
21837         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
21838         * lib/regcomp.c (TYPE_SIGNED): Define.
21839         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
21840
21841         regcomp.c: avoid a new -Wshadow warning
21842         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
21843
21844 2010-02-01  Jim Meyering  <meyering@redhat.com>
21845
21846         removing useless parentheses in cpp #define directives
21847         For motivation, see commit c0221df4, "define STREQ(a,b)
21848         consistently, removing useless parentheses"
21849         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
21850         * lib/mountlist.c (MNT_IGNORE): Likewise.
21851         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
21852
21853 2010-02-01  Eric Blake  <ebb9@byu.net>
21854
21855         sys_time: use link-warning
21856         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
21857         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
21858         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
21859         * modules/sys_time (Depends-on): Add warn-on-use.
21860         (Makefile.am): Always build replacement.
21861         (configure.ac): Update substitutions.
21862         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
21863         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
21864         bother with SYS_TIME_H.
21865         * modules/gettimeofday (configure.ac): Declare indicator.
21866         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
21867         in use.
21868
21869         closein-tests: silence compiler warning
21870         * tests/test-closein.c (main): Ignore fread result.
21871         * modules/closein-tests (Depends-on): Add ignore-value.
21872
21873         tests: silence warning about system return
21874         * tests/test-areadlink-with-size.c (main): Ignore system result.
21875         * tests/test-areadlink.c (main): Likewise.
21876         * tests/test-areadlinkat-with-size.c (main): Likewise.
21877         * tests/test-areadlinkat.c (main): Likewise.
21878         * tests/test-canonicalize-lgpl.c (main): Likewise.
21879         * tests/test-canonicalize.c (main): Likewise.
21880         * tests/test-chown.c (main): Likewise.
21881         * tests/test-fchownat.c (main): Likewise.
21882         * tests/test-fdutimensat.c (main): Likewise.
21883         * tests/test-fstatat.c (main): Likewise.
21884         * tests/test-futimens.c (main): Likewise.
21885         * tests/test-lchown.c (main): Likewise.
21886         * tests/test-link.c (main): Likewise.
21887         * tests/test-linkat.c (main): Likewise.
21888         * tests/test-lstat.c (main): Likewise.
21889         * tests/test-mkdir.c (main): Likewise.
21890         * tests/test-mkdirat.c (main): Likewise.
21891         * tests/test-mkfifo.c (main): Likewise.
21892         * tests/test-mkfifoat.c (main): Likewise.
21893         * tests/test-mknod.c (main): Likewise.
21894         * tests/test-readlink.c (main): Likewise.
21895         * tests/test-remove.c (main): Likewise.
21896         * tests/test-rename.c (main): Likewise.
21897         * tests/test-renameat.c (main): Likewise.
21898         * tests/test-rmdir.c (main): Likewise.
21899         * tests/test-symlink.c (main): Likewise.
21900         * tests/test-symlinkat.c (main): Likewise.
21901         * tests/test-unlink.c (main): Likewise.
21902         * tests/test-unlinkat.c (main): Likewise.
21903         * tests/test-utimens.c (main): Likewise.
21904         * tests/test-utimensat.c (main): Likewise.
21905         * modules/areadlink-tests (Depends-on): Add ignore-value.
21906         * modules/areadlink-with-size-tests (Depends-on): Likewise.
21907         * modules/areadlinkat-tests (Depends-on): Likewise.
21908         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
21909         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
21910         * modules/canonicalize-tests (Depends-on): Likewise.
21911         * modules/chown-tests (Depends-on): Likewise.
21912         * modules/fdutimensat-tests (Depends-on): Likewise.
21913         * modules/futimens-tests (Depends-on): Likewise.
21914         * modules/lchown-tests (Depends-on): Likewise.
21915         * modules/link-tests (Depends-on): Likewise.
21916         * modules/linkat-tests (Depends-on): Likewise.
21917         * modules/lstat-tests (Depends-on): Likewise.
21918         * modules/mkdir-tests (Depends-on): Likewise.
21919         * modules/mkfifo-tests (Depends-on): Likewise.
21920         * modules/mkfifoat-tests (Depends-on): Likewise.
21921         * modules/mknod-tests (Depends-on): Likewise.
21922         * modules/openat-tests (Depends-on): Likewise.
21923         * modules/readlink-tests (Depends-on): Likewise.
21924         * modules/remove-tests (Depends-on): Likewise.
21925         * modules/rename-tests (Depends-on): Likewise.
21926         * modules/renameat-tests (Depends-on): Likewise.
21927         * modules/rmdir-tests (Depends-on): Likewise.
21928         * modules/symlink-tests (Depends-on): Likewise.
21929         * modules/symlinkat-tests (Depends-on): Likewise.
21930         * modules/unlink-tests (Depends-on): Likewise.
21931         * modules/utimens-tests (Depends-on): Likewise.
21932         * modules/utimensat-tests (Depends-on): Likewise.
21933
21934 2010-01-31  Bruno Haible  <bruno@clisp.org>
21935
21936         Perform the same test for many <math.h> functions.
21937         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
21938         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
21939         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
21940         of gl_MATHFUNC.
21941         * modules/acos (configure.ac): Likewise.
21942         * modules/asin (configure.ac): Likewise.
21943         * modules/atan (configure.ac): Likewise.
21944         * modules/atan2 (configure.ac): Likewise.
21945         * modules/cbrt (configure.ac): Likewise.
21946         * modules/copysign (configure.ac): Likewise.
21947         * modules/cos (configure.ac): Likewise.
21948         * modules/cosh (configure.ac): Likewise.
21949         * modules/erf (configure.ac): Likewise.
21950         * modules/erfc (configure.ac): Likewise.
21951         * modules/exp (configure.ac): Likewise.
21952         * modules/fmod (configure.ac): Likewise.
21953         * modules/hypot (configure.ac): Likewise.
21954         * modules/j0 (configure.ac): Likewise.
21955         * modules/j1 (configure.ac): Likewise.
21956         * modules/jn (configure.ac): Likewise.
21957         * modules/lgamma (configure.ac): Likewise.
21958         * modules/log (configure.ac): Likewise.
21959         * modules/log10 (configure.ac): Likewise.
21960         * modules/log1p (configure.ac): Likewise.
21961         * modules/pow (configure.ac): Likewise.
21962         * modules/remainder (configure.ac): Likewise.
21963         * modules/sin (configure.ac): Likewise.
21964         * modules/sinh (configure.ac): Likewise.
21965         * modules/tan (configure.ac): Likewise.
21966         * modules/tanh (configure.ac): Likewise.
21967         * modules/y0 (configure.ac): Likewise.
21968         * modules/y1 (configure.ac): Likewise.
21969         * modules/yn (configure.ac): Likewise.
21970         Suggested by Paolo Bonzini.
21971
21972 2010-01-31  Bruno Haible  <bruno@clisp.org>
21973
21974         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
21975
21976 2010-01-31  Bruno Haible  <bruno@clisp.org>
21977
21978         Work around getdelim() bug on FreeBSD 8.0.
21979         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
21980         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
21981         not work.
21982         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
21983         is 1.
21984         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
21985         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
21986         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
21987         a non-zero size.
21988         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
21989
21990 2010-01-31  Bruno Haible  <bruno@clisp.org>
21991
21992         Work around getline() bug on FreeBSD 8.0.
21993         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
21994         and a non-zero size.
21995         * tests/test-getline.c (main): Likewise.
21996         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
21997         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
21998
21999 2010-01-28  Eric Blake  <ebb9@byu.net>
22000
22001         regex: fix build failure
22002         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
22003         platforms.
22004
22005 2010-01-28  Jim Meyering  <meyering@redhat.com>
22006
22007         regex: do not ignore memory allocation failure
22008         * lib/regex_internal.c (create_cd_newstate): Detect
22009         re_node_set_init_copy failure.   Extracted from glibc commit
22010         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
22011
22012         regex: sync more white-space changes from libc
22013         * lib/regex_internal.c: White-space only changes.
22014         * lib/regexec.c: Likewise.
22015
22016         regex: add many uses of __attribute_warn_unused_result__
22017         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
22018         * lib/regexec.c: Likewise.
22019         Extracted from a messy glibc commit.
22020
22021         regcomp.c: spelling and merge-artifact from glibc
22022         * lib/regcomp.c: Merge remainder of glibc's
22023         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
22024
22025         regcomp.c: sync white-space changes from glibc
22026         * lib/regcomp.c: Merge to accommodate white space
22027         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
22028
22029         regcomp.c: do not ignore internal return values
22030         * lib/regcomp.c: Do not ignore internal return values.
22031         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
22032         but without its white-space changes and spelling fixes.
22033
22034         regex_internal.h: define __attribute_warn_unused_result__
22035         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
22036
22037         maint: add a syntax-check rule to check for vulnerable Makefile.in
22038         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
22039
22040 2010-01-27  Jim Meyering  <meyering@redhat.com>
22041
22042         ncftpput-ftp: clean up spaces
22043         * build-aux/ncftpput-ftp: Make Copyright line consistent.
22044         Remove trailing blanks.
22045
22046 2010-01-27  Simon Josefsson  <simon@josefsson.org>
22047
22048         * build-aux/git-version-gen: Fix copyright statement.
22049         * build-aux/gnupload: Likewise.
22050         * tests/test-arcfour.c: Likewise.
22051         * tests/test-arctwo.c: Likewise.
22052         * tests/test-count-one-bits.c: Likewise.
22053         * tests/test-crc.c: Likewise.
22054         * tests/test-des.c: Likewise.
22055         * tests/test-gc-arcfour.c: Likewise.
22056         * tests/test-gc-arctwo.c: Likewise.
22057         * tests/test-gc-des.c: Likewise.
22058         * tests/test-gc-hmac-md5.c: Likewise.
22059         * tests/test-gc-hmac-sha1.c: Likewise.
22060         * tests/test-gc-md2.c: Likewise.
22061         * tests/test-gc-md4.c: Likewise.
22062         * tests/test-gc-md5.c: Likewise.
22063         * tests/test-gc-pbkdf2-sha1.c: Likewise.
22064         * tests/test-gc-rijndael.c: Likewise.
22065         * tests/test-gc-sha1.c: Likewise.
22066         * tests/test-gc.c: Likewise.
22067         * tests/test-gethostname.c: Likewise.
22068         * tests/test-gettimeofday.c: Likewise.
22069         * tests/test-hash.c: Likewise.
22070         * tests/test-hmac-md5.c: Likewise.
22071         * tests/test-hmac-sha1.c: Likewise.
22072         * tests/test-md2.c: Likewise.
22073         * tests/test-md4.c: Likewise.
22074         * tests/test-md5.c: Likewise.
22075         * tests/test-memchr.c: Likewise.
22076         * tests/test-memchr2.c: Likewise.
22077         * tests/test-memcmp.c: Likewise.
22078         * tests/test-memmem.c: Likewise.
22079         * tests/test-memrchr.c: Likewise.
22080         * tests/test-rawmemchr.c: Likewise.
22081         * tests/test-read-file.c: Likewise.
22082         * tests/test-rijndael.c: Likewise.
22083         * tests/test-sockets.c: Likewise.
22084         * tests/test-strchrnul.c: Likewise.
22085         * tests/test-strstr.c: Likewise.
22086         * tests/test-strtod.c: Likewise.
22087         * build-aux/ncftpput-ftp: Likewise.
22088
22089 2010-01-26  Eric Blake  <ebb9@byu.net>
22090
22091         ignore-value: update recommended header name
22092         * modules/ignore-value (Include): Only use <> for headers that
22093         exist in glibc.
22094
22095 2010-01-26  Jim Meyering  <meyering@redhat.com>
22096
22097         test-userspec.c: avoid compiler warnings
22098         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
22099         and "initialization discards qualifiers..." warnings.
22100         Put the first "uid" in its own scope, and make char* members "const".
22101
22102 2010-01-25  Bruno Haible  <bruno@clisp.org>
22103
22104         gnulib-tool: Make warning diagnostics consistent.
22105         * gnulib-tool (func_warning): New function.
22106         Use it everywhere where gnulib-tool produces output to stderr and it is
22107         not a fatal error.
22108
22109 2010-01-25  Bruno Haible  <bruno@clisp.org>
22110
22111         Fix test dependencies.
22112         * modules/xstrtol-tests (Depends-on): Add inttypes.
22113         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
22114
22115 2010-01-25 Pádraig Brady <P@draigBrady.com>
22116
22117         syntax-check: detect incorrect boolean macro values in config.h
22118         * modules/maintainer-makefile (configure.ac): Parameterize the location
22119         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
22120         The logic is from Eric Blake and the location indicated by Jim Meyering.
22121         Note the more natural CONFIG_HEADER name is prohibited by automake
22122         for backwards compatibility reasons.
22123         * top/maint.mk (sc_Wundef_boolean): New rule.
22124
22125 2010-01-25  Jim Meyering  <meyering@redhat.com>
22126
22127         bootstrap: detect MacOS 10.6's shasum, too
22128         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
22129         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
22130
22131 2010-01-23  Jim Meyering  <meyering@redhat.com>
22132
22133         xstrtoll: new module
22134         * modules/xstrtoll: New file.
22135         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
22136         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
22137         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
22138         ./configure fails if you use this module and lack "long long".
22139         * modules/xstrtoll-tests: New module.
22140         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
22141         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
22142         new init.sh-based test framework.
22143
22144 2010-01-24  Bruno Haible  <bruno@clisp.org>
22145
22146         Tests for module 'yn'.
22147         * modules/yn-tests: New file.
22148         * tests/test-yn.c: New file.
22149
22150         Tests for module 'y1'.
22151         * modules/y1-tests: New file.
22152         * tests/test-y1.c: New file.
22153
22154         Tests for module 'y0'.
22155         * modules/y0-tests: New file.
22156         * tests/test-y0.c: New file.
22157
22158         Tests for module 'tanh'.
22159         * modules/tanh-tests: New file.
22160         * tests/test-tanh.c: New file.
22161
22162         Tests for module 'tan'.
22163         * modules/tan-tests: New file.
22164         * tests/test-tan.c: New file.
22165
22166         Tests for module 'sqrt'.
22167         * modules/sqrt-tests: New file.
22168         * tests/test-sqrt.c: New file.
22169
22170         Tests for module 'sinh'.
22171         * modules/sinh-tests: New file.
22172         * tests/test-sinh.c: New file.
22173
22174         Tests for module 'sin'.
22175         * modules/sin-tests: New file.
22176         * tests/test-sin.c: New file.
22177
22178         Tests for module 'rint'.
22179         * modules/rint-tests: New file.
22180         * tests/test-rint.c: New file.
22181
22182         Tests for module 'remainder'.
22183         * modules/remainder-tests: New file.
22184         * tests/test-remainder.c: New file.
22185
22186         Tests for module 'pow'.
22187         * modules/pow-tests: New file.
22188         * tests/test-pow.c: New file.
22189
22190         Tests for module 'nextafter'.
22191         * modules/nextafter-tests: New file.
22192         * tests/test-nextafter.c: New file.
22193
22194         Tests for module 'modf'.
22195         * modules/modf-tests: New file.
22196         * tests/test-modf.c: New file.
22197
22198         Tests for module 'logb'.
22199         * modules/logb-tests: New file.
22200         * tests/test-logb.c: New file.
22201
22202         Tests for module 'log1p'.
22203         * modules/log1p-tests: New file.
22204         * tests/test-log1p.c: New file.
22205
22206         Tests for module 'log10'.
22207         * modules/log10-tests: New file.
22208         * tests/test-log10.c: New file.
22209
22210         Tests for module 'log'.
22211         * modules/log-tests: New file.
22212         * tests/test-log.c: New file.
22213
22214         Tests for module 'lgamma'.
22215         * modules/lgamma-tests: New file.
22216         * tests/test-lgamma.c: New file.
22217
22218         Tests for module 'ldexp'.
22219         * modules/ldexp-tests: New file.
22220         * tests/test-ldexp.c: New file.
22221
22222         Tests for module 'jn'.
22223         * modules/jn-tests: New file.
22224         * tests/test-jn.c: New file.
22225
22226         Tests for module 'j1'.
22227         * modules/j1-tests: New file.
22228         * tests/test-j1.c: New file.
22229
22230         Tests for module 'j0'.
22231         * modules/j0-tests: New file.
22232         * tests/test-j0.c: New file.
22233
22234         Tests for module 'hypot'.
22235         * modules/hypot-tests: New file.
22236         * tests/test-hypot.c: New file.
22237
22238         Tests for module 'fmod'.
22239         * modules/fmod-tests: New file.
22240         * tests/test-fmod.c: New file.
22241
22242         Tests for module 'fabs'.
22243         * modules/fabs-tests: New file.
22244         * tests/test-fabs.c: New file.
22245
22246         Tests for module 'exp'.
22247         * modules/exp-tests: New file.
22248         * tests/test-exp.c: New file.
22249
22250         Tests for module 'erfc'.
22251         * modules/erfc-tests: New file.
22252         * tests/test-erfc.c: New file.
22253
22254         Tests for module 'erf'.
22255         * modules/erf-tests: New file.
22256         * tests/test-erf.c: New file.
22257
22258         Tests for module 'cosh'.
22259         * modules/cosh-tests: New file.
22260         * tests/test-cosh.c: New file.
22261
22262         Tests for module 'cos'.
22263         * modules/cos-tests: New file.
22264         * tests/test-cos.c: New file.
22265
22266         Tests for module 'copysign'.
22267         * modules/copysign-tests: New file.
22268         * tests/test-copysign.c: New file.
22269
22270         Tests for module 'cbrt'.
22271         * modules/cbrt-tests: New file.
22272         * tests/test-cbrt.c: New file.
22273
22274         Tests for module 'atan2'.
22275         * modules/atan2-tests: New file.
22276         * tests/test-atan2.c: New file.
22277
22278         Tests for module 'atan'.
22279         * modules/atan-tests: New file.
22280         * tests/test-atan.c: New file.
22281
22282         Tests for module 'asin'.
22283         * modules/asin-tests: New file.
22284         * tests/test-asin.c: New file.
22285
22286         Tests for module 'acos'.
22287         * modules/acos-tests: New file.
22288         * tests/test-acos.c: New file.
22289
22290 2010-01-24  Bruno Haible  <bruno@clisp.org>
22291
22292         Fix tests for common <math.h> functions.
22293         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
22294         code snippet that references the function pointer, rather than merely
22295         calling the function. Substitute the FUNC_LIBM variable.
22296         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
22297         * modules/acos (configure.ac): Likewise.
22298         * modules/asin (configure.ac): Likewise.
22299         * modules/atan (configure.ac): Likewise.
22300         * modules/atan2 (configure.ac): Likewise.
22301         * modules/cbrt (configure.ac): Likewise.
22302         * modules/copysign (configure.ac): Likewise.
22303         * modules/cos (configure.ac): Likewise.
22304         * modules/cosh (configure.ac): Likewise.
22305         * modules/erf (configure.ac): Likewise.
22306         * modules/erfc (configure.ac): Likewise.
22307         * modules/exp (configure.ac): Likewise.
22308         * modules/fabs (configure.ac): Likewise.
22309         * modules/fmod (configure.ac): Likewise.
22310         * modules/hypot (configure.ac): Likewise.
22311         * modules/j0 (configure.ac): Likewise.
22312         * modules/j1 (configure.ac): Likewise.
22313         * modules/jn (configure.ac): Likewise.
22314         * modules/ldexp (configure.ac): Likewise.
22315         * modules/lgamma (configure.ac): Likewise.
22316         * modules/log (configure.ac): Likewise.
22317         * modules/log10 (configure.ac): Likewise.
22318         * modules/log1p (configure.ac): Likewise.
22319         * modules/logb (configure.ac): Likewise.
22320         * modules/modf (configure.ac): Likewise.
22321         * modules/nextafter (configure.ac): Likewise.
22322         * modules/pow (configure.ac): Likewise.
22323         * modules/remainder (configure.ac): Likewise.
22324         * modules/rint (configure.ac): Likewise.
22325         * modules/sin (configure.ac): Likewise.
22326         * modules/sinh (configure.ac): Likewise.
22327         * modules/tan (configure.ac): Likewise.
22328         * modules/tanh (configure.ac): Likewise.
22329         * modules/y0 (configure.ac): Likewise.
22330         * modules/y1 (configure.ac): Likewise.
22331         * modules/yn (configure.ac): Likewise.
22332
22333 2010-01-24  Bruno Haible  <bruno@clisp.org>
22334
22335         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
22336         * tests/test-acosl.c (x): New variable.
22337         (main): Store argument in x and fetch it from x.
22338         * tests/test-asinl.c (x): New variable.
22339         (main): Store argument in x and fetch it from x.
22340         * tests/test-atanl.c (x): New variable.
22341         (main): Store argument in x and fetch it from x.
22342         * tests/test-cosl.c (x): New variable.
22343         (main): Store argument in x and fetch it from x.
22344         * tests/test-expl.c (x): New variable.
22345         (main): Store argument in x and fetch it from x.
22346         * tests/test-logl.c (x): New variable.
22347         (main): Store argument in x and fetch it from x.
22348         * tests/test-sinl.c (x): New variable.
22349         (main): Store argument in x and fetch it from x.
22350         * tests/test-sqrtl.c (x): New variable.
22351         (main): Store argument in x and fetch it from x.
22352         * tests/test-tanl.c (x): New variable.
22353         (main): Store argument in x and fetch it from x.
22354
22355 2010-01-24  Bruno Haible  <bruno@clisp.org>
22356
22357         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
22358         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
22359         assignments to the initial TESTS_ENVIRONMENT.
22360         * doc/gnulib.texi (Unit test modules): Document it.
22361         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
22362         TESTS_ENVIRONMENT.
22363         * modules/btowc-tests (Makefile.am): Likewise.
22364         * modules/c-stack-tests (Makefile.am): Likewise.
22365         * modules/c-strcase-tests (Makefile.am): Likewise.
22366         * modules/copy-file-tests (Makefile.am): Likewise.
22367         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
22368         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
22369         * modules/mbrtowc-tests (Makefile.am): Likewise.
22370         * modules/mbscasecmp-tests (Makefile.am): Likewise.
22371         * modules/mbscasestr-tests (Makefile.am): Likewise.
22372         * modules/mbschr-tests (Makefile.am): Likewise.
22373         * modules/mbscspn-tests (Makefile.am): Likewise.
22374         * modules/mbsinit-tests (Makefile.am): Likewise.
22375         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
22376         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
22377         * modules/mbspbrk-tests (Makefile.am): Likewise.
22378         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
22379         * modules/mbsrchr-tests (Makefile.am): Likewise.
22380         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
22381         * modules/mbsspn-tests (Makefile.am): Likewise.
22382         * modules/mbsstr-tests (Makefile.am): Likewise.
22383         * modules/nl_langinfo-tests (Makefile.am): Likewise.
22384         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
22385         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
22386         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
22387         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
22388         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
22389         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
22390         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
22391         * modules/wcrtomb-tests (Makefile.am): Likewise.
22392         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
22393         * modules/wcsrtombs-tests (Makefile.am): Likewise.
22394         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
22395         assignments from TESTS_ENVIRONMENT.
22396         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
22397         augmentation.
22398         * modules/argp-version-etc-tests (Makefile.am): Likewise.
22399         * modules/atexit-tests (Makefile.am): Likewise.
22400         * modules/binary-io-tests (Makefile.am): Likewise.
22401         * modules/closein-tests (Makefile.am): Likewise.
22402         * modules/dprintf-posix-tests (Makefile.am): Likewise.
22403         * modules/exclude-tests (Makefile.am): Likewise.
22404         * modules/fflush-tests (Makefile.am): Likewise.
22405         * modules/fpending-tests (Makefile.am): Likewise.
22406         * modules/fprintf-posix-tests (Makefile.am): Likewise.
22407         * modules/freadahead-tests (Makefile.am): Likewise.
22408         * modules/freadptr-tests (Makefile.am): Likewise.
22409         * modules/freadseek-tests (Makefile.am): Likewise.
22410         * modules/fseek-tests (Makefile.am): Likewise.
22411         * modules/fseeko-tests (Makefile.am): Likewise.
22412         * modules/ftell-tests (Makefile.am): Likewise.
22413         * modules/ftello-tests (Makefile.am): Likewise.
22414         * modules/idpriv-drop-tests (Makefile.am): Likewise.
22415         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
22416         * modules/lseek-tests (Makefile.am): Likewise.
22417         * modules/parse-duration-tests (Makefile.am): Likewise.
22418         * modules/perror-tests (Makefile.am): Likewise.
22419         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
22420         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
22421         * modules/pipe-tests (Makefile.am): Likewise.
22422         * modules/pread-tests (Makefile.am): Likewise.
22423         * modules/printf-posix-tests (Makefile.am): Likewise.
22424         * modules/select-tests (Makefile.am): Likewise.
22425         * modules/sigpipe-tests (Makefile.am): Likewise.
22426         * modules/tsearch-tests (Makefile.am): Likewise.
22427         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
22428         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
22429         * modules/uniname/uniname-tests (Makefile.am): Likewise.
22430         * modules/uniwidth/width-tests (Makefile.am): Likewise.
22431         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
22432         * modules/version-etc-tests (Makefile.am): Likewise.
22433         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
22434         * modules/vprintf-posix-tests (Makefile.am): Likewise.
22435         * modules/xalloc-die-tests (Makefile.am): Likewise.
22436         * modules/xprintf-posix-tests (Makefile.am): Likewise.
22437         * modules/xstrtoimax-tests (Makefile.am): Likewise.
22438         * modules/xstrtol-tests (Makefile.am): Likewise.
22439         * modules/xstrtoumax-tests (Makefile.am): Likewise.
22440         * modules/yesno-tests (Makefile.am): Likewise.
22441         Suggested by Jim Meyering.
22442
22443 2010-01-24  Bruno Haible  <bruno@clisp.org>
22444
22445         More documentation.
22446         * doc/gnulib.texi (Writing modules): New chapter.
22447         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
22448         the new chapter.
22449
22450 2010-01-24  Jim Meyering  <meyering@redhat.com>
22451
22452         maint.mk: do not prepend "./" after filtering
22453         * top/maint.mk (_prepend_srcdir_prefix): New variable
22454         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
22455         "./" when $(srcdir) is ".".
22456
22457         define STREQ(a,b) consistently, removing useless parentheses
22458         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
22459         since the only risk is that "a" or "b" contains an unparenthesized
22460         comma, but if either did that, STREQ would have 3 or more arguments.
22461         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
22462         * lib/fts.c (STREQ): Remove unnecessary parentheses.
22463         * lib/hash-triple.c (STREQ): Likewise.
22464         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
22465         * lib/getugroups.c (STREQ): Likewise.
22466
22467 2010-01-23  Jim Meyering  <meyering@redhat.com>
22468
22469         maint.mk: fix syntax-check in a non-srcdir build directory
22470         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
22471         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
22472
22473 2010-01-22  Jim Meyering  <meyering@redhat.com>
22474
22475         userspec: add unit tests
22476         * tests/test-userspec.c: New file.
22477         * modules/userspec-tests: Likewise.
22478
22479 2010-01-21  Jim Meyering  <meyering@redhat.com>
22480
22481         maint.mk: handle source file names containing "." robustly
22482         * top/maint.mk (_dot_escaped_srcdir): Define.
22483         (VC_LIST): Use it in LHS of sed substitution.
22484
22485 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
22486
22487         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
22488         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
22489         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
22490         from a non-srcdir build.
22491
22492 2010-01-20  Eric Blake  <ebb9@byu.net>
22493
22494         warn-on-use: use instead of link-warning
22495         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
22496         * modules/unistd (Depends-on, Makefile.am): Likewise.
22497         * modules/arpa_inet (Depends-on): Replace link-warning with
22498         warn-on-use.
22499         (Makefile.am): Update rules accordingly.
22500         * modules/ctype (Depends-on, Makefile.am): Likewise.
22501         * modules/dirent (Depends-on, Makefile.am): Likewise.
22502         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
22503         * modules/inttypes (Depends-on, Makefile.am): Likewise.
22504         * modules/langinfo (Depends-on, Makefile.am): Likewise.
22505         * modules/locale (Depends-on, Makefile.am): Likewise.
22506         * modules/math (Depends-on, Makefile.am): Likewise.
22507         * modules/search (Depends-on, Makefile.am): Likewise.
22508         * modules/signal (Depends-on, Makefile.am): Likewise.
22509         * modules/spawn (Depends-on, Makefile.am): Likewise.
22510         * modules/stdlib (Depends-on, Makefile.am): Likewise.
22511         * modules/string (Depends-on, Makefile.am): Likewise.
22512         * modules/strings (Depends-on, Makefile.am): Likewise.
22513         * modules/sys_file (Depends-on, Makefile.am): Likewise.
22514         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
22515         * modules/sys_select (Depends-on, Makefile.am): Likewise.
22516         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
22517         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
22518         * modules/sys_times (Depends-on, Makefile.am): Likewise.
22519         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
22520         * modules/wchar (Depends-on, Makefile.am): Likewise.
22521         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
22522         should be poisoned.
22523         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
22524         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
22525         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
22526         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
22527         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
22528         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
22529         * m4/math_h.m4 (gl_MATH_H): Likewise.
22530         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
22531         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
22532         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
22533         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
22534         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
22535         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
22536         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
22537         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
22538         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
22539         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22540         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
22541         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
22542         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
22543         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
22544         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
22545         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
22546         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
22547         GL_LINK_WARNING.
22548         * lib/ctype.in.h: Likewise.
22549         * lib/dirent.in.h: Likewise.
22550         * lib/fcntl.in.h: Likewise.
22551         * lib/inttypes.in.h: Likewise.
22552         * lib/langinfo.in.h: Likewise.
22553         * lib/locale.in.h: Likewise.
22554         * lib/math.in.h: Likewise.
22555         * lib/search.in.h: Likewise.
22556         * lib/signal.in.h: Likewise.
22557         * lib/spawn.in.h: Likewise.
22558         * lib/stdio.in.h: Likewise.
22559         * lib/stdlib.in.h: Likewise.
22560         * lib/string.in.h: Likewise.
22561         * lib/strings.in.h: Likewise.
22562         * lib/sys_file.in.h: Likewise.
22563         * lib/sys_ioctl.in.h: Likewise.
22564         * lib/sys_select.in.h: Likewise.
22565         * lib/sys_socket.in.h: Likewise.
22566         * lib/sys_stat.in.h: Likewise.
22567         * lib/sys_times.in.h: Likewise.
22568         * lib/sys_utsname.in.h: Likewise.
22569         * lib/unistd.in.h: Likewise.
22570         * lib/wchar.in.h: Likewise.
22571
22572 2010-01-20  Bruno Haible  <bruno@clisp.org>
22573
22574         Avoid duplicate -lm.
22575         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
22576         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
22577         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
22578         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
22579         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
22580         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
22581         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
22582         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
22583         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
22584         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
22585         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
22586         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
22587         Reported by Paolo Bonzini.
22588
22589 2010-01-19  Bruno Haible  <bruno@clisp.org>
22590
22591         langinfo, nl_langinfo: Relicense under LGPLv2+.
22592         * modules/langinfo (License): Change to LGPLv2+.
22593         * modules/nl_langinfo (License): Likewise.
22594         Patch by David Lutterkort <lutter@redhat.com>.
22595
22596 2010-01-19  Bruno Haible  <bruno@clisp.org>
22597
22598         Avoid compilation error with cc on OSF/1 5.1.
22599         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
22600         statement, not before.
22601         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22602
22603 2010-01-18  Bruno Haible  <bruno@clisp.org>
22604
22605         Avoid a link error due to the __printf__ symbol.
22606         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
22607         and 2.6.x.
22608         (__format__, __printf__): Remove definitions.
22609         * lib/argp-fmtstream.h: Likewise.
22610         * lib/argp.h: Likewise.
22611         * lib/error.h: Likewise.
22612         * lib/vasnprintf.h: Likewise.
22613         * lib/xprintf.h: Likewise.
22614         * lib/xvasprintf.h: Likewise.
22615         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22616
22617 2010-01-18  Bruno Haible  <bruno@clisp.org>
22618
22619         Tests for module 'tanl'.
22620         * modules/tanl-tests: New file.
22621         * tests/test-tanl.c: New file.
22622
22623         Tests for module 'sqrtl'.
22624         * modules/sqrtl-tests: New file.
22625         * tests/test-sqrtl.c: New file.
22626
22627         Tests for module 'sinl'.
22628         * modules/sinl-tests: New file.
22629         * tests/test-sinl.c: New file.
22630
22631         Tests for module 'logl'.
22632         * modules/logl-tests: New file.
22633         * tests/test-logl.c: New file.
22634
22635         Tests for module 'expl'.
22636         * modules/expl-tests: New file.
22637         * tests/test-expl.c: New file.
22638
22639         Tests for module 'cosl'.
22640         * modules/cosl-tests: New file.
22641         * tests/test-cosl.c: New file.
22642
22643         Tests for module 'atanl'.
22644         * modules/atanl-tests: New file.
22645         * tests/test-atanl.c: New file.
22646
22647         Tests for module 'asinl'.
22648         * modules/asinl-tests: New file.
22649         * tests/test-asinl.c: New file.
22650
22651         Tests for module 'acosl'.
22652         * modules/acosl-tests: New file.
22653         * tests/test-acosl.c: New file.
22654
22655         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
22656         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
22657         tanl): Use the standard gnulib idiom.
22658         * lib/cosl.c: Don't include trigl.c and sincosl.c.
22659         * lib/sinl.c: Likewise.
22660         * lib/tanl.c: Don't include trigl.c.
22661         (kernel_tanl): Make static.
22662         * lib/sincosl.c: Include trigl.h first.
22663         * lib/trigl.c: Likewise.
22664         * m4/acosl.m4: New file.
22665         * m4/asinl.m4: New file.
22666         * m4/atanl.m4: New file.
22667         * m4/cosl.m4: New file.
22668         * m4/expl.m4: New file.
22669         * m4/logl.m4: New file.
22670         * m4/sinl.m4: New file.
22671         * m4/sqrtl.m4: New file.
22672         * m4/tanl.m4: New file.
22673         * m4/mathl.m4: Remove file.
22674         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
22675         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
22676         Don't initialize GNULIB_MATHL.
22677         * modules/acosl: New file.
22678         * modules/asinl: New file.
22679         * modules/atanl: New file.
22680         * modules/cosl: New file.
22681         * modules/expl: New file.
22682         * modules/logl: New file.
22683         * modules/sinl: New file.
22684         * modules/sqrtl: New file.
22685         * modules/tanl: New file.
22686         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
22687         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
22688         substitute GNULIB_MATHL.
22689         * modules/mathl: Rewritten.
22690         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
22691         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
22692         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
22693         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
22694         * doc/posix-functions/expl.texi: Mention the 'expl' module.
22695         * doc/posix-functions/logl.texi: Mention the 'logl' module.
22696         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
22697         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
22698         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
22699
22700 2010-01-18  Bruno Haible  <bruno@clisp.org>
22701
22702         sqrt: Make gl_FUNC_SQRT requirable.
22703         * m4/sqrt.m4: New file.
22704         * modules/sqrt (Files): Add it.
22705         (configure.ac): Invoke gl_FUNC_SQRT.
22706
22707 2010-01-18  Bruno Haible  <bruno@clisp.org>
22708
22709         New modules for common <math.h> functions.
22710         * m4/mathfunc.m4: New file.
22711         * modules/acos: New file.
22712         * modules/asin: New file.
22713         * modules/atan: New file.
22714         * modules/atan2: New file.
22715         * modules/cbrt: New file.
22716         * modules/copysign: New file.
22717         * modules/cos: New file.
22718         * modules/cosh: New file.
22719         * modules/erf: New file.
22720         * modules/erfc: New file.
22721         * modules/exp: New file.
22722         * modules/fabs: New file.
22723         * modules/fmod: New file.
22724         * modules/hypot: New file.
22725         * modules/j0: New file.
22726         * modules/j1: New file.
22727         * modules/jn: New file.
22728         * modules/ldexp: New file.
22729         * modules/lgamma: New file.
22730         * modules/log: New file.
22731         * modules/log10: New file.
22732         * modules/log1p: New file.
22733         * modules/logb: New file.
22734         * modules/modf: New file.
22735         * modules/nextafter: New file.
22736         * modules/pow: New file.
22737         * modules/remainder: New file.
22738         * modules/rint: New file.
22739         * modules/sin: New file.
22740         * modules/sinh: New file.
22741         * modules/sqrt: New file.
22742         * modules/tan: New file.
22743         * modules/tanh: New file.
22744         * modules/y0: New file.
22745         * modules/y1: New file.
22746         * modules/yn: New file.
22747         * doc/posix-functions/acos.texi: Mention the 'acos' module.
22748         * doc/posix-functions/asin.texi: Mention the 'asin' module.
22749         * doc/posix-functions/atan.texi: Mention the 'atan' module.
22750         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
22751         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
22752         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
22753         * doc/posix-functions/cos.texi: Mention the 'cos' module.
22754         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
22755         * doc/posix-functions/erf.texi: Mention the 'erf' module.
22756         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
22757         * doc/posix-functions/exp.texi: Mention the 'exp' module.
22758         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
22759         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
22760         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
22761         * doc/posix-functions/j0.texi: Mention the 'j0' module.
22762         * doc/posix-functions/j1.texi: Mention the 'j1' module.
22763         * doc/posix-functions/jn.texi: Mention the 'jn' module.
22764         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
22765         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
22766         * doc/posix-functions/log.texi: Mention the 'log' module.
22767         * doc/posix-functions/log10.texi: Mention the 'log10' module.
22768         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
22769         * doc/posix-functions/logb.texi: Mention the 'logb' module.
22770         * doc/posix-functions/modf.texi: Mention the 'modf' module.
22771         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
22772         * doc/posix-functions/pow.texi: Mention the 'pow' module.
22773         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
22774         * doc/posix-functions/rint.texi: Mention the 'rint' module.
22775         * doc/posix-functions/sin.texi: Mention the 'sin' module.
22776         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
22777         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
22778         * doc/posix-functions/tan.texi: Mention the 'tan' module.
22779         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
22780         * doc/posix-functions/y0.texi: Mention the 'y0' module.
22781         * doc/posix-functions/y1.texi: Mention the 'y1' module.
22782         * doc/posix-functions/yn.texi: Mention the 'yn' module.
22783
22784 2010-01-18  Jim Meyering  <meyering@redhat.com>
22785
22786         ignore-value: relax license to LGPLv2+
22787         * modules/ignore-value (License): Relax to LGPLv2+.
22788
22789         getdate: don't leak when TZ contains two or more '"'s
22790         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
22791         double quote in TZ after the first one.
22792
22793         readtokens: do not leak internal token_lengths buffer
22794         * lib/readtokens.c (readtokens): Free the local, lengths,
22795         when the supplied "token_lengths" parameter is NULL.
22796
22797 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22798
22799         Fix a couple of missing LIBTHREAD link failures on AIX.
22800         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
22801         $(LIBTHREAD).
22802         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
22803
22804         Link test-poll against INET_PTON_LIB.
22805         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
22806         for inet_pton on Solaris 10.
22807
22808 2010-01-17  Bruno Haible  <bruno@clisp.org>
22809
22810         unistdio/*-sprintf: Fix typo in module description.
22811         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
22812         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
22813         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
22814         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
22815         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
22816         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
22817         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
22818         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22819
22820 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22821
22822         gnulib-tool: fix filelist for AIX, HP-UX ksh.
22823         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
22824         variables in shell case patterns, for AIX and HP-UX ksh.
22825
22826         Split large sed scripts, for HP-UX sed.
22827         * modules/stdio: Split sed scripts around 50 sed commands,
22828         to avoid HP-UX limit of 99 commands, in the near future.
22829         * modules/string: Likewise.
22830         * modules/unistd: Likewise.
22831
22832         gnulib-tool: avoid writing in the current directory.
22833         * gnulib-tool (func_emit_lib_Makefile_am)
22834         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
22835         not in the current directory, so concurrent gnulib-tool
22836         instances do not interfere.
22837
22838 2010-01-16  Jim Meyering  <meyering@redhat.com>
22839
22840         doc: update users.txt
22841         * users.txt: Add grep.
22842         (diffutils, gzip): Update URLs.
22843
22844 2010-01-12  Bruno Haible  <bruno@clisp.org>
22845
22846         posix_spawn: Avoid test failure on Cygwin.
22847         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
22848         characters.
22849         Reported by Simon Josefsson.
22850
22851 2010-01-12  Bruno Haible  <bruno@clisp.org>
22852
22853         * tests/test-cond.c (main): When skipping the test, show the reason.
22854
22855 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22856
22857         * lib/striconv.c (str_cd_iconv): Avoid if before free.
22858
22859 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22860
22861         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
22862         VC_LIST_ALWAYS_EXCLUDE_REGEX.
22863
22864 2010-01-12  Eric Blake  <ebb9@byu.net>
22865
22866         build: guarantee AS_VAR_IF
22867         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
22868         (gl_AS_VAR_IF): Move...
22869         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
22870         Reported by Simon Josefsson.
22871
22872 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22873
22874         * lib/stdio.in.h: Fix typo.
22875
22876 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22877
22878         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
22879         libgpg-error.
22880
22881 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22882
22883         * tests/test-xalloc-die.sh: Use $EXEEXT.
22884
22885 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22886             Bruno Haible  <bruno@clisp.org>
22887
22888         getlogin, getlogin_r: Avoid test failure.
22889         * tests/test-getlogin.c: Include <stdio.h>.
22890         (main): Skip the test when the function fails because stdin is not a
22891         tty.
22892         * tests/test-getlogin_r.c: Include <stdio.h>.
22893         (main): Skip the test when the function fails because stdin is not a
22894         tty.
22895
22896 2010-01-11  Eric Blake  <ebb9@byu.net>
22897
22898         tests: avoid more large file warnings
22899         * tests/test-fflush.c: Avoid warning about ftell use.
22900         * tests/test-fseek.c: Avoid warning about fseek use.
22901
22902 2010-01-10  Bruno Haible  <bruno@clisp.org>
22903
22904         nproc: Work better on Linux when /proc and /sys are not mounted.
22905         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
22906         as lower bound when, on glibc/Linux systems,
22907         sysconf (_SC_NPROCESSORS_CONF) returns 1.
22908         Suggested by Pádraig Brady <P@draigbrady.com>.
22909         Reported by Dmitry V. Levin <ldv@altlinux.org>.
22910
22911         nproc: Refactor.
22912         * lib/nproc.c (num_processors_via_affinity_mask): New function,
22913         extracted from num_processors.
22914         (num_processors): Call it.
22915
22916 2010-01-11  Jim Meyering  <meyering@redhat.com>
22917
22918         utimecmp: avoid new warning from upcoming gcc-4.5.0
22919         * lib/utimecmp.c (BILLION): Define using #define rather than an
22920         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
22921
22922 2010-01-11  Eric Blake  <ebb9@byu.net>
22923
22924         math: add portability warnings for classification macros
22925         * modules/math (Depends-on): Add warn-on-use.
22926         (Makefile.am): Provide new substitutions.
22927         * m4/math_h.m4 (gl_MATH_H): Require inline.
22928         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
22929         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
22930         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
22931         implement warnings.
22932
22933         unistd: warn on use of environ without module
22934         * modules/unistd (Depends-on): Add warn-on-use.
22935         (Makefile.am): Provide new substitutions.
22936         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
22937         * lib/unistd.in.h (environ): Wrap with a warning helper function.
22938
22939         stdio: warn on suspicious uses
22940         * modules/stdio (Depends-on): Add warn-on-use.
22941         (Makefile.am): Provide new substitutions.
22942         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
22943         fseeko.
22944         * lib/stdio.in.h (gets): Always warn on use.
22945         (fseek, ftell): Adjust when warnings are issued, and honor
22946         _GL_NO_LARGE_FILES as a way to silence the warning.
22947         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
22948         any warning about large file offsets.
22949         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
22950         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
22951         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
22952         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
22953         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
22954         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
22955         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
22956         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
22957
22958         warn-on-use: new module
22959         * modules/warn-on-use: New file.
22960         * build-aux/warn-on-use.h: Likewise.
22961         * m4/warn-on-use.m4: Likewise.
22962         * MODULES.html.sh (Support for building): Mention it.
22963
22964 2010-01-10  Bruno Haible  <bruno@clisp.org>
22965
22966         Tests for module 'unistr/u32-strdup'.
22967         * modules/unistr/u32-strdup-tests: New file.
22968         * tests/unistr/test-u32-strdup.c: New file.
22969
22970         Tests for module 'unistr/u16-strdup'.
22971         * modules/unistr/u16-strdup-tests: New file.
22972         * tests/unistr/test-u16-strdup.c: New file.
22973
22974         Tests for module 'unistr/u8-strdup'.
22975         * modules/unistr/u8-strdup-tests: New file.
22976         * tests/unistr/test-u8-strdup.c: New file.
22977         * tests/unistr/test-strdup.h: New file.
22978
22979         Tests for module 'unistr/u32-strncmp'.
22980         * modules/unistr/u32-strncmp-tests: New file.
22981         * tests/unistr/test-u32-strncmp.c: New file.
22982
22983         Tests for module 'unistr/u16-strncmp'.
22984         * modules/unistr/u16-strncmp-tests: New file.
22985         * tests/unistr/test-u16-strncmp.c: New file.
22986
22987         Tests for module 'unistr/u8-strncmp'.
22988         * modules/unistr/u8-strncmp-tests: New file.
22989         * tests/unistr/test-u8-strncmp.c: New file.
22990         * tests/unistr/test-strncmp.h: New file.
22991
22992         Tests for module 'unistr/u32-strcoll'.
22993         * modules/unistr/u32-strcoll-tests: New file.
22994         * tests/unistr/test-u32-strcoll.c: New file.
22995
22996         Tests for module 'unistr/u16-strcoll'.
22997         * modules/unistr/u16-strcoll-tests: New file.
22998         * tests/unistr/test-u16-strcoll.c: New file.
22999
23000         Tests for module 'unistr/u8-strcoll'.
23001         * modules/unistr/u8-strcoll-tests: New file.
23002         * tests/unistr/test-u8-strcoll.c: New file.
23003
23004         Tests for module 'unistr/u32-strcmp'.
23005         * modules/unistr/u32-strcmp-tests: New file.
23006         * tests/unistr/test-u32-strcmp.c: New file.
23007         * tests/unistr/test-u32-strcmp.h: New file.
23008
23009         Tests for module 'unistr/u16-strcmp'.
23010         * modules/unistr/u16-strcmp-tests: New file.
23011         * tests/unistr/test-u16-strcmp.c: New file.
23012         * tests/unistr/test-u16-strcmp.h: New file.
23013
23014         Tests for module 'unistr/u8-strcmp'.
23015         * modules/unistr/u8-strcmp-tests: New file.
23016         * tests/unistr/test-u8-strcmp.c: New file.
23017         * tests/unistr/test-u8-strcmp.h: New file.
23018         * tests/unistr/test-strcmp.h: New file.
23019
23020         Tests for module 'unistr/u32-strncat'.
23021         * modules/unistr/u32-strncat-tests: New file.
23022         * tests/unistr/test-u32-strncat.c: New file.
23023
23024         Tests for module 'unistr/u16-strncat'.
23025         * modules/unistr/u16-strncat-tests: New file.
23026         * tests/unistr/test-u16-strncat.c: New file.
23027
23028         Tests for module 'unistr/u8-strncat'.
23029         * modules/unistr/u8-strncat-tests: New file.
23030         * tests/unistr/test-u8-strncat.c: New file.
23031         * tests/unistr/test-strncat.h: New file.
23032
23033         Tests for module 'unistr/u32-strcat'.
23034         * modules/unistr/u32-strcat-tests: New file.
23035         * tests/unistr/test-u32-strcat.c: New file.
23036
23037         Tests for module 'unistr/u16-strcat'.
23038         * modules/unistr/u16-strcat-tests: New file.
23039         * tests/unistr/test-u16-strcat.c: New file.
23040
23041         Tests for module 'unistr/u8-strcat'.
23042         * modules/unistr/u8-strcat-tests: New file.
23043         * tests/unistr/test-u8-strcat.c: New file.
23044         * tests/unistr/test-strcat.h: New file.
23045
23046         Tests for module 'unistr/u32-stpncpy'.
23047         * modules/unistr/u32-stpncpy-tests: New file.
23048         * tests/unistr/test-u32-stpncpy.c: New file.
23049
23050         Tests for module 'unistr/u16-stpncpy'.
23051         * modules/unistr/u16-stpncpy-tests: New file.
23052         * tests/unistr/test-u16-stpncpy.c: New file.
23053
23054         Tests for module 'unistr/u8-stpncpy'.
23055         * modules/unistr/u8-stpncpy-tests: New file.
23056         * tests/unistr/test-u8-stpncpy.c: New file.
23057         * tests/unistr/test-stpncpy.h: New file.
23058
23059         Tests for module 'unistr/u32-strncpy'.
23060         * modules/unistr/u32-strncpy-tests: New file.
23061         * tests/unistr/test-u32-strncpy.c: New file.
23062
23063         Tests for module 'unistr/u16-strncpy'.
23064         * modules/unistr/u16-strncpy-tests: New file.
23065         * tests/unistr/test-u16-strncpy.c: New file.
23066
23067         Tests for module 'unistr/u8-strncpy'.
23068         * modules/unistr/u8-strncpy-tests: New file.
23069         * tests/unistr/test-u8-strncpy.c: New file.
23070         * tests/unistr/test-strncpy.h: New file.
23071
23072         Tests for module 'unistr/u32-stpcpy'.
23073         * modules/unistr/u32-stpcpy-tests: New file.
23074         * tests/unistr/test-u32-stpcpy.c: New file.
23075
23076         Tests for module 'unistr/u16-stpcpy'.
23077         * modules/unistr/u16-stpcpy-tests: New file.
23078         * tests/unistr/test-u16-stpcpy.c: New file.
23079
23080         Tests for module 'unistr/u8-stpcpy'.
23081         * modules/unistr/u8-stpcpy-tests: New file.
23082         * tests/unistr/test-u8-stpcpy.c: New file.
23083         * tests/unistr/test-stpcpy.h: New file.
23084
23085         Tests for module 'unistr/u32-strcpy'.
23086         * modules/unistr/u32-strcpy-tests: New file.
23087         * tests/unistr/test-u32-strcpy.c: New file.
23088
23089         Tests for module 'unistr/u16-strcpy'.
23090         * modules/unistr/u16-strcpy-tests: New file.
23091         * tests/unistr/test-u16-strcpy.c: New file.
23092
23093         Tests for module 'unistr/u8-strcpy'.
23094         * modules/unistr/u8-strcpy-tests: New file.
23095         * tests/unistr/test-u8-strcpy.c: New file.
23096         * tests/unistr/test-strcpy.h: New file.
23097
23098         Tests for module 'unistr/u32-strnlen'.
23099         * modules/unistr/u32-strnlen-tests: New file.
23100         * tests/unistr/test-u32-strnlen.c: New file.
23101
23102         Tests for module 'unistr/u16-strnlen'.
23103         * modules/unistr/u16-strnlen-tests: New file.
23104         * tests/unistr/test-u16-strnlen.c: New file.
23105
23106         Tests for module 'unistr/u8-strnlen'.
23107         * modules/unistr/u8-strnlen-tests: New file.
23108         * tests/unistr/test-u8-strnlen.c: New file.
23109         * tests/unistr/test-strnlen.h: New file.
23110
23111         Tests for module 'unistr/u32-strlen'.
23112         * modules/unistr/u32-strlen-tests: New file.
23113         * tests/unistr/test-u32-strlen.c: New file.
23114
23115         Tests for module 'unistr/u16-strlen'.
23116         * modules/unistr/u16-strlen-tests: New file.
23117         * tests/unistr/test-u16-strlen.c: New file.
23118
23119         Tests for module 'unistr/u8-strlen'.
23120         * modules/unistr/u8-strlen-tests: New file.
23121         * tests/unistr/test-u8-strlen.c: New file.
23122
23123         Tests for module 'unistr/u32-prev'.
23124         * modules/unistr/u32-prev-tests: New file.
23125         * tests/unistr/test-u32-prev.c: New file.
23126
23127         Tests for module 'unistr/u16-prev'.
23128         * modules/unistr/u16-prev-tests: New file.
23129         * tests/unistr/test-u16-prev.c: New file.
23130
23131         Tests for module 'unistr/u8-prev'.
23132         * modules/unistr/u8-prev-tests: New file.
23133         * tests/unistr/test-u8-prev.c: New file.
23134
23135         Tests for module 'unistr/u32-next'.
23136         * modules/unistr/u32-next-tests: New file.
23137         * tests/unistr/test-u32-next.c: New file.
23138
23139         Tests for module 'unistr/u16-next'.
23140         * modules/unistr/u16-next-tests: New file.
23141         * tests/unistr/test-u16-next.c: New file.
23142
23143         Tests for module 'unistr/u8-next'.
23144         * modules/unistr/u8-next-tests: New file.
23145         * tests/unistr/test-u8-next.c: New file.
23146
23147         Tests for module 'unistr/u32-strmbtouc'.
23148         * modules/unistr/u32-strmbtouc-tests: New file.
23149         * tests/unistr/test-u32-strmbtouc.c: New file.
23150
23151         Tests for module 'unistr/u16-strmbtouc'.
23152         * modules/unistr/u16-strmbtouc-tests: New file.
23153         * tests/unistr/test-u16-strmbtouc.c: New file.
23154
23155         Tests for module 'unistr/u8-strmbtouc'.
23156         * modules/unistr/u8-strmbtouc-tests: New file.
23157         * tests/unistr/test-u8-strmbtouc.c: New file.
23158
23159         Tests for module 'unistr/u32-strmblen'.
23160         * modules/unistr/u32-strmblen-tests: New file.
23161         * tests/unistr/test-u32-strmblen.c: New file.
23162
23163         Tests for module 'unistr/u16-strmblen'.
23164         * modules/unistr/u16-strmblen-tests: New file.
23165         * tests/unistr/test-u16-strmblen.c: New file.
23166
23167         Tests for module 'unistr/u8-strmblen'.
23168         * modules/unistr/u8-strmblen-tests: New file.
23169         * tests/unistr/test-u8-strmblen.c: New file.
23170
23171         Tests for module 'unistr/u32-cpy-alloc'.
23172         * modules/unistr/u32-cpy-alloc-tests: New file.
23173         * tests/unistr/test-u32-cpy-alloc.c: New file.
23174
23175         Tests for module 'unistr/u16-cpy-alloc'.
23176         * modules/unistr/u16-cpy-alloc-tests: New file.
23177         * tests/unistr/test-u16-cpy-alloc.c: New file.
23178
23179         Tests for module 'unistr/u8-cpy-alloc'.
23180         * modules/unistr/u8-cpy-alloc-tests: New file.
23181         * tests/unistr/test-u8-cpy-alloc.c: New file.
23182         * tests/unistr/test-cpy-alloc.h: New file.
23183
23184         Tests for module 'unistr/u32-mbsnlen'.
23185         * modules/unistr/u32-mbsnlen-tests: New file.
23186         * tests/unistr/test-u32-mbsnlen.c: New file.
23187
23188         Tests for module 'unistr/u16-mbsnlen'.
23189         * modules/unistr/u16-mbsnlen-tests: New file.
23190         * tests/unistr/test-u16-mbsnlen.c: New file.
23191
23192         Tests for module 'unistr/u8-mbsnlen'.
23193         * modules/unistr/u8-mbsnlen-tests: New file.
23194         * tests/unistr/test-u8-mbsnlen.c: New file.
23195
23196         Tests for module 'unistr/u32-chr'.
23197         * modules/unistr/u32-chr-tests: New file.
23198         * tests/unistr/test-u32-chr.c: New file.
23199
23200         Tests for module 'unistr/u16-chr'.
23201         * modules/unistr/u16-chr-tests: New file.
23202         * tests/unistr/test-u16-chr.c: New file.
23203
23204         Tests for module 'unistr/u8-chr'.
23205         * modules/unistr/u8-chr-tests: New file.
23206         * tests/unistr/test-u8-chr.c: New file.
23207         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
23208
23209         Tests for module 'unistr/u32-cmp2'.
23210         * modules/unistr/u32-cmp2-tests: New file.
23211         * tests/unistr/test-u32-cmp2.c: New file.
23212
23213         Tests for module 'unistr/u16-cmp2'.
23214         * modules/unistr/u16-cmp2-tests: New file.
23215         * tests/unistr/test-u16-cmp2.c: New file.
23216
23217         Tests for module 'unistr/u8-cmp2'.
23218         * modules/unistr/u8-cmp2-tests: New file.
23219         * tests/unistr/test-u8-cmp2.c: New file.
23220         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
23221
23222         Tests for module 'unistr/u32-cmp'.
23223         * modules/unistr/u32-cmp-tests: New file.
23224         * tests/unistr/test-u32-cmp.c: New file.
23225
23226         Tests for module 'unistr/u16-cmp'.
23227         * modules/unistr/u16-cmp-tests: New file.
23228         * tests/unistr/test-u16-cmp.c: New file.
23229
23230         Tests for module 'unistr/u8-cmp'.
23231         * modules/unistr/u8-cmp-tests: New file.
23232         * tests/unistr/test-u8-cmp.c: New file.
23233         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
23234
23235         Tests for module 'unistr/u32-set'.
23236         * modules/unistr/u32-set-tests: New file.
23237         * tests/unistr/test-u32-set.c: New file.
23238
23239         Tests for module 'unistr/u16-set'.
23240         * modules/unistr/u16-set-tests: New file.
23241         * tests/unistr/test-u16-set.c: New file.
23242
23243         Tests for module 'unistr/u8-set'.
23244         * modules/unistr/u8-set-tests: New file.
23245         * tests/unistr/test-u8-set.c: New file.
23246         * tests/unistr/test-set.h: New file.
23247
23248         Tests for module 'unistr/u32-move'.
23249         * modules/unistr/u32-move-tests: New file.
23250         * tests/unistr/test-u32-move.c: New file.
23251
23252         Tests for module 'unistr/u16-move'.
23253         * modules/unistr/u16-move-tests: New file.
23254         * tests/unistr/test-u16-move.c: New file.
23255
23256         Tests for module 'unistr/u8-move'.
23257         * modules/unistr/u8-move-tests: New file.
23258         * tests/unistr/test-u8-move.c: New file.
23259         * tests/unistr/test-move.h: New file.
23260
23261         Tests for module 'unistr/u32-cpy'.
23262         * modules/unistr/u32-cpy-tests: New file.
23263         * tests/unistr/test-u32-cpy.c: New file.
23264
23265         Tests for module 'unistr/u16-cpy'.
23266         * modules/unistr/u16-cpy-tests: New file.
23267         * tests/unistr/test-u16-cpy.c: New file.
23268
23269         Tests for module 'unistr/u8-cpy'.
23270         * modules/unistr/u8-cpy-tests: New file.
23271         * tests/unistr/test-u8-cpy.c: New file.
23272         * tests/unistr/test-cpy.h: New file.
23273
23274 2010-01-09  Bruno Haible  <bruno@clisp.org>
23275
23276         Tests for module 'unistr/u32-uctomb'.
23277         * modules/unistr/u32-uctomb-tests: New file.
23278         * tests/unistr/test-u32-uctomb.c: New file.
23279
23280         Tests for module 'unistr/u16-uctomb'.
23281         * modules/unistr/u16-uctomb-tests: New file.
23282         * tests/unistr/test-u16-uctomb.c: New file.
23283
23284         Tests for module 'unistr/u8-uctomb'.
23285         * modules/unistr/u8-uctomb-tests: New file.
23286         * tests/unistr/test-u8-uctomb.c: New file.
23287
23288         Tests for module 'unistr/u32-mbtoucr'.
23289         * modules/unistr/u32-mbtoucr-tests: New file.
23290         * tests/unistr/test-u32-mbtoucr.c: New file.
23291
23292         Tests for module 'unistr/u16-mbtoucr'.
23293         * modules/unistr/u16-mbtoucr-tests: New file.
23294         * tests/unistr/test-u16-mbtoucr.c: New file.
23295
23296         Tests for module 'unistr/u8-mbtoucr'.
23297         * modules/unistr/u8-mbtoucr-tests: New file.
23298         * tests/unistr/test-u8-mbtoucr.c: New file.
23299
23300         Tests for module 'unistr/u32-mbtouc'.
23301         * modules/unistr/u32-mbtouc-tests: New file.
23302         * tests/unistr/test-u32-mbtouc.c: New file.
23303
23304         Tests for module 'unistr/u16-mbtouc'.
23305         * modules/unistr/u16-mbtouc-tests: New file.
23306         * tests/unistr/test-u16-mbtouc.c: New file.
23307
23308         Tests for module 'unistr/u8-mbtouc'.
23309         * modules/unistr/u8-mbtouc-tests: New file.
23310         * tests/unistr/test-u8-mbtouc.c: New file.
23311
23312         Tests for module 'unistr/u32-mbtouc-unsafe'.
23313         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
23314         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
23315         * tests/unistr/test-u32-mbtouc.h: New file.
23316
23317         Tests for module 'unistr/u16-mbtouc-unsafe'.
23318         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
23319         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
23320         * tests/unistr/test-u16-mbtouc.h: New file.
23321
23322         Tests for module 'unistr/u8-mbtouc-unsafe'.
23323         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
23324         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
23325         * tests/unistr/test-u8-mbtouc.h: New file.
23326
23327         Tests for module 'unistr/u32-mblen'.
23328         * modules/unistr/u32-mblen-tests: New file.
23329         * tests/unistr/test-u32-mblen.c: New file.
23330
23331         Tests for module 'unistr/u16-mblen'.
23332         * modules/unistr/u16-mblen-tests: New file.
23333         * tests/unistr/test-u16-mblen.c: New file.
23334
23335         Tests for module 'unistr/u8-mblen'.
23336         * modules/unistr/u8-mblen-tests: New file.
23337         * tests/unistr/test-u8-mblen.c: New file.
23338
23339         Tests for module 'unistr/u32-to-u16'.
23340         * modules/unistr/u32-to-u16-tests: New file.
23341         * tests/unistr/test-u32-to-u16.c: New file.
23342
23343         Tests for module 'unistr/u32-to-u8'.
23344         * modules/unistr/u32-to-u8-tests: New file.
23345         * tests/unistr/test-u32-to-u8.c: New file.
23346
23347         Tests for module 'unistr/u16-to-u32'.
23348         * modules/unistr/u16-to-u32-tests: New file.
23349         * tests/unistr/test-u16-to-u32.c: New file.
23350
23351         Tests for module 'unistr/u16-to-u8'.
23352         * modules/unistr/u16-to-u8-tests: New file.
23353         * tests/unistr/test-u16-to-u8.c: New file.
23354
23355         Tests for module 'unistr/u8-to-u32'.
23356         * modules/unistr/u8-to-u32-tests: New file.
23357         * tests/unistr/test-u8-to-u32.c: New file.
23358
23359         Tests for module 'unistr/u8-to-u16'.
23360         * modules/unistr/u8-to-u16-tests: New file.
23361         * tests/unistr/test-u8-to-u16.c: New file.
23362
23363         Tests for module 'unistr/u32-check'.
23364         * modules/unistr/u32-check-tests: New file.
23365         * tests/unistr/test-u32-check.c: New file.
23366
23367         Tests for module 'unistr/u16-check'.
23368         * modules/unistr/u16-check-tests: New file.
23369         * tests/unistr/test-u16-check.c: New file.
23370
23371         Tests for module 'unistr/u8-check'.
23372         * modules/unistr/u8-check-tests: New file.
23373         * tests/unistr/test-u8-check.c: New file.
23374
23375         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
23376         (category_equals): New function.
23377         (main): Add more tests.
23378         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
23379
23380         * tests/unictype/test-bidi_byname.c (main): Add more tests.
23381
23382 2010-01-10  Bruno Haible  <bruno@clisp.org>
23383
23384         unistr/u*-strcoll: Try harder to distinguish different strings.
23385         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
23386         compare s1 and s2 to see if they are different.
23387
23388 2010-01-10  Bruno Haible  <bruno@clisp.org>
23389
23390         unistr/u*-stpncpy: Fix the return value.
23391         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
23392         description of the return value consistent with stpncpy in glibc.
23393         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
23394         written non-NUL unit.
23395
23396 2010-01-10  Bruno Haible  <bruno@clisp.org>
23397
23398         unistr/u*-next: Add missing dependencies.
23399         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
23400         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
23401         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
23402
23403 2010-01-10  Bruno Haible  <bruno@clisp.org>
23404
23405         unistr/u8-mbsnlen: Fix return value for incomplete character.
23406         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
23407         u8_mblen.
23408         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
23409         Remove unistr/u8-mblen.
23410         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
23411         u16_mblen.
23412         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
23413         Remove unistr/u16-mblen.
23414
23415 2010-01-10  Bruno Haible  <bruno@clisp.org>
23416
23417         wchar: Fix compilation error when <wchar.h> is used from coreutils.
23418         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
23419         Reported by Brian Gough <bjg@gnu.org> and
23420         Chris Clayton <chris2553@googlemail.com> via
23421         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
23422
23423 2010-01-09  Bruno Haible  <bruno@clisp.org>
23424
23425         unistr/u16-to-u32: Reject invalid input.
23426         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
23427         u16_mbtouc.
23428         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
23429         Remove unistr/u16-mbtouc.
23430
23431         unistr/u16-to-u8: Reject invalid input.
23432         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
23433         u16_mbtouc.
23434         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
23435         Remove unistr/u16-mbtouc.
23436
23437         unistr/u8-to-u32: Reject invalid input.
23438         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
23439         u8_mbtouc.
23440         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
23441         Remove unistr/u8-mbtouc.
23442
23443         unistr/u8-to-u16: Reject invalid input.
23444         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
23445         u8_mbtouc.
23446         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
23447         Remove unistr/u8-mbtouc.
23448
23449 2010-01-09  Bruno Haible  <bruno@clisp.org>
23450
23451         Tests for module 'getlogin'.
23452         * modules/getlogin-tests: New file.
23453         * tests/test-getlogin.c: New file.
23454
23455         New module 'getlogin'.
23456         * lib/unistd.in.h (getlogin): New declaration.
23457         * lib/getlogin.c: New file.
23458         * m4/getlogin.m4: New file.
23459         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
23460         HAVE_GETLOGIN.
23461         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
23462         HAVE_GETLOGIN.
23463         * modules/getlogin: New file.
23464         * doc/posix-functions/getlogin.texi: Mention the new module.
23465         Reported by John W. Eaton <jwe@gnu.org>.
23466
23467 2010-01-09  Bruno Haible  <bruno@clisp.org>
23468
23469         getlogin_r: Support for native Windows.
23470         * lib/getlogin_r.c: Include <windows.h>
23471         (getlogin_r): Implement for native Windows.
23472         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
23473         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
23474         via John W. Eaton <jwe@gnu.org>.
23475
23476 2010-01-09  Bruno Haible  <bruno@clisp.org>
23477
23478         getlogin_r: Small fixes.
23479         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
23480         succeeds.
23481         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
23482         before testing whether getlogin_r is declared. No need to set
23483         HAVE_DECL_GETLOGIN_R to 1.
23484         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
23485
23486 2010-01-09  Bruno Haible  <bruno@clisp.org>
23487
23488         * lib/unistd.in.h (getlogin_r): Add comment.
23489
23490 2010-01-09  Bruno Haible  <bruno@clisp.org>
23491
23492         Tests for module 'getlogin_r'.
23493         * modules/getlogin_r-tests: New file.
23494         * tests/test-getlogin_r.c: New file.
23495
23496 2010-01-09  Jim Meyering  <meyering@redhat.com>
23497
23498         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
23499         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
23500         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
23501
23502 2010-01-08  Simon Josefsson  <simon@josefsson.org>
23503
23504         * lib/dup2.c (rpl_dup2): Improve comment.
23505
23506 2010-01-08  Eric Blake  <ebb9@byu.net>
23507
23508         maint.mk: allow packages to add makefile @@ exceptions
23509         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
23510         (sc_makefile_check): Rename...
23511         (sc_makefile_at_at_check): ...to this, and use hook.
23512
23513         dup2: work around mingw bug
23514         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
23515         Reported by Simon Josefsson.
23516
23517 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
23518
23519         glob: Fix C++ compilation.
23520         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
23521         C++.
23522
23523 2010-01-07  Bruno Haible  <bruno@clisp.org>
23524
23525         Fix indentation of wctype.in.h, broken since 2007-01-06.
23526         * lib/wctype.in.h: Fix indentation of preprocessor directives.
23527
23528 2010-01-07  Bruno Haible  <bruno@clisp.org>
23529
23530         mbslen: Avoid collision with system function.
23531         * lib/string.in.h [MirBSD]: Include <wchar.h>.
23532         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
23533         * m4/mbslen.m4: New file.
23534         * modules/mbslen (Files): Add it.
23535         (configure.ac): Invoke gl_MBSLEN.
23536         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
23537         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
23538         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
23539         via Ian Beckwith <ianb@erislabs.net>.
23540
23541 2010-01-07  Bruno Haible  <bruno@clisp.org>
23542
23543         dirent: Document the last fix.
23544         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
23545
23546 2010-01-07  Bruno Haible  <bruno@clisp.org>
23547
23548         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
23549         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
23550         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
23551         va_list are defined.
23552         * doc/posix-headers/stdio.texi: Document the bug of missing types.
23553         Reported by Eric Blake.
23554
23555 2010-01-07  Bruno Haible  <bruno@clisp.org>
23556
23557         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
23558         * modules/xlist (Depends-on): Add 'list',
23559         * modules/xoset (Depends-on): Add 'oset'.
23560         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23561
23562 2010-01-07  Bruno Haible  <bruno@clisp.org>
23563
23564         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
23565         * doc/posix-functions/strncasecmp.texi: Likewise.
23566
23567 2010-01-07  Bruno Haible  <bruno@clisp.org>
23568
23569         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
23570
23571 2010-01-07  John W. Eaton  <jwe@octave.org>
23572
23573         wctype: allow C++ use
23574         * lib/wctype.in.h: Add extern "C" block for C++.
23575
23576 2010-01-06  Eric Blake  <ebb9@byu.net>
23577
23578         maint.mk: detect incorrect GFDL usage
23579         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
23580
23581 2010-01-06  Jim Meyering  <meyering@redhat.com>
23582         and Eric Blake  <ebb9@byu.net>
23583
23584         maint.mk: ignore multi-line copyright in NEWS
23585         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
23586
23587 2010-01-06  Eric Blake  <ebb9@byu.net>
23588
23589         select: add missing dependency
23590         * modules/select-tests (Depends-on): Move sockets dependency...
23591         * modules/select (Depends-on): ...here.
23592         Reported by Ian Beckwith.
23593
23594         doc: regenerate INSTALL
23595         * doc/INSTALL: Reflect recent autoconf update.
23596         * doc/INSTALL.ISO: Likewise.
23597         * doc/INSTALL.UTF-8: Likewise.
23598
23599         pread: fix compilation on glibc
23600         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
23601         Reported by Ralf Wildenhues.
23602
23603         dirent: fix test failure
23604         * lib/dirent.in.h (includes): Guarantee ino_t.
23605         Reported by Ralf Wildenhues.
23606
23607 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
23608
23609         linkat, renameat: avoid bad free
23610         * lib/at-func2.c (at_func2): Fix typo.
23611         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
23612
23613 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23614
23615         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
23616         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
23617         to avoid failure of symlink test later.
23618
23619 2010-01-06  Eric Blake  <ebb9@byu.net>
23620
23621         stdio, unistd: guarantee ssize_t
23622         * lib/unistd.in.h (includes): Ensure that types required by POSIX
23623         2008 are exposed when needed.
23624         * lib/stdio.in.h (includes): Likewise.
23625         Reported by Ralf Wildenhues.
23626
23627 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
23628
23629         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
23630         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
23631         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
23632
23633 2010-01-06  Jim Meyering  <meyering@redhat.com>
23634
23635         readtokens: this module *does* require xalloc.h
23636         It uses only functions that were omitted by the old syntax-check rule.
23637         * lib/readtokens.c: Include "xalloc.h" once again.
23638         * modules/readtokens (Depends-on): Add xalloc.
23639         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
23640
23641 2010-01-05  Eric Blake  <ebb9@byu.net>
23642
23643         maint: support 'make announcement' from a VPATH build
23644         * top/maint.mk (announcement): Look for correct NEWS file.
23645
23646 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
23647
23648         utimens (fdutimens): ignore a negative FD, per contract
23649         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
23650         when we have a valid file descriptor.  Otherwise, using a brand
23651         new glibc (with just-patched futimens that now fails with EBADF)
23652         would cause this function to fail with ENOSYS.
23653         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
23654         See also http://bugzilla.redhat.com/552320.
23655
23656 2010-01-05  Eric Blake  <ebb9@byu.net>
23657
23658         strcase: document what it provides
23659         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
23660         gnulib module.
23661         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
23662         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
23663
23664 2010-01-05  Jim Meyering  <meyering@redhat.com>
23665
23666         maint: remove useless inclusions of "xalloc.h"
23667         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
23668         * lib/readtokens.c: Likewise.
23669         * lib/same.c: Likewise.
23670         * modules/getloadavg (Depends-on): Remove xalloc.
23671         * modules/readtokens: Likewise.
23672         * modules/same: Likewise.
23673
23674         maint.mk: include 4 more function names in alloca.h-checking regexp
23675         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
23676         regexp.  Before, we would give a false-positive (saying alloca.h
23677         is included unnecessarily) when the only uses involved omitted symbols.
23678
23679         xalloc.h: use consistent formatting
23680         * lib/xalloc.h: Move declarations to start in the first column.
23681
23682 2010-01-05  Eric Blake  <ebb9@byu.net>
23683
23684         mkdir: avoid xalloc
23685         * lib/mkdir.c (includes): Drop unused header.
23686         Reported by John W. Eaton.
23687
23688 2010-01-04  Jim Meyering  <meyering@redhat.com>
23689
23690         nl_langinfo: avoid configure-time syntax error
23691         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
23692         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
23693         the empty string.  Don't let that provoke a shell syntax error.
23694
23695         regcomp, regexec, fnmatch: avoid array bounds read error
23696         * lib/regcomp.c (build_equiv_class): From glibc:
23697         Use only the low 24 bits of a findidx return value as an index
23698         into the weights array.  Patch by Ulrich Drepper:
23699         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
23700         * lib/regexec.c (check_node_accept_bytes): Likewise.
23701         * lib/fnmatch_loop.c (FCT): Likewise.
23702
23703         regcomp: skip collseq lookup when there are no rules
23704         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
23705         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
23706
23707         regcomp: recognize ill-formed { } expressions
23708         * lib/regcomp.c (parse_dup_op): From glibc:
23709         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
23710
23711         regcomp: fix typo in comment
23712         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
23713         s/satisfy/satisfies/.
23714
23715         regcomp: sync from glibc: remove dead store
23716         * lib/regcomp.c (duplicate_node_closure): Remove useless
23717         search_duplicated_node call and dead store.
23718
23719         regcomp: sync from glibc; always use nl_langinfo
23720         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
23721         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
23722         * modules/regex (Depends-on): Add nl_langinfo.
23723
23724 2010-01-04  Eric Blake  <ebb9@byu.net>
23725
23726         fdopendir: fix configure test
23727         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
23728
23729 2010-01-01  Bruno Haible  <bruno@clisp.org>
23730
23731         wchar: Remove unused configure check.
23732         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
23733
23734 2010-01-01  Eric Blake  <ebb9@byu.net>
23735
23736         headers: make check of system header explicit
23737         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
23738         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
23739         ourselves.
23740         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
23741         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23742         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
23743         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
23744         internals.
23745         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
23746         missing.
23747         Suggested by Bruno Haible.
23748
23749 2010-01-01  Jim Meyering  <meyering@redhat.com>
23750
23751         ChangeLog: tweak to eliminate unnecessary copyright line
23752         * ChangeLog: Remove a copyright line that was mistakenly updated
23753         by today's update-copyright run.  Reported by Eric Blake.
23754
23755         test-update-copyright: don't let envvar setting cause test failure
23756         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
23757
23758 2010-01-01  Bruno Haible  <bruno@clisp.org>
23759
23760         localename: Avoid gcc warning.
23761         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
23762         function if it is not used.
23763
23764 2010-01-01  Jim Meyering  <meyering@redhat.com>
23765
23766         update nearly all FSF copyright year lists to include 2010
23767         Use the same procedure as for 2009, outlined in
23768         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
23769
23770         version-etc: set COPYRIGHT_YEAR to 2010
23771         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
23772
23773 2009-12-31  Eric Blake  <ebb9@byu.net>
23774
23775         doc: correct availability of cygwin 1.5.x getopt
23776         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
23777         variables.
23778         * doc/posix-functions/opterr.texi (opterr): Likewise.
23779         * doc/posix-functions/optind.texi (optind): Likewise.
23780         * doc/posix-functions/optopt.texi (optopt): Likewise.
23781         * doc/posix-functions/tzname.texi (tzname): Likewise.
23782
23783         openat: update maintainer
23784         * modules/openat (Maintainer): Add myself.
23785
23786         utimens: avoid shadowing warning
23787         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
23788         buffers into one, to avoid shadowing, as well as avoiding a
23789         redundant stat.
23790         Reported by Jim Meyering.
23791
23792         test-dup2: avoid compiler warning
23793         * tests/test-dup2.c (is_inheritable): Only define if used.
23794
23795 2010-01-01  Bruno Haible  <bruno@clisp.org>
23796
23797         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
23798         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
23799         defined, use wctomb instead of wcrtomb.
23800
23801 2010-01-01  Bruno Haible  <bruno@clisp.org>
23802
23803         iconv: Reject native Solaris iconv.
23804         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
23805         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
23806
23807 2009-12-31  Bruno Haible  <bruno@clisp.org>
23808
23809         * tests/test-signal.c (main): Remove test of 'SIG'.
23810
23811 2009-12-31  Bruno Haible  <bruno@clisp.org>
23812
23813         spawn: Fix incomplete fix.
23814         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
23815         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
23816         warnings for GNULIB_POSIXCHECK again.
23817         Reported by Eric Blake.
23818
23819 2009-12-31  Bruno Haible  <bruno@clisp.org>
23820
23821         Avoid namespace pollution on glibc systems.
23822         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
23823         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
23824         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
23825         glibc systems.
23826
23827 2009-12-31  Bruno Haible  <bruno@clisp.org>
23828
23829         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
23830         (gl_REPLACE_WCHAR_H): Turn into a no-op.
23831         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
23832         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
23833         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
23834         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
23835         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
23836
23837 2009-12-31  Bruno Haible  <bruno@clisp.org>
23838
23839         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
23840         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
23841         afterwards.
23842
23843 2009-12-31  Bruno Haible  <bruno@clisp.org>
23844
23845         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
23846         SYS_UTSNAME_H.
23847
23848 2009-12-31  Bruno Haible  <bruno@clisp.org>
23849
23850         spawn: Fix misapplied patch.
23851         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
23852         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
23853         warnings for GNULIB_POSIXCHECK.
23854
23855 2009-12-31  Bruno Haible  <bruno@clisp.org>
23856
23857         times: Update after sys_times changed.
23858         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
23859         * modules/times (Files): Add it.
23860         (configure.ac): Invoke gl_FUNC_TIMES.
23861
23862 2009-12-31  Bruno Haible  <bruno@clisp.org>
23863
23864         Use AC_C_INLINE where necessary.
23865         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
23866         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
23867         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
23868         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
23869         * m4/mbfile.m4 (gl_MBFILE): Likewise.
23870         * m4/mbiter.m4 (gl_MBITER): Likewise.
23871         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
23872         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23873         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
23874         * modules/u64 (configure.ac): Likewise.
23875
23876 2009-12-31  Bruno Haible  <bruno@clisp.org>
23877
23878         Use AC_C_INLINE instead of module 'inline' where possible.
23879         * modules/inline (Description): Clarify purpose.
23880         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
23881         * modules/count-one-bits (Depends-on): Remove inline.
23882         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
23883         * modules/openat (Depends-on): Remove inline.
23884         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
23885         instead of depending on module 'inline'.
23886         * modules/filevercmp (Depends-on, configure.ac): Likewise.
23887         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
23888         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
23889         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
23890         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
23891         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
23892         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
23893         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
23894         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
23895         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
23896         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
23897         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
23898         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
23899         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
23900         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
23901         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
23902         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
23903         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
23904         Likewise.
23905         * modules/unictype/property-ascii-hex-digit (Depends-on,
23906         configure.ac): Likewise.
23907         * modules/unictype/property-bidi-arabic-digit (Depends-on,
23908         configure.ac): Likewise.
23909         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
23910         configure.ac): Likewise.
23911         * modules/unictype/property-bidi-block-separator (Depends-on,
23912         configure.ac): Likewise.
23913         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
23914         configure.ac): Likewise.
23915         * modules/unictype/property-bidi-common-separator (Depends-on,
23916         configure.ac): Likewise.
23917         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
23918         Likewise.
23919         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
23920         configure.ac): Likewise.
23921         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
23922         configure.ac): Likewise.
23923         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
23924         configure.ac): Likewise.
23925         * modules/unictype/property-bidi-european-digit (Depends-on,
23926         configure.ac): Likewise.
23927         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
23928         configure.ac): Likewise.
23929         * modules/unictype/property-bidi-left-to-right (Depends-on,
23930         configure.ac): Likewise.
23931         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
23932         configure.ac): Likewise.
23933         * modules/unictype/property-bidi-other-neutral (Depends-on,
23934         configure.ac): Likewise.
23935         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
23936         Likewise.
23937         * modules/unictype/property-bidi-segment-separator (Depends-on,
23938         configure.ac): Likewise.
23939         * modules/unictype/property-bidi-whitespace (Depends-on,
23940         configure.ac): Likewise.
23941         * modules/unictype/property-combining (Depends-on, configure.ac):
23942         Likewise.
23943         * modules/unictype/property-composite (Depends-on, configure.ac):
23944         Likewise.
23945         * modules/unictype/property-currency-symbol (Depends-on,
23946         configure.ac): Likewise.
23947         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
23948         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
23949         Likewise.
23950         * modules/unictype/property-default-ignorable-code-point (Depends-on,
23951         configure.ac): Likewise.
23952         * modules/unictype/property-deprecated (Depends-on, configure.ac):
23953         Likewise.
23954         * modules/unictype/property-diacritic (Depends-on, configure.ac):
23955         Likewise.
23956         * modules/unictype/property-extender (Depends-on, configure.ac):
23957         Likewise.
23958         * modules/unictype/property-format-control (Depends-on, configure.ac):
23959         Likewise.
23960         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
23961         Likewise.
23962         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
23963         Likewise.
23964         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
23965         Likewise.
23966         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
23967         Likewise.
23968         * modules/unictype/property-hyphen (Depends-on, configure.ac):
23969         Likewise.
23970         * modules/unictype/property-id-continue (Depends-on, configure.ac):
23971         Likewise.
23972         * modules/unictype/property-id-start (Depends-on, configure.ac):
23973         Likewise.
23974         * modules/unictype/property-ideographic (Depends-on, configure.ac):
23975         Likewise.
23976         * modules/unictype/property-ids-binary-operator (Depends-on,
23977         configure.ac): Likewise.
23978         * modules/unictype/property-ids-trinary-operator (Depends-on,
23979         configure.ac): Likewise.
23980         * modules/unictype/property-ignorable-control (Depends-on,
23981         configure.ac): Likewise.
23982         * modules/unictype/property-iso-control (Depends-on, configure.ac):
23983         Likewise.
23984         * modules/unictype/property-join-control (Depends-on, configure.ac):
23985         Likewise.
23986         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
23987         Likewise.
23988         * modules/unictype/property-line-separator (Depends-on, configure.ac):
23989         Likewise.
23990         * modules/unictype/property-logical-order-exception (Depends-on,
23991         configure.ac): Likewise.
23992         * modules/unictype/property-lowercase (Depends-on, configure.ac):
23993         Likewise.
23994         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
23995         * modules/unictype/property-non-break (Depends-on, configure.ac):
23996         Likewise.
23997         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
23998         Likewise.
23999         * modules/unictype/property-numeric (Depends-on, configure.ac):
24000         Likewise.
24001         * modules/unictype/property-other-alphabetic (Depends-on,
24002         configure.ac): Likewise.
24003         * modules/unictype/property-other-default-ignorable-code-point
24004         (Depends-on, configure.ac): Likewise.
24005         * modules/unictype/property-other-grapheme-extend (Depends-on,
24006         configure.ac): Likewise.
24007         * modules/unictype/property-other-id-continue (Depends-on,
24008         configure.ac): Likewise.
24009         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
24010         Likewise.
24011         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
24012         Likewise.
24013         * modules/unictype/property-other-math (Depends-on, configure.ac):
24014         Likewise.
24015         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
24016         Likewise.
24017         * modules/unictype/property-paired-punctuation (Depends-on,
24018         configure.ac): Likewise.
24019         * modules/unictype/property-paragraph-separator (Depends-on,
24020         configure.ac): Likewise.
24021         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
24022         Likewise.
24023         * modules/unictype/property-pattern-white-space (Depends-on,
24024         configure.ac): Likewise.
24025         * modules/unictype/property-private-use (Depends-on, configure.ac):
24026         Likewise.
24027         * modules/unictype/property-punctuation (Depends-on, configure.ac):
24028         Likewise.
24029         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
24030         Likewise.
24031         * modules/unictype/property-radical (Depends-on, configure.ac):
24032         Likewise.
24033         * modules/unictype/property-sentence-terminal (Depends-on,
24034         configure.ac): Likewise.
24035         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
24036         Likewise.
24037         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
24038         * modules/unictype/property-terminal-punctuation (Depends-on,
24039         configure.ac): Likewise.
24040         * modules/unictype/property-titlecase (Depends-on, configure.ac):
24041         Likewise.
24042         * modules/unictype/property-unassigned-code-value (Depends-on,
24043         configure.ac): Likewise.
24044         * modules/unictype/property-unified-ideograph (Depends-on,
24045         configure.ac): Likewise.
24046         * modules/unictype/property-uppercase (Depends-on, configure.ac):
24047         Likewise.
24048         * modules/unictype/property-variation-selector (Depends-on,
24049         configure.ac): Likewise.
24050         * modules/unictype/property-white-space (Depends-on, configure.ac):
24051         Likewise.
24052         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
24053         Likewise.
24054         * modules/unictype/property-xid-start (Depends-on, configure.ac):
24055         Likewise.
24056         * modules/unictype/property-zero-width (Depends-on, configure.ac):
24057         Likewise.
24058         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
24059         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
24060         Likewise.
24061
24062 2009-12-31  Bruno Haible  <bruno@clisp.org>
24063
24064         Remove unnecessary AC_C_INLINE invocation.
24065         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
24066         since 2009-08-21.
24067
24068 2009-12-31  Jim Meyering  <meyering@redhat.com>
24069
24070         maint.mk: don't require explicit gpg_key_ID in cfg.mk
24071         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
24072         With this change, we can all remove the gpg_key_ID = ... definition
24073         from our respective cfg.mk files.
24074
24075         maint.mk: create announcement template in ~/, not in /tmp
24076         * top/maint.mk (emit_upload_commands): Adjust.
24077         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
24078         Remove temporary file, .ci-msg.
24079
24080 2009-12-31  Eric Blake  <ebb9@byu.net>
24081
24082         link-warning: always build headers with link warnings
24083         * modules/arpa_inet (Makefile.am): Always build replacement
24084         header.
24085         * modules/ctype (Makefile.am): Likewise.
24086         * modules/dirent (Makefile.am): Likewise.
24087         * modules/inttypes (Makefile.am): Likewise.
24088         * modules/langinfo (Makefile.am): Likewise.
24089         * modules/locale (Makefile.am): Likewise.
24090         * modules/spawn (Makefile.am): Likewise.
24091         * modules/sys_file (Makefile.am): Likewise.
24092         * modules/sys_ioctl (Makefile.am): Likewise.
24093         * modules/sys_select (Makefile.am): Likewise.
24094         * modules/sys_socket (Makefile.am): Likewise.
24095         * modules/sys_times (Makefile.am): Likewise.
24096         * modules/sys_utsname (Makefile.am): Likewise.
24097         * modules/sys_wait (Makefile.am): Likewise.
24098         * modules/wchar (Makefile.am): Likewise.
24099         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
24100         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
24101         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
24102         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
24103         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
24104         Likewise.
24105         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
24106         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
24107         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
24108         Likewise.
24109         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
24110         Likewise.
24111         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
24112         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
24113         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
24114         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24115         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24116         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
24117         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
24118         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
24119         (gl_WCHAR_H_DEFAULTS): Likewise.
24120
24121 2009-12-31  Eric Blake  <ebb9@byu.net>
24122
24123         signal, spawn: use link warnings
24124         * lib/signal.in.h (sigset_t): Make unconditional.
24125         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
24126         (sigpending, sigprocmask, sigaction): Add link warnings.
24127         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
24128         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
24129         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
24130         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
24131         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
24132         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
24133         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
24134         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
24135         (posix_spawn_file_actions_destroy)
24136         (posix_spawn_file_actions_addopen)
24137         (posix_spawn_file_actions_addclose)
24138         (posix_spawn_file_actions_adddup2): Likewise.
24139         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
24140         * tests/test-signal.c (main): Enhance test.
24141
24142         spawn: improve wrapper support
24143         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
24144         (gl_SPAWN_H_DEFAULTS): New defaults.
24145         * modules/spawn (Makefile.am): Substitute them.
24146         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
24147         Only declare if missing or broken.
24148
24149         sys_times, sys_utsname: use include_next
24150         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
24151         header.
24152         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
24153         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
24154         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
24155         * modules/sys_times (Depends-on): Add include_next.
24156         (Makefile.am): Substitute additional values.
24157         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
24158         * lib/sys_times.in.h (includes): Include native header, if
24159         available.
24160         * lib/sys_utsname.in.h (includes): Likewise.
24161         * tests/test-sys_times.c (main): Enhance test.
24162
24163         fdutimensat: revert prior patch
24164         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
24165         utimens.h.
24166         Reported by Bruno Haible.
24167
24168 2009-12-30  Eric Blake  <ebb9@byu.net>
24169
24170         sys_wait: drop link-warning dependency
24171         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
24172         link-warning efforts.
24173         * lib/sys_wait.in.h: Likewise.
24174
24175         fdutimensat: remove bogus dependency
24176         * modules/fdutimensat (Depends-on): Drop inline.
24177
24178         unistd: fix typo
24179         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
24180
24181 2009-12-30  Bruno Haible  <bruno@clisp.org>
24182
24183         Fix compilation error with Solaris cc.
24184         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
24185         * lib/unicase/u16-is-invariant.c: Likewise.
24186         * lib/unicase/u32-is-invariant.c: Likewise.
24187         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
24188
24189 2009-12-30  Bruno Haible  <bruno@clisp.org>
24190
24191         Fix test crash.
24192         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
24193         locales.
24194         Reported by Simon Josefsson <simon@josefsson.org>.
24195
24196 2009-12-30  Bruno Haible  <bruno@clisp.org>
24197
24198         Fix compilation error on most platforms.
24199         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
24200         Reported by Simon Josefsson <simon@josefsson.org>
24201         and Nelson H. F. Beebe <beebe@math.utah.edu>.
24202
24203 2009-12-30  Eric Blake  <ebb9@byu.net>
24204
24205         futimens, utimensat: work around ntfs-3g bug
24206         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
24207         a ctime bug is present, and expand workaround to cover ntfs-3g.
24208         * lib/utimens.c (fdutimens, lutimens): Likewise.
24209         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
24210         (validate_timespec): Adjust return value.
24211         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
24212         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
24213         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
24214
24215 2009-12-29  Eric Blake  <ebb9@byu.net>
24216
24217         link-warning: make usage consistent
24218         * modules/ctype (Depends-on): Add link-warning.
24219         (Makefile.am): Update rules accordingly.
24220         * modules/langinfo (Depends-on, Makefile.am): Likewise.
24221         * modules/locale (Depends-on, Makefile.am): Likewise.
24222         * modules/sys_file (Makefile.am): Likewise.
24223         * modules/getopt-posix (Makefile.am): Delete unused link warning
24224         efforts.
24225         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
24226         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
24227         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
24228         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
24229
24230         stdio: remove unused variables
24231         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
24232         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
24233         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
24234
24235         tests: test more substitute headers
24236         * modules/ctype-tests: New file.
24237         * modules/dirent-tests: Likewise.
24238         * modules/spawn-tests: Likewise.
24239         * modules/sys_file-tests: Likewise.
24240         * modules/sys_ioctl-tests: Likewise.
24241         * modules/sys_wait-tests: Likewise.
24242         * tests/test-ctype.c: Likewise.
24243         * tests/test-dirent.c: Likewise.
24244         * tests/test-spawn.c: Likewise.
24245         * tests/test-sys_file.c: Likewise.
24246         * tests/test-sys_ioctl.c: Likewise.
24247         * tests/test-sys_wait.c: Likewise.
24248         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
24249         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
24250         whether or not flock is in use.
24251
24252         tests: remove License section from module
24253         * modules/arpa_inet-tests: Remove unneeded section.
24254         * modules/byteswap-tests: Likewise.
24255         * modules/ceilf-tests: Likewise.
24256         * modules/ceill-tests: Likewise.
24257         * modules/crypto/des-tests: Likewise.
24258         * modules/crypto/gc-arcfour-tests: Likewise.
24259         * modules/crypto/gc-arctwo-tests: Likewise.
24260         * modules/crypto/gc-des-tests: Likewise.
24261         * modules/crypto/gc-hmac-md5-tests: Likewise.
24262         * modules/crypto/gc-hmac-sha1-tests: Likewise.
24263         * modules/crypto/gc-md2-tests: Likewise.
24264         * modules/crypto/gc-md4-tests: Likewise.
24265         * modules/crypto/gc-md5-tests: Likewise.
24266         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
24267         * modules/crypto/gc-rijndael-tests: Likewise.
24268         * modules/crypto/gc-sha1-tests: Likewise.
24269         * modules/crypto/gc-tests: Likewise.
24270         * modules/crypto/md2-tests: Likewise.
24271         * modules/crypto/md4-tests: Likewise.
24272         * modules/fcntl-h-tests: Likewise.
24273         * modules/floorf-tests: Likewise.
24274         * modules/floorl-tests: Likewise.
24275         * modules/frexp-nolibm-tests: Likewise.
24276         * modules/frexp-tests: Likewise.
24277         * modules/frexpl-nolibm-tests: Likewise.
24278         * modules/frexpl-tests: Likewise.
24279         * modules/getaddrinfo-tests: Likewise.
24280         * modules/inttypes-tests: Likewise.
24281         * modules/isfinite-tests: Likewise.
24282         * modules/isinf-tests: Likewise.
24283         * modules/ldexpl-tests: Likewise.
24284         * modules/locale-tests: Likewise.
24285         * modules/math-tests: Likewise.
24286         * modules/netdb-tests: Likewise.
24287         * modules/netinet_in-tests: Likewise.
24288         * modules/printf-frexp-tests: Likewise.
24289         * modules/printf-frexpl-tests: Likewise.
24290         * modules/priv-set-tests: Likewise.
24291         * modules/random_r-tests: Likewise.
24292         * modules/round-tests: Likewise.
24293         * modules/roundf-tests: Likewise.
24294         * modules/roundl-tests: Likewise.
24295         * modules/search-tests: Likewise.
24296         * modules/select-tests: Likewise.
24297         * modules/signal-tests: Likewise.
24298         * modules/stdbool-tests: Likewise.
24299         * modules/stddef-tests: Likewise.
24300         * modules/stdint-tests: Likewise.
24301         * modules/stdio-tests: Likewise.
24302         * modules/stdlib-tests: Likewise.
24303         * modules/string-tests: Likewise.
24304         * modules/strings-tests: Likewise.
24305         * modules/sys_select-tests: Likewise.
24306         * modules/sys_socket-tests: Likewise.
24307         * modules/sys_stat-tests: Likewise.
24308         * modules/sys_time-tests: Likewise.
24309         * modules/sys_utsname-tests: Likewise.
24310         * modules/sysexits-tests: Likewise.
24311         * modules/time-tests: Likewise.
24312         * modules/trunc-tests: Likewise.
24313         * modules/truncf-tests: Likewise.
24314         * modules/truncl-tests: Likewise.
24315         * modules/tsearch-tests: Likewise.
24316         * modules/unistd-tests: Likewise.
24317         * modules/wchar-tests: Likewise.
24318         * modules/wctype-tests: Likewise.
24319
24320         tests: fix license on several tests
24321         * tests/test-des.c: Update to GPLv3+.
24322         * tests/test-flock.c: Likewise.
24323         * tests/test-fsync.c: Likewise.
24324         * tests/test-futimens.h: Likewise.
24325         * tests/test-gc-arcfour.c: Likewise.
24326         * tests/test-gc-arctwo.c: Likewise.
24327         * tests/test-gc-des.c: Likewise.
24328         * tests/test-gc-hmac-md5.c: Likewise.
24329         * tests/test-gc-hmac-sha1.c: Likewise.
24330         * tests/test-gc-md2.c: Likewise.
24331         * tests/test-gc-md4.c: Likewise.
24332         * tests/test-gc-md5.c: Likewise.
24333         * tests/test-gc-pbkdf2-sha1.c: Likewise.
24334         * tests/test-gc-rijndael.c: Likewise.
24335         * tests/test-gc-sha1.c: Likewise.
24336         * tests/test-gc.c: Likewise.
24337         * tests/test-getcwd.c: Likewise.
24338         * tests/test-link.c: Likewise.
24339         * tests/test-link.h: Likewise.
24340         * tests/test-lutimens.h: Likewise.
24341         * tests/test-md2.c: Likewise.
24342         * tests/test-md4.c: Likewise.
24343         * tests/test-mkdir.h: Likewise.
24344         * tests/test-rename.c: Likewise.
24345         * tests/test-rename.h: Likewise.
24346         * tests/test-safe-alloc.c: Likewise.
24347         * tests/test-utimens-common.h: Likewise.
24348         * tests/test-utimens.h: Likewise.
24349
24350         maint: sync license texts
24351         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
24352         * doc/gpl-3.0.texi: Revert copyright year update.
24353         * doc/lgpl-3.0.texi: Likewise.
24354
24355 2009-12-29  Jim Meyering  <meyering@redhat.com>
24356
24357         update nearly all FSF copyright year lists to include 2009
24358         The files named by the following are exempted:
24359             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
24360               test -f "$dst" && { echo "$dst"; continue; }
24361               test -d "$dst" || continue
24362               echo "$dst"/$(basename "$src")
24363             done > exempt
24364             git ls-files tests/unictype >> exempt
24365         In the remaining files, convert to all-interval notation if
24366         - there is already at least one year interval like 2000-2003
24367         - the file is maintained by me
24368         - the file is in lib/uni*/, where that style already prevails
24369         Otherwise, use update-copyright's default.
24370
24371 2009-12-29  Simon Josefsson  <simon@josefsson.org>
24372         and Eric Blake  <ebb9@byu.net>
24373
24374         tests: don't require debug system() to pass
24375         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
24376         * tests/test-rmdir.h (test_rmdir_func): Likewise.
24377         * tests/test-unlink.h (test_unlink_func): Likewise.
24378         * tests/test-fstatat.c (main): ...into callers.
24379         * tests/test-lstat.c (main): Likewise.
24380         * tests/test-rmdir.c (main): Likewise.
24381         * tests/test-unlink.c (main): Likewise.
24382         * tests/test-unlinkat.c (main): Likewise.
24383         * tests/test-areadlink-with-size.c (main): Don't require a
24384         debug-only system call to pass, aiding cross-testing to mingw.
24385         * tests/test-areadlink.c (main): Likewise.
24386         * tests/test-areadlinkat-with-size.c (main): Likewise.
24387         * tests/test-areadlinkat.c (main): Likewise.
24388         * tests/test-canonicalize-lgpl.c (main): Likewise.
24389         * tests/test-canonicalize.c (main): Likewise.
24390         * tests/test-chown.c (main): Likewise.
24391         * tests/test-fchownat.c (main): Likewise.
24392         * tests/test-lchown.c (main): Likewise.
24393         * tests/test-fdutimensat.c (main): Likewise.
24394         * tests/test-futimens.c (main): Likewise.
24395         * tests/test-link.c (main): Likewise.
24396         * tests/test-linkat.c (main): Likewise.
24397         * tests/test-mkdir.c (main): Likewise.
24398         * tests/test-mkdirat.c (main): Likewise.
24399         * tests/test-mkfifo.c (main): Likewise.
24400         * tests/test-mkfifoat.c (main): Likewise.
24401         * tests/test-mknod.c (main): Likewise.
24402         * tests/test-readlink.c (main): Likewise.
24403         * tests/test-remove.c (main): Likewise.
24404         * tests/test-rename.c (main): Likewise.
24405         * tests/test-renameat.c (main): Likewise.
24406         * tests/test-symlink.c (main): Likewise.
24407         * tests/test-symlinkat.c (main): Likewise.
24408         * tests/test-utimens.c (main): Likewise.
24409         * tests/test-utimensat.c (main): Likewise.
24410
24411 2009-12-29  Simon Josefsson  <simon@josefsson.org>
24412
24413         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
24414         on $(UNUSED_PARAMETER_H) to avoid build failure.
24415
24416 2009-12-28  Jim Meyering  <meyering@redhat.com>
24417
24418         update-copyright: you may specify a max. line length other than 72
24419         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
24420
24421         maint: use consistent FSF copyright line syntax
24422         * lib/posixtm.c: Add missing comma in FSF copyright line.
24423         * lib/posixtm.h: Likewise.
24424         * lib/getugroups.c: Add missing ", Inc.".
24425
24426         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
24427         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
24428         FSF copyright line.  Remove trailing blanks.
24429
24430 2009-12-28  Eric Blake  <ebb9@byu.net>
24431
24432         test-dup2: reduce dependencies
24433         * modules/cloexec (Configure.ac): Set witness.
24434         * modules/dup2-tests (Depends-on): Drop cloexec.
24435         * tests/test-dup2.c (main): Skip portion of test if cloexec module
24436         not present.
24437         Suggested by Bruno Haible.
24438
24439 2009-12-26  Bruno Haible  <bruno@clisp.org>
24440
24441         Remove an unneeded dependency.
24442         * modules/fseterr (Depends-on): Remove dup2.
24443
24444 2009-12-26  Eric Blake  <ebb9@byu.net>
24445
24446         tests: use macros.h in more places
24447         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
24448         (ASSERT_STREAM): Provide default of stderr.
24449         * tests/test-dirent-safer.c: Include macros.h, using alternate
24450         stream for assertions.
24451         * tests/test-dup-safer.c: Likewise.
24452         * tests/test-freopen-safer.c: Likewise.
24453         * tests/test-getopt.c: Likewise.
24454         * tests/test-openat-safer.c: Likewise.
24455         * tests/test-pipe.c: Likewise.
24456         * tests/test-popen-safer.c: Likewise.
24457         * modules/dirent-safer-tests (Files): Include macros.h.
24458         * modules/unistd-safer-tests (Files): Likewise.
24459         * modules/freopen-safer-tests (Files): Likewise.
24460         * modules/getopt-posix-tests (Files): Likewise.
24461         * modules/openat-safer-tests (Files): Likewise.
24462         * modules/pipe-tests (Files): Likewise.
24463
24464 2009-12-26  Bruno Haible  <bruno@clisp.org>
24465
24466         javacomp: Portability fix.
24467         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
24468         that it also works on Solaris.
24469
24470 2009-12-26  Bruno Haible  <bruno@clisp.org>
24471
24472         localename: Fix storage allocation of gl_locale_name_thread's result.
24473         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
24474         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
24475         all platforms that have 'uselocale'.
24476         (gl_locale_name_thread_unsafe): New function, extracted from
24477         gl_locale_name_thread.
24478         (gl_locale_name_thread): Call struniq on all platforms that have
24479         'uselocale'.
24480         * tests/test-localename.c (test_locale_name_thread): Check that the
24481         resulting strings are permanently allocated.
24482         * modules/localename-tests (Depends-on): Add strdup.
24483
24484 2009-12-26  Bruno Haible  <bruno@clisp.org>
24485
24486         * tests/test-localename.c (categories): Fill in the strings.
24487
24488 2009-12-26  Jim Meyering  <meyering@redhat.com>
24489
24490         isdir: complete the removal of m4/isdir.m4
24491         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
24492
24493         isdir: clean up, since at least grep still uses it
24494         * lib/isdir.c: Include "isdir.h".
24495         (S_ISDIR): Remove now-unneeded definition.
24496         * modules/isdir (Files): Add lib/isdir.h.
24497         * lib/isdir.h: New file, with declaration.
24498         * m4/isdir.m4: Remove file -- unneeded.
24499
24500 2009-12-25  Bruno Haible  <bruno@clisp.org>
24501
24502         selinux-h: Make generated .h files standalone.
24503         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
24504         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
24505         * lib/se-selinux.in.h: Likewise.
24506         * modules/selinux-h (Depends-on): Add unused-parameter.
24507         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
24508         selinux/selinux.h and selinux/context.h.
24509         Suggested by Eric Blake.
24510
24511 2009-12-25  Bruno Haible  <bruno@clisp.org>
24512
24513         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
24514         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
24515         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
24516         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
24517         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
24518
24519 2009-12-24  Bruno Haible  <bruno@clisp.org>
24520
24521         openat: Fix warning.
24522         * lib/openat-proc.c: Include <unistd.h>.
24523
24524 2009-12-24  Bruno Haible  <bruno@clisp.org>
24525
24526         New module 'unused-parameter'.
24527         * build-aux/unused-parameter.h: New file, extracted from earlier
24528         gnulib-common.m4.
24529         * modules/unused-parameter: New file.
24530         * lib/unistr.h: Include unused-parameter.h.
24531         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
24532         _GL_UNUSED.
24533         * modules/unistr/base (Depends-on): Add unused-parameter.
24534
24535 2009-12-24  Bruno Haible  <bruno@clisp.org>
24536
24537         Add missing dependencies to 'extensions' module.
24538         * m4/extensions.m4: Add comment.
24539         * modules/accept4 (Depends-on): Add extensions.
24540         * modules/dup3 (Depends-on): Likewise.
24541         * modules/fcntl (Depends-on): Likewise.
24542         * modules/futimens (Depends-on): Likewise.
24543         * modules/mknod (Depends-on): Likewise.
24544         * modules/pipe2 (Depends-on): Likewise.
24545         * modules/stat-time (Depends-on): Likewise.
24546         * modules/strcasestr-simple (Depends-on): Likewise.
24547         * modules/strsignal (Depends-on): Likewise.
24548         * modules/utimensat (Depends-on): Likewise.
24549         * modules/localcharset (Depends-on): Likewise. Needed because of
24550         gl_FCNTL_O_FLAGS.
24551         * modules/wcrtomb (Depends-on): Likewise. Needed because of
24552         AC_TYPE_MBSTATE_T.
24553         * modules/wcsnrtombs (Depends-on): Likewise.
24554         * modules/wcsrtombs (Depends-on): Likewise.
24555
24556 2009-12-24  Bruno Haible  <bruno@clisp.org>
24557
24558         binary-io: Avoid gcc warning due to SET_BINARY.
24559         * lib/binary-io.h (SET_BINARY): Cast the result to void.
24560         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
24561
24562 2009-12-24  Bruno Haible  <bruno@clisp.org>
24563
24564         Avoid future namespace pollution on glibc systems.
24565         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
24566         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
24567         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
24568         glibc systems.
24569
24570 2009-12-24  Bruno Haible  <bruno@clisp.org>
24571
24572         Refactor common macros used in tests.
24573         * tests/macros.h: New file.
24574         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
24575         and/or <stdlib.h>, if appropriate.
24576         (ASSERT, SIZEOF): Remove macros.
24577         * tests/test-areadlink-with-size.c: Likewise.
24578         * tests/test-areadlinkat.c: Likewise.
24579         * tests/test-areadlinkat-with-size.c: Likewise.
24580         * tests/test-argmatch.c: Likewise.
24581         * tests/test-argv-iter.c: Likewise.
24582         * tests/test-array-mergesort.c: Likewise.
24583         * tests/test-array_list.c: Likewise.
24584         * tests/test-array_oset.c: Likewise.
24585         * tests/test-avltree_list.c: Likewise.
24586         * tests/test-avltree_oset.c: Likewise.
24587         * tests/test-avltreehash_list.c: Likewise.
24588         * tests/test-base64.c: Likewise.
24589         * tests/test-binary-io.c: Likewise.
24590         * tests/test-bitrotate.c: Likewise.
24591         * tests/test-btowc.c: Likewise.
24592         * tests/test-byteswap.c: Likewise.
24593         * tests/test-c-ctype.c: Likewise.
24594         * tests/test-c-stack.c: Likewise.
24595         * tests/test-c-strcasecmp.c: Likewise.
24596         * tests/test-c-strcasestr.c: Likewise.
24597         * tests/test-c-strncasecmp.c: Likewise.
24598         * tests/test-c-strstr.c: Likewise.
24599         * tests/test-canonicalize-lgpl.c: Likewise.
24600         * tests/test-canonicalize.c: Likewise.
24601         * tests/test-carray_list.c: Likewise.
24602         * tests/test-ceilf1.c: Likewise.
24603         * tests/test-ceilf2.c: Likewise.
24604         * tests/test-ceill.c: Likewise.
24605         * tests/test-chown.c: Likewise.
24606         * tests/test-cloexec.c: Likewise.
24607         * tests/test-copy-acl.c: Likewise.
24608         * tests/test-copy-file.c: Likewise.
24609         * tests/test-count-one-bits.c: Likewise.
24610         * tests/test-dprintf-posix.c: Likewise.
24611         * tests/test-dup2.c: Likewise.
24612         * tests/test-dup3.c: Likewise.
24613         * tests/test-duplocale.c: Likewise.
24614         * tests/test-fbufmode.c: Likewise.
24615         * tests/test-fchdir.c: Likewise.
24616         * tests/test-fchownat.c: Likewise.
24617         * tests/test-fcntl-safer.c: Likewise.
24618         * tests/test-fcntl.c: Likewise.
24619         * tests/test-fdopendir.c: Likewise.
24620         * tests/test-fdutimensat.c: Likewise.
24621         * tests/test-fflush2.c: Likewise.
24622         * tests/test-file-has-acl.c: Likewise.
24623         * tests/test-filevercmp.c: Likewise.
24624         * tests/test-flock.c: Likewise.
24625         * tests/test-floorf1.c: Likewise.
24626         * tests/test-floorf2.c: Likewise.
24627         * tests/test-floorl.c: Likewise.
24628         * tests/test-fnmatch.c: Likewise.
24629         * tests/test-fopen.h: Likewise.
24630         * tests/test-fpending.c: Likewise.
24631         * tests/test-fprintf-posix.c: Likewise.
24632         * tests/test-fpurge.c: Likewise.
24633         * tests/test-freadable.c: Likewise.
24634         * tests/test-freadahead.c: Likewise.
24635         * tests/test-freading.c: Likewise.
24636         * tests/test-freadptr.c: Likewise.
24637         * tests/test-freadptr2.c: Likewise.
24638         * tests/test-freadseek.c: Likewise.
24639         * tests/test-freopen.c: Likewise.
24640         * tests/test-frexp.c: Likewise.
24641         * tests/test-frexpl.c: Likewise.
24642         * tests/test-fseek.c: Likewise.
24643         * tests/test-fseeko.c: Likewise.
24644         * tests/test-fstatat.c: Likewise.
24645         * tests/test-fstrcmp.c: Likewise.
24646         * tests/test-fsync.c: Likewise.
24647         * tests/test-ftell.c: Likewise.
24648         * tests/test-ftello.c: Likewise.
24649         * tests/test-func.c: Likewise.
24650         * tests/test-futimens.c: Likewise.
24651         * tests/test-fwritable.c: Likewise.
24652         * tests/test-fwriting.c: Likewise.
24653         * tests/test-getcwd.c: Likewise.
24654         * tests/test-getdate.c: Likewise.
24655         * tests/test-getdelim.c: Likewise.
24656         * tests/test-getdtablesize.c: Likewise.
24657         * tests/test-getgroups.c: Likewise.
24658         * tests/test-getline.c: Likewise.
24659         * tests/test-getndelim2.c: Likewise.
24660         * tests/test-glob.c: Likewise.
24661         * tests/test-hash.c: Likewise.
24662         * tests/test-i-ring.c: Likewise.
24663         * tests/test-iconv-utf.c: Likewise.
24664         * tests/test-iconv.c: Likewise.
24665         * tests/test-idpriv-drop.c: Likewise.
24666         * tests/test-idpriv-droptemp.c: Likewise.
24667         * tests/test-inet_ntop.c: Likewise.
24668         * tests/test-inet_pton.c: Likewise.
24669         * tests/test-isblank.c: Likewise.
24670         * tests/test-isfinite.c: Likewise.
24671         * tests/test-isinf.c: Likewise.
24672         * tests/test-isnan.c: Likewise.
24673         * tests/test-isnand.h: Likewise.
24674         * tests/test-isnanf.h: Likewise.
24675         * tests/test-isnanl.h: Likewise.
24676         * tests/test-lchown.c: Likewise.
24677         * tests/test-ldexpl.c: Likewise.
24678         * tests/test-link.c: Likewise.
24679         * tests/test-linkat.c: Likewise.
24680         * tests/test-linked_list.c: Likewise.
24681         * tests/test-linkedhash_list.c: Likewise.
24682         * tests/test-localename.c: Likewise.
24683         * tests/test-lseek.c: Likewise.
24684         * tests/test-lstat.c: Likewise.
24685         * tests/test-mbmemcasecmp.c: Likewise.
24686         * tests/test-mbmemcasecoll.c: Likewise.
24687         * tests/test-mbrtowc.c: Likewise.
24688         * tests/test-mbscasecmp.c: Likewise.
24689         * tests/test-mbscasestr1.c: Likewise.
24690         * tests/test-mbscasestr2.c: Likewise.
24691         * tests/test-mbscasestr3.c: Likewise.
24692         * tests/test-mbscasestr4.c: Likewise.
24693         * tests/test-mbschr.c: Likewise.
24694         * tests/test-mbscspn.c: Likewise.
24695         * tests/test-mbsinit.c: Likewise.
24696         * tests/test-mbsncasecmp.c: Likewise.
24697         * tests/test-mbsnrtowcs.c: Likewise.
24698         * tests/test-mbspbrk.c: Likewise.
24699         * tests/test-mbspcasecmp.c: Likewise.
24700         * tests/test-mbsrchr.c: Likewise.
24701         * tests/test-mbsrtowcs.c: Likewise.
24702         * tests/test-mbsspn.c: Likewise.
24703         * tests/test-mbsstr1.c: Likewise.
24704         * tests/test-mbsstr2.c: Likewise.
24705         * tests/test-mbsstr3.c: Likewise.
24706         * tests/test-memchr.c: Likewise.
24707         * tests/test-memchr2.c: Likewise.
24708         * tests/test-memcmp.c: Likewise.
24709         * tests/test-memmem.c: Likewise.
24710         * tests/test-memrchr.c: Likewise.
24711         * tests/test-mkdir.c: Likewise.
24712         * tests/test-mkdirat.c: Likewise.
24713         * tests/test-mkfifo.c: Likewise.
24714         * tests/test-mkfifoat.c: Likewise.
24715         * tests/test-mknod.c: Likewise.
24716         * tests/test-nanosleep.c: Likewise.
24717         * tests/test-nl_langinfo.c: Likewise.
24718         * tests/test-obstack-printf.c: Likewise.
24719         * tests/test-open.c: Likewise.
24720         * tests/test-openat.c: Likewise.
24721         * tests/test-pipe-filter-gi1.c: Likewise.
24722         * tests/test-pipe-filter-gi2-main.c: Likewise.
24723         * tests/test-pipe-filter-ii1.c: Likewise.
24724         * tests/test-pipe-filter-ii2-main.c: Likewise.
24725         * tests/test-pipe2.c: Likewise.
24726         * tests/test-popen.h: Likewise.
24727         * tests/test-posixtm.c: Likewise.
24728         * tests/test-pread.c: Likewise.
24729         * tests/test-printf-frexp.c: Likewise.
24730         * tests/test-printf-frexpl.c: Likewise.
24731         * tests/test-printf-posix.c: Likewise.
24732         * tests/test-priv-set.c: Likewise.
24733         * tests/test-quotearg.c: Likewise.
24734         * tests/test-random_r.c: Likewise.
24735         * tests/test-rawmemchr.c: Likewise.
24736         * tests/test-rbtree_list.c: Likewise.
24737         * tests/test-rbtree_oset.c: Likewise.
24738         * tests/test-rbtreehash_list.c: Likewise.
24739         * tests/test-readlink.c: Likewise.
24740         * tests/test-remove.c: Likewise.
24741         * tests/test-rename.c: Likewise.
24742         * tests/test-renameat.c: Likewise.
24743         * tests/test-rmdir.c: Likewise.
24744         * tests/test-round1.c: Likewise.
24745         * tests/test-roundf1.c: Likewise.
24746         * tests/test-roundl.c: Likewise.
24747         * tests/test-safe-alloc.c: Likewise.
24748         * tests/test-sameacls.c: Likewise.
24749         * tests/test-set-mode-acl.c: Likewise.
24750         * tests/test-setenv.c: Likewise.
24751         * tests/test-sigaction.c: Likewise.
24752         * tests/test-signbit.c: Likewise.
24753         * tests/test-sleep.c: Likewise.
24754         * tests/test-snprintf-posix.c: Likewise.
24755         * tests/test-snprintf.c: Likewise.
24756         * tests/test-sprintf-posix.c: Likewise.
24757         * tests/test-stat-time.c: Likewise.
24758         * tests/test-stat.c: Likewise.
24759         * tests/test-strcasestr.c: Likewise.
24760         * tests/test-strchrnul.c: Likewise.
24761         * tests/test-strerror.c: Likewise.
24762         * tests/test-striconv.c: Likewise.
24763         * tests/test-striconveh.c: Likewise.
24764         * tests/test-striconveha.c: Likewise.
24765         * tests/test-strsignal.c: Likewise.
24766         * tests/test-strstr.c: Likewise.
24767         * tests/test-strtod.c: Likewise.
24768         * tests/test-strverscmp.c: Likewise.
24769         * tests/test-symlink.c: Likewise.
24770         * tests/test-symlinkat.c: Likewise.
24771         * tests/test-trunc1.c: Likewise.
24772         * tests/test-trunc2.c: Likewise.
24773         * tests/test-truncf1.c: Likewise.
24774         * tests/test-truncf2.c: Likewise.
24775         * tests/test-truncl.c: Likewise.
24776         * tests/test-uname.c: Likewise.
24777         * tests/test-unlink.c: Likewise.
24778         * tests/test-unlinkat.c: Likewise.
24779         * tests/test-unsetenv.c: Likewise.
24780         * tests/test-usleep.c: Likewise.
24781         * tests/test-utimens.c: Likewise.
24782         * tests/test-utimensat.c: Likewise.
24783         * tests/test-vasnprintf-posix.c: Likewise.
24784         * tests/test-vasnprintf-posix2.c: Likewise.
24785         * tests/test-vasnprintf.c: Likewise.
24786         * tests/test-vasprintf-posix.c: Likewise.
24787         * tests/test-vasprintf.c: Likewise.
24788         * tests/test-vdprintf-posix.c: Likewise.
24789         * tests/test-vfprintf-posix.c: Likewise.
24790         * tests/test-vprintf-posix.c: Likewise.
24791         * tests/test-vsnprintf-posix.c: Likewise.
24792         * tests/test-vsnprintf.c: Likewise.
24793         * tests/test-vsprintf-posix.c: Likewise.
24794         * tests/test-wcrtomb.c: Likewise.
24795         * tests/test-wcsnrtombs.c: Likewise.
24796         * tests/test-wcsrtombs.c: Likewise.
24797         * tests/test-wctype.c: Likewise.
24798         * tests/test-wcwidth.c: Likewise.
24799         * tests/test-xfprintf-posix.c: Likewise.
24800         * tests/test-xmemdup0.c: Likewise.
24801         * tests/test-xprintf-posix.c: Likewise.
24802         * tests/test-xvasprintf.c: Likewise.
24803         * tests/unicase/test-locale-language.c: Likewise.
24804         * tests/unicase/test-mapping-part1.h: Likewise.
24805         * tests/unicase/test-predicate-part1.h: Likewise.
24806         * tests/unicase/test-u8-casecmp.c: Likewise.
24807         * tests/unicase/test-u8-casecoll.c: Likewise.
24808         * tests/unicase/test-u8-casefold.c: Likewise.
24809         * tests/unicase/test-u8-is-cased.c: Likewise.
24810         * tests/unicase/test-u8-is-casefolded.c: Likewise.
24811         * tests/unicase/test-u8-is-lowercase.c: Likewise.
24812         * tests/unicase/test-u8-is-titlecase.c: Likewise.
24813         * tests/unicase/test-u8-is-uppercase.c: Likewise.
24814         * tests/unicase/test-u8-tolower.c: Likewise.
24815         * tests/unicase/test-u8-totitle.c: Likewise.
24816         * tests/unicase/test-u8-toupper.c: Likewise.
24817         * tests/unicase/test-u16-casecmp.c: Likewise.
24818         * tests/unicase/test-u16-casecoll.c: Likewise.
24819         * tests/unicase/test-u16-casefold.c: Likewise.
24820         * tests/unicase/test-u16-is-cased.c: Likewise.
24821         * tests/unicase/test-u16-is-casefolded.c: Likewise.
24822         * tests/unicase/test-u16-is-lowercase.c: Likewise.
24823         * tests/unicase/test-u16-is-titlecase.c: Likewise.
24824         * tests/unicase/test-u16-is-uppercase.c: Likewise.
24825         * tests/unicase/test-u16-tolower.c: Likewise.
24826         * tests/unicase/test-u16-totitle.c: Likewise.
24827         * tests/unicase/test-u16-toupper.c: Likewise.
24828         * tests/unicase/test-u32-casecmp.c: Likewise.
24829         * tests/unicase/test-u32-casecoll.c: Likewise.
24830         * tests/unicase/test-u32-casefold.c: Likewise.
24831         * tests/unicase/test-u32-is-cased.c: Likewise.
24832         * tests/unicase/test-u32-is-casefolded.c: Likewise.
24833         * tests/unicase/test-u32-is-lowercase.c: Likewise.
24834         * tests/unicase/test-u32-is-titlecase.c: Likewise.
24835         * tests/unicase/test-u32-is-uppercase.c: Likewise.
24836         * tests/unicase/test-u32-tolower.c: Likewise.
24837         * tests/unicase/test-u32-totitle.c: Likewise.
24838         * tests/unicase/test-u32-toupper.c: Likewise.
24839         * tests/unicase/test-ulc-casecmp.c: Likewise.
24840         * tests/unicase/test-ulc-casecoll.c: Likewise.
24841         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
24842         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
24843         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
24844         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
24845         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
24846         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
24847         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
24848         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
24849         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
24850         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
24851         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
24852         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
24853         * tests/unictype/test-bidi_byname.c: Likewise.
24854         * tests/unictype/test-bidi_name.c: Likewise.
24855         * tests/unictype/test-bidi_of.c: Likewise.
24856         * tests/unictype/test-bidi_test.c: Likewise.
24857         * tests/unictype/test-block_list.c: Likewise.
24858         * tests/unictype/test-block_of.c: Likewise.
24859         * tests/unictype/test-block_test.c: Likewise.
24860         * tests/unictype/test-categ_and.c: Likewise.
24861         * tests/unictype/test-categ_and_not.c: Likewise.
24862         * tests/unictype/test-categ_byname.c: Likewise.
24863         * tests/unictype/test-categ_name.c: Likewise.
24864         * tests/unictype/test-categ_none.c: Likewise.
24865         * tests/unictype/test-categ_of.c: Likewise.
24866         * tests/unictype/test-categ_or.c: Likewise.
24867         * tests/unictype/test-categ_test_withtable.c: Likewise.
24868         * tests/unictype/test-combining.c: Likewise.
24869         * tests/unictype/test-decdigit.c: Likewise.
24870         * tests/unictype/test-digit.c: Likewise.
24871         * tests/unictype/test-mirror.c: Likewise.
24872         * tests/unictype/test-numeric.c: Likewise.
24873         * tests/unictype/test-pr_byname.c: Likewise.
24874         * tests/unictype/test-pr_test.c: Likewise.
24875         * tests/unictype/test-predicate-part1.h: Likewise.
24876         * tests/unictype/test-scripts.c: Likewise.
24877         * tests/unictype/test-sy_c_ident.c: Likewise.
24878         * tests/unictype/test-sy_java_ident.c: Likewise.
24879         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
24880         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
24881         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
24882         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
24883         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
24884         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
24885         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
24886         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
24887         * tests/uninorm/test-canonical-decomposition.c: Likewise.
24888         * tests/uninorm/test-compat-decomposition.c: Likewise.
24889         * tests/uninorm/test-composition.c: Likewise.
24890         * tests/uninorm/test-decomposing-form.c: Likewise.
24891         * tests/uninorm/test-decomposition.c: Likewise.
24892         * tests/uninorm/test-u8-nfc.c: Likewise.
24893         * tests/uninorm/test-u8-nfd.c: Likewise.
24894         * tests/uninorm/test-u8-nfkc.c: Likewise.
24895         * tests/uninorm/test-u8-nfkd.c: Likewise.
24896         * tests/uninorm/test-u8-normcmp.c: Likewise.
24897         * tests/uninorm/test-u8-normcoll.c: Likewise.
24898         * tests/uninorm/test-u16-nfc.c: Likewise.
24899         * tests/uninorm/test-u16-nfd.c: Likewise.
24900         * tests/uninorm/test-u16-nfkc.c: Likewise.
24901         * tests/uninorm/test-u16-nfkd.c: Likewise.
24902         * tests/uninorm/test-u16-normcmp.c: Likewise.
24903         * tests/uninorm/test-u16-normcoll.c: Likewise.
24904         * tests/uninorm/test-u32-nfc.c: Likewise.
24905         * tests/uninorm/test-u32-nfd.c: Likewise.
24906         * tests/uninorm/test-u32-nfkc.c: Likewise.
24907         * tests/uninorm/test-u32-nfkd.c: Likewise.
24908         * tests/uninorm/test-u32-normalize-big.c: Likewise.
24909         * tests/uninorm/test-u32-normcmp.c: Likewise.
24910         * tests/uninorm/test-u32-normcoll.c: Likewise.
24911         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
24912         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
24913         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
24914         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
24915         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
24916         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
24917         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
24918         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
24919         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
24920         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
24921         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
24922         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
24923         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
24924         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
24925         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
24926         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
24927         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
24928         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
24929         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
24930         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
24931         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
24932         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
24933         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
24934         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
24935         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
24936         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
24937         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
24938         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
24939         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
24940         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
24941         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
24942         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
24943         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
24944         * tests/uniwidth/test-u8-strwidth.c: Likewise.
24945         * tests/uniwidth/test-u8-width.c: Likewise.
24946         * tests/uniwidth/test-u16-strwidth.c: Likewise.
24947         * tests/uniwidth/test-u16-width.c: Likewise.
24948         * tests/uniwidth/test-u32-strwidth.c: Likewise.
24949         * tests/uniwidth/test-u32-width.c: Likewise.
24950         * tests/uniwidth/test-uc_width.c: Likewise.
24951         * tests/uniwidth/test-uc_width2.c: Likewise.
24952         * modules/acl-tests (Files): Add tests/macros.h.
24953         * modules/areadlink-tests (Files): Likewise.
24954         * modules/areadlink-with-size-tests (Files): Likewise.
24955         * modules/areadlinkat-tests (Files): Likewise.
24956         * modules/areadlinkat-with-size-tests (Files): Likewise.
24957         * modules/argmatch-tests (Files): Likewise.
24958         * modules/argv-iter-tests (Files): Likewise.
24959         * modules/array-list-tests (Files): Likewise.
24960         * modules/array-mergesort-tests (Files): Likewise.
24961         * modules/array-oset-tests (Files): Likewise.
24962         * modules/avltree-list-tests (Files): Likewise.
24963         * modules/avltree-oset-tests (Files): Likewise.
24964         * modules/avltreehash-list-tests (Files): Likewise.
24965         * modules/base64-tests (Files): Likewise.
24966         * modules/binary-io-tests (Files): Likewise.
24967         * modules/bitrotate-tests (Files): Likewise.
24968         * modules/btowc-tests (Files): Likewise.
24969         * modules/byteswap-tests (Files): Likewise.
24970         * modules/c-ctype-tests (Files): Likewise.
24971         * modules/c-stack-tests (Files): Likewise.
24972         * modules/c-strcase-tests (Files): Likewise.
24973         * modules/c-strcasestr-tests (Files): Likewise.
24974         * modules/c-strstr-tests (Files): Likewise.
24975         * modules/canonicalize-lgpl-tests (Files): Likewise.
24976         * modules/canonicalize-tests (Files): Likewise.
24977         * modules/carray-list-tests (Files): Likewise.
24978         * modules/ceilf-tests (Files): Likewise.
24979         * modules/ceill-tests (Files): Likewise.
24980         * modules/chown-tests (Files): Likewise.
24981         * modules/cloexec-tests (Files): Likewise.
24982         * modules/copy-file-tests (Files): Likewise.
24983         * modules/count-one-bits-tests (Files): Likewise.
24984         * modules/dprintf-posix-tests (Files): Likewise.
24985         * modules/dup2-tests (Files): Likewise.
24986         * modules/dup3-tests (Files): Likewise.
24987         * modules/duplocale-tests (Files): Likewise.
24988         * modules/fbufmode-tests (Files): Likewise.
24989         * modules/fchdir-tests (Files): Likewise.
24990         * modules/fcntl-safer-tests (Files): Likewise.
24991         * modules/fcntl-tests (Files): Likewise.
24992         * modules/fdopendir-tests (Files): Likewise.
24993         * modules/fdutimensat-tests (Files): Likewise.
24994         * modules/fflush-tests (Files): Likewise.
24995         * modules/filevercmp-tests (Files): Likewise.
24996         * modules/flock-tests (Files): Likewise.
24997         * modules/floorf-tests (Files): Likewise.
24998         * modules/floorl-tests (Files): Likewise.
24999         * modules/fnmatch-tests (Files): Likewise.
25000         * modules/fopen-safer-tests (Files): Likewise.
25001         * modules/fopen-tests (Files): Likewise.
25002         * modules/fpending-tests (Files): Likewise.
25003         * modules/fprintf-posix-tests (Files): Likewise.
25004         * modules/fpurge-tests (Files): Likewise.
25005         * modules/freadable-tests (Files): Likewise.
25006         * modules/freadahead-tests (Files): Likewise.
25007         * modules/freading-tests (Files): Likewise.
25008         * modules/freadptr-tests (Files): Likewise.
25009         * modules/freadseek-tests (Files): Likewise.
25010         * modules/freopen-tests (Files): Likewise.
25011         * modules/frexp-nolibm-tests (Files): Likewise.
25012         * modules/frexp-tests (Files): Likewise.
25013         * modules/frexpl-nolibm-tests (Files): Likewise.
25014         * modules/frexpl-tests (Files): Likewise.
25015         * modules/fseek-tests (Files): Likewise.
25016         * modules/fseeko-tests (Files): Likewise.
25017         * modules/fstrcmp-tests (Files): Likewise.
25018         * modules/fsync-tests (Files): Likewise.
25019         * modules/ftell-tests (Files): Likewise.
25020         * modules/ftello-tests (Files): Likewise.
25021         * modules/func-tests (Files): Likewise.
25022         * modules/futimens-tests (Files): Likewise.
25023         * modules/fwritable-tests (Files): Likewise.
25024         * modules/fwriting-tests (Files): Likewise.
25025         * modules/getcwd-tests (Files): Likewise.
25026         * modules/getdate-tests (Files): Likewise.
25027         * modules/getdelim-tests (Files): Likewise.
25028         * modules/getdtablesize-tests (Files): Likewise.
25029         * modules/getgroups-tests (Files): Likewise.
25030         * modules/getline-tests (Files): Likewise.
25031         * modules/getndelim2-tests (Files): Likewise.
25032         * modules/glob-tests (Files): Likewise.
25033         * modules/hash-tests (Files): Likewise.
25034         * modules/i-ring-tests (Files): Likewise.
25035         * modules/iconv-tests (Files): Likewise.
25036         * modules/iconv_open-utf-tests (Files): Likewise.
25037         * modules/idpriv-drop-tests (Files): Likewise.
25038         * modules/idpriv-droptemp-tests (Files): Likewise.
25039         * modules/inet_ntop-tests (Files): Likewise.
25040         * modules/inet_pton-tests (Files): Likewise.
25041         * modules/isblank-tests (Files): Likewise.
25042         * modules/isfinite-tests (Files): Likewise.
25043         * modules/isinf-tests (Files): Likewise.
25044         * modules/isnan-tests (Files): Likewise.
25045         * modules/isnand-nolibm-tests (Files): Likewise.
25046         * modules/isnand-tests (Files): Likewise.
25047         * modules/isnanf-nolibm-tests (Files): Likewise.
25048         * modules/isnanf-tests (Files): Likewise.
25049         * modules/isnanl-nolibm-tests (Files): Likewise.
25050         * modules/isnanl-tests (Files): Likewise.
25051         * modules/lchown-tests (Files): Likewise.
25052         * modules/ldexpl-tests (Files): Likewise.
25053         * modules/link-tests (Files): Likewise.
25054         * modules/linkat-tests (Files): Likewise.
25055         * modules/linked-list-tests (Files): Likewise.
25056         * modules/linkedhash-list-tests (Files): Likewise.
25057         * modules/localename-tests (Files): Likewise.
25058         * modules/lseek-tests (Files): Likewise.
25059         * modules/lstat-tests (Files): Likewise.
25060         * modules/mbmemcasecmp-tests (Files): Likewise.
25061         * modules/mbmemcasecoll-tests (Files): Likewise.
25062         * modules/mbrtowc-tests (Files): Likewise.
25063         * modules/mbscasecmp-tests (Files): Likewise.
25064         * modules/mbscasestr-tests (Files): Likewise.
25065         * modules/mbschr-tests (Files): Likewise.
25066         * modules/mbscspn-tests (Files): Likewise.
25067         * modules/mbsinit-tests (Files): Likewise.
25068         * modules/mbsncasecmp-tests (Files): Likewise.
25069         * modules/mbsnrtowcs-tests (Files): Likewise.
25070         * modules/mbspbrk-tests (Files): Likewise.
25071         * modules/mbspcasecmp-tests (Files): Likewise.
25072         * modules/mbsrchr-tests (Files): Likewise.
25073         * modules/mbsrtowcs-tests (Files): Likewise.
25074         * modules/mbsspn-tests (Files): Likewise.
25075         * modules/mbsstr-tests (Files): Likewise.
25076         * modules/memchr-tests (Files): Likewise.
25077         * modules/memchr2-tests (Files): Likewise.
25078         * modules/memcmp-tests (Files): Likewise.
25079         * modules/memmem-tests (Files): Likewise.
25080         * modules/memrchr-tests (Files): Likewise.
25081         * modules/mkdir-tests (Files): Likewise.
25082         * modules/mkfifo-tests (Files): Likewise.
25083         * modules/mkfifoat-tests (Files): Likewise.
25084         * modules/mknod-tests (Files): Likewise.
25085         * modules/nanosleep-tests (Files): Likewise.
25086         * modules/nl_langinfo-tests (Files): Likewise.
25087         * modules/obstack-printf-tests (Files): Likewise.
25088         * modules/open-tests (Files): Likewise.
25089         * modules/openat-tests (Files): Likewise.
25090         * modules/pipe-filter-gi-tests (Files): Likewise.
25091         * modules/pipe-filter-ii-tests (Files): Likewise.
25092         * modules/pipe2-tests (Files): Likewise.
25093         * modules/popen-safer-tests (Files): Likewise.
25094         * modules/popen-tests (Files): Likewise.
25095         * modules/posixtm-tests (Files): Likewise.
25096         * modules/pread-tests (Files): Likewise.
25097         * modules/printf-frexp-tests (Files): Likewise.
25098         * modules/printf-frexpl-tests (Files): Likewise.
25099         * modules/printf-posix-tests (Files): Likewise.
25100         * modules/priv-set-tests (Files): Likewise.
25101         * modules/quotearg-tests (Files): Likewise.
25102         * modules/random_r-tests (Files): Likewise.
25103         * modules/rawmemchr-tests (Files): Likewise.
25104         * modules/rbtree-list-tests (Files): Likewise.
25105         * modules/rbtree-oset-tests (Files): Likewise.
25106         * modules/rbtreehash-list-tests (Files): Likewise.
25107         * modules/readlink-tests (Files): Likewise.
25108         * modules/remove-tests (Files): Likewise.
25109         * modules/rename-tests (Files): Likewise.
25110         * modules/renameat-tests (Files): Likewise.
25111         * modules/rmdir-tests (Files): Likewise.
25112         * modules/round-tests (Files): Likewise.
25113         * modules/roundf-tests (Files): Likewise.
25114         * modules/roundl-tests (Files): Likewise.
25115         * modules/safe-alloc-tests (Files): Likewise.
25116         * modules/setenv-tests (Files): Likewise.
25117         * modules/sigaction-tests (Files): Likewise.
25118         * modules/signbit-tests (Files): Likewise.
25119         * modules/sleep-tests (Files): Likewise.
25120         * modules/snprintf-posix-tests (Files): Likewise.
25121         * modules/snprintf-tests (Files): Likewise.
25122         * modules/sprintf-posix-tests (Files): Likewise.
25123         * modules/stat-tests (Files): Likewise.
25124         * modules/stat-time-tests (Files): Likewise.
25125         * modules/strcasestr-tests (Files): Likewise.
25126         * modules/strchrnul-tests (Files): Likewise.
25127         * modules/strerror-tests (Files): Likewise.
25128         * modules/striconv-tests (Files): Likewise.
25129         * modules/striconveh-tests (Files): Likewise.
25130         * modules/striconveha-tests (Files): Likewise.
25131         * modules/strsignal-tests (Files): Likewise.
25132         * modules/strstr-tests (Files): Likewise.
25133         * modules/strtod-tests (Files): Likewise.
25134         * modules/strverscmp-tests (Files): Likewise.
25135         * modules/symlink-tests (Files): Likewise.
25136         * modules/symlinkat-tests (Files): Likewise.
25137         * modules/trunc-tests (Files): Likewise.
25138         * modules/truncf-tests (Files): Likewise.
25139         * modules/truncl-tests (Files): Likewise.
25140         * modules/uname-tests (Files): Likewise.
25141         * modules/unicase/cased-tests (Files): Likewise.
25142         * modules/unicase/ignorable-tests (Files): Likewise.
25143         * modules/unicase/locale-language-tests (Files): Likewise.
25144         * modules/unicase/tolower-tests (Files): Likewise.
25145         * modules/unicase/totitle-tests (Files): Likewise.
25146         * modules/unicase/toupper-tests (Files): Likewise.
25147         * modules/unicase/u8-casecmp-tests (Files): Likewise.
25148         * modules/unicase/u8-casecoll-tests (Files): Likewise.
25149         * modules/unicase/u8-casefold-tests (Files): Likewise.
25150         * modules/unicase/u8-is-cased-tests (Files): Likewise.
25151         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
25152         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
25153         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
25154         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
25155         * modules/unicase/u8-tolower-tests (Files): Likewise.
25156         * modules/unicase/u8-totitle-tests (Files): Likewise.
25157         * modules/unicase/u8-toupper-tests (Files): Likewise.
25158         * modules/unicase/u16-casecmp-tests (Files): Likewise.
25159         * modules/unicase/u16-casecoll-tests (Files): Likewise.
25160         * modules/unicase/u16-casefold-tests (Files): Likewise.
25161         * modules/unicase/u16-is-cased-tests (Files): Likewise.
25162         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
25163         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
25164         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
25165         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
25166         * modules/unicase/u16-tolower-tests (Files): Likewise.
25167         * modules/unicase/u16-totitle-tests (Files): Likewise.
25168         * modules/unicase/u16-toupper-tests (Files): Likewise.
25169         * modules/unicase/u32-casecmp-tests (Files): Likewise.
25170         * modules/unicase/u32-casecoll-tests (Files): Likewise.
25171         * modules/unicase/u32-casefold-tests (Files): Likewise.
25172         * modules/unicase/u32-is-cased-tests (Files): Likewise.
25173         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
25174         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
25175         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
25176         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
25177         * modules/unicase/u32-tolower-tests (Files): Likewise.
25178         * modules/unicase/u32-totitle-tests (Files): Likewise.
25179         * modules/unicase/u32-toupper-tests (Files): Likewise.
25180         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
25181         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
25182         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
25183         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
25184         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
25185         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
25186         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
25187         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
25188         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
25189         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
25190         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
25191         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
25192         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
25193         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
25194         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
25195         * modules/unictype/bidicategory-name-tests (Files): Likewise.
25196         * modules/unictype/bidicategory-of-tests (Files): Likewise.
25197         * modules/unictype/bidicategory-test-tests (Files): Likewise.
25198         * modules/unictype/block-list-tests (Files): Likewise.
25199         * modules/unictype/block-of-tests (Files): Likewise.
25200         * modules/unictype/block-test-tests (Files): Likewise.
25201         * modules/unictype/category-C-tests (Files): Likewise.
25202         * modules/unictype/category-Cc-tests (Files): Likewise.
25203         * modules/unictype/category-Cf-tests (Files): Likewise.
25204         * modules/unictype/category-Cn-tests (Files): Likewise.
25205         * modules/unictype/category-Co-tests (Files): Likewise.
25206         * modules/unictype/category-Cs-tests (Files): Likewise.
25207         * modules/unictype/category-L-tests (Files): Likewise.
25208         * modules/unictype/category-Ll-tests (Files): Likewise.
25209         * modules/unictype/category-Lm-tests (Files): Likewise.
25210         * modules/unictype/category-Lo-tests (Files): Likewise.
25211         * modules/unictype/category-Lt-tests (Files): Likewise.
25212         * modules/unictype/category-Lu-tests (Files): Likewise.
25213         * modules/unictype/category-M-tests (Files): Likewise.
25214         * modules/unictype/category-Mc-tests (Files): Likewise.
25215         * modules/unictype/category-Me-tests (Files): Likewise.
25216         * modules/unictype/category-Mn-tests (Files): Likewise.
25217         * modules/unictype/category-N-tests (Files): Likewise.
25218         * modules/unictype/category-Nd-tests (Files): Likewise.
25219         * modules/unictype/category-Nl-tests (Files): Likewise.
25220         * modules/unictype/category-No-tests (Files): Likewise.
25221         * modules/unictype/category-P-tests (Files): Likewise.
25222         * modules/unictype/category-Pc-tests (Files): Likewise.
25223         * modules/unictype/category-Pd-tests (Files): Likewise.
25224         * modules/unictype/category-Pe-tests (Files): Likewise.
25225         * modules/unictype/category-Pf-tests (Files): Likewise.
25226         * modules/unictype/category-Pi-tests (Files): Likewise.
25227         * modules/unictype/category-Po-tests (Files): Likewise.
25228         * modules/unictype/category-Ps-tests (Files): Likewise.
25229         * modules/unictype/category-S-tests (Files): Likewise.
25230         * modules/unictype/category-Sc-tests (Files): Likewise.
25231         * modules/unictype/category-Sk-tests (Files): Likewise.
25232         * modules/unictype/category-Sm-tests (Files): Likewise.
25233         * modules/unictype/category-So-tests (Files): Likewise.
25234         * modules/unictype/category-Z-tests (Files): Likewise.
25235         * modules/unictype/category-Zl-tests (Files): Likewise.
25236         * modules/unictype/category-Zp-tests (Files): Likewise.
25237         * modules/unictype/category-Zs-tests (Files): Likewise.
25238         * modules/unictype/category-and-not-tests (Files): Likewise.
25239         * modules/unictype/category-and-tests (Files): Likewise.
25240         * modules/unictype/category-byname-tests (Files): Likewise.
25241         * modules/unictype/category-name-tests (Files): Likewise.
25242         * modules/unictype/category-none-tests (Files): Likewise.
25243         * modules/unictype/category-of-tests (Files): Likewise.
25244         * modules/unictype/category-or-tests (Files): Likewise.
25245         * modules/unictype/category-test-withtable-tests (Files): Likewise.
25246         * modules/unictype/combining-class-tests (Files): Likewise.
25247         * modules/unictype/ctype-alnum-tests (Files): Likewise.
25248         * modules/unictype/ctype-alpha-tests (Files): Likewise.
25249         * modules/unictype/ctype-blank-tests (Files): Likewise.
25250         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
25251         * modules/unictype/ctype-digit-tests (Files): Likewise.
25252         * modules/unictype/ctype-graph-tests (Files): Likewise.
25253         * modules/unictype/ctype-lower-tests (Files): Likewise.
25254         * modules/unictype/ctype-print-tests (Files): Likewise.
25255         * modules/unictype/ctype-punct-tests (Files): Likewise.
25256         * modules/unictype/ctype-space-tests (Files): Likewise.
25257         * modules/unictype/ctype-upper-tests (Files): Likewise.
25258         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
25259         * modules/unictype/decimal-digit-tests (Files): Likewise.
25260         * modules/unictype/digit-tests (Files): Likewise.
25261         * modules/unictype/mirror-tests (Files): Likewise.
25262         * modules/unictype/numeric-tests (Files): Likewise.
25263         * modules/unictype/property-alphabetic-tests (Files): Likewise.
25264         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
25265         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
25266         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
25267         Likewise.
25268         * modules/unictype/property-bidi-block-separator-tests (Files):
25269         Likewise.
25270         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
25271         Likewise.
25272         * modules/unictype/property-bidi-common-separator-tests (Files):
25273         Likewise.
25274         * modules/unictype/property-bidi-control-tests (Files): Likewise.
25275         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
25276         Likewise.
25277         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
25278         Likewise.
25279         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
25280         Likewise.
25281         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
25282         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
25283         Likewise.
25284         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
25285         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
25286         Likewise.
25287         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
25288         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
25289         * modules/unictype/property-bidi-segment-separator-tests (Files):
25290         Likewise.
25291         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
25292         * modules/unictype/property-byname-tests (Files): Likewise.
25293         * modules/unictype/property-combining-tests (Files): Likewise.
25294         * modules/unictype/property-composite-tests (Files): Likewise.
25295         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
25296         * modules/unictype/property-dash-tests (Files): Likewise.
25297         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
25298         * modules/unictype/property-default-ignorable-code-point-tests (Files):
25299         Likewise.
25300         * modules/unictype/property-deprecated-tests (Files): Likewise.
25301         * modules/unictype/property-diacritic-tests (Files): Likewise.
25302         * modules/unictype/property-extender-tests (Files): Likewise.
25303         * modules/unictype/property-format-control-tests (Files): Likewise.
25304         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
25305         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
25306         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
25307         * modules/unictype/property-hex-digit-tests (Files): Likewise.
25308         * modules/unictype/property-hyphen-tests (Files): Likewise.
25309         * modules/unictype/property-id-continue-tests (Files): Likewise.
25310         * modules/unictype/property-id-start-tests (Files): Likewise.
25311         * modules/unictype/property-ideographic-tests (Files): Likewise.
25312         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
25313         * modules/unictype/property-ids-trinary-operator-tests (Files):
25314         Likewise.
25315         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
25316         * modules/unictype/property-iso-control-tests (Files): Likewise.
25317         * modules/unictype/property-join-control-tests (Files): Likewise.
25318         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
25319         * modules/unictype/property-line-separator-tests (Files): Likewise.
25320         * modules/unictype/property-logical-order-exception-tests (Files):
25321         Likewise.
25322         * modules/unictype/property-lowercase-tests (Files): Likewise.
25323         * modules/unictype/property-math-tests (Files): Likewise.
25324         * modules/unictype/property-non-break-tests (Files): Likewise.
25325         * modules/unictype/property-not-a-character-tests (Files): Likewise.
25326         * modules/unictype/property-numeric-tests (Files): Likewise.
25327         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
25328         * modules/unictype/property-other-default-ignorable-code-point-tests
25329         (Files): Likewise.
25330         * modules/unictype/property-other-grapheme-extend-tests (Files):
25331         Likewise.
25332         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
25333         * modules/unictype/property-other-id-start-tests (Files): Likewise.
25334         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
25335         * modules/unictype/property-other-math-tests (Files): Likewise.
25336         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
25337         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
25338         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
25339         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
25340         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
25341         * modules/unictype/property-private-use-tests (Files): Likewise.
25342         * modules/unictype/property-punctuation-tests (Files): Likewise.
25343         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
25344         * modules/unictype/property-radical-tests (Files): Likewise.
25345         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
25346         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
25347         * modules/unictype/property-space-tests (Files): Likewise.
25348         * modules/unictype/property-terminal-punctuation-tests (Files):
25349         Likewise.
25350         * modules/unictype/property-test-tests (Files): Likewise.
25351         * modules/unictype/property-titlecase-tests (Files): Likewise.
25352         * modules/unictype/property-unassigned-code-value-tests (Files):
25353         Likewise.
25354         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
25355         * modules/unictype/property-uppercase-tests (Files): Likewise.
25356         * modules/unictype/property-variation-selector-tests (Files): Likewise.
25357         * modules/unictype/property-white-space-tests (Files): Likewise.
25358         * modules/unictype/property-xid-continue-tests (Files): Likewise.
25359         * modules/unictype/property-xid-start-tests (Files): Likewise.
25360         * modules/unictype/property-zero-width-tests (Files): Likewise.
25361         * modules/unictype/scripts-tests (Files): Likewise.
25362         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
25363         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
25364         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
25365         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
25366         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
25367         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
25368         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
25369         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
25370         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
25371         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
25372         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
25373         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
25374         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
25375         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
25376         * modules/uninorm/composition-tests (Files): Likewise.
25377         * modules/uninorm/decomposing-form-tests (Files): Likewise.
25378         * modules/uninorm/decomposition-tests (Files): Likewise.
25379         * modules/uninorm/filter-tests (Files): Likewise.
25380         * modules/uninorm/nfc-tests (Files): Likewise.
25381         * modules/uninorm/nfd-tests (Files): Likewise.
25382         * modules/uninorm/nfkc-tests (Files): Likewise.
25383         * modules/uninorm/nfkd-tests (Files): Likewise.
25384         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
25385         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
25386         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
25387         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
25388         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
25389         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
25390         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
25391         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
25392         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
25393         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
25394         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
25395         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
25396         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
25397         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
25398         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
25399         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
25400         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
25401         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
25402         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
25403         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
25404         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
25405         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
25406         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
25407         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
25408         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
25409         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
25410         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
25411         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
25412         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
25413         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
25414         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
25415         * modules/uniwidth/u8-width-tests (Files): Likewise.
25416         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
25417         * modules/uniwidth/u16-width-tests (Files): Likewise.
25418         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
25419         * modules/uniwidth/u32-width-tests (Files): Likewise.
25420         * modules/uniwidth/width-tests (Files): Likewise.
25421         * modules/unlink-tests (Files): Likewise.
25422         * modules/unsetenv-tests (Files): Likewise.
25423         * modules/usleep-tests (Files): Likewise.
25424         * modules/utimens-tests (Files): Likewise.
25425         * modules/utimensat-tests (Files): Likewise.
25426         * modules/vasnprintf-posix-tests (Files): Likewise.
25427         * modules/vasnprintf-tests (Files): Likewise.
25428         * modules/vasprintf-posix-tests (Files): Likewise.
25429         * modules/vasprintf-tests (Files): Likewise.
25430         * modules/vdprintf-posix-tests (Files): Likewise.
25431         * modules/vfprintf-posix-tests (Files): Likewise.
25432         * modules/vprintf-posix-tests (Files): Likewise.
25433         * modules/vsnprintf-posix-tests (Files): Likewise.
25434         * modules/vsnprintf-tests (Files): Likewise.
25435         * modules/vsprintf-posix-tests (Files): Likewise.
25436         * modules/wcrtomb-tests (Files): Likewise.
25437         * modules/wcsnrtombs-tests (Files): Likewise.
25438         * modules/wcsrtombs-tests (Files): Likewise.
25439         * modules/wctype-tests (Files): Likewise.
25440         * modules/wcwidth-tests (Files): Likewise.
25441         * modules/xmemdup0-tests (Files): Likewise.
25442         * modules/xprintf-posix-tests (Files): Likewise.
25443         * modules/xvasprintf-tests (Files): Likewise.
25444
25445 2009-12-24  Eric Blake  <ebb9@byu.net>
25446
25447         test-nanosleep: fix typo
25448         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
25449         patch.
25450         Reported by Bruno Haible.
25451
25452 2009-12-24  Bruno Haible  <bruno@clisp.org>
25453
25454         Reduce namespace pollution on glibc systems.
25455         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
25456         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
25457         systems.
25458         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
25459         <getopt.h> on glibc systems.
25460         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
25461         systems.
25462         * lib/fcntl.c: Include <unistd.h> here instead.
25463
25464 2009-12-24  Bruno Haible  <bruno@clisp.org>
25465
25466         * lib/stdlib.in.h (includes): Fix typo in today's commit.
25467
25468 2009-12-24  Eric Blake  <ebb9@byu.net>
25469
25470         tests: add signature checks
25471         * tests/signature.h (SIGNATURE_CHECK): New file.
25472         * modules/atexit-tests (Files): Use it.
25473         * modules/btowc-tests (Files): Likewise.
25474         * modules/canonicalize-lgpl-tests (Files): Likewise.
25475         * modules/ceilf-tests (Files): Likewise.
25476         * modules/ceill-tests (Files): Likewise.
25477         * modules/chown-tests (Files): Likewise.
25478         * modules/dprintf-posix-tests (Files): Likewise.
25479         * modules/dup2-tests (Files): Likewise.
25480         * modules/dup3-tests (Files): Likewise.
25481         * modules/duplocale-tests (Files): Likewise.
25482         * modules/fchdir-tests (Files): Likewise.
25483         * modules/fcntl-tests (Files): Likewise.
25484         * modules/fdopendir-tests (Files): Likewise.
25485         * modules/fflush-tests (Files): Likewise.
25486         * modules/flock-tests (Files): Likewise.
25487         * modules/floorf-tests (Files): Likewise.
25488         * modules/floorl-tests (Files): Likewise.
25489         * modules/fnmatch-tests (Files): Likewise.
25490         * modules/fopen-tests (Files): Likewise.
25491         * modules/fprintf-posix-tests (Files): Likewise.
25492         * modules/freopen-tests (Files): Likewise.
25493         * modules/frexp-nolibm-tests (Files): Likewise.
25494         * modules/frexp-tests (Files): Likewise.
25495         * modules/frexpl-nolibm-tests (Files): Likewise.
25496         * modules/frexpl-tests (Files): Likewise.
25497         * modules/fseek-tests (Files): Likewise.
25498         * modules/fseeko-tests (Files): Likewise.
25499         * modules/fsync-tests (Files): Likewise.
25500         * modules/ftell-tests (Files): Likewise.
25501         * modules/ftello-tests (Files): Likewise.
25502         * modules/futimens-tests (Files): Likewise.
25503         * modules/getaddrinfo-tests (Files): Likewise.
25504         * modules/getcwd-tests (Files): Likewise.
25505         * modules/getdelim-tests (Files): Likewise.
25506         * modules/getdtablesize-tests (Files): Likewise.
25507         * modules/getgroups-tests (Files): Likewise.
25508         * modules/gethostname-tests (Files): Likewise.
25509         * modules/getline-tests (Files): Likewise.
25510         * modules/getopt-posix-tests (Files): Likewise.
25511         * modules/gettimeofday-tests (Files): Likewise.
25512         * modules/glob-tests (Files): Likewise.
25513         * modules/iconv-tests (Files): Likewise.
25514         * modules/inet_ntop-tests (Files): Likewise.
25515         * modules/inet_pton-tests (Files): Likewise.
25516         * modules/isblank-tests (Files): Likewise.
25517         * modules/lchown-tests (Files): Likewise.
25518         * modules/ldexpl-tests (Files): Likewise.
25519         * modules/link-tests (Files): Likewise.
25520         * modules/linkat-tests (Files): Likewise.
25521         * modules/lseek-tests (Files): Likewise.
25522         * modules/lstat-tests (Files): Likewise.
25523         * modules/mbrtowc-tests (Files): Likewise.
25524         * modules/mbsinit-tests (Files): Likewise.
25525         * modules/mbsnrtowcs-tests (Files): Likewise.
25526         * modules/mbsrtowcs-tests (Files): Likewise.
25527         * modules/memchr-tests (Files): Likewise.
25528         * modules/memcmp-tests (Files): Likewise.
25529         * modules/memmem-tests (Files): Likewise.
25530         * modules/memrchr-tests (Files): Likewise.
25531         * modules/mkdir-tests (Files): Likewise.
25532         * modules/mkfifo-tests (Files): Likewise.
25533         * modules/mkfifoat-tests (Files): Likewise.
25534         * modules/mknod-tests (Files): Likewise.
25535         * modules/nanosleep-tests (Files): Likewise.
25536         * modules/nl_langinfo-tests (Files): Likewise.
25537         * modules/obstack-printf-tests (Files): Likewise.
25538         * modules/open-tests (Files): Likewise.
25539         * modules/openat-tests (Files): Likewise.
25540         * modules/perror-tests (Files): Likewise.
25541         * modules/pipe2-tests (Files): Likewise.
25542         * modules/poll-tests (Files): Likewise.
25543         * modules/popen-tests (Files): Likewise.
25544         * modules/posix_spawn-tests (Files): Likewise.
25545         * modules/posix_spawnp-tests (Files): Likewise.
25546         * modules/pread-tests (Files): Likewise.
25547         * modules/printf-posix-tests (Files): Likewise.
25548         * modules/pty-tests (Files): Likewise.
25549         * modules/random_r-tests (Files): Likewise.
25550         * modules/rawmemchr-tests (Files): Likewise.
25551         * modules/readlink-tests (Files): Likewise.
25552         * modules/remove-tests (Files): Likewise.
25553         * modules/rename-tests (Files): Likewise.
25554         * modules/renameat-tests (Files): Likewise.
25555         * modules/rmdir-tests (Files): Likewise.
25556         * modules/round-tests (Files): Likewise.
25557         * modules/roundf-tests (Files): Likewise.
25558         * modules/roundl-tests (Files): Likewise.
25559         * modules/select-tests (Files): Likewise.
25560         * modules/setenv-tests (Files): Likewise.
25561         * modules/sigaction-tests (Files): Likewise.
25562         * modules/sleep-tests (Files): Likewise.
25563         * modules/snprintf-posix-tests (Files): Likewise.
25564         * modules/snprintf-tests (Files): Likewise.
25565         * modules/sprintf-posix-tests (Files): Likewise.
25566         * modules/stat-tests (Files): Likewise.
25567         * modules/strcasestr-tests (Files): Likewise.
25568         * modules/strchrnul-tests (Files): Likewise.
25569         * modules/strerror-tests (Files): Likewise.
25570         * modules/strsignal-tests (Files): Likewise.
25571         * modules/strstr-tests (Files): Likewise.
25572         * modules/strtod-tests (Files): Likewise.
25573         * modules/strverscmp-tests (Files): Likewise.
25574         * modules/symlink-tests (Files): Likewise.
25575         * modules/symlinkat-tests (Files): Likewise.
25576         * modules/times-tests (Files): Likewise.
25577         * modules/trunc-tests (Files): Likewise.
25578         * modules/truncf-tests (Files): Likewise.
25579         * modules/truncl-tests (Files): Likewise.
25580         * modules/tsearch-tests (Files): Likewise.
25581         * modules/uname-tests (Files): Likewise.
25582         * modules/unlink-tests (Files): Likewise.
25583         * modules/unsetenv-tests (Files): Likewise.
25584         * modules/usleep-tests (Files): Likewise.
25585         * modules/utimensat-tests (Files): Likewise.
25586         * modules/vasprintf-tests (Files): Likewise.
25587         * modules/vdprintf-posix-tests (Files): Likewise.
25588         * modules/vfprintf-posix-tests (Files): Likewise.
25589         * modules/vprintf-posix-tests (Files): Likewise.
25590         * modules/vsnprintf-posix-tests (Files): Likewise.
25591         * modules/vsnprintf-tests (Files): Likewise.
25592         * modules/vsprintf-posix-tests (Files): Likewise.
25593         * modules/wcrtomb-tests (Files): Likewise.
25594         * modules/wcsnrtombs-tests (Files): Likewise.
25595         * modules/wcsrtombs-tests (Files): Likewise.
25596         * modules/wcwidth-tests (Files): Likewise.
25597         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
25598         * tests/test-isinf.c (isinf): Likewise.
25599         * tests/test-isnan.c (isnan): Likewise.
25600         * tests/test-signbit.c (signbit): Likewise.
25601         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
25602         declaration, either as macro or with correct signature.
25603         (select): Ensure function under test is declared with correct
25604         signature in correct header.
25605         * tests/test-atexit.c (atexit): Likewise.
25606         * tests/test-btowc.c (btowc): Likewise.
25607         * tests/test-canonicalize-lgpl.c (realpath)
25608         (canonicalize_file_name): Likewise.
25609         * tests/test-ceilf1.c (ceilf): Likewise.
25610         * tests/test-ceill.c (ceill): Likewise.
25611         * tests/test-chown.c (chown): Likewise.
25612         * tests/test-dprintf-posix.c (dprintf): Likewise.
25613         * tests/test-dup2.c (dup2): Likewise.
25614         * tests/test-dup3.c (dup3): Likewise.
25615         * tests/test-duplocale.c (duplocale): Likewise.
25616         * tests/test-fchdir.c (fchdir): Likewise.
25617         * tests/test-fchownat.c (fchownat): Likewise.
25618         * tests/test-fcntl.c (fcntl): Likewise.
25619         * tests/test-fdopendir.c (fdopendir): Likewise.
25620         * tests/test-fflush.c (fflush): Likewise.
25621         * tests/test-flock.c (flock): Likewise.
25622         * tests/test-floorf1.c (floorf): Likewise.
25623         * tests/test-floorl.c (floorl): Likewise.
25624         * tests/test-fnmatch.c (fnmatch): Likewise.
25625         * tests/test-fopen.c (fopen): Likewise.
25626         * tests/test-fprintf-posix.c (fprintf): Likewise.
25627         * tests/test-freopen.c (freopen): Likewise.
25628         * tests/test-frexp.c (frexp): Likewise.
25629         * tests/test-frexpl.c (frexpl): Likewise.
25630         * tests/test-fseek.c (fseek): Likewise.
25631         * tests/test-fseeko.c (fseeko): Likewise.
25632         * tests/test-fstatat.c (fstatat): Likewise.
25633         * tests/test-fsync.c (fsync): Likewise.
25634         * tests/test-ftell.c (ftell): Likewise.
25635         * tests/test-ftello.c (ftello): Likewise.
25636         * tests/test-futimens.c (futimens): Likewise.
25637         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
25638         (gai_strerror): Likewise.
25639         * tests/test-getcwd.c (getcwd): Likewise.
25640         * tests/test-getdelim.c (getdelim): Likewise.
25641         * tests/test-getdtablesize.c (getdtablesize): Likewise.
25642         * tests/test-getgroups.c (getgroups): Likewise.
25643         * tests/test-gethostname.c (gethostname): Likewise.
25644         * tests/test-getline.c (getline): Likewise.
25645         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
25646         Likewise.
25647         * tests/test-gettimeofday.c (gettimeofday): Likewise.
25648         * tests/test-glob.c (glob, globfree): Likewise.
25649         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
25650         * tests/test-inet_ntop.c (inet_ntop): Likewise.
25651         * tests/test-inet_pton.c (inet_pton): Likewise.
25652         * tests/test-isblank.c (isblank): Likewise.
25653         * tests/test-lchown.c (lchown): Likewise.
25654         * tests/test-ldexpl.c (ldexpl): Likewise.
25655         * tests/test-link.c (link): Likewise.
25656         * tests/test-linkat.c (linkat): Likewise.
25657         * tests/test-lseek.c (lseek): Likewise.
25658         * tests/test-lstat.c (lstat): Likewise.
25659         * tests/test-mbrtowc.c (mbrtowc): Likewise.
25660         * tests/test-mbsinit.c (mbsinit): Likewise.
25661         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
25662         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
25663         * tests/test-memchr.c (memchr): Likewise.
25664         * tests/test-memcmp.c (memcmp): Likewise.
25665         * tests/test-memmem.c (memmem): Likewise.
25666         * tests/test-memrchr.c (memrchr): Likewise.
25667         * tests/test-mkdir.c (mkdir): Likewise.
25668         * tests/test-mkdirat.c (mkdirat): Likewise.
25669         * tests/test-mkfifo.c (mkfifo): Likewise.
25670         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
25671         * tests/test-mknod.c (mknod): Likewise.
25672         * tests/test-nanosleep.c (nanosleep): Likewise.
25673         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
25674         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
25675         Likewise.
25676         * tests/test-open.c (open): Likewise.
25677         * tests/test-openat.c (openat): Likewise.
25678         * tests/test-perror.c (perror): Likewise.
25679         * tests/test-pipe2.c (pipe2): Likewise.
25680         * tests/test-poll.c (poll): Likewise.
25681         * tests/test-popen.c (popen, pclose): Likewise.
25682         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
25683         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
25684         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
25685         (posix_spawn_file_actions_destroy)
25686         (posix_spawn_file_actions_addclose)
25687         (posix_spawn_file_actions_addopen)
25688         (posix_spawn_file_actions_adddup2): Likewise.
25689         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
25690         * tests/test-pread.c (pread): Likewise.
25691         * tests/test-printf-posix.c (printf): Likewise.
25692         * tests/test-pty.c (openpty, forkpty): Likewise.
25693         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
25694         (random_r): Likewise.
25695         * tests/test-rawmemchr.c (rawmemchr): Likewise.
25696         * tests/test-readlink.c (readlink): Likewise.
25697         * tests/test-remove.c (remove): Likewise.
25698         * tests/test-rename.c (rename): Likewise.
25699         * tests/test-renameat.c (renameat): Likewise.
25700         * tests/test-rmdir.c (rmdir): Likewise.
25701         * tests/test-round1.c (round): Likewise.
25702         * tests/test-roundf1.c (roundf): Likewise.
25703         * tests/test-roundl.c (roundl): Likewise.
25704         * tests/test-setenv.c (setenv): Likewise.
25705         * tests/test-sigaction.c (sigaction): Likewise.
25706         * tests/test-sleep.c (sleep): Likewise.
25707         * tests/test-snprintf.c (snprintf): Likewise.
25708         * tests/test-sprintf-posix.c (sprintf): Likewise.
25709         * tests/test-stat.c (stat): Likewise.
25710         * tests/test-stpncpy.c (stpncpy): Likewise.
25711         * tests/test-strcasestr.c (strcasestr): Likewise.
25712         * tests/test-strchrnul.c (strchrnul): Likewise.
25713         * tests/test-strerror.c (strerror): Likewise.
25714         * tests/test-strsignal.c (strsignal): Likewise.
25715         * tests/test-strstr.c (strstr): Likewise.
25716         * tests/test-strtod.c (strtod): Likewise.
25717         * tests/test-strverscmp.c (strverscmp): Likewise.
25718         * tests/test-symlink.c (symlink): Likewise.
25719         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
25720         * tests/test-times.c (times): Likewise.
25721         * tests/test-trunc1.c (trunc): Likewise.
25722         * tests/test-truncf1.c (truncf): Likewise.
25723         * tests/test-truncl.c (truncl): Likewise.
25724         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
25725         Likewise.
25726         * tests/test-uname.c (uname): Likewise.
25727         * tests/test-unlink.c (unlink): Likewise.
25728         * tests/test-unlinkat.c (unlinkat): Likewise.
25729         * tests/test-unsetenv.c (unsetenv): Likewise.
25730         * tests/test-usleep.c (usleep): Likewise.
25731         * tests/test-utimensat.c (utimensat): Likewise.
25732         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
25733         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
25734         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
25735         * tests/test-vprintf-posix.c (vprintf): Likewise.
25736         * tests/test-vsnprintf.c (vsnprintf): Likewise.
25737         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
25738         * tests/test-wcrtomb.c (wcrtomb): Likewise.
25739         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
25740         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
25741         * tests/test-wcwidth.c (wcwidth): Likewise.
25742
25743         build: pull in conditional headers during GNULIB_POSIXCHECK
25744         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
25745         definitions from any conditionally-included headers.
25746         * lib/stdlib.in.h (includes): Likewise.
25747         * lib/unistd.in.h (includes): Likewise.
25748
25749 2009-12-24  Bruno Haible  <bruno@clisp.org>
25750
25751         * tests/test-argv-iter.c: Include header file being tested immediately
25752         after config.h.
25753         * tests/test-base64.c: Likewise.
25754         * tests/test-flock.c: Likewise.
25755         * tests/test-fsync.c: Likewise.
25756         * tests/test-getdate.c: Likewise.
25757         * tests/test-getndelim2.c: Likewise.
25758         * tests/test-isfinite.c: Likewise.
25759         * tests/test-isinf.c: Likewise.
25760         * tests/test-strerror.c: Likewise.
25761         * tests/test-strsignal.c: Likewise.
25762
25763 2009-12-23  Eric Blake  <ebb9@byu.net>
25764
25765         unistd: work around cygwin bug
25766         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
25767         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
25768         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
25769
25770 2009-12-23  Bruno Haible  <bruno@clisp.org>
25771
25772         localename: More tests.
25773         * tests/test-localename.c (SIZEOF): New macro.
25774         (categories): New variable.
25775         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
25776         test_locale_name_default): Add test w.r.t. thread locale.
25777         (test_locale_name_thread): New function.
25778         (main): Invoke it.
25779
25780         localename: Make aware of thread locale.
25781         * lib/localename.h (gl_locale_name_thread): New declaration.
25782         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
25783         behaviour with respect to thread locale.
25784         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
25785         <langinfo.h>, glthread/lock.h.
25786         (SIZE_BITS): New macro.
25787         (string_hash): New function.
25788         (struct hash_node): New type.
25789         (HASH_TABLE_SIZE): New macro.
25790         (struniq_hash_table, struniq_lock): New variables.
25791         (struniq): New function.
25792         (gl_locale_name_thread): New function.
25793         (gl_locale_name): Invoke it.
25794         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
25795         * modules/localename (Depends-on): Add lock.
25796         Reported by Mike Gran <spk121@yahoo.com>.
25797
25798 2009-12-23  Eric Blake  <ebb9@byu.net>
25799
25800         va-args: new module
25801         * modules/va-args: New file.
25802         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
25803         * MODULES.html.sh (Core language properties): Mention it.
25804
25805         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
25806         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
25807         named alias for __attribute__((__unused__)).
25808         * lib/chown.c: Update client.
25809         * lib/fchmodat.c: Likewise.
25810         * lib/fts.c: Likewise.
25811         * lib/getdate.y: Likewise.
25812         * lib/getgroups.c: Likewise.
25813         * lib/getopt.c: Likewise.
25814         * lib/getugroups.c: Likewise.
25815         * lib/mkdir.c: Likewise.
25816         * lib/mkfifo.c: Likewise.
25817         * lib/mkfifoat.c: Likewise.
25818         * lib/mknod.c: Likewise.
25819         * lib/mknodat.c: Likewise.
25820         * lib/readlink.c: Likewise.
25821         * lib/se-context.in.h: Likewise.
25822         * lib/se-selinux.in.h: Likewise.
25823         * lib/sockets.c: Likewise.
25824         * lib/symlink.c: Likewise.
25825         * lib/symlinkat.c: Likewise.
25826         * lib/unicodeio.c: Likewise.
25827         * lib/unistr.h: Likewise.
25828         * tests/test-areadlink.c: Likewise.
25829         * tests/test-areadlinkat.c: Likewise.
25830         * tests/test-filenamecat.c: Likewise.
25831         * tests/test-fseeko.c: Likewise.
25832         * tests/test-ftello.c: Likewise.
25833         * tests/test-getdate.c: Likewise.
25834         * tests/test-getgroups.c: Likewise.
25835         * tests/test-gethostname.c: Likewise.
25836         * tests/test-quotearg.c: Likewise.
25837         * tests/test-version-etc.c: Likewise.
25838         * tests/test-xalloc-die.c: Likewise.
25839         * tests/test-xfprintf-posix.c: Likewise.
25840         * tests/test-xprintf-posix.c: Likewise.
25841         * tests/test-xvasprintf.c: Likewise.
25842
25843         tests: avoid compiler warnings
25844         * tests/test-fcntl.c (main): Delete unused parameters.
25845         * tests/test-freopen-safer.c (main): Likewise.
25846         * tests/test-xalloc-die.c (main): Mark unused parameters.
25847         * tests/test-fseeko.c (main): Likewise.
25848         * tests/test-ftello.c (main): Likewise.
25849         * tests/test-nanosleep.c (main): Avoid declaration warning.
25850         * tests/test-sleep.c (main): Likewise.
25851         * tests/test-unsetenv.c (main): Silence warning about string
25852         literal.
25853         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
25854
25855 2009-12-23  Bruno Haible  <bruno@clisp.org>
25856
25857         * tests/test-localename.c (test_locale_name): New function, extracted
25858         from main. Also test mixed situations.
25859         (test_locale_name_posix, test_locale_name_environ,
25860         test_locale_name_default): New functions.
25861         (main): Invoke them all.
25862         * modules/localename-tests (configure.ac): Test for newlocale.
25863
25864 2009-12-23  Bruno Haible  <bruno@clisp.org>
25865
25866         unistd: Ensure getcwd gets declared before being overridden.
25867         * lib/unistd.in.h: Conditionally include <io.h>.
25868
25869 2009-12-22  Bruno Haible  <bruno@clisp.org>
25870
25871         wchar: Diagnose broken combination of glibc and gcc versions and flags.
25872         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
25873         (gl_WCHAR_H): Invoke it.
25874         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
25875         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
25876         Reported by Karl Berry <karl@freefriends.org>.
25877
25878 2009-12-22  Eric Blake  <ebb9@byu.net>
25879
25880         math, unistd: avoid redundant includes
25881         * lib/math.in.h (isnan): No need to re-include <math.h>.
25882         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
25883
25884         getsubopt: work around cygwin bug
25885         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
25886         avoid conflicting with system getsubopt.
25887         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
25888         bug.
25889
25890         getopt: synchronize from glibc
25891         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
25892         parameter order.  Adjust all callers.
25893         (_getopt_internal_r, main): Adjust quoting in error messages.
25894         Drop considerations for outdated POSIX 1003.2 error message.
25895         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
25896         callers.
25897         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
25898
25899         test-getopt: test stderr behavior
25900         * modules/getopt-posix-tests (Depends-on): Add dup2.
25901         * tests/test-getopt.c (ASSERT): Avoid stderr.
25902         (main): Move stderr to a temporary file.
25903         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
25904         Instead, add parameter to inform caller if output occurred.
25905         (test_getopt): Adjust all existing tests to expect silence, and
25906         add new tests of leading ":".
25907         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
25908         glibc shortcomings with leading "-:" or "+:" in optstring.
25909         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25910         Likewise.
25911         * doc/posix-functions/getopt.texi (getopt): Likewise.
25912
25913         test-getopt: enhance test
25914         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
25915         supports optind=0.
25916         * tests/test-getopt.c (OPTIND_MIN): Move...
25917         * tests/test-getopt.h (OPTIND_MIN): ...here.
25918         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
25919         Require that optind=0 works, since modern BSD supports it in
25920         addition to optreset, and since coreutils expects it.
25921         (test_getopt_long_only): New test.
25922         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
25923         glibc shortcomings with 'W;', and enforcement of optind=0.
25924         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25925         Likewise.
25926
25927 2009-12-21  Bruno Haible  <bruno@clisp.org>
25928
25929         localename: Improvements for MacOS X and Cygwin.
25930         * lib/localename.h (gl_locale_name_environ): New declaration.
25931         * lib/localename.c (gl_locale_name_environ): New function, extracted from
25932         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
25933         (gl_locale_name_posix): Invoke it.
25934         (gl_locale_name_default): Add comments. Use Windows native API also on
25935         Cygwin.
25936
25937 2009-12-21  Bruno Haible  <bruno@clisp.org>
25938
25939         Update list of Win32 locale ids.
25940         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
25941         (LANG_SAMI): Renamed from LANG_SAAMI.
25942         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
25943         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
25944         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
25945         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
25946         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
25947         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
25948         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
25949         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
25950         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
25951         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
25952         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
25953         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
25954         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
25955         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
25956         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
25957         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
25958         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
25959         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
25960         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
25961         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
25962         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
25963         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
25964         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
25965         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
25966         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
25967         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
25968         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
25969         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
25970         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
25971         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
25972         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
25973         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
25974         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
25975         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
25976         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
25977         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
25978         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
25979         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
25980         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
25981         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
25982         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
25983         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
25984         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
25985         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
25986         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
25987         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
25988         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
25989         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
25990         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
25991         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
25992         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
25993         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
25994         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
25995         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
25996         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
25997         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
25998         Add more languages and countries for Sami, Sorbian. Add more countries
25999         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
26000         for Pashto. Change country for Syriac, Tswana.
26001
26002 2009-12-21  Eric Blake  <ebb9@byu.net>
26003
26004         test-utimens: avoid spurious failure
26005         * tests/test-chown.h (nap): Factor...
26006         * tests/nap.h: ...into new file.
26007         * tests/test-lchown.h (nap): Avoid duplication.
26008         * tests/test-utimens-common.h (nap): Use shared implementation,
26009         necessary on file systems with 1-second resolution.
26010         * modules/chown-tests (Files): Include new file.
26011         * modules/fdutimensat-tests (Files): Likewise.
26012         * modules/futimens-tests (Files): Likewise.
26013         * modules/lchown-tests (Files): Likewise.
26014         * modules/openat-tests (Files): Likewise.
26015         * modules/utimens-tests (Files): Likewise.
26016         * modules/utimensat-tests (Files): Likewise.
26017
26018 2009-12-19  Eric Blake  <ebb9@byu.net>
26019
26020         futimens, utimensat: work around Linux bug
26021         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
26022         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
26023         * lib/utimensat.c (rpl_utimensat): Work around it.
26024         * lib/futimens.c (rpl_futimens): Adjust comment.
26025
26026         utimens: work around Linux ctime bug
26027         * lib/utimens.c (detect_ctime_bug): New helper function.
26028         (update_timespec): Differentiate between workaround needed for
26029         this bug vs. what is needed for systems that lack utimensat.
26030         (fdutimens, lutimens): Work around bug.
26031
26032         utimens: check for ctime update
26033         * tests/test-utimens-common.h (check_ctime): Define.
26034         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
26035         * tests/test-futimens.h (test_futimens): Likewise.
26036         * tests/test-lutimens.h (test_lutimens): Likewise.
26037         * doc/posix-functions/futimens.texi (futimens): Document the bug.
26038         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
26039
26040 2009-12-19  Bruno Haible  <bruno@clisp.org>
26041
26042         dprintf-posix: Check against memory leak fixed on 2009-12-15.
26043         * tests/test-dprintf-posix2.sh: New file.
26044         * tests/test-dprintf-posix2.c: New file.
26045         * modules/dprintf-posix-tests (Files): Add them.
26046         (configure.ac): Check for getrlimit and setrlimit.
26047         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
26048
26049 2009-12-19  Bruno Haible  <bruno@clisp.org>
26050
26051         fprintf-posix: Check against memory leak fixed on 2009-12-15.
26052         * tests/test-fprintf-posix3.sh: New file.
26053         * tests/test-fprintf-posix3.c: New file.
26054         * modules/fprintf-posix-tests (Files): Add them.
26055         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
26056
26057 2009-12-19  Eric Blake  <ebb9@byu.net>
26058
26059         dirfd: fix prototype
26060         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
26061         * lib/dirfd.c (dirfd): Likewise.
26062
26063         canonicalize: reduce memory usage
26064         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
26065         allocation to size.
26066         Reported by Solar Designer <solar@openwall.com>.
26067
26068 2009-12-19  Bruno Haible  <bruno@clisp.org>
26069
26070         New module attribute 'Applicability'.
26071         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
26072         * gnulib-tool: New option --extract-applicability.
26073         (func_usage): Document it.
26074         (sed_extract_prog): Recognize it.
26075         (func_get_applicability): New function.
26076         (func_import): Generalize handling of 'link-warning' module.
26077         * modules/link-warning (Applicability): New section.
26078         * modules/arg-nonnull (Applicability): New section.
26079         Repoted by Simon Josefsson <simon@josefsson.org>.
26080
26081 2009-12-19  Bruno Haible  <bruno@clisp.org>
26082
26083         fflush: tweak
26084         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
26085         * lib/fseeko.c (rpl_fseeko): Likewise.
26086
26087 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
26088
26089         * lib/gl_list.h: Fix typo in comment.
26090
26091 2009-12-16  Eric Blake  <ebb9@byu.net>
26092
26093         fcntl: use to simplify other modules
26094         * modules/cloexec (Depends-on): Add fcntl.
26095         * modules/fchdir (Depends-on): Likewise.
26096         * modules/fd-safer-flag (Depends-on): Likewise.
26097         * modules/unistd-safer (Depends-on): Likewise.
26098         * modules/dup3 (configure.ac): Set module indicator.
26099         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
26100         missing.
26101         * lib/fchdir.c (_gl_register_dup): Fix comment.
26102         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
26103         * lib/dup-safer.c (dup_safer): Likewise.
26104         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
26105         * lib/dup3.c (dup3): Likewise.
26106         * tests/test-fchdir.c (main): Enhance test.
26107         Fixes a dup_cloexec bug reported by Ondřej Vašík.
26108
26109         fcntl: port portions of fcntl to mingw
26110         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
26111         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
26112         replacement for mingw.
26113         * modules/fcntl (Description): Update.
26114         (Depends-on): Add dup2.
26115         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
26116         * modules/fcntl-h (Makefile.am): Substitute it.
26117         * lib/fcntl.in.h (fcntl): Update declaration.
26118         (F_DUPFD, F_GETFD): New macros, when needed.
26119         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
26120         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
26121         * tests/test-fcntl.c (check_flags, main): Enhance test for items
26122         we now guarantee.
26123
26124         fcntl: work around cygwin bug in F_DUPFD
26125         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
26126         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
26127         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
26128         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
26129         * doc/posix-functions/fcntl.texi (fcntl): Document it.
26130
26131         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
26132         * modules/fcntl (Files): List new files.
26133         (configure.ac): Run a test.
26134         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
26135         * lib/fcntl.c (rpl_fcntl): Likewise.
26136         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
26137         (gl_FCNTL_H): Always replace fcntl.h.
26138         * modules/fcntl-h (Makefile.am): Substitute witnesses.
26139         * lib/fcntl.in.h (fcntl): Declare replacement.
26140         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
26141         needed, plus a witness.
26142         * doc/posix-functions/fcntl.texi (fcntl): Document this.
26143         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
26144         * tests/test-fcntl.c: New file.
26145         * modules/fcntl-tests: Likewise.
26146
26147         binary-io: avoid potential compilation warning
26148         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
26149         directives.
26150
26151         fflush: avoid compilation error on NetBSD
26152         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
26153         between off_t and fpos_t, since the latter is sometimes a struct.
26154         * lib/fseeko.c (rpl_fseeko): Likewise.
26155         Reported by Alexander Nasonov <alnsn@yandex.ru>.
26156
26157 2009-12-15  Eric Blake  <ebb9@byu.net>
26158
26159         fcntl-h, stdio, sys_ioctl: fix declarations
26160         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
26161         function must not take arguments.
26162         * lib/sys_ioctl.in.h (ioctl): Likewise.
26163         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
26164         (open): Add a link warning.
26165
26166 2009-12-15  Jim Meyering  <meyering@redhat.com>
26167
26168         areadlink, areadlink-with-size: relax license to LGPLv2+
26169         * modules/areadlink (License): Relax to LGPLv2+.
26170         * modules/areadlink-with-size (License): Likewise.
26171
26172 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
26173             Bruno Haible  <bruno@clisp.org>
26174
26175         *printf: Fix memory leak.
26176         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
26177         * lib/vfprintf.c (vfprintf): Likewise.
26178         * lib/dprintf.c (dprintf): Likewise.
26179         * lib/vdprintf.c (vdprintf): Likewise.
26180
26181 2009-12-14  Eric Blake  <ebb9@byu.net>
26182
26183         accept4: adjust module dependencies
26184         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
26185
26186         utimens: one more try at avoiding compiler warning
26187         * lib/utimens.c (lutimens): Lower scope of result.
26188
26189 2009-12-13  Bruno Haible  <bruno@clisp.org>
26190
26191         Move the malloc checking from module 'list' to new module 'xlist'.
26192         * modules/xlist: New file.
26193         * lib/gl_xlist.h: New file.
26194         * lib/gl_xlist.c: New file.
26195         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
26196         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
26197         gl_list_add_last, gl_list_add_before, gl_list_add_after,
26198         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
26199         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
26200         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
26201         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
26202         gl_sortedlist_nx_add): New declarations.
26203         (struct gl_list_implementation): Rename and change methods accordingly.
26204         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
26205         (gl_list_nx_create): Renamed from gl_list_create.
26206         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
26207         (gl_list_nx_set_at): Renamed from gl_list_set_at.
26208         (gl_list_nx_add_first): Renamed from gl_list_add_first.
26209         (gl_list_nx_add_last): Renamed from gl_list_add_last.
26210         (gl_list_nx_add_before): Renamed from gl_list_add_before.
26211         (gl_list_nx_add_after): Renamed from gl_list_add_after.
26212         (gl_list_nx_add_at): Renamed from gl_list_add_at.
26213         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
26214         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
26215         gl_list_create_empty.
26216         (gl_list_nx_create): Renamed from gl_list_create.
26217         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
26218         (gl_list_nx_set_at): Renamed from gl_list_set_at.
26219         (gl_list_nx_add_first): Renamed from gl_list_add_first.
26220         (gl_list_nx_add_last): Renamed from gl_list_add_last.
26221         (gl_list_nx_add_before): Renamed from gl_list_add_before.
26222         (gl_list_nx_add_after): Renamed from gl_list_add_after.
26223         (gl_list_nx_add_at): Renamed from gl_list_add_at.
26224         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
26225         * lib/gl_array_list.c: Don't include xalloc.h.
26226         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
26227         NULL upon out-of-memory.
26228         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
26229         out-of-memory.
26230         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
26231         Change return type to 'int'.
26232         (gl_array_nx_set_at): Renamed from gl_array_set_at.
26233         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
26234         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
26235         upon out-of-memory.
26236         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
26237         upon out-of-memory.
26238         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
26239         upon out-of-memory.
26240         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
26241         upon out-of-memory.
26242         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
26243         out-of-memory.
26244         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
26245         Update.
26246         (gl_array_list_implementation): Update.
26247         * lib/gl_carray_list.c: Don't include xalloc.h.
26248         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
26249         Return NULL upon out-of-memory.
26250         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
26251         out-of-memory.
26252         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
26253         Change return type to 'int'.
26254         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
26255         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
26256         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
26257         upon out-of-memory.
26258         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
26259         upon out-of-memory.
26260         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
26261         out-of-memory.
26262         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
26263         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
26264         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
26265         Update.
26266         (gl_carray_list_implementation): Update.
26267         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
26268         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
26269         gl_linked_create_empty. Return NULL upon out-of-memory.
26270         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
26271         out-of-memory.
26272         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
26273         Change return type to 'int'. Return -1 upon out-of-memory.
26274         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
26275         out-of-memory.
26276         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
26277         upon out-of-memory.
26278         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
26279         upon out-of-memory.
26280         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
26281         NULL upon out-of-memory.
26282         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
26283         upon out-of-memory.
26284         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
26285         out-of-memory.
26286         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
26287         Update.
26288         * lib/gl_linked_list.c: Don't include xalloc.h.
26289         (gl_linked_list_implementation): Update.
26290         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
26291         (add_to_bucket): Change return type to 'int'.
26292         (gl_linkedhash_list_implementation): Update.
26293         * lib/gl_anytree_list1.h (free_subtree): New function.
26294         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
26295         gl_tree_create_empty. Return NULL upon out-of-memory.
26296         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
26297         Change return type to 'int'. Return -1 upon out-of-memory.
26298         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
26299         out-of-memory.
26300         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
26301         (gl_tree_remove_node): New function, moved here from
26302         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
26303         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
26304         Update.
26305         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
26306         malloc, not xmalloc. Return NULL upon out-of-memory.
26307         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
26308         out-of-memory.
26309         (gl_tree_remove_node_from_tree): New function, extracted from
26310         gl_tree_remove_node.
26311         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
26312         upon out-of-memory.
26313         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
26314         out-of-memory.
26315         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
26316         upon out-of-memory.
26317         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
26318         upon out-of-memory.
26319         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
26320         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
26321         not xmalloc. Return NULL upon out-of-memory.
26322         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
26323         out-of-memory.
26324         (gl_tree_remove_node_from_tree): New function, extracted from
26325         gl_tree_remove_node.
26326         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
26327         upon out-of-memory.
26328         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
26329         out-of-memory.
26330         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
26331         upon out-of-memory.
26332         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
26333         upon out-of-memory.
26334         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
26335         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
26336         gl_anytree_list1.h before gl_anyavltree_list2.h.
26337         (gl_avltree_list_implementation): Update.
26338         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
26339         gl_anytree_list1.h before gl_anyavltree_list2.h.
26340         (gl_rbtree_list_implementation): Update.
26341         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
26342         Change return type to 'int'. Return -1 upon out-of-memory. Use
26343         __builtin_expect.
26344         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
26345         (gl_avltreehash_list_implementation): Update.
26346         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
26347         (gl_rbtreehash_list_implementation): Update.
26348         * modules/array-list (Depends-on): Remove xalloc.
26349         * modules/carray-list (Depends-on): Likewise.
26350         * modules/linked-list (Depends-on): Likewise.
26351         * modules/linkedhash-list (Depends-on): Likewise.
26352         * modules/avltree-list (Depends-on): Likewise.
26353         * modules/rbtree-list (Depends-on): Likewise.
26354         * modules/avltreehash-list (Depends-on): Likewise.
26355         * modules/rbtreehash-list (Depends-on): Likewise.
26356
26357         * modules/xsublist: New file.
26358         * lib/gl_xsublist.h: New file.
26359         * lib/gl_xsublist.c: New file.
26360         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
26361         (gl_sublist_nx_create): New declaration.
26362         * lib/gl_sublist.c: Don't include xalloc.h.
26363         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
26364         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
26365         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
26366         Change return type to 'int'. Return -1 upon out-of-memory.
26367         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
26368         upon out-of-memory.
26369         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
26370         NULL upon out-of-memory.
26371         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
26372         upon out-of-memory.
26373         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
26374         NULL upon out-of-memory.
26375         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
26376         NULL upon out-of-memory.
26377         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
26378         upon out-of-memory.
26379         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
26380         (gl_sublist_list_implementation): Update.
26381         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
26382         upon out-of-memory.
26383         * modules/sublist (Depends-on): Remove xalloc.
26384
26385         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
26386         * tests/test-carray_list.c: Likewise.
26387         * tests/test-linked_list.c: Likewise.
26388         * tests/test-linkedhash_list.c: Likewise.
26389         * tests/test-avltree_list.c: Likewise.
26390         * tests/test-rbtree_list.c: Likewise.
26391         * tests/test-avltreehash_list.c: Likewise.
26392         * tests/test-rbtreehash_list.c: Likewise.
26393         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
26394         * modules/carray-list-tests (Makefile.am): Likewise.
26395         * modules/linked-list-tests (Makefile.am): Likewise.
26396         * modules/linkedhash-list-tests (Makefile.am): Likewise.
26397         * modules/avltree-list-tests (Makefile.am): Likewise.
26398         * modules/rbtree-list-tests (Makefile.am): Likewise.
26399         * modules/avltreehash-list-tests (Makefile.am): Likewise.
26400         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
26401
26402         * NEWS: Mention the changes.
26403
26404         * lib/clean-temp.c: Include gl_xlist.h.
26405         * modules/clean-temp (Depends-on): Add xlist.
26406
26407         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
26408         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
26409
26410         * tests/test-array_oset.c: Include gl_xlist.h.
26411         * modules/array-oset-tests (Depends-on): Add xlist.
26412
26413         Reported by José E. Marchesi <jemarch@gnu.org>.
26414
26415 2009-12-13  Bruno Haible  <bruno@clisp.org>
26416
26417         Move the malloc checking from module 'oset' to new module 'xoset'.
26418         * modules/xoset: New file.
26419         * lib/gl_xoset.h: New file.
26420         * lib/gl_xoset.c: New file.
26421         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
26422         declarations.
26423         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
26424         (struct gl_oset_implementation): Rename and change methods accordingly.
26425         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
26426         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
26427         'int'. Mark as __warn_unused_result__.
26428         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
26429         gl_oset_create_empty.
26430         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
26431         'int'.
26432         * lib/gl_array_oset.c: Don't include xalloc.h.
26433         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
26434         malloc, not xmalloc.
26435         (grow): Change return type to 'int'. Don't call xalloc_die.
26436         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
26437         to 'int'.
26438         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
26439         'int'.
26440         (gl_array_oset_implementation): Update.
26441         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
26442         gl_tree_create_empty.
26443         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
26444         'int'.
26445         * lib/gl_avltree_oset.c: Don't include xalloc.h.
26446         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
26447         xmalloc.
26448         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
26449         not xmalloc.
26450         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
26451         xmalloc.
26452         (gl_avltree_oset_implementation): Update.
26453         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
26454         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
26455         xmalloc.
26456         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
26457         not xmalloc.
26458         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
26459         xmalloc.
26460         (gl_rbtree_oset_implementation): Update.
26461         * modules/array-oset (Depends-on): Remove xalloc.
26462         * modules/avltree-oset (Depends-on): Likewise.
26463         * modules/rbtree-oset (Depends-on): Likewise.
26464         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
26465         * tests/test-avltree_oset.c: Likewise.
26466         * tests/test-rbtree_oset.c: Likewise.
26467         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
26468         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
26469         * modules/rbtree-oset-tests (Makefile.am): Likewise.
26470         * NEWS: Mention the change.
26471
26472 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
26473
26474         maint.mk: allow a project to override release-prep commands
26475         * top/maint.mk (alpha, beta, stable): Move release-preparatory
26476         commands into a new rule.
26477         (release-prep): New rule.
26478         (release-prep-hook): New overridable variable.
26479
26480 2009-12-13  Bruno Haible  <bruno@clisp.org>
26481
26482         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
26483
26484 2009-12-13  Jim Meyering  <meyering@redhat.com>
26485
26486         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
26487         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
26488
26489 2009-12-12  Bruno Haible  <bruno@clisp.org>
26490
26491         duplocale: Tweak.
26492         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
26493
26494 2009-12-12  Karl Berry  <karl@gnu.org>
26495
26496         * config/srclist.txt (strtoll.c): tab changes, no more sync.
26497
26498 2009-12-12  Bruno Haible  <bruno@clisp.org>
26499
26500         * m4/po.m4: Undo incorrect untabification.
26501
26502 2009-12-12  Bruno Haible  <bruno@clisp.org>
26503
26504         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
26505         * modules/c-strtod (Depends-on): Add locale.
26506         * modules/c-strtold (Depends-on): Likewise.
26507
26508 2009-12-12  Bruno Haible  <bruno@clisp.org>
26509
26510         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
26511
26512 2009-12-11  Eric Blake  <ebb9@byu.net>
26513
26514         setenv: relax requirement in light of POSIX ruling
26515         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
26516         not NULL.
26517         * tests/test-setenv.c (main): Relax test.
26518         * tests/test-unsetenv.c (main): Likewise.
26519         * doc/posix-functions/setenv.texi (setenv): Document this.
26520         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
26521
26522 2009-12-11  Bruno Haible  <bruno@clisp.org>
26523
26524         New module 'fd-safer-flag'.
26525         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
26526         * lib/dup-safer.c (dup_safer_flag): Remove function.
26527         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
26528         * lib/fd-safer.c (fd_safer_flag): Remove function.
26529         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
26530         * modules/cloexec (configure.ac): Drop indicator macro.
26531         * modules/fd-safer-flag: New file.
26532         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
26533         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
26534         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
26535
26536 2009-12-11  Bruno Haible  <bruno@clisp.org>
26537
26538         Tests for module 'nl_langinfo'.
26539         * modules/nl_langinfo-tests: New file.
26540         * tests/test-nl_langinfo.sh: New file.
26541         * tests/test-nl_langinfo.c: New file.
26542
26543         New module 'nl_langinfo'.
26544         * lib/nl_langinfo.c: New file.
26545         * m4/nl_langinfo.m4: New file.
26546         * modules/nl_langinfo: New file.
26547         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
26548
26549 2009-12-11  Bruno Haible  <bruno@clisp.org>
26550
26551         Tests for module 'langinfo'.
26552         * modules/langinfo-tests: New file.
26553         * tests/test-langinfo.c: New file.
26554
26555         New module 'langinfo'.
26556         * lib/langinfo.in.h: New file.
26557         * m4/langinfo_h.m4: New file.
26558         * modules/langinfo: New file.
26559         * doc/posix-headers/langinfo.texi: Mention the new module.
26560
26561 2009-12-11  Bruno Haible  <bruno@clisp.org>
26562
26563         * lib/config.charset: Untabify.
26564
26565 2009-12-11  Bruno Haible  <bruno@clisp.org>
26566
26567         * modules/unistd-safer (configure.ac): Drop indicator macro.
26568
26569 2009-12-11  Bruno Haible  <bruno@clisp.org>
26570
26571         Move pipe2-safer code to its own file.
26572         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
26573         * lib/pipe-safer.c (pipe2_safer): Remove function.
26574         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
26575         (Makefile.am): Add it to lib_SOURCES.
26576
26577 2009-12-10  Bruno Haible  <bruno@clisp.org>
26578
26579         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
26580
26581 2009-12-10  Bruno Haible  <bruno@clisp.org>
26582
26583         Declare which arguments expect non-NULL values, for GCC and clang.
26584         * build-aux/arg-nonnull.h: New file.
26585         * modules/arg-nonnull: New file.
26586         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
26587         (inet_ntop, inet_pton): Use it.
26588         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
26589         (closedir, dirfd, opendir, scandir, alphasort): Use it.
26590         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
26591         (open, openat): Use it.
26592         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
26593         (fnmatch): Use it.
26594         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
26595         (getopt, getopt_long, getopt_long_only): Use it.
26596         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
26597         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
26598         Use it.
26599         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
26600         (iconv_open): Use it.
26601         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
26602         (strtoimax, strtoumax): Use it.
26603         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
26604         (duplocale): Use it.
26605         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
26606         (frexp, frexpl): Use it.
26607         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
26608         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
26609         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
26610         (tsearch, tfind, tdelete, twalk): Use it.
26611         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
26612         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
26613         sigpending): Use it.
26614         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
26615         (posix_spawn, posix_spawnp, posix_spawnattr_init,
26616         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
26617         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
26618         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
26619         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
26620         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
26621         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
26622         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
26623         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
26624         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
26625         Use it.
26626         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
26627         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
26628         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
26629         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
26630         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
26631         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
26632         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
26633         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
26634         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
26635         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
26636         strtoull, unsetenv): Use it.
26637         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
26638         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
26639         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
26640         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
26641         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
26642         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
26643         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
26644         (strcasecmp, strncasecmp): Use it.
26645         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
26646         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
26647         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
26648         rpl_setsockopt): Use it.
26649         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
26650         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
26651         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
26652         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
26653         (gettimeofday): Use it.
26654         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
26655         (times): Use it.
26656         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
26657         (uname): Use it.
26658         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
26659         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
26660         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
26661         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
26662         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
26663         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
26664         unlinkat, write): Use it.
26665         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
26666         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
26667         * lib/argv-iter.h: Include arg-nonnull.h.
26668         (_ATTRIBUTE_NONNULL_): Remove macro.
26669         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
26670         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
26671         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
26672         optimization.
26673         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
26674         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
26675         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
26676         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
26677         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
26678         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
26679         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
26680         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
26681         * modules/arpa_inet (Depends-on): Add arg-nonnull.
26682         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
26683         * modules/dirent (Depends-on): Add arg-nonnull.
26684         (Makefile.am): Insert arg-nonnull.h into dirent.h.
26685         * modules/fcntl-h (Depends-on): Add arg-nonnull.
26686         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
26687         * modules/fnmatch (Depends-on): Add arg-nonnull.
26688         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
26689         * modules/getopt-posix (Depends-on): Add arg-nonnull.
26690         (Makefile.am): Insert arg-nonnull.h into getopt.h.
26691         * modules/glob (Depends-on): Add arg-nonnull.
26692         (Makefile.am): Insert arg-nonnull.h into glob.h.
26693         * modules/iconv_open (Depends-on): Add arg-nonnull.
26694         (Makefile.am): Insert arg-nonnull.h into iconv.h.
26695         * modules/inttypes (Depends-on): Add arg-nonnull.
26696         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
26697         * modules/locale (Depends-on): Add arg-nonnull.
26698         (Makefile.am): Insert arg-nonnull.h into locale.h.
26699         * modules/math (Depends-on): Add arg-nonnull.
26700         (Makefile.am): Insert arg-nonnull.h into math.h.
26701         * modules/netdb (Depends-on): Add arg-nonnull.
26702         (Makefile.am): Insert arg-nonnull.h into netdb.h.
26703         * modules/search (Depends-on): Add arg-nonnull.
26704         (Makefile.am): Insert arg-nonnull.h into search.h.
26705         * modules/signal (Depends-on): Add arg-nonnull.
26706         (Makefile.am): Insert arg-nonnull.h into signal.h.
26707         * modules/spawn (Depends-on): Add arg-nonnull.
26708         (Makefile.am): Insert arg-nonnull.h into spawn.h.
26709         * modules/stdio (Depends-on): Add arg-nonnull.
26710         (Makefile.am): Insert arg-nonnull.h into stdio.h.
26711         * modules/stdlib (Depends-on): Add arg-nonnull.
26712         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
26713         * modules/string (Depends-on): Add arg-nonnull.
26714         (Makefile.am): Insert arg-nonnull.h into string.h.
26715         * modules/strings (Depends-on): Add arg-nonnull.
26716         (Makefile.am): Insert arg-nonnull.h into strings.h.
26717         * modules/sys_socket (Depends-on): Add arg-nonnull.
26718         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
26719         * modules/sys_stat (Depends-on): Add arg-nonnull.
26720         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
26721         * modules/sys_time (Depends-on): Add arg-nonnull.
26722         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
26723         * modules/sys_times (Depends-on): Add arg-nonnull.
26724         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
26725         * modules/sys_utsname (Depends-on): Add arg-nonnull.
26726         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
26727         * modules/time (Depends-on): Add arg-nonnull.
26728         (Makefile.am): Insert arg-nonnull.h into time.h.
26729         * modules/unistd (Depends-on): Add arg-nonnull.
26730         (Makefile.am): Insert arg-nonnull.h into unistd.h.
26731         * modules/wchar (Depends-on): Add arg-nonnull.
26732         (Makefile.am): Insert arg-nonnull.h into wchar.h.
26733         * modules/argv-iter (Depends-on): Add arg-nonnull.
26734         * tests/test-canonicalize.c (null_ptr): New function.
26735         (main): Use it.
26736         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
26737         (main): Use it.
26738         * tests/test-memmem.c (null_ptr): New function.
26739         (main): Use it.
26740         Reported by Jim Meyering.
26741
26742 2009-12-10  Bruno Haible  <bruno@clisp.org>
26743
26744         Use spaces for indentation, not tabs.
26745         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
26746         * m4/*.m4: Untabify.
26747         * build-aux/*.h: Untabify.
26748         * tests/**/*.[hc]: Untabify.
26749         * README: New section "Indent with spaces, not TABs", based on
26750         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
26751         * NEWS: Mention the change.
26752
26753 2009-12-10  Bruno Haible  <bruno@clisp.org>
26754
26755         pty test: Fix link error.
26756         * modules/pty-tests (Makefile.am): Add the default LDADD value to
26757         test_pty_LDADD.
26758
26759 2009-12-07  Simon Josefsson  <simon@josefsson.org>
26760
26761         * modules/pty: New file.
26762         * modules/pty-tests: New file.
26763         * m4/pty.m4: New file.
26764         * tests/test-pty.c: New file.
26765         * doc/glibc-headers/pty.texi: Modified.
26766         * doc/glibc-functions/forkpty.texi: Modified.
26767         * doc/glibc-functions/openpty.texi: Modified.
26768
26769 2009-12-10  Bruno Haible  <bruno@clisp.org>
26770
26771         Avoid syntax error in C++ mode.
26772         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
26773
26774 2009-12-10  Bruno Haible  <bruno@clisp.org>
26775
26776         Use sed with option -e.
26777         * gnulib-tool (func_version, func_emit_copyright_notice,
26778         func_emit_initmacro_end, func_import, func_create_testdir): Pass
26779         option -e to sed.
26780         * modules/link-warning (Makefile.am): Likewise.
26781
26782 2009-12-10  Jim Meyering  <meyering@redhat.com>
26783
26784         mgetgroups: do not write bytes beyond end of malloc'd buffer
26785         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
26786         username, we call getgroups with a one-element-shorter buffer,
26787         but still told it the length was original, max_n_groups.
26788
26789 2009-12-09  Eric Blake  <ebb9@byu.net>
26790
26791         cloexec: relax license
26792         * modules/cloexec (Maintainer): Add myself.
26793         (License): Use LGPL, not GPL.
26794
26795         link-warning: optimize generation
26796         * modules/link-warning (Makefile.am): Reduce process usage.
26797
26798 2009-12-09  Bruno Haible  <bruno@clisp.org>
26799
26800         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
26801         workaround was added on 2009-11-17.
26802
26803 2009-12-09  Jim Meyering  <meyering@redhat.com>
26804             Bruno Haible  <bruno@clisp.org>
26805
26806         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
26807         * modules/link-warning (Makefile.am): Make the comment-removing sed
26808         command more robust in the face of bootstrap-prepended comment lines.
26809
26810 2009-12-09  Bruno Haible  <bruno@clisp.org>
26811
26812         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
26813         most one group.
26814
26815 2009-12-09  Simon Josefsson <simon@josefsson.org>
26816             Bruno Haible  <bruno@clisp.org>
26817
26818         * build-aux/link-warning.h: Add copyright notice.
26819         * modules/link-warning (Makefile.am): Generate link-warning.h from
26820         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
26821         * NEWS: Mention change in link-warning module.
26822         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
26823         * modules/dirent (Makefile.am): Add dependency to dirent.h.
26824         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
26825         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
26826         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
26827         * modules/math (Makefile.am): Add dependency to math.h.
26828         * modules/search (Makefile.am): Add dependency to search.h.
26829         * modules/signal (Makefile.am): Add dependency to signal.h.
26830         * modules/spawn (Makefile.am): Add dependency to spawn.h.
26831         * modules/stdio (Makefile.am): Add dependency to stdio.h.
26832         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
26833         * modules/string (Makefile.am): Add dependency to string.h.
26834         * modules/strings (Makefile.am): Add dependency to strings.h.
26835         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
26836         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
26837         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
26838         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
26839         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
26840         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
26841         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
26842         * modules/unistd (Makefile.am): Add dependency to unistd.h.
26843         * modules/wchar (Makefile.am): Add dependency to wchar.h.
26844
26845 2009-12-09  Bruno Haible  <bruno@clisp.org>
26846
26847         fchdir: Optimize away rpl_fstat when possible.
26848         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
26849         REPLACE_OPEN_DIRECTORY.
26850         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
26851
26852 2009-12-09  Bruno Haible  <bruno@clisp.org>
26853
26854         * lib/fchdir.c: Update comment.
26855
26856 2009-12-09  Bruno Haible  <bruno@clisp.org>
26857
26858         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
26859
26860 2009-12-08  Eric Blake  <ebb9@byu.net>
26861
26862         fchdir: avoid memory leak on re-registration.
26863         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
26864
26865 2009-12-08  Jim Meyering  <meyering@redhat.com>
26866
26867         init.sh: avoid Solaris 10 /bin/sh portability problem
26868         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
26869         sourced script:
26870           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
26871           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
26872           bar
26873         tests/init.sh relied on that, accepting a --set-path=DIR argument,
26874         and two tests used that idiom.
26875         * tests/init.sh: Update suggested usage comments.
26876         (path_prepend_): New function, to be used in place
26877         of the --src-path=DIR option.
26878         (setup_): Move PATH-prepending code into path_prepend_.
26879         * tests/test-pread.sh: Adapt to new usage.
26880         * tests/test-xalloc-die.sh: Likewise.
26881
26882 2009-12-08  Simon Josefsson  <simon@josefsson.org>
26883
26884         * doc/gnulib.texi (Glibc pty.h): Add.
26885         * doc/glibc-functions/forkpty.texi: Add.
26886         * doc/glibc-functions/openpty.texi: Add.
26887         Suggested by Bruno Haible.
26888
26889 2009-12-08  Eric Blake  <ebb9@byu.net>
26890
26891         fchdir: fix logic bugs
26892         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
26893         * tests/test-fchdir.c (main): Enhance test.
26894         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
26895         is in use.
26896
26897         dup2: fix logic bugs
26898         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
26899         REPLACE_DUP2 to decide when rpl_dup2 is needed.
26900         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
26901         exists.
26902         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
26903
26904 2009-12-07  Eric Blake  <ebb9@byu.net>
26905
26906         unlink: fix m4 detection
26907         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
26908
26909         unistd-safer: add unit test
26910         * modules/unistd-safer-tests: New file.
26911         * tests/test-dup-safer.c: Likewise.
26912         * tests/test-cloexec.c (setmode): Avoid compiler warning.
26913         * tests/test-dup2.c (setmode): Likewise.
26914         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
26915
26916         cloexec: preserve text vs. binary across dup_cloexec
26917         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
26918         mode.
26919         * modules/dup2-tests (Depends-on): Add binary-io.
26920         * modules/cloexec-tests (Depends-on): Likewise.
26921         * tests/test-dup2.c (setmode, is_mode): New helpers.
26922         (main): Add tests that translation mode is preserved.
26923         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
26924         Reported by Bruno Haible.
26925
26926         mgetgroups: reduce duplicate listings
26927         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
26928         resulting array.
26929         * tests/test-chown.h (test_chown): Simplify client.
26930         * tests/test-lchown.h (test_lchown): Likewise.
26931
26932 2009-12-06  Bruno Haible  <bruno@clisp.org>
26933
26934         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
26935         value.
26936
26937 2009-12-06  Bruno Haible  <bruno@clisp.org>
26938
26939         * lib/progname.c: Include stdio.h, stdlib.h.
26940         (set_program_name): Reject a NULL argument.
26941
26942 2009-12-05  Eric Blake  <ebb9@byu.net>
26943
26944         pipe2-safer: new module
26945         * modules/pipe2-safer: New file.
26946         * lib/unistd-safer.h (pipe2_safer): New prototype.
26947         * lib/unistd--.h (pipe2): New wrapper.
26948         * lib/pipe-safer.c (pipe2_safer): New function.
26949         * modules/pipe (Depends-on): Add pipe2-safer.
26950         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
26951
26952         stdlib-safer: preserve cloexec flag for mkostemp[s]
26953         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
26954         fd_safer_flag.
26955
26956         unistd-safer: allow preservation of cloexec status via flag
26957         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
26958         prototypes.
26959         * lib/dup-safer.c (dup_safer_flag): New function.
26960         * lib/fd-safer.c (fd_safer_flag): Likewise.
26961         * modules/cloexec (configure.ac): Set witness.
26962
26963         test-dup2: enhance test
26964         * modules/dup2-tests (Depends-on): Add cloexec.
26965         * tests/test-dup2.c (main): Enhance test.
26966
26967         cloexec: add dup_cloexec
26968         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
26969         header and comments.
26970         * lib/cloexec.c (set_cloexec_flag): Add comments.
26971         (dup_cloexec): New function, with mingw implementation borrowed
26972         from...
26973         * lib/w32spawn.h (dup_noinherit): ...here.
26974         * modules/execute (Depends-on): Add cloexec.
26975         * modules/pipe (Depends-on): Likewise.
26976         * modules/cloexec (Depends-on): Add dup2.
26977         * modules/cloexec-tests (Files): New file.
26978         * tests/test-cloexec.c: Likewise.
26979
26980         test-xalloc-die: fix test for mingw
26981         * modules/xalloc-die-tests (Files): Add tests/init.sh.
26982         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
26983         directory and .exe suffix off argv[0] output.
26984
26985         test-fseeko: fix test for mingw
26986         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
26987         than undefining fseek, so test will pass on mingw.
26988
26989 2009-12-05  Bruno Haible  <bruno@clisp.org>
26990
26991         * lib/progname.h (set_program_name): Clarify specification.
26992         * lib/progname.c (set_program_name): Likewise.
26993         Reported by Jim Meyering.
26994
26995 2009-12-05  Jim Meyering  <meyering@redhat.com>
26996
26997         maint.mk: backslash-escape parens in default regexp
26998         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
26999         backslash-escape the literal parentheses.
27000
27001         maint.mk: news-date-check: use grep -E
27002         * top/maint.mk (today): Define a Make variable, not a...
27003         (news-date-check): ...shell variable.
27004         (news-date-regexp): Use the Make variable.
27005         Use grep's -E option.  Change the failing diagnostic to mention
27006         the variable, $(news-date-regexp).
27007
27008 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
27009
27010         maintainer-makefile: allow customization of NEWS entry format
27011         * top/maint.mk (news-date-regexp): New overridable variable.
27012         (news-date-check): Use it.
27013
27014 2009-12-04  Eric Blake  <ebb9@byu.net>
27015
27016         mgetgroups: add xgetgroups, and avoid ENOSYS failures
27017         * lib/mgetgroups.h (xgetgroups): New prototype.
27018         * lib/mgetgroups.c (xgetgroups): New wrapper.
27019         (mgetgroups): Handle ENOSYS.
27020         * modules/mgetgroups (Depends-on): Add realloc.
27021         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
27022
27023         mgetgroups: avoid argument promotion issues with -1
27024         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
27025         for invalid gid_t.
27026         * tests/test-chown.h (getegid, test_chown): Likewise.
27027         * tests/test-lchown.h (getegid, test_lchown): Likewise.
27028
27029 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
27030
27031         exclude: Fix header file problems.
27032         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
27033
27034 2009-12-01  Jim Meyering  <meyering@redhat.com>
27035
27036         fts: fts_open: do not let an empty string cause immediate failure
27037         This is required in support of GNU rm, for which the command
27038         "rm A '' B" must process and remove both A and B, in spite of
27039         the empty string argument.
27040         * lib/fts.c (fts_open): Do not let the presence of an empty string
27041         cause fts_open to fail immediately.  Most fts-using tools must be
27042         able to process all arguments, in order, and can be expected to
27043         diagnose such arguments themselves.
27044
27045 2009-11-30  Eric Blake  <ebb9@byu.net>
27046
27047         utimens: fix compilation error
27048         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
27049         Declare variable at right scope.
27050
27051 2009-11-29  Jim Meyering  <meyering@redhat.com>
27052
27053         bootstrap: handle perl-5.11's changed --version output
27054         * build-aux/bootstrap (get_version): Handle perl separately,
27055         since perl-5.11's --version output is different.
27056
27057 2009-11-28  Jim Meyering  <meyering@redhat.com>
27058
27059         userspec: depend on the inttostr module, too
27060         * modules/userspec (Depends-on): Add inttostr.
27061
27062         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
27063         * lib/userspec.c (parse_with_separator): Do not accept a user ID
27064         number of MAXUID when it evaluates to (uid_t) -1.
27065         Likewise for group ID.  Reported by Matt McCutchen in
27066         <http://savannah.gnu.org/bugs/?28113>
27067
27068         userspec: reformat to use spaces, not TABs
27069         * lib/userspec.c: Expand TABs to spaces.
27070         Add Emacs' "indent-tabs-mode: nil" hint.
27071
27072 2009-11-27  Eric Blake  <ebb9@byu.net>
27073
27074         getopt-gnu: flush out another BSD bug
27075         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
27076         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
27077         flush out BSD bug.
27078         * tests/test-getopt.h (test_getopt): End lists with NULL.
27079         * tests/test-getopt_long.h (test_getopt_long): Likewise.
27080         (test_getopt_long_posix): Enhance test.
27081         * modules/getopt-posix-tests (Depends-on): Add stdbool.
27082         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
27083         getopt-gnu.
27084         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
27085         Likewise.
27086
27087 2009-11-27  Simon Josefsson  <simon@josefsson.org>
27088
27089         * modules/idpriv-droptemp-tests (Notice): Fix text.
27090
27091 2009-11-27  Jim Meyering  <meyering@redhat.com>
27092
27093         test-xalloc-die: avoid spurious failure due to libtool argv difference
27094         In a libtool-enabled project, this test would fail due to a difference
27095         in the emitted program name, e.g.,
27096         -test-xalloc-die: memory exhausted
27097         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
27098         Use program to avoid that.
27099         * modules/xalloc-die-tests (Depends-on): Add progname.
27100         * tests/test-xalloc-die.c: Include progname.h".
27101         (program_name): Remove decl.
27102         (main): Call set_program_name.
27103         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
27104
27105 2009-11-26  Richard Jones  <rjones@redhat.com>
27106
27107         w32sock: leave win32 error in place.
27108         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
27109
27110 2009-11-26  Eric Blake  <ebb9@byu.net>
27111
27112         init.sh: suggest to use skip_ and fail_ functions in comments
27113         * tests/init.sh: Add a sentence.
27114
27115 2009-11-25  Bruno Haible  <bruno@clisp.org>
27116
27117         init.sh: add documentation in comments
27118         * tests/init.sh: Add some developer and user documentation.
27119
27120 2009-11-26  Jim Meyering  <meyering@redhat.com>
27121
27122         init.sh: accommodate even those who specify bogus srcdir manually
27123         * tests/init.sh: Normally, srcdir is guaranteed by automake and
27124         configure-time tests to be sanitized, so that there is no need to
27125         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
27126         (with no double quotes) suffices.  However, since tests may be
27127         invoked manually, and since you may explicitly set srcdir to the
27128         name of a directory containing spaces, do quote its uses here.
27129         * tests/test-pread.sh: Likewise.
27130         Suggested by Bruno Haible.
27131
27132         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
27133         * tests/test-pread.sh: Write no data into the pipe, because
27134         test-pread actually reads none.  This avoids a diagnostic,
27135         "bash: echo: write error: Broken pipe", that arises in the unusual
27136         event something is ignoring SIGPIPE, and might be interpreted
27137         as some sort of failure.  Reported by Bruno Haible.
27138
27139 2009-11-25  Jim Meyering  <meyering@redhat.com>
27140
27141         test-pread: cover failure with ESPIPE and EINVAL
27142         * tests/test-pread.c (main): Test for failure, too.
27143         * tests/test-pread.sh: Invoke with stdin on a pipe.
27144         Suggested by Eric Blake.
27145
27146         pread: improvement and fix
27147         * modules/pread (Depends-on): Depend on lseek, for portability to
27148         e.g., mingw.  Suggested by Eric Blake.
27149         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
27150
27151         unistd.in.h: correct declaration of pread
27152         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
27153         Reported by Richard W.M. Jones.
27154
27155         test-pread.sh: distribute the test script
27156         * modules/pread-tests (Files): Include test-pread.sh.
27157
27158         test-pread.sh: clean up
27159         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
27160         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
27161         That is unnecessary, since it's always ".".
27162         Suggestion from Eric Blake.
27163
27164         test-pread.sh: make executable
27165         * tests/test-pread.sh: Set executable bit.
27166         Reported by Eric Blake.
27167
27168         correct typo in test-pread.sh
27169         * tests/test-pread.sh: Add #! line.
27170
27171         test pread
27172         * tests/test-pread.c: New file.
27173         * tests/test-pread.sh: Likewise.
27174         * modules/pread-tests: Likewise.
27175
27176         pread: new module
27177         * modules/pread: New file.
27178         * lib/unistd.in.h (pread): Define/declare.
27179         * lib/pread.c (pread): New file.
27180         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
27181         * modules/unistd (Makefile.am): Substitute witnesses.
27182         * doc/posix-functions/pread.texi (pread): Update.
27183         * MODULES.html.sh: Add pread.
27184
27185 2009-11-25  Jim Meyering  <meyering@redhat.com>
27186
27187         tests/init.sh: new file to be used via most *.sh tests
27188         * tests/init.sh: New file.
27189
27190 2009-11-25  Eric Blake  <ebb9@byu.net>
27191
27192         utimens: work around older Linux failure with symlinks
27193         * lib/utimens.c (lutimensat_works_really): New variable.
27194         (fdutimens, lutimens): Use it to manage kernels that support
27195         nanosecond times on files, but not on symlinks.
27196         Reported by Ondřej Vašík.
27197
27198         utimes: fix configure grammar
27199         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
27200
27201 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
27202
27203         regex: Fix fastmap for multibyte character ranges.
27204         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
27205         characters when a multibyte character range is included.
27206
27207 2009-11-22  Andy Wingo  <wingo@pobox.com>
27208
27209         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
27210         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
27211
27212 2009-11-24  Bruno Haible  <bruno@clisp.org>
27213
27214         doc: Most *_l functions exist in MacOS X 10.5.
27215         * doc/posix-functions/duplocale.texi: Update platforms list.
27216         * doc/posix-functions/freelocale.texi: Likewise.
27217         * doc/posix-functions/newlocale.texi: Likewise.
27218         * doc/posix-functions/uselocale.texi: Likewise.
27219         * doc/posix-functions/isalnum_l.texi: Likewise.
27220         * doc/posix-functions/isalpha_l.texi: Likewise.
27221         * doc/posix-functions/isblank_l.texi: Likewise.
27222         * doc/posix-functions/iscntrl_l.texi: Likewise.
27223         * doc/posix-functions/isdigit_l.texi: Likewise.
27224         * doc/posix-functions/isgraph_l.texi: Likewise.
27225         * doc/posix-functions/islower_l.texi: Likewise.
27226         * doc/posix-functions/isprint_l.texi: Likewise.
27227         * doc/posix-functions/ispunct_l.texi: Likewise.
27228         * doc/posix-functions/isspace_l.texi: Likewise.
27229         * doc/posix-functions/isupper_l.texi: Likewise.
27230         * doc/posix-functions/iswalnum_l.texi: Likewise.
27231         * doc/posix-functions/iswalpha_l.texi: Likewise.
27232         * doc/posix-functions/iswblank_l.texi: Likewise.
27233         * doc/posix-functions/iswcntrl_l.texi: Likewise.
27234         * doc/posix-functions/iswctype_l.texi: Likewise.
27235         * doc/posix-functions/iswdigit_l.texi: Likewise.
27236         * doc/posix-functions/iswgraph_l.texi: Likewise.
27237         * doc/posix-functions/iswlower_l.texi: Likewise.
27238         * doc/posix-functions/iswprint_l.texi: Likewise.
27239         * doc/posix-functions/iswpunct_l.texi: Likewise.
27240         * doc/posix-functions/iswspace_l.texi: Likewise.
27241         * doc/posix-functions/iswupper_l.texi: Likewise.
27242         * doc/posix-functions/iswxdigit_l.texi: Likewise.
27243         * doc/posix-functions/isxdigit_l.texi: Likewise.
27244         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
27245         * doc/posix-functions/strcasecmp_l.texi: Likewise.
27246         * doc/posix-functions/strcoll_l.texi: Likewise.
27247         * doc/posix-functions/strfmon_l.texi: Likewise.
27248         * doc/posix-functions/strftime_l.texi: Likewise.
27249         * doc/posix-functions/strncasecmp_l.texi: Likewise.
27250         * doc/posix-functions/strxfrm_l.texi: Likewise.
27251         * doc/posix-functions/tolower_l.texi: Likewise.
27252         * doc/posix-functions/toupper_l.texi: Likewise.
27253         * doc/posix-functions/towctrans_l.texi: Likewise.
27254         * doc/posix-functions/towlower_l.texi: Likewise.
27255         * doc/posix-functions/towupper_l.texi: Likewise.
27256         * doc/posix-functions/wcscoll_l.texi: Likewise.
27257         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
27258         * doc/posix-functions/wctrans_l.texi: Likewise.
27259         * doc/posix-functions/wctype_l.texi: Likewise.
27260         * doc/glibc-functions/strptime_l.texi: Likewise.
27261         * doc/glibc-functions/strtod_l.texi: Likewise.
27262         * doc/glibc-functions/strtof_l.texi: Likewise.
27263         * doc/glibc-functions/strtol_l.texi: Likewise.
27264         * doc/glibc-functions/strtold_l.texi: Likewise.
27265         * doc/glibc-functions/strtoll_l.texi: Likewise.
27266         * doc/glibc-functions/strtoul_l.texi: Likewise.
27267         * doc/glibc-functions/strtoull_l.texi: Likewise.
27268         * doc/glibc-functions/wcsftime_l.texi: Likewise.
27269         * doc/glibc-functions/wcstod_l.texi: Likewise.
27270         * doc/glibc-functions/wcstof_l.texi: Likewise.
27271         * doc/glibc-functions/wcstol_l.texi: Likewise.
27272         * doc/glibc-functions/wcstold_l.texi: Likewise.
27273         * doc/glibc-functions/wcstoll_l.texi: Likewise.
27274         * doc/glibc-functions/wcstoul_l.texi: Likewise.
27275         * doc/glibc-functions/wcstoull_l.texi: Likewise.
27276
27277 2009-11-24  Bruno Haible  <bruno@clisp.org>
27278
27279         duplocale: Fix logic bug.
27280         * lib/duplocale.c: Don't include <langinfo.h>.
27281         (_NL_LOCALE_NAME): Remove macro.
27282         (rpl_duplocale): Use setlocale instead of nl_langinfo.
27283         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
27284
27285 2009-11-23  Jim Meyering  <meyering@redhat.com>
27286
27287         test-update-copyright: don't hard-code /usr/bin/perl
27288         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
27289         perl to print the current year.  Gilles Espinasse reported that
27290         the replaced use of perl was hard-coded as /usr/bin/perl.
27291
27292 2009-11-23  Bruno Haible  <bruno@clisp.org>
27293
27294         duplocale: Add support for glibc 2.3.x.
27295         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
27296
27297 2009-11-22  Bruno Haible  <bruno@clisp.org>
27298
27299         vasnprintf: Tiny optimization.
27300         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
27301         MacOS X.
27302
27303 2009-11-22  Bruno Haible  <bruno@clisp.org>
27304
27305         Tests for module 'duplocale'.
27306         * modules/duplocale-tests: New file.
27307         * tests/test-duplocale.c: New file.
27308
27309         New module 'duplocale'.
27310         * m4/duplocale.m4: New file.
27311         * lib/locale.in.h (duplocale): New declaration.
27312         * lib/duplocale.c: New file.
27313         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
27314         gl_LOCALE_H_DEFAULTS): New macros.
27315         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
27316         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
27317         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
27318         REPLACE_DUPLOCALE.
27319         * modules/duplocale: New file.
27320         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
27321
27322 2009-11-22  Bruno Haible  <bruno@clisp.org>
27323
27324         * modules/locale-tests (configure.ac): Test for newlocale function.
27325         * tests/test-locale.c: When the system has extended locale functions,
27326         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
27327
27328         locale: Make locale_t available when possible.
27329         * lib/locale.in.h: Include <xlocale.h> when it exists.
27330         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
27331         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
27332         * modules/locale (Depends-on): Add extensions.
27333         (Makefile.am): Also substitute HAVE_XLOCALE_H.
27334         * doc/posix-headers/locale.texi: Document the problem with locale_t.
27335
27336 2009-11-22  Bruno Haible  <bruno@clisp.org>
27337
27338         Add comments.
27339         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
27340         invocation.
27341         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
27342         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
27343         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
27344
27345 2009-11-22  Bruno Haible  <bruno@clisp.org>
27346
27347         error: account for the possibility of freopen (stdout).
27348         * lib/error.c: Include <unistd.h>.
27349         (flush_stdout): New function, extracted from error and error_at_line.
27350         Determine stdout's fd dynamically.
27351         (error, error_at_line): Invoke flush_stdout.
27352         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
27353         * modules/error (Depends-on): Add unistd.
27354
27355 2009-11-22  Bruno Haible  <bruno@clisp.org>
27356
27357         diffseq: Add comment.
27358         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
27359
27360 2009-11-22  Jim Meyering  <meyering@redhat.com>
27361
27362         c-stack: avoid defining an unused static function
27363         * lib/c-stack.c (find_stack_direction): Do not define this function
27364         when it will not be used.
27365
27366         diffseq: avoid spurious gcc warnings
27367         * lib/diffseq.h (IF_LINT2): Define.
27368         (compareseq): Use it to initialize two members of "part".
27369         This avoids two used-uninitialized warnings.
27370
27371 2009-11-21  Jim Meyering  <meyering@redhat.com>
27372
27373         c-stack: avoid "ignoring return value of `write'" warning
27374         * lib/c-stack.c: Include "ignore-value.h".
27375         (die): Explicitly ignore each write return value.
27376         * modules/c-stack (Depends-on): Add ignore-value.
27377
27378 2009-11-21  Bruno Haible  <bruno@clisp.org>
27379
27380         diffseq: reduce scope of variable 'best'.
27381         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
27382         variable, earlier used for two different purposes.
27383
27384 2009-11-21  Jim Meyering  <meyering@redhat.com>
27385
27386         diffseq: remove useless assignment to "best"
27387         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
27388         assignment.  At that point "best" is already guaranteed to be zero.
27389
27390 2009-11-20  Eric Blake  <ebb9@byu.net>
27391
27392         build: mention ftp redirector in release announcements
27393         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
27394         values that used to come from cfg.mk; mention FTP redirect URL.
27395         * build-aux/announce-gen: Mention the mirror list.
27396         Suggested by Karl Berry.
27397
27398         nanosleep: improve port to mingw
27399         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
27400         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
27401         LIB_NANOSLEEP, but only when needed.
27402         * modules/select (Link): Document LIBSOCKET.
27403         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
27404         enough.
27405
27406         nanosleep: work around cygwin bug
27407         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
27408         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
27409         bug.
27410         (getnow): Delete, not needed.
27411         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
27412         LIB_CLOCK_GETTIME.
27413         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
27414         clock-time, gettime.
27415         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
27416         bug.
27417         * modules/nanosleep-tests: New test.
27418         * tests/test-nanosleep.c: New file.
27419
27420         sleep: work around cygwin bug
27421         * lib/sleep.c (rpl_sleep): Work around the bug.
27422         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
27423         (gl_PREREQ_SLEEP): Delete unused macro.
27424         * modules/sleep (Depends-on): Add verify.
27425         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
27426         * modules/unistd (Makefile.am): Substitute witness.
27427         * lib/unistd.in.h (sleep): Update prototype.
27428         * doc/posix-functions/sleep.texi (sleep): Document the bug.
27429         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
27430         * modules/sleep-tests (Depends-on): Check for alarm.
27431
27432 2009-11-20  Jim Meyering  <meyering@redhat.com>
27433
27434         maint.mk: improve sc_prohibit_magic_number_exit
27435         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
27436         so it does not match uses like System.exit(1).
27437         Add comments showing how to correct all offenders.
27438
27439 2009-11-19  Eric Blake  <ebb9@byu.net>
27440
27441         xalloc-die-tests: add missing library
27442         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
27443
27444         test-xvasprintf: silence compiler warnings
27445         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
27446         empty string from gcc.
27447
27448 2009-11-19  Jim Meyering  <meyering@redhat.com>
27449
27450         xfreopen: new module, from coreutils
27451         * modules/xfreopen: New module.
27452         * lib/xfreopen.c: New file.
27453         * lib/xfreopen.h: New file.
27454         * MODULES.html.sh (File stream based Input/Output"): Add it.
27455
27456 2009-11-19  Eric Blake  <ebb9@byu.net>
27457
27458         manywarnings: depend on warnings
27459         * modules/manywarnings (Depends-on): Add warnings.
27460
27461         build: avoid compiler warnings
27462         * lib/select.c (rpl_select): Delete unused variable.
27463         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
27464
27465 2009-11-18  Eric Blake  <ebb9@byu.net>
27466
27467         tests: avoid false negative with --with-packager
27468         * tests/test-version-etc.sh: Discard packager information.
27469         * tests/test-argp-version-etc-1.sh: Likewise.
27470         Reported by Mike Frysinger.
27471
27472         utimens: fix regression on Solaris
27473         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
27474         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
27475         can only change fd timestamps via futimesat.  Instead, use an
27476         additional witness macro to avoid BSD bug.
27477         Reported by Jim Meyering.
27478
27479 2009-11-17  Eric Blake  <ebb9@byu.net>
27480
27481         usleep: use it to simplify tests
27482         * modules/stat-time-tests (Depends-on): Add usleep.
27483         (configure.ac): Drop usleep check.
27484         * modules/chown-tests (Depends-on, configure.ac): Likewise.
27485         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
27486         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
27487         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
27488         * modules/openat-tests (Depends-on, configure.ac): Likewise.
27489         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
27490         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
27491         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
27492         Likewise.
27493         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
27494         * tests/test-lchown.h (nap): Likewise.
27495         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
27496         * tests/test-stat-time.c (nap): Likewise.
27497         * tests/test-utimens-common.h (nap): Update comments.
27498
27499         usleep: new module
27500         * modules/usleep: New file.
27501         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
27502         * lib/usleep.c (usleep): Likewise.
27503         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
27504         * modules/unistd (Makefile.am): Substitute witnesses.
27505         * lib/unistd.in.h (usleep): Add declaration.
27506         * doc/pastposix-functions/usleep.texi (usleep): Document this.
27507         * MODULES.html.sh (Date and time): Likewise.
27508         * modules/usleep-tests (Depends-on): New test.
27509         * tests/test-usleep.c: New file.
27510
27511         chown: work around OpenBSD bug
27512         * lib/chown.c (rpl_chown): Work around the bug.
27513         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
27514         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
27515         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
27516         * modules/chown (Depends-on): Add stdbool.
27517         * modules/lchown (Depends-on): Likewise.
27518         * doc/posix-functions/chown.texi (chown): Document the bug.
27519         * doc/posix-functions/lchown.texi (lchown): Likewise.
27520         * tests/test-lchown.h (test_chown): Relax test.
27521
27522         mkstemp: avoid conflict with C++ keyword template
27523         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
27524         * lib/mkostemp.c (mkostemp): Likewise.
27525         * lib/mkostemps.c (mkostemps): Likewise.
27526         * lib/mkstemp.c (mkstemp): Likewise.
27527         * lib/mkstemps.c (mkstemps): Likewise.
27528
27529         xalloc-die-tests: optimize
27530         * tests/test-xalloc-die.sh: Reduce number of processes.
27531
27532 2009-11-17  Simon Josefsson  <simon@josefsson.org>
27533
27534         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
27535         patch from ludo@gnu.org (Ludovic Courtès).
27536
27537 2009-11-17  Jim Meyering  <meyering@redhat.com>
27538
27539         version-etc: use proper license string
27540         * modules/version-etc (License): Use LGPL, not LGPLv3+.
27541         * modules/version-etc-fsf: Likewise.
27542
27543 2009-11-17  Simon Josefsson  <simon@josefsson.org>
27544
27545         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
27546         printed to stdout.  Deal with EOL differences.
27547
27548 2009-11-17  Eric Blake  <ebb9@byu.net>
27549
27550         unsetenv: work around Solaris bug
27551         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
27552         * lib/unsetenv.c (rpl_unsetenv): Work around it.
27553         Reported by Jim Meyering.
27554
27555         vasnprintf: avoid compiler warnings
27556         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
27557         variables.
27558         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
27559
27560 2009-11-17  Simon Josefsson  <simon@josefsson.org>
27561
27562         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
27563         settings since xalloc-die is no longer the self test,
27564         xalloc-die.sh is.
27565
27566 2009-11-17  Jim Meyering  <meyering@redhat.com>
27567
27568         test-xalloc-die.sh: make the code agree with the commit log
27569         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
27570         at the end, just in case you happen to have a test-xalloc-die
27571         program in some other PATH directory.
27572
27573         test-xalloc-die.sh: fix a portability bug
27574         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
27575         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
27576         Otherwise, argv[0] (as often seen in diagnostics) would be too
27577         system-dependent, sometimes with, and sometimes without the leading "./".
27578
27579         version-etc-fsf: relax license to LGPLv3+
27580         * modules/version-etc-fsf (License): Relax license.
27581
27582 2009-11-16  Eric Blake  <ebb9@byu.net>
27583
27584         xalloc-die-tests: avoid printing null pointer
27585         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
27586         shell script.
27587         * tests/test-xalloc-die.c (program_name): Declare.
27588         * tests/test-xalloc-die.sh (tmpfiles): New file.
27589
27590         setenv, unsetenv: work around various bugs
27591         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
27592         (setenv) [HAVE_SETENV]: Work around bugs.
27593         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
27594         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
27595         for bugs.
27596         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
27597         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
27598         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
27599         * modules/stdlib (Makefile.am): Update substitutions.
27600         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
27601         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
27602         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
27603         * modules/setenv-tests: New test.
27604         * modules/unsetenv-tests: Likewise.
27605         * tests/test-setenv.c: New file.
27606         * tests/test-unsetenv.c: Likewise.
27607
27608 2009-11-16  Jim Meyering  <meyering@redhat.com>
27609
27610         version-etc: relax license to LGPLv3+
27611         * modules/version-etc (License): Relax license.
27612
27613         better AC_REQUIRE expanded-before-required-warning avoidance
27614         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
27615         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
27616         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
27617         which is no longer needed.
27618
27619 2009-11-16  Eric Blake  <ebb9@byu.net>
27620
27621         test-freading: clean up temporary file
27622         * tests/test-freading.c (main): Remove file on success, and use
27623         ASSERT more liberally.
27624         Reported by Jim Meyering.
27625
27626 2009-11-16  Jim Meyering  <meyering@redhat.com>
27627
27628         avoid new AC_REQUIRE expanded-before-required warnings
27629         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
27630         merely using it.
27631         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
27632         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
27633
27634 2009-11-15  Simon Josefsson  <simon@josefsson.org>
27635
27636         * tests/test-xalloc-die.c: New file.
27637         * modules/xalloc-die-tests: New file.
27638         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
27639         XFAIL_TESTS so it can be appended by modules.
27640
27641 2009-11-15  Simon Josefsson  <simon@josefsson.org>
27642
27643         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
27644         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
27645
27646 2009-11-14  Eric Blake  <ebb9@byu.net>
27647
27648         fnmatch: avoid compiler warning
27649         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
27650         to silence compiler warning about mismatch signedness in ?:.
27651         Reported by Robert Millan.
27652
27653         intprops: add double-inclusion guard
27654         * lib/intprops.h: Allow idempotent includes.
27655         Suggested by Bruce Korb.
27656
27657         openat: detect Solaris fchownat bug
27658         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
27659         penalizing glibc chownat when only lchownat is broken.
27660         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
27661         trailing slash bugs.
27662         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
27663         * modules/openat-tests (Files): Include more files.
27664         (Depends-on): Add mgetgroups, sleep, stat-time.
27665         (configure.ac): Add additional checks.
27666         (Makefile.am): Build new test.
27667         * tests/test-fchownat.c: New file.
27668
27669         lchown: detect Solaris and FreeBSD bug
27670         * lib/lchown.c (rpl_lchown): Work around bug.
27671         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
27672         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27673         * modules/unistd (Makefile.am): Populate it.
27674         * lib/unistd.in.h (lchown): Update declaration.
27675         * doc/posix-functions/lchown.texi (lchown): Document the bug.
27676         * modules/lchown-tests: New file.
27677         * tests/test-lchown.h (test_lchown): Likewise.
27678         * tests/test-lchown.c (main): Likewise.
27679
27680         chown: detect Solaris and FreeBSD bug
27681         * lib/chown.c (rpl_chown): Work around bug.
27682         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
27683         (gl_PREREQ_CHOWN): Delete.
27684         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27685         * modules/unistd (Makefile.am): Populate it.
27686         * lib/unistd.in.h (chown): Update declaration.
27687         * lib/lchown.c (chown): Update client.
27688         * modules/lchown (Depends-on): Add lstat.
27689         * doc/posix-functions/chown.texi (chown): Document the bug.
27690         * doc/posix-functions/getgroups.texi (getgroups): Document
27691         getgroups pitfall.
27692         * modules/chown-tests: New file.
27693         * tests/test-chown.h (test_chown): Likewise.
27694         * tests/test-chown.c (main): Likewise.
27695
27696 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
27697
27698         gnulib-tool: correctly detect absence of m4 directories
27699         * gnulib-tool: Avoid extra newline on data passed to wc -l.
27700
27701 2009-11-14  Jim Meyering  <meyering@redhat.com>
27702
27703         maint.mk: Prohibit inclusion of "xalloc.h" without use.
27704         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
27705
27706 2009-11-14  John W. Eaton  <jwe@gnu.org>
27707
27708         strftime.h: wrap funtion declaration in extern "C" block
27709         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
27710
27711 2009-11-13  Eric Blake  <ebb9@byu.net>
27712
27713         getgroups: avoid compiler warning
27714         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
27715
27716         getgroups: work around FreeBSD bug
27717         * lib/getgroups.c (rpl_getgroups): Work around the bug.
27718         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
27719         * doc/posix-functions/getgroups.texi (getgroups): Document it.
27720         * tests/test-getgroups.c (main): Fix buffer overrun.
27721
27722         getgroups: avoid compilation failure
27723         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
27724         * modules/getgroups (Depends-on): Add stdint.
27725
27726 2009-11-13  Jim Meyering  <meyering@redhat.com>
27727
27728         test-getgroups: avoid compilation failure
27729         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
27730
27731 2009-11-13  Eric Blake  <ebb9@byu.net>
27732
27733         mgetgroups: new module, taken from coreutils
27734         * modules/mgetgroups: New file.
27735         * lib/mgetgroups.h: Likewise.
27736         * lib/mgetgroups.c (mgetgroups): Likewise.
27737         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
27738         * MODULES.html.sh (Users and groups): Mention it.
27739
27740         getgroups: don't expose GETGROUPS_T to user
27741         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
27742         an element at a time if GETGROUPS_T is wrong size.
27743         * lib/getugroups.h (getugroups): Change signature.
27744         * lib/unistd.in.h (getgroups): Likewise.
27745         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
27746         signature needs fixing.
27747         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
27748         AC_TYPE_GETGROUPS.
27749         * modules/group-member (Depends-on): Add getgroups.
27750         * lib/group-member.c (group_info, get_group_info): Use gid_t.
27751         (group_member): Rely on getgroups replacement.
27752         * lib/getugroups.c (getugroups): Use gid_t.
27753         * tests/test-getgroups.c (main): Likewise.
27754         * NEWS: Mention the signature change.
27755         * doc/posix-functions/getgroups.texi (getgroups): Mention the
27756         problem with signature.
27757         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
27758         GETGROUPS_T is still useful for setgroups.
27759
27760         getgroups, getugroups: provide stubs for mingw
27761         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
27762         * lib/getugroups.c (getugroups): Likewise.
27763         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
27764         function.  Modernize replacement scheme.
27765         (gl_PREREQ_GETGROUPS): Delete.
27766         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
27767         * modules/getgroups (configure.ac): Declare witness.
27768         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
27769         * modules/unistd (Depends-on): Substitute witness.
27770         * lib/unistd.in.h (getgroups): Declare replacement.
27771
27772         getgroups: avoid calling exit
27773         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
27774         drop xalloc.
27775         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
27776         dependencies.
27777         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
27778         exiting, in the rare case of malloc failure.
27779
27780         getgroups: fix logic error
27781         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
27782         has more than 20 groups.
27783         * modules/getgroups-tests: New test.
27784         * tests/test-getgroups.c: New file.
27785
27786 2009-11-13  Simon Josefsson  <simon@josefsson.org>
27787
27788         * tests/test-base64.c: Improve.
27789
27790 2009-11-13  Simon Josefsson  <simon@josefsson.org>
27791
27792         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
27793         Blake <ebb9@byu.net>.
27794
27795 2009-11-13  Simon Josefsson  <simon@josefsson.org>
27796
27797         * tests/test-xvasprintf.c: Add %s%s related checks.
27798
27799 2009-11-12  Eric Blake  <ebb9@byu.net>
27800
27801         version-etc: match standards.texi style
27802         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
27803         and use <> only for URLs.
27804
27805 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
27806
27807         fts: do not fail on a submount during traversal
27808         * lib/fts.c (fts_build): Read the stat info again after opening
27809         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
27810         Original report at http://bugzilla.redhat.com/501848.
27811
27812 2009-11-12  Jim Meyering  <meyering@redhat.com>
27813
27814         bootstrap: sync from coreutils
27815         * build-aux/bootstrap (bootstrap_epilogue): New function.
27816         Use git_modules_config in one more place.  This make bootstrap's
27817         --gnulib-srcdir option more useful for testing.
27818
27819         bootstrap: generalize autoheader check
27820         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
27821         AC_CONFIG_HEADERS.
27822
27823 2009-11-11  Eric Blake  <ebb9@byu.net>
27824
27825         mkfifoat: use new modules for Solaris and BSD bugs
27826         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
27827         * lib/mkfifoat.c (mknodat): Split...
27828         * lib/mknodat.c (mknodat): ...into new file.
27829         * modules/mkfifoat (Files): Ship new file.
27830         (Depends-on): Add mkfifo, mknod.
27831         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
27832         (Depends-on): Add symlink.
27833         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
27834         redundant with test_mkfifo.h.
27835         (do_mkfifoat, do_mknodat): New helpers.
27836
27837         mknod: new module
27838         * modules/mknod: New file.
27839         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
27840         * lib/mknod.c (mknod): Likewise.
27841         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
27842         defaults.
27843         * modules/sys_stat (Makefile.am): Substitute them.
27844         * lib/sys_stat.in.h (mknod): Declare replacement.
27845         * MODULES.html.sh (Support for systems lacking POSIX:2008):
27846         Document it.
27847         * doc/posix-functions/mknod.texi (mknod): Likewise.
27848         * modules/mknod-tests: New test.
27849         * tests/test-mknod.c: Likewise.
27850
27851         mkfifo: new module
27852         * modules/mkfifo: New file.
27853         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
27854         * lib/mkfifo.c (mkfifo): Likewise.
27855         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
27856         defaults.
27857         * modules/sys_stat (Makefile.am): Substitute them.
27858         * lib/sys_stat.in.h (mkfifo): Declare replacement.
27859         * MODULES.html.sh (Support for systems lacking POSIX:2008):
27860         Document it.
27861         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
27862         * modules/mkfifo-tests: New test.
27863         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
27864         from test-mkfifoat.c.
27865         * tests/test-mkfifo.c: New file.
27866
27867         readlink: detect FreeBSD bug
27868         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
27869         slash on symlink.
27870         * doc/posix-functions/readlink.texi (readlink): Document the bug.
27871         * tests/test-readlink.h (test_readlink): Enhance test.
27872
27873         symlink: detect FreeBSD bug
27874         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
27875         slash on symlink.
27876         * doc/posix-functions/symlink.texi (symlink): Document the bug.
27877         * tests/test-symlink.h (test_symlink): Enhance test.
27878
27879 2009-11-10  Eric Blake  <ebb9@byu.net>
27880
27881         link: detect FreeBSD bug
27882         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
27883         symlink.
27884         * doc/posix-functions/link.texi (link): Document the bug.
27885         * tests/test-link.h (test_link): Enhance test.
27886         * tests/test-linkat.c (main): Update caller.
27887
27888         unlink, remove: detect FreeBSD bug
27889         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
27890         slash on symlink.
27891         * doc/posix-functions/unlink.texi (unlink): Document the bug.
27892         * doc/posix-functions/remove.texi (remove): Likewise.
27893         * tests/test-unlink.h (test_unlink): Enhance test.
27894         * tests/test-remove.c (main): Likewise.
27895
27896 2009-11-09  Eric Blake  <ebb9@byu.net>
27897
27898         rename: detect FreeBSD bug
27899         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
27900         slash on symlink.
27901         * modules/renameat-tests (Depends-on): Add filenamecat.
27902         * tests/test-rename.h (test_rename): Allow one more errno.
27903         * tests/test-renameat.c (main): Likewise.
27904         * doc/posix-functions/rename.texi (rename): Document the bug.
27905
27906         open: detect FreeBSD bug
27907         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
27908         symlink.
27909         * doc/posix-functions/open.texi (open): Document the bug.
27910         * doc/posix-functions/utimes.texi (utimes): Likewise.
27911         * tests/test-open.h (test_open): Add parameters, and test symlink
27912         handling.
27913         * tests/test-open.c (main): Adjust caller.
27914         * tests/test-fcntl-safer.c (main): Likewise.
27915         * modules/open-tests (Depends-on): Add stdbool, symlink.
27916         * modules/fcntl-safer-tests (Depends-on): Likewise.
27917         * tests/test-openat.c (main): Add test-open tests.
27918
27919         stat: detect FreeBSD bug
27920         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
27921         symlink.
27922         * doc/posix-functions/stat.texi (stat): Document the bug.
27923         * tests/test-stat.h (test_stat_func): Add argument.
27924         * tests/test-stat.c (main): Adjust caller.
27925         * tests/test-fstatat.c (main): Likewise.
27926         * modules/stat-tests (Depends-on): Add stdbool, symlink.
27927         Reported by Jim Meyering.
27928
27929 2009-11-09  James Youngman  <jay@gnu.org>
27930
27931         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
27932         * lib/strftime.c: Correct placement of #include "ignore-value.h".
27933
27934 2009-11-08  Jim Meyering  <meyering@redhat.com>
27935
27936         utimens: remove invalid futimesat call
27937         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
27938         It used the file descriptor of the target file as the DIR_FD
27939         parameter and NULL as the file name.  That caused failure with
27940         errno == EFAULT on FreeBSD-8.0-rc2
27941
27942 2009-11-07  Eric Blake  <ebb9@byu.net>
27943
27944         fflush, freadseek: use fseeko, not fseek
27945         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
27946         (clear_ungetc_buffer): Avoid potential problems on large files.
27947         * lib/freadseek.c (freadseek): Likewise.
27948         * modules/freadseek (Depends-on): Add fseeko.
27949         * modules/fseek (configure.ac): Set a witness.
27950         * tests/test-fflush.c (main): Use fseeko.
27951         * tests/test-fpurge.c (fseek): Disable link warning.
27952         * tests/test-freadable.c (fseek): Likewise.
27953         * tests/test-freading.c (fseek): Likewise.
27954         * tests/test-fseeko.c (fseek): Likewise.
27955         * tests/test-ftell.c (fseek): Likewise.
27956         * tests/test-ftello.c (fseek): Likewise.
27957         * tests/test-fwritable.c (fseek): Likewise.
27958         * tests/test-fwriting.c (fseek): Likewise.
27959
27960 2009-11-06  Simon Josefsson  <simon@josefsson.org>
27961
27962         * modules/memchr (Depends-on): Drop getpagesize dependency.
27963
27964 2009-11-06  Simon Josefsson  <simon@josefsson.org>
27965
27966         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
27967         Reported by Ludovic Courtès.
27968         * build-aux/pmccabe2html: Improve example usage.
27969         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
27970
27971 2009-11-06  Jim Meyering  <meyering@redhat.com>
27972
27973         do-release-commit-and-tag: New module.
27974         Automate the release-commit and tag process.
27975         * build-aux/do-release-commit-and-tag: New script, from coreutils.
27976         * modules/do-release-commit-and-tag: New file.
27977         * MODULES.html.sh (Support for maintaining and releasing): Add it.
27978
27979 2009-11-06  Simon Josefsson  <simon@josefsson.org>
27980
27981         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
27982         because test-select.c uses inet_pton.
27983
27984 2009-11-06  Simon Josefsson  <simon@josefsson.org>
27985
27986         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
27987         GETADDRINFO_LIB.  Bump serial number.
27988         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
27989         Suggested by Eric Blake <ebb9@byu.net>.
27990
27991 2009-11-05  Eric Blake  <ebb9@byu.net>
27992
27993         strtod: detect darwin bug
27994         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
27995         Reported by Leo Davis.
27996
27997         freopen-safer: new module
27998         * modules/freopen-safer: New module.
27999         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
28000         * lib/freopen-safer.c (freopen_safer): New file.
28001         * lib/stdio-safer.h (freopen_safer): New declaration.
28002         * lib/stdio--.h (freopen): New override.
28003         * MODULES.html.sh (File stream based Input/Output): Mention it.
28004         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
28005         freopen-safer module.
28006         * doc/posix-functions/stderr.texi (stderr): Likewise.
28007         * doc/posix-functions/stdin.texi (stdin): Likewise.
28008         * doc/posix-functions/stdout.texi (stdout): Likewise.
28009         * modules/freopen-safer-tests: New test.
28010         * tests/test-reopen-safer.c: New file.
28011
28012 2009-11-05  Jim Meyering  <meyering@redhat.com>
28013
28014         maint.mk: Prohibit inclusion of "close-stream.h" without use.
28015         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
28016
28017 2009-11-05  Simon Josefsson  <simon@josefsson.org>
28018
28019         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
28020
28021 2009-11-05  Simon Josefsson  <simon@josefsson.org>
28022
28023         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
28024
28025 2009-11-05  Simon Josefsson  <simon@josefsson.org>
28026
28027         Fix link error.
28028         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
28029         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
28030
28031 2009-11-05  Simon Josefsson  <simon@josefsson.org>
28032
28033         * tests/test-func.c: Also test value of __func__.
28034
28035 2009-11-05  Simon Josefsson  <simon@josefsson.org>
28036
28037         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
28038         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
28039
28040 2009-11-05  Bruno Haible  <bruno@clisp.org>
28041
28042         Fix link error.
28043         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
28044         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
28045         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
28046
28047 2009-11-05  Bruno Haible  <bruno@clisp.org>
28048
28049         Tests for module 'inet_pton'.
28050         * modules/inet_pton-tests: New file.
28051         * tests/test-inet_pton.c: New file.
28052
28053 2009-11-05  Bruno Haible  <bruno@clisp.org>
28054
28055         Tests for module 'inet_ntop'.
28056         * modules/inet_ntop-tests: New file.
28057         * tests/test-inet_ntop.c: New file.
28058
28059 2009-11-04  Eric Blake  <ebb9@byu.net>
28060
28061         stdlib-safer: wrap all mkstemp variants
28062         * modules/mkostemp (configure.ac): Set witness.
28063         * modules/mkostemps (configure.ac): Likewise.
28064         * modules/mkstemps (configure.ac): Likewise.
28065         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
28066         (mkstemps_safer): Wrap more functions.
28067         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
28068         wrapping.
28069         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
28070         (mkstemps_safer): Implement the wrappers.
28071
28072         mkstemps, mkostemps: new modules
28073         * modules/mkostemps: New module.
28074         * modules/mkstemps: Likewise.
28075         * lib/mkostemps.c (mkostemps): New file.
28076         * lib/mkstemps.c (mkstemps): Likewise.
28077         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
28078         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
28079         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
28080         * modules/stdlib (Makefile.am): Substitute them.
28081         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
28082         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
28083         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
28084         * doc/gnulib.texi (Glibc stdlib.h): Include them.
28085         * MODULES.html.sh (File system functions): Mention them.
28086
28087         tempname: resync from glibc
28088         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
28089         same values for __GT_FILE as glibc.  Abort even when assertions
28090         are disabled.
28091         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
28092         match its value otherwise.  Allow idempotent inclusion.
28093         * lib/mkdtemp.c (mkdtemp): Adjust caller.
28094         * lib/mkostemp.c (mkostemp): Likewise.
28095         * lib/mkstemp.c (mkstemp): Likewise.
28096         * lib/tmpfile.c (tmpfile): Likewise.
28097         * NEWS: Document this.
28098
28099         utimens: fix use of futimens on older Linux
28100         * lib/utimens.c (fdutimens): Use updated, rather than original,
28101         timespec to avoid bug in older Linux kernel.
28102         Reported by Simon Josefsson.
28103
28104 2009-11-04  Bruno Haible  <bruno@clisp.org>
28105
28106         Make num_processors more flexible and consistent.
28107         * lib/nproc.h (enum nproc_query): New type.
28108         (num_processors): Add a 'query' argument.
28109         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
28110         (num_processors): Add a 'query' argument. Test the value of the
28111         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
28112         mingw, count the number of CPUs available for the current process.
28113         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
28114         Check for sched_getaffinity and sched_getaffinity_np.
28115         * modules/nproc (Depends-on): Add c-ctype, extensions.
28116         * NEWS: Mention the change.
28117
28118 2009-11-03  Bruno Haible  <bruno@clisp.org>
28119
28120         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
28121
28122 2009-11-03  Jim Meyering  <meyering@redhat.com>
28123
28124         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
28125         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
28126         if it is defined.
28127
28128 2009-11-02  Eric Blake  <ebb9@byu.net>
28129
28130         mktime, timegm: share common declaration
28131         * lib/mktime-internal.h: New file.
28132         * lib/mktime.c: Use it rather than open-coding a declaration.
28133         * lib/timegm.c: Likewise.
28134         * modules/mktime (Files): Ship it.
28135         * modules/timegm (Files): Likewise.
28136         Suggested by Bruno Haible.
28137
28138         test-update-copyright: update test to match script changes
28139         * tests/test-update-copyright.sh: Avoid hard-coding perl
28140         location.  Don't update *.bak created by earlier runs.
28141
28142 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
28143             Simon Josefsson  <simon@josefsson.org>
28144             Bruno Haible  <bruno@clisp.org>
28145
28146         Fix link error on Solaris 8.
28147         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
28148         also in libnsl. Define also INET_PTON_LIB.
28149         * modules/inet_pton (Link): New section.
28150
28151 2009-11-02  Simon Josefsson  <simon@josefsson.org>
28152             Bruno Haible  <bruno@clisp.org>
28153
28154         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
28155         * modules/inet_ntop (Link): New section.
28156         Reported by Boyan Kasarov <bkasarov@gmail.com>.
28157
28158 2009-11-02  Eric Blake  <ebb9@byu.net>
28159
28160         maint: avoid compiler warnings in m4 macros
28161         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
28162         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
28163
28164 2009-11-02  Simon Josefsson  <simon@josefsson.org>
28165
28166         * m4/pmccabe2html.m4: Remove file.
28167         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
28168         function.  Change maintainer.
28169         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
28170         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
28171         Courtès).
28172
28173 2009-10-31  Eric Blake  <ebb9@byu.net>
28174
28175         fseeko: fix m4 regression
28176         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
28177         regression from 2009-10-27.
28178         Reported by Ralf Wildenhues.
28179
28180 2009-10-31  Jim Meyering  <meyering@redhat.com>
28181
28182         inttostr: aesthetics and improved (compile-time) safety
28183         Define inttype_is_signed rather than inttype_is_unsigned,
28184         since the sole use is via "#if inttype_is_signed".
28185         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
28186         inttype_is_unsigned.
28187         * lib/offtostr.c (inttype_is_signed): Likewise.
28188         * lib/uinttostr.c (inttype_is_signed): Likewise.
28189         * lib/umaxtostr.c (inttype_is_signed): Likewise.
28190         * lib/inttostr.c (inttostr): Use verify to cross-check the
28191         inttype_is_signed value and the signedness of the actual type.
28192         * modules/inttostr (Depends-on): Add verify.
28193
28194 2009-10-30  Eric Blake  <ebb9@byu.net>
28195
28196         build: avoid compiler warnings
28197         * lib/fchmodat.c (lchmod): Mark unused variables.
28198         * lib/getopt.c (_getopt_initialize): Likewise.
28199         * lib/mktime.c (__mktime_internal): Provide prototype.
28200         * lib/inttostr.c (inttostr): Avoid compiler warning even with
28201         older gcc that do not understand #pragma GCC diagnostic.
28202         * lib/uinttostr.c (inttype_is_unsigned): Define.
28203         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
28204
28205 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
28206
28207         stat: fix compilation on AIX
28208         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
28209         only see struct stat64.
28210
28211 2009-10-30  Eric Blake  <ebb9@byu.net>
28212
28213         exclude: make more robust
28214         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
28215         rather than masking a coding bug.
28216         Suggested by Bruno Haible.
28217
28218 2009-10-30  Jim Meyering  <meyering@redhat.com>
28219
28220         perl scripts: remove #!/usr/bin/perl in favor of more portable...
28221         Rather than putting #!/usr/bin/perl on the first line,
28222         start with a variant of what's recommended by "man perlrun" that
28223         invokes the first "perl" program from your shell's search path.
28224         * build-aux/gitlog-to-changelog: Replace #!... as above.
28225         Add a "Local Variables" perl mode setting.
28226         Prompted by a patch from Ludovic Courtès.
28227         Improved by Eric Blake.
28228         * build-aux/useless-if-before-free: Likewise.
28229         * build-aux/announce-gen: Likewise.
28230         * build-aux/update-copyright: Likewise.
28231
28232 2009-10-29  Eric Blake  <ebb9@byu.net>
28233
28234         filenamecat-lgpl: adjust clients
28235         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
28236         filenamecat.
28237         * modules/renameat (Depends-on): Likewise.
28238
28239         filenamecat: split into filenamecat-lgpl
28240         * modules/filenamecat-lgpl: New module.
28241         * modules/filenamecat (Files): Move library-safe files into
28242         filenamecat-lgpl.
28243         (Depends-on): Add filenamecat-lgpl.
28244         (configure.ac): Declare witness.
28245         * lib/filenamecat.h (file_name_concat): Only declare when using
28246         GPL module.
28247         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
28248         Move...
28249         * lib/filenamecat-lgpl.c: ...into new file.
28250         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
28251         (gl_FILE_NAME_CONCAT): Use it.
28252         * MODULES.html.sh (File system functions): Mention new module.
28253
28254         argp: avoid memory leak
28255         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
28256         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
28257         base_name, since the latter malloc()s and can call exit().
28258         Leak introduced 2006-07-03.
28259
28260         dirname-lgpl: adjust clients that don't need full dirname
28261         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
28262         * modules/filenamecat (Depends-on): Likewise.
28263         * modules/linkat (Depends-on): Likewise.
28264         * modules/mkancesdirs (Depends-on): Likewise.
28265         * modules/mkdir (Depends-on): Likewise.
28266         * modules/openat (Depends-on): Likewise.
28267         * modules/savewd (Depends-on): Likewise.
28268         * modules/rename (Depends-on): Likewise.
28269         (License): Relax license.
28270         * modules/mkdir-tests (Depends-on): Drop progname.
28271         (Makefile.am): Delete unneeded LDADD.
28272         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
28273
28274         dirname: split into dirname-lgpl
28275         * modules/dirname-lgpl: New module.
28276         * modules/dirname (Files): Move library-safe files into
28277         dirname-lgpl.
28278         (Depends-on): Add dirname-lgpl.
28279         (configure.ac): Declare witness.
28280         * modules/double-slash-root (License): Relax license.
28281         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
28282         module.
28283         * lib/dirname.c (dir_len, mdir_name): Move...
28284         * lib/dirname-lgpl.c: ...into new file.
28285         * lib/basename.c (last_component, base_len): Move...
28286         * lib/basename-lgpl.c: ...into new file.
28287         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
28288         (gl_DIRNAME): Use it.
28289         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
28290         Mention new module.
28291         * modules/dirname-tests (Depends-on): Add progname.
28292         * tests/test-dirname.c (program_name): Delete.
28293
28294         mkdir: make safe for libraries
28295         * modules/mkdir (Depends-on): Drop xalloc.
28296         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
28297         exit.
28298
28299         tests: avoid some compiler warnings
28300         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
28301         literals.
28302         * tests/test-memchr.c (main): Avoid type mismatch.
28303         * tests/test-arpa_inet.c (main): Avoid unused parameters.
28304         * tests/test-base64.c (main): Likewise.
28305         * tests/test-getdelim.c (main): Likewise.
28306         * tests/test-gethostname.c (main): Likewise.
28307         * tests/test-getline.c (main): Likewise.
28308         * tests/test-netinet_in.c (main): Likewise.
28309         * tests/test-select.c (open_server_socket, main): Likewise.
28310         * tests/test-select-stdin.c (main): Likewise.
28311         * tests/test-sockets.c (main): Likewise.
28312         * tests/test-strsignal.c (main): Likewise.
28313         * tests/test-sys_select.c (main): Likewise.
28314         * tests/test-sys_socket.c (main): Likewise.
28315         * tests/test-u64.c (main): Likewise.
28316         * tests/test-xfprintf-posix.c (main): Likewise.
28317         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
28318
28319         sockets: avoid compiler warning
28320         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
28321
28322         maint: detect usage(1) and other suspicious exits
28323         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
28324
28325 2009-10-29  Jim Meyering  <meyering@redhat.com>
28326
28327         timespec: long-to-int truncation could make timespec_cmp malfunction
28328         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
28329         a multiple of 2^32 nanoseconds as no difference.
28330
28331 2009-10-28  Jim Meyering  <meyering@redhat.com>
28332
28333         fprintftime: wrap macro code argument in "do {...} while(0)"
28334         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
28335         cpy macro must be a statement that can be followed by a semicolon.
28336         Now that the else clause contains a comment and is hence longer
28337         than one line, I require curly braces.  That in turn requires
28338         that we wrap this code block in the standard do...while(0).
28339
28340         fprintftime: remove stray semicolon from previous change
28341         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
28342
28343         fprintftime: avoid a warning about ignored fwrite return value
28344         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
28345         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
28346         that is unsafe.
28347         * modules/fprintftime (Depends-on): Add ignore-value.
28348
28349         exclude: avoid an unwarranted warning
28350         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
28351
28352 2009-10-27  Eric Blake  <ebb9@byu.net>
28353
28354         fseek: avoid compilation failure when fflush is replaced
28355         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
28356         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
28357         module is in use.
28358         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
28359         module is not in use; since REPLACE_FSEEK worked otherwise.
28360         (GNULIB_FTELLO): Likewise for ftell.
28361         Reported by Ian Beckwith and others.
28362
28363 2009-10-27  Bruno Haible  <bruno@clisp.org>
28364
28365         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
28366         Reported by Jim Meyering.
28367
28368 2009-10-27  Jim Meyering  <jim@meyering.net>
28369             Bruno Haible  <bruno@clisp.org>
28370
28371         Avoid warning despite dropping the return value of fwrite.
28372         * lib/unicodeio.c: Include ignore-value.h.
28373         (fwrite_success_callback): Explicitly ignore fwrite's return value.
28374         * modules/unicodeio (Depends-on): Add ignore-value.
28375
28376 2009-10-26  Eric Blake  <ebb9@byu.net>
28377
28378         areadlinkat: fix fallback path
28379         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
28380         pointer and zero.
28381
28382 2009-10-22  Pádraig Brady  <P@draigBrady.com>
28383
28384         Use a better IO block size for modern systems
28385         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
28386         * lib/md2.c: Likewise.
28387         * lib/md4.c: Likewise.
28388         * lib/md5.c: Likewise.
28389         * lib/sha1.c: Likewise.
28390         * lib/sha256.c: Likewise.
28391         * lib/sha512.c: Likewise.
28392
28393 2009-10-22  Eric Blake  <ebb9@byu.net>
28394
28395         tests: avoid several compiler warnings
28396         * tests/test-getcwd.c (main): Avoid buffer underflow.
28397         * tests/test-getdate.c (main): String literals are not safe with
28398         putenv, so use setenv.  Declare unused argument.
28399         * modules/getdate-tests (Depends-on): Add setenv.
28400         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
28401         problems with string literals in char *.
28402         * tests/test-hash.c (main): Avoid shadowing declaration.
28403         (insert_new): Treat string literals as char const *.
28404         * tests/test-getopt.h (test_getopt): Likewise.
28405         (getopt_loop): Alter types to minimize casting elsewhere.
28406         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
28407         (test_getopt_long_posix): Likewise.
28408         (do_getopt_long): Add wrapper to minimize casting.
28409         * tests/test-atexit.c (clear_temp_file): Use void.
28410         * tests/test-areadlink-with-size.c (main): Declare unused
28411         arguments.
28412         * tests/test-areadlink.c (main): Likewise.
28413         * tests/test-areadlinkat-with-size.c (main): Likewise.
28414         * tests/test-areadlinkat.c (main): Likewise.
28415         * tests/test-canonicalize-lgpl.c (main): Likewise.
28416         * tests/test-canonicalize.c (main): Likewise.
28417         * tests/test-dirent-safer.c (main): Likewise.
28418         * tests/test-dirname.c (main): Likewise.
28419         * tests/test-dup2.c (main): Likewise.
28420         * tests/test-fchdir.c (main): Likewise.
28421         * tests/test-fcntl-h.c (main): Likewise.
28422         * tests/test-fcntl-safer.c (main): Likewise.
28423         * tests/test-fdopendir.c (main): Likewise.
28424         * tests/test-fdutimensat.c (main): Likewise.
28425         * tests/test-fflush.c (main): Likewise.
28426         * tests/test-filenamecat.c (main): Likewise.
28427         * tests/test-filevercmp.c (main): Likewise.
28428         * tests/test-fopen-safer.c (main): Likewise.
28429         * tests/test-fopen.c (main): Likewise.
28430         * tests/test-fpending.c (main): Likewise.
28431         * tests/test-fpurge.c (main): Likewise.
28432         * tests/test-freading.c (main): Likewise.
28433         * tests/test-fstatat.c (main): Likewise.
28434         * tests/test-fsync.c (main): Likewise.
28435         * tests/test-futimens.c (main): Likewise.
28436         * tests/test-getndelim2.c (main): Likewise.
28437         * tests/test-gettimeofday.c (main): Likewise.
28438         * tests/test-getopt.c (main): Likewise.
28439         * tests/test-i-ring.c (main): Likewise.
28440         * tests/test-inttypes.c (main): Likewise.
28441         * tests/test-link.c (main): Likewise.
28442         * tests/test-lstat.c (main): Likewise.
28443         * tests/test-math.c (main): Likewise.
28444         * tests/test-md5.c (main): Likewise.
28445         * tests/test-memchr2.c (main): Likewise.
28446         * tests/test-memrchr.c (main): Likewise.
28447         * tests/test-mkdir.c (main): Likewise.
28448         * tests/test-mkdirat.c (main): Likewise.
28449         * tests/test-mkfifoat.c (main): Likewise.
28450         * tests/test-open.c (main): Likewise.
28451         * tests/test-openat-safer.c (main): Likewise.
28452         * tests/test-openat.c (main): Likewise.
28453         * tests/test-quotearg.c (main): Likewise.
28454         * tests/test-rawmemchr.c (main): Likewise.
28455         * tests/test-readlink.c (main): Likewise.
28456         * tests/test-remove.c (main): Likewise.
28457         * tests/test-rename.c (main): Likewise.
28458         * tests/test-renameat.c (main): Likewise.
28459         * tests/test-rmdir.c (main): Likewise.
28460         * tests/test-sha1.c (main): Likewise.
28461         * tests/test-signal.c (main): Likewise.
28462         * tests/test-sigaction.c (main): Likewise.
28463         * tests/test-stat.c (main): Likewise.
28464         * tests/test-stat-time.c (main): Likewise.
28465         * tests/test-stddef.c (main): Likewise.
28466         * tests/test-stdint.c (main): Likewise.
28467         * tests/test-stdio.c (main): Likewise.
28468         * tests/test-stdlib.c (main): Likewise.
28469         * tests/test-strchrnul.c (main): Likewise.
28470         * tests/test-strerror.c (main): Likewise.
28471         * tests/test-string.c (main): Likewise.
28472         * tests/test-strtod.c (main): Likewise.
28473         * tests/test-strverscmp.c (main): Likewise.
28474         * tests/test-symlink.c (main): Likewise.
28475         * tests/test-symlinkat.c (main): Likewise.
28476         * tests/test-sys_stat.c (main): Likewise.
28477         * tests/test-sys_time.c (main): Likewise.
28478         * tests/test-time.c (main): Likewise.
28479         * tests/test-unistd.c (main): Likewise.
28480         * tests/test-unlink.c (main): Likewise.
28481         * tests/test-unlinkat.c (main): Likewise.
28482         * tests/test-utimens.c (main): Likewise.
28483         * tests/test-utimensat.c (main): Likewise.
28484         * tests/test-version-etc.c (main): Likewise.
28485         * tests/test-wchar.c (main): Likewise.
28486         * tests/test-wctype.c (main): Likewise.
28487         * tests/test-xprintf-posix.c (main): Likewise.
28488         * tests/test-posixtm.c (main): Likewise.
28489         (STREQ): Delete unused macro.
28490         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
28491         shadowed variables.
28492         * tests/test-memchr.c (main): Likewise.
28493
28494 2009-10-21  Eric Blake  <ebb9@byu.net>
28495
28496         areadlinkat: avoid failure on older glibc
28497         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
28498         rather than mis-comparing 0 against FUNC_RESULT of char*.
28499
28500 2009-10-21  Bruno Haible  <bruno@clisp.org>
28501
28502         * modules/stpncpy (License): Relicense under LGPLv2+.
28503         Reported by David Lutterkort <lutter@redhat.com>.
28504
28505 2009-10-20  Eric Blake  <ebb9@byu.net>
28506
28507         utimensat: work around Solaris 9 bug
28508         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
28509         has trailing slash bugs.
28510         * tests/test-lutimens.h (test_lutimens): Enhance test.
28511         * tests/test-utimens.h (test_utimens): Likewise.
28512         * doc/posix-functions/utime.texi (utime): Enhance documentation.
28513         * doc/posix-functions/utimes.texi (utimes): Likewise.
28514         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
28515         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
28516         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
28517         * doc/posix-functions/futimens.texi (futimens): Likewise.
28518
28519         fdutimensat: new module
28520         * modules/fdutimensat: New file.
28521         * lib/fdutimensat.c (fdutimensat): Likewise.
28522         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
28523         * MODULES.html.sh (File system functions): Mention module.
28524         * modules/fdutimensat-tests: New test.
28525         * tests/test-fdutimensat.c: Likewise.
28526
28527         doc: regenerate INSTALL
28528         * doc/INSTALL: Reflect recent autoconf update.
28529         * doc/INSTALL.ISO: Likewise.
28530         * doc/INSTALL.UTF-8: Likewise.
28531
28532 2009-10-20  Pádraig Brady  <P@draigBrady.com>
28533
28534         acl: warn if ACL support is not detected
28535         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
28536
28537 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
28538
28539         * lib/nproc.h: Add extern "C" block for C++.
28540
28541 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
28542             Bruno Haible  <bruno@clisp.org>
28543
28544         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
28545         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
28546         * doc/posix-functions/isalpha.texi: Likewise.
28547         * doc/posix-functions/isblank.texi: Likewise.
28548         * doc/posix-functions/iscntrl.texi: Likewise.
28549         * doc/posix-functions/isdigit.texi: Likewise.
28550         * doc/posix-functions/isgraph.texi: Likewise.
28551         * doc/posix-functions/islower.texi: Likewise.
28552         * doc/posix-functions/isprint.texi: Likewise.
28553         * doc/posix-functions/ispunct.texi: Likewise.
28554         * doc/posix-functions/isspace.texi: Likewise.
28555         * doc/posix-functions/isupper.texi: Likewise.
28556         * doc/posix-functions/isxdigit.texi: Likewise.
28557
28558 2009-10-18  Bruno Haible  <bruno@clisp.org>
28559
28560         Tests for module 'isblank'.
28561         * modules/isblank-tests: New file.
28562         * tests/test-isblank.c: New file.
28563
28564         New module 'isblank'.
28565         * lib/isblank.c: New file.
28566         * m4/isblank.m4: New file.
28567         * modules/isblank: New file.
28568         * doc/posix-functions/isblank.texi: Mention the new module.
28569
28570 2009-10-18  Bruno Haible  <bruno@clisp.org>
28571
28572         New module 'ctype'.
28573         * lib/ctype.in.h: New file.
28574         * m4/ctype.m4: New file.
28575         * modules/ctype: New file.
28576         * doc/posix-headers/ctype.texi: Mention the new module.
28577
28578 2009-10-18  Jim Meyering  <meyering@redhat.com>
28579
28580         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
28581         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
28582         right after its initialization, rather than farther down.
28583         Keeping these in close proximity makes it easier to ensure
28584         that each such variable is initialized.  E.g.,
28585
28586             LIB_CLOCK_GETTIME=
28587             AC_SUBST([LIB_CLOCK_GETTIME])
28588
28589         This change also increments these serial numbers.
28590         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
28591         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
28592         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
28593
28594 2009-10-18  Bruno Haible  <bruno@clisp.org>
28595
28596         Don't let environment variables perturb build.
28597         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
28598         (gl_PREREQ_GETHRXTIME): ... not here.
28599
28600 2009-10-18  Bruno Haible  <bruno@clisp.org>
28601
28602         Avoid symlink attack in localcharset module.
28603         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
28604         (O_NOFOLLOW): Define fallback.
28605         (get_charset_aliases): Don't open the file if it is a symbolic link.
28606         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
28607         gl_FCNTL_H.
28608         (gl_FCNTL_H): Require it.
28609         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
28610         * modules/localcharset (Files): Add m4/fcntl_h.m4.
28611         Reported by Fergal Glynn <fglynn@veracode.com>.
28612
28613 2009-10-18  Bruno Haible  <bruno@clisp.org>
28614
28615         Implement nproc for mingw.
28616         * lib/nproc.c: Include <windows.h>
28617         (num_processors): On native Windows platforms, try GetSystemInfo.
28618
28619 2009-10-18  Bruno Haible  <bruno@clisp.org>
28620
28621         Implement nproc for IRIX.
28622         * lib/nproc.c: Include <sys/sysmp.h>.
28623         (num_processors): On IRIX systems, try sysmp.
28624         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
28625
28626 2009-10-18  Bruno Haible  <bruno@clisp.org>
28627
28628         Implement nproc for HP-UX.
28629         * lib/nproc.c: Include <sys/pstat.h>
28630         (num_processors): On HP-UX systems, try pstat_getdynamic.
28631         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
28632         pstat_getdynamic.
28633
28634 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
28635             Bruno Haible  <bruno@clisp.org>
28636
28637         Implement nproc for NetBSD, OpenBSD.
28638         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
28639         (ARRAY_SIZE): New macro.
28640         (num_processors): On BSD systems, try sysctl of HW_NCPU.
28641         * m4/nproc.m4: New file.
28642         * modules/nproc (Files): Add m4/nproc.m4.
28643         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
28644         (Makefile.am): Instead, augment lib_SOURCES.
28645
28646 2009-10-18  Bruno Haible  <bruno@clisp.org>
28647
28648         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
28649         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
28650         sys/param.h.
28651
28652 2009-10-16  Eric Blake  <ebb9@byu.net>
28653
28654         utimensat: new module
28655         * modules/utimensat: New file.
28656         * lib/utimensat.c (utimensat): Likewise.
28657         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
28658         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
28659         so we can work around Linux bugs.
28660         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
28661         * modules/sys_stat (Makefile.am): Substitute them.
28662         * lib/sys_stat.in.h (utimensat): Declare it.
28663         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28664         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
28665         * modules/utimensat-tests: New test.
28666         * tests/test-utimensat.c: Likewise.
28667
28668         utimens: let lutimens work on non-symlinks
28669         * lib/utimens.c (lutimens): Fall back to utimens rather than
28670         failing with ENOSYS, when file is not a symlink.
28671         (utimens): Reduce redirection.
28672         * tests/test-lutimens.h (test_lutimens): Update test to cover
28673         non-symlinks.
28674         * tests/test-utimens.h (test_utimens): Update test to cover
28675         symlinks.
28676         * tests/test-utimens.c (main): Update caller.
28677
28678         utimens: cache whether utimensat syscall works
28679         * lib/utimens.c (utimensat_works_really): New cache variable.
28680         (fdutimens, lutimens): Use it to avoid failing syscall.
28681
28682         test-stat-time, test-utimens: improve portability
28683         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
28684         ext4 on alpha, and for cygwin.
28685         * tests/test-utimens-common.h: New file.
28686         (nap): Factor delays into single function.
28687         * tests/test-lutimens.h (test_lutimens): Use new header.
28688         * tests/test-futimens.h (test_futimens): Likewise.
28689         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
28690         timestamps to occur from same machine, as was done previously for
28691         test_utimens.
28692         * modules/utimens-tests (Files): Ship new file.
28693         * modules/futimens-tests (Files): Likewise.
28694         Reported in part by Jim Meyering.
28695
28696         sys_stat: sort replacement declarations
28697         * lib/sys_stat.in.h: Sort declarations.
28698         * lib/futimens.c (futimens): Fix typo.
28699
28700 2009-10-15  Jim Meyering  <meyering@redhat.com>
28701
28702         don't let environment settings perturb build
28703         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
28704         could cause a configure-time and/or build-time malfunction.
28705         Typically, a configure-time function-in-library test is performed
28706         via code like this:
28707
28708           LIB_VAR=
28709           AC_SUBST([LIB_VAR])
28710           prefix_saved_LIBS=$LIBS
28711             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
28712                        [test "$ac_cv_search_FUNC" = "none required" ||
28713                         LIB_VAR=$ac_cv_search_FUNC])
28714           LIBS=$prefix_saved_LIBS
28715
28716         However, in each of the files affected by this change, the LIB_VAR=
28717         initialization was omitted.  Thus, when set in the environment, its
28718         value would propagate into generated Makefiles when FUNC is not found
28719         in LIB_NAME.
28720         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
28721         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
28722         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
28723
28724 2009-10-14  Eric Blake  <ebb9@byu.net>
28725
28726         fchdir: avoid infinite recursion in mingw
28727         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
28728         recursing.
28729
28730         test-stat-time: port to mingw
28731         * tests/test-stat-time.c (force_unlink): Return a value.
28732         (test_ctime) [W32]: Fix compilation error.
28733         (nap): Don't call usleep with too large an argument.  Use
28734         force_unlink.
28735         * doc/pastposix-functions/usleep.texi (usleep): Document the
28736         portability issue.
28737
28738 2009-10-13  Jim Meyering  <meyering@redhat.com>
28739
28740         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
28741         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
28742         * modules/pipe-filter-ii: Likewise.
28743         * modules/sys_socket-tests: Likewise.
28744         * modules/tsearch-tests: Likewise.
28745         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
28746         (check): Depend on it.
28747
28748 2009-10-12  Eric Blake  <ebb9@byu.net>
28749
28750         utimens-tests: port to NFS file systems
28751         * tests/test-utimens.h (test_utimens): Refactor utimecmp
28752         comparisons to avoid spurious failures from timestamp drift
28753         between NFS machines.
28754
28755 2009-10-12  Eric Blake  <ebb9@byu.net>
28756
28757         stat-time-tests: minor cleanups
28758         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
28759         * tests/test-stat-time.c (nap): Separate assignment from call.
28760         Suggested by Paolo Bonzini and Bruno Haible.
28761
28762         sys_stat: guarantee struct timespec
28763         * lib/sys_stat.in.h (includes): Always include <time.h>
28764         * modules/sys_stat (Depends-on): Add time.
28765         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
28766         mode_t permission values.
28767         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
28768         get at subsecond timestamps.
28769
28770 2009-10-10  Eric Blake  <ebb9@byu.net>
28771
28772         futimens: new module
28773         * modules/futimens: New file.
28774         * lib/futimens.c (futimens): Likewise.
28775         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
28776         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
28777         we can work around Linux bugs.
28778         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
28779         * modules/sys_stat (Makefile.am): Substitute them.
28780         * lib/sys_stat.in.h (futimens): Declare it.
28781         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28782         * doc/posix-functions/futimens.texi (futimens): Likewise.
28783         * modules/futimens-tests: New test.
28784         * tests/test-futimens.c: Likewise.
28785
28786         utimens: introduce fdutimens
28787         * lib/utimens.h (fdutimens): New prototype.
28788         * lib/utimens.c (gl_futimens): Move guts...
28789         (fdutimens): ...to new interface.
28790         * tests/test-utimens.c (do_fdutimens): Use it.
28791
28792         utimens: add UTIME_NOW and UTIME_OMIT support
28793         * lib/utimens.c (validate_timespec, update_timespec): New helper
28794         functions.
28795         (gl_futimens, lutimens): Use them.
28796         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
28797         stdbool, sys_stat.
28798         (Link): Mention resulting library dependency.
28799         * modules/utimecmp (Link): Likewise.
28800         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
28801         (Makefile.am): Pick up library dependency.
28802         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
28803         definition.
28804         * tests/test-sys_stat.c: Test the definitions.
28805         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
28806         * NEWS: Document library dependency.
28807
28808         utimecmp: support symlink timestamps
28809         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
28810         hashing when possible.  Use pathconf when available.
28811         (SYSCALL_RESOLUTION): Recognize tighter resolution.
28812         * modules/utimecmp (Depends-on): Add lstat.
28813
28814         utimens: add lutimens interface
28815         * lib/utimens.c (lutimens): New function.
28816         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
28817         * lib/utimens.h (lutimens): Declare new interface.
28818         * tests/test-utimens.c (main): Enhance test.
28819         * tests/test-lutimens.h (test_lutimens): New file.
28820         * modules/utimens-tests (Files): Distribute it.
28821         (Depends-on): Add symlink.
28822         (configure.ac): Check for usleep.
28823
28824         utimens: validate futimens usage
28825         * lib/utimens.c (gl_futimens): Require valid fd up front, using
28826         fewer syscalls on failure later on.  Avoid compiler warning on
28827         mingw.
28828         * modules/utimens (Depends-on): Add dup2.
28829
28830         utimens: add test
28831         * modules/utimens-tests: New test.
28832         * tests/test-utimens.h: New file.
28833         * tests/test-futimens.h: Likewise.
28834         * tests/test-utimens.c: Likewise.
28835
28836         doc: mention timestamp portability issues
28837         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
28838         instead.
28839         * doc/posix-functions/utime.texi (utime): Likewise.
28840         * doc/posix-functions/utimes.texi (utimes): Likewise.
28841         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
28842         instead.
28843         * doc/posix-functions/futimens.texi (futimens): Mention utimens
28844         module.
28845         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
28846         Mention weakness with symlink timestamps.
28847         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
28848         to utimensat/futimens instead.
28849         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
28850
28851         test-dup2: enhance test
28852         * tests/test-dup2.c (main): Also check AT_FDCWD.
28853
28854         test-stat-time: avoid more spurious failures
28855         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
28856         xfs; and avoid race if the two timestamps cross quantization edge.
28857
28858         relocatable: prefer 'file system' over 'filesystem'
28859         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
28860         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
28861         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
28862         * doc/relocatable.texi (Enabling Relocatability): Likewise.
28863         * lib/relocatable.c (compute_curr_prefix): Likewise.
28864
28865 2009-10-10  Jim Meyering  <meyering@redhat.com>
28866
28867         stat-time-tests: check for the usleep function
28868         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
28869
28870 2009-10-10  Bruno Haible  <bruno@clisp.org>
28871
28872         * modules/xnanosleep: Put the Link section after the Include section.
28873
28874 2009-10-09  Eric Blake  <ebb9@byu.net>
28875
28876         dup2: work around FreeBSD 6.1 bug
28877         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
28878         * doc/posix-functions/dup2.texi (dup2): Document it.
28879         Reported by Nelson H. F. Beebe and Jim Meyering.
28880
28881         test-stat-time: port to buggy NFS clients
28882         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
28883         (test_ctime): Also skip test if mtime and ctime are skewed.
28884
28885         maint: prefer 'file system' over 'filesystem'
28886         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
28887         * doc/posix-functions/lstat.texi (lstat): Likewise.
28888         * lib/file-has-acl.c (file_has_acl): Likewise.
28889         * lib/fwriteerror.c [TEST]: Likewise.
28890         * tests/test-areadlink.h (test_areadlink): Likewise.
28891         * tests/test-areadlinkat-with-size.c (main): Likewise.
28892         * tests/test-areadlinkat.c (main): Likewise.
28893         * tests/test-canonicalize-lgpl.c (main): Likewise.
28894         * tests/test-canonicalize.c (main): Likewise.
28895         * tests/test-fstatat.c (main): Likewise.
28896         * tests/test-linkat.c (main): Likewise.
28897         * tests/test-lstat.h (test_lstat_func): Likewise.
28898         * tests/test-mkdir.h (test_mkdir): Likewise.
28899         * tests/test-readlink.h (test_readlink): Likewise.
28900         * tests/test-remove.c (main): Likewise.
28901         * tests/test-rename.h (test_rename): Likewise.
28902         * tests/test-renameat.c (main): Likewise.
28903         * tests/test-rmdir.h (test_rmdir_func): Likewise.
28904         * tests/test-symlink.h (test_symlink): Likewise.
28905         * tests/test-symlinkat.c (main): Likewise.
28906         * tests/test-unlink.h (test_unlink_func): Likewise.
28907         * tests/test-unlinkat.c (main): Likewise.
28908
28909         maint: make realtime library usage explicit
28910         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
28911         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
28912         * modules/settime (Link): Likewise.
28913         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
28914
28915         test-stat-time: speed up execution
28916         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
28917         warning on mingw.
28918         (nap): New helper function.
28919         (prepare_test): Use it to reduce sleep time.
28920         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
28921         execution.
28922         * modules/stat-time-tests (configure.ac): Check for usleep.
28923
28924 2009-10-09  Jim Meyering  <meyering@redhat.com>
28925
28926         selinux-h: always use getfilecon wrappers
28927         * lib/getfilecon.c: New file.
28928         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
28929         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
28930         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
28931         (fgetfilecon): Provide a stub.
28932         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
28933         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
28934         file unconditionally.
28935         When <selinux/selinux.h> is found, arrange to use wrappers.
28936         * modules/selinux-h (Files): Add getfilecon.c.
28937         (Makefile.am): Substitute include-next-related bits
28938         into the now-always-generated selinux/selinux.h file.
28939         * doc/glibc-functions/lgetfilecon.texi: New file.
28940         * doc/glibc-functions/fgetfilecon.texi: New file.
28941         * doc/glibc-functions/getfilecon.texi: New file.
28942         * doc/glibc-functions/getfilecon-desc.texi: New file.
28943         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
28944         which to pull in the new files.
28945         * MODULES.html.sh (Misc): Add selinux-h.
28946
28947 2009-10-08  Jim Meyering  <meyering@redhat.com>
28948
28949         unistd: fix comment typo
28950         * lib/unistd.in.h (euidaccess): Fix a comment typo.
28951
28952 2009-10-08  Eric Blake  <ebb9@byu.net>
28953
28954         areadlink: use SIZE_MAX consistently
28955         * modules/areadlink (Depends-on): Add stdint.
28956         * modules/areadlink-with-size (Depends-on): Likewise.
28957         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
28958         gives NULL; drop sys/types, since unistd gives size_t; and add
28959         stdint for SIZE_MAX.
28960         (SIZE_MAX): Rely on headers.
28961         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
28962         and add stdint.
28963         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
28964         (SIZE_MAX): Likewise.
28965         (INITIAL_BUF_SIZE): Turn into enum.
28966         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
28967
28968 2009-10-08  Jim Meyering  <meyering@redhat.com>
28969
28970         areadlinkat: avoid compilation failure
28971         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
28972         Fix typo in comment.
28973
28974 2009-10-07  Eric Blake  <ebb9@byu.net>
28975
28976         areadlinkat-with-size: new module
28977         * modules/areadlinkat-with-size: New module.
28978         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
28979         * lib/areadlink.h (areadlinkat): Declare it.
28980         * MODULES.html.sh (File system functions): Mention it.
28981         * modules/areadlinkat-with-size-tests: New test.
28982         * tests/test-areadlinkat-with-size.c: New file.
28983
28984         xreadlinkat: new module
28985         * modules/xreadlinkat: New module.
28986         * lib/xreadlinkat.c (xreadlinkat): New file.
28987         * lib/xreadlink.h (xreadlinkat): Declare it.
28988         * MODULES.html.sh (File system functions): Mention it.
28989
28990         areadlinkat: new module
28991         * lib/at-func.c (FUNC_FAIL): New define.
28992         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
28993         * modules/areadlinkat: New module.
28994         * lib/linkat.c (areadlinkat): Move...
28995         * lib/areadlinkat.c (areadlinkat): ...to new file.
28996         * lib/areadlink.h (areadlinkat): Declare it.
28997         * modules/linkat (Depends-on): Add areadlinkat.
28998         * MODULES.html.sh (File system functions): Mention it.
28999         * modules/areadlinkat-tests: New test.
29000         * tests/test-areadlinkat.c: New file.
29001
29002         areadlink, areadlink-with-size: add tests
29003         * modules/areadlink-tests: New test.
29004         * modules/areadlink-with-size-tests: Likewise.
29005         * tests/test-areadlink.h: New file.
29006         * tests/test-areadlink.c: Likewise.
29007         * tests/test-areadlink-with-size.c: Likewise.
29008
29009         maint: minor cleanups
29010         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
29011         _UNUSED_PARAMETER_ instead.
29012         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
29013         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
29014         * modules/linkat-tests (Files): Distribute test-link.h.
29015
29016         openat, utimens: whitespace cleanup
29017         * lib/openat.c: Prefer space throughout, rather than mix of 8
29018         spaces vs. tabs.
29019         * lib/at-func.c: Likewise.
29020         * lib/utimens.c: Likewise.
29021
29022         openat: avoid using wrong fd
29023         * lib/openat.c (openat_permissive): Reject user's fd if saving the
29024         working directory chooses same fd.
29025         * lib/at-func.c (AT_FUNC_NAME): Likewise.
29026
29027         mkdir, mkdirat: fix cygwin 1.5.x bug
29028         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
29029         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
29030         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
29031         bug.
29032         (gl_PREREQ_MKDIR): Delete unused macro.
29033         * modules/mkdir (Files): Track file rename.
29034         (configure.ac): Update macro name.
29035         * modules/openat (Depends-on): Add mkdir.
29036         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
29037
29038         mkdir, mkdirat: add tests
29039         * modules/mkdir-tests: New test.
29040         * tests/test-mkdir.h: New file.
29041         * tests/test-mkdir.c: Likewise.
29042         * tests/test-mkdirat.c: Likewise.
29043         * modules/openat-tests (Files): Add new files.
29044         (Makefile.am): Run new test.
29045
29046 2009-10-06  Eric Blake  <ebb9@byu.net>
29047
29048         doc: tweak *at function documentation
29049         * doc/posix-functions/faccessat.texi (faccessat): Mention
29050         known issue with replacement.
29051         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
29052         * doc/posix-functions/linkat.texi (linkat): Likewise.
29053         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
29054         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
29055         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
29056         * doc/posix-functions/renameat.texi (renameat): Likewise.
29057         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
29058
29059         openat: fix GNU/Hurd bug in unlinkat
29060         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
29061         broken.
29062         * doc/posix-functions/unlink.texi (unlink): Document this.
29063         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
29064
29065         fdopendir: fix GNU/Hurd bug
29066         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
29067         allowing non-directory fds.
29068         * lib/fdopendir.c (rpl_fdopendir): Work around it.
29069         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
29070         * modules/dirent (Makefile.am): Substitute it.
29071         * lib/dirent.in.h (fdopendir): Declare replacement.
29072         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
29073         * tests/test-fdopendir.c (main): Test something other than
29074         /dev/null, since on Hurd that behaves like a directory.
29075
29076         test-symlink: port to GNU/Hurd
29077         * tests/test-symlink.h (test_symlink): Relax expected errno.
29078
29079         doc: tweak more cygwin information
29080         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
29081         now compatible with glibc.
29082         * doc/posix-functions/getopt.texi (getopt): Likewise.
29083
29084         getopt-gnu: add another test
29085         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
29086         guarantee behavior relied on by m4.
29087         * tests/test-getopt.c (main): Use it.
29088         * modules/getopt-posix-tests (Depends-on): Add setenv.
29089         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
29090
29091         getopt: fix compilation on darwin
29092         * lib/getopt.in.h (includes): Leave breadcrumbs during system
29093         include.
29094         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
29095         Reported by Ludovic Courtès.
29096
29097 2009-10-06  Bruno Haible  <bruno@clisp.org>
29098
29099         * modules/size_max (Description): Discourage its use.
29100         Reported by Simon Josefsson.
29101
29102 2009-10-06  Jim Meyering  <meyering@redhat.com>
29103
29104         linkat: avoid compilation failure
29105         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
29106
29107 2009-10-05  Eric Blake  <ebb9@byu.net>
29108
29109         linkat: support Linux 2.6.17
29110         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
29111         linkat on Linux, but allow cache variable override.
29112         * lib/linkat.c (rpl_linkat): Define override.
29113         * modules/linkat (Depends-on): Add symlinkat.
29114         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
29115         * modules/unistd (Makefile.am): Substitute it.
29116         * lib/unistd.in.h (linkat): Declare replacement.
29117         Reported by Pádraig Brady.
29118
29119         quotearg: port test to systems with C.UTF-8 locale
29120         * tests/test-quotearg.c (struct result_strings): Add another
29121         member, differentiating between C.ASCII and C.UTF-8 handling.
29122         (compare_strings): Add parameter.
29123         (main): Adjust all callers.
29124
29125         getopt: avoid clash with FreeBSD _getopt_internal
29126         * lib/getopt.in.h (_getopt_internal): Override the name.
29127         * lib/getopt_int.h (includes): Pick up any overrides.
29128         Reported by Reuben Thomas.
29129
29130         hash: allow C89 compilation
29131         * lib/hash.c (check_tuning): Move declaration before statement.
29132         Reported by Reuben Thomas.
29133
29134 2009-10-05  Karl Berry  <karl@gnu.org>
29135
29136         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
29137
29138 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
29139             Bruno Haible  <bruno@clisp.org>
29140
29141         * lib/uname.c (uname): Use a table-driven algorithm to compute
29142         Windows NT versions.
29143
29144 2009-10-04  Bruno Haible  <bruno@clisp.org>
29145
29146         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
29147         program_invocation_short_name.
29148         * modules/progname (configure.ac): Test for presence of
29149         program_invocation_short_name.
29150         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
29151
29152 2009-10-04  Bruno Haible  <bruno@clisp.org>
29153
29154         * lib/progname.c (set_program_name): Fix comment.
29155         Reported by Jim Meyering.
29156
29157 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
29158             Bruno Haible  <bruno@clisp.org>
29159
29160         * lib/uname.c: Include <string.h>.
29161         (uname): Do only one call to GetVersionEx in the common case.
29162
29163 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
29164             Bruno Haible  <bruno@clisp.org>
29165
29166         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
29167         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
29168         (uname): Add support for Windows CE and various non-x86 CPU types.
29169
29170 2009-10-03  Bruno Haible  <bruno@clisp.org>
29171
29172         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
29173         invocation to tests/configure.ac.
29174         Reported by Ian Beckwith <ianb@erislabs.net>.
29175
29176 2009-10-02  Eric Blake  <ebb9@byu.net>
29177
29178         fchdir: avoid compiler warning
29179         * lib/fchdir.c (canonicalize_file_name)
29180         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
29181
29182         test-open: support mingw errno values
29183         * tests/test-open.h (test_open): Relax test.
29184         * tests/test-fopen.h (test_fopen): Likewise.
29185         * tests/test-openat-safer.c (main): Likewise.
29186
29187         open: fix opening directory on mingw
29188         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
29189
29190         test-open: on GNU/Hurd, /dev/null is a directory
29191         * tests/test-fopen.h (main): Rename...
29192         (test_fopen): ...to this.  Use a guaranteed non-directory when
29193         confirming open behavior on trailing slash.
29194         * tests/test-openat-safer.c (main): Likewise.
29195         * tests/test-open.h (main): Likewise....
29196         (test_open): ...to this.
29197         * tests/test-fopen.c (main): Adjust caller.
29198         * tests/test-fopen-safer.c (main): Likewise.
29199         * tests/test-open.c (main): Likewise.
29200         * tests/test-fcntl-safer.c (main): Likewise.
29201         Reported by Samuel Thibault.
29202
29203         rename, fchdir: don't ignore chdir failure
29204         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
29205         * lib/rename.c (rpl_rename) [W32]: Likewise.
29206         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
29207         an empty destination directory if source cannot be renamed,
29208         although there is still possibility for failure.
29209         * doc/posix-functions/rename.texi (rename): Document the race.
29210         Reported by Jim Meyering.
29211
29212         maint: cleanup whitespace in recent commits
29213         * lib/rename.c (rpl_rename): Remove tabs.
29214         * tests/test-link.h (test_link): Likewise.
29215         * lib/fchdir.c (get_name): Likewise.
29216         Reported by Jim Meyering.
29217
29218 2009-10-02  Ben Pfaff  <blp@gnu.org>
29219
29220         relocatable-prog-wrapper: Add missing dependency on
29221         double-slash-root.
29222         * modules/relocatable-prog-wrapper: Add dependency.
29223         Reported by Ian Beckwith <ianb@erislabs.net>.
29224
29225 2009-10-02  Eric Blake  <ebb9@byu.net>
29226
29227         renameat: fix Solaris bugs
29228         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
29229         needed fixing.
29230         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
29231         * modules/stdio (Makefile.am): Substitute it.
29232         * lib/stdio.in.h (renameat): Declare replacement.
29233         * lib/renameat.c (rpl_renameat): Implement fix.
29234
29235         renameat: new module
29236         * modules/renameat: New file.
29237         * lib/renameat.c (renameat): Likewise.
29238         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
29239         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
29240         * modules/stdio (Makefile.am): Substitute them.
29241         * lib/stdio.in.h (renameat): Declare it.
29242         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29243         * doc/posix-functions/renameat.texi (renameat): Likewise.
29244         * modules/renameat-tests: New test.
29245         * tests/test-renameat.c: Likewise.
29246
29247         rename: fix mingw bugs
29248         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
29249         directory overwrite bugs.
29250
29251         rename: fix another cygwin 1.5 bug
29252         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
29253         checks.
29254         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
29255         unnecessary cygwin workarounds.  Also work around bug with moving
29256         full directory onto an empty one.
29257         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
29258
29259         rename-dest-slash: merge into rename module
29260         * modules/rename-dest-slash (Status): Mark obsolete.
29261         (Depends-on): Add rename.
29262         (Files): Let rename do it all.
29263         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
29264         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
29265         * m4/rename-dest-slash.m4: ...so this file can be deleted.
29266         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
29267         * lib/rename.c (rpl_rename): Update comments.
29268
29269         rename: fix cygwin 1.5.x bugs
29270         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
29271         * lib/rename.c (rpl_rename): Work around them.
29272         * modules/rename (Depends-on): Add same-inode.
29273
29274         rename: fix Solaris 10 bug
29275         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
29276         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
29277         was the only bug.
29278
29279         rename: fix Solaris 9 bug
29280         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
29281         on non-directory.  Avoid calling exit.
29282         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
29283         strdup.
29284         * modules/rename-tests (Depends-on): Drop lstat.
29285         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
29286         (gl_PREREQ_RENAME): Delete unused macro.
29287
29288         rename-dest-slash: fix NetBSD bug
29289         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
29290         links.
29291         * modules/rename-dest-slash (Depends-on): Add same-inode.
29292
29293         rename-tests: new test, exposes several platform bugs
29294         * modules/rename-tests: New file.
29295         * tests/test-rename.h: Likewise.
29296         * tests/test-rename.c: Likewise.
29297         * doc/posix-functions/rename.texi (rename): Improve documentation,
29298         including bugs that will eventually be fixed in gnulib.
29299
29300 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
29301
29302         * lib/uname.c: Include <stdlib.h>
29303         (uname): Assume version info is available.
29304
29305 2009-10-02  Jim Meyering  <meyering@redhat.com>
29306
29307         gnu-web-doc-update: correct --help output
29308         * build-aux/gnu-web-doc-update: Make --help output relevant.
29309
29310         gnu-web-doc-update: add standard options
29311         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
29312
29313         gnu-web-doc-update: New module.
29314         Use this script to automatically update the on-line web documentation
29315         for your GNU project at http://www.gnu.org/software/$pkg/manual/
29316         * modules/gnu-web-doc-update: New file, from coreutils.
29317         * build-aux/gnu-web-doc-update: New script.
29318
29319 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
29320
29321         link: LoadLibrary is not needed.
29322         * lib/link.c: Use GetModuleHandle.
29323
29324 2009-10-01  Eric Blake  <ebb9@byu.net>
29325
29326         getopt: bump serial number
29327         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
29328         change.
29329
29330         tests: tighten link, rmdir, and remove tests
29331         * tests/test-link.h (includes): No need to use <config.h> here.
29332         Clean up if directory hard link was created, otherwise test for
29333         trailing '.'.
29334         * tests/test-linkat.c (main): Simplify.
29335         * tests/test-remove.c (main): Enhance test for trailing '.'.
29336         * tests/test-rmdir.h (test_rmdir_func): Likewise.
29337
29338 2009-10-01  Jim Meyering  <meyering@redhat.com>
29339
29340         maint.mk: requiring "make major" was annoying, for a "minor" release.
29341         What is intended is "stable", to contrast with alpha and beta,
29342         so require "make stable", not "make major".
29343         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
29344         (get_tool_versions): Likewise.
29345         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
29346
29347 2009-09-30  Ben Pfaff  <blp@gnu.org>
29348
29349         Fix broken build of replacement for Windows tmpfile().
29350         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
29351         flags argument added along with the 'mkostemp' module.
29352
29353 2009-09-28  Bruno Haible  <bruno@clisp.org>
29354
29355         Avoid identifier clash with POSIX function 'remove' defined as a macro.
29356         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
29357         to 'remove_elt'.
29358         (gl_list_remove): Update.
29359         * lib/gl_list.c (gl_list_remove): Update.
29360         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
29361         to 'remove_elt'.
29362         (gl_oset_remove): Update.
29363         * lib/gl_list.c (gl_oset_remove): Update.
29364         Reported by Eric Blake.
29365
29366 2009-09-28  Eric Blake  <ebb9@byu.net>
29367
29368         doc: mention yet more cygwin 1.7 status
29369         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
29370         cygwin.
29371         * doc/glibc-functions/execvpe.texi (execvpe): New file.
29372         * doc/gnulib.texi (Glibc unistd.h): Mention it.
29373
29374         argp: fix test failure
29375         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
29376         that are not upper-case.  Pass correct range to tolower.
29377
29378 2009-09-27  Jim Meyering  <meyering@redhat.com>
29379
29380         test-yesno: work around sparc-dash here-document infelicity
29381         Without this change, the literal \177 byte in a here document
29382         would make dash 0.5.5.1-3 access uninitialized memory.
29383         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
29384         Instead, use a marker, "@", and filter through tr to create the desired
29385         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
29386
29387 2009-09-27  Bruno Haible  <bruno@clisp.org>
29388
29389         Disable untested support for new flavours of ACLs on AIX.
29390         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
29391         progress.
29392         * lib/set-mode-acl.c (qset_acl): Likewise.
29393
29394 2008-12-07  Bruno Haible  <bruno@clisp.org>
29395
29396         Add support for new flavours of ACLs on AIX. (Untested.)
29397         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
29398         (file_has_acl): Add support for newer AIX.
29399         * lib/set-mode-acl.c (qset_acl): Likewise.
29400         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
29401         Rainer Tammer <tammer@tammer.net>.
29402
29403 2009-09-26  Eric Blake  <ebb9@byu.net>
29404
29405         argp: fix compilation of getopt
29406         * lib/getopt.in.h (includes): Use different guard than glibc.
29407         Reported by Sergey Poznyakoff.
29408
29409         doc: mention more cygwin 1.7 status
29410         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
29411         bug.
29412         * doc/posix-functions/execl.texi (execl): Likewise.
29413         * doc/posix-functions/execle.texi (execle): Likewise.
29414         * doc/posix-functions/execlp.texi (execlp): Likewise.
29415         * doc/posix-functions/execv.texi (execv): Likewise.
29416         * doc/posix-functions/execve.texi (execve): Likewise.
29417         * doc/posix-functions/execvp.texi (execvp): Likewise.
29418         * doc/glibc-functions/canonicalize_file_name.texi
29419         (canonicalize_file_name): Cygwin 1.7 now provides this.
29420         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
29421         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
29422         on AT_SYMLINK_NOFOLLOW.
29423
29424 2009-09-24  Eric Blake  <ebb9@byu.net>
29425
29426         test-linkat: make test more robust
29427         * tests/test-linkat.c (main): Avoid collision with EEXIST.
29428
29429         getopt: fix inclusion guards for cygwin
29430         * modules/getopt-posix (Depends-on): Add include-next.
29431         (Makefile.am): Substitute more items in replacement header.
29432         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
29433         <getopt.h>.
29434         * lib/getopt.in.h (includes): Use split inclusion guard, and
29435         prefer <getopt.h> over include <unistd.h> when one is present.
29436         (option): Also override name of 'struct option'.
29437
29438         same-inode: revert prior change; it is not yet ready
29439         * NEWS: Undo mention of this change.
29440         * lib/same-inode.h (same-inode.h): Undo tri-state change.
29441         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
29442         * lib/cycle-check.c (cycle_check): Likewise.
29443         * lib/same.c (same_name): Likewise.
29444         * lib/at-func2.c (at_func2): Likewise.
29445
29446 2009-09-23  Eric Blake  <ebb9@byu.net>
29447
29448         linkat: new module
29449         * modules/linkat: New file.
29450         * lib/at-func2.c (at_func2): Likewise.
29451         * lib/linkat.c (linkat): Likewise.
29452         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
29453         * lib/openat-priv.h (at_func2): Add declaration.
29454         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
29455         * modules/unistd (Makefile.am): Substitute them.
29456         * lib/unistd.in.h (linkat): Declare it.
29457         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29458         * doc/posix-functions/linkat.texi (linkat): Likewise.
29459         * doc/posix-functions/link.texi (link): Tweak wording.
29460         * tests/test-link.c (main): Move guts...
29461         * tests/test-link.h (test_link): ...into new file.
29462         * modules/linkat-tests: New test.
29463         * tests/test-linkat.c: Likewise.
29464         * modules/link-tests (Files): Ship new file.
29465         (Depends-on): Add stdbool.
29466
29467         dirname: add library-safe mdir_name
29468         * lib/dirname.h (mdir_name): New prototype.
29469         * lib/dirname.c (dir_name): Move guts...
29470         (mdir_name): ...to new function that avoids xalloc_die.
29471
29472         fchdir: another mingw fix
29473         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
29474         * lib/fchdir.c (get_name): New helper method; skips canonicalize
29475         on mingw (where it has not yet been ported), and make it optional
29476         elsewhere.
29477         (_gl_register_fd): Use it.
29478
29479         same-inode: make SAME_INODE tri-state, to port to mingw
29480         * NEWS: Mention this change.
29481         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
29482         st_ino always being 0.
29483         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
29484         * lib/cycle-check.c (cycle_check): Likewise.
29485         * lib/same.c (same_name): Likewise.
29486
29487         lstat: avoid mingw compilation error
29488         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
29489         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
29490         lstat ourselves.
29491         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
29492         was adequate.
29493         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
29494         the checks for lstat.
29495         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
29496
29497         link: fix test failure on Solaris 9
29498         * lib/link.c (rpl_link): Don't assume link will catch bogus
29499         trailing slash on source.
29500
29501         test-symlinkat: enhance test
29502         * tests/test-readlink.c (main): Move guts...
29503         * tests/test-readlink.h (test_readlink): ...into new file.
29504         * tests/test-symlink.c (main): Move guts...
29505         * tests/test-symlink.h (test_symlink): ...into new file.
29506         * tests/test-symlinkat.c (main): Use new files for further
29507         coverage.
29508         (do_symlink, do_readlink): New helper functions.
29509         * modules/symlink-tests (Files): Ship new file.
29510         (Depends-on): Add stdbool.
29511         * modules/readlink-tests (Files): Ship new file.
29512         (Depends-on): Add stdbool.
29513         * modules/symlinkat-tests (Files): Use new files.
29514
29515 2009-09-23  Eric Blake  <ebb9@byu.net>
29516
29517         readlink: document portability issue with symlink length
29518         * doc/posix-functions/lstat.texi (lstat): Mention that some file
29519         systems have bogus st_size on symlinks, and mention the
29520         areadlink-with-size module.
29521         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
29522         * doc/posix-functions/readlink.texi (readlink): Mention the
29523         areadlink module, and ERANGE failure.
29524         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
29525         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
29526
29527         readlink: fix Solaris 9 bug with trailing slash
29528         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
29529         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
29530         * doc/posix-functions/readlink.texi (readlink): Document this.
29531         * modules/readlink-tests: New test.
29532         * tests/test-readlink.c: Likewise.
29533
29534         readlink: fix cygwin 1.5.x bug with return type
29535         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
29536         * lib/unistd.in.h (readlink): Use ssize_t.
29537         * lib/readlink.c (readlink): Likewise.
29538         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29539         * modules/unistd (Makefile.am): Substitute it.
29540         * lib/unistd.in.h (readlink): Declare replacement.
29541         * doc/posix-functions/readlink.texi (readlink): Document this.
29542
29543         symlink: use throughout gnulib
29544         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
29545         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
29546         symlink is not used.
29547         * modules/symlinkat (Depends-on): Add symlink.
29548         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
29549         * modules/canonicalize-tests (Depends-on): Likewise.
29550         * modules/lstat-tests (Depends-on): Likewise.
29551         * modules/openat-tests (Depends-on): Likewise.
29552         * modules/remove-tests (Depends-on): Likewise.
29553         * modules/rmdir-tests (Depends-on): Likewise.
29554         * modules/unlink-tests (Depends-on): Likewise.
29555         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
29556         * tests/test-canonicalize.c (symlink): Likewise.
29557         * tests/test-fstatat.c (symlink): Likewise.
29558         * tests/test-lstat.c (symlink): Likewise.
29559         * tests/test-remove.c (symlink): Likewise.
29560         * tests/test-rmdir.c (symlink): Likewise.
29561         * tests/test-unlink.c (symlink): Likewise.
29562         * tests/test-unlinkat.c (symlink): Likewise.
29563
29564         symlink: new module, for Solaris 9 bug
29565         * modules/symlink: New file.
29566         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
29567         * lib/symlink.c: Likewise.
29568         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
29569         * modules/unistd (Makefile.am): Substitute them.
29570         * lib/unistd.in.h (symlink): Declare replacement.
29571         * MODULES.html.sh (File system functions): Mention it.
29572         * doc/posix-functions/symlink.texi (symlink): Likewise.
29573         * modules/symlink-tests: New test.
29574         * tests/test-symlink.c: Likewise.
29575
29576 2009-09-23  Bruno Haible  <bruno@clisp.org>
29577
29578         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
29579         when needed.
29580         Test case: gnulib-tool --import --with-tests atexit inttypes.
29581         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
29582
29583 2009-09-23  Bruno Haible  <bruno@clisp.org>
29584
29585         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
29586         subcommand, not in a subshell.
29587
29588 2009-09-22  Eric Blake  <ebb9@byu.net>
29589
29590         unistd: sort replacement declarations
29591         * lib/unistd.in.h: Sort declarations.
29592
29593         open, openat: minor optimization
29594         * lib/open.c (open): If open succeeded, len is non-zero.
29595         * lib/openat.c (rpl_openat): Likewise.
29596
29597         link-follow: ensure correct result
29598         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
29599         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
29600         distinguish between possible failures.
29601
29602 2009-09-21  Eric Blake  <ebb9@byu.net>
29603
29604         fts: avoid compiler warning
29605         * lib/fts.c (dirent_inode_sort_may_be_useful)
29606         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
29607
29608 2009-09-19  Bruno Haible  <bruno@clisp.org>
29609
29610         * lib/progreloc.c (canonicalize_file_name): New declaration.
29611
29612 2009-09-19  Eric Blake  <ebb9@byu.net>
29613
29614         link: fix quoting
29615         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
29616
29617         openat: fix openat bugs on Solaris 9
29618         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
29619         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
29620         * modules/openat (Depends-on): Add open.
29621         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
29622         * modules/fcntl-h (Makefile.am): Substitute it.
29623         * lib/fcntl.in.h (openat): Declare replacement.
29624         * doc/posix-functions/openat.texi (openat): Document this.
29625
29626         openat: move fstatat and unlinkat into correct files
29627         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
29628         compiled.
29629         * lib/openat.c (fstatat, unlinkat): Move...
29630         * lib/fstatat.c (fstatat): ...into correct files.
29631         * lib/unlinkat.c (unlinkat): Likewise.
29632
29633         openat: fix unlinkat bugs on Solaris 9
29634         * lib/unlinkat.c (unlinkat): New file.
29635         * modules/openat (Depends-on): Add unlink.
29636         (Files): Distribute it.
29637         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
29638         trailing slash behavior is broken.
29639         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29640         * modules/unistd (Makefile.am): Substitute it.
29641         * lib/unistd.in.h (unlinkat): Declare replacement.
29642         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
29643
29644         openat: fix fstatat bugs on Solaris 9
29645         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
29646         stat.
29647         * doc/posix-functions/fstatat.texi (fstatat): Document this.
29648
29649         test-unlinkat: enhance test, to expose Solaris 9 bug
29650         * tests/test-unlink.c (main): Factor guts...
29651         * tests/test-unlink.h (test_rmdir_func): ...into new file.
29652         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
29653         * tests/test-rmdir.c (main): Adjust caller.
29654         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
29655         (unlinker): New helper function.
29656         (rmdirat): Enhance check.
29657         * modules/rmdir-tests (Depends-on): Add stdbool.
29658         * modules/unlink-tests (Depends-on): Likewise.
29659         (Files): Add test-unlink.h.
29660         * modules/openat-tests (Files): Likewise.
29661         (Depends-on): Add unlinkdir.
29662
29663         test-fstatat: new test, to expose Solaris 9 bugs
29664         * tests/test-stat.c (main): Factor guts...
29665         * tests/test-stat.h (test_stat_func): ...into new file.
29666         * tests/test-lstat.c (main): Factor guts...
29667         * tests/test-lstat.h (test_lstat_func): ...into new file.
29668         * tests/test-fstatat.c: New file.
29669         * modules/stat-tests (Files): Add test-stat.h.
29670         * modules/lstat-tests (Files): Add test-lstat.h.
29671         (Depends-on): Add stdbool.
29672         * modules/openat-tests (Depends-on): Add pathmax.
29673         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
29674         (Makefile.am): Run new test.
29675
29676         remove: new module, for mingw and Solaris 9 bugs
29677         * modules/remove: New file.
29678         * lib/remove.c: Likewise.
29679         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
29680         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
29681         * modules/stdio (Makefile.am): Use them.
29682         * lib/stdio.in.h (remove): Declare replacement.
29683         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29684         * doc/posix-functions/remove.texi (remove): Likewise.
29685         * modules/remove-tests: New test.
29686         * tests/test-remove.c: Likewise.
29687
29688         unlink: new module, for Solaris 9 bug
29689         * modules/unlink: New file.
29690         * lib/unlink.c: Likewise.
29691         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
29692         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
29693         * modules/unistd (Makefile.am): Use them.
29694         * lib/unistd.in.h (stat): Declare replacement.
29695         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29696         * doc/posix-functions/unlink.texi (unlink): Likewise.
29697         * modules/unlink-tests: New test.
29698         * tests/test-unlink.c: Likewise.
29699
29700         lstat: fix Solaris 9 bug
29701         * lib/lstat.c (lstat): Also check for trailing slash on
29702         non-symlink, non-directories.  Use stat module to simplify logic.
29703         * doc/posix-functions/lstat.texi (lstat): Document it.
29704         * modules/lstat-tests (Depends-on): Add errno, same-inode.
29705         (configure.ac): Check for symlink.
29706         * tests/test-lstat.c (main): Add more tests.
29707
29708         stat: add as dependency to other modules
29709         * modules/chown (Depends-on): Add stat.
29710         * modules/euidaccess (Depends-on): Likewise.
29711         * modules/fchdir (Depends-on): Likewise.
29712         * modules/isdir (Depends-on): Likewise.
29713         * modules/link (Depends-on): Likewise.
29714         * modules/lstat (Depends-on): Likewise.
29715         * modules/mkdir-p (Depends-on): Likewise.
29716         * modules/modechange (Depends-on): Likewise.
29717         * modules/open (Depends-on): Likewise.
29718         * modules/readlink (Depends-on): Likewise.
29719         * modules/same (Depends-on): Likewise.
29720
29721         stat: fix Solaris 9 bug
29722         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
29723         slash.
29724         * lib/stat.c (rpl_stat): Work around it.
29725         * doc/posix-functions/stat.texi (stat): Update documentation.
29726
29727         stat: new module, for mingw bug
29728         * modules/stat: New file.
29729         * lib/stat.c: Likewise.
29730         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
29731         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
29732         * modules/sys_stat (Makefile.am): Use them.
29733         * lib/sys_stat.in.h (stat): Declare replacement.
29734         * lib/openat.c (fstatat): Deal with lstat and stat being function
29735         macros.
29736         * modules/openat (Depends-on): Add inline.
29737         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29738         * doc/posix-functions/stat.texi (stat): Likewise.
29739         * modules/stat-tests: New test.
29740         * tests/test-stat.c: Likewise.
29741
29742 2009-09-19  Jim Meyering  <meyering@redhat.com>
29743
29744         syntax-check: detect unnecessary inclusion of canonicalize.h
29745         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
29746
29747 2009-09-19  Eric Blake  <ebb9@byu.net>
29748
29749         canonicalize-lgpl: adjust clients to use correct header
29750         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
29751         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
29752         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
29753         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
29754         * lib/progreloc.c (includes): Likewise.
29755
29756 2009-09-19  Jim Meyering  <meyering@redhat.com>
29757
29758         test-posixtm.c: correct a comment
29759         * tests/test-posixtm.c: Correct first-line comment.
29760         Spotted by Eric Blake.
29761
29762 2009-09-16  Jim Meyering  <meyering@redhat.com>
29763
29764         posixtm-tests: make T const-correct; add a test case
29765         * tests/test-posixtm.c (T): Declare const.
29766         Add a test for -(2^31+1).
29767         Remove useless can-succeed-only-in-2002 test.
29768
29769         posixtm-tests: adjust the sole failing test
29770         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
29771         expected output matches what mktime now produces.  Cross-checked via
29772         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
29773
29774         posixtm: move #ifdef'd tests into a new module
29775         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
29776         * tests/test-posixtm.c: ... this new file.
29777         * modules/posixtm-tests: New module.
29778
29779 2009-09-19  Eric Blake  <ebb9@byu.net>
29780
29781         openat: simplify use of at-func.c
29782         * lib/at-func.c (includes): Include prerequisites here, to
29783         simplify requirements on client files.
29784         * lib/openat-priv.h: Add double-inclusion guard.
29785         * lib/faccessat.c (includes): Simplify.
29786         * lib/fchmodat.c (includes): Likewise.
29787         * lib/fchownat.c (includes): Likewise.
29788         * lib/mkdirat.c (includes): Likewise.
29789         * lib/mkfifoat.c (includes): Likewise.
29790         * lib/symlinkat.c (includes): Likewise.
29791
29792         openat: allow return of fd 0
29793         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
29794         * modules/save-cwd (Depends-on): Replace fcntl-safer with
29795         unistd-safer.
29796         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
29797         <fcntl.h>; this module does not leak fds.
29798         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
29799         must be allowed to return 0, leaving openat_safer to add the
29800         safety.
29801         (openat_permissive): Avoid writing to just-opened fd 2 if
29802         restoring the current directory fails.
29803         * lib/openat-die.c (openat_restore_fail): Add comment.
29804         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
29805         (save_cwd): Guarantee safe fd, but without use of open_safer.
29806         * tests/test-openat.c: New test.
29807         * modules/openat-tests (Files, Makefile.am): Distribute and build
29808         new file.
29809
29810         relocatable-prog-wrapper: fix build
29811         * modules/relocatable-prog-wrapper (Files): Update name of
29812         canonicalize m4 file, broken on 2009-09-17.
29813         Reported by emad hajjar <aleppos@hotmail.com>.
29814
29815 2009-09-19  Bruno Haible  <bruno@clisp.org>
29816
29817         * lib/safe-alloc.h: Use the standard header with GPL copyright.
29818         * lib/safe-alloc.c: Likewise.
29819         Reported by Ian Beckwith <ianb@erislabs.net>.
29820
29821 2009-09-18  Bruno Haible  <bruno@clisp.org>
29822
29823         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
29824         Reported by <erobles@sensacd.com.mx>.
29825
29826 2009-09-17  Eric Blake  <ebb9@byu.net>
29827
29828         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
29829         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
29830         slashes when checking if last component is missing.
29831         * tests/test-canonicalize.c (main): Test this.
29832
29833         canonicalize, canonicalize-lgpl: honor // if distinct from /
29834         * modules/canonicalize (Files): Add double-slash-root.m4.
29835         * modules/canonicalize-lgpl (Files): Likewise.
29836         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
29837         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
29838         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
29839         fallback definition.
29840         (canonicalize_filename_mode): Use it to protect //.
29841         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
29842         (__realpath): Likewise.
29843         * tests/test-canonicalize.c (main): Test this.
29844         * tests/test-canonicalize-lgpl.c (main): Likewise.
29845         * modules/canonicalize-tests (Depends-on): Add same-inode.
29846         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
29847
29848         canonicalize-lgpl: fix glibc bug with trailing slash
29849         * m4/canonicalize-lgpl.m4: Move contents...
29850         * m4/canonicalize.m4: ...here.
29851         (gl_CANONICALIZE_LGPL): Factor realpath check...
29852         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
29853         glibc 2.3.5 bug, fixed 2005-04-27.
29854         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
29855         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
29856         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
29857         * modules/canonicalize-lgpl (Files): Manage file rename.
29858         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
29859         * modules/stdlib (Makefile.am): Substitute witness.
29860         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
29861         is needed.
29862         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
29863         replacement is required.
29864         * lib/canonicalize.c (canonicalize_file_name): Likewise.
29865         * doc/glibc-functions/canonicalize_file_name.texi
29866         (canonicalize_file_name): Document this.
29867         * doc/posix-functions/realpath.texi (realpath): Likewise.
29868
29869         canonicalize-lgpl: reject non-directory with trailing slash
29870         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
29871         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
29872         catches failures in glibc 2.3.5.
29873         * tests/test-canonicalize.c (main): Likewise.
29874
29875         canonicalize-lgpl: use native realpath if it works
29876         * lib/canonicalize-lgpl.c (realpath): Guard with
29877         FUNC_REALPATH_WORKS.
29878         * lib/stdlib.in.h (realpath): Make declaration optional based on
29879         HAVE_REALPATH.
29880         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
29881         native realpath works.
29882         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
29883         * modules/stdlib (Makefile.am): Substitute witness.
29884
29885         canonicalize, canonicalize-lgpl: use <stdlib.h>
29886         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
29887         (Include): Mention <stdlib.h>.
29888         (configure.ac): Mention functions we provide.
29889         * modules/canonicalize (configure.ac): Likewise.
29890         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
29891         realpath if canonicalize_file_name is missing.
29892         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
29893         * modules/stdlib (Makefile.am): Substitute witnesses.
29894         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
29895         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
29896         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
29897         * NEWS: Document this.
29898         * doc/glibc-functions/canonicalize_file_name.texi
29899         (canonicalize_file_name): Likewise.
29900         * doc/posix-functions/realpath.texi (realpath): Likewise.
29901         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
29902
29903         test-canonicalize: consolidate into single C program
29904         * tests/test-canonicalize.sh: Delete; move setup into...
29905         * tests/test-canonicalize.c (main): ...the program, making it
29906         easier to run in debugger.  Add some tests.
29907         * modules/canonicalize-tests (Files): Remove unused file.
29908         (Depends-on): Add progname.
29909         (configure.ac, Makefile.am): Simplify.
29910
29911         test-canonicalize-lgpl: consolidate into single C program
29912         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
29913         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
29914         easier to run in debugger.  Add some tests.
29915         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
29916         (configure.ac, Makefile.am): Simplify.
29917
29918         canonicalize: avoid resolvepath
29919         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
29920         unnecessary checks.
29921         * lib/canonicalize.c (includes): Simplify.
29922         (canonicalize_file_name): Drop resolvepath implementation.
29923         * modules/canonicalize (Depends-on): Drop filenamecat.
29924
29925         canonicalize: don't lose errno
29926         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
29927         over calls to free.
29928
29929         canonicalize: simplify errno handling
29930         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
29931         assignment.
29932
29933         canonicalize, canonicalize-lgpl: update module dependencies
29934         * modules/canonicalize (Depends-on): Add extensions, lstat,
29935         pathmax, stdlib.
29936         (Files): Drop pathmax.h.
29937         (configure.ac): Adjust macro name.
29938         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
29939         lstat, stdlib, sys_stat.
29940         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
29941         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
29942         extensions.
29943         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
29944         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
29945         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
29946         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
29947         declaration, if available.
29948         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
29949         we can rely on the readlink module.
29950         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
29951         (includes): Use <unistd.h> unconditionally.
29952
29953 2009-09-17  Eric Blake  <ebb9@byu.net>
29954
29955         maint: make Include sections of modules consistent
29956         * modules/alloca: Use only header name; no need to list #include.
29957         * modules/alloca-opt: Likewise.
29958         * modules/arpa_inet: Likewise.
29959         * modules/canon-host: Likewise.
29960         * modules/configmake: Likewise.
29961         * modules/dirent: Likewise.
29962         * modules/eealloc: Likewise.
29963         * modules/environ: Likewise.
29964         * modules/fchdir: Likewise.
29965         * modules/fcntl: Likewise.
29966         * modules/fcntl-h: Likewise.
29967         * modules/gethrxtime: Likewise.
29968         * modules/gettime: Likewise.
29969         * modules/ignore-value: Likewise.
29970         * modules/inet_ntop: Likewise.
29971         * modules/inet_pton: Likewise.
29972         * modules/inttypes: Likewise.
29973         * modules/isnand-nolibm: Likewise.
29974         * modules/isnanf-nolibm: Likewise.
29975         * modules/mbchar: Likewise.
29976         * modules/mbfile: Likewise.
29977         * modules/mbiter: Likewise.
29978         * modules/mbuiter: Likewise.
29979         * modules/netdb: Likewise.
29980         * modules/netinet_in: Likewise.
29981         * modules/nproc: Likewise.
29982         * modules/pagealign_alloc: Likewise.
29983         * modules/poll: Likewise.
29984         * modules/printf-frexp: Likewise.
29985         * modules/pthread: Likewise.
29986         * modules/putenv: Likewise.
29987         * modules/random_r: Likewise.
29988         * modules/relocatable-prog: Likewise.
29989         * modules/search: Likewise.
29990         * modules/select: Likewise.
29991         * modules/selinux-h: Likewise.
29992         * modules/settime: Likewise.
29993         * modules/signal: Likewise.
29994         * modules/size_max: Likewise.
29995         * modules/socklen: Likewise.
29996         * modules/ssize_t: Likewise.
29997         * modules/stdarg: Likewise.
29998         * modules/stdbool: Likewise.
29999         * modules/stddef: Likewise.
30000         * modules/stdint: Likewise.
30001         * modules/stdio: Likewise.
30002         * modules/stdlib: Likewise.
30003         * modules/string: Likewise.
30004         * modules/strings: Likewise.
30005         * modules/sys_file: Likewise.
30006         * modules/sys_ioctl: Likewise.
30007         * modules/sys_select: Likewise.
30008         * modules/sys_socket: Likewise.
30009         * modules/sys_stat: Likewise.
30010         * modules/sys_time: Likewise.
30011         * modules/sys_times: Likewise.
30012         * modules/sys_utsname: Likewise.
30013         * modules/sys_wait: Likewise.
30014         * modules/sysexits: Likewise.
30015         * modules/time: Likewise.
30016         * modules/times: Likewise.
30017         * modules/tmpfile: Likewise.
30018         * modules/trim: Likewise.
30019         * modules/unistd: Likewise.
30020         * modules/wchar: Likewise.
30021         * modules/wctype: Likewise.
30022
30023 2009-09-17  Bruno Haible  <bruno@clisp.org>
30024
30025         Make getdate.y compile on QNX and NetBSD 5 / i386.
30026         * m4/getdate.m4 (gl_GETDATE): Conditionally define
30027         TIME_T_FITS_IN_LONG_INT.
30028         * lib/getdate.y (long_time_t): New type.
30029         (relative_time): Change type of 'seconds' field to long_time_t.
30030         (get_date): Update types of local variables. Check against overflow
30031         during conversion from long_time_t to time_t.
30032         Reported by Matt Kraai <kraai@ftbfs.org>
30033         and Hasso Tepper <hasso@netbsd.org>.
30034
30035 2009-09-17  Bruno Haible  <bruno@clisp.org>
30036
30037         * modules/COPYING: Update copyright years.
30038         * modules/README: Likeiwse.
30039         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
30040         Reported by Ian Beckwith <ianb@erislabs.net>.
30041
30042 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
30043
30044         * users.txt: Update references for gnuit package.
30045
30046 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
30047
30048         * m4/getdelim.m4: Fix typo in copyright line.
30049
30050 2009-09-17  Bruno Haible  <bruno@clisp.org>
30051
30052         * lib/atoll.c: Use the standard header with GPL copyright.
30053         * lib/argz.in.h: Likewise.
30054         * lib/glob.c: Likewise.
30055         * lib/glob-libc.h: Likewise.
30056         * lib/random_r.c: Likewise.
30057         * lib/siglist.h: Likewise.
30058         * lib/strsignal.c: Likewise.
30059         Reported by Ian Beckwith <ianb@erislabs.net>.
30060
30061 2009-09-17  Eric Blake  <ebb9@byu.net>
30062
30063         rmdir: ensure correct dependency order
30064         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
30065
30066 2009-09-17  Bruno Haible  <bruno@clisp.org>
30067
30068         Disable assertion that fails on NetBSD 5 / i386.
30069         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
30070         Reported by Sam Steingold <sds@gnu.org>
30071         and Hasso Tepper <hasso@netbsd.org>.
30072
30073 2009-09-16  Eric Blake  <ebb9@byu.net>
30074
30075         unlinkdir: port to mingw
30076         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
30077         on which no one can unlink a directory.
30078
30079         stdlib: sort witness names
30080         * modules/stdlib (Makefile.am): Sort replacements.
30081         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
30082         * lib/stdlib.in.h: Likewise.
30083
30084         parse-duration-tests: avoid link failure
30085         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
30086         LIBINTL.
30087         Reported by Tom G. Christensen.
30088
30089         openat-tests: ensure unlinkat behaves like rmdir
30090         * tests/test-rmdir.c (main): Factor guts...
30091         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
30092         * modules/rmdir-tests (Files): Ship new file.
30093         * modules/openat-tests: New test.
30094         * tests/test-unlinkat.c: Likewise.
30095
30096         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
30097         * modules/rmdir-errno (Status, Notice): Now obsolete.
30098
30099         rmdir: work around cygwin 1.5.x and mingw bugs
30100         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
30101         * lib/rmdir.c (rmdir): Work around it.
30102         * modules/rmdir (Status, Notice): No longer obsolete.
30103         (Files): Add dos.m4.
30104         (Depends-on): Add unistd.
30105         (configure.ac): Set witnesses.
30106         (License): Relax to LGPLv2+.
30107         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
30108         * modules/unistd (Makefile.am): Substitute witnesses.
30109         * lib/unistd.in.h (rmdir): Declare replacement.
30110         * doc/posix-functions/rmdir.texi (rmdir): Document this.
30111         * modules/rmdir-tests: New tests.
30112         * tests/test-rmdir.c: Likewise.
30113
30114 2009-09-15  Eric Blake  <ebb9@byu.net>
30115
30116         fchdir: improve use of replacement functions
30117         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
30118         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
30119         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
30120         REPLACE_CLOSEDIR.
30121         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
30122         * modules/sys_stat (Makefile.am): Substitute correct witness.
30123         * modules/dirent (Makefile.am): Likewise.
30124         * modules/unistd (Makefile.am): Likewise.
30125         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
30126         * lib/unistd.in.h (dup): Likewise.
30127         * lib/sys_stat.in.h (fstat): Likewise.
30128
30129         maint: ignore gnulib-tool temp files
30130         * .gitignore: Ignore files created during gnulib-tool --test.
30131
30132 2009-09-13  Jim Meyering  <meyering@redhat.com>
30133
30134         posixtm: don't reject a time that specify "60" as the number of seconds
30135         * lib/posixtm.c (posixtime): The code to reject invalid dates
30136         would also reject a time specified with the .60 suffix.
30137         But POSIX allows that, in order to accommodate leap seconds.
30138         So don't reject it.
30139         (main): Adjust tests accordingly.
30140         * modules/posixtm (Depends-on): Add stpcpy.
30141
30142 2009-09-11  Jim Meyering  <meyering@redhat.com>
30143
30144         announce-gen: include [$release_type] in emitted Subject:
30145         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
30146         e.g., [stable] in the emitted Subject: line.
30147
30148 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30149
30150         Remove obsolete macros from several modules.
30151         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
30152         obsolete Autoconf macros with their modern counterparts.
30153         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
30154         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
30155         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
30156         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
30157         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
30158         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
30159         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
30160         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
30161         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
30162         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
30163         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
30164         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
30165         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
30166         * m4/sockets.m4 (gl_SOCKETS): Likewise.
30167         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
30168         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
30169         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
30170         * m4/time_r.m4 (gl_TIME_R): Likewise.
30171         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
30172         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
30173         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
30174
30175         Fix copyright header in build-aux scripts.
30176         * build-aux/git-version-gen: Fix copyright header to match GPLv3
30177         recommendation.
30178         * build-aux/ncftpput-ftp: Likewise.
30179         * build-aux/update-copyright: Likewise.
30180
30181 2009-09-09  Eric Blake  <ebb9@byu.net>
30182
30183         test-link: allow Linux choice of errno
30184         * tests/test-link.c (main): Relax test for alternate error.
30185
30186         strndup: fix improper m4 caching
30187         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
30188         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
30189         (gl_PREREQ_STRNDUP): Delete.
30190         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
30191         * modules/string (Makefile.am): Substitute it.
30192         * lib/string.in.h (strndup): Modernize prototype.
30193
30194         getcwd: port to mingw
30195         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
30196         different from the POSIX assumptions made throughout the getcwd
30197         module; fortunately, the mingw getcwd does not need replacement.
30198         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
30199         * modules/getcwd-tests: New test.
30200         * tests/test-getcwd.c: Likewise.
30201
30202         link: fix platform bugs
30203         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
30204         * lib/link.c (link): Work around them.  Fix related mingw bug.
30205         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
30206         * modules/unistd (Makefile.am): Substitute it.
30207         * lib/unistd.in.h (link): Declare replacement.
30208         * doc/posix-functions/link.texi (link): Document this.
30209         * modules/link (Depends-on): Add strdup-posix, sys_stat.
30210
30211         test-link: consolidate into single C program, test more cases
30212         * tests/test-link.sh: Delete.
30213         * tests/test-link.c: Test more error conditions.  Exposes bugs on
30214         at least Cygwin and Solaris.
30215         * modules/link-tests (Files): Remove unused file.
30216         (Depends-on): Add errno, sys_stat.
30217         (Makefile.am): Simplify.
30218
30219 2009-09-08  Bruno Haible  <bruno@clisp.org>
30220
30221         Work around towlower, towupper bug on mingw.
30222         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
30223         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
30224         * doc/posix-functions/towlower.texi: Mention the mingw bug.
30225         * doc/posix-functions/towupper.texi: Likewise.
30226         Reported by Eric Blake.
30227
30228 2009-09-08  Jim Meyering  <meyering@redhat.com>
30229
30230         build: don't try to run autoheader if we don't use it
30231         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
30232         is not used in configure.ac.
30233
30234 2009-09-08  Eric Blake  <ebb9@byu.net>
30235
30236         euidaccess: fix compilation error
30237         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
30238
30239         rawmemchr: relax license
30240         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
30241         okay.
30242         Reported by Jim Meyering.
30243
30244         mkfifoat: new module
30245         * modules/mkfifoat: New file.
30246         * lib/mkfifoat.c: Likewise.
30247         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
30248         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
30249         * modules/sys_stat (Makefile.am): Use them.
30250         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
30251         * MODULES.html.sh (File system functions): Mention module.
30252         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
30253         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
30254         * modules/mkfifoat-tests: New test.
30255         * tests/test-mkfifoat.c: Likewise.
30256
30257         strchrnul: relax license
30258         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
30259         okay.
30260         Reported by Jim Meyering.
30261
30262 2009-09-08  Eric Blake  <ebb9@byu.net>
30263
30264         fstatat: fix compilation on Solaris
30265         * lib/fstatat.c (includes): Add fcntl.h.
30266         Reported by Pádraig Brady.
30267
30268 2009-09-07  Eric Blake  <ebb9@byu.net>
30269
30270         rename: modernize replacement
30271         * modules/rename (Depends-on): Add stdio.
30272         (configure.ac): Declare witness.
30273         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
30274         stdio take care of replacement.
30275         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
30276         * modules/stdio (Makefile.am): Substitute them.
30277         * lib/stdio.in.h (rename): Declare replacement.
30278         * lib/rename.c (includes): Allow cross-compilation to non-windows
30279         machines.
30280         * doc/posix-functions/rename.texi (rename): Improve
30281         documentation.
30282
30283         stdio: sort witness names
30284         * modules/stdio (Makefile.am): Sort replacements.
30285         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
30286         * lib/stdio.in.h: Likewise.
30287
30288         getcwd: minor cleanups
30289         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
30290         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
30291
30292         openat: provide more convenience names
30293         * modules/faccessat (configure.ac): Add C witness.
30294         * lib/unistd.in.h (readlinkat): Fix typo.
30295         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
30296         convenience wrappers.
30297         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
30298         wrappers in syntax checks.
30299
30300 2009-09-06  Eric Blake  <ebb9@byu.net>
30301
30302         doc: fix comments in recent patches
30303         * lib/faccessat.c: Mention correct function.
30304         * lib/fchmodat.c: Likewise.
30305         * lib/fchownat.c: Likewise.
30306         * lib/symlinkat.c: Likewise.
30307         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
30308         constants.
30309
30310         faccessat, symlinkat: continue cleanup of previous patch
30311         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
30312         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
30313         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
30314         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
30315         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
30316         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
30317         set.
30318
30319 2009-09-06  Bruno Haible  <bruno@clisp.org>
30320
30321         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
30322         (fstatat): Declare if GNULIB_FSTATAT is set.
30323         (mkdirat): Declare if GNULIB_MKDIRAT is set.
30324         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
30325         (unlinkat): Declare if GNULIB_UNLINKAT is set.
30326         * modules/fcntl-h (Files): Remove m4/openat.m4.
30327         * modules/sys_stat (Files): Remove m4/openat.m4.
30328         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
30329         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
30330         * modules/unistd (Files): Remove m4/openat.m4.
30331         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
30332         GNULIB_OPENAT.
30333         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
30334         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
30335         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
30336         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
30337         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
30338         gl_OPENAT_DEFAULTS.
30339         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
30340         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
30341         Don't require gl_OPENAT_DEFAULTS.
30342         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
30343         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
30344         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
30345         (gl_OPENAT_DEFAULTS): Remove macro.
30346
30347 2009-09-06  Bruno Haible  <bruno@clisp.org>
30348
30349         * modules/openat (configure.ac): Remove unneeded witness.
30350
30351 2009-09-06  Bruno Haible  <bruno@clisp.org>
30352
30353         Set errno to ENOSYS when a function is entirely unsupported.
30354         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
30355         EOPNOTSUPP.
30356         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
30357         * modules/chown (Depends-on): Remove errno.
30358
30359 2009-09-06  Bruno Haible  <bruno@clisp.org>
30360
30361         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
30362
30363 2009-09-06  Bruno Haible  <bruno@clisp.org>
30364
30365         * lib/sys_stat.in.h: Fix preprocessor command indentation.
30366
30367 2009-09-06  Ben Pfaff  <blp@gnu.org>
30368             Bruno Haible  <bruno@clisp.org>
30369
30370         Work around a glibc bug in strtok_r.
30371         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
30372         Undefine if UNDEFINE_STRTOK_R is set.
30373         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
30374         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30375         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
30376         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
30377         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
30378         UNDEFINE_STRTOK_R.
30379         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
30380
30381 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
30382
30383         exclude: minor fix
30384         * lib/exclude.c: Include wctype.h
30385
30386 2009-09-06  Akim Demaille  <demaille@gostai.com>
30387
30388         bootstrap: improve error message
30389         * build-aux/bootstrap (find_tool): Upon failure, report the list
30390         of candidates.
30391         Honor the initial value of the envvar.
30392
30393 2009-09-05  Eric Blake  <ebb9@byu.net>
30394
30395         symlinkat: new module
30396         * modules/symlinkat: New file.
30397         * lib/symlinkat.c: Likewise.
30398         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
30399         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
30400         * modules/unistd (Makefile.am): Use them.
30401         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
30402         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
30403         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
30404         * MODULES.html.sh (File system functions): Mention module.
30405         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
30406         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
30407         * modules/symlinkat-tests: New test.
30408         * tests/test-symlinkat.c: Likewise.
30409
30410         test-openat-safer: add more checks
30411         * tests/test-openat-safer.c (main): Check more code paths.
30412
30413 2009-09-05  Jim Meyering  <meyering@redhat.com>
30414
30415         syntax-check: detect unnecessary inclusion of openat.h
30416         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
30417
30418 2009-09-05  Bruno Haible  <bruno@clisp.org>
30419
30420         Support towlower, towupper.
30421         * doc/posix-functions/towlower.texi: Mention module wctype.
30422         * doc/posix-functions/towupper.texi: Likewise.
30423         * lib/wctype.in.h (towlower, towupper): New functions.
30424         * tests/test-wctype.c: Include stdio.h, stdlib.h.
30425         (ASSERT): New macro.
30426         (e): New variable.
30427         (main): Test also towlower, towupper. Test WEOF argument.
30428         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
30429
30430 2009-09-05  Bruno Haible  <bruno@clisp.org>
30431
30432         Fix conversion behaviour when the input is invalid.
30433         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
30434         mark occurring in first pass of indirect conversion.
30435         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
30436         input.
30437         Found by clang's static analyzer.
30438
30439 2009-09-05  Bruno Haible  <bruno@clisp.org>
30440
30441         * tests/test-striconveh.c (main): Test indirect conversion on platforms
30442         where direct conversion is possible.
30443
30444 2009-09-04  Eric Blake  <ebb9@byu.net>
30445
30446         openat: fail with ENOENT on empty name
30447         * lib/openat-proc.c (openat_proc_name): Special-case the empty
30448         buffer.
30449
30450         link-follow: fix logic bug in prior patch
30451         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
30452         reversed sense of yes and no in prior patch.  Avoid confusing
30453         compilation failure with desired semantics.
30454
30455         link-follow: accomodate mingw and cross-compilation
30456         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
30457         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
30458         cross-compilation results to -1, to make linkat easier to
30459         implement when cross-compiling.  Trivially support mingw.
30460         * modules/link-follow (configure.ac): Call new name.
30461         * NEWS: Mention this.
30462
30463 2009-09-03  Eric Blake  <ebb9@byu.net>
30464
30465         faccessat: compile replacement
30466         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
30467         needed.
30468
30469         fts: fix compilation error
30470         * lib/fts.c (includes): Re-add "openat.h", for
30471         openat_needs_fchdir.
30472
30473         faccessat: new module
30474         * modules/faccessat: New file.
30475         * lib/faccessat.c: Likewise.
30476         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
30477         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
30478         * modules/unistd (Makefile.am): Use it.
30479         * lib/unistd.in.h (faccessat): Declare it.
30480         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
30481         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
30482         * MODULES.html.sh (File system functions): Mention it.
30483         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
30484         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
30485
30486         euidaccess: prefer POSIX over non-standard implementation
30487         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
30488         * lib/euidaccess.c (euidaccess): Use it if available.
30489
30490         openat: make template easier to use
30491         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
30492         AT_FUNC_F2 to be undefined.
30493         (VALIDATE_FLAG): New macro; use it to reject bad flags.
30494         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
30495         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
30496         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
30497         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
30498         Likewise.
30499         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
30500         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
30501         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
30502         Likewise.
30503
30504         openat: declare in POSIX headers
30505         * NEWS: Mention this.
30506         * modules/openat (configure.ac): Declare witnesses.
30507         (Depends-on): Add fcntl-h, sys_stat, unistd.
30508         (Include): Mention correct headers.
30509         * modules/fcntl-h (Depends-on): Add link-warning.
30510         (Files): Add openat.m4.
30511         (Makefile.am): Substitute witnesses.
30512         * modules/sys_stat (Files, Makefile.am): Likewise.
30513         * modules/unistd (Files, Makefile.am): Likewise.
30514         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
30515         (gl_OPENAT_DEFAULTS): New macro.
30516         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
30517         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
30518         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
30519         (SYS_STAT_H): Remove unused variable.
30520         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
30521         * lib/fcntl--.h (includes): Remove unneeded header.
30522         * lib/openat-safer.c (includes): Likewise.
30523         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
30524         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
30525         appropriate headers.
30526         (__OPENAT_PREFIX): Delete.
30527         * lib/fcntl.in.h (openat): Provide declaration.
30528         (AT_FDCWD): Fix Solaris bug.
30529         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
30530         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
30531         * lib/fchmodat.c (includes):  Adjust to find declaration.
30532         * lib/fchownat.c (includes): Likewise.
30533         * lib/mkdirat.c (includes): Likewise.
30534         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
30535         still visible.
30536
30537 2009-09-02  Eric Blake  <ebb9@byu.net>
30538
30539         errno: use consistently
30540         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
30541         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
30542         * lib/canonicalize.c (ELOOP): Likewise.
30543         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
30544         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
30545         * lib/lchown.c (EOPNOTSUPP): Likewise.
30546         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
30547         * lib/savewd.c (ESTALE): Likewise.
30548         * lib/settime.c (ENOSYS): Likewise.
30549         * lib/utimens.c (ENOSYS): Likewise.
30550         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
30551         * lib/chdir-safer.c (ELOOP): Likewise.
30552         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
30553         * modules/c-stack (Depends-on): Add errno.
30554         * modules/canonicalize (Depends-on): Likewise.
30555         * modules/chdir-safer (Depends-on): Likewise.
30556         * modules/fdopendir (Depends-on): Likewise.
30557         * modules/inet_ntop (Depends-on): Likewise.
30558         * modules/inet_pton (Depends-on): Likewise.
30559         * modules/lchown (Depends-on): Likewise.
30560         * modules/openat (Depends-on): Likewise.
30561         * modules/savewd (Depends-on): Likewise.
30562         * modules/settime (Depends-on): Likewise.
30563         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
30564
30565         fts: avoid leaking fds
30566         * modules/fts (Depends-on): Add cloexec.
30567         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
30568         flag.
30569
30570         fts: make directory fds more robust
30571         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
30572         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
30573
30574         backupfile, chdir-long, fts, savedir: make safer
30575         * lib/backupfile.c (includes): Use "dirent--.h", since
30576         numbered_backup can write to stderr during readdir.
30577         * lib/savedir.c (includes): Likewise.
30578         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
30579         emulation can write to stderr on failure.
30580         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
30581         * lib/getcwd.c: Document why opendir_safer is unused.
30582         * lib/glob.c: Likewise.
30583         * lib/scandir.c: Likewise.
30584         * lib/openat-proc.c: Likewise, for open_safer.
30585         * modules/backupfile (Depends-on): Add dirent-safer.
30586         * modules/savedir (Depends-on): Likewise.
30587         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
30588         * modules/chdir-long (Depends-on): Add openat-safer.
30589
30590         openat-safer: new module
30591         * modules/openat-safer: New file.
30592         * lib/openat-safer.c: Likewise.
30593         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
30594         * lib/fcntl-safer.h (openat_safer): Declare.
30595         * lib/fcntl--.h (openat): Override.
30596         * MODULES.html.sh (File descriptor based I/O): Mention it.
30597         * lib/openat.h: Add double-inclusion guards.
30598         * lib/openat.c (includes): Only include "fcntl-safer.h", not
30599         "fcntl--.h", so we can implement openat.
30600         * modules/openat-safer-tests: New test.
30601         * tests/test-openat-safer.c: New file.
30602
30603         dirent-safer: new module
30604         * modules/dirent-safer: New file.
30605         * lib/dirent--.h: Likewise.
30606         * lib/dirent-safer.h: Likewise.
30607         * lib/opendir-safer.c: Likewise.
30608         * m4/dirent-safer.m4: Likewise.
30609         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
30610         * modules/dirent-safer-tests: New test.
30611         * tests/test-dirent-safer.c: New file.
30612         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
30613
30614         fdopendir: optimize on mingw
30615         * lib/unistd.in.h (_gl_directory_name): New prototype.
30616         * lib/fchdir.c (_gl_directory_name): Implement it.
30617         (fchdir): Use it to simplify implementation.
30618         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
30619         fchdir, when available, to avoid calling [f]chdir().
30620
30621         fdopendir: split into its own module
30622         * lib/openat.c (fdopendir): Move...
30623         * lib/fdopendir.c: ...into new file.
30624         * modules/fdopendir: New module.
30625         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
30626         * modules/openat (Depends-on): Add fdopendir.
30627         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
30628         fdopendir here.
30629         * modules/savedir (Depends-on): Only need fdopendir, not full
30630         openat.
30631         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
30632         * lib/openat.h (fdopendir): Drop prototype.
30633         * lib/dirent.in.h (fdopendir): Provide prototype.
30634         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
30635         * modules/dirent (Makefile.am): Substitute them.
30636         * MODULES.html.sh (File system functions): Mention it.
30637         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
30638         * modules/fdopendir-tests: New file.
30639         * tests/test-fdopendir.c: Likewise.
30640
30641         fchdir: use more consistent macro convention
30642         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
30643         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
30644         REPLACE_FCHDIR, rather than relying on config.h macros.
30645         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
30646         inside a single make-time REPLACE_FCHDIR block, rather than using
30647         the config.h FCHDIR_REPLACEMENT.
30648         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
30649         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
30650         Manage fstat replacement.
30651         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
30652         REPLACE_FCHDIR.
30653         * modules/sys_stat (Files): Add m4/unistd_h.m4.
30654         (Makefile.am): Substitute REPLACE_FCHDIR.
30655         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
30656         FCHDIR_REPLACEMENT.
30657         * lib/dup-safer.c (dup_safer): Likewise.
30658         * lib/dup2.c (rpl_dup2): Likewise.
30659         * lib/dup3.c (rpl_dup3): Likewise.
30660         * lib/open.c (rpl_open): Likewise.
30661
30662         fchdir: simplify error handling, and support dup3
30663         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
30664         stdbool, malloc-posix, realloc-posix.
30665         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
30666         (ensure_dirs_slot): Return false on allocation failure.
30667         (rpl_dup2): Delete.
30668         (_gl_register_dup): New function.
30669         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
30670         (_gl_register_fd): Close fd on allocation failure.
30671         * lib/fcntl.in.h (_gl_register_fd): Update signature.
30672         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
30673         prototype.
30674         (rpl_dup2_fchdir): Delete prototype.
30675         * lib/open.c (open): Update caller.
30676         * lib/dup2.c (dup2): Track fchdir metadata.
30677         * lib/dup3.c (dup3): Likewise.
30678         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
30679         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
30680
30681 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30682
30683         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
30684         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
30685         don't pass arguments to AC_OUTPUT.
30686
30687 2009-09-02  Bruno Haible  <bruno@clisp.org>
30688
30689         * modules/mkdtemp (License): Relicense under LGPLv2+.
30690         Reported by Paolo Bonzini.
30691
30692 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30693
30694         Replace uses of obsolete autoconf macros in Jim's modules.
30695         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
30696         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
30697         can evoke a warning from autoconf when run with -Wobsolete
30698         enabled.  They were declared obsolete for good reasons (see
30699         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
30700         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
30701         should not continue using the deprecated macros.
30702         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
30703         obsolete Autoconf macros with modern counterparts.
30704         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
30705         * m4/dos.m4 (gl_AC_DOS): Likewise.
30706         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
30707         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
30708         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
30709         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
30710         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
30711         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
30712         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
30713         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
30714         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
30715         Likewise.
30716         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
30717         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
30718         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
30719         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
30720         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
30721         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
30722
30723 2009-09-01  Eric Blake  <ebb9@byu.net>
30724
30725         fchdir: fix off-by-one bug in previous patch
30726         * lib/fchdir.c (rpl_fstat): Use correct bounds.
30727         (_gl_unregister_fd): Delete useless if.
30728
30729 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
30730
30731         maint.mk: sort the list of syntax-check rules
30732         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
30733         easier to get a sense of progress when the rules are run sequentially
30734         and take a long time.
30735
30736 2009-09-01  Simon Josefsson  <simon@josefsson.org>
30737
30738         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
30739         * modules/netinet_in: Likewise.
30740         * modules/sys_file: Likewise.
30741         * modules/sys_ioctl: Likewise.
30742         * modules/sys_select: Likewise.
30743         * modules/sys_socket: Likewise.
30744         * modules/sys_stat: Likewise.
30745         * modules/sys_time: Likewise.
30746         * modules/sys_times: Likewise.
30747         * modules/sys_utsname: Likewise.
30748         * modules/sys_wait: Likewise.
30749
30750 2009-09-01  Jim Meyering  <meyering@redhat.com>
30751
30752         fts: help ensure that return values are not ignored
30753         * lib/fts_.h (__GNUC_PREREQ): Define.
30754         (__attribute_warn_unused_result__): Define.
30755         (fts_children, fts_close, fts_open, fts_read): Declare with
30756         __attribute_warn_unused_result__.
30757
30758         fts: fts_close now fails also when closing a dir file descriptor fails
30759         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
30760         and propagate to caller, along with errno.
30761
30762         announce-gen: correct formatting in --help output
30763         * build-aux/announce-gen (usage): Move the one-line description in
30764         --help output "up", to where it belongs, just after Usage:.
30765
30766 2009-08-31  Eric Blake  <ebb9@byu.net>
30767
30768         fchdir: port to mingw
30769         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
30770         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
30771         opened, then use a substitute.
30772         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
30773         replacement.
30774         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
30775         (_gl_register_fd): No need to check stat if open already filters
30776         all directories.
30777         (fchdir): Fix error condition to match POSIX.
30778         * modules/fchdir (Depends-on): Add sys_stat.
30779         * doc/posix-functions/open.texi (open): Document the limitation.
30780         * modules/fchdir-tests: New file.
30781         * tests/test-fchdir.c: Likewise.
30782
30783         canonicalize: allow cross-testing from cygwin to mingw
30784         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
30785         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
30786         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
30787         Likewise.
30788         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
30789         target does not support symlinks.
30790         * tests/test-canonicalize-lgpl.sh: Likewise.
30791
30792         chown: avoid compilation warning on mingw
30793         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
30794         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
30795         mingw.
30796         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
30797         * modules/chown (Depends-on): Add errno.
30798
30799 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
30800
30801         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
30802         command.
30803
30804 2009-08-31  Jim Meyering  <meyering@redhat.com>
30805
30806         canonicalize: remove useless initialization
30807         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
30808         initialization of local, "end".
30809
30810 2009-08-30  Bruno Haible  <bruno@clisp.org>
30811
30812         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
30813         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
30814         ENOSYS.
30815
30816 2009-08-30  Bruno Haible  <bruno@clisp.org>
30817
30818         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
30819         /usr/xpg4/bin/tr when it exists.
30820         * tests/test-pipe-filter-gi1.sh: Likewise.
30821
30822 2009-08-30  Bruno Haible  <bruno@clisp.org>
30823
30824         Work around deficient /usr/bin/id program on Solaris.
30825         * tests/test-file-has-acl.sh (ID): New variable.
30826         * tests/test-set-mode-acl.sh (ID): Likewise.
30827         * tests/test-copy-acl.sh (ID): Likewise.
30828         * tests/test-copy-file.sh (ID): Likewise.
30829
30830 2009-08-30  Bruno Haible  <bruno@clisp.org>
30831
30832         New module 'xstriconveh'.
30833         * lib/xstriconveh.h: New file.
30834         * lib/xstriconveh.c: New file.
30835         * modules/xstriconveh: New file.
30836
30837 2009-08-30  Bruno Haible  <bruno@clisp.org>
30838
30839         Make it easier to use mem_cd_iconveh.
30840         * lib/striconveh.h (iconveh_t): New type.
30841         (iconveh_open, iconveh_close): New declarations.
30842         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
30843         with a single 'const iconveh_t *' argument.
30844         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
30845         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
30846         with a single 'const iconveh_t *' argument.
30847         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
30848         * tests/test-striconveh.c (main): Update.
30849         * NEWS: Mention the change.
30850
30851 2009-08-30  Bruno Haible  <bruno@clisp.org>
30852
30853         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
30854         problem.
30855
30856 2009-08-30  Bruno Haible  <bruno@clisp.org>
30857
30858         Work around iconv_open problem on Solaris.
30859         * lib/iconv_open-solaris.gperf: New file.
30860         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
30861         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
30862         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
30863         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
30864         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
30865         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
30866
30867 2009-08-29  Jim Meyering  <meyering@redhat.com>
30868
30869         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
30870         * top/maint.mk (cvs-check): Remove target; it was just an alias
30871         to the better-named vc-diff-check.
30872         (maintainer-distcheck): Remove rule.  It was used only from
30873         the (alpha/beta/major) target, and all of its commands but one
30874         were coreutils-specific.
30875         (vc-dist): Remove rule.
30876         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
30877         Run vc-diff-check, not vc-dist.
30878         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
30879
30880 2009-08-27  Bruno Haible  <bruno@clisp.org>
30881
30882         * tests/test-bitrotate.c (main): Remove test that uses a shift count
30883         of 0.
30884
30885 2009-08-27  Bruno Haible  <bruno@clisp.org>
30886
30887         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
30888         compilers.
30889         * doc/func.texi: Document the SunPRO C bug.
30890
30891 2009-08-27  Bruno Haible  <bruno@clisp.org>
30892
30893         Fix link error on Solaris.
30894         * tests/test-parse-duration.c (xstrdup): Remove function.
30895
30896 2009-08-26  Pádraig Brady  <P@draigbrady.com>
30897
30898         ignore-value: handle pointer types, too
30899         * lib/ignore-value.h (__attribute__): Remove definition.
30900         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
30901         of a more concise and more-often effective "(void) i" statement.
30902         (ignore_ptr): New function to suppress warnings from functions that
30903         return pointers, and to make it explicit that one function doesn't
30904         handle all cases.
30905
30906 2009-08-25  Bruno Haible  <bruno@clisp.org>
30907
30908         dup2: work around a Linux bug.
30909         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
30910         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
30911         * doc/posix-functions/dup2.texi: Mention the Linux bug.
30912         Reported by Simon Josefsson.
30913
30914 2009-08-25  Jim Meyering  <meyering@redhat.com>
30915
30916         libguestfs uses gnulib
30917         * users.txt: Add libguestfs.
30918
30919 2009-08-24  Eric Blake  <ebb9@byu.net>
30920
30921         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
30922         * lib/pipe2.c (includes): Add binary-io.h.
30923         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
30924
30925 2009-08-24  Bruno Haible  <bruno@clisp.org>
30926
30927         Tolerate declared but missing accept4 syscall.
30928         * lib/accept4.c (accept4): Invoke original accept4 function first, if
30929         available.
30930         * lib/sys_socket.in.h (accept4): If the function is already present,
30931         override it.
30932         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
30933         * modules/accept4 (Makefile.am): Compile accept4.c always.
30934         Reported by Paolo Bonzini and Eric Blake.
30935
30936 2009-08-23  Bruno Haible  <bruno@clisp.org>
30937
30938         New module 'accept4'.
30939         * lib/sys_socket.in.h (accept4): New declaration.
30940         * lib/accept4.c: New file.
30941         * m4/accept4.m4: New file.
30942         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
30943         GNULIB_ACCEPT4, HAVE_ACCEPT4.
30944         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
30945         HAVE_ACCEPT4.
30946         * modules/accept4: New file.
30947         * doc/glibc-functions/accept4.texi: Mention the new module.
30948
30949 2009-08-24  Jim Meyering  <meyering@redhat.com>
30950
30951         progname: also set global program_invocation_name, when possible
30952         Before this change, a libtool-enabled program that calls glibc's
30953         error function would report the program name as
30954         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
30955         * modules/progname (configure.ac): Check for a declaration of
30956         program_invocation_name.
30957         * lib/progname.c:  Include <errno.h>.
30958         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
30959         Set program_invocation_name.
30960
30961 2009-08-23  Bruno Haible  <bruno@clisp.org>
30962
30963         * lib/dup3.c: Include <string.h>.
30964
30965 2009-08-23  Bruno Haible  <bruno@clisp.org>
30966
30967         * lib/dup3.c (dup3): Test only once whether the system actually exists.
30968         * lib/pipe2.c (pipe2): Likewise.
30969         Suggested by Eric Blake.
30970
30971 2009-08-23  Bruno Haible  <bruno@clisp.org>
30972
30973         Tolerate declared but missing dup3 syscall.
30974         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
30975         * lib/unistd.in.h (dup3): If the function is already present,
30976         override it.
30977         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
30978         * modules/dup3 (Makefile.am): Compile dup3.c always.
30979         Reported by Paolo Bonzini.
30980
30981 2009-08-23  Bruno Haible  <bruno@clisp.org>
30982
30983         Tolerate declared but missing pipe2 syscall.
30984         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
30985         available.
30986         * lib/unistd.in.h (pipe2): If the function is already present,
30987         override it.
30988         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
30989         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
30990         Reported by Paolo Bonzini.
30991
30992 2009-08-23  Bruno Haible  <bruno@clisp.org>
30993
30994         * lib/pipe2.c (pipe2): Move #ifs inside function.
30995
30996 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
30997
30998         quotearg: document limitations of quote_these_too
30999         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
31000         those limitations are created.
31001         * lib/quotearg.h (set_char_quoting): Document that digits and
31002         letters that are special after backslash are not permitted.
31003         (quotearg_char): Cross-reference set_char_quoting documentation.
31004
31005 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
31006
31007         quotearg: implement custom_quoting_style
31008         * lib/quotearg.c: (struct quoting_options): Add left_quote and
31009         right_quote fields.
31010         (set_custom_quoting): New public function.
31011         (quotearg_buffer_restyled): Add left_quote and right_quote
31012         arguments, handle them very much like locale quoting, and update
31013         all uses.
31014         (quotearg_n_custom): New public function.
31015         (quotearg_n_custom_mem): New public function.
31016         (quotearg_custom): New public function.
31017         (quotearg_custom_mem): New public function.
31018         * lib/quotearg.h: Prototype and document new public functions.
31019         (enum quoting_style): For escape_quoting_style and
31020         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
31021         ignored even though they're otherwise like c_quoting_style.
31022         Add custom_quoting_style member and document with comparison to
31023         clocale_quoting_style.
31024         * tests/test-quotearg.c (custom_quotes): New array.
31025         (custom_results): New array.
31026         (main): Extend to test custom quoting.
31027
31028 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
31029
31030         quotearg: fix right quote escaping when it's in quote_these_too
31031         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
31032         quote, be sure to prepend only one backslash.
31033         * tests/test-quotearg.c (use_quote_double_quotes): New function.
31034         (main): Test it.
31035
31036 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
31037
31038         quotearg-tests: test escaping of embedded locale quotes
31039         * tests/test-quotearg.c (struct result_strings): Add member for
31040         new input.
31041         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
31042         (inputs): Add new input.
31043         (results_g): Add expected results.
31044         (flag_results): Likewise.
31045         (locale_results): Likewise.
31046         (compare_strings): Check those.
31047
31048 2009-08-23  Bruno Haible  <bruno@clisp.org>
31049
31050         Tests for module 'dup3'.
31051         * modules/dup3-tests: New file.
31052         * tests/test-dup3.c: New file.
31053
31054         New module 'dup3'.
31055         * lib/unistd.in.h (dup3): New declaration.
31056         * lib/dup3.c: New file.
31057         * m4/dup3.m4: New file.
31058         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
31059         HAVE_DUP3.
31060         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
31061         * modules/dup3: New file.
31062         * doc/glibc-functions/dup3.texi: Mention the new module.
31063
31064 2009-08-23  Bruno Haible  <bruno@clisp.org>
31065
31066         Tweak the dup2 test.
31067         * tests/test-dup2.c (main): Create the test file empty. Verify that an
31068         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
31069         the test file is still empty. Fix argument order of lseek.
31070
31071 2009-08-23  Bruno Haible  <bruno@clisp.org>
31072
31073         Avoid test link errors when the modules getopt-gnu, gettext are used.
31074         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
31075         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31076
31077 2009-08-23  Bruno Haible  <bruno@clisp.org>
31078
31079         Fix getdtablesize() on mingw.
31080         * lib/getdtablesize.c (getdtablesize): Implement differently.
31081         * lib/unistd.in.h (getdtablesize): Improve comment.
31082
31083 2009-08-23  Bruno Haible  <bruno@clisp.org>
31084
31085         New module 'mkostemp'.
31086         Based on Ulrich Drepper's 2007-08-10 change in glibc.
31087         * lib/stdlib.in.h (mksotemp): New declaration.
31088         * lib/mkostemp.c: New file, from glibc with modifications.
31089         * lib/tempname.h (GT_FILE): Remove outdated comment.
31090         (gen_tempname): Add flags argument.
31091         * lib/tempname.c (__GT_BIGFILE): Remove macro.
31092         (__GT_FILE): Map to 1.
31093         (small_open, large_open): Remove macros.
31094         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
31095         * lib/mkstemp.c (mkstemp): Update.
31096         * lib/mkdtemp.c (mkdtemp): Likewise.
31097         * m4/mkostemp.m4: New file.
31098         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
31099         HAVE_MKOSTEMP.
31100         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
31101         HAVE_MKOSTEMP.
31102         * modules/mkostemp: New file, based on modules/mkstemp.
31103         * doc/glibc-functions/mkostemp.texi: Mention the new module.
31104         * NEWS: Mention the change.
31105
31106 2009-08-23  Bruno Haible  <bruno@clisp.org>
31107
31108         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
31109         Reported by Eric Blake.
31110
31111 2009-08-23  Bruno Haible  <bruno@clisp.org>
31112
31113         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
31114         Reported by Eric Blake.
31115
31116 2009-08-23  Bruno Haible  <bruno@clisp.org>
31117
31118         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
31119         * modules/pipe2 (Depends-on): Likewise.
31120
31121 2009-08-23  Eric Blake  <ebb9@byu.net>
31122
31123         fcntl-h: add O_TTY_INIT support
31124         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
31125         * tests/test-fcntl-h.c (o): Test it.
31126         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
31127
31128         fcntl-h: rename from fcntl, in preparation for fcntl(2)
31129         * modules/fcntl: Move <fcntl.h> header replacement...
31130         * modules/fcntl-h: ...to new name, so as not to collide with
31131         like-named function.
31132         * tests/test-fcntl.c: Rename...
31133         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
31134         * modules/fcntl-tests: Rename...
31135         * modules/fcntl-h-tests: ...to this.  Update test file name.
31136         * modules/chdir-long (Depends-on): Update clients.
31137         * modules/chdir-safer (Depends-on): Likewise.
31138         * modules/fcntl-safer (Depends-on): Likewise.
31139         * modules/fts (Depends-on): Likewise.
31140         * modules/mkancesdirs (Depends-on): Likewise.
31141         * modules/mkdir-p (Depends-on): Likewise.
31142         * modules/open (Depends-on): Likewise.
31143         * modules/savewd (Depends-on): Likewise.
31144         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
31145         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
31146
31147 2009-08-22  Bruno Haible  <bruno@clisp.org>
31148
31149         * modules/binary-io (License): Relicense under LGPL.
31150         * modules/pipe2 (License): Likewise.
31151
31152 2009-08-22  Bruno Haible  <bruno@clisp.org>
31153
31154         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
31155         return value.
31156         * lib/pipe-filter-gi.c (filter_init): Likewise.
31157         Reported by Eric Blake.
31158
31159 2009-08-22  Bruno Haible  <bruno@clisp.org>
31160
31161         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
31162         * modules/pipe (Depends-on): Add pipe2.
31163
31164 2009-08-22  Bruno Haible  <bruno@clisp.org>
31165
31166         Tests for module 'pipe2'.
31167         * modules/pipe2-tests: New file.
31168         * tests/test-pipe2.c: New file.
31169
31170         New module 'pipe2'.
31171         * lib/unistd.in.h (pipe2): New declaration.
31172         * lib/pipe2.c: New file.
31173         * m4/pipe2.m4: New file.
31174         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
31175         HAVE_PIPE2.
31176         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
31177         * modules/pipe2: New file.
31178         * doc/glibc-functions/pipe2.texi: Mention the new module.
31179
31180 2009-08-22  Bruno Haible  <bruno@clisp.org>
31181
31182         Reference some new glibc functions.
31183         * doc/glibc-functions/accept4.texi: New file.
31184         * doc/glibc-functions/dup3.texi: New file.
31185         * doc/glibc-functions/mkostemp.texi: New file.
31186         * doc/glibc-functions/pipe2.texi: New file.
31187         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
31188         (Glibc sys/socket.h): Refer to accept4.
31189         (Glibc unistd.h): Refer to dup3, pipe2.
31190         Reported by Eric Blake.
31191
31192 2009-08-22  Jim Meyering  <meyering@redhat.com>
31193             Bruno Haible  <bruno@clisp.org>
31194
31195         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
31196         This makes it so packages using automake-1.11's silent-rules option
31197         can print e.g., a single "GEN    configmake.h" line, rather than
31198         the 30+ statements that perform the job.  If you want to see the
31199         actual commands, you can still run "make V=1".
31200         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
31201         so that make output is abbreviated when those variables are defined
31202         appropriately.
31203         * modules/argz: Likewise.
31204         * modules/arpa_inet: Likewise.
31205         * modules/byteswap: Likewise.
31206         * modules/configmake: Likewise.
31207         * modules/dirent: Likewise.
31208         * modules/errno: Likewise.
31209         * modules/fcntl: Likewise.
31210         * modules/float: Likewise.
31211         * modules/fnmatch: Likewise.
31212         * modules/getopt-posix: Likewise.
31213         * modules/glob: Likewise.
31214         * modules/iconv_open: Likewise.
31215         * modules/inttypes: Likewise.
31216         * modules/localcharset: Likewise.
31217         * modules/locale: Likewise.
31218         * modules/math: Likewise.
31219         * modules/netdb: Likewise.
31220         * modules/netinet_in: Likewise.
31221         * modules/poll: Likewise.
31222         * modules/posix_spawnp-tests: Likewise.
31223         * modules/sched: Likewise.
31224         * modules/search: Likewise.
31225         * modules/selinux-h: Likewise.
31226         * modules/signal: Likewise.
31227         * modules/spawn: Likewise.
31228         * modules/stdarg: Likewise.
31229         * modules/stdbool: Likewise.
31230         * modules/stddef: Likewise.
31231         * modules/stdint: Likewise.
31232         * modules/stdio: Likewise.
31233         * modules/stdlib: Likewise.
31234         * modules/string: Likewise.
31235         * modules/strings: Likewise.
31236         * modules/sys_file: Likewise.
31237         * modules/sys_ioctl: Likewise.
31238         * modules/sys_select: Likewise.
31239         * modules/sys_socket: Likewise.
31240         * modules/sys_stat: Likewise.
31241         * modules/sys_time: Likewise.
31242         * modules/sys_times: Likewise.
31243         * modules/sys_utsname: Likewise.
31244         * modules/sys_wait: Likewise.
31245         * modules/sysexits: Likewise.
31246         * modules/time: Likewise.
31247         * modules/unistd: Likewise.
31248         * modules/wchar: Likewise.
31249         * modules/wctype: Likewise.
31250
31251 2009-08-22  Jim Meyering  <meyering@redhat.com>
31252
31253         announce-gen: detect write failure
31254         * build-aux/announce-gen: Add Coda at end.
31255         Remove equivalent-but-more-verbose block at top.
31256
31257 2009-08-19  Akim Demaille  <demaille@gostai.com>
31258
31259         bootstrap: --help to stdout.
31260         * bootstrap (usage): Don't send --help to stderr.
31261         Use a here doc instead of a long string.
31262
31263 2009-08-21  Eric Blake  <ebb9@byu.net>
31264
31265         test-popen-safer: split from test-popen
31266         * tests/test-popen.c (main): Move...
31267         * tests/test-popen.h: ...into new file.
31268         * tests/test-popen-safer2.c: New file.
31269         * modules/popen-tests (Files): Add test-popen.h.
31270         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
31271         Suggested by Bruno Haible.
31272
31273         test-fcntl-safer: split from test-open
31274         * tests/test-open.c (main): Move...
31275         * tests/test-open.h: ...into new file.
31276         * tests/test-fcntl-safer.c: New file.
31277         * modules/open-tests (Files): Add test-open.h.
31278         * modules/fcntl-safer-tests: New file.
31279         Suggested by Bruno Haible.
31280
31281         test-fopen-safer: split from test-fopen
31282         * tests/test-fopen.c (main): Move...
31283         * tests/test-fopen.h: ...into new file.
31284         * tests/test-fopen-safer.c: New file.
31285         * modules/fopen-tests (Files): Add test-fopen.h.
31286         * modules/fopen-safer-tests: New file.
31287         Suggested by Bruno Haible.
31288
31289 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
31290
31291         popen-safer: test O_CLOEXEC at run-time.
31292         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
31293
31294 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
31295
31296         fcntl: move more flags to the header
31297         * lib/cloexec.c: Do not define FD_CLOEXEC here.
31298         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
31299         * lib/fcntl.in.h: Do both things here.
31300
31301 2009-08-21  Jim Meyering  <meyering@redhat.com>
31302
31303         consistently remove $@-t before redirecting to it
31304         * modules/argz: Remove $@-t and $@ before redirecting to the former.
31305         * modules/alloca-opt: Likewise.
31306         * modules/byteswap: Likewise.
31307         * modules/fnmatch: Likewise.
31308         * modules/getopt-posix: Likewise.
31309         * modules/glob: Likewise.
31310         * modules/poll: Likewise.
31311         * modules/posix_spawnp-tests: Likewise.
31312         * modules/sys_socket: Likewise.
31313         * modules/sysexits: Likewise.
31314
31315 2009-08-21  Eric Blake  <ebb9@byu.net>
31316
31317         popen: simplify access to original popen
31318         * lib/popen.c (rpl_popen): No need to worry about popen being a
31319         macro.
31320         Reported by Bruno Haible.
31321
31322 2009-08-20  Eric Blake  <ebb9@byu.net>
31323
31324         build: avoid some compiler warnings
31325         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
31326         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
31327         type.
31328         (new_exclude_segment, excluded_file_pattern_p)
31329         (excluded_file_name_p): Reduce scope.
31330         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
31331         old-style declaration.
31332
31333 2009-08-20  Simon Josefsson  <simon@josefsson.org>
31334
31335         * tests/test-exclude1.sh: Handle Windows EOL.
31336         * tests/test-exclude2.sh: Likewise.
31337         * tests/test-exclude3.sh: Likewise.
31338         * tests/test-exclude4.sh: Likewise.
31339         * tests/test-exclude5.sh: Likewise.
31340         * tests/test-exclude6.sh: Likewise.
31341         * tests/test-exclude7.sh: Likewise.
31342
31343 2009-08-19  Akim Demaille  <demaille@gostai.com>
31344
31345         bootstrap: find sha1sum when named gsha1sum.
31346         * bootstrap (find_tool): New.
31347         ($SHA1SUM): New.
31348         Use it.
31349
31350 2009-08-20  Jim Meyering  <meyering@redhat.com>
31351
31352         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
31353         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
31354         expression that converts "." in a file name to "\." in the resulting
31355         regexp.  Start with a dummy statement, so that prior shell variable
31356         definitions are expanded portably.  Reported by Simon Josefsson.
31357
31358 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
31359
31360         Fix polling for writeability of a screen buffer.
31361         * lib/poll.c: Distinguish input and screen buffers for the
31362         Win32 implementation.
31363         * lib/select.c: Likewise.
31364
31365 2009-08-19  Eric Blake  <ebb9@byu.net>
31366
31367         popen-safer: prevent popen from clobbering std descriptors
31368         * modules/popen-safer: New file.
31369         * lib/popen-safer.c: Likewise.
31370         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
31371         * lib/stdio--.h (popen): Provide override.
31372         * lib/stdio-safer.h (popen_safer): Provide declaration.
31373         * tests/test-popen.c (includes): Partially test this.
31374         * modules/popen-safer-tests: New file, for more tests.
31375         * tests/test-popen-safer.c: Likewise.
31376         * MODULES.html.sh (file stream based Input/Output): Mention it.
31377
31378         tests: test some of the *-safer modules
31379         * modules/fopen-safer (Depends-on): Add fopen.
31380         * modules/fcntl-safer (Depends-on): Add fcntl.
31381         * modules/stdlib-safer (Depends-on): Add stdlib.
31382         (configure.ac): Set indicator.
31383         * modules/unistd-safer (configure.ac): Likewise.
31384         * modules/tmpfile-safer (configure.ac): Likewise.
31385         (Depends-on): Add tmpfile.
31386         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
31387         active.
31388         * tests/test-fopen.c (includes): Test safer versions when they are
31389         in use.
31390         * tests/test-open.c (includes): Likewise.
31391
31392         popen: fix cygwin 1.5 bug when stdin closed
31393         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
31394         * modules/popen: New file.
31395         * modules/popen-tests: Likewise.
31396         * tests/test-popen.c: Likewise.
31397         * m4/popen.m4: Likewise.
31398         * lib/popen.c: Likewise.
31399         * lib/stdio.in.h (popen): New declaration.
31400         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
31401         * modules/stdio (Makefile.am): Likewise.
31402         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
31403
31404 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
31405
31406         maint.mk: give full control over update-copyright exclusions
31407         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
31408         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
31409         (update-copyright): Don't force inclusion of top-level
31410         ChangeLog.  Don't force exclusion of all COPYING files, but make
31411         them the default exclusion instead.
31412
31413 2009-08-16  Bruno Haible  <bruno@clisp.org>
31414
31415         Fix test failures on Solaris 10.
31416         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
31417         tests when Solaris iconv() is used.
31418         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
31419         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
31420         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
31421         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
31422         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
31423
31424 2009-08-16  Bruno Haible  <bruno@clisp.org>
31425
31426         Fix test failures on Solaris 10.
31427         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
31428         'tr' program and pass it as first argument.
31429         * tests/test-pipe-filter-gi1.sh: Likewise.
31430         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
31431         program as first argument.
31432         * tests/test-pipe-filter-gi1.c (main): Likewise.
31433
31434 2009-08-16  Eric Blake  <ebb9@byu.net>
31435
31436         fpurge: fix previous commits
31437         * modules/fpurge (Makefile.am): Make replacement conditional,
31438         partially reverting 2007-04-29 change; missed in previous
31439         attempt.
31440         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
31441         is missing.
31442
31443 2009-08-16  Bruno Haible  <bruno@clisp.org>
31444
31445         Clarify fpurge's effect on the file position.
31446         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
31447         * tests/test-fpurge.c (main): Make a second pass for checking the file
31448         position.
31449
31450 2009-08-16  Bruno Haible  <bruno@clisp.org>
31451
31452         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
31453         declaration of fpurge is missing.
31454         * tests/test-fpurge.c (main): Check that the file has not more contents
31455         than expected. Close the file before removing it.
31456
31457 2009-08-15  Eric Blake  <ebb9@byu.net>
31458
31459         fpurge: don't wrap working cygwin implementation
31460         * lib/fpurge.c (fpurge): Fix comment typo.
31461         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
31462         1.7 to avoid replacement.
31463         * tests/test-fpurge.c (main): Enhance test.
31464
31465 2009-08-15  Eric Blake  <ebb9@byu.net>
31466         and Jim Meyering  <meyering@redhat.com>
31467
31468         test-update-copyright: skip if perl is insufficient
31469         * tests/test-update-copyright.sh: Failure to run maintainer tool
31470         should not cause testsuite failure on cygwin 1.5.
31471
31472 2009-08-14  Eric Blake  <ebb9@byu.net>
31473
31474         doc: mention more functions added in cygwin 1.7.0
31475         * doc/posix-headers/limits.texi (limits.h): Update for recent
31476         cygwin additions.
31477         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
31478         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
31479         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
31480         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
31481         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
31482
31483 2009-08-14  Eric Blake  <ebb9@byu.net>
31484
31485         maint.mk: simplify update-copyright rule
31486         * top/maint.mk (update-copyright-local): Delete, and document how
31487         to do it in cfg.mk instead.
31488         (update-copyright-exclude-regexp): Delete, and document how to do
31489         it in .x-update-copyright instead.
31490         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
31491         exclude ChangeLog.
31492
31493 2009-08-14  Bruno Haible  <bruno@clisp.org>
31494
31495         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
31496
31497 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
31498
31499         maint.mk: support update-copyright-env
31500         * top/maint.mk (update-copyright-env): Define place-holder.
31501         (update-copyright): Expand $(update-copyright-env) before
31502         invoking update-copyright.
31503
31504 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
31505
31506         update-copyright: implement forced reformatting
31507         * build-aux/update-copyright: Implement and document
31508         UPDATE_COPYRIGHT_FORCE.
31509         * tests/test-update-copyright.sh: Test it.
31510
31511 2009-08-14  Eric Blake  <ebb9@byu.net>
31512         and Bruno Haible  <bruno@clisp.org>
31513
31514         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
31515         * tests/test-locale.c: Revert previous patch related to NULL.
31516         * tests/test-stdio.c: Likewise.
31517         * tests/test-stdlib.c: Likewise.
31518         * tests/test-string.c: Likewise.
31519         * tests/test-unistd.c: Likewise.
31520         * modules/time-tests (Depends-on): Add verify.
31521         * modules/wchar-tests (Depends-on): Likewise.
31522         * tests/test-time.c: Test for NULL compliance.
31523         * tests/test-wchar.c: Likewise.
31524         * modules/locale (Depends-on): Add stddef.
31525         * modules/stdio (Depends-on): Likewise.
31526         * modules/stdlib (Depends-on): Likewise.
31527         * modules/string (Depends-on): Likewise.
31528         * modules/time (Depends-on): Likewise.
31529         * modules/unistd (Depends-on): Likewise.
31530         * modules/wchar (Depends-on): Likewise.
31531         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
31532         * lib/stdlib.in.h (includes): Likewise.
31533         * lib/string.in.h (includes): Likewise.
31534         * lib/time.in.h (includes): Likewise.
31535         * lib/unistd.in.h (includes): Likewise.
31536         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
31537         replaced.
31538         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
31539         * m4/stddef_h.m4: New file.
31540         * modules/stddef: Likewise.
31541         * lib/stddef.in.h: Likewise.
31542         * modules/stddef-tests: Likewise.
31543         * tests/test-stddef.c: Likewise.
31544         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
31545         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
31546         * doc/posix-headers/locale.texi (locale.h): Likewise.
31547         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
31548         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
31549         * doc/posix-headers/string.texi (string.h): Likewise.
31550         * doc/posix-headers/time.texi (time.h): Likewise.
31551         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
31552         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
31553
31554 2009-08-14  Eric Blake  <ebb9@byu.net>
31555
31556         doc: improve git diff of texinfo files
31557         * .gitattributes: Add rule for *.texi files, with hint on how to
31558         use it.
31559         Copied from m4, and based on a report by Bruno Haible.
31560
31561 2009-08-14  Bruno Haible  <bruno@clisp.org>
31562
31563         Disable multithread support by default on Cygwin 1.5.x for real.
31564         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
31565
31566 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
31567
31568         update-copyright: much ado about intervals
31569         * build-aux/update-copyright: Implement and document
31570         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
31571         of copyright year intervals.
31572         Also, document UPDATE_COPYRIGHT_YEAR.
31573         * tests/test-update-copyright.sh: Test it.
31574
31575         update-copyright: convert 2-digit to 4-digit years
31576         * build-aux/update-copyright: Implement and document.
31577         * tests/test-update-copyright.sh: Update.
31578
31579 2009-08-14  Jim Meyering  <meyering@redhat.com>
31580
31581         test-exclude: avoid coreutils "make check" failure
31582         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
31583         just as in test-argmatch.c.
31584
31585 2009-08-13  Eric Blake  <ebb9@byu.net>
31586
31587         test-dup2: fix bad assumption
31588         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
31589         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
31590
31591         test-version-etc: fix CRLF portability issue
31592         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
31593         recognize \r.
31594         * tests/test-argp-version-etc-1.sh: Likewise.
31595
31596         getopt: update client modules
31597         * modules/argp (Depends-on): Use getopt-gnu.
31598         * modules/git-merge-changelog (Depends-on): Likewise.
31599         * modules/long-options (Depends-on): Likewise.
31600         * modules/xstrtol (Depends-on): Likewise.
31601
31602 2009-08-13  Simon Josefsson  <simon@josefsson.org>
31603
31604         * tests/test-version-etc.sh: Don't fail on different
31605         project/version.  Don't fail on CRLF differences.  Rewrite to use
31606         multiple -e instead of multiple sed forks, suggested by Eric Blake
31607         <ebb9@byu.net>.
31608         * tests/test-argp-version-etc-1.sh: Likewise.
31609
31610 2009-08-13  Simon Josefsson  <simon@josefsson.org>
31611
31612         * tests/test-version-etc.sh: Don't fail on different
31613         project/version.
31614
31615 2009-08-12  Bruno Haible  <bruno@clisp.org>
31616
31617         Tests for modules 'getopt-posix', 'getopt-gnu'.
31618         * modules/getopt-posix-tests: New file.
31619         * tests/test-getopt.c: New file.
31620         * tests/test-getopt.h: New file.
31621         * tests/test-getopt_long.h: New file.
31622
31623         New modules 'getopt-posix', 'getopt-gnu'.
31624         * modules/getopt-gnu: New file, renamed from modules/getopt.
31625         * modules/getopt-posix: New file.
31626         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
31627         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
31628         (gl_GETOPT): Remove macro.
31629         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
31630         Disable the test against BSD systems that declare optreset. Test
31631         against mingw bug. Test against lack of support of optional arguments
31632         on many platforms.
31633         * doc/glibc-headers/getopt.texi: Update module name and list of
31634         relevant platforms.
31635         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
31636         'getopt-gnu' and more portability problems.
31637         * NEWS: Mention the changes.
31638
31639 2009-08-12  Bruno Haible  <bruno@clisp.org>
31640
31641         Ensure that optarg etc. get declared by <unistd.h>.
31642         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
31643         AC_USE_SYSTEM_EXTENSIONS.
31644         * modules/getopt (Depends-on): Add 'extensions'.
31645
31646 2009-08-12  Bruno Haible  <bruno@clisp.org>
31647
31648         Avoid test link errors.
31649         * modules/pipe-filter-ii-tests (Makefile.am): Define
31650         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
31651         * modules/pipe-filter-gi-tests (Makefile.am): Define
31652         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
31653         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31654
31655 2009-08-12  Bruno Haible  <bruno@clisp.org>
31656
31657         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
31658         gl_GETOPT_SUBSTITUTE before.
31659         (gl_GETOPT): Use it.
31660         * m4/argp.m4 (gl_ARGP): Update.
31661         Reported by Sergey Poznyakoff.
31662
31663         * m4/getopt.m4: Reorder macros.
31664         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
31665         (gl_GETOPT_SUBSTITUTE): Remove macro.
31666
31667 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
31668
31669         Minor improvement in gitlog-to-changelog
31670
31671         * build-aux/gitlog-to-changelog: New option `--format' makes
31672         output format string configurable.
31673
31674 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
31675
31676         Optimize exclude: use hash tables for non-wildcard patterns.
31677
31678         * lib/exclude.c: Include hash.h and mbuiter.h
31679         (struct exclude_pattern, exclude_segment): New data types.
31680         (struct exclude): Rewrite.
31681         (fnmatch_pattern_has_wildcards): New function.
31682         (new_exclude_segment, free_exclude_segment): New functions.
31683         (excluded_file_pattern_p, excluded_file_name_p): New functions.
31684         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
31685         * lib/exclude.h (is_fnmatch_pattern): New prototype.
31686         * modules/exclude: Depend on hash and mbuiter.
31687
31688         * modules/exclude-tests: New file.
31689         * tests/test-exclude.c: New file.
31690         * tests/test-exclude1.sh: New file.
31691         * tests/test-exclude2.sh: New file.
31692         * tests/test-exclude3.sh: New file.
31693         * tests/test-exclude4.sh: New file.
31694         * tests/test-exclude5.sh: New file.
31695         * tests/test-exclude6.sh: New file.
31696         * tests/test-exclude7.sh: New file.
31697
31698 2009-08-12  Bruno Haible  <bruno@clisp.org>
31699
31700         Ensure that getopt() gets declared by <unistd.h>.
31701         * lib/unistd.in.h: Conditionally include getopt.h.
31702         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
31703         Set GNULIB_UNISTD_H_GETOPT.
31704         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31705         GNULIB_UNISTD_H_GETOPT.
31706         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
31707
31708 2009-08-12  Bruno Haible  <bruno@clisp.org>
31709
31710         Clarify logic.
31711         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
31712         gl_replace_getopt instead of GETOPT_H.
31713
31714 2009-08-12  Bruno Haible  <bruno@clisp.org>
31715
31716         * m4/getopt.m4: Add comments.
31717
31718 2009-08-12  Bruno Haible  <bruno@clisp.org>
31719
31720         Disable multithread support by default on Cygwin 1.5.x.
31721         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
31722         set gl_use_threads=no if not specified otherwise.
31723
31724 2009-08-11  Bruno Haible  <bruno@clisp.org>
31725
31726         Avoid compilation error on NetBSD 5.0.
31727         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
31728         * tests/test-stdio.c: Likewise.
31729         * tests/test-stdlib.c: Likewise.
31730         * tests/test-string.c: Likewise.
31731         * tests/test-unistd.c: Likewise.
31732         Reported by Greg Troxel <gdt@ir.bbn.com>
31733         at <https://savannah.gnu.org/support/?106973>.
31734
31735 2009-08-11  Bruno Haible  <bruno@clisp.org>
31736
31737         * modules/dup2-tests (Depends-on): Remove close.
31738
31739         Undo 2009-07-19 commit.
31740         * modules/acl-tests (Depends-on): Remove close.
31741         * modules/binary-io-tests (Depends-on): Likewise.
31742         * modules/closein-tests (Depends-on): Likewise.
31743         * modules/flock-tests (Depends-on): Likewise.
31744         * modules/fsync-tests (Depends-on): Likewise.
31745         * modules/lseek-tests (Depends-on): Likewise.
31746         * modules/pipe-tests (Depends-on): Likewise.
31747         * modules/posix_spawn-tests (Depends-on): Likewise.
31748         * modules/posix_spawnp-tests (Depends-on): Likewise.
31749         * modules/stat-time-tests (Depends-on): Likewise.
31750         * modules/yesno-tests (Depends-on): Likewise.
31751
31752 2009-08-10  Bruno Haible  <bruno@clisp.org>
31753
31754         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
31755
31756 2009-08-10  Bruno Haible  <bruno@clisp.org>
31757
31758         Fix a gcc warning.
31759         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
31760
31761 2009-08-10  Bruno Haible  <bruno@clisp.org>
31762
31763         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
31764         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
31765         not only the first time.
31766         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
31767         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
31768         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
31769         is 1, not only the the first time.
31770
31771 2009-08-10  Bruno Haible  <bruno@clisp.org>
31772
31773         Make it possible to use module 'gethostname' without module 'close'.
31774         * lib/unistd.in.h (close): Evoke a link error only if
31775         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
31776         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31777         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31778         * modules/unistd (Makefile.am): Substitute
31779         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31780         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
31781         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
31782         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
31783         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31784         * modules/sys_ioctl (Makefile.am): Substitute
31785         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31786         * modules/socket (configure.ac): On native Windows, set
31787         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
31788         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31789         Reported by Sam Steingold <sds@gnu.org>.
31790
31791 2009-08-10  Bruno Haible  <bruno@clisp.org>
31792
31793         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
31794         * modules/ioctl (configure.ac): Likewise.
31795
31796 2009-08-10  Bruno Haible  <bruno@clisp.org>
31797
31798         Avoid collision between gnulib wrapper and libintl wrapper.
31799         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
31800         already defined in intl/printf.c.
31801         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
31802         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
31803
31804 2009-08-09  Bruno Haible  <bruno@clisp.org>
31805
31806         Make <sys/select.h> really self-contained, also on Solaris 10.
31807         * lib/sys_select.in.h: Include <string.h>.
31808         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
31809         Solaris 10 problem.
31810         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
31811         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
31812         Reported by Jim Meyering.
31813
31814 2009-08-09  Bruno Haible  <bruno@clisp.org>
31815
31816         Avoid warnings from 'aclocal' that are due to a use of macro name
31817         AM_XGETTEXT_OPTION that is not defined in automake.
31818         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
31819         automake.
31820         * modules/error (configure.ac): Likewise.
31821         * modules/propername (configure.ac): Likewise.
31822         * modules/vasprintf (configure.ac): Likewise.
31823         * modules/verror (configure.ac): Likewise.
31824         * modules/xprintf (configure.ac): Likewise.
31825         * modules/xvasprintf (configure.ac): Likewise.
31826
31827 2009-08-08  Bruno Haible  <bruno@clisp.org>
31828
31829         Avoid compilation error in C++ mode.
31830         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
31831         Reported by Sam Steingold <sds@gnu.org>.
31832
31833 2009-08-08  Bruno Haible  <bruno@clisp.org>
31834
31835         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
31836         for the various Unix platforms.
31837         * doc/posix-headers/limits.texi: Update platforms list regarding
31838         HOST_NAME_MAX.
31839         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31840
31841 2009-08-07  Jim Meyering  <meyering@redhat.com>
31842
31843         selinux-at: fix typo in a comment
31844         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
31845         Spotted by Paolo Bonzini.
31846
31847         selinux-at: remove redundant m4 code, add documentation
31848         * modules/selinux-at (configure.ac): Remove redundant code.
31849         LIB_SELINUX is already set via the dependent module, selinux-h.
31850         (Include): Add quotes around selinux-at.h.
31851         * lib/selinux-at.h: Add documentation.
31852         Reported by Bruno Haible in
31853         http://marc.info/?l=gnulib-bug&m=124958988300749
31854
31855 2009-08-07  Bruno Haible  <bruno@clisp.org>
31856
31857         Avoid link error on MacOS X 10.3 and 10.4.
31858         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
31859         on non-ELF systems.
31860         * lib/argp-pv.c (argp_program_version): Likewise.
31861         Reported by Simon Josefsson.
31862
31863 2009-08-07  Simon Josefsson  <simon@josefsson.org>
31864
31865         * tests/test-version-etc.sh: Use $EXEEXT.
31866
31867 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
31868
31869         update-copyright: update documentation to point to maint.mk
31870         * build-aux/update-copyright: Here.
31871
31872 2009-08-06  Jim Meyering  <meyering@redhat.com>
31873
31874         maint.mk: support update-copyright-local
31875         * top/maint.mk (update-copyright-local): Define place-holder.
31876         (update-copyright): Depend on $(update-copyright-local).
31877
31878 2009-08-06  Jim Meyering  <meyering@redhat.com>
31879
31880         selinux-at: new module
31881         Initially written for coreutils, this module will soon be
31882         used by findutils, too.
31883         * MODULES.html.sh [Misc]: Add selinux-at.
31884         * lib/selinux-at.h: New file, from coreutils.
31885         * lib/selinux-at.c: Likewise.
31886         * modules/selinux-at: Likewise.
31887         (License): Change from LGPL to GPL, since it depends
31888         on the GPL'd openat module.
31889
31890         doc: update README
31891         * README: Remove references to cogito.
31892         Remove cvs-repo-updating instructions from 2007.
31893         Don't imply that CVS is better if you have limited disk space.
31894
31895 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31896
31897         update-copyright: support C-style comments
31898         * build-aux/update-copyright: Implement and document.
31899         * tests/test-update-copyright.sh: Test.
31900
31901 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31902
31903         update-copyright: support omitted "(C)"
31904         * build-aux/update-copyright: Implement and document.  Also,
31905         allow variable whitespace before "(C)".
31906         * tests/test-update-copyright.sh: Test.
31907
31908 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31909
31910         update-copyright: don't trip on non-FSF copyright statements
31911         * build-aux/update-copyright: Fix so that the first correctly
31912         formatted FSF copyright statement is recognized no matter what
31913         appears before it.  Update documentation.
31914         * tests/test-update-copyright.sh: Test that.
31915
31916 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31917
31918         update-copyright: clean up code a little
31919         * build-aux/update-copyright: Append "_re" to the name of any
31920         variable holding a regular expression.
31921         Replace "old" and "new" with "stmt" in variable names.
31922         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
31923         handled correctly.
31924         Format code more consistently.
31925
31926 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31927
31928         update-copyright-tests: improve portability
31929         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
31930         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
31931
31932 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
31933
31934         update-copyright: support @copyright{} and &copy;
31935         * build-aux/update-copyright: Implement and document.
31936         * tests/test-update-copyright.sh: Test.
31937
31938 2009-08-04  Jim Meyering  <meyering@redhat.com>
31939
31940         update-copyright-tests: correctly test EOL=\r\n handling
31941         * tests/test-update-copyright.sh: Put \r at the end of some lines
31942         for the dos-eol tests.  Based on a patch by Joel E. Denny.
31943
31944         maint.mk: make update-copyright exclusion list more configurable
31945         * top/maint.mk (update-copyright): Default to excluding COPYING,
31946         but allow an override, in case someone does want to update that file.
31947
31948         maint.mk: don't update copyright date in COPYING
31949         * top/maint.mk (update-copyright): Exclude COPYING.
31950
31951         maint.mk: add a copyright-updating rule
31952         * top/maint.mk (update-copyright): New rule.
31953         Derived from coreutils/Makefile.am.
31954
31955         update-copyright: rename some variables
31956         * build-aux/update-copyright: Rename a few variables for clarity.
31957         Tweak syntax.  List Joel E. Denny as coauthor.
31958
31959 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
31960
31961         update-copyright: fix bug for 2-digit last year and add tests
31962         * build-aux/update-copyright: Fix bug.
31963         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
31964         specified.
31965         * modules/update-copyright-tests: New
31966         * tests/test-update-copyright.sh: New.
31967
31968 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
31969
31970         update-copyright: handle leading tabs in line prefix
31971         * build-aux/update-copyright: Count leading tabs as 8 spaces
31972         when computing margin.  This helps with the formatting of
31973         ChangeLogs, for example.
31974         Fix documentation a little.
31975
31976 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
31977
31978         update-copyright: support EOL=\r\n
31979         * build-aux/update-copyright: Implement that.
31980
31981 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
31982
31983         update-copyright: automatically format copyright statements
31984         * build-aux/update-copyright: Implement that.
31985         Also, be a little more predictable and safer by always failing
31986         when the full copyright format is not perfectly recognized as an
31987         unbroken whole.  Discussed at
31988         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
31989         Rewrite documentation.
31990
31991 2009-08-03  Bruno Haible  <bruno@clisp.org>
31992
31993         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
31994
31995 2009-08-02  Bruno Haible  <bruno@clisp.org>
31996
31997         Tests for module 'uname'.
31998         * modules/uname-tests: New file.
31999         * tests/test-uname.c: New file.
32000
32001         New module 'uname'.
32002         * lib/uname.c: New file.
32003         * m4/uname.m4: New file.
32004         * modules/uname: New file.
32005         * doc/posix-functions/uname.texi: Mention the new module.
32006
32007 2009-08-02  Bruno Haible  <bruno@clisp.org>
32008
32009         Tests for module 'sys_utsname'.
32010         * modules/sys_utsname-tests: New file.
32011         * tests/test-sys_utsname.c: New file.
32012
32013         New module 'sys_utsname'.
32014         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
32015         * m4/sys_utsname_h.m4: New file.
32016         * modules/sys_utsname: New file.
32017         * doc/posix-headers/sys_utsname.texi: Mention the new module.
32018
32019 2009-08-02  Bruno Haible  <bruno@clisp.org>
32020
32021         Implicitly initialize the sockets library.
32022         * lib/gethostname.c: Include sockets.h.
32023         (rpl_gethostname): Invoke gl_sockets_startup.
32024         * lib/socket.c: Include sockets.h.
32025         (rpl_socket): Invoke gl_sockets_startup.
32026         * modules/gethostname (Depends-on): Add sockets.
32027         * modules/socket (Depends-on): Likewise.
32028         * tests/test-poll.c: Don't include sockets.h.
32029         (main): Don't invoke gl_sockets_startup.
32030         * tests/test-select.c: Don't include sockets.h.
32031         (main): Don't invoke gl_sockets_startup.
32032
32033 2009-08-02  Bruno Haible  <bruno@clisp.org>
32034
32035         Allow multiple calls to gl_sockets_startup.
32036         * lib/sockets.c (initialized_sockets_version): New variable.
32037         (gl_sockets_startup): Do nothing if already called for this or a higher
32038         version.
32039         (gl_sockets_cleanup): Reset initialized_sockets_version.
32040
32041 2009-08-03  Simon Josefsson  <simon@josefsson.org>
32042
32043         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
32044         different project/version.
32045
32046 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
32047             Bruno Haible  <bruno@clisp.org>
32048
32049         Tests for module 'pipe-filter-gi'.
32050         * modules/pipe-filter-gi-tests: New file.
32051         * tests/test-pipe-filter-gi1.sh: New file.
32052         * tests/test-pipe-filter-gi1.c: New file.
32053         * tests/test-pipe-filter-gi2.sh: New file.
32054         * tests/test-pipe-filter-gi2-main.c: New file.
32055         * tests/test-pipe-filter-gi2-child.c: New file.
32056
32057         New module 'pipe-filter-gi'.
32058         * lib/pipe-filter-gi.c: New file.
32059         * modules/pipe-filter-gi: New file.
32060
32061 2009-08-02  Bruno Haible  <bruno@clisp.org>
32062             Paolo Bonzini  <bonzini@gnu.org>
32063
32064         Tests for module 'pipe-filter-ii'.
32065         * modules/pipe-filter-ii-tests: New file.
32066         * tests/test-pipe-filter-ii1.sh: New file.
32067         * tests/test-pipe-filter-ii1.c: New file.
32068         * tests/test-pipe-filter-ii2.sh: New file.
32069         * tests/test-pipe-filter-ii2-main.c: New file.
32070         * tests/test-pipe-filter-ii2-child.c: New file.
32071
32072         New module 'pipe-filter-ii'.
32073         * lib/pipe-filter.h: New file.
32074         * lib/pipe-filter-ii.c: New file.
32075         * lib/pipe-filter-aux.h: New file.
32076         * modules/pipe-filter-ii: New file.
32077
32078 2009-08-02  Simon Josefsson  <simon@josefsson.org>
32079
32080         * lib/gc-libgcrypt.c: Change copyright to FSF.
32081         * lib/gc-gnulib.c: Likewise.
32082
32083 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
32084
32085         * lib/gethostname.c: Include limits.h.
32086
32087 2009-08-02  Simon Josefsson  <simon@josefsson.org>
32088             Bruno Haible  <bruno@clisp.org>
32089
32090         Ensure HOST_NAME_MAX as part of the gethostname module.
32091         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
32092         define also HOST_NAME_MAX.
32093         * tests/test-gethostname.c: Include <limits.h>.
32094         (main): Check also HOST_NAME_MAX.
32095         * doc/posix-headers/limits.texi: Document the mingw problem.
32096
32097 2009-08-02  Bruno Haible  <bruno@clisp.org>
32098
32099         * lib/gethostname.c (gethostname): Fix handling of large len argument.
32100         Add comments.
32101
32102 2009-03-31  Simon Josefsson  <simon@josefsson.org>
32103
32104         * lib/gethostname.c: Add Windows wrapper.
32105         * m4/gethostname.m4: Look for gethostname in -lws2_32.
32106         * modules/gethostname: Depend on sys_socket & errno, for also
32107         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
32108         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
32109
32110 2009-07-31  Jim Meyering  <meyering@redhat.com>
32111
32112         getloadavg: fix symbol name in comment
32113         * lib/getloadavg.c: Correct a typo I introduced when adding
32114         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
32115         Matt Kraai spotted the problem.
32116
32117 2009-07-29  Matt Kraai  <mkraai@beckman.com>
32118
32119         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
32120         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
32121         code also if ! defined N_NAME_POINTER.
32122         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
32123         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
32124         but the n_name member is a 12-byte array.
32125
32126 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
32127
32128         update-copyright: generalize comment handling
32129         * build-aux/update-copyright: Handle copyright statements
32130         within more comment styles.
32131         Document usage.
32132         Report any file with an external copyright holder or parse failure.
32133
32134 2009-07-29  Jim Meyering  <meyering@redhat.com>
32135
32136         mktime: correct setting of REPLACE_MKTIME
32137         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
32138
32139         update-copyright: new module
32140         * modules/update-copyright: New file.
32141         * build-aux/update-copyright: New file.
32142         * MODULES.html.sh (maint+release support): Add update-copyright.
32143
32144 2009-07-27  Bruno Haible  <bruno@clisp.org>
32145
32146         Fix compilation error when <ctime> is used and mktime is replaced.
32147         * lib/time.in.h (mktime): New declaration.
32148         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
32149         REPLACE_MKTIME instead of defining mktime in config.h.
32150         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
32151         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
32152         Reported by Ross McFarland <rwmcfa1@neces.com>.
32153
32154 2009-07-27  Bruno Haible  <bruno@clisp.org>
32155
32156         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
32157         Reported by Matt Kraai <mkraai@beckman.com>.
32158
32159 2009-07-25  Jim Meyering  <meyering@redhat.com>
32160
32161         maint.mk: avoid warnings about missing files
32162         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
32163         diagnostic when .prev-version does not exist.
32164         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
32165         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
32166         nonexistent cfg.mk.
32167         Suggestions from Simon Josefsson.
32168
32169 2009-07-25  Bruno Haible  <bruno@clisp.org>
32170
32171         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
32172         defined as macros. Needed on QNX 6.4.1.
32173         Reported by Matt Kraai <mkraai@beckman.com>.
32174
32175 2009-07-23  Jim Meyering  <meyering@redhat.com>
32176
32177         maint.mk: invoke "make dist" with a working value of XZ_OPT
32178         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
32179
32180 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
32181
32182         Make fseeko.c compile on QNX.
32183         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
32184
32185 2009-07-22  Peter Simons  <simons@cryp.to>
32186
32187         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
32188         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
32189         * lib/md4.h: Likewise.
32190         * lib/md5.h: Likewise.
32191         * lib/sha1.h: Likewise.
32192         * lib/sha256.h: Likewise.
32193         * lib/sha512.h: Likewise.
32194
32195         tests-sha1: don't assign literal string to 'char *' variable
32196         * tests/test-sha1.c (main): Declare locals with "const" to match
32197         attributes of the right hand side.
32198
32199 2009-07-21  Eric Blake  <ebb9@byu.net>
32200
32201         dup2: fix more mingw problems
32202         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
32203         fd to itself.
32204         * doc/posix-functions/dup2.texi (dup2): Document the bug.
32205         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
32206         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
32207         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
32208         care of mingw bugs.
32209
32210 2009-07-21  Jim Meyering  <meyering@redhat.com>
32211
32212         vc-list-files: avoid failure when /bin/sh is dash
32213         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
32214         On some Debian based systems, /bin/sh is a symlink to dash, and running
32215         this command would omit the "/" following each 'tests' prefix:
32216           dash -x build-aux/vc-list-files -C . tests
32217         That is because bash and dash work differently:
32218           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
32219           bash ok
32220           dash odd
32221
32222 2009-07-21  Eric Blake  <ebb9@byu.net>
32223
32224         dup2-tests: test previous patch
32225         * modules/dup2-tests: New file.
32226         * tests/test-dup2.c: Likewise.
32227         * tests/test-open.c (main): Avoid unspecified behavior.
32228         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
32229         test.
32230
32231         dup2: work around mingw and cygwin 1.5 bug
32232         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
32233         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32234         * modules/unistd (Makefile.am): Substitute it.
32235         * lib/unistd.in.h (dup2): Declare the replacement.
32236         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
32237         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
32238         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
32239         * modules/execute (Depends-on): Add dup2.
32240         * modules/fseterr (Depends-on): Likewise.
32241         * modules/pipe (Depends-on): Likewise.
32242         * modules/posix_spawn-internal (Depends-on): Likewise.
32243
32244 2009-07-21  Bruno Haible  <bruno@clisp.org>
32245
32246         * modules/.gitattributes: New file.
32247
32248 2009-07-20  Bruno Haible  <bruno@clisp.org>
32249
32250         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
32251         (main): Use it.
32252
32253 2009-07-20  Eric Blake  <ebb9@byu.net>
32254
32255         test-pipe: make a bit more robust.
32256         * tests/test-pipe.c (myerr): Allow error messages regardless of
32257         what we do to stderr.
32258         (test_pipe): Rearrange to avoid deadlock.
32259         (child_main): Try a larger read, to ensure we avoided deadlock.
32260         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
32261         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
32262         if misused.
32263
32264 2009-07-19  Jim Meyering  <meyering@redhat.com>
32265
32266         fts: avoid false-positive cycle-detection
32267         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
32268         for each new command line argument.
32269
32270 2009-07-19  Bruno Haible  <bruno@clisp.org>
32271
32272         Fix build error on mingw with the modules sys_select and unistd.
32273         * modules/acl-tests (Depends-on): Add close.
32274         * modules/binary-io-tests (Depends-on): Likewise.
32275         * modules/closein-tests (Depends-on): Likewise.
32276         * modules/flock-tests (Depends-on): Likewise.
32277         * modules/fsync-tests (Depends-on): Likewise.
32278         * modules/lseek-tests (Depends-on): Likewise.
32279         * modules/pipe-tests (Depends-on): Likewise.
32280         * modules/posix_spawn-tests (Depends-on): Likewise.
32281         * modules/posix_spawnp-tests (Depends-on): Likewise.
32282         * modules/stat-time-tests (Depends-on): Likewise.
32283         * modules/yesno-tests (Depends-on): Likewise.
32284
32285 2009-07-19  Bruno Haible  <bruno@clisp.org>
32286
32287         Unify conditionals.
32288         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
32289         macros, not at the compiler macros.
32290         * lib/pipe.c: Likewise.
32291         * lib/execute.c: Likewise.
32292         * lib/spawni.c: Likewise.
32293
32294 2009-07-19  Bruno Haible  <bruno@clisp.org>
32295
32296         Fix handling of closed stdin/stdout/stderr on mingw.
32297         * lib/w32spawn.h: Include unistd.h.
32298         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
32299         file descriptor with O_NOINHERIT flag.
32300         (fd_safer_noinherit): New function, based on fd-safer.c.
32301         (dup_safer_noinherit): New function, based on dup-safer.c.
32302         (undup_safer_noinherit): New function.
32303         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
32304         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
32305         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
32306         instead of fd_safer.
32307         * tests/test-pipe.c: Include <windows.h>.
32308         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
32309         result.
32310
32311         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
32312         from main.
32313         (test_pipe): Pass an extra argument for disambiguation.
32314         (main): Invoke parent_main or child_main.
32315
32316         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
32317         consistently.
32318
32319 2009-07-18  Eric Blake  <ebb9@byu.net>
32320
32321         test-pipe: fix mingw build
32322         * tests/test-pipe.c (main): Avoid fcntl on mingw.
32323
32324 2009-07-18  Bruno Haible  <bruno@clisp.org>
32325
32326         * modules/pipe-tests (Makefile.am): Fix typo.
32327
32328 2009-07-18  Eric Blake  <ebb9@byu.net>
32329
32330         error: fix mingw build
32331         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
32332         Reported by Bruno Haible.
32333
32334         error: avoid undefined use of stdout
32335         * lib/error.c (error, error_at_line): Check that fd 1 is open
32336         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
32337         is handling faults and the close_stdout module wants to report the
32338         detection of closed stdout as an error.
32339
32340 2009-07-17  Eric Blake  <ebb9@byu.net>
32341
32342         pipe: be robust in face of closed fds
32343         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
32344         should cause child to misbehave.
32345         * modules/pipe-tests: New module.
32346         * tests/test-pipe.c: New file.
32347         * tests/test-pipe.sh: New file.
32348         Reported by Akim Demaille.
32349
32350 2009-07-14  Bruno Haible  <bruno@clisp.org>
32351
32352         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
32353         Reported by anonymous kc.
32354
32355 2009-07-07  Jim Meyering  <meyering@redhat.com>
32356
32357         maint.mk: don't look for translatable strings in *.m4 or *.mk
32358         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
32359         when searching for translatable strings.
32360
32361 2009-07-05  Jim Meyering  <meyering@redhat.com>
32362
32363         remove superfluous parentheses in STREQ definition
32364         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
32365         * lib/getugroups.c (STREQ): Likewise.
32366         * lib/fnmatch.c (STREQ): Likewise.
32367         Spotted by Bruno Haible.
32368
32369 2009-07-04  Jim Meyering  <meyering@redhat.com>
32370
32371         argv-iter: new module
32372         * MODULES.html.sh: Add argv-iter.
32373         * lib/argv-iter.c, lib/argv-iter.h: New files.
32374         * modules/argv-iter: New file.
32375         * modules/argv-iter-tests: New file.
32376         * tests/test-argv-iter.c: Test it.
32377
32378 2009-07-04  Bruno Haible  <bruno@clisp.org>
32379
32380         Fix assertion.
32381         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
32382         contains more exact copies of a given entry than file2, leave the extra
32383         copies unpaired rather than aborting.
32384         Reported by Eric Blake.
32385
32386 2009-07-02  Bruno Haible  <bruno@clisp.org>
32387
32388         Speedup git-merge-changelog for git cherry-pick.
32389         * lib/git-merge-changelog.c (struct entries_mapping): New type.
32390         (entries_mapping_get): New function, extracted from compute_mapping.
32391         (entries_mapping_reverse_get): New function.
32392         (compute_mapping): Add a 'full' argument. Return the result in a
32393         'struct entries_mapping'.
32394         (main): Update. Access the mappings through entries_mapping_get.
32395         Reported by Eric Blake.
32396
32397 2009-07-02  Bruno Haible  <bruno@clisp.org>
32398
32399         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
32400         best_i.
32401
32402 2009-07-02  Bruno Haible  <bruno@clisp.org>
32403
32404         Speed up approximate search for matching ChangeLog entries.
32405         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
32406         argument. Call fstrcmp_bounded instead of fstrcmp.
32407         (compute_mapping, try_split_merged_entry, main): Update callers.
32408
32409 2009-07-02  Bruno Haible  <bruno@clisp.org>
32410
32411         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
32412
32413 2009-06-30  Bruno Haible  <bruno@clisp.org>
32414
32415         Reduce the number of uc_is_cased calls.
32416         * lib/unicase.h (casing_suffix_context_t): Add
32417         'first_char_except_ignorable' field.
32418         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
32419         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
32420         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
32421         Update initializer.
32422         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
32423         case-ignorable characters.
32424         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
32425         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
32426         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
32427         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
32428         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
32429
32430 2009-06-30  Bruno Haible  <bruno@clisp.org>
32431
32432         Tests for module 'unicase/ignorable'.
32433         * modules/unicase/ignorable-tests: New file.
32434         * tests/unicase/test-ignorable.c: New file, generated by
32435         gen-uni-tables.
32436
32437         Tests for module 'unicase/cased'.
32438         * modules/unicase/cased-tests: New file.
32439         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
32440         * tests/unicase/test-predicate-part1.h: New file, derived from
32441         tests/unictype/test-predicate-part1.h.
32442         * tests/unicase/test-predicate-part2.h: New file, same as
32443         tests/unictype/test-predicate-part2.h.
32444
32445         Fix evaluation of "Before C" condition of FINAL_SIGMA.
32446         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
32447         (output_casing_properties): New function.
32448         (main): Call it.
32449         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
32450         * lib/unicase/cased.c: Include unictype/bitmap.h.
32451         (uc_is_cased): Define through a bitmap lookup.
32452         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
32453         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
32454         (uc_is_case_ignorable): Define through a bitmap lookup.
32455         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
32456         lib/unictype/bitmap.h.
32457         (Depends-on): Add inline. Clean up.
32458         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
32459         lib/unictype/bitmap.h.
32460         (Depends-on): Add inline. Clean up.
32461         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
32462         recognition.
32463         * tests/unicase/test-u16-tolower.c (main): Likewise.
32464         * tests/unicase/test-u32-tolower.c (main): Likewise.
32465
32466 2009-06-30  Bruno Haible  <bruno@clisp.org>
32467
32468         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
32469         * lib/unicase/u16-casemap.c: Likewise.
32470         * lib/unicase/u32-casemap.c: Likewise.
32471
32472 2009-06-29  Bruno Haible  <bruno@clisp.org>
32473
32474         Define u32_casefold as a wrapper around u32_ct_casefold.
32475         * lib/unicase/u32-casefold.c: Update.
32476         * modules/unicase/u32-casefold (Depends-on): Add
32477         unicase/u32-ct-casefold, unicase/empty-prefix-context,
32478         unicase/empty-suffix-context. Clean up.
32479
32480         Define u16_casefold as a wrapper around u16_ct_casefold.
32481         * lib/unicase/u16-casefold.c: Update.
32482         * modules/unicase/u16-casefold (Depends-on): Add
32483         unicase/u16-ct-casefold, unicase/empty-prefix-context,
32484         unicase/empty-suffix-context. Clean up.
32485
32486         Define u8_casefold as a wrapper around u8_ct_casefold.
32487         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
32488         * lib/unicase/u8-casefold.c: Update.
32489         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
32490         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
32491
32492         Define u32_totitle as a wrapper around u32_ct_totitle.
32493         * lib/unicase/u32-totitle.c: Update.
32494         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
32495         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
32496
32497         Define u16_totitle as a wrapper around u16_ct_totitle.
32498         * lib/unicase/u16-totitle.c: Update.
32499         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
32500         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
32501
32502         Define u8_totitle as a wrapper around u8_ct_totitle.
32503         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
32504         functions.
32505         (FUNC): Delegate to U_CT_TOTITLE.
32506         * lib/unicase/u8-totitle.c: Update.
32507         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
32508         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
32509
32510         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
32511         invocation.
32512         * modules/unicase/u32-tolower (Depends-on): Add
32513         unicase/empty-prefix-context, unicase/empty-suffix-context.
32514
32515         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
32516         invocation.
32517         * modules/unicase/u16-tolower (Depends-on): Add
32518         unicase/empty-prefix-context, unicase/empty-suffix-context.
32519
32520         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
32521         * modules/unicase/u8-tolower (Depends-on): Add
32522         unicase/empty-prefix-context, unicase/empty-suffix-context.
32523
32524         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
32525         invocation.
32526         * modules/unicase/u32-toupper (Depends-on): Add
32527         unicase/empty-prefix-context, unicase/empty-suffix-context.
32528
32529         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
32530         invocation.
32531         * modules/unicase/u16-toupper (Depends-on): Add
32532         unicase/empty-prefix-context, unicase/empty-suffix-context.
32533
32534         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
32535         * modules/unicase/u8-toupper (Depends-on): Add
32536         unicase/empty-prefix-context, unicase/empty-suffix-context.
32537
32538         New module 'unicase/u32-ct-casefold'.
32539         * lib/unicase/u32-ct-casefold.c: New file.
32540         * modules/unicase/u32-ct-casefold: New file.
32541
32542         New module 'unicase/u16-ct-casefold'.
32543         * lib/unicase/u16-ct-casefold.c: New file.
32544         * modules/unicase/u16-ct-casefold: New file.
32545
32546         New module 'unicase/u8-ct-casefold'.
32547         * lib/unicase/u8-ct-casefold.c: New file.
32548         * lib/unicase/u-ct-casefold.h: New file, derived from
32549         lib/unicase/u-casefold.h.
32550         * modules/unicase/u8-ct-casefold: New file.
32551
32552         New module 'unicase/u32-ct-totitle'.
32553         * lib/unicase/u32-ct-totitle.c: New file.
32554         * modules/unicase/u32-ct-totitle: New file.
32555
32556         New module 'unicase/u16-ct-totitle'.
32557         * lib/unicase/u16-ct-totitle.c: New file.
32558         * modules/unicase/u16-ct-totitle: New file.
32559
32560         New module 'unicase/u8-ct-totitle'.
32561         * lib/unicase/u8-ct-totitle.c: New file.
32562         * lib/unicase/u-ct-totitle.h: New file, derived from
32563         lib/unicase/u-totitle.h.
32564         * modules/unicase/u8-ct-totitle: New file.
32565
32566         New module 'unicase/u32-ct-tolower'.
32567         * lib/unicase/u32-ct-tolower.c: New file.
32568         * modules/unicase/u32-ct-tolower: New file.
32569
32570         New module 'unicase/u16-ct-tolower'.
32571         * lib/unicase/u16-ct-tolower.c: New file.
32572         * modules/unicase/u16-ct-tolower: New file.
32573
32574         New module 'unicase/u8-ct-tolower'.
32575         * lib/unicase/u8-ct-tolower.c: New file.
32576         * modules/unicase/u8-ct-tolower: New file.
32577
32578         New module 'unicase/u32-ct-toupper'.
32579         * lib/unicase/u32-ct-toupper.c: New file.
32580         * modules/unicase/u32-ct-toupper: New file.
32581
32582         New module 'unicase/u16-ct-toupper'.
32583         * lib/unicase/u16-ct-toupper.c: New file.
32584         * modules/unicase/u16-ct-toupper: New file.
32585
32586         New module 'unicase/u8-ct-toupper'.
32587         * lib/unicase/u8-ct-toupper.c: New file.
32588         * modules/unicase/u8-ct-toupper: New file.
32589
32590         Add context arguments to u*_casemap functions.
32591         * lib/unicase/unicasemap.h: Include unicase.h.
32592         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
32593         suffix_context arguments.
32594         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
32595         functions.
32596         (FUNC): Add prefix_context and suffix_context arguments. Use
32597         uc_is_cased and uc_is_case_ignorable.
32598         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
32599         * lib/unicase/u16-casemap.c: Likewise.
32600         * lib/unicase/u32-casemap.c: Likewise.
32601         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
32602         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
32603         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
32604         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
32605         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
32606         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
32607
32608         New module 'unicase/u32-suffix-context'.
32609         * lib/unicase/u32-suffix-context.c: New file.
32610         * modules/unicase/u32-suffix-context: New file.
32611
32612         New module 'unicase/u16-suffix-context'.
32613         * lib/unicase/u16-suffix-context.c: New file.
32614         * modules/unicase/u16-suffix-context: New file.
32615
32616         New module 'unicase/u8-suffix-context'.
32617         * lib/unicase/u8-suffix-context.c: New file.
32618         * lib/unicase/u-suffix-context.h: New file.
32619         * modules/unicase/u8-suffix-context: New file.
32620
32621         New module 'unicase/empty-suffix-context'.
32622         * lib/unicase/empty-suffix-context.c: New file.
32623         * modules/unicase/empty-suffix-context: New file.
32624
32625         New module 'unicase/u32-prefix-context'.
32626         * lib/unicase/u32-prefix-context.c: New file.
32627         * modules/unicase/u32-prefix-context: New file.
32628
32629         New module 'unicase/u16-prefix-context'.
32630         * lib/unicase/u16-prefix-context.c: New file.
32631         * modules/unicase/u16-prefix-context: New file.
32632
32633         New module 'unicase/u8-prefix-context'.
32634         * lib/unicase/u8-prefix-context.c: New file.
32635         * lib/unicase/u-prefix-context.h: New file.
32636         * lib/unicase/context.h: New file.
32637         * modules/unicase/u8-prefix-context: New file.
32638
32639         New module 'unicase/empty-prefix-context'.
32640         * lib/unicase/empty-prefix-context.c: New file.
32641         * modules/unicase/empty-prefix-context: New file.
32642
32643         New module 'unicase/ignorable'.
32644         * lib/unicase/ignorable.c: New file.
32645         * modules/unicase/ignorable: New file.
32646
32647         New module 'unicase/cased'.
32648         * lib/unicase/caseprop.h: New file.
32649         * lib/unicase/cased.c: New file.
32650         * modules/unicase/cased: New file.
32651
32652         New functions for case mapping of substrings.
32653         * lib/unicase.h (casing_prefix_context_t): New type.
32654         (unicase_empty_prefix_context): New variable.
32655         (u8_casing_prefix_context, u16_casing_prefix_context,
32656         u32_casing_prefix_context, u8_casing_prefixes_context,
32657         u16_casing_prefixes_context, u32_casing_prefixes_context): New
32658         declarations.
32659         (casing_suffix_context_t): New type.
32660         (unicase_empty_suffix_context): New variable.
32661         (u8_casing_suffix_context, u16_casing_suffix_context,
32662         u32_casing_suffix_context, u8_casing_suffixes_context,
32663         u16_casing_suffixes_context, u32_casing_suffixes_context,
32664         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
32665         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
32666         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
32667         declarations.
32668
32669 2009-06-28  Jim Meyering  <meyering@redhat.com>
32670
32671         boostrap: indent only with spaces
32672         * build-aux/bootstrap: Indent only with spaces, never TABs.
32673
32674         bootstrap: split long lines
32675         * build-aux/bootstrap: Keep line length < 80.
32676
32677         bootstrap: sync from coreutils
32678         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
32679         just as autoreconf does.  Verify a list of prerequisite
32680         package-name,version-number pairs if defined in bootstrap.conf.
32681         Refer to README-prereq, if prerequisites are not satisfied.
32682
32683 2009-06-27  Eric Blake  <ebb9@byu.net>
32684
32685         tests: add test for bogus NULL definition
32686         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
32687         * tests/test-stdlib.c: Likewise.
32688         * tests/test-string.c: Likewise.
32689         * tests/test-locale.c: Likewise.
32690         * tests/test-unistd.c: Likewise.
32691         * modules/stdio-tests (Depends-on): Add verify.
32692         * modules/stdlib-tests (Depends-on): Likewise.
32693         * modules/string-tests (Depends-on): Likewise.
32694         * modules/locale-tests (Depends-on): Likewise.
32695         * modules/unistd-tests (Depends-on): Likewise.
32696
32697 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
32698
32699         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
32700         self-explaining comment.
32701         * m4/selinux-selinux-h: Update serial.
32702         (gl_LIBSELINUX): New macro, adding a warning for missing development
32703         packages to code extracted from...
32704         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
32705         Add warning for missing development packages here, too.
32706
32707 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
32708
32709         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
32710
32711 2009-06-25  Eric Blake  <ebb9@byu.net>
32712
32713         version-etc: fix regression
32714         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
32715         gcc.
32716         (version_etc): Use it, to catch bugs with trailing NULL.
32717         * lib/version-etc.c (version_etc_arn): Delete unused argument.
32718         (version_etc_va): Fix logic bug.
32719         * modules/version-etc-tests: Add test.
32720         * tests/test-version-etc.c: New file.
32721         * tests/test-version-etc.sh: Likewise.
32722
32723 2009-06-25  Sam Steingold  <sds@gnu.org>
32724
32725         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
32726         mbtowc declaration.
32727
32728 2009-06-25  Eric Blake  <ebb9@byu.net>
32729
32730         fpurge: migrate into <stdio.h>
32731         * lib/fpurge.h: Delete...
32732         * lib/stdio.in.h (fpurge): ...and declare here, instead.
32733         * lib/fpurge.c (fpurge): Change declaring header.
32734         * modules/fpurge (Files): Drop deleted file.
32735         (Depends-on): Add stdio.
32736         (configure.ac): Set witness.
32737         * modules/stdio (Makefile.am): Support fpurge macros.
32738         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
32739         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
32740         * lib/fflush.c: Update client.
32741         * tests/test-fpurge.c: Likewise.
32742         * NEWS: Mention the change.
32743
32744 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
32745
32746         * lib/argp-version-etc.c (program_authors): Add const
32747         qualifier.
32748         * lib/version-etc.c: Fix typos in the comments.
32749         * modules/argp-version-etc: Depends on version-etc.
32750
32751 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
32752
32753         argp-version-etc: new module.
32754
32755         * lib/argp-version-etc.c: New file.
32756         * lib/argp-version-etc.h: New file.
32757         * modules/argp-version-etc: New file.
32758         * modules/argp-version-etc-tests: New file.
32759         * tests/test-argp-version-etc.c: New test.
32760         * tests/test-argp-version-etc-1.sh: New test.
32761
32762 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
32763
32764         Provide additional interfaces and documentation for version-etc
32765         module.
32766
32767         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
32768         interfaces.
32769         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
32770         prototypes.
32771
32772 2009-06-24  Bruno Haible  <bruno@clisp.org>
32773
32774         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
32775         HAVE_LIB${NAME} macro.
32776         Reported by Sam Steingold <sds@gnu.org>.
32777
32778 2009-06-23  Simon Josefsson  <simon@josefsson.org>
32779
32780         * modules/hash-tests (test_hash_LDADD): Link to libintl when
32781         needed.
32782
32783 2009-06-21  Bruno Haible  <bruno@clisp.org>
32784
32785         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
32786         work.
32787         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
32788         together with LIB${NAME}, LTLIB${NAME}.
32789         Reported by Sam Steingold <sds@gnu.org>.
32790
32791 2009-06-20  Jim Meyering  <meyering@redhat.com>
32792
32793         tests: make sc_require_test_exit_idiom more generic
32794         * top/maint.mk (Exit_witness_file): New overridable variable.
32795         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
32796         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
32797
32798 2009-06-19  Jim Meyering  <meyering@redhat.com>
32799
32800         hash: reverse order of src/dst parameters in an internal interface
32801         * lib/hash.c (transfer_entries): Reverse order of parameters to
32802         put DST before SRC.  Adjust callers.
32803
32804         tests: test-hash: avoid wholesale duplication
32805         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
32806         Instead, use a loop and add a single conditional.
32807
32808         tests: test-hash: allow seed selection via a command line argument
32809         * tests/test-hash.c (get_seed): New function.
32810         (main): Use it.
32811
32812 2009-06-19  Eric Blake  <ebb9@byu.net>
32813
32814         hash: avoid memory leak on allocation failure
32815         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
32816         failure.  Factor repeated algorithm...
32817         (transfer_entries): ...into new helper routine.
32818         (hash_delete): React to hash_rehash return value.
32819
32820         hash: reduce memory pressure in hash_rehash no-op case
32821         * lib/hash.c (next_prime): Avoid overflow.
32822         (hash_initialize): Factor bucket size computation...
32823         (compute_bucket_size): ...into new helper function.
32824         (hash_rehash): Use new function and open coding to reduce memory
32825         pressure, and avoid a memory leak in USE_OBSTACK code.
32826         Reported by Jim Meyering.
32827
32828 2009-06-18  Eric Blake  <ebb9@byu.net>
32829
32830         hash: make rotation more obvious
32831         * modules/hash (Depends-on): Add bitrotate and stdint.
32832         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
32833         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
32834         (SIZE_MAX): Rely on headers for definition.
32835         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
32836         (raw_hasher): Use rotr_sz.
32837         Suggested by Jim Meyering.
32838
32839         hash: fix memory leak in last patch
32840         * lib/hash.c (hash_rehash): Avoid memory leak.
32841
32842         hash: avoid no-op rehashing
32843         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
32844
32845         hash: provide default callback functions
32846         * lib/hash.c (raw_hasher, raw_comparator): New functions.
32847         (hash_initialize): Use them as defaults.
32848         * tests/test-hash.c (main): Test this.
32849
32850         hash: minor optimization
32851         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
32852         when possible.
32853         (hash_initialize): Document this promise.
32854         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
32855         * tests/test-hash.c (hash_compare_strings): Test this.
32856
32857 2009-06-18  Bruno Haible  <bruno@clisp.org>
32858
32859         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
32860         going to be replaced anyway.
32861
32862 2009-06-18  Bruno Haible  <bruno@clisp.org>
32863
32864         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
32865         in one place.
32866         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
32867         be replaced anyway.
32868
32869 2009-06-18  Eric Blake  <ebb9@byu.net>
32870
32871         hash: check for resize before insertion
32872         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
32873         threshold before insertion, so that a pathological hash_rehash
32874         that fills every bucket can still trigger another rehash.
32875
32876 2009-06-18  Jim Meyering  <meyering@redhat.com>
32877
32878         hash-tests: add a loop around the small tests
32879         * tests/test-hash.c (main): Repeat small tests with selected
32880         small initial table sizes.
32881
32882 2009-06-17  Eric Blake  <ebb9@byu.net>
32883
32884         hash: minor cleanups
32885         * lib/hash.h (hash_entry): Make opaque, by moving...
32886         * lib/hash.c (hash_entry): ...here.
32887         (hash_insert): Clarify restrictions on what can be inserted.
32888         (hash_get_next): Clarify when it is safe to remove an element
32889         during traversal.
32890         (check_tuning): Skip verification when tuning is known safe.
32891         (hash_initialize): Clarify restrictions on tuning.
32892
32893 2009-06-17  Jim Meyering  <jim@meyering.net>
32894         and Eric Blake  <ebb9@byu.net>
32895
32896         hash-tests: new module
32897         * modules/hash-tests: New file.
32898         * tests/test-hash.c: New file.
32899
32900 2009-06-17  Eric Blake  <ebb9@byu.net>
32901
32902         strstr-simple: document new module
32903         * MODULES.html.sh: Document new module.
32904
32905         strstr, strcasestr: replace on platforms with broken memchr
32906         * modules/strstr: Split into...
32907         * modules/strstr-simple: ...new module that does not care about
32908         performance, but does care about glibc bug.
32909         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
32910         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
32911         if platform memchr is broken, per Debian bug 521737.
32912         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
32913         memchr.
32914         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
32915         * doc/posix-functions/strstr.texi (strstr): Document the fix.
32916         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
32917         * modules/mountlist (Depends-on): Add strstr-simple.
32918         * modules/gen-uni-tables (Depends-on): Likewise.
32919         * modules/argz (Depends-on): Add strstr.
32920
32921 2009-06-17  Bruno Haible  <bruno@clisp.org>
32922
32923         * modules/posix_spawn-internal (Depends-on): Add errno.
32924
32925 2009-06-17  Bruno Haible  <bruno@clisp.org>
32926
32927         Define missing ESTALE on Interix 3.5.
32928         * lib/errno.in.h (ESTALE): Assign a value if missing.
32929         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
32930         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
32931         missing.
32932         * doc/posix-headers/errno.texi: Mention the Interix bug.
32933         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
32934
32935 2009-06-15  Eric Blake  <ebb9@byu.net>
32936
32937         memchr, memchr2: add valgrind exception
32938         * lib/memchr.valgrind: New file.
32939         * lib/memchr2.valgrind: New file.
32940         * modules/memchr (Files): Distribute valgrind file.
32941         * modules/memchr2 (Files): Likewise.
32942
32943         docs: memchr is no longer obsolete
32944         * MODULES.html.sh: Move memchr from obsolete to string.h section.
32945         * lib/string.in.h (memchr): Simplify logic.
32946
32947 2009-06-14  Jim Meyering  <meyering@redhat.com>
32948
32949         link-follow: fix the "checking..." message to not mention trailing slash
32950         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
32951         never considered trailing slashes.
32952
32953 2009-06-14  Bruno Haible  <bruno@clisp.org>
32954
32955         * m4/memchr.m4: Mention also the bug on IA-64.
32956         * doc/posix-functions/memchr.texi: Likewise.
32957
32958 2009-06-12  Eric Blake  <ebb9@byu.net>
32959
32960         memchr: detect broken x86_64 and alpha implementations
32961         * modules/memchr-tests (Depends-on): Move mmap detection...
32962         * modules/memchr (Depends-on): ...here.
32963         (configure.ac): Set indicator.
32964         * lib/string.in.h (memchr): Declare replacement.
32965         * modules/string (Makefile.am): Trigger replacement.
32966         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
32967         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
32968         bugs.
32969         * doc/posix-functions/memchr.texi (memchr): Document the bug.
32970         * modules/getpagesize (License): Relax license.
32971
32972 2009-06-11  Bruno Haible  <bruno@clisp.org>
32973
32974         * lib/idpriv.h: Add more references.
32975
32976 2009-06-08  Bruno Haible  <bruno@clisp.org>
32977
32978         Tests for module 'idpriv-droptemp'.
32979         * modules/idpriv-droptemp-tests: New file.
32980         * tests/test-idpriv-droptemp.sh: New file.
32981         * tests/test-idpriv-droptemp.su.sh: New file.
32982         * tests/test-idpriv-droptemp.c: New file.
32983
32984         New module 'idpriv-droptemp'.
32985         * lib/idpriv-droptemp.c: New file.
32986         * modules/idpriv-droptemp: New file.
32987
32988 2009-06-08  Bruno Haible  <bruno@clisp.org>
32989
32990         Tests for module 'idpriv-drop'.
32991         * modules/idpriv-drop-tests: New file.
32992         * tests/test-idpriv-drop.sh: New file.
32993         * tests/test-idpriv-drop.su.sh: New file.
32994         * tests/test-idpriv-drop.c: New file.
32995
32996         New module 'idpriv-drop'.
32997         * lib/idpriv.h: New file.
32998         * lib-idpriv-drop.c: New file.
32999         * m4/idpriv.m4: New file.
33000         * modules/idpriv-drop: New file.
33001
33002 2009-06-08  Bruno Haible  <bruno@clisp.org>
33003
33004         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
33005         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
33006         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
33007         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
33008         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
33009         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
33010         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
33011
33012 2009-06-08  Eric Blake  <ebb9@byu.net>
33013
33014         test-strstr: use memory fence, when possible
33015         * tests/test-strstr.c (main): Use memory fence, in order to be
33016         more likely to trigger Debian bug 521737.
33017         * modules/strstr-tests (Files): Pull in additional files.
33018
33019         memchr: no longer obsolete, for wider field testing
33020         * modules/memchr (Status, Notice): Delete, this module is no
33021         longer obsolete.
33022         * modules/vasnprintf (Depends-on): Add memchr.
33023
33024 2009-06-07  Jim Meyering  <meyering@redhat.com>
33025
33026         hash: declare some functions with the warn_unused_result attribute
33027         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
33028
33029 2009-06-07  Bruno Haible  <bruno@clisp.org>
33030
33031         * tests/test-alignof.c: Don't test int64_t if it does not exist.
33032         Reported by Eric Blake.
33033
33034 2009-06-06  Eric Blake  <ebb9@byu.net>
33035
33036         test-alignof: fix typo with long double
33037         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
33038         compiler error.
33039
33040 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
33041
33042         Escape non-texinfo { and }s.
33043         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
33044         markup error.
33045
33046 2009-06-04  Jim Meyering  <meyering@redhat.com>
33047
33048         gitlog-to-changelog: don't infloop on an empty commit log
33049         * build-aux/gitlog-to-changelog: Warn about an empty log message.
33050         Reported by Boris Petersen <transacid@centerim.org>.
33051
33052 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
33053
33054         version-etc: extend for packagers
33055         Add three new configure options, intended for packagers:
33056           --with-packager="packager name"
33057           --with-packager-version="packager-specific version"
33058           --with-packager-bug-reports="packager bug reporting"
33059         An example with coreutils:
33060           $ ./configure \
33061             --with-packager=Gentoo \
33062             --with-packager-bug-report=http://bugs.gentoo.org/ \
33063             --with-packager-version="patchset 1.6"
33064           $ ./src/ls --version | head -n2
33065           ls (GNU coreutils) 7.1-dirty
33066           Packaged by Gentoo (patchset 1.6)
33067         Note that the bug reporting info via --help doesn't show up because
33068         coreutils uses its own custom emit_bug_reporting_address() implementation
33069         in src/system.h.  If it didn't, it'd look like:
33070           $ ./src/ls --help | tail -n4
33071           Report bugs to <bug-coreutils@gnu.org>.
33072           Report Gentoo bugs to <http://bugs.gentoo.org/>.
33073           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
33074           General help using GNU software: <http://www.gnu.org/gethelp/>.
33075         * lib/version-etc.c: Print new information, if provided.
33076         * m4/version-etc.m4: New file.
33077         * modules/version-etc (Files): Add m4/version-etc.m4.
33078         (configure.ac): Add gl_VERSION_ETC.
33079
33080 2009-05-31  Bruno Haible  <bruno@clisp.org>
33081
33082         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
33083         and 'int64_t'.
33084         * modules/alignof-tests (Dependencies): Add stdint.
33085         Reported by Eric Blake.
33086
33087 2009-05-31  Bruno Haible  <bruno@clisp.org>
33088
33089         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
33090         restriction due to compiler bugs.
33091         Reported by Eric Blake.
33092
33093 2009-05-31  Simon Josefsson  <simon@josefsson.org>
33094             Bruno Haible  <bruno@clisp.org>
33095
33096         Fix test-alignof failure.
33097         * lib/alignof.h (alignof_slot): New macro.
33098         (alignof_type): New macro, with the same semantics as the previous
33099         'alignof'.
33100         (alignof): Alias to alignof_slot.
33101         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
33102         check that the results are usable as constant expressions.
33103
33104 2009-05-31  Bruno Haible  <bruno@clisp.org>
33105
33106         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
33107         * tests/test-memchr.c (main): Check that memchr does not read past the
33108         first occurrence of the byte.
33109         * tests/test-strstr.c (main): Update comment.
33110         Suggested by Eric Blake.
33111
33112 2009-05-30  Bruno Haible  <bruno@clisp.org>
33113
33114         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
33115         detail how to use dumpbin.
33116         Reported by David Byron <dbyron@dbyron.com>.
33117
33118 2009-06-02  Simon Josefsson  <simon@josefsson.org>
33119
33120         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
33121
33122 2009-06-02  Simon Josefsson  <simon@josefsson.org>
33123
33124         * m4/manywarnings.m4: Add GCC 4.4 warnings.
33125
33126 2009-05-28  Bruno Haible  <bruno@clisp.org>
33127
33128         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
33129         build-aux/ files.
33130
33131 2009-05-28  Simon Josefsson  <simon@josefsson.org>
33132
33133         * gnulib-tool (func_import): Transform license on build-aux/ files too.
33134
33135 2009-05-27  Simon Josefsson  <simon@josefsson.org>
33136
33137         * gnulib-tool (sed_transform_main_lib_file)
33138         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
33139         regexps.
33140
33141 2009-05-26  Simon Josefsson  <simon@josefsson.org>
33142
33143         * tests/test-strstr.c: Add another self-test.
33144         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
33145         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
33146
33147 2009-05-23  Bruno Haible  <bruno@clisp.org>
33148
33149         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
33150         change.
33151
33152 2009-05-21  Bruno Haible  <bruno@clisp.org>
33153
33154         Simplify use of mode_t varargs.
33155         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
33156         uses 'mode_t' or 'int'.
33157         * lib/openat.c (openat): Likewise.
33158         * lib/open-safer.c (open_safer): Likewise.
33159         * m4/mode_t.m4: New file.
33160         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
33161         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
33162         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
33163         * modules/open (Files): Add m4/mode_t.m4.
33164         * modules/openat (Files): Likewise.
33165         * modules/fcntl-safer (Files): Likewise.
33166         Suggested by Eric Blake.
33167
33168 2009-05-21  Pádraig Brady  <P@draigbrady.com>
33169
33170         * doc/glibc-functions/fallocate.texi: New file.
33171         * doc/gnulib.texi: Include it.
33172
33173 2009-05-21  Eric Blake  <ebb9@byu.net>
33174             Bruno Haible  <bruno@clisp.org>
33175
33176         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
33177         invocations.
33178         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
33179
33180 2009-05-21  Eric Blake  <ebb9@byu.net>
33181             Bruno Haible  <bruno@clisp.org>
33182
33183         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
33184         include_next. Fix of 2008-11-20 commit.
33185         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
33186         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
33187         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
33188         NEXT_MATH_H.
33189         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
33190         instead of NEXT_MATH_H.
33191
33192 2009-05-21  Bruno Haible  <bruno@clisp.org>
33193
33194         Avoid redefinition warnings for SIZE_MAX.
33195         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
33196         Reported by Simon Josefsson.
33197
33198 2009-05-21  Bruno Haible  <bruno@clisp.org>
33199
33200         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
33201         AC_CACHE_VAL.
33202
33203 2009-05-20  Bruno Haible  <bruno@clisp.org>
33204
33205         Make zeroptr.h work on mingw.
33206         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
33207         mprotect.
33208         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
33209         * modules/memchr2-tests (configure.ac): Likewise.
33210         * modules/memcmp-tests (configure.ac): Likewise.
33211         * modules/memmem-tests (configure.ac): Likewise.
33212         * modules/memrchr-tests (configure.ac): Likewise.
33213         Reported by Simon Josefsson.
33214
33215 2009-05-20  Simon Josefsson  <simon@josefsson.org>
33216
33217         * tests/test-glob.c: Include string.h for strcmp prototype.
33218
33219 2009-05-20  Simon Josefsson  <simon@josefsson.org>
33220
33221         * modules/getdelim (Depends-on): Add explicit stdint, although it
33222         was implicitly already pulled in via realloc-posix.
33223         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
33224
33225 2009-05-20  Simon Josefsson  <simon@josefsson.org>
33226
33227         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
33228         G. Christensen" <tgc@jupiterrise.com>.
33229         * m4/sys_socket_h.m4: Check for sa_family_t.
33230         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
33231         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
33232         * tests/test-sys_socket.c: Check that sa_family_t works.
33233
33234 2009-05-18  Eric Blake  <ebb9@byu.net>
33235
33236         maint.mk: allow gnulib_dir in VPATH build
33237         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
33238
33239 2009-05-15  Jim Meyering  <meyering@redhat.com>
33240
33241         maint.mk: Give gnulib_dir a default definition.
33242         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
33243         Thus, most packages no longer need to specify this variable in cfg.mk
33244
33245 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
33246
33247         rename.m4: fix typos that would make non-mingw cross-configure fail
33248         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
33249
33250 2009-05-13  Eric Blake  <ebb9@byu.net>
33251
33252         mmap-anon: avoid out-of-order autoconf expansion
33253         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
33254         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
33255         * modules/memchr-tests (Depends-on): Add extensions.
33256         * modules/memchr2-tests (Depends-on): Add extensions.
33257         * modules/memcmp-tests (Depends-on): Add extensions.
33258         * modules/memmem-tests (Depends-on): Add extensions.
33259         * modules/memrchr-tests (Depends-on): Add extensions.
33260
33261 2009-05-13  Bruno Haible  <bruno@clisp.org>
33262
33263         Make some tests ISO C 99 compliant.
33264         * tests/zerosize-ptr.h: New file.
33265         * tests/test-memchr.c: Include zerosize-ptr.h.
33266         (main): Use a zero-size object pointer instead of NULL.
33267         * tests/test-memchr2.c: Include zerosize-ptr.h.
33268         (main): Use a zero-size object pointer instead of NULL.
33269         * tests/test-memcmp.c: Include zerosize-ptr.h.
33270         (main): Use a zero-size object pointer instead of NULL.
33271         * tests/test-memmem.c: Include zerosize-ptr.h.
33272         (main): Use a zero-size object pointer instead of NULL.
33273         * tests/test-memrchr.c: Include zerosize-ptr.h.
33274         (main): Use a zero-size object pointer instead of NULL.
33275         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
33276         m4/mmap-anon.m4.
33277         (Depends-on): Add getpagesize.
33278         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
33279         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
33280         m4/mmap-anon.m4.
33281         (Depends-on): Add getpagesize.
33282         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
33283         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
33284         m4/mmap-anon.m4.
33285         (Depends-on): Add getpagesize.
33286         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
33287         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
33288         m4/mmap-anon.m4.
33289         (Depends-on): Add getpagesize.
33290         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
33291         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
33292         m4/mmap-anon.m4.
33293         (Depends-on): Add getpagesize.
33294         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
33295
33296 2009-05-12  Bruno Haible  <bruno@clisp.org>
33297
33298         Tests for module 'alignof'.
33299         * modules/alignof-tests: New file.
33300         * tests/test-alignof.c: New file.
33301
33302 2009-05-12  Bruno Haible  <bruno@clisp.org>
33303
33304         Fix alignof macro.
33305         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
33306         vendor compilers that are always correct.
33307
33308 2009-05-12  Bruno Haible  <bruno@clisp.org>
33309
33310         Make the MAP_ANONYMOUS detection work on HP-UX 11.
33311         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
33312         not whether its fully works.
33313
33314 2009-05-12  Bruno Haible  <bruno@clisp.org>
33315
33316         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
33317
33318 2009-05-12  Jim Meyering  <meyering@redhat.com>
33319
33320         * top/maint.mk: Adjust backslash alignment.
33321
33322 2009-05-11  Simon Josefsson  <simon@josefsson.org>
33323
33324         * top/maint.mk: Make $(srcdir)/build-aux configurable.
33325
33326 2009-05-11  Eric Blake  <ebb9@byu.net>
33327
33328         argp: avoid undefined behavior
33329         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
33330         macros.
33331
33332 2009-05-08  Simon Josefsson  <simon@josefsson.org>
33333
33334         * tests/test-vc-list-files-git.sh: Do git config of user.email and
33335         user.name to prevent git commit from complaining.
33336
33337 2009-05-10  Bruno Haible  <bruno@clisp.org>
33338
33339         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
33340         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
33341         it rewrites every file name only once.
33342         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
33343
33344 2009-05-08  Bruno Haible  <bruno@clisp.org>
33345
33346         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
33347         instead of 'max'.
33348
33349 2009-05-08  Simon Josefsson  <simon@josefsson.org>
33350
33351         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
33352         sockaddr_storage test.
33353
33354 2009-05-07  Simon Josefsson  <simon@josefsson.org>
33355
33356         * modules/sys_socket (Makefile.am): Substitute
33357         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
33358         * m4/sys_socket_h.m4: Check for sockaddr_storage.
33359         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
33360         * tests/test-sys_socket.c: Check sockaddr_storage.
33361
33362 2009-05-08  Bruno Haible  <bruno@clisp.org>
33363
33364         New module 'alignof'.
33365         * lib/alignof.h: New file.
33366         * modules/alignof: New file.
33367
33368 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
33369             Bruno Haible  <bruno@clisp.org>
33370
33371         Fix test-file-has-acl on FreeBSD.
33372         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
33373         mask is implicitly added.
33374         * tests/test-file-has-acl.c: Include <signal.h>.
33375         (main): Terminate the test after 5 seconds.
33376         * modules/acl-tests (configure.ac): Check for alarm function.
33377
33378 2009-05-04  Bruno Haible  <bruno@clisp.org>
33379
33380         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
33381         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
33382         * modules/errno (configure.ac): Drop AC_REQUIRE.
33383         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
33384         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
33385
33386 2009-05-04  Simon Josefsson  <simon@josefsson.org>
33387
33388         * modules/glob-tests: New module.
33389         * tests/test-glob.c: Add.
33390
33391 2009-05-04  Simon Josefsson  <simon@josefsson.org>
33392
33393         * modules/fnmatch-tests: New module.
33394         * tests/test-fnmatch.c: Add.
33395
33396 2009-05-04  Eric Blake  <ebb9@byu.net>
33397
33398         maint: make the new no-submodule-changes rule VPATH-safe
33399         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
33400
33401 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
33402             Bruno Haible  <bruno@clisp.org>
33403
33404         acl: Fix infinite loop on FreeBSD.
33405         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
33406         of return value from acl_get_entry.
33407         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
33408         Likewise.
33409
33410 2009-05-03  Bruno Haible  <bruno@clisp.org>
33411
33412         * lib/acl-internal.h (acl_entries): Clarify return value.
33413         * lib/acl_entries.c (acl_entries): Likewise.
33414
33415 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
33416
33417         Bug fix in acl module.
33418         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
33419
33420 2009-05-03  Bruno Haible  <bruno@clisp.org>
33421
33422         Create gperf-generated file in the source dir, not in the build dir.
33423         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
33424         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
33425         * modules/unicase/locale-language (unicase/locale-languages.h):
33426         Likewise.
33427         * modules/unicase/special-casing (unicase/special-casing-table.h):
33428         Likewise.
33429         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
33430         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
33431         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
33432         Reported by Ralf Wildenhues.
33433
33434 2009-05-03  Bruno Haible  <bruno@clisp.org>
33435
33436         * modules/fnmatch (Description, configure.ac): Taken from
33437         fnmatch-posix.
33438         * modules/fnmatch-posix: Turn into a symbolic reference to the
33439         'fnmatch' module, and deprecate.
33440         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
33441
33442 2009-05-03  Bruno Haible  <bruno@clisp.org>
33443
33444         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
33445         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
33446         Reported by Ralf Wildenhues.
33447
33448 2009-05-04  Simon Josefsson  <simon@josefsson.org>
33449
33450         * m4/fnmatch.m4: Fix fnmatch re-define.
33451
33452 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
33453
33454         priv-set: new module and tests; adapt write-any-file
33455         * lib/priv-set.c: New file.
33456         * lib/priv-set.h: New file.
33457         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
33458         * lib/write-any-file.c: Simplify by using priv-set module.
33459         * m4/priv-set.m4: New file.
33460         * modules/priv-set: New file.
33461         * modules/unlinkdir: Add dependency on priv-set module.
33462         * modules/write-any-file: Likewise.
33463
33464         Tests for module 'priv-set'.
33465         * modules/priv-set-tests: New file.
33466         * tests/test-priv-set.c: New file.
33467
33468 2009-05-03  Jim Meyering  <meyering@redhat.com>
33469             Bruno Haible  <bruno@clisp.org>
33470
33471         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
33472         use the converted UTF-8 variant of the name instead.
33473
33474 2009-05-03  Jim Meyering  <meyering@redhat.com>
33475
33476         tests: tighten some getdate tests
33477         * tests/test-getdate.c (main): Tighten tests: require equality,
33478         not just greater than.  Set TZ envvar to UTC0.
33479
33480 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
33481
33482         getdate: correctly interpret "next monday" when run on a Monday
33483         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
33484         that e.g., "next tues" (when run on a tuesday) results in a date
33485         that is one week in the future, and not today's date.
33486         I.e., add a week when the wday is the same as the current one.
33487         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
33488         and earlier by Martin Bernreuther and Jan Minář.
33489         * tests/test-getdate.c (main): Check that "next DAY" is always in
33490         the future and that "last DAY" is always in the past.
33491
33492 2009-05-02  Jim Meyering  <meyering@redhat.com>
33493
33494         build: ensure that a release build fails when a submodule is unclean
33495         * top/maint.mk (no-submodule-changes): New rule.
33496         (alpha beta major): Depend on it.
33497
33498 2009-05-02  Bruno Haible  <bruno@clisp.org>
33499
33500         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
33501         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
33502         shell variable gl_fnmatch_required to detect which variant is
33503         requested.
33504         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
33505         gl_FUNC_FNMATCH_POSIX.
33506         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
33507         exclude fnmatch-posix.
33508
33509 2009-05-02  Bruno Haible  <bruno@clisp.org>
33510
33511         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
33512         * modules/mbsrtowcs (License): Change to LGPLv2+.
33513         * modules/strnlen1 (License): Likewise.
33514         Reported by Simon Josefsson.
33515
33516 2009-05-02  Bruno Haible  <bruno@clisp.org>
33517
33518         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
33519         "cross".
33520         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
33521         gnulib-tool was called with option --source-base=lib.
33522
33523 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33524
33525         Use automake *-local hooks without commands, for extensibility.
33526         * modules/localcharset (Makefile.am): Rename install-exec-local
33527         rule to install-exec-localcharset, and make it a prerequisite of
33528         install-exec-local.  Likewise, rename the uninstall-local rule to
33529         uninstall-localcharset, and make it a prerequisite of the former.
33530
33531 2009-05-01  Bruno Haible  <bruno@clisp.org>
33532
33533         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
33534         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
33535         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
33536         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
33537         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
33538         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
33539         m4/locale-zh.m4, m4/codeset.m4.
33540
33541         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
33542         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
33543         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
33544         m4/locale-zh.m4.
33545
33546         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
33547         REPLACE_WCRTOMB if mbstate_t must be replaced.
33548         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
33549         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
33550
33551 2009-05-01  Bruno Haible  <bruno@clisp.org>
33552
33553         Avoid compiler warnings when redefining macros defined by <libintl.h>.
33554         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
33555         dngettext, dcngettext, textdomain, bindtextdomain,
33556         bind_textdomain_codeset): Undefine before redefining.
33557
33558 2009-04-30  Bruno Haible  <bruno@clisp.org>
33559
33560         Fix bug introduced on 2009-04-25.
33561         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
33562         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
33563         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
33564         is defined.
33565         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
33566         is defined.
33567         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
33568         is defined.
33569         Reported by Elbert_Pol <elbert.pol@gmail.com>.
33570
33571 2009-04-28  Bruno Haible  <bruno@clisp.org>
33572
33573         Comment tweaks.
33574         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
33575         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
33576         * lib/unicase.h (u*_casexfrm): Likewise.
33577         Reported by Paolo Bonzini.
33578
33579 2009-04-28  Bruno Haible  <bruno@clisp.org>
33580
33581         Fix a compilation error.
33582         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
33583         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
33584         Reported by Jim Meyering.
33585
33586 2009-04-27  Bruno Haible  <bruno@clisp.org>
33587
33588         New module 'libunistring'.
33589         * modules/libunistring: New file.
33590         * m4/libunistring.m4: New file.
33591         * MODULES.html.sh (Unicode string functions): Add it.
33592
33593 2009-04-27  Eric Blake  <ebb9@byu.net>
33594
33595         maint.mk: allow package-specific header to provide <config.h>
33596         * top/maint.mk (sc_require_config_h): New variable.
33597         (sc_require_config_h, sc_require_config_h_first): Use it.
33598
33599 2009-04-27  Simon Josefsson  <simon@josefsson.org>
33600
33601         * top/maint.mk (sc_avoid_if_before_free): Except
33602         useless-if-before-free script.
33603
33604 2009-04-27  Eric Blake  <ebb9@byu.net>
33605
33606         maintainer-makefile: depend on all required helper scripts
33607         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
33608         useless-if-before-free.
33609         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
33610         version, rather than assuming gnulib checkout is available.
33611         Reported by Simen Josefsson.
33612
33613 2009-04-26  Bruno Haible  <bruno@clisp.org>
33614
33615         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
33616         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
33617         "../" or "..".
33618
33619 2009-04-26  Bruno Haible  <bruno@clisp.org>
33620
33621         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
33622         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
33623         AC_LIB_HAVE_LINKFLAGS.
33624
33625 2009-04-26  Bruno Haible  <bruno@clisp.org>
33626
33627         Simplify calling convention of u*_conv_from_encoding.
33628         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
33629         u32_conv_from_encoding): Expect a resultbuf argument and return the
33630         result directly as a pointer.
33631         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
33632         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
33633         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
33634         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
33635         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
33636         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
33637         Update.
33638         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
33639         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
33640         * lib/vasnprintf.c (VASNPRINTF): Update.
33641         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
33642         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
33643         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
33644         * NEWS: Mention the change.
33645
33646 2009-04-26  Bruno Haible  <bruno@clisp.org>
33647
33648         Simplify calling convention of u*_conv_to_encoding.
33649         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
33650         u32_conv_to_encoding): Expect a resultbuf argument and return the
33651         result directly as a pointer.
33652         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
33653         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
33654         freeing scaled_offsets if mem_iconveha failed.
33655         * lib/unicase/u-casexfrm.h (FUNC): Update.
33656         * lib/uninorm/u-normxfrm.h (FUNC): Update.
33657         * lib/vasnprintf.c (VASNPRINTF): Update.
33658         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
33659         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
33660         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
33661         * NEWS: Mention the change.
33662
33663 2009-04-26  Bruno Haible  <bruno@clisp.org>
33664
33665         Avoid test failures on AIX and OSF/1.
33666         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
33667         malloc(0).
33668         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
33669         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
33670         Likewise.
33671         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
33672         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
33673         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
33674         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
33675         * doc/posix-functions/malloc.texi: Document the portability problem
33676         related to malloc(0).
33677
33678 2009-04-26  Bruno Haible  <bruno@clisp.org>
33679
33680         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
33681         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
33682         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
33683
33684 2009-04-25  Bruno Haible  <bruno@clisp.org>
33685
33686         Avoid link error when creating a namespace clean library.
33687         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
33688         as macro with arguments if already defined as an alias.
33689         * lib/signbitf.c (gl_signbitf): Don't undefine.
33690         * lib/signbitd.c (gl_signbitd): Don't undefine.
33691         * lib/signbitl.c (gl_signbitl): Don't undefine.
33692
33693 2009-04-25  Jim Meyering  <meyering@redhat.com>
33694
33695         vc-list-files: fix another quoting bug
33696         * build-aux/vc-list-files: Avoid sed backslash expansion
33697         of pathological directory names.
33698
33699 2009-04-25  Eric Blake  <ebb9@byu.net>
33700
33701         vc-list-files: fix shell quoting error
33702         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
33703         timestamp.
33704
33705 2009-04-25  Jim Meyering  <meyering@redhat.com>
33706
33707         vc-list-files: restore lost functionality with subdir argument
33708         * build-aux/vc-list-files: When given a non-"." sub-directory
33709         argument, substitute the $dir/ prefix back onto each resulting name.
33710         Otherwise, coreutils' root_tests check would fail.
33711
33712 2009-04-24  Eric Blake  <ebb9@byu.net>
33713
33714         vc-list-files: ignore git symlinks
33715         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
33716         than ls-files, to ignore git symlinks.
33717
33718         maint.mk: import improvements from m4
33719         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
33720         (move_if_change): Delete unused macro.
33721         (news-date-check, vc-diff-check): Support VPATH builds.
33722         (announcement): Likewise.  Split --bootstrap-tools list...
33723         (boostrap-tools): ...into separate list, which can be overridden
33724         in cfg.mk.
33725         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
33726         requiring dependency on useless-if-before-free module.
33727         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
33728         Support VPATH builds.
33729
33730 2009-04-24  Jim Meyering  <meyering@redhat.com>
33731
33732         maint.mk: remove coreutils-specific rules and variables
33733         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
33734         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
33735         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
33736
33737         maint.mk: remove obsolete rule
33738         * top/maint.mk (rel-check): Remove rule.
33739         (WGET, WGETFLAGS): Remove now-unused variables.
33740
33741 2009-04-24  Simon Josefsson  <simon@josefsson.org>
33742
33743         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
33744         consistency.
33745
33746         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
33747         '$(PATH_SEPARATOR)' instead of ':'.
33748
33749 2009-04-24  Simon Josefsson  <simon@josefsson.org>
33750
33751         * lib/getopt1.c (main): Use 'const' for static array.
33752
33753 2009-04-24  Simon Josefsson  <simon@josefsson.org>
33754
33755         * top/maint.mk: Sync with coreutils.
33756         * NEWS: Explain incompatibilities.
33757
33758 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33759             Bruno Haible  <bruno@clisp.org>
33760
33761         Fix cross-compilation results.
33762         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
33763         statement, as third argument of AC_TRY_RUN.
33764         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
33765         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
33766         Likewise.
33767         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
33768         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
33769         Likewise.
33770         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
33771         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
33772         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
33773
33774 2009-04-20  Bruno Haible  <bruno@clisp.org>
33775
33776         Avoid test failure on mingw.
33777         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
33778
33779 2009-04-20  Bruno Haible  <bruno@clisp.org>
33780
33781         Avoid compilation error on mingw.
33782         * modules/localename-tests (Depends-on): Add locale.
33783
33784 2009-04-19  Bruno Haible  <bruno@clisp.org>
33785
33786         Support for building a shared library on Windows platforms.
33787         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
33788         (main): Test the presence of UNINORM_NFC here.
33789         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
33790         (main): Test the presence of UNINORM_NFD here.
33791         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
33792         (main): Test the presence of UNINORM_NFKC here.
33793         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
33794         (main): Test the presence of UNINORM_NFKD here.
33795
33796 2009-04-19  Bruno Haible  <bruno@clisp.org>
33797
33798         Avoid a compiler warning.
33799         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
33800         Change type of variable 'sequence'.
33801
33802 2009-04-19  Bruno Haible  <bruno@clisp.org>
33803
33804         * modules/configmake (Makefile.am): When the contents of configmake.h
33805         does not change, arrange to preserve its modification time.
33806
33807 2009-04-17  Simon Josefsson  <simon@josefsson.org>
33808
33809         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
33810         gettext domain.
33811
33812 2009-04-16  Jim Meyering  <meyering@redhat.com>
33813
33814         useless-if-before-free: improve conversion code
33815         * build-aux/useless-if-before-free: Adjust code-in-comment to match
33816         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
33817
33818 2009-04-14  Bruno Haible  <bruno@clisp.org>
33819
33820         * modules/fcntl (Depends-on): Add extensions.
33821         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
33822
33823 2009-04-12  Ben Pfaff  <blp@gnu.org>
33824
33825         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
33826         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
33827
33828 2009-03-20  Ben Pfaff  <blp@gnu.org>
33829
33830         Make rename replace existing destinations on Windows.
33831         * m4/rename.m4: Add test for Mingw.
33832         * lib/rename.c: Add rename replacement that uses MoveFileEx with
33833         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
33834         * doc/posix-functions/rename.texi: Document.
33835
33836 2009-04-10  Bruno Haible  <bruno@clisp.org>
33837
33838         New include file "iconveh.h".
33839         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
33840         * lib/striconveh.h: Include it.
33841         (enum iconv_ilseq_handler): Remove definition.
33842         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
33843         striconveh.h.
33844         * lib/striconveha.c: Include striconveh.h.
33845         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
33846         * modules/striconveh (Files): Add lib/iconveh.h.
33847         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
33848         lib/striconveh.h.
33849
33850 2009-04-10  Bruno Haible  <bruno@clisp.org>
33851
33852         * lib/uniconv.h: Update comment.
33853
33854 2009-04-10  Bruno Haible  <bruno@clisp.org>
33855
33856         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
33857         always.
33858         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
33859         * lib/unistr/u16-mbtouc-aux.c: Likewise.
33860         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
33861         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
33862         "unistring-notinline.h", so that the function gets defined always.
33863         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
33864         * lib/unistr/u8-uctomb.c: Likewise.
33865         * lib/unistr/u16-mbtouc.c: Likewise.
33866         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
33867         * lib/unistr/u16-uctomb.c: Likewise.
33868         * lib/unistr/u32-mbtouc.c: Likewise.
33869         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
33870         * lib/unistr/u32-uctomb.c: Likewise.
33871
33872 2009-04-10  Bruno Haible  <bruno@clisp.org>
33873
33874         Mark 'utime' obsolete.
33875         * modules/utime (Status, Notice): New sections.
33876         Suggested by Jim Meyering.
33877
33878         Fix cross-compile guess for utime test.
33879         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
33880         autoconf.
33881         * doc/posix-functions/utime.texi: Give more precisions.
33882         Reported by Jan <ipif@ymail.com>.
33883
33884 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
33885
33886         filevercmp: correct today's change
33887         * lib/filevercmp.c: Also handle coreutils' test inputs.
33888         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
33889
33890         Fix regression in 'filevercmp' module. Thanks Sven Joachim
33891         for reporting it.
33892         * lib/filevercmp.c: Special handle for "", "." and "..".
33893         * tests/test-filevercmp.c: Enlarge the set suite.
33894
33895 2009-04-07  Jim Meyering  <meyering@redhat.com>
33896
33897         useless-if-before-free: show how to remove braced useless free, too
33898         * build-aux/useless-if-before-free: still only in a comment, though.
33899
33900 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
33901
33902         maint.mk: import changes to syntax-check macros from coreutils
33903         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
33904         Use them in the relevant macros.
33905
33906 2009-04-06  Bruno Haible  <bruno@clisp.org>
33907
33908         Fix unportable use of bit-fields.
33909         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
33910         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
33911         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
33912
33913 2009-04-06  Bruno Haible  <bruno@clisp.org>
33914
33915         Avoid test failures on AIX and OSF/1.
33916         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
33917         that malloc(0) = NULL.
33918         * tests/unicase/test-u8-tolower.c (check): Likewise.
33919         * tests/unicase/test-u8-totitle.c (check): Likewise.
33920         * tests/unicase/test-u8-toupper.c (check): Likewise.
33921         * tests/unicase/test-u16-casefold.c (check): Likewise.
33922         * tests/unicase/test-u16-tolower.c (check): Likewise.
33923         * tests/unicase/test-u16-totitle.c (check): Likewise.
33924         * tests/unicase/test-u16-toupper.c (check): Likewise.
33925         * tests/unicase/test-u32-casefold.c (check): Likewise.
33926         * tests/unicase/test-u32-tolower.c (check): Likewise.
33927         * tests/unicase/test-u32-totitle.c (check): Likewise.
33928         * tests/unicase/test-u32-toupper.c (check): Likewise.
33929         * tests/uninorm/test-u8-nfc.c (check): Likewise.
33930         * tests/uninorm/test-u8-nfd.c (check): Likewise.
33931         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
33932         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
33933         * tests/uninorm/test-u16-nfc.c (check): Likewise.
33934         * tests/uninorm/test-u16-nfd.c (check): Likewise.
33935         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
33936         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
33937         * tests/uninorm/test-u32-nfc.c (check): Likewise.
33938         * tests/uninorm/test-u32-nfd.c (check): Likewise.
33939         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
33940         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
33941
33942 2009-04-05  Bruno Haible  <bruno@clisp.org>
33943
33944         Work around an autoconf limitation.
33945         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
33946         comment line if it would be longer than 3 KB.
33947
33948 2009-04-05  Bruno Haible  <bruno@clisp.org>
33949
33950         Avoid test failure with libiconv-1.13.
33951         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
33952         of the expected test results.
33953
33954 2009-04-05  Bruno Haible  <bruno@clisp.org>
33955
33956         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
33957         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
33958         that it should be installed.
33959
33960 2009-04-05  Bruno Haible  <bruno@clisp.org>
33961
33962         * gnulib-tool: New option --copy-file.
33963         (func_usage): Document it.
33964         (func_dest_tmpfilename): Moved out of func_import.
33965         (func_add_file, func_update_file): New functions, extracted from
33966         func_import.
33967         (func_import): Update.
33968
33969 2009-04-05  Karl Berry  <karl@gnu.org>
33970
33971         * README: prominently mention gnulib-tool.
33972         Rearrange sections so getting the code is near the top.
33973
33974 2009-04-05  Bruno Haible  <bruno@clisp.org>
33975
33976         * lib/unicase.h: Mention u*_cmp2.
33977         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
33978         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
33979         * lib/unicase/ulc-casecmp.c: Likewise.
33980         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
33981         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
33982         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
33983         unistr/u8-cmp.
33984         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
33985         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
33986         unistr/u16-cmp.
33987         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
33988         unistr/u32-cmp.
33989
33990         * lib/uninorm.h: Mention u*_cmp2.
33991         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
33992         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
33993         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
33994         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
33995         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
33996         unistr/u8-cmp.
33997         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
33998         unistr/u16-cmp.
33999         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
34000         unistr/u32-cmp.
34001
34002         New module 'unistr/u32-cmp2'.
34003         * lib/unistr/u32-cmp2.c: New file.
34004         * modules/unistr/u32-cmp2: New file.
34005
34006         New module 'unistr/u16-cmp2'.
34007         * lib/unistr/u16-cmp2.c: New file.
34008         * modules/unistr/u16-cmp2: New file.
34009
34010         New module 'unistr/u8-cmp2'.
34011         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
34012         * lib/unistr/u8-cmp2.c: New file.
34013         * lib/unistr/u-cmp2.h: New file.
34014         * modules/unistr/u8-cmp2: New file.
34015
34016 2009-04-05  Bruno Haible  <bruno@clisp.org>
34017
34018         * lib/unictype.h (uc_property_is_valid): New macro.
34019         * tests/unictype/test-pr_byname.c (main): Use it.
34020
34021         * lib/unistr.h: Doc fixes.
34022         * lib/uniconv.h: Doc fixes.
34023         * lib/unictype.h: Doc fixes.
34024
34025 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
34026
34027         Port coreutils 7.2 to Solaris 8.
34028
34029         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
34030         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
34031         for Solaris 8.  This is a bit of a hack, as it means it's the
34032         caller's responsibility to add -lnsl if needed, but most likely it
34033         won't be needed since only getaddrinfo uses this and getaddrinfo
34034         isn't needed on Solaris 8.
34035
34036         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
34037         problem to Solaris 8 encountered with coreutils 7.2, which
34038         resulted in a message "fnmatch.c:292: warning: passing argument 4
34039         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
34040         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
34041
34042 2009-04-03  Simon Josefsson  <simon@josefsson.org>
34043
34044         * m4/ld-version-script.m4: Add FIXME comment.
34045
34046 2009-04-02  Simon Josefsson  <simon@josefsson.org>
34047
34048         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
34049         SOVERSION variable.
34050
34051 2009-04-02  Bruno Haible  <bruno@clisp.org>
34052
34053         * Makefile (info, html, dvi, pdf): Combine the rules.
34054         Suggested by Jim Meyering.
34055
34056 2009-04-01  Bruno Haible  <bruno@clisp.org>
34057
34058         * Makefile (info, html, dvi, pdf): New targets.
34059         Reported by Reuben Thomas <rrt@sc3d.org>.
34060
34061 2009-04-01  Bruno Haible  <bruno@clisp.org>
34062
34063         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
34064         can be put into PATH.
34065         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
34066
34067 2009-04-01  Bruno Haible  <bruno@clisp.org>
34068
34069         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
34070
34071 2009-04-01  Bruno Haible  <bruno@clisp.org>
34072
34073         Rename module 'visibility'.
34074         * modules/lib-symbol-visibility: Renamed from modules/visibility.
34075         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
34076         * doc/gnulib.texi: Update.
34077         * MODULES.html.sh (Misc): Update.
34078         * NEWS: Mention the change.
34079
34080 2009-04-01  Simon Josefsson  <simon@josefsson.org>
34081
34082         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
34083         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
34084         Eric Blake <ebb9@byu.net> for review.
34085         * MODULES.html.sh: Add lib-msvc-compat.
34086         * doc/gnulib.texi: Link to new section.
34087         * m4/ld-output-def.m4: New file.
34088         * doc/ld-output-def.texi: New file.
34089
34090 2009-04-01  Simon Josefsson  <simon@josefsson.org>
34091
34092         Rename ld-version-script to lib-symbol-versions.  Suggested by
34093         Bruno Haible <bruno@clisp.org>.
34094         * modules/ld-version-script: Renamed to lib-symbol-versions.
34095         * doc/ld-version-script.texi: Fix module name.
34096         * MODULES.html.sh: Add lib-symbol-versions.
34097
34098 2009-03-31  Simon Josefsson  <simon@josefsson.org>
34099
34100         * modules/u64-tests: New file.
34101         * tests/test-u64.c: New file.
34102
34103 2009-03-04  Simon Josefsson  <simon@josefsson.org>
34104
34105         * MODULES.html.sh: Mention u64.
34106         * modules/u64: New module.
34107         * modules/crypto/sha512: Depend on u64 module instead of providing
34108         u64.h.
34109
34110 2009-03-27  Eric Blake  <ebb9@byu.net>
34111
34112         test-strerror: make debugging EAI_SYSTEM easier
34113         * modules/getaddrinfo-tests (Depends-on): Add strerror.
34114         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
34115         failure was EAI_SYSTEM.
34116
34117 2009-03-25  Bruno Haible  <bruno@clisp.org>
34118
34119         Fix a problem with --enable-relocatable on Solaris 7.
34120         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
34121         since 2008-02-24.
34122
34123 2009-03-25  Eric Blake  <ebb9@byu.net>
34124
34125         test-sockets: avoid gcc warning
34126         * tests/test-sockets.c (main): Silence compiler warning.
34127
34128 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
34129
34130         New modules nproc, pthread, contributed by Glen Lenker.
34131
34132         * MODULES.html.sh: Add pthread, nproc.
34133         * lib/nproc.c: New file.
34134         * lib/nproc.h: New file.
34135         * lib/pthread.in.h: New file.
34136         * m4/pthread.m4: New file.
34137         * modules/nproc: New file.
34138         * modules/pthread: New file.
34139
34140 2009-03-24  Simon Josefsson  <simon@josefsson.org>
34141
34142         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
34143         New variable.
34144
34145 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
34146
34147         filevercmp: handle simple~ and numbered.~3~ backup suffixes
34148         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
34149         * tests/test-filevercmp.c: Add tests for backup suffixes.
34150
34151 2009-03-24  Simon Josefsson  <simon@josefsson.org>
34152
34153         * modules/stdlib (Depends-on): Add stdint, needed when defining
34154         struct random_data on, for example, HP-UX 10.20.  Reported by
34155         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
34156
34157 2009-03-24  Simon Josefsson  <simon@josefsson.org>
34158
34159         * lib/readline.c (readline): Call fflush on stdout after printing
34160         prompt.
34161
34162 2009-03-20  Bruno Haible  <bruno@clisp.org>
34163
34164         Remove dependency from 'close' module to -lws2_32 on native Windows.
34165         * lib/close-hook.h: New file.
34166         * lib/close-hook.c: New file.
34167         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
34168         w32sock.h.
34169         (_gl_close_fd_maybe_socket): Remove function.
34170         (rpl_close): Invoke execute_all_close_hooks instead of
34171         _gl_close_fd_maybe_socket.
34172         * lib/sockets.c: Include close-hook.h, w32sock.h.
34173         (close_fd_maybe_socket): New function, essentially from lib/close.c.
34174         (close_sockets_hook): New variable.
34175         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
34176         (gl_sockets_cleanup): Unregister it.
34177         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
34178         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
34179         * modules/close-hook: New file.
34180         * modules/close (Files): Remove lib/w32sock.h.
34181         (Depends-on): Add close-hook.
34182         (Link): Remove section.
34183         * modules/sockets (Files): Add lib/w32sock.h.
34184         (Depends-on): Add close-hook.
34185         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
34186         invocation.
34187         * NEWS: Mention that LIB_CLOSE is gone.
34188
34189 2009-03-23  Eric Blake  <ebb9@byu.net>
34190
34191         signal-tests: test previous patch
34192         * tests/test-signal.c: New file.
34193         * modules/signal-tests: Likewise.
34194
34195         signal.h: always support 'volatile sig_atomic_t'
34196         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
34197         (gl_SIGNAL_H_DEFAULTS): Add a default.
34198         * modules/signal (Makefile.am): Substitute if needed.
34199         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
34200         users can blindly add volatile.
34201         * doc/posix-headers/signal.texi (signal.h): Document it.
34202         Reported by Matthew Woehlke.
34203
34204 2009-03-23  Jim Meyering  <meyering@redhat.com>
34205
34206         pathmax: PATH_MAX: use pathconf only when available
34207         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
34208         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
34209         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
34210         This avoids a link failure in a PSP cross-compilation environment
34211         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
34212
34213         * lib/vasnprintf.c (divide): Fix typo in comment.
34214
34215 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34216
34217         * gnulib-tool (func_filter_filelist): Fix comment.
34218
34219 2009-03-20  Bruno Haible  <bruno@clisp.org>
34220
34221         Make sockets.h self-contained.
34222         * lib/sockets.c: Include sockets.h first.
34223         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
34224
34225 2009-03-19  Eric Blake  <ebb9@byu.net>
34226
34227         doc: mention more functions added in cygwin 1.7.0
34228         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
34229         addition.
34230         * doc/posix-functions/log2f.texi: Likewise.
34231
34232 2009-03-19  Jim Meyering  <meyering@redhat.com>
34233
34234         fsusage: avoid syntax error due to statement-before-declaration
34235         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
34236         after all declarations.  Reported by Matthew Woehlke in
34237         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
34238
34239 2009-03-18  Eric Blake  <ebb9@byu.net>
34240
34241         build-aux/compile: sync from automake
34242         * build-aux/compile: New file, from automake.
34243         * config/srclist.txt: Mention build-aux/compile.
34244
34245 2009-03-17  Bruno Haible  <bruno@clisp.org>
34246
34247         * lib/git-merge-changelog.c: Fix typo in comment.
34248         Reported by Reuben Thomas <rrt@sc3d.org>.
34249
34250 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
34251
34252         * m4/regex.m4: update and improve help for
34253         --without-included-regex.
34254
34255 2009-03-17  Simon Josefsson  <simon@josefsson.org>
34256
34257         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
34258         failure on missing include files.
34259
34260 2009-03-17  Eric Blake  <ebb9@byu.net>
34261
34262         doc: mention more functions added in cygwin 1.7.0
34263         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
34264         addition.
34265         * doc/posix-functions/fwscanf.texi: Likewise.
34266         * doc/posix-functions/swprintf.texi: Likewise.
34267         * doc/posix-functions/swscanf.texi: Likewise.
34268         * doc/posix-functions/vfwprintf.texi: Likewise.
34269         * doc/posix-functions/vfwscanf.texi: Likewise.
34270         * doc/posix-functions/vswprintf.texi: Likewise.
34271         * doc/posix-functions/vswscanf.texi: Likewise.
34272         * doc/posix-functions/vwprintf.texi: Likewise.
34273         * doc/posix-functions/vwscanf.texi: Likewise.
34274         * doc/posix-functions/wcscasecmp.texi: Likewise.
34275         * doc/posix-functions/wcsdup.texi: Likewise.
34276         * doc/posix-functions/wcsftime.texi: Likewise.
34277         * doc/posix-functions/wcsncasecmp.texi: Likewise.
34278         * doc/posix-functions/wprintf.texi: Likewise.
34279         * doc/posix-functions/wscanf.texi: Likewise.
34280         * doc/glibc-functions/gethostbyname2.texi: Likewise.
34281
34282 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34283
34284         maint.mk: really add $(AM_MAKEFLAGS)
34285         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
34286         was inadvertently omitted in the last commit.
34287         Spotted by Bruno Haible.
34288
34289         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
34290         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
34291         $(AM_MAKEFLAGS)' rather than plain `make'.
34292
34293         gnulib-tool: execute $MAKE not make
34294         * gnulib-tool: Default $MAKE to 'make'.
34295         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
34296         than make.  Initialize $MAKE in the do-autobuild script.
34297
34298         gnulib-tool: use $MAKE not make in generated files
34299         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
34300         make, in generated files.  Initialize $MAKE in the do-autobuild
34301         script.
34302
34303         * top/GNUmakefile (_have-git-version-gen): Fix typo.
34304
34305         GNUmakefile: disable parallelism only for multiple, recursive targets
34306         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
34307         additions in the Makefile.
34308         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
34309         by Automake.
34310         (.NOTPARALLEL): Only disable parallel builds if multiple targets
34311         are listed on the command line and at least one of them is
34312         listed in $(ALL_RECURSIVE_TARGETS).
34313
34314 2009-03-14  Bruno Haible  <bruno@clisp.org>
34315
34316         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
34317         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
34318         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
34319         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
34320         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
34321         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
34322         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
34323         unistr/u8-uctomb.
34324         * modules/unistr/u8-strchr (Depends-on): Likewise.
34325         * modules/unistr/u8-strrchr (Depends-on): Likewise.
34326         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
34327         unistr/u16-uctomb.
34328         * modules/unistr/u16-strchr (Depends-on): Likewise.
34329         * modules/unistr/u16-strrchr (Depends-on): Likewise.
34330
34331 2009-03-12  Bruno Haible  <bruno@clisp.org>
34332
34333         Work around select() bug on Interix 3.5.
34334         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
34335         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
34336         * m4/select.m4: New file.
34337         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
34338         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
34339         * modules/select (Files): Add m4/select.m4.
34340         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
34341         * modules/nanosleep (Depends-on): Add select.
34342         * modules/poll (Depends-on): Likewise.
34343         * doc/posix-functions/select.texi: Mention the Interix bug.
34344         Reported by Markus Duft <mduft@gentoo.org>.
34345
34346         * lib/select.c: Renamed from lib/winsock-select.c.
34347         * modules/select (Files): Add lib/select.c, remove
34348         lib/winsock-select.c.
34349         (configure.ac): Update.
34350
34351 2009-03-12  Jim Meyering  <meyering@redhat.com>
34352
34353         avoid gcc warnings about unused macro definitions
34354         * lib/readtokens.c (STREQ): Remove unused definition.
34355         * lib/xmalloc.c (SIZE_MAX): Likewise.
34356         * lib/openat-die.c (N_): Likewise.
34357         * lib/mountlist.c (SIZE_MAX): Remove definition.
34358         Instead, include <stdint.h>.
34359         * lib/readutmp.c: Likewise.
34360         * modules/readutmp (Depends-on): Add stdint.
34361         * modules/mountlist (Depends-on): Add stdint.
34362         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
34363
34364 2009-03-10  Bruno Haible  <bruno@clisp.org>
34365
34366         Tests for module 'mbmemcasecoll'.
34367         * modules/mbmemcasecoll-tests: New file.
34368         * tests/test-mbmemcasecoll1.sh: New file.
34369         * tests/test-mbmemcasecoll2.sh: New file.
34370         * tests/test-mbmemcasecoll3.sh: New file.
34371         * tests/test-mbmemcasecoll.c: New file.
34372
34373         New module 'mbmemcasecoll'.
34374         * lib/mbmemcasecoll.h: New file.
34375         * lib/mbmemcasecoll.c: New file.
34376         * modules/mbmemcasecoll: New file.
34377
34378         * tests/test-mbmemcasecmp.h: New file, extracted from
34379         tests/test-mbmemcasecmp.c.
34380         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
34381         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
34382         (main): Update.
34383         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
34384
34385 2009-03-09  Bruno Haible  <bruno@clisp.org>
34386
34387         Tests for module 'mbmemcasecmp'.
34388         * modules/mbmemcasecmp-tests: New file.
34389         * tests/test-mbmemcasecmp1.sh: New file.
34390         * tests/test-mbmemcasecmp2.sh: New file.
34391         * tests/test-mbmemcasecmp3.sh: New file.
34392         * tests/test-mbmemcasecmp.c: New file.
34393
34394         New module 'mbmemcasecmp'.
34395         * lib/mbmemcasecmp.h: New file.
34396         * lib/mbmemcasecmp.c: New file.
34397         * modules/mbmemcasecmp: New file.
34398
34399 2009-03-09  Bruno Haible  <bruno@clisp.org>
34400
34401         Tests for module 'unicase/ulc-casecoll'.
34402         * modules/unicase/ulc-casecoll-tests: New file.
34403         * tests/unicase/test-ulc-casecoll1.sh: New file.
34404         * tests/unicase/test-ulc-casecoll2.sh: New file.
34405         * tests/unicase/test-ulc-casecoll.c: New file.
34406
34407         New module 'unicase/ulc-casecoll'.
34408         * lib/unicase.h (ulc_casecoll): New declaration.
34409         * lib/unicase/ulc-casecoll.c: New file.
34410         * modules/unicase/ulc-casecoll: New file.
34411
34412         New module 'unicase/ulc-casexfrm'.
34413         * lib/unicase.h (ulc_casexfrm): New declaration.
34414         * lib/unicase/ulc-casexfrm.c: New file.
34415         * modules/unicase/ulc-casexfrm: New file.
34416
34417 2009-03-09  Bruno Haible  <bruno@clisp.org>
34418
34419         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
34420         invocations.
34421
34422         * m4/mbscasecmp.m4: Remove file.
34423         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
34424         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
34425
34426         * m4/mbscasestr.m4: Remove file.
34427         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
34428         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
34429
34430         * m4/mbschr.m4: Remove file.
34431         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
34432         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
34433
34434         * m4/mbscspn.m4: Remove file.
34435         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
34436         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
34437
34438         * m4/mbslen.m4: Remove file.
34439         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
34440         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
34441
34442         * m4/mbsncasecmp.m4: Remove file.
34443         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
34444         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
34445
34446         * m4/mbsnlen.m4: Remove file.
34447         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
34448         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
34449
34450         * m4/mbspbrk.m4: Remove file.
34451         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
34452         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
34453
34454         * m4/mbspcasecmp.m4: Remove file.
34455         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
34456         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
34457
34458         * m4/mbsrchr.m4: Remove file.
34459         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
34460         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
34461
34462         * m4/mbssep.m4: Remove file.
34463         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
34464         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
34465
34466         * m4/mbsspn.m4: Remove file.
34467         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
34468         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
34469
34470         * m4/mbsstr.m4: Remove file.
34471         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
34472         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
34473
34474         * m4/mbstok_r.m4: Remove file.
34475         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
34476         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
34477
34478         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
34479
34480         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
34481         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
34482
34483         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
34484
34485 2009-03-08  Bruno Haible  <bruno@clisp.org>
34486
34487         Tests for module 'unicase/ulc-casecmp'.
34488         * modules/unicase/ulc-casecmp-tests: New file.
34489         * tests/unicase/test-ulc-casecmp1.sh: New file.
34490         * tests/unicase/test-ulc-casecmp2.sh: New file.
34491         * tests/unicase/test-ulc-casecmp.c: New file.
34492
34493         New module 'unicase/ulc-casecmp'.
34494         * lib/unicase.h (ulc_casecmp): New declaration.
34495         * lib/unicase/ulc-casecmp.c: New file.
34496         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
34497         'const SRC_UNIT *'.
34498         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
34499         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
34500         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
34501         * modules/unicase/ulc-casecmp: New file.
34502
34503         Tests for module 'unicase/u32-is-cased'.
34504         * modules/unicase/u32-is-cased-tests: New file.
34505         * tests/unicase/test-u32-is-cased.c: New file.
34506
34507         Tests for module 'unicase/u16-is-cased'.
34508         * modules/unicase/u16-is-cased-tests: New file.
34509         * tests/unicase/test-u16-is-cased.c: New file.
34510
34511         Tests for module 'unicase/u8-is-cased'.
34512         * modules/unicase/u8-is-cased-tests: New file.
34513         * tests/unicase/test-u8-is-cased.c: New file.
34514         * tests/unicase/test-is-cased.h: New file.
34515
34516         New module 'unicase/u32-is-cased'.
34517         * lib/unicase/u32-is-cased.c: New file.
34518         * modules/unicase/u32-is-cased: New file.
34519
34520         New module 'unicase/u16-is-cased'.
34521         * lib/unicase/u16-is-cased.c: New file.
34522         * modules/unicase/u16-is-cased: New file.
34523
34524         New module 'unicase/u8-is-cased'.
34525         * lib/unicase/u8-is-cased.c: New file.
34526         * lib/unicase/u-is-cased.h: New file.
34527         * modules/unicase/u8-is-cased: New file.
34528
34529         Tests for module 'unicase/u32-is-casefolded'.
34530         * modules/unicase/u32-is-casefolded-tests: New file.
34531         * tests/unicase/test-u32-is-casefolded.c: New file.
34532
34533         Tests for module 'unicase/u16-is-casefolded'.
34534         * modules/unicase/u16-is-casefolded-tests: New file.
34535         * tests/unicase/test-u16-is-casefolded.c: New file.
34536
34537         Tests for module 'unicase/u8-is-casefolded'.
34538         * modules/unicase/u8-is-casefolded-tests: New file.
34539         * tests/unicase/test-u8-is-casefolded.c: New file.
34540         * tests/unicase/test-is-casefolded.h: New file.
34541
34542         New module 'unicase/u32-is-casefolded'.
34543         * lib/unicase/u32-is-casefolded.c: New file.
34544         * modules/unicase/u32-is-casefolded: New file.
34545
34546         New module 'unicase/u16-is-casefolded'.
34547         * lib/unicase/u16-is-casefolded.c: New file.
34548         * modules/unicase/u16-is-casefolded: New file.
34549
34550         New module 'unicase/u8-is-casefolded'.
34551         * lib/unicase/u8-is-casefolded.c: New file.
34552         * modules/unicase/u8-is-casefolded: New file.
34553
34554         Tests for module 'unicase/u32-is-titlecase'.
34555         * modules/unicase/u32-is-titlecase-tests: New file.
34556         * tests/unicase/test-u32-is-titlecase.c: New file.
34557
34558         Tests for module 'unicase/u16-is-titlecase'.
34559         * modules/unicase/u16-is-titlecase-tests: New file.
34560         * tests/unicase/test-u16-is-titlecase.c: New file.
34561
34562         Tests for module 'unicase/u8-is-titlecase'.
34563         * modules/unicase/u8-is-titlecase-tests: New file.
34564         * tests/unicase/test-u8-is-titlecase.c: New file.
34565         * tests/unicase/test-is-titlecase.h: New file.
34566
34567         New module 'unicase/u32-is-titlecase'.
34568         * lib/unicase/u32-is-titlecase.c: New file.
34569         * modules/unicase/u32-is-titlecase: New file.
34570
34571         New module 'unicase/u16-is-titlecase'.
34572         * lib/unicase/u16-is-titlecase.c: New file.
34573         * modules/unicase/u16-is-titlecase: New file.
34574
34575         New module 'unicase/u8-is-titlecase'.
34576         * lib/unicase/u8-is-titlecase.c: New file.
34577         * modules/unicase/u8-is-titlecase: New file.
34578
34579         Tests for module 'unicase/u32-is-lowercase'.
34580         * modules/unicase/u32-is-lowercase-tests: New file.
34581         * tests/unicase/test-u32-is-lowercase.c: New file.
34582
34583         Tests for module 'unicase/u16-is-lowercase'.
34584         * modules/unicase/u16-is-lowercase-tests: New file.
34585         * tests/unicase/test-u16-is-lowercase.c: New file.
34586
34587         Tests for module 'unicase/u8-is-lowercase'.
34588         * modules/unicase/u8-is-lowercase-tests: New file.
34589         * tests/unicase/test-u8-is-lowercase.c: New file.
34590         * tests/unicase/test-is-lowercase.h: New file.
34591
34592         New module 'unicase/u32-is-lowercase'.
34593         * lib/unicase/u32-is-lowercase.c: New file.
34594         * modules/unicase/u32-is-lowercase: New file.
34595
34596         New module 'unicase/u16-is-lowercase'.
34597         * lib/unicase/u16-is-lowercase.c: New file.
34598         * modules/unicase/u16-is-lowercase: New file.
34599
34600         New module 'unicase/u8-is-lowercase'.
34601         * lib/unicase/u8-is-lowercase.c: New file.
34602         * modules/unicase/u8-is-lowercase: New file.
34603
34604         Tests for module 'unicase/u32-is-uppercase'.
34605         * modules/unicase/u32-is-uppercase-tests: New file.
34606         * tests/unicase/test-u32-is-uppercase.c: New file.
34607
34608         Tests for module 'unicase/u16-is-uppercase'.
34609         * modules/unicase/u16-is-uppercase-tests: New file.
34610         * tests/unicase/test-u16-is-uppercase.c: New file.
34611
34612         Tests for module 'unicase/u8-is-uppercase'.
34613         * modules/unicase/u8-is-uppercase-tests: New file.
34614         * tests/unicase/test-u8-is-uppercase.c: New file.
34615         * tests/unicase/test-is-uppercase.h: New file.
34616
34617         New module 'unicase/u32-is-uppercase'.
34618         * lib/unicase/u32-is-uppercase.c: New file.
34619         * modules/unicase/u32-is-uppercase: New file.
34620
34621         New module 'unicase/u16-is-uppercase'.
34622         * lib/unicase/u16-is-uppercase.c: New file.
34623         * modules/unicase/u16-is-uppercase: New file.
34624
34625         New module 'unicase/u8-is-uppercase'.
34626         * lib/unicase/u8-is-uppercase.c: New file.
34627         * modules/unicase/u8-is-uppercase: New file.
34628
34629         New module 'unicase/u32-is-invariant'.
34630         * lib/unicase/u32-is-invariant.c: New file.
34631         * modules/unicase/u32-is-invariant: New file.
34632
34633         New module 'unicase/u16-is-invariant'.
34634         * lib/unicase/u16-is-invariant.c: New file.
34635         * modules/unicase/u16-is-invariant: New file.
34636
34637         New module 'unicase/u8-is-invariant'.
34638         * lib/unicase/u8-is-invariant.c: New file.
34639         * lib/unicase/invariant.h: New file.
34640         * lib/unicase/u-is-invariant.h: New file.
34641         * modules/unicase/u8-is-invariant: New file.
34642
34643         Tests for module 'unicase/u32-casecoll'.
34644         * modules/unicase/u32-casecoll-tests: New file.
34645         * tests/unicase/test-u32-casecoll.c: New file.
34646
34647         Tests for module 'unicase/u16-casecoll'.
34648         * modules/unicase/u16-casecoll-tests: New file.
34649         * tests/unicase/test-u16-casecoll.c: New file.
34650
34651         Tests for module 'unicase/u8-casecoll'.
34652         * modules/unicase/u8-casecoll-tests: New file.
34653         * tests/unicase/test-u8-casecoll.c: New file.
34654
34655         New module 'unicase/u32-casecoll'.
34656         * lib/unicase/u32-casecoll.c: New file.
34657         * modules/unicase/u32-casecoll: New file.
34658
34659         New module 'unicase/u16-casecoll'.
34660         * lib/unicase/u16-casecoll.c: New file.
34661         * modules/unicase/u16-casecoll: New file.
34662
34663         New module 'unicase/u8-casecoll'.
34664         * lib/unicase/u8-casecoll.c: New file.
34665         * lib/unicase/u-casecoll.h: New file.
34666         * modules/unicase/u8-casecoll: New file.
34667
34668         New module 'unicase/u32-casexfrm'.
34669         * lib/unicase/u32-casexfrm.c: New file.
34670         * modules/unicase/u32-casexfrm: New file.
34671
34672         New module 'unicase/u16-casexfrm'.
34673         * lib/unicase/u16-casexfrm.c: New file.
34674         * modules/unicase/u16-casexfrm: New file.
34675
34676         New module 'unicase/u8-casexfrm'.
34677         * lib/unicase/u8-casexfrm.c: New file.
34678         * lib/unicase/u-casexfrm.h: New file.
34679         * modules/unicase/u8-casexfrm: New file.
34680
34681         Tests for module 'unicase/u32-casecmp'.
34682         * modules/unicase/u32-casecmp-tests: New file.
34683         * tests/unicase/test-u32-casecmp.c: New file.
34684
34685         Tests for module 'unicase/u16-casecmp'.
34686         * modules/unicase/u16-casecmp-tests: New file.
34687         * tests/unicase/test-u16-casecmp.c: New file.
34688
34689         Tests for module 'unicase/u8-casecmp'.
34690         * modules/unicase/u8-casecmp-tests: New file.
34691         * tests/unicase/test-u8-casecmp.c: New file.
34692         * tests/unicase/test-casecmp.h: New file.
34693
34694         New module 'unicase/u32-casecmp'.
34695         * lib/unicase/u32-casecmp.c: New file.
34696         * modules/unicase/u32-casecmp: New file.
34697
34698         New module 'unicase/u16-casecmp'.
34699         * lib/unicase/u16-casecmp.c: New file.
34700         * modules/unicase/u16-casecmp: New file.
34701
34702         New module 'unicase/u8-casecmp'.
34703         * lib/unicase/u8-casecmp.c: New file.
34704         * lib/unicase/u-casecmp.h: New file.
34705         * modules/unicase/u8-casecmp: New file.
34706
34707         Tests for module 'unicase/u32-casefold'.
34708         * modules/unicase/u32-casefold-tests: New file.
34709         * tests/unicase/test-u32-casefold.c: New file.
34710
34711         Tests for module 'unicase/u16-casefold'.
34712         * modules/unicase/u16-casefold-tests: New file.
34713         * tests/unicase/test-u16-casefold.c: New file.
34714
34715         Tests for module 'unicase/u8-casefold'.
34716         * modules/unicase/u8-casefold-tests: New file.
34717         * tests/unicase/test-u8-casefold.c: New file.
34718
34719         New module 'unicase/u32-casefold'.
34720         * lib/unicase/u32-casefold.c: New file.
34721         * modules/unicase/u32-casefold: New file.
34722
34723         New module 'unicase/u16-casefold'.
34724         * lib/unicase/u16-casefold.c: New file.
34725         * modules/unicase/u16-casefold: New file.
34726
34727         New module 'unicase/u8-casefold'.
34728         * lib/unicase/u8-casefold.c: New file.
34729         * lib/unicase/u-casefold.h: New file.
34730         * modules/unicase/u8-casefold: New file.
34731
34732         New module 'unicase/tocasefold'.
34733         * lib/unicase/casefold.h: New file.
34734         * lib/unicase/tocasefold.c: New file.
34735         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
34736         * modules/unicase/tocasefold: New file.
34737
34738         Tests for module 'unicase/u32-totitle'.
34739         * modules/unicase/u32-totitle-tests: New file.
34740         * tests/unicase/test-u32-totitle.c: New file.
34741
34742         Tests for module 'unicase/u16-totitle'.
34743         * modules/unicase/u16-totitle-tests: New file.
34744         * tests/unicase/test-u16-totitle.c: New file.
34745
34746         Tests for module 'unicase/u8-totitle'.
34747         * modules/unicase/u8-totitle-tests: New file.
34748         * tests/unicase/test-u8-totitle.c: New file.
34749
34750         New module 'unicase/u32-totitle'.
34751         * lib/unicase/u32-totitle.c: New file.
34752         * modules/unicase/u32-totitle: New file.
34753
34754         New module 'unicase/u16-totitle'.
34755         * lib/unicase/u16-totitle.c: New file.
34756         * modules/unicase/u16-totitle: New file.
34757
34758         New module 'unicase/u8-totitle'.
34759         * lib/unicase/u8-totitle.c: New file.
34760         * lib/unicase/u-totitle.h: New file.
34761         * modules/unicase/u8-totitle: New file.
34762
34763         Tests for module 'unicase/u32-tolower'.
34764         * modules/unicase/u32-tolower-tests: New file.
34765         * tests/unicase/test-u32-tolower.c: New file.
34766
34767         Tests for module 'unicase/u16-tolower'.
34768         * modules/unicase/u16-tolower-tests: New file.
34769         * tests/unicase/test-u16-tolower.c: New file.
34770
34771         Tests for module 'unicase/u8-tolower'.
34772         * modules/unicase/u8-tolower-tests: New file.
34773         * tests/unicase/test-u8-tolower.c: New file.
34774
34775         New module 'unicase/u32-tolower'.
34776         * lib/unicase/u32-tolower.c: New file.
34777         * modules/unicase/u32-tolower: New file.
34778
34779         New module 'unicase/u16-tolower'.
34780         * lib/unicase/u16-tolower.c: New file.
34781         * modules/unicase/u16-tolower: New file.
34782
34783         New module 'unicase/u8-tolower'.
34784         * lib/unicase/u8-tolower.c: New file.
34785         * modules/unicase/u8-tolower: New file.
34786
34787         Tests for module 'unicase/u32-toupper'.
34788         * modules/unicase/u32-toupper-tests: New file.
34789         * tests/unicase/test-u32-toupper.c: New file.
34790
34791         Tests for module 'unicase/u16-toupper'.
34792         * modules/unicase/u16-toupper-tests: New file.
34793         * tests/unicase/test-u16-toupper.c: New file.
34794
34795         Tests for module 'unicase/u8-toupper'.
34796         * modules/unicase/u8-toupper-tests: New file.
34797         * tests/unicase/test-u8-toupper.c: New file.
34798
34799         New module 'unicase/u32-toupper'.
34800         * lib/unicase/u32-toupper.c: New file.
34801         * modules/unicase/u32-toupper: New file.
34802
34803         New module 'unicase/u16-toupper'.
34804         * lib/unicase/u16-toupper.c: New file.
34805         * modules/unicase/u16-toupper: New file.
34806
34807         New module 'unicase/u8-toupper'.
34808         * lib/unicase/u8-toupper.c: New file.
34809         * modules/unicase/u8-toupper: New file.
34810
34811         New module 'unicase/u32-casemap'.
34812         * lib/unicase/u32-casemap.c: New file.
34813         * modules/unicase/u32-casemap: New file.
34814
34815         New module 'unicase/u16-casemap'.
34816         * lib/unicase/u16-casemap.c: New file.
34817         * modules/unicase/u16-casemap: New file.
34818
34819         New module 'unicase/u8-casemap'.
34820         * lib/unicase/unicasemap.h: New file.
34821         * lib/unicase/u8-casemap.c: New file.
34822         * lib/unicase/u-casemap.h: New file.
34823         * modules/unicase/u8-casemap: New file.
34824
34825         New module 'unicase/special-casing'.
34826         * lib/unicase/special-casing.h: New file.
34827         * lib/unicase/special-casing.c: New file.
34828         * lib/unicase/special-casing-table.gperf: New file, generated by
34829         gen-uni-tables.c.
34830         * modules/unicase/special-casing: New file.
34831
34832         Tests for module 'unicase/locale-language'.
34833         * modules/unicase/locale-language-tests: New file.
34834         * tests/unicase/test-locale-language.sh: New file.
34835         * tests/unicase/test-locale-language.c: New file.
34836
34837         New module 'unicase/locale-language'.
34838         * lib/unicase/locale-language.c: New file.
34839         * lib/unicase/locale-languages.gperf: New file.
34840         * modules/unicase/locale-language: New file.
34841
34842         Generate more tables for case conversion and case folding.
34843         * lib/gen-uni-tables.c (SCC_*): New enum items.
34844         (struct special_casing_rule): New type.
34845         (casing_rules, num_casing_rules, allocated_casing_rules): New
34846         variables.
34847         (add_casing_rule, fill_casing_rules): New functions.
34848         (struct casefold_rule): New type.
34849         (casefolding_rules, num_casefolding_rules,
34850         allocated_casefolding_rules): New variables.
34851         (fill_casefolding_rules): New function.
34852         (unicode_casefold): New variable.
34853         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
34854         sort_casing_rules, output_casing_rules): New functions.
34855         (main): Accept to more arguments: SpecialCasing.txt and
34856         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
34857         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
34858         Output mapping for casefolding.
34859
34860         * lib/unicase.h: Include stdbool.h, uninorm.h.
34861         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
34862         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
34863         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
34864         arguments.
34865         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
34866         resultp arguments.
34867         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
34868         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
34869         resultp arguments.
34870         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
34871         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
34872         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
34873         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
34874         declarations.
34875         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
34876
34877 2009-03-08  Bruno Haible  <bruno@clisp.org>
34878
34879         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
34880         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
34881         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
34882         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
34883
34884 2009-03-07  Bruno Haible  <bruno@clisp.org>
34885
34886         Adjust u*_normcmp, u*_normcoll API.
34887         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
34888         u16_normcoll, u32_normcoll): Change failure conventions.
34889         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
34890         errno and return -1.
34891         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
34892
34893 2009-03-07  Bruno Haible  <bruno@clisp.org>
34894
34895         Tests for module 'uninorm/u32-normcoll'.
34896         * modules/uninorm/u32-normcoll-tests: New file.
34897         * tests/uninorm/test-u32-normcoll.c: New file.
34898
34899         Tests for module 'uninorm/u16-normcoll'.
34900         * modules/uninorm/u16-normcoll-tests: New file.
34901         * tests/uninorm/test-u16-normcoll.c: New file.
34902
34903         Tests for module 'uninorm/u8-normcoll'.
34904         * modules/uninorm/u8-normcoll-tests: New file.
34905         * tests/uninorm/test-u8-normcoll.c: New file.
34906
34907 2009-03-07  Bruno Haible  <bruno@clisp.org>
34908
34909         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
34910         tests/uninorm/test-u32-normcmp.c.
34911         * tests/uninorm/test-u32-normcmp.c: Include it.
34912         (test_nonascii): New function, extracted from main. Add some more
34913         tests.
34914         (main): Invoke test_ascii and test_nonascii.
34915         * modules/uninorm/u32-normcmp-tests (Files): Add
34916         tests/uninorm/test-u32-normcmp.h.
34917         (Depends-on): Remove uninorm/u32-normcmp.
34918
34919         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
34920         tests/uninorm/test-u16-normcmp.c.
34921         * tests/uninorm/test-u16-normcmp.c: Include it.
34922         (test_nonascii): New function, extracted from main. Add some more
34923         tests.
34924         (main): Invoke test_ascii and test_nonascii.
34925         * modules/uninorm/u16-normcmp-tests (Files): Add
34926         tests/uninorm/test-u16-normcmp.h.
34927         (Depends-on): Remove uninorm/u16-normcmp.
34928
34929         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
34930         tests/uninorm/test-u8-normcmp.c.
34931         * tests/uninorm/test-u8-normcmp.c: Include it.
34932         (test_nonascii): New function, extracted from main. Add some more
34933         tests.
34934         (main): Invoke test_ascii and test_nonascii.
34935         * modules/uninorm/u8-normcmp-tests (Files): Add
34936         tests/uninorm/test-u8-normcmp.h.
34937         (Depends-on): Remove uninorm/u8-normcmp.
34938
34939 2009-03-07  Bruno Haible  <bruno@clisp.org>
34940
34941         New module 'uninorm/u32-normcoll'.
34942         * lib/uninorm/u32-normcoll.c: New file.
34943         * modules/uninorm/u32-normcoll: New file.
34944
34945         New module 'uninorm/u16-normcoll'.
34946         * lib/uninorm/u16-normcoll.c: New file.
34947         * modules/uninorm/u16-normcoll: New file.
34948
34949         New module 'uninorm/u8-normcoll'.
34950         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
34951         declarations.
34952         * lib/uninorm/u8-normcoll.c: New file.
34953         * lib/uninorm/u-normcoll.h: New file.
34954         * modules/uninorm/u8-normcoll: New file.
34955
34956         New module 'uninorm/u32-normxfrm'.
34957         * lib/uninorm/u32-normxfrm.c: New file.
34958         * modules/uninorm/u32-normxfrm: New file.
34959
34960         New module 'uninorm/u16-normxfrm'.
34961         * lib/uninorm/u16-normxfrm.c: New file.
34962         * modules/uninorm/u16-normxfrm: New file.
34963
34964         New module 'uninorm/u8-normxfrm'.
34965         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
34966         declarations.
34967         * lib/uninorm/u8-normxfrm.c: New file.
34968         * lib/uninorm/u-normxfrm.h: New file.
34969         * modules/uninorm/u8-normxfrm: New file.
34970
34971 2009-03-07  Bruno Haible  <bruno@clisp.org>
34972
34973         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
34974         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
34975         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
34976
34977 2009-03-07  Bruno Haible  <bruno@clisp.org>
34978
34979         New module 'memxfrm'.
34980         * lib/memxfrm.h: New file.
34981         * lib/memxfrm.c: New file.
34982         * modules/memxfrm: New file.
34983
34984 2009-03-07  Bruno Haible  <bruno@clisp.org>
34985
34986         New module 'memcmp2'.
34987         * lib/memcmp2.h: New file.
34988         * lib/memcmp2.c: New file.
34989         * modules/memcmp2: New file.
34990
34991 2009-03-07  Bruno Haible  <bruno@clisp.org>
34992
34993         Tests for module 'uninorm/decomposing-form'.
34994         * modules/uninorm/decomposing-form-tests: New file.
34995         * tests/uninorm/test-decomposing-form.c: New file.
34996
34997         New module 'uninorm/decomposing-form'.
34998         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
34999         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
35000         Add 'decomposing_variant' field.
35001         * lib/uninorm/decomposing-form.c: New file.
35002         * lib/uninorm/nfc.c (uninorm_nfc): Update.
35003         * lib/uninorm/nfd.c (uninorm_nfd): Update.
35004         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
35005         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
35006         * modules/uninorm/decomposing-form: New file.
35007         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
35008         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
35009
35010 2009-03-07  Bruno Haible  <bruno@clisp.org>
35011
35012         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
35013         strings.
35014
35015 2009-03-06  Bruno Haible  <bruno@clisp.org>
35016
35017         Tests for module 'uninorm/u32-normcmp'.
35018         * tests/uninorm/test-u32-normcmp.c: New file.
35019         * modules/uninorm/u32-normcmp-tests: New file.
35020
35021         Tests for module 'uninorm/u16-normcmp'.
35022         * tests/uninorm/test-u16-normcmp.c: New file.
35023         * modules/uninorm/u16-normcmp-tests: New file.
35024
35025         Tests for module 'uninorm/u8-normcmp'.
35026         * tests/uninorm/test-u8-normcmp.c: New file.
35027         * modules/uninorm/u8-normcmp-tests: New file.
35028
35029         New module 'uninorm/u32-normcmp'.
35030         * lib/uninorm/u32-normcmp.c: New file.
35031         * modules/uninorm/u32-normcmp: New file.
35032
35033         New module 'uninorm/u16-normcmp'.
35034         * lib/uninorm/u16-normcmp.c: New file.
35035         * modules/uninorm/u16-normcmp: New file.
35036
35037         New module 'uninorm/u8-normcmp'.
35038         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
35039         declarations.
35040         * lib/uninorm/u8-normcmp.c: New file.
35041         * lib/uninorm/u-normcmp.h: New file.
35042         * modules/uninorm/u8-normcmp: New file.
35043
35044 2009-03-06  Bruno Haible  <bruno@clisp.org>
35045
35046         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
35047         Reported by Eric Blake.
35048
35049 2009-03-06  Eric Blake  <ebb9@byu.net>
35050             Bruno Haible  <bruno@clisp.org>
35051
35052         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
35053         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
35054         condition.
35055         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
35056         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
35057         condition.
35058         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
35059
35060 2009-03-06  Eric Blake  <ebb9@byu.net>
35061
35062         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
35063         to avoid compiler warnings.
35064         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
35065
35066 2009-03-05  Bruno Haible  <bruno@clisp.org>
35067
35068         * tests/test-ftell.c (main): Disable test beyond end of file on
35069         FreeMiNT.
35070         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
35071
35072 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
35073
35074         * lib/filevercmp.c: Move hidden files up in ordering.
35075         * tests/test-filevercmp.c: Add tests for hidden files.
35076
35077 2009-03-04  Bruno Haible  <bruno@clisp.org>
35078
35079         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
35080         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
35081         AM_CFLAGS.
35082         Reported by Simon Josefsson.
35083
35084 2009-03-03  Bruno Haible  <bruno@clisp.org>
35085
35086         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
35087         Reported by Simon Josefsson.
35088
35089         * doc/ld-version-script.texi: Update node reference.
35090
35091 2009-03-03  Bruno Haible  <bruno@clisp.org>
35092
35093         * modules/visibility (License): Change to 'unlimited'.
35094         Suggested by Simon Josefsson.
35095
35096 2009-03-03  Jim Meyering  <meyering@redhat.com>
35097
35098         unlinkdir: cannot_unlink_dir may modify process state
35099         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
35100         it's neither thread-safe nor appropriate for use in a library.
35101
35102 2009-03-03  Eric Blake  <ebb9@byu.net>
35103
35104         test-closein: silence test under Darwin
35105         * tests/test-closein.sh: Ignore stderr from cat, since we don't
35106         care if it dies from EPIPE or EBADF.
35107
35108 2009-03-03  Bruno Haible  <bruno@clisp.org>
35109
35110         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
35111         earlier.
35112         * doc/visibility.texi: Fix @node and @section.
35113
35114 2009-03-03  Simon Josefsson  <simon@josefsson.org>
35115
35116         * doc/gnulib.texi: Link to sections for ld version script and
35117         visibility.
35118         * doc/visibility.texi: Add @node and @section.
35119         * modules/ld-version-script: New module.
35120         * m4/ld-version-script.m4: New file.
35121         * doc/ld-version-script.texi: New file.
35122
35123 2009-03-02  David Lutterkort  <lutter@redhat.com>
35124
35125         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
35126         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35127
35128 2009-03-02  Bruno Haible  <bruno@clisp.org>
35129
35130         * doc/visibility.texi: Mention libtool's -export-symbols option.
35131
35132 2009-03-02  Jim Meyering  <meyering@redhat.com>
35133
35134         announce-gen: new option: --no-print-checksums
35135         * build-aux/announce-gen (usage): Describe it.
35136         (print_checksums): Print a newline here, not in the [*] footnote.
35137         (main): Honor it.
35138
35139 2009-03-01  Bruno Haible  <bruno@clisp.org>
35140
35141         Use socklen_t in the native Windows replacements prototypes.
35142         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
35143         instead of 'int'.
35144         * lib/getsockopt.c (rpl_getsockopt): Likewise.
35145         * lib/setsockopt.c (rpl_setsockopt): Likewise.
35146         * modules/getsockopt (Depends-on): Add socklen.
35147         * modules/setsockopt (Depends-on): Add socklen.
35148
35149 2009-03-01  Bruno Haible  <bruno@clisp.org>
35150
35151         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
35152         least 4.2.
35153
35154 2009-03-01  Eric Blake  <ebb9@byu.net>
35155             Bruno Haible  <bruno@clisp.org>
35156
35157         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
35158         error messages.
35159         * lib/wait-process.c (wait_subprocess): Omit error message about
35160         deadly signal sent to the child of termsigp != NULL.
35161
35162 2009-03-01  Eric Blake  <ebb9@byu.net>
35163
35164         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
35165
35166 2009-03-01  Bruno Haible  <bruno@clisp.org>
35167
35168         Avoid a gcc warning.
35169         * tests/test-sched.c (b): Make global.
35170         Reported by Eric Blake.
35171
35172 2009-01-19  Martin Lambers  <marlam@marlam.de>
35173
35174         Provide POSIX semantics for socket timeout options on W32.
35175         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
35176         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
35177         * modules/setsockopt: Depend on sys_time module for struct timeval.
35178         * modules/getsockopt: Depend on sys_time module for struct timeval.
35179
35180 2009-03-01  Simon Josefsson  <simon@josefsson.org>
35181
35182         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
35183         __USE_GNU, for consistency with netdb.in.h.
35184         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
35185
35186 2009-03-01  Bruno Haible  <bruno@clisp.org>
35187
35188         More support for FreeMiNT.
35189         * lib/fseeko.c (rpl_fseeko): Complete last commit.
35190         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
35191
35192 2009-03-01  Bruno Haible  <bruno@clisp.org>
35193
35194         More support for FreeMiNT.
35195         * lib/fpurge.c (fpurge): Correct last commit.
35196         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
35197
35198 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35199
35200         Fix unportable awk script in vc-list-files.
35201         * build-aux/vc-list-files: In the replacement awk script, use
35202         substr with a second argument of 1, not zero.
35203         Report by Simon Josefsson.
35204
35205 2009-02-28  Bruno Haible  <bruno@clisp.org>
35206
35207         More support for FreeMiNT.
35208         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
35209         to FreeMiNT today.
35210         * lib/fwriting.c (fwriting): Likewise.
35211         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
35212
35213 2009-02-28  Bruno Haible  <bruno@clisp.org>
35214
35215         * tests/test-freadseek.c (main): Disable test beyond end of file on
35216         FreeMiNT.
35217         * tests/test-ftello.c (main): Likewise.
35218         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
35219
35220 2009-02-28  Bruno Haible  <bruno@clisp.org>
35221
35222         Add tentative support for FreeMiNT.
35223         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
35224         * lib/fpurge.c (fpurge): Likewise.
35225         * lib/freadable.c (freadable): Likewise.
35226         * lib/freading.c (freading): Likewise.
35227         * lib/freadptr.c (freadptr): Likewise.
35228         * lib/freadseek.c (freadptrinc): Likewise.
35229         * lib/fseeko.c (rpl_fseeko): Likewise.
35230         * lib/fseterr.c (fseterr): Likewise.
35231         * lib/fwritable.c (fwritable): Likewise.
35232         * lib/fwriting.c (fwriting): Likewise.
35233         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
35234         Hourihane.
35235         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
35236
35237 2009-02-28  Bruno Haible  <bruno@clisp.org>
35238
35239         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
35240         SIGCHLD.
35241         Reported by Jim Meyering.
35242
35243 2009-02-28  Bruno Haible  <bruno@clisp.org>
35244
35245         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
35246         Mention the results of these tests on various platforms.
35247         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
35248         order.
35249         * doc/posix-functions/printf.texi: Likewise.
35250         * doc/posix-functions/snprintf.texi: Likewise.
35251         * doc/posix-functions/sprintf.texi: Likewise.
35252         * doc/posix-functions/vfprintf.texi: Likewise.
35253         * doc/posix-functions/vprintf.texi: Likewise.
35254         * doc/posix-functions/vsnprintf.texi: Likewise.
35255         * doc/posix-functions/vsprintf.texi: Likewise.
35256         * doc/glibc-functions/obstack_printf.texi: Likewise.
35257         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
35258
35259 2009-02-28  Bruno Haible  <bruno@clisp.org>
35260
35261         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
35262         Reported by Loïc Minier <lool@dooz.org>.
35263
35264 2009-02-27  Bruno Haible  <bruno@clisp.org>
35265
35266         * gnulib-tool (func_import): Make the sed expression used to create the
35267         sed script for updating the .gitignore file POSIX compliant.
35268         Reported by Eric Blake.
35269
35270 2009-02-27  Bruno Haible  <bruno@clisp.org>
35271
35272         * gnulib-tool (sed): Don't alias as "sed --posix".
35273         Reported by Eric Blake.
35274
35275 2009-02-27  Bruno Haible  <bruno@clisp.org>
35276
35277         Avoid test link errors.
35278         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
35279         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
35280         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
35281         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
35282         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35283
35284 2009-02-27  Bruno Haible  <bruno@clisp.org>
35285
35286         Avoid spurious "(cached)" in configure output.
35287         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
35288         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
35289         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
35290         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
35291         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
35292         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
35293         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
35294         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
35295         Reported by Eric Blake.
35296
35297 2009-02-27  Eric Blake  <ebb9@byu.net>
35298
35299         printf: fix regression in previous patch
35300         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
35301
35302 2009-02-27  Bruno Haible  <bruno@clisp.org>
35303
35304         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
35305         value.
35306         * lib/stdint.in.h: Likewise.
35307         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
35308
35309 2009-02-27  Eric Blake  <ebb9@byu.net>
35310
35311         doc: mention more functions added in cygwin 1.7.0
35312         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
35313         addition.
35314         * doc/posix-functions/open_wmemstream.texi: Likewise.
35315         * doc/posix-functions/wcsnlen.texi: Likewise.
35316         * doc/posix-functions/wcsnrtombs.texi: Likewise.
35317         * doc/posix-functions/wcstod.texi: Likewise.
35318         * doc/posix-functions/wcstof.texi: Likewise.
35319         * doc/posix-functions/wcstoimax.texi: Likewise.
35320         * doc/posix-functions/wcstok.texi: Likewise.
35321         * doc/posix-functions/wcstoumax.texi: Likewise.
35322
35323         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
35324         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
35325         * doc/posix-functions/fprintf.texi: Update.
35326         * doc/posix-functions/printf.texi: Update.
35327         * doc/posix-functions/snprintf.texi: Update.
35328         * doc/posix-functions/sprintf.texi: Update.
35329         * doc/posix-functions/vfprintf.texi: Update.
35330         * doc/posix-functions/vprintf.texi: Update.
35331         * doc/posix-functions/vsnprintf.texi: Update.
35332         * doc/posix-functions/vsprintf.texi: Update.
35333         * doc/glibc-functions/obstack_printf.texi: Update.
35334         * doc/glibc-functions/obstack_vprintf.texi: Update.
35335
35336 2009-02-26  Eric Blake  <ebb9@byu.net>
35337
35338         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
35339         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
35340         compilation bug by using runtime conversion.
35341         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
35342         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
35343         * modules/ceill-tests (Files): Use nan.h.
35344         * modules/floorl-tests (Files): Likewise.
35345         * modules/frexpl-tests (Files): Likewise.
35346         * modules/isnanl-tests (Files): Likewise.
35347         * modules/ldexpl-tests (Files): Likewise.
35348         * modules/roundl-tests (Files): Likewise.
35349         * modules/truncl-tests (Files): Likewise.
35350         * tests/test-ceill.c (main): Use a working NaN.
35351         * tests/test-floorl.c (main): Likewise.
35352         * tests/test-frexpl.c (main): Likewise.
35353         * tests/test-isnan.c (test_long_double): Likewise.
35354         * tests/test-isnanl.h (main): Likewise.
35355         * tests/test-ldexpl.h (main): Likewise.
35356         * tests/test-roundl.h (main): Likewise.
35357         * tests/test-truncl.h (main): Likewise.
35358         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
35359
35360 2009-02-26  Eric Blake  <ebb9@byu.net>
35361             Bruno Haible  <bruno@clisp.org>
35362
35363         Work around a *printf bug with %ls on Solaris.
35364         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
35365         precision is specified, sprintf stops converting the wide string
35366         argument when the number of bytes that have been produced by this
35367         conversion equals or exceeds the precision.
35368         * doc/posix-functions/fprintf.texi: Update.
35369         * doc/posix-functions/printf.texi: Update.
35370         * doc/posix-functions/snprintf.texi: Update.
35371         * doc/posix-functions/sprintf.texi: Update.
35372         * doc/posix-functions/vfprintf.texi: Update.
35373         * doc/posix-functions/vprintf.texi: Update.
35374         * doc/posix-functions/vsnprintf.texi: Update.
35375         * doc/posix-functions/vsprintf.texi: Update.
35376         * doc/glibc-functions/obstack_printf.texi: Update.
35377         * doc/glibc-functions/obstack_vprintf.texi: Update.
35378
35379 2009-02-26  Eric Blake  <ebb9@byu.net>
35380
35381         stdlib: favor compiler check of random.h
35382         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
35383         to avoid an ObjC random.h installed by Swarm.
35384
35385 2009-02-26  Bruno Haible  <bruno@clisp.org>
35386
35387         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
35388         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
35389         Reported by Gary V. Vaughan <gary@gnu.org>.
35390
35391 2009-02-26  Bruno Haible  <bruno@clisp.org>
35392
35393         Fix *printf behaviour regarding the %ls directive.
35394         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
35395         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
35396         NEED_PRINTF_DIRECTIVE_LS.
35397         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
35398         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
35399         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35400         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
35401         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
35402         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
35403         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
35404         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35405         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35406         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35407         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35408         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
35409         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35410         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35411         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35412         * doc/posix-functions/fprintf.texi: Update.
35413         * doc/posix-functions/printf.texi: Update.
35414         * doc/posix-functions/snprintf.texi: Update.
35415         * doc/posix-functions/sprintf.texi: Update.
35416         * doc/posix-functions/vfprintf.texi: Update.
35417         * doc/posix-functions/vprintf.texi: Update.
35418         * doc/posix-functions/vsnprintf.texi: Update.
35419         * doc/posix-functions/vsprintf.texi: Update.
35420         * doc/glibc-functions/obstack_printf.texi: Update.
35421         * doc/glibc-functions/obstack_vprintf.texi: Update.
35422         Reported by Eric Blake.
35423
35424 2009-02-25  Bruno Haible  <bruno@clisp.org>
35425
35426         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
35427         with known value.
35428         Reported by Gary V. Vaughan <gary@gnu.org>.
35429
35430 2009-02-25  Bruno Haible  <bruno@clisp.org>
35431
35432         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
35433         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
35434         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
35435         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
35436         Reported by Gary V. Vaughan <gary@gnu.org>.
35437
35438 2009-02-25  Bruno Haible  <bruno@clisp.org>
35439
35440         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
35441         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
35442         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
35443         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
35444         Reported by Gary V. Vaughan <gary@gnu.org>.
35445
35446 2009-02-25  Eric Blake  <ebb9@byu.net>
35447
35448         tests: skip fseek/ftell tests if ungetc is broken
35449         * m4/ungetc.m4: New file.
35450         * modules/fseek-tests: Split test, so ungetc dependency is
35451         separate from rest of test.
35452         * modules/fseeko-tests: Likewise.
35453         * modules/ftell-tests: Likewise.
35454         * modules/ftello-tests: Likewise.
35455         * tests/test-fseek.c (main): Isolate ungetc dependency.
35456         * tests/test-fseeko.c (main): Likewise.
35457         * tests/test-ftell.c (main): Likewise.
35458         * tests/test-ftello.c (main): Likewise.
35459         * tests/test-fseek2.sh: New file.
35460         * tests/test-fseeko2.sh: Likewise.
35461         * tests/test-ftell2.sh: Likewise.
35462         * tests/test-ftello2.sh: Likewise.
35463
35464 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
35465
35466         test-getaddrinfo: fix usage of skip return code 77
35467         * tests/test-gettaddrinfo.c: Return skip code 77 only
35468         for first occurance of skip (4x77 is not 77)
35469
35470 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
35471
35472         strtod: avoid C99 decl-after-statement
35473         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
35474
35475 2009-02-24  Eric Blake  <ebb9@byu.net>
35476
35477         strtod: detect HP-UX 11.31 bug
35478         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
35479         Reported by Gary V. Vaughan.
35480
35481 2009-02-23  Bruno Haible  <bruno@clisp.org>
35482
35483         Fix invalid read past end of memory block.
35484         * lib/vasnprintf.c (DCHAR_SET): Define.
35485         (local_wcslen): Define only when needed.
35486         (local_strnlen, local_wcsnlen): New functions.
35487         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
35488         directives that involve a conversion ourselves.
35489         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
35490         wcsnlen, mbrtowc, wcrtomb.
35491         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
35492         * tests/test-vasprintf-posix.c (test_function): Likewise.
35493         * tests/test-snprintf-posix.h (test_function): Likewise.
35494         * tests/test-sprintf-posix.h (test_function): Likewise.
35495         Reported by Ben Pfaff <blp@cs.stanford.edu>.
35496
35497 2009-02-22  Bruno Haible  <bruno@clisp.org>
35498
35499         Implement new clarified decomposition of Hangul syllables.
35500         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
35501         of type LTV, return only a pairwise decomposition.
35502         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
35503         Likewise.
35504         * tests/uninorm/test-decomposition.c (main): Updated expected result.
35505         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
35506         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
35507
35508 2009-02-22  Bruno Haible  <bruno@clisp.org>
35509
35510         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
35511         zero-length results and shrink excess allocated memory.
35512         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
35513         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
35514         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
35515         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
35516         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
35517         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
35518         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
35519         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
35520         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
35521         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
35522         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
35523         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
35524
35525 2009-02-21  Bruno Haible  <bruno@clisp.org>
35526
35527         * doc/gnulib.texi: Include safe-alloc.texi earlier.
35528         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
35529         spaces after a period. Put a space between a macro name and its
35530         argument list. Trivial rewordings.
35531         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
35532         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
35533         (main): Return 0 explicitly.
35534
35535 2009-02-21  Bruno Haible  <bruno@clisp.org>
35536
35537         Tests for module 'uninorm/filter'.
35538         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
35539         * modules/uninorm/filter-tests: New file.
35540
35541         New module 'uninorm/filter'.
35542         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
35543         uninorm_filter_flush, uninorm_filter_free): New declarations.
35544         * lib/uninorm/uninorm-filter.c: New file.
35545         * modules/uninorm/filter: New file.
35546
35547 2009-02-21  Bruno Haible  <bruno@clisp.org>
35548
35549         Tests for module 'uninorm/nfkc'.
35550         * tests/uninorm/test-nfkc.c: New file.
35551         * tests/uninorm/test-u8-nfkc.c: New file.
35552         * tests/uninorm/test-u16-nfkc.c: New file.
35553         * tests/uninorm/test-u32-nfkc.c: New file.
35554         * tests/uninorm/test-u32-nfkc-big.sh: New file.
35555         * tests/uninorm/test-u32-nfkc-big.c: New file.
35556         * modules/uninorm/nfkc-tests: New file.
35557
35558         New module 'uninorm/nfkc'.
35559         * lib/uninorm/nfkc.c: New file.
35560         * modules/uninorm/nfkc: New file.
35561
35562         Tests for module 'uninorm/nfkd'.
35563         * tests/uninorm/test-nfkd.c: New file.
35564         * tests/uninorm/test-u8-nfkd.c: New file.
35565         * tests/uninorm/test-u16-nfkd.c: New file.
35566         * tests/uninorm/test-u32-nfkd.c: New file.
35567         * tests/uninorm/test-u32-nfkd-big.sh: New file.
35568         * tests/uninorm/test-u32-nfkd-big.c: New file.
35569         * modules/uninorm/nfkd-tests: New file.
35570
35571         New module 'uninorm/nfkd'.
35572         * lib/uninorm/nfkd.c: New file.
35573         * modules/uninorm/nfkd: New file.
35574
35575         Tests for module 'uninorm/nfc'.
35576         * tests/uninorm/test-nfc.c: New file.
35577         * tests/uninorm/test-u8-nfc.c: New file.
35578         * tests/uninorm/test-u16-nfc.c: New file.
35579         * tests/uninorm/test-u32-nfc.c: New file.
35580         * tests/uninorm/test-u32-nfc-big.sh: New file.
35581         * tests/uninorm/test-u32-nfc-big.c: New file.
35582         * modules/uninorm/nfc-tests: New file.
35583
35584         New module 'uninorm/nfc'.
35585         * lib/uninorm/nfc.c: New file.
35586         * modules/uninorm/nfc: New file.
35587
35588         Tests for module 'uninorm/nfd'.
35589         * tests/uninorm/test-nfd.c: New file.
35590         * tests/uninorm/test-u8-nfd.c: New file.
35591         * tests/uninorm/test-u16-nfd.c: New file.
35592         * tests/uninorm/test-u32-nfd.c: New file.
35593         * tests/uninorm/test-u32-nfd-big.sh: New file.
35594         * tests/uninorm/test-u32-nfd-big.c: New file.
35595         * tests/uninorm/test-u32-normalize-big.h: New file.
35596         * tests/uninorm/test-u32-normalize-big.c: New file.
35597         * tests/uninorm/NormalizationTest.txt: New file, created from
35598         Unicode 5.1.0 NormalizationTest.txt.
35599         * modules/uninorm/nfd-tests: New file.
35600
35601         New module 'uninorm/nfd'.
35602         * lib/uninorm/nfd.c: New file.
35603         * modules/uninorm/nfd: New file.
35604
35605         New module 'uninorm/u32-normalize'.
35606         * lib/uninorm/u32-normalize.c: New file.
35607         * modules/uninorm/u32-normalize: New file.
35608
35609         New module 'uninorm/u16-normalize'.
35610         * lib/uninorm/u16-normalize.c: New file.
35611         * modules/uninorm/u16-normalize: New file.
35612
35613         New module 'uninorm/u8-normalize'.
35614         * lib/uninorm/u8-normalize.c: New file.
35615         * lib/uninorm/normalize-internal.h: New file.
35616         * lib/uninorm/u-normalize-internal.h: New file.
35617         * modules/uninorm/u8-normalize: New file.
35618
35619         New module 'uninorm/decompose-internal'.
35620         * lib/uninorm/decompose-internal.c: New file.
35621         * modules/uninorm/decompose-internal: New file.
35622
35623         Tests for module 'uninorm/composition'.
35624         * tests/uninorm/test-composition.c: New file.
35625         * modules/uninorm/composition-tests: New file.
35626
35627         New module 'uninorm/composition'.
35628         * lib/uninorm/composition.c: New file.
35629         * lib/uninorm/composition-table.gperf: New file, generated by
35630         gen-uni-tables.
35631         * modules/uninorm/composition: New file.
35632
35633         Tests for module 'uninorm/compat-decomposition'.
35634         * tests/uninorm/test-compat-decomposition.c: New file.
35635         * modules/uninorm/compat-decomposition-tests: New file.
35636
35637         New module 'uninorm/compat-decomposition'.
35638         * lib/uninorm/decompose-internal.h: New file.
35639         * lib/uninorm/compat-decomposition.c: New file.
35640         * modules/uninorm/compat-decomposition: New file.
35641
35642         Tests for module 'uninorm/canonical-decomposition'.
35643         * tests/uninorm/test-canonical-decomposition.c: New file.
35644         * modules/uninorm/canonical-decomposition-tests: New file.
35645
35646         New module 'uninorm/canonical-decomposition'.
35647         * lib/uninorm/canonical-decomposition.c: New file.
35648         * modules/uninorm/canonical-decomposition: New file.
35649
35650         Tests for module 'uninorm/decomposition'.
35651         * tests/uninorm/test-decomposition.c: New file.
35652         * modules/uninorm/decomposition-tests: New file.
35653
35654         New module 'uninorm/decomposition'.
35655         * lib/uninorm/decomposition.c: New file.
35656         * modules/uninorm/decomposition: New file.
35657
35658         New module 'uninorm/decomposition-table'.
35659         * lib/uninorm/decomposition-table.h: New file.
35660         * lib/uninorm/decomposition-table.c: New file.
35661         * lib/uninorm/decomposition-table1.h: New file, generated by
35662         gen-uni-tables.
35663         * lib/uninorm/decomposition-table2.h: New file, generated by
35664         gen-uni-tables.
35665         * modules/uninorm/decomposition-table: New file.
35666
35667         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
35668         (UC_DECOMP_*): New enumeration items.
35669         (get_decomposition): New function.
35670         (struct decomp_table): New type.
35671         (output_decomposition, output_decomposition_tables): New functions.
35672         (unicode_composition_exclusions): New variable.
35673         (fill_composition_exclusions, debug_output_composition_tables): New
35674         functions.
35675         (main): Accept one more argument. Invoke fill_composition_exclusions.
35676         Output decomposition and composition tables.
35677
35678         New module 'uninorm/base'.
35679         * lib/uninorm.h: New file.
35680         * lib/unictype.h: Update comment.
35681         * modules/uninorm/base: New file.
35682
35683 2009-02-21  David Lutterkort  <lutter@redhat.com>
35684
35685         Tests for module 'safe-alloc'.
35686         * tests/test-safe-alloc.c: New file.
35687         * modules/safe-alloc-tests: New file.
35688
35689         New module 'safe-alloc'.
35690         * lib/safe-alloc.h: New file.
35691         * lib/safe-alloc.c: New file.
35692         * m4/safe-alloc.m4: New file.
35693         * modules/safe-alloc: New file.
35694         * doc/safe-alloc.texi: New file.
35695         * doc/gnulib.texi: Include it.
35696         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
35697         safe-alloc.
35698
35699 2009-02-18  Bruno Haible  <bruno@clisp.org>
35700
35701         Fix link error on non-glibc systems.
35702         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
35703         variable.
35704         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35705
35706 2009-02-18  Jim Meyering  <meyering@redhat.com>
35707
35708         fts: avoid used-uninitialized error due to recent change
35709         * lib/fts.c (fts_read): Guard uses of the new member,
35710         parent->fts_n_dirs_remaining, since it's not relevant for
35711         the parent of a directory specified on the command-line.
35712
35713 2009-02-17  James Youngman  <jay@gnu.org>
35714             Bruno Haible  <bruno@clisp.org>
35715
35716         * m4/include_next.m4: Reformulate comment.
35717
35718 2009-02-16  Jim Meyering  <meyering@redhat.com>
35719
35720         fts: add #if guards so that the fts_lgpl module still builds
35721         * lib/fts.c: Guard just-added hash-table-using parts with
35722         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
35723         Reported by Simon Josefsson.
35724
35725 2009-02-15  Bruno Haible  <bruno@clisp.org>
35726
35727         * modules/array-mergesort-tests: New file.
35728         * tests/test-array-mergesort.c: New file.
35729
35730         New module 'array-mergesort'.
35731         * modules/array-mergesort: New file.
35732         * lib/array-mergesort.h: New file.
35733
35734 2009-02-15  Bruno Haible  <bruno@clisp.org>
35735
35736         Fix 2009-02-07 commit.
35737         * lib/gen-uni-tables.c (output_predicate, output_category,
35738         output_combclass, output_bidi_category, output_decimal_digit,
35739         output_digit, output_numeric, output_mirror, output_scripts,
35740         output_ident_category, output_simple_mapping): Fix format directives.
35741         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
35742
35743 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
35744
35745         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
35746         fixes are available from IBM.
35747
35748 2009-02-13  Jim Meyering  <meyering@redhat.com>
35749
35750         fts: arrange not to stat non-directories in more cases
35751         This makes GNU find (when it doesn't need to stat each file)
35752         *much* more efficient at traversing reiserfs file systems.
35753         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
35754         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
35755         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
35756         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
35757         (leaf_optimization_applies): New function.
35758         (LCO_hash, LCO_compare): New helper functions.
35759         (link_count_optimize_ok): New function.
35760         (fts_stat): Initialize new member (if dir).
35761         (fts_read): Decrement parent's fts_n_dirs_remaining count if
35762         we've just stat'ed a directory.  Skip the stat call when possible.
35763         ---
35764         Note this AFS-related exchange:
35765         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
35766         and note find's pioctl call in find/fstype.c.
35767         But that is necessary only if you want to enable the
35768         optimization for AFS, and for now, I don't.
35769
35770         fts: move a function definition "up" (no semantic change)
35771         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
35772         "up" to precede upcoming use of a related function.
35773
35774 2009-02-11  Jim Meyering  <meyering@redhat.com>
35775
35776         fts: correct internal computation of nlinks (optimization-related)
35777         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
35778         whether the current entry is a directory, so don't test it.
35779
35780 2009-02-10  Bruno Haible  <bruno@clisp.org>
35781
35782         Tests for module 'uniwbrk/ulc-wordbreaks'.
35783         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
35784         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
35785         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
35786
35787         Tests for module 'uniwbrk/u32-wordbreaks'.
35788         * modules/uniwbrk/u32-wordbreaks-tests: New file.
35789         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
35790
35791         Tests for module 'uniwbrk/u16-wordbreaks'.
35792         * modules/uniwbrk/u16-wordbreaks-tests: New file.
35793         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
35794
35795         Tests for module 'uniwbrk/u8-wordbreaks'.
35796         * modules/uniwbrk/u8-wordbreaks-tests: New file.
35797         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
35798
35799 2009-02-10  Bruno Haible  <bruno@clisp.org>
35800
35801         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
35802         property.
35803         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
35804         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
35805         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
35806
35807 2009-02-10  Simon Josefsson  <simon@josefsson.org>
35808
35809         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
35810         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
35811
35812 2009-02-10  Bruno Haible  <bruno@clisp.org>
35813
35814         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
35815         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
35816         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
35817         * lib/unilbrk/u8-possible-linebreaks.c: Update.
35818         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
35819         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
35820
35821 2009-02-09  Simon Josefsson  <simon@josefsson.org>
35822
35823         * lib/sockets.h (gl_fd_to_handle): New function.
35824
35825         * tests/test-sockets.c: Call gl_fd_to_handle.
35826
35827 2009-02-09  Bruno Haible  <bruno@clisp.org>
35828
35829         * doc/havelib.texi: Document the conventions on bi-arch systems.
35830
35831 2009-02-08  Bruno Haible  <bruno@clisp.org>
35832
35833         Document the AC_LIB_LINKFLAGS macro.
35834         * doc/havelib.texi: New file, mostly written on 2005-05-24.
35835         * doc/gnulib.texi: Include it.
35836
35837 2009-02-08  Bruno Haible  <bruno@clisp.org>
35838
35839         Fix wrong order of sections, compared to TOC.
35840         * doc/gnulib.texi: Include relocatable-maint.texi after the
35841         "Regular expressions" node, not before.
35842
35843 2009-02-08  Bruno Haible  <bruno@clisp.org>
35844
35845         Tests for module 'unicase/totitle'.
35846         * modules/unicase/totitle-tests: New file.
35847
35848         Tests for module 'unicase/tolower'.
35849         * modules/unicase/tolower-tests: New file.
35850
35851         Tests for module 'unicase/toupper'.
35852         * modules/unicase/toupper-tests: New file.
35853         * tests/unicase/test-mapping-part1.h: New file.
35854         * tests/unicase/test-mapping-part2.h: New file.
35855
35856         New module 'unicase/totitle'.
35857         * modules/unicase/totitle: New file.
35858         * lib/unicase/totitle.c: New file.
35859
35860         New module 'unicase/tolower'.
35861         * modules/unicase/tolower: New file.
35862         * lib/unicase/tolower.c: New file.
35863
35864         New module 'unicase/toupper'.
35865         * modules/unicase/toupper: New file.
35866         * lib/unicase/toupper.c: New file.
35867         * lib/unicase/simple-mapping.h: New file.
35868
35869         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
35870         (mapping_table): New structure.
35871         (output_simple_mapping): New function.
35872         (main): Invoke output_simple_mapping_test and output_simple_mapping.
35873         * modules/gen-uni-tables (Description): Update.
35874         * lib/unicase/toupper.h: New file, automatically generated by
35875         gen-uni-tables.
35876         * lib/unicase/tolower.h: New file, automatically generated by
35877         gen-uni-tables.
35878         * lib/unicase/totitle.h: New file, automatically generated by
35879         gen-uni-tables.
35880         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
35881         gen-uni-tables.
35882         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
35883         gen-uni-tables.
35884         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
35885         gen-uni-tables.
35886
35887         New module 'unicase/base'.
35888         * modules/unicase/base: New file.
35889         * lib/unicase.h: New file.
35890
35891 2009-02-08  Bruno Haible  <bruno@clisp.org>
35892
35893         New module 'uniwbrk/ulc-wordbreaks'.
35894         * modules/uniwbrk/ulc-wordbreaks: New file.
35895         * lib/uniwbrk/ulc-wordbreaks.c: New file.
35896
35897         New module 'uniwbrk/u32-wordbreaks'.
35898         * modules/uniwbrk/u32-wordbreaks: New file.
35899         * lib/uniwbrk/u32-wordbreaks.c: New file.
35900
35901         New module 'uniwbrk/u16-wordbreaks'.
35902         * modules/uniwbrk/u16-wordbreaks: New file.
35903         * lib/uniwbrk/u16-wordbreaks.c: New file.
35904
35905         New module 'uniwbrk/u8-wordbreaks'.
35906         * modules/uniwbrk/u8-wordbreaks: New file.
35907         * lib/uniwbrk/u8-wordbreaks.c: New file.
35908         * lib/uniwbrk/u-wordbreaks.h: New file.
35909
35910         New module 'uniwbrk/table'.
35911         * modules/uniwbrk/table: New file.
35912         * lib/uniwbrk/wbrktable.h: New file.
35913         * lib/uniwbrk/wbrktable.c: New file.
35914
35915         New module 'uniwbrk/wordbreak-property'.
35916         * modules/uniwbrk/wordbreak-property: New file.
35917         * lib/uniwbrk/wordbreak-property.c: New file.
35918
35919         * lib/gen-uni-tables.c (WBP_*): New enum items.
35920         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
35921         (unicode_org_wbp): New variable.
35922         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
35923         New functions.
35924         (wbp_table): New structure.
35925         (output_wbp, output_wbrk_tables): New functions.
35926         (main): Accept additional argument. Invoke fill_org_wbp,
35927         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
35928         output_wbrk_tables.
35929         * modules/gen-uni-tables (Description): Update.
35930         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
35931         gen-uni-tables.
35932
35933         New module 'uniwbrk/base'.
35934         * modules/uniwbrk/base: New file.
35935         * lib/uniwbrk.h: New file.
35936
35937 2009-02-08  Bruno Haible  <bruno@clisp.org>
35938
35939         Update to Unicode 5.1.0.
35940         * lib/gen-uni-tables.c (is_property_alphabetic): Include
35941         U+2185..U+2188.
35942         (is_property_default_ignorable_code_point): Don't include characters
35943         of category Cc or Cs and not-a-characters.
35944         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
35945         U+0D79, U+109E, U+109F, U+A60C.
35946         * lib/unictype/bidi_of.h: Regenerated.
35947         * lib/unictype/blocks.h: Regenerated.
35948         * lib/unictype/categ_C.h: Regenerated.
35949         * lib/unictype/categ_Cf.h: Regenerated.
35950         * lib/unictype/categ_Cn.h: Regenerated.
35951         * lib/unictype/categ_L.h: Regenerated.
35952         * lib/unictype/categ_Ll.h: Regenerated.
35953         * lib/unictype/categ_Lm.h: Regenerated.
35954         * lib/unictype/categ_Lo.h: Regenerated.
35955         * lib/unictype/categ_Lu.h: Regenerated.
35956         * lib/unictype/categ_M.h: Regenerated.
35957         * lib/unictype/categ_Mc.h: Regenerated.
35958         * lib/unictype/categ_Me.h: Regenerated.
35959         * lib/unictype/categ_Mn.h: Regenerated.
35960         * lib/unictype/categ_N.h: Regenerated.
35961         * lib/unictype/categ_Nd.h: Regenerated.
35962         * lib/unictype/categ_Nl.h: Regenerated.
35963         * lib/unictype/categ_No.h: Regenerated.
35964         * lib/unictype/categ_P.h: Regenerated.
35965         * lib/unictype/categ_Pd.h: Regenerated.
35966         * lib/unictype/categ_Pe.h: Regenerated.
35967         * lib/unictype/categ_Pf.h: Regenerated.
35968         * lib/unictype/categ_Pi.h: Regenerated.
35969         * lib/unictype/categ_Po.h: Regenerated.
35970         * lib/unictype/categ_Ps.h: Regenerated.
35971         * lib/unictype/categ_S.h: Regenerated.
35972         * lib/unictype/categ_Sk.h: Regenerated.
35973         * lib/unictype/categ_Sm.h: Regenerated.
35974         * lib/unictype/categ_So.h: Regenerated.
35975         * lib/unictype/categ_of.h: Regenerated.
35976         * lib/unictype/combining.h: Regenerated.
35977         * lib/unictype/ctype_alnum.h: Regenerated.
35978         * lib/unictype/ctype_alpha.h: Regenerated.
35979         * lib/unictype/ctype_graph.h: Regenerated.
35980         * lib/unictype/ctype_lower.h: Regenerated.
35981         * lib/unictype/ctype_print.h: Regenerated.
35982         * lib/unictype/ctype_punct.h: Regenerated.
35983         * lib/unictype/ctype_upper.h: Regenerated.
35984         * lib/unictype/decdigit.h: Regenerated.
35985         * lib/unictype/digit.h: Regenerated.
35986         * lib/unictype/mirror.h: Regenerated.
35987         * lib/unictype/numeric.h: Regenerated.
35988         * lib/unictype/pr_alphabetic.h: Regenerated.
35989         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
35990         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
35991         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
35992         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
35993         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
35994         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
35995         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
35996         * lib/unictype/pr_combining.h: Regenerated.
35997         * lib/unictype/pr_dash.h: Regenerated.
35998         * lib/unictype/pr_decimal_digit.h: Regenerated.
35999         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
36000         * lib/unictype/pr_deprecated.h: Regenerated.
36001         * lib/unictype/pr_diacritic.h: Regenerated.
36002         * lib/unictype/pr_extender.h: Regenerated.
36003         * lib/unictype/pr_format_control.h: Regenerated.
36004         * lib/unictype/pr_grapheme_base.h: Regenerated.
36005         * lib/unictype/pr_grapheme_extend.h: Regenerated.
36006         * lib/unictype/pr_grapheme_link.h: Regenerated.
36007         * lib/unictype/pr_id_continue.h: Regenerated.
36008         * lib/unictype/pr_id_start.h: Regenerated.
36009         * lib/unictype/pr_ideographic.h: Regenerated.
36010         * lib/unictype/pr_ignorable_control.h: Regenerated.
36011         * lib/unictype/pr_lowercase.h: Regenerated.
36012         * lib/unictype/pr_math.h: Regenerated.
36013         * lib/unictype/pr_numeric.h: Regenerated.
36014         * lib/unictype/pr_other_alphabetic.h: Regenerated.
36015         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
36016         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
36017         * lib/unictype/pr_other_id_continue.h: Regenerated.
36018         * lib/unictype/pr_other_lowercase.h: Regenerated.
36019         * lib/unictype/pr_other_math.h: Regenerated.
36020         * lib/unictype/pr_punctuation.h: Regenerated.
36021         * lib/unictype/pr_sentence_terminal.h: Regenerated.
36022         * lib/unictype/pr_soft_dotted.h: Regenerated.
36023         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
36024         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
36025         * lib/unictype/pr_unified_ideograph.h: Regenerated.
36026         * lib/unictype/pr_uppercase.h: Regenerated.
36027         * lib/unictype/pr_xid_continue.h: Regenerated.
36028         * lib/unictype/pr_xid_start.h: Regenerated.
36029         * lib/unictype/pr_zero_width.h: Regenerated.
36030         * lib/unictype/scripts.h: Regenerated.
36031         * lib/unictype/scripts_byname.gperf: Regenerated.
36032         * lib/unictype/sy_java_ident.h: Regenerated.
36033         * lib/unilbrk/lbrkprop1.h: Regenerated.
36034         * lib/unilbrk/lbrkprop2.h: Regenerated.
36035         * tests/unictype/test-categ_C.c: Regenerated.
36036         * tests/unictype/test-categ_Cf.c: Regenerated.
36037         * tests/unictype/test-categ_Cn.c: Regenerated.
36038         * tests/unictype/test-categ_L.c: Regenerated.
36039         * tests/unictype/test-categ_Ll.c: Regenerated.
36040         * tests/unictype/test-categ_Lm.c: Regenerated.
36041         * tests/unictype/test-categ_Lo.c: Regenerated.
36042         * tests/unictype/test-categ_Lu.c: Regenerated.
36043         * tests/unictype/test-categ_M.c: Regenerated.
36044         * tests/unictype/test-categ_Mc.c: Regenerated.
36045         * tests/unictype/test-categ_Me.c: Regenerated.
36046         * tests/unictype/test-categ_Mn.c: Regenerated.
36047         * tests/unictype/test-categ_N.c: Regenerated.
36048         * tests/unictype/test-categ_Nd.c: Regenerated.
36049         * tests/unictype/test-categ_Nl.c: Regenerated.
36050         * tests/unictype/test-categ_No.c: Regenerated.
36051         * tests/unictype/test-categ_P.c: Regenerated.
36052         * tests/unictype/test-categ_Pd.c: Regenerated.
36053         * tests/unictype/test-categ_Pe.c: Regenerated.
36054         * tests/unictype/test-categ_Pf.c: Regenerated.
36055         * tests/unictype/test-categ_Pi.c: Regenerated.
36056         * tests/unictype/test-categ_Po.c: Regenerated.
36057         * tests/unictype/test-categ_Ps.c: Regenerated.
36058         * tests/unictype/test-categ_S.c: Regenerated.
36059         * tests/unictype/test-categ_Sk.c: Regenerated.
36060         * tests/unictype/test-categ_Sm.c: Regenerated.
36061         * tests/unictype/test-categ_So.c: Regenerated.
36062         * tests/unictype/test-ctype_alnum.c: Regenerated.
36063         * tests/unictype/test-ctype_alpha.c: Regenerated.
36064         * tests/unictype/test-ctype_graph.c: Regenerated.
36065         * tests/unictype/test-ctype_lower.c: Regenerated.
36066         * tests/unictype/test-ctype_print.c: Regenerated.
36067         * tests/unictype/test-ctype_punct.c: Regenerated.
36068         * tests/unictype/test-ctype_upper.c: Regenerated.
36069         * tests/unictype/test-decdigit.h: Regenerated.
36070         * tests/unictype/test-digit.h: Regenerated.
36071         * tests/unictype/test-numeric.h: Regenerated.
36072         * tests/unictype/test-pr_alphabetic.c: Regenerated.
36073         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
36074         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
36075         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
36076         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
36077         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
36078         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
36079         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
36080         * tests/unictype/test-pr_combining.c: Regenerated.
36081         * tests/unictype/test-pr_dash.c: Regenerated.
36082         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
36083         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
36084         * tests/unictype/test-pr_deprecated.c: Regenerated.
36085         * tests/unictype/test-pr_diacritic.c: Regenerated.
36086         * tests/unictype/test-pr_extender.c: Regenerated.
36087         * tests/unictype/test-pr_format_control.c: Regenerated.
36088         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
36089         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
36090         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
36091         * tests/unictype/test-pr_id_continue.c: Regenerated.
36092         * tests/unictype/test-pr_id_start.c: Regenerated.
36093         * tests/unictype/test-pr_ideographic.c: Regenerated.
36094         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
36095         * tests/unictype/test-pr_lowercase.c: Regenerated.
36096         * tests/unictype/test-pr_math.c: Regenerated.
36097         * tests/unictype/test-pr_numeric.c: Regenerated.
36098         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
36099         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
36100         Regenerated.
36101         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
36102         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
36103         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
36104         * tests/unictype/test-pr_other_math.c: Regenerated.
36105         * tests/unictype/test-pr_punctuation.c: Regenerated.
36106         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
36107         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
36108         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
36109         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
36110         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
36111         * tests/unictype/test-pr_uppercase.c: Regenerated.
36112         * tests/unictype/test-pr_xid_continue.c: Regenerated.
36113         * tests/unictype/test-pr_xid_start.c: Regenerated.
36114         * tests/unictype/test-pr_zero_width.c: Regenerated.
36115
36116         Update to Unicode 5.1.0.
36117         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
36118         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
36119         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
36120         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
36121         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
36122         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
36123         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
36124         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
36125         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
36126         (nonspacing_table_ind): Update.
36127         * tests/uniwidth/test-uc_width2.sh: Update expected result.
36128
36129         Update to Unicode 5.1.0.
36130         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
36131         code transform.
36132         * lib/uniname/uniname.c (unicode_character_name,
36133         unicode_name_character): Add the range 0x1Fxxx to the code transform.
36134         * lib/uniname/uninames.h: Regenerated.
36135         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
36136
36137 2009-02-07  Bruno Haible  <bruno@clisp.org>
36138
36139         Merge gen-ctype and gen-lbrk into a single program.
36140         * lib/gen-uni-tables.c: New file, incorporating
36141         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
36142         Add directory prefixes to the names of the generated files.
36143         * lib/unictype/gen-ctype.c: Remove file.
36144         * lib/unilbrk/gen-lbrk.c: Remove file.
36145         * modules/gen-uni-tables: New file.
36146         * modules/unictype/gen-ctype: Remove file.
36147         * modules/unilbrk/gen-lbrk: Remove file.
36148
36149 2009-02-07  Bruno Haible  <bruno@clisp.org>
36150
36151         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
36152
36153         New module 'unistr/u32-strcoll'.
36154         * modules/unistr/u32-strcoll: New file.
36155         * lib/unistr/u32-strcoll.c: New file.
36156
36157         New module 'unistr/u16-strcoll'.
36158         * modules/unistr/u16-strcoll: New file.
36159         * lib/unistr/u16-strcoll.c: New file.
36160
36161         New module 'unistr/u8-strcoll'.
36162         * modules/unistr/u8-strcoll: New file.
36163         * lib/unistr/u8-strcoll.c: New file.
36164         * lib/unistr/u-strcoll.h: New file.
36165
36166 2009-02-07  Bruno Haible  <bruno@clisp.org>
36167
36168         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
36169         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
36170         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
36171         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
36172         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
36173         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
36174
36175 2009-02-07  Bruno Haible  <bruno@clisp.org>
36176
36177         Make 64-bit clean.
36178         * lib/unictype/gen-ctype.c (output_predicate, output_category,
36179         output_combclass, output_bidi_category, output_decimal_digit,
36180         output_digit, output_numeric, output_mirror, output_scripts,
36181         output_ident_category): Use proper width specifier in format strings.
36182
36183 2009-02-07  Bruno Haible  <bruno@clisp.org>
36184
36185         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
36186         failure behaviour.
36187
36188 2009-02-07  Jim Meyering  <meyering@redhat.com>
36189
36190         regex: avoid compilation failure with upcoming gcc-4.4
36191         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
36192         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
36193         "... error: integer overflow in preprocessor expression".
36194
36195 2009-02-05  Ben Pfaff  <blp@gnu.org>
36196
36197         Fix link errors on Windows when close module is used.
36198         * modules/close: Add $(LIB_CLOSE) to Link section.
36199         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
36200         $(LIB_CLOSE) on Windows.
36201
36202 2009-02-05  Jim Meyering  <meyering@redhat.com>
36203
36204         still avoid unused-parameter warnings, but do it cleanly
36205         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
36206         (get_fs_usage): Cast to void instead.
36207         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
36208         (dev_from_mount_options, read_file_system_list): Cast to void.
36209         Prompted by Bruno Haible.
36210
36211 2009-02-04  Jim Meyering  <meyering@redhat.com>
36212
36213         fsusage.c: correct copyright year
36214         * lib/fsusage.c: Reflect year in which the change is pushed into
36215
36216         avoid misc. warnings
36217         * lib/fsusage.c (UNUSED_PARAM): Define.
36218         (get_fs_usage): Mark parameter "disk" as unused.
36219         * lib/getugroups.c (getgrent): Use "void" in prototype.
36220         * lib/mountlist.c: Mark unused parameters.
36221         (read_file_system_list): Declare a local with "const".
36222         * lib/nanosleep.c (getnow): Declare static.
36223         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
36224
36225         dirfd: set errno upon failure
36226         * lib/dirfd.c: Include <errno.h>.
36227         Set errno to ENOTSUP when returning -1.
36228         * modules/dirfd (Depends-on): Add errno.
36229         Suggested by John Kodis <kodis@comcast.net>.
36230
36231 2009-02-01  Bruno Haible  <bruno@clisp.org>
36232
36233         Don't assume sizeof (long) >= sizeof (void *).
36234         * lib/memcmp.c: Include stdint.h.
36235         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
36236         srcp2 to 'const byte *'.
36237         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
36238         types to uintptr_t.
36239         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
36240         * modules/memcmp (Depends-on): Add stdint.
36241         Reported by Ozkan Sezer <sezeroz@gmail.com>.
36242
36243 2009-01-30  Eric Blake  <ebb9@byu.net>
36244
36245         fix more require-before-expand issues
36246         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
36247         expand, AC_PROG_AWK.
36248         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
36249
36250 2009-01-28  Eric Blake  <ebb9@byu.net>
36251
36252         version-etc: use consistent URL formatting
36253         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
36254         Improve formatting.  Use fputs for string without %.
36255
36256 2009-01-28  Jim Meyering  <meyering@redhat.com>
36257
36258         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
36259         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
36260         "underquoted definition of NAME" from autoconf-2.59.
36261
36262 2009-01-28  Bruno Haible  <bruno@clisp.org>
36263
36264         * doc/gnulib.texi: Add "Obsolete modules" to index.
36265
36266 2009-01-28  Jim Meyering  <meyering@redhat.com>
36267
36268         useless-if-before-free: recognize more variants
36269         * build-aux/useless-if-before-free: Also recognize e.g.,
36270         if (NULL != p) free (p);
36271
36272 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
36273
36274         test-getaddrinfo: skip (don't fail) this test when there's no network
36275         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
36276         on the presumption that it means you lack network access.
36277
36278 2009-01-26  Jim Meyering  <meyering@redhat.com>
36279
36280         fflush: avoid warnings on modern systems
36281         * lib/fflush.c (rpl_fflush): Move declarations of locals,
36282         pos and result, into scopes where they're used.
36283
36284 2009-01-26  Eric Blake  <ebb9@byu.net>
36285
36286         Silence warning reintroduced by recent extensions patch.
36287         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
36288         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
36289         autoconf.
36290
36291         Backport improved autoconf semantics of AC_DEFUN_ONCE.
36292         * m4/00gnulib.m4: New file.
36293         * gnulib-tool (func_get_filelist): Always use it.
36294         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
36295         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
36296
36297 2009-01-25  Bruno Haible  <bruno@clisp.org>
36298
36299         Make test-quotearg work on MacOS X and AIX.
36300         * tests/test-quotearg.sh: New file.
36301         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
36302         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
36303         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
36304         include <libintl.h>.
36305         (fake_locale): Remove variable.
36306         (gettext, dgettext, dcgettext): Remove functions.
36307         (main): Instead of setting a fake locale, set a real locale. Call
36308         textdomain and bindtextdomain.
36309         * modules/quotearg-tests (Files): Add the new files.
36310         (Depends-on): Add gettext, setenv, unsetenv.
36311         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
36312         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
36313         Augment TESTS_ENVIRONMENT.
36314
36315 2009-01-25  Bruno Haible  <bruno@clisp.org>
36316
36317         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
36318         fr_FR.ISO8859-1 locale on MacOS X.
36319         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
36320         ja_JP.eucJP locale on MacOS X.
36321         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
36322         zh_CN.GB18030 locale on MacOS X.
36323
36324 2009-01-25  Bruno Haible  <bruno@clisp.org>
36325
36326         Avoid link errors on MacOS X 10.3.
36327         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
36328         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
36329
36330 2009-01-25  Bruno Haible  <bruno@clisp.org>
36331
36332         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
36333         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
36334         * modules/pipe (Files): Remove m4/posix_spawn.m4.
36335         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
36336         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
36337         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
36338         posix_spawnattr_init, posix_spawnattr_setsigmask,
36339         posix_spawnattr_setflags, posix_spawnattr_destroy.
36340
36341         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
36342         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
36343         * modules/execute (Files): Remove m4/posix_spawn.m4.
36344         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
36345         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
36346         posix_spawnattr_init, posix_spawnattr_setsigmask,
36347         posix_spawnattr_setflags, posix_spawnattr_destroy.
36348
36349 2009-01-25  Bruno Haible  <bruno@clisp.org>
36350
36351         * lib/glthread/threadlib.c: Include <stdlib.h>.
36352
36353 2009-01-25  Bruno Haible  <bruno@clisp.org>
36354
36355         * lib/glthread/threadlib.c (dummy): New declaration.
36356
36357 2009-01-25  Bruno Haible  <bruno@clisp.org>
36358
36359         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
36360         multibyte characters also for the GB18030 encoding. Don't crash when
36361         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
36362
36363 2009-01-25  Bruno Haible  <bruno@clisp.org>
36364
36365         Avoid redefining 'struct random_data' on OSF/1 5.1.
36366         * lib/stdlib.in.h: Include <random.h> if it exists.
36367         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
36368         HAVE_RANDOM_H. Include <random.h> when testing whether
36369         'struct random_data' exists.
36370         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
36371
36372 2009-01-25  Bruno Haible  <bruno@clisp.org>
36373
36374         Don't install charset.alias on MacOS X >= 10.3.
36375         * lib/localcharset.c (DARWIN7): New macro.
36376         (get_charset_aliases): Hardcode the result for Darwin7.
36377         * modules/localcharset (install-exec-local): Don't install
36378         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
36379
36380 2009-01-25  Bruno Haible  <bruno@clisp.org>
36381
36382         Don't install charset.alias on mingw and Cygwin.
36383         * modules/localcharset (install-exec-local): Don't install
36384         charset.alias on mingw and Cygwin, if the file does not yet exist.
36385         The result for these platforms is hardcoded in localcharset.c.
36386
36387 2009-01-25  Bruno Haible  <bruno@clisp.org>
36388
36389         Make it possible again to use AC_GNU_SOURCE together with gnulib.
36390         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
36391         before requiring AC_USE_SYSTEM_EXTENSIONS.
36392
36393 2009-01-25  Jim Meyering  <meyering@redhat.com>
36394
36395         c-strtod: avoid warnings
36396         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
36397         "assignment discards qualifiers from pointer target type" warnings.
36398
36399 2009-01-24  Bruno Haible  <bruno@clisp.org>
36400
36401         Add support for non-UTF-8 locales on MacOS X.
36402         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
36403         canonical encodings. For Darwin 7 and newer, don't map traditional
36404         encodings to UTF-8.
36405         Reported by Vincent Lefevre <vincent@vinc17.org>
36406         at <http://savannah.gnu.org/bugs/?25235>.
36407
36408 2009-01-24  Bruno Haible  <bruno@clisp.org>
36409
36410         * doc/gnulib.texi (Obsolete modules): New section.
36411         Reported by Mike Frysinger <vapier@gentoo.org>.
36412
36413 2009-01-24  Bruno Haible  <bruno@clisp.org>
36414
36415         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
36416         (%.dvi): New rule.
36417
36418 2009-01-24  Bruno Haible  <bruno@clisp.org>
36419
36420         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
36421         Reported by Eric Blake.
36422
36423 2009-01-24  Bruno Haible  <bruno@clisp.org>
36424
36425         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
36426         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
36427         Reported by Gary V. Vaughan <gary@gnu.org>.
36428
36429 2009-01-24  Bruno Haible  <bruno@clisp.org>
36430
36431         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
36432
36433 2009-01-23  Bruno Haible  <bruno@clisp.org>
36434
36435         Make c-strtod, c-strtold usable in libraries.
36436         * lib/c-strtod.c: Include string.h instead of xalloc.h.
36437         (C_STRTOD): Call strdup instead of xstrdup.
36438         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
36439         * modules/c-strtold (Depends-on): Likewise.
36440         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
36441         * NEWS: Mention the change.
36442         Reported by Michael Gold <mgold@ncf.ca>.
36443
36444 2009-01-23  Jim Meyering  <meyering@redhat.com>
36445
36446         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
36447         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
36448         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
36449
36450 2009-01-23  Simon Josefsson  <simon@josefsson.org>
36451
36452         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
36453         GNU CoreUtils.
36454         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
36455         * modules/version-etc (Description): Update.
36456
36457 2009-01-22  Bruno Haible  <bruno@clisp.org>
36458
36459         Cache the C locale object.
36460         * lib/c-strtod.c (c_locale_cache): New variable.
36461         (c_locale): New function.
36462         (C_STRTOD): Use it, and don't call freelocale.
36463         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
36464         Suggested by Paolo Bonzini.
36465
36466 2009-01-21  Bruno Haible  <bruno@clisp.org>
36467
36468         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
36469         conditions other than overflow.
36470
36471 2009-01-21  Bruno Haible  <bruno@clisp.org>
36472
36473         * lib/c-strtod.c: Include errno.h.
36474         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
36475         value from STRTOD_L and STRTOD.
36476
36477 2009-01-21  Bruno Haible  <bruno@clisp.org>
36478         and Jim Meyering  <meyering@redhat.com>
36479
36480         nanosleep: skip configure test (fail it) for apple universal builds
36481         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
36482         universal builds, assume that nanosleep does not work.
36483         * modules/nanosleep (Depends-on): Add multiarch.
36484
36485         mktime: skip configure test (fail it) for apple universal builds
36486         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
36487         universal builds, assume that mktime does not work.
36488         * modules/mktime (Depends-on): Add multiarch.
36489
36490 2009-01-21  Eric Blake  <ebb9@byu.net>
36491
36492         multiarch: avoid expand-before-require warning
36493         * modules/multiarch (configure.ac): Require, rather than expand,
36494         gl_MULTIARCH.
36495         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
36496         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
36497         enforce that all clients require it.  Partial reversion of
36498         2008-12-29 patch.
36499
36500         error: avoid expand-before-require warning
36501         * modules/errno (configure.ac): Require, rather than expand,
36502         gl_HEADER_ERRNO_H.
36503         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
36504         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
36505         enforce that all clients require it.
36506
36507         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
36508         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
36509         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
36510         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
36511
36512 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
36513
36514         Revert:
36515         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
36516
36517         regex: do not depend on obsolete modules.
36518         * modules/regex: Remove memcmp and memmove.
36519
36520 2009-01-20  Bruno Haible  <bruno@clisp.org>
36521
36522         Make the 'link' module link on Windows NT 4.
36523         * lib/link.c (_WIN32_WINNT): Don't define.
36524         (CreateHardLinkFuncType): New type.
36525         (CreateHardLinkFunc, initialized): New variables.
36526         (initialize): New function.
36527         (link): Invoke CreateHardLink indirectly through the function pointer.
36528
36529 2009-01-20  Bruno Haible  <bruno@clisp.org>
36530
36531         Fix compilation failure on mingw.
36532         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
36533
36534 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
36535
36536         * doc/c-strtod.texi: Mention a couple of restrictions.
36537
36538 2009-01-20  Jim Meyering  <meyering@redhat.com>
36539
36540         gettimeofday: move more declarations out of functions
36541         * lib/gettimeofday.c: Move extern declarations of tzset and
36542         gmtime out of containing functions.  Prompted by Bruno Haible.
36543
36544 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
36545
36546         regex: do not depend on obsolete modules.
36547         * modules/regex: Remove memcmp and memmove.
36548
36549 2009-01-19  Bruno Haible  <bruno@clisp.org>
36550
36551         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
36552         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
36553         gl_BIGENDIAN, not AC_C_BIGENDIAN.
36554         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
36555         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
36556
36557 2009-01-19  Bruno Haible  <bruno@clisp.org>
36558
36559         * tests/test-link.c: Include <errno.h>.
36560         (main): Exit with code 77 when a hard link cannot be created due to
36561         the file system.
36562         * tests/test-link.sh: Skip test when a hard link cannot be created due
36563         to the file system.
36564         Suggested by Eric Blake.
36565
36566 2009-01-19  Martin Lambers  <marlam@marlam.de>
36567
36568         * modules/link-tests: New file.
36569         * tests/test-link.sh: New file.
36570         * tests/test-link.c: New file.
36571
36572 2009-01-19  Eric Blake  <ebb9@byu.net>
36573
36574         doc: mention another function added in cygwin 1.7.0
36575         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
36576         Another new function in cygwin 1.7.
36577
36578 2009-01-19  Bruno Haible  <bruno@clisp.org>
36579
36580         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
36581         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
36582         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
36583         gl_BIGENDIAN, not AC_C_BIGENDIAN.
36584         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
36585         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
36586         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
36587         * m4/md4.m4 (gl_MD4): Likewise.
36588         * m4/md5.m4 (gl_MD5): Likewise.
36589         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
36590         * m4/sha1.m4 (gl_SHA1): Likewise.
36591         * m4/sha256.m4 (gl_SHA256): Likewise.
36592         * m4/sha512.m4 (gl_SHA512): Likewise.
36593
36594 2009-01-19  Bruno Haible  <bruno@clisp.org>
36595
36596         * modules/uniname/uniname-tests (Depends-on): Add progname.
36597         * tests/uniname/test-uninames.c: Include progname.h.
36598         (main): Call set_program_name.
36599
36600         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
36601         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
36602         (main): Call set_program_name.
36603
36604         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
36605         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
36606         (main): Call set_program_name.
36607
36608         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
36609         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
36610         (main): Call set_program_name.
36611
36612         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
36613         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
36614         (main): Call set_program_name.
36615
36616         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
36617         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
36618         (main): Call set_program_name.
36619
36620         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
36621         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
36622         (main): Call set_program_name.
36623
36624         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
36625         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
36626         (main): Call set_program_name.
36627
36628         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
36629         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
36630         (main): Call set_program_name.
36631
36632 2009-01-19  Eric Blake  <ebb9@byu.net>
36633
36634         test-unistd: test previous patch
36635         * tests/test-unistd.c: Test *_FILENO macros.
36636
36637         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
36638         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
36639         Guarantee a definition.
36640         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
36641         * modules/unistd-safer (Depends-on): Add dependency on unistd.
36642         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
36643         * lib/dup-safer.c (STDERR_FILENO): Likewise.
36644         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
36645         Likewise.
36646         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
36647         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
36648         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
36649         Likewise.
36650         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
36651         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
36652         (STDERR_FILENO): Likewise.
36653         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
36654         (STDERR_FILENO): Likewise.
36655         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
36656         (STDERR_FILENO): Likewise.
36657         Reported by Elbert Pol.
36658
36659 2009-01-19  Eric Blake  <ebb9@byu.net>
36660
36661         doc: mention more functions added in cygwin 1.7.0
36662         * doc/posix-functions/abort.texi (abort): Update wording related
36663         to cygwin.
36664         * doc/posix-functions/daylight.texi (daylight): Likewise.
36665         * doc/posix-functions/optarg.texi (optarg): Likewise.
36666         * doc/posix-functions/optarg.texi (opterr): Likewise.
36667         * doc/posix-functions/optarg.texi (optind): Likewise.
36668         * doc/posix-functions/optarg.texi (optopt): Likewise.
36669         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
36670         worked in 1.5.x, and was withdrawn in 1.7.
36671         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
36672         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
36673         cygwin versions.
36674         * doc/posix-functions/perror.texi (perror): Likewise.
36675         * doc/posix-functions/printf.texi (printf): Likewise.
36676         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
36677         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
36678         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
36679         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
36680         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
36681         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
36682         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
36683         Likewise.
36684         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
36685         Likewise.
36686         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
36687         this function.
36688         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
36689         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
36690         Likewise.
36691         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
36692         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
36693         * doc/posix-functions/confstr.texi (confstr): Likewise.
36694         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
36695         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
36696         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
36697         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
36698         * doc/posix-functions/fputws.texi (fputws): Likewise.
36699         * doc/posix-functions/fwide.texi (fwide): Likewise.
36700         * doc/posix-functions/getwc.texi (getwc): Likewise.
36701         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
36702         * doc/posix-functions/putwc.texi (putwc): Likewise.
36703         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
36704         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
36705         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
36706         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
36707         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
36708         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
36709         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
36710         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
36711         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
36712         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
36713         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
36714
36715 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
36716
36717         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
36718         * lib/ioctl.c: Include <sys/ioctl.h>.
36719
36720 2009-01-19  Simon Josefsson  <simon@josefsson.org>
36721
36722         * modules/getdate-tests (Depends-on): Add progname.
36723         * tests/test-getdate.c: Use progname module, to avoid link errors
36724         on non-glibc systems.
36725
36726 2009-01-18  Simon Josefsson  <simon@josefsson.org>
36727
36728         * modules/filenamecat-tests (Depends-on): Add progname.
36729         * modules/fstrcmp-tests (Depends-on): Likewise.
36730
36731         * tests/test-filenamecat.c: Use progname module, to avoid link
36732         errors on non-glibc systems.
36733         * tests/test-fstrcmp.c: Likewise.
36734
36735 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
36736
36737         gettimeofday: avoid warning: nested extern declaration of 'localtime'
36738         * lib/gettimeofday.c: Move extern declaration out of function.
36739
36740 2009-01-18  Bruno Haible  <bruno@clisp.org>
36741
36742         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
36743         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
36744         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
36745
36746 2009-01-18  Bruno Haible  <bruno@clisp.org>
36747
36748         * lib/strftime.c (MEMPCPY): Remove unused macro.
36749         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
36750
36751 2009-01-18  Martin Lambers  <marlam@marlam.de>
36752
36753         New module 'link'.
36754         * lib/unistd.in.h (link): New declaration.
36755         * lib/link.c: New file.
36756         * m4/link.m4: New file.
36757         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
36758         HAVE_LINK.
36759         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
36760         * modules/link: New file.
36761         * doc/posix-functions/link.texi: Mention the new module.
36762
36763 2009-01-18  Bruno Haible  <bruno@clisp.org>
36764
36765         * tests/test-avltree_list.c (main): Call set_program_name.
36766         * tests/test-avltree_oset.c (main): Likewise.
36767         * tests/test-obstack-printf.c: Include progname.h.
36768         (main): Call set_program_name.
36769         * tests/test-quotearg.c: Include progname.h.
36770         (main): Call set_program_name.
36771         * tests/test-xmemdup0.c: Include progname.h.
36772         (main): Call set_program_name.
36773
36774 2009-01-18  Bruno Haible  <bruno@clisp.org>
36775
36776         New module 'alphasort'.
36777         * lib/dirent.in.h (alphasort): New declaration.
36778         * lib/alphasort.c: New file, from glibc with modifications.
36779         * m4/alphasort.m4: New file.
36780         * modules/alphasort: New file.
36781         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
36782         HAVE_ALPHASORT.
36783         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
36784         HAVE_ALPHASORT.
36785         * doc/posix-functions/alphasort.texi: Mention the new module and the
36786         portability problems.
36787
36788 2009-01-18  Bruno Haible  <bruno@clisp.org>
36789
36790         New module 'scandir'.
36791         * lib/dirent.in.h (scandir): New declaration.
36792         * lib/scandir.c: New file, from glibc with modifications.
36793         * m4/scandir.m4: New file.
36794         * modules/scandir: New file.
36795         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
36796         HAVE_SCANDIR.
36797         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
36798         HAVE_SCANDIR.
36799         * doc/posix-functions/scandir.texi: Mention the new module and the
36800         portability problems.
36801
36802 2009-01-17  Bruno Haible  <bruno@clisp.org>
36803
36804         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
36805         Update documentation.
36806         (func_remove_suffix): Escape all dots in the suffix. Update
36807         documentation.
36808         (func_filter_filelist): Update documentation.
36809         Reported by Ralf Wildenhues.
36810
36811 2009-01-17  Bruno Haible  <bruno@clisp.org>
36812
36813         * modules/dprintf-posix-tests: New file.
36814         * tests/test-dprintf-posix.sh: New file.
36815         * tests/test-dprintf-posix.c: New file.
36816
36817         New modules 'dprintf', 'dprintf-posix'.
36818         * lib/stdio.in.h (dprintf): New declaration.
36819         * lib/dprintf.c: New file.
36820         * m4/dprintf.m4: New file.
36821         * m4/dprintf-posix.m4: New file.
36822         * modules/dprintf: New file.
36823         * modules/dprintf-posix: New file.
36824         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
36825         HAVE_DPRINTF, REPLACE_DPRINTF.
36826         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
36827         HAVE_DPRINTF, REPLACE_DPRINTF.
36828         * doc/posix-functions/dprintf.texi: Mention the new modules.
36829
36830 2009-01-17  Bruno Haible  <bruno@clisp.org>
36831
36832         * modules/vdprintf-posix-tests: New file.
36833         * tests/test-vdprintf-posix.sh: New file.
36834         * tests/test-vdprintf-posix.c: New file.
36835
36836         New modules 'vdprintf', 'vdprintf-posix'.
36837         * lib/stdio.in.h (vdprintf): New declaration.
36838         * lib/vdprintf.c: New file.
36839         * m4/vdprintf.m4: New file.
36840         * m4/vdprintf-posix.m4: New file.
36841         * modules/vdprintf: New file.
36842         * modules/vdprintf-posix: New file.
36843         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
36844         HAVE_VDPRINTF, REPLACE_VDPRINTF.
36845         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
36846         HAVE_VDPRINTF, REPLACE_VDPRINTF.
36847         * doc/posix-functions/vdprintf.texi: Mention the new modules.
36848
36849 2009-01-17  Bruno Haible  <bruno@clisp.org>
36850
36851         Fix replacement of fopen on mingw.
36852         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
36853         mingw.
36854
36855 2009-01-17  Bruno Haible  <bruno@clisp.org>
36856
36857         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
36858         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
36859
36860 2009-01-17  Bruno Haible  <bruno@clisp.org>
36861
36862         Avoid test-fflush2.sh failure on mingw.
36863         * tests/test-fflush2.c: Include binary-io.h.
36864         (main): Put standard input into binary mode.
36865         * modules/fflush-tests (Depends-on): Add binary-io.
36866
36867 2009-01-17  Bruno Haible  <bruno@clisp.org>
36868
36869         * lib/wchar.in.h: In another particular situation, include only the
36870         system's <wchar.h> file.
36871         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
36872         Reported by Albert Chin-A-Young <china@thewrittenword.com>
36873         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
36874
36875 2009-01-17  Bruno Haible  <bruno@clisp.org>
36876
36877         Support for stripping executables in --enable-relocatable.
36878         * build-aux/install-reloc: Expect one more argument, or an environment
36879         variable RELOC_STRIP_PROG. If set, strip the destination program and
36880         its wrapper.
36881         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
36882         RELOC_STRIP_PROG.
36883         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
36884         to set RELOCATABLE_STRIP.
36885         * NEWS: Mention the new Makefile requirement.
36886
36887 2009-01-17  Bruno Haible  <bruno@clisp.org>
36888
36889         * build-aux/install-reloc: Remove debugging information left over by
36890         C compiler on MacOS X.
36891
36892 2009-01-17  Bruno Haible  <bruno@clisp.org>
36893
36894         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
36895         * lib/progreloc.c (find_executable): Fix type of pointer passed to
36896         _NSGetExecutablePath.
36897
36898 2009-01-16  Jim Meyering  <meyering@redhat.com>
36899
36900         strerror: avoid warnings about discarding "const"
36901         * lib/strerror.c (rpl_strerror): Instead of returning a const
36902         string from each and every "case", use a variable, and add a single
36903         cast after the switch.
36904
36905 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
36906
36907         * lib/arpa_inet.in.h: Add extern "C" block for C++.
36908
36909 2009-01-16  Bruno Haible  <bruno@clisp.org>
36910
36911         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
36912         array initializer syntax that also works in C++ mode.
36913         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36914
36915 2009-01-16  Jim Meyering  <meyering@redhat.com>
36916
36917         poll: suppress a warning
36918         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
36919         to ignore "...unsigned expression < 0 is always false" warnings.
36920
36921 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
36922
36923         poll: remove declarations of unused variables
36924         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
36925         sockbuf and optlen.
36926
36927 2009-01-15  Bruno Haible  <bruno@clisp.org>
36928
36929         Make fflush-after-ungetc POSIX compliant on BSD systems.
36930         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
36931         (clear_ungetc_buffer): Implement also for other systems.
36932         (rpl_fflush): On glibc systems, invoke
36933         clear_ungetc_buffer_preserving_position. Otherwise, invoke
36934         clear_ungetc_buffer after fetching the stream's position, not before.
36935
36936 2009-01-15  Bruno Haible  <bruno@clisp.org>
36937
36938         Make fflush-after-ungetc POSIX compliant on glibc systems.
36939         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
36940         after ungetc.
36941         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
36942         (rpl_fflush): On glibc systems, simply call the system's fflush
36943         function after clearing the ungetc buffer.
36944         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
36945         Instead, lseek only to the end of file, then use the system's fseeko
36946         for the rest. On glibc systems, reset the EOF indicator bit.
36947
36948 2009-01-15  Jim Meyering  <meyering@redhat.com>
36949
36950         openmp.m4: revert quote-adding change, for portability to older autoconf
36951         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
36952         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
36953         Simon Josefsson noticed the problem when using autoconf-2.61.
36954
36955 2009-01-15  Bruno Haible  <bruno@clisp.org>
36956
36957         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
36958         * tests/test-fflush2.c (ASSERT): Always fail.
36959         (main): Add two tests for fflush() after ungetc(), taking into account
36960         the Austin Group's clarification.
36961         Suggested by Eric Blake.
36962
36963 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
36964
36965         mktime.m4: remove K&R-style function prototypes
36966         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
36967         for the Sun C++ compiler.
36968
36969 2009-01-14  Bruno Haible  <bruno@clisp.org>
36970
36971         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
36972         while including <wchar.h>.
36973         * lib/wchar.in.h: In two particular situations on HP-UX, include only
36974         the system's <wchar.h> file.
36975         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36976
36977 2009-01-14  Bruno Haible  <bruno@clisp.org>
36978
36979         * m4/csharp.m4: Don't mention gettext on the serial number line.
36980         * m4/csharpexec.m4: Likewise.
36981         * m4/eaccess.m4: Likewise.
36982         * m4/javaexec.m4: Likewise.
36983         * m4/sig_atomic_t.m4: Likewise.
36984         * m4/tmpdir.m4: Likewise.
36985         * m4/intldir.m4: Bump gettext version.
36986         * m4/lib-ld.m4: Likewise.
36987
36988 2009-01-14  Bruno Haible  <bruno@clisp.org>
36989
36990         * lib/progname.c (set_program_name): Add more comments.
36991         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
36992
36993 2009-01-14  Simon Josefsson  <simon@josefsson.org>
36994
36995         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
36996         were sys/stat.h does not define it.
36997
36998 2009-01-14  Jim Meyering  <meyering@redhat.com>
36999
37000         many *.m4 files: improve m4 quoting
37001         99% of this change was performed by running the following commands:
37002         git ls-files | grep '\.m4$' | xargs perl -pi \
37003           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
37004           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
37005           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
37006           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
37007         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
37008         The remainder were to add Copyright dates, increment serial numbers,
37009         undo some changes in comments, exclude m4/intl.m4, and add quotes
37010         around the "1" in ",1" where the unusual spacing prohibited the
37011         above regexps from doing the job.  For more details, see
37012         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
37013         * m4/acl.m4: Modified.
37014         * m4/afs.m4: Likewise.
37015         * m4/alloca.m4: Likewise.
37016         * m4/argp.m4: Likewise.
37017         * m4/argz.m4: Likewise.
37018         * m4/atexit.m4: Likewise.
37019         * m4/bison-i18n.m4: Likewise.
37020         * m4/bison.m4: Likewise.
37021         * m4/byteswap.m4: Likewise.
37022         * m4/c-stack.m4: Likewise.
37023         * m4/c-strtod.m4: Likewise.
37024         * m4/calloc.m4: Likewise.
37025         * m4/canonicalize-lgpl.m4: Likewise.
37026         * m4/chown.m4: Likewise.
37027         * m4/clock_time.m4: Likewise.
37028         * m4/codeset.m4: Likewise.
37029         * m4/copy-file.m4: Likewise.
37030         * m4/csharp.m4: Likewise.
37031         * m4/csharpcomp.m4: Likewise.
37032         * m4/csharpexec.m4: Likewise.
37033         * m4/d-ino.m4: Likewise.
37034         * m4/d-type.m4: Likewise.
37035         * m4/dirfd.m4: Likewise.
37036         * m4/double-slash-root.m4: Likewise.
37037         * m4/eaccess.m4: Likewise.
37038         * m4/eealloc.m4: Likewise.
37039         * m4/environ.m4: Likewise.
37040         * m4/errno_h.m4: Likewise.
37041         * m4/euidaccess.m4: Likewise.
37042         * m4/execute.m4: Likewise.
37043         * m4/fatal-signal.m4: Likewise.
37044         * m4/fchdir.m4: Likewise.
37045         * m4/fcntl_h.m4: Likewise.
37046         * m4/fileblocks.m4: Likewise.
37047         * m4/filenamecat.m4: Likewise.
37048         * m4/findprog.m4: Likewise.
37049         * m4/flexmember.m4: Likewise.
37050         * m4/fnmatch.m4: Likewise.
37051         * m4/fopen.m4: Likewise.
37052         * m4/fpending.m4: Likewise.
37053         * m4/fprintf-posix.m4: Likewise.
37054         * m4/free.m4: Likewise.
37055         * m4/frexp.m4: Likewise.
37056         * m4/frexpl.m4: Likewise.
37057         * m4/fsusage.m4: Likewise.
37058         * m4/ftruncate.m4: Likewise.
37059         * m4/gc-camellia.m4: Likewise.
37060         * m4/gc-random.m4: Likewise.
37061         * m4/gc.m4: Likewise.
37062         * m4/getaddrinfo.m4: Likewise.
37063         * m4/getcwd-abort-bug.m4: Likewise.
37064         * m4/getcwd-path-max.m4: Likewise.
37065         * m4/getdate.m4: Likewise.
37066         * m4/getdomainname.m4: Likewise.
37067         * m4/getgroups.m4: Likewise.
37068         * m4/gethostname.m4: Likewise.
37069         * m4/gethrxtime.m4: Likewise.
37070         * m4/getline.m4: Likewise.
37071         * m4/getloadavg.m4: Likewise.
37072         * m4/getndelim2.m4: Likewise.
37073         * m4/getpass.m4: Likewise.
37074         * m4/gettext.m4: Likewise.
37075         * m4/gettime.m4: Likewise.
37076         * m4/gettimeofday.m4: Likewise.
37077         * m4/gnulib-common.m4: Likewise.
37078         * m4/group-member.m4: Likewise.
37079         * m4/host-os.m4: Likewise.
37080         * m4/iconv.m4: Likewise.
37081         * m4/iconv_open.m4: Likewise.
37082         * m4/inet_ntop.m4: Likewise.
37083         * m4/inet_pton.m4: Likewise.
37084         * m4/inline.m4: Likewise.
37085         * m4/intldir.m4: Likewise.
37086         * m4/intlmacosx.m4: Likewise.
37087         * m4/intmax.m4: Likewise.
37088         * m4/intmax_t.m4: Likewise.
37089         * m4/inttypes.m4: Likewise.
37090         * m4/inttypes_h.m4: Likewise.
37091         * m4/inttypes-pri.m4: Likewise.
37092         * m4/isapipe.m4: Likewise.
37093         * m4/isnand.m4: Likewise.
37094         * m4/isnanf.m4: Likewise.
37095         * m4/isnanl.m4: Likewise.
37096         * m4/javacomp.m4: Likewise.
37097         * m4/javaexec.m4: Likewise.
37098         * m4/jm-winsz1.m4: Likewise.
37099         * m4/jm-winsz2.m4: Likewise.
37100         * m4/lchown.m4: Likewise.
37101         * m4/lcmessage.m4: Likewise.
37102         * m4/ldexpl.m4: Likewise.
37103         * m4/lib-ld.m4: Likewise.
37104         * m4/lib-link.m4: Likewise.
37105         * m4/libsigsegv.m4: Likewise.
37106         * m4/link-follow.m4: Likewise.
37107         * m4/localcharset.m4: Likewise.
37108         * m4/locale-fr.m4: Likewise.
37109         * m4/locale-ja.m4: Likewise.
37110         * m4/locale-tr.m4: Likewise.
37111         * m4/locale-zh.m4: Likewise.
37112         * m4/lock.m4: Likewise.
37113         * m4/longlong.m4: Likewise.
37114         * m4/ls-mntd-fs.m4: Likewise.
37115         * m4/lstat.m4: Likewise.
37116         * m4/malloc.m4: Likewise.
37117         * m4/mathl.m4: Likewise.
37118         * m4/mbrtowc.m4: Likewise.
37119         * m4/mbstate_t.m4: Likewise.
37120         * m4/mbswidth.m4: Likewise.
37121         * m4/memchr.m4: Likewise.
37122         * m4/memcmp.m4: Likewise.
37123         * m4/memcpy.m4: Likewise.
37124         * m4/memmem.m4: Likewise.
37125         * m4/memmove.m4: Likewise.
37126         * m4/mempcpy.m4: Likewise.
37127         * m4/memrchr.m4: Likewise.
37128         * m4/memset.m4: Likewise.
37129         * m4/minmax.m4: Likewise.
37130         * m4/mkdir-slash.m4: Likewise.
37131         * m4/mkdtemp.m4: Likewise.
37132         * m4/mktime.m4: Likewise.
37133         * m4/mmap-anon.m4: Likewise.
37134         * m4/mountlist.m4: Likewise.
37135         * m4/nanosleep.m4: Likewise.
37136         * m4/nls.m4: Likewise.
37137         * m4/nocrash.m4: Likewise.
37138         * m4/open.m4: Likewise.
37139         * m4/openat.m4: Likewise.
37140         * m4/openmp.m4: Likewise.
37141         * m4/pathmax.m4: Likewise.
37142         * m4/perl.m4: Likewise.
37143         * m4/physmem.m4: Likewise.
37144         * m4/pipe.m4: Likewise.
37145         * m4/po.m4: Likewise.
37146         * m4/poll.m4: Likewise.
37147         * m4/posixtm.m4: Likewise.
37148         * m4/posixver.m4: Likewise.
37149         * m4/printf-frexp.m4: Likewise.
37150         * m4/printf-frexpl.m4: Likewise.
37151         * m4/printf-posix.m4: Likewise.
37152         * m4/printf-posix-rpl.m4: Likewise.
37153         * m4/printf.m4: Likewise.
37154         * m4/progtest.m4: Likewise.
37155         * m4/putenv.m4: Likewise.
37156         * m4/readline.m4: Likewise.
37157         * m4/readlink.m4: Likewise.
37158         * m4/readutmp.m4: Likewise.
37159         * m4/realloc.m4: Likewise.
37160         * m4/regex.m4: Likewise.
37161         * m4/relocatable.m4: Likewise.
37162         * m4/relocatable-lib.m4: Likewise.
37163         * m4/rename-dest-slash.m4: Likewise.
37164         * m4/rename.m4: Likewise.
37165         * m4/rmdir-errno.m4: Likewise.
37166         * m4/rmdir.m4: Likewise.
37167         * m4/roundf.m4: Likewise.
37168         * m4/roundl.m4: Likewise.
37169         * m4/rpmatch.m4: Likewise.
37170         * m4/save-cwd.m4: Likewise.
37171         * m4/selinux-selinux-h.m4: Likewise.
37172         * m4/setenv.m4: Likewise.
37173         * m4/settime.m4: Likewise.
37174         * m4/sig2str.m4: Likewise.
37175         * m4/sig_atomic_t.m4: Likewise.
37176         * m4/signalblocking.m4: Likewise.
37177         * m4/signbit.m4: Likewise.
37178         * m4/sigpipe.m4: Likewise.
37179         * m4/sockets.m4: Likewise.
37180         * m4/sockpfaf.m4: Likewise.
37181         * m4/st_dm_mode.m4: Likewise.
37182         * m4/stat-time.m4: Likewise.
37183         * m4/stdbool.m4: Likewise.
37184         * m4/stdint.m4: Likewise.
37185         * m4/stdint_h.m4: Likewise.
37186         * m4/stpcpy.m4: Likewise.
37187         * m4/stpncpy.m4: Likewise.
37188         * m4/strcase.m4: Likewise.
37189         * m4/strchrnul.m4: Likewise.
37190         * m4/strcspn.m4: Likewise.
37191         * m4/strdup.m4: Likewise.
37192         * m4/strftime.m4: Likewise.
37193         * m4/strndup.m4: Likewise.
37194         * m4/strnlen.m4: Likewise.
37195         * m4/strpbrk.m4: Likewise.
37196         * m4/strptime.m4: Likewise.
37197         * m4/strsep.m4: Likewise.
37198         * m4/strtod.m4: Likewise.
37199         * m4/strtoimax.m4: Likewise.
37200         * m4/strtok_r.m4: Likewise.
37201         * m4/strtol.m4: Likewise.
37202         * m4/strtoll.m4: Likewise.
37203         * m4/strtoul.m4: Likewise.
37204         * m4/strtoull.m4: Likewise.
37205         * m4/strtoumax.m4: Likewise.
37206         * m4/strverscmp.m4: Likewise.
37207         * m4/threadlib.m4: Likewise.
37208         * m4/timegm.m4: Likewise.
37209         * m4/tm_gmtoff.m4: Likewise.
37210         * m4/tmpdir.m4: Likewise.
37211         * m4/tmpfile.m4: Likewise.
37212         * m4/tzset.m4: Likewise.
37213         * m4/uintmax_t.m4: Likewise.
37214         * m4/unlinkdir.m4: Likewise.
37215         * m4/unlocked-io.m4: Likewise.
37216         * m4/uptime.m4: Likewise.
37217         * m4/userspec.m4: Likewise.
37218         * m4/utimbuf.m4: Likewise.
37219         * m4/utime.m4: Likewise.
37220         * m4/utimes-null.m4: Likewise.
37221         * m4/utimes.m4: Likewise.
37222         * m4/vararrays.m4: Likewise.
37223         * m4/vasnprintf.m4: Likewise.
37224         * m4/vfprintf-posix.m4: Likewise.
37225         * m4/vprintf-posix.m4: Likewise.
37226         * m4/wait-process.m4: Likewise.
37227         * m4/wchar_t.m4: Likewise.
37228         * m4/wint_t.m4: Likewise.
37229         * m4/write-any-file.m4: Likewise.
37230         * m4/yield.m4: Likewise.
37231
37232 2009-01-13  Bruno Haible  <bruno@clisp.org>
37233
37234         Avoid test-copy-file.sh failures when ACL support insufficient.
37235         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
37236         TESTS_ENVIRONMENT.
37237         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
37238         Reported by Jim Meyering.
37239
37240 2009-01-13  Bruno Haible  <bruno@clisp.org>
37241
37242         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
37243         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
37244         * modules/unistdio/u8-printf-parse (Files): Likewise.
37245         * modules/unistdio/u32-printf-parse (Files): Likewise.
37246         * modules/unistdio/ulc-printf-parse (Files): Likewise.
37247
37248 2009-01-13  Simon Josefsson  <simon@josefsson.org>
37249
37250         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
37251         and m4/inttypes_h.m4 too.
37252
37253 2009-01-12  Eric Blake  <ebb9@byu.net>
37254
37255         tests: IRIX 6.2 cc can't compile -0.0 into .data
37256         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
37257         rather than at compile-time.
37258         * tests/test-floorl.c (minus_zero): Likewise.
37259         * tests/test-frexpl.c (minus_zero): Likewise.
37260         * tests/test-isnan.c (minus_zerol): Likewise.
37261         * tests/test-isnanl.h (minus_zero): Likewise.
37262         * tests/test-ldexpl.c (minus_zero): Likewise.
37263         * tests/test-roundl.c (minus_zero): Likewise.
37264         * tests/test-signbit.c (minus_zerol): Likewise.
37265         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
37266         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
37267         * tests/test-truncl.c (minus_zero): Likewise.
37268         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
37269         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
37270         Reported by Tom G. Christensen and Nelson H. F. Beebe.
37271
37272 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
37273
37274         regex: fix glibc bug 9697
37275         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
37276         handling.
37277
37278 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
37279
37280         regex: fix glibc bug 697
37281         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
37282         being NULL also if there are no backreferences.
37283
37284 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
37285
37286         regex: merge glibc changes
37287         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
37288         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
37289         re_string_skip_chars, re_string_reconstruct): Likewise.
37290         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
37291
37292 2009-01-07  Jim Meyering  <meyering@redhat.com>
37293
37294         poll: filter through cppi
37295         * lib/poll.c: Indent cpp directives to reflect nesting.
37296
37297 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
37298
37299         poll: don't return uninitialized
37300         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
37301
37302 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
37303
37304         avoid compile failure on AIX 6.1
37305         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
37306         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
37307
37308 2009-01-04  Jim Meyering  <meyering@redhat.com>
37309
37310         remove duplicate inclusion of <stdio.h>
37311         * tests/test-fprintf-posix.c: Likewise.
37312         * tests/test-printf-posix.c: Likewise.
37313         * tests/test-snprintf-posix.c: Likewise.
37314         * tests/test-sprintf-posix.c: Likewise.
37315         * tests/test-vasprintf-posix.c: Likewise.
37316         * tests/test-vfprintf-posix.c: Likewise.
37317         * tests/test-vprintf-posix.c: Likewise.
37318         * tests/test-vsnprintf-posix.c: Likewise.
37319         * tests/test-vsprintf-posix.c: Likewise.
37320
37321 2009-01-03  Jim Meyering  <meyering@redhat.com>
37322
37323         gnulib-tool: fix sed-based filtering
37324         * gnulib-tool (func_filter_filelist): Remove extra backslash
37325         in sed_fff_filter definition.
37326
37327 2009-01-02  Jim Meyering  <meyering@redhat.com>
37328
37329         strftime: avoid compilation failure on Solaris 2.6
37330         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
37331         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
37332         Don't #define mbrlen or mbsinit, since now they're guaranteed to
37333         be available.  Reported by Tom G. Christensen.  Details in
37334         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
37335
37336 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37337             Bruno Haible  <bruno@clisp.org>
37338
37339         Speed up gnulib-tool by doing more string processing through shell
37340         built-ins.
37341         * gnulib-tool (fast_func_append): New variable.
37342         (func_remove_prefix, func_remove_suffix): New functions.
37343         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
37344         (func_filter_filelist): New function.
37345         (func_get_dependencies): Use func_remove_suffix instead of sed.
37346         (func_get_automake_snippet): Use func_filter_filelist instead of a
37347         subshell and sed invocation.
37348
37349 2009-01-01  Bruno Haible  <bruno@clisp.org>
37350
37351         Fix a security bug.
37352         * gnulib-tool (func_import, import, update): Don't allow the characters
37353         '"', '$', '`', '\' in macro arguments that become part of commands that
37354         are evaluated.
37355
37356 2009-01-01  Bruno Haible  <bruno@clisp.org>
37357
37358         * gnulib-tool (func_reset_sigpipe): Add more comments.
37359
37360 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37361
37362         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
37363         func_emit_tests_Makefile_am, func_import): Abort loops early if we
37364         already know the answer.
37365
37366 2009-01-01  Jim Meyering  <meyering@redhat.com>
37367
37368         * lib/version-etc.c (version_etc_va): Update copyright year.
37369
37370 2008-12-30  Bruno Haible  <bruno@clisp.org>
37371
37372         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
37373         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
37374         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
37375
37376 2008-12-29  Eric Blake  <ebb9@byu.net>
37377
37378         multiarch: avoid autoconf AC_REQUIRE bug
37379         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
37380         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
37381         2.63 and older.
37382         Reported by Bruno Haible, and analyzed in
37383         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
37384
37385 2008-12-29  Bruno Haible  <bruno@clisp.org>
37386
37387         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
37388         files in subdirectories correctly.
37389         Reported by Ralf Wildenhues.
37390
37391 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37392
37393         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
37394         rather than 'join FILE -', for Solaris join.
37395
37396 2008-12-29  Bruno Haible  <bruno@clisp.org>
37397
37398         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
37399         quoting.
37400         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
37401         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
37402         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
37403         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
37404         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
37405         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
37406         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
37407         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
37408         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
37409         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
37410         * m4/nls.m4 (AM_NLS): Likewise.
37411         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
37412         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
37413         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
37414         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
37415         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
37416         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
37417         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
37418         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
37419         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
37420         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
37421         * m4/xsize.m4 (gl_XSIZE): Likewise.
37422         Suggested by Jim Meyering.
37423
37424 2008-11-17  Bruce Korb  <bkorb@gnu.org>
37425
37426         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
37427         * lib/parse-duration.c: use a switch instead of cascading if's.
37428
37429 2008-12-29  Eric Blake  <ebb9@byu.net>
37430
37431         wchar.h: supply WEOF on Irix 5.3
37432         * lib/wchar.in.h (wint_t): Also supply WEOF.
37433         * lib/wctype.in.h (wint_t): Likewise.
37434         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
37435         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
37436         Reported by Tom G. Christensen.
37437
37438 2008-12-26  Bruno Haible  <bruno@clisp.org>
37439
37440         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
37441         i486, i586, i686.
37442
37443 2008-12-26  Bruno Haible  <bruno@clisp.org>
37444
37445         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
37446
37447 2008-12-26  Bruno Haible  <bruno@clisp.org>
37448
37449         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
37450         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
37451         not __STDC_CONSTANT_MACROS.
37452         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
37453
37454 2008-12-25  Bruno Haible  <bruno@clisp.org>
37455
37456         Add support for universal builds to vasnprintf.
37457         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
37458         universal builds, guess no.
37459         * modules/vasnprintf-posix (Depends-on): Add multiarch.
37460         * modules/vasprintf-posix (Depends-on): Likewise.
37461         * modules/fprintf-posix (Depends-on): Likewise.
37462         * modules/vfprintf-posix (Depends-on): Likewise.
37463         * modules/snprintf-posix (Depends-on): Likewise.
37464         * modules/vsnprintf-posix (Depends-on): Likewise.
37465         * modules/sprintf-posix (Depends-on): Likewise.
37466         * modules/vsprintf-posix (Depends-on): Likewise.
37467         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
37468         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
37469         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
37470         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
37471         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
37472         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
37473         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
37474
37475         Add support for universal builds to <inttypes.h>.
37476         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
37477         _SCNu64_PREFIX): In Apple
37478         universal builds, define directly, using _LP64.
37479         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
37480         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
37481         * modules/inttypes (Depends-on): Add multiarch.
37482         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
37483
37484         Add support for universal builds to <stdint.h>.
37485         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
37486         universal builds, define directly, using _LP64.
37487         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
37488         Apple universal builds, don't test for the size and suffix of ptrdiff_t
37489         and size_t.
37490         * modules/stdint (Depends-on): Add multiarch.
37491         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
37492
37493         New module 'multiarch'.
37494         * modules/multiarch: New file.
37495         * m4/multiarch.m4: New file.
37496
37497 2008-12-25  Bruno Haible  <bruno@clisp.org>
37498
37499         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
37500
37501 2008-12-25  Bruno Haible  <bruno@clisp.org>
37502
37503         * modules/btowc (License): Relicense under LGPLv2+.
37504         * modules/mbsinit (License): Likewise.
37505         * modules/mbrtowc (License): Likewise.
37506         * modules/wcrtomb (License): Likewise.
37507         * modules/streq (License): Likewise.
37508         Reported by David Lutterkort <lutter@redhat.com>.
37509
37510 2008-12-23  Bruno Haible  <bruno@clisp.org>
37511
37512         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
37513
37514 2008-12-23  Bruno Haible  <bruno@clisp.org>
37515
37516         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
37517         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
37518         GETADDRINFO_LIB, not in LIBS.
37519         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
37520         * modules/canon-host (Link): Likewise.
37521         * NEWS: Mention the change.
37522         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
37523         GETADDRINFO_LIB.
37524
37525 2008-12-22  Bruno Haible  <bruno@clisp.org>
37526
37527         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
37528         * doc/posix-functions/iswalpha_l.texi: Likewise.
37529         * doc/posix-functions/iswblank_l.texi: Likewise.
37530         * doc/posix-functions/iswcntrl_l.texi: Likewise.
37531         * doc/posix-functions/iswctype_l.texi: Likewise.
37532         * doc/posix-functions/iswdigit_l.texi: Likewise.
37533         * doc/posix-functions/iswgraph_l.texi: Likewise.
37534         * doc/posix-functions/iswlower_l.texi: Likewise.
37535         * doc/posix-functions/iswprint_l.texi: Likewise.
37536         * doc/posix-functions/iswpunct_l.texi: Likewise.
37537         * doc/posix-functions/iswspace_l.texi: Likewise.
37538         * doc/posix-functions/iswupper_l.texi: Likewise.
37539         * doc/posix-functions/iswxdigit_l.texi: Likewise.
37540         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
37541         * doc/posix-functions/open_wmemstream.texi: Likewise.
37542         * doc/posix-functions/swscanf.texi: Likewise.
37543         * doc/posix-functions/towctrans_l.texi: Likewise.
37544         * doc/posix-functions/towlower.texi: Likewise.
37545         * doc/posix-functions/towlower_l.texi: Likewise.
37546         * doc/posix-functions/towupper.texi: Likewise.
37547         * doc/posix-functions/towupper_l.texi: Likewise.
37548         * doc/posix-functions/vfwprintf.texi: Likewise.
37549         * doc/posix-functions/vfwscanf.texi: Likewise.
37550         * doc/posix-functions/vswscanf.texi: Likewise.
37551         * doc/posix-functions/vwprintf.texi: Likewise.
37552         * doc/posix-functions/vwscanf.texi: Likewise.
37553         * doc/posix-functions/wcpcpy.texi: Likewise.
37554         * doc/posix-functions/wcpncpy.texi: Likewise.
37555         * doc/posix-functions/wcscasecmp.texi: Likewise.
37556         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
37557         * doc/posix-functions/wcscoll_l.texi: Likewise.
37558         * doc/posix-functions/wcsdup.texi: Likewise.
37559         * doc/posix-functions/wcsncasecmp.texi: Likewise.
37560         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
37561         * doc/posix-functions/wcsnlen.texi: Likewise.
37562         * doc/posix-functions/wcsnrtombs.texi: Likewise.
37563         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
37564         * doc/posix-functions/wctrans_l.texi: Likewise.
37565         * doc/posix-functions/wctype_l.texi: Likewise.
37566         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
37567         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
37568         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
37569         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
37570         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
37571         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
37572         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
37573         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
37574         * doc/glibc-functions/wcschrnul.texi: Likewise.
37575         * doc/glibc-functions/wcsftime_l.texi: Likewise.
37576         * doc/glibc-functions/wcstod_l.texi: Likewise.
37577         * doc/glibc-functions/wcstof_l.texi: Likewise.
37578         * doc/glibc-functions/wcstol_l.texi: Likewise.
37579         * doc/glibc-functions/wcstold_l.texi: Likewise.
37580         * doc/glibc-functions/wcstoll_l.texi: Likewise.
37581         * doc/glibc-functions/wcstoq.texi: Likewise.
37582         * doc/glibc-functions/wcstoul_l.texi: Likewise.
37583         * doc/glibc-functions/wcstoull_l.texi: Likewise.
37584         * doc/glibc-functions/wcstouq.texi: Likewise.
37585         * doc/glibc-functions/wmempcpy.texi: Likewise.
37586
37587 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
37588             Eric Blake  <ebb9@byu.net>
37589             Paolo Bonzini  <bonzini@gnu.org>
37590             Bruno Haible  <bruno@clisp.org>
37591
37592         Make c-stack work on Haiku.
37593         * lib/c-stack.c (SA_ONSTACK): Define fallback.
37594         (c_stack_action): Use SA_ONSTACK flag.
37595
37596 2008-12-22  Bruno Haible  <bruno@clisp.org>
37597
37598         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
37599
37600 2008-12-22  Bruno Haible  <bruno@clisp.org>
37601
37602         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
37603         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
37604         being overridden.
37605         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
37606         New macros.
37607         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
37608         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
37609         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
37610         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
37611
37612 2008-12-22  Bruno Haible  <bruno@clisp.org>
37613
37614         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
37615         from test code.
37616
37617 2008-12-22  Eric Blake  <ebb9@byu.net>
37618
37619         Avoid gcc warnings on cygwin.
37620         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
37621         Avoid unused variable.
37622         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
37623         Likewise.
37624
37625 2008-12-22  Bruno Haible  <bruno@clisp.org>
37626
37627         Remove HAVE_MBRTOWC conditionals.
37628         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
37629         (mbscasecmp): Assume mbrtowc function.
37630         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
37631         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
37632         * lib/mbschr.c: Include mbuiter.h unconditionally.
37633         (mbschr): Assume mbrtowc function.
37634         * lib/mbscspn.c: Include mbuiter.h unconditionally.
37635         (mbscspn): Assume mbrtowc function.
37636         * lib/mbslen.c: Include mbuiter.h unconditionally.
37637         (mbslen): Assume mbrtowc function.
37638         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
37639         (mbsncasecmp): Assume mbrtowc function.
37640         * lib/mbsnlen.c: Include mbiter.h unconditionally.
37641         (mbsnlen): Assume mbrtowc function.
37642         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
37643         (mbspbrk): Assume mbrtowc function.
37644         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
37645         (mbspcasecmp): Assume mbrtowc function.
37646         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
37647         (mbsrchr): Assume mbrtowc function.
37648         * lib/mbssep.c: Include mbuiter.h unconditionally.
37649         (mbssep): Assume mbrtowc function.
37650         * lib/mbsspn.c: Include mbuiter.h unconditionally.
37651         (mbsspn): Assume mbrtowc function.
37652         * lib/mbsstr.c: Include mbuiter.h unconditionally.
37653         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
37654         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
37655         (mbstok_r): Assume mbrtowc function.
37656         * lib/propername.c: Include mbuiter.h unconditionally.
37657         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
37658         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
37659         (trim2): Assume mbrtowc function.
37660         * lib/mbswidth.c (mbsinit): Remove fallback definition.
37661         (mbsnwidth): Assume mbrtowc function.
37662         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
37663         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
37664         fallback definitions.
37665         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
37666
37667 2008-12-22  Bruno Haible  <bruno@clisp.org>
37668
37669         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
37670
37671 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
37672
37673         * modules/regex: Request emulations for the mb*/wc* functions we need.
37674         * m4/regex.m4: Don't look for those functions here.
37675         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
37676
37677 2008-12-22  Bruno Haible  <bruno@clisp.org>
37678
37679         * modules/fnmatch (Depends-on): Remove duplicated dependency.
37680
37681 2008-12-21  Bruno Haible  <bruno@clisp.org>
37682
37683         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
37684         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
37685         (Include): Remove conditionalization.
37686         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
37687         (Include): Remove conditionalization.
37688         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
37689         (Include): Remove conditionalization.
37690         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
37691         * m4/mbfile.m4 (gl_MBFILE): Likewise.
37692         * NEWS: Mention the change.
37693         Reported by Alan Hourihane <alanh@fairlite.co.uk>
37694         via Sergey Poznyakoff <gray@gnu.org.ua>.
37695
37696 2008-12-21  Bruno Haible  <bruno@clisp.org>
37697
37698         * MODULES.html.sh (Extended multibyte and wide character utilities
37699         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
37700         wcrtomb, wcsrtombs.
37701         (Support for systems lacking POSIX:2008): Add accept, bind, close,
37702         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
37703         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
37704         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
37705
37706 2008-12-21  Bruno Haible  <bruno@clisp.org>
37707
37708         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
37709
37710 2008-12-21  Bruno Haible  <bruno@clisp.org>
37711
37712         * modules/wcsnrtombs-tests: New file.
37713         * tests/test-wcsnrtombs1.sh: New file.
37714         * tests/test-wcsnrtombs2.sh: New file.
37715         * tests/test-wcsnrtombs3.sh: New file.
37716         * tests/test-wcsnrtombs4.sh: New file.
37717         * tests/test-wcsnrtombs.c: New file.
37718
37719         New module 'wcsnrtombs'.
37720         * lib/wchar.in.h (wcsnrtombs): New declaration.
37721         * lib/wcsnrtombs.c: New file.
37722         * lib/wcsrtombs-state.c: New file.
37723         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
37724         (internal_state): Remove variable.
37725         * m4/wcsnrtombs.m4: New file.
37726         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
37727         compilation units.
37728         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
37729         HAVE_WCSNRTOMBS.
37730         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
37731         HAVE_WCSNRTOMBS.
37732         * modules/wcsnrtombs: New file.
37733         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
37734         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
37735
37736 2008-12-21  Bruno Haible  <bruno@clisp.org>
37737
37738         * modules/wcsrtombs-tests: New file.
37739         * tests/test-wcsrtombs1.sh: New file.
37740         * tests/test-wcsrtombs2.sh: New file.
37741         * tests/test-wcsrtombs3.sh: New file.
37742         * tests/test-wcsrtombs4.sh: New file.
37743         * tests/test-wcsrtombs.c: New file.
37744
37745         New module 'wcsrtombs'.
37746         * lib/wchar.in.h (wcsrtombs): New declaration.
37747         * lib/wcsrtombs.c: New file.
37748         * m4/wcsrtombs.m4: New file.
37749         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
37750         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
37751         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
37752         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
37753         * modules/wcsrtombs: New file.
37754         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
37755         bugs.
37756
37757 2008-12-21  Bruno Haible  <bruno@clisp.org>
37758
37759         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
37760         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
37761         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
37762         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
37763         if not correct.
37764         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
37765         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
37766         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
37767         m4/locale-zh.m4, m4/codeset.m4.
37768         * doc/posix-functions/wcrtomb.texi: Document the bug.
37769
37770 2008-12-21  Bruno Haible  <bruno@clisp.org>
37771
37772         Work around a btowc() bug on IRIX 6.5.
37773         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
37774         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
37775         REPLACE_WTOBC if not.
37776         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
37777         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
37778         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
37779
37780 2008-12-21  Bruno Haible  <bruno@clisp.org>
37781
37782         * modules/wcrtomb-tests: New file.
37783         * tests/test-wcrtomb.sh: New file.
37784         * tests/test-wcrtomb.c: New file.
37785
37786         New module 'wcrtomb'.
37787         * lib/wchar.in.h (wcrtomb): New declaration.
37788         * lib/wcrtomb.c: New file.
37789         * m4/wcrtomb.m4: New file.
37790         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
37791         HAVE_WCRTOMB.
37792         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
37793         HAVE_WCRTOMB.
37794         * modules/wcrtomb: New file.
37795         * doc/posix-functions/wcrtomb.texi: Mention the new module.
37796
37797 2008-12-21  Bruno Haible  <bruno@clisp.org>
37798
37799         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
37800         * modules/mbsrtowcs (Files): Likewise.
37801         * modules/wctob (Files): Likewise.
37802         * modules/c-strcase-tests (Files): Likewise.
37803         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
37804         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
37805         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
37806         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
37807         * modules/vasnprintf-posix-tests (Files): Likewise.
37808
37809 2008-12-21  William Pursell  <bill.pursell@gmail.com>
37810
37811         gitlog-to-changelog: pass all command-line arguments to git-log
37812         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
37813         it is sometimes convenient to filter the commits in various ways.
37814         gitlog-to-changelog only allows --since to specify a start date,
37815         but git-log itself supports many other filtering mechanisms.
37816         At the moment, I want to filter by branch name.  Rather than
37817         adding a --branch option to gitlog-to-changelog, it seems more
37818         flexible to simply pass all options directly to git-log and let
37819         git do the work.  Notice that this effectively makes --since a
37820         redundant option for gitlog-to-changelog, but removing it would
37821         require current usage to change since calls would then require
37822         an additional '--'.
37823
37824 2008-12-21  Bruno Haible  <bruno@clisp.org>
37825
37826         * modules/mbsnrtowcs-tests: New file.
37827         * tests/test-mbsnrtowcs1.sh: New file.
37828         * tests/test-mbsnrtowcs2.sh: New file.
37829         * tests/test-mbsnrtowcs3.sh: New file.
37830         * tests/test-mbsnrtowcs4.sh: New file.
37831         * tests/test-mbsnrtowcs.c: New file.
37832
37833         New module 'mbsnrtowcs'.
37834         * lib/wchar.in.h (mbsnrtowcs): New declaration.
37835         * lib/mbsnrtowcs.c: New file.
37836         * lib/mbsrtowcs-state.c: New file.
37837         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
37838         (internal_state): Remove variable.
37839         * m4/mbsnrtowcs.m4: New file.
37840         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
37841         compilation units.
37842         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
37843         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
37844         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
37845         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
37846         * modules/mbsnrtowcs: New file.
37847         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
37848         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
37849         portability problem.
37850
37851 2008-12-21  Bruno Haible  <bruno@clisp.org>
37852
37853         Work around mbsrtowcs bug.
37854         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
37855         (gl_FUNC_MBSRTOWCS): Invoke it.
37856         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
37857         m4/locale-zh.m4.
37858         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
37859
37860 2008-12-21  Bruno Haible  <bruno@clisp.org>
37861
37862         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
37863
37864 2008-12-21  Bruno Haible  <bruno@clisp.org>
37865
37866         Update doc for AIX.
37867         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
37868         16-bit wchar_t type.
37869         * doc/posix-functions/btowc.texi: Likewise.
37870         * doc/posix-functions/fgetwc.texi: Likewise.
37871         * doc/posix-functions/fgetws.texi: Likewise.
37872         * doc/posix-functions/fputwc.texi: Likewise.
37873         * doc/posix-functions/fputws.texi: Likewise.
37874         * doc/posix-functions/fwide.texi: Likewise.
37875         * doc/posix-functions/fwprintf.texi: Likewise.
37876         * doc/posix-functions/fwscanf.texi: Likewise.
37877         * doc/posix-functions/getwchar.texi: Likewise.
37878         * doc/posix-functions/getwc.texi: Likewise.
37879         * doc/posix-functions/iswalnum.texi: Likewise.
37880         * doc/posix-functions/iswalpha.texi: Likewise.
37881         * doc/posix-functions/iswblank.texi: Likewise.
37882         * doc/posix-functions/iswcntrl.texi: Likewise.
37883         * doc/posix-functions/iswctype.texi: Likewise.
37884         * doc/posix-functions/iswdigit.texi: Likewise.
37885         * doc/posix-functions/iswgraph.texi: Likewise.
37886         * doc/posix-functions/iswlower.texi: Likewise.
37887         * doc/posix-functions/iswprint.texi: Likewise.
37888         * doc/posix-functions/iswpunct.texi: Likewise.
37889         * doc/posix-functions/iswspace.texi: Likewise.
37890         * doc/posix-functions/iswupper.texi: Likewise.
37891         * doc/posix-functions/iswxdigit.texi: Likewise.
37892         * doc/posix-functions/mbrtowc.texi: Likewise.
37893         * doc/posix-functions/mbsrtowcs.texi: Likewise.
37894         * doc/posix-functions/mbstowcs.texi: Likewise.
37895         * doc/posix-functions/mbtowc.texi: Likewise.
37896         * doc/posix-functions/putwchar.texi: Likewise.
37897         * doc/posix-functions/putwc.texi: Likewise.
37898         * doc/posix-functions/swprintf.texi: Likewise.
37899         * doc/posix-functions/tolower.texi: Likewise.
37900         * doc/posix-functions/toupper.texi: Likewise.
37901         * doc/posix-functions/towctrans.texi: Likewise.
37902         * doc/posix-functions/ungetwc.texi: Likewise.
37903         * doc/posix-functions/vswprintf.texi: Likewise.
37904         * doc/posix-functions/wcrtomb.texi: Likewise.
37905         * doc/posix-functions/wcscat.texi: Likewise.
37906         * doc/posix-functions/wcschr.texi: Likewise.
37907         * doc/posix-functions/wcscmp.texi: Likewise.
37908         * doc/posix-functions/wcscoll.texi: Likewise.
37909         * doc/posix-functions/wcscpy.texi: Likewise.
37910         * doc/posix-functions/wcscspn.texi: Likewise.
37911         * doc/posix-functions/wcsftime.texi: Likewise.
37912         * doc/posix-functions/wcslen.texi: Likewise.
37913         * doc/posix-functions/wcsncat.texi: Likewise.
37914         * doc/posix-functions/wcsncmp.texi: Likewise.
37915         * doc/posix-functions/wcsncpy.texi: Likewise.
37916         * doc/posix-functions/wcspbrk.texi: Likewise.
37917         * doc/posix-functions/wcsrchr.texi: Likewise.
37918         * doc/posix-functions/wcsrtombs.texi: Likewise.
37919         * doc/posix-functions/wcsspn.texi: Likewise.
37920         * doc/posix-functions/wcsstr.texi: Likewise.
37921         * doc/posix-functions/wcstod.texi: Likewise.
37922         * doc/posix-functions/wcstof.texi: Likewise.
37923         * doc/posix-functions/wcstoimax.texi: Likewise.
37924         * doc/posix-functions/wcstok.texi: Likewise.
37925         * doc/posix-functions/wcstold.texi: Likewise.
37926         * doc/posix-functions/wcstoll.texi: Likewise.
37927         * doc/posix-functions/wcstol.texi: Likewise.
37928         * doc/posix-functions/wcstombs.texi: Likewise.
37929         * doc/posix-functions/wcstoull.texi: Likewise.
37930         * doc/posix-functions/wcstoul.texi: Likewise.
37931         * doc/posix-functions/wcstoumax.texi: Likewise.
37932         * doc/posix-functions/wcswidth.texi: Likewise.
37933         * doc/posix-functions/wcsxfrm.texi: Likewise.
37934         * doc/posix-functions/wctob.texi: Likewise.
37935         * doc/posix-functions/wctomb.texi: Likewise.
37936         * doc/posix-functions/wctrans.texi: Likewise.
37937         * doc/posix-functions/wctype.texi: Likewise.
37938         * doc/posix-functions/wcwidth.texi: Likewise.
37939         * doc/posix-functions/wmemchr.texi: Likewise.
37940         * doc/posix-functions/wmemcmp.texi: Likewise.
37941         * doc/posix-functions/wmemcpy.texi: Likewise.
37942         * doc/posix-functions/wmemmove.texi: Likewise.
37943         * doc/posix-functions/wmemset.texi: Likewise.
37944         * doc/posix-functions/wprintf.texi: Likewise.
37945         * doc/posix-functions/wscanf.texi: Likewise.
37946
37947 2008-12-21  Bruno Haible  <bruno@clisp.org>
37948
37949         Update doc for HP-UX 11.11.
37950         * doc/posix-functions/btowc.texi: Clarify that the function is missing
37951         in HP-UX version 11.00, not in all versions of HP-UX 11.
37952         * doc/posix-functions/fwide.texi: Likewise.
37953         * doc/posix-functions/fwprintf.texi: Likewise.
37954         * doc/posix-functions/fwscanf.texi: Likewise.
37955         * doc/posix-functions/inet_ntop.texi: Likewise.
37956         * doc/posix-functions/inet_pton.texi: Likewise.
37957         * doc/posix-functions/mbrlen.texi: Likewise.
37958         * doc/posix-functions/mbrtowc.texi: Likewise.
37959         * doc/posix-functions/mbsinit.texi: Likewise.
37960         * doc/posix-functions/mbsrtowcs.texi: Likewise.
37961         * doc/posix-functions/swprintf.texi: Likewise.
37962         * doc/posix-functions/swscanf.texi: Likewise.
37963         * doc/posix-functions/towctrans.texi: Likewise.
37964         * doc/posix-functions/vfwprintf.texi: Likewise.
37965         * doc/posix-functions/vswprintf.texi: Likewise.
37966         * doc/posix-functions/vwprintf.texi: Likewise.
37967         * doc/posix-functions/wcrtomb.texi: Likewise.
37968         * doc/posix-functions/wcsrtombs.texi: Likewise.
37969         * doc/posix-functions/wcsstr.texi: Likewise.
37970         * doc/posix-functions/wctob.texi: Likewise.
37971         * doc/posix-functions/wctrans.texi: Likewise.
37972         * doc/posix-functions/wmemchr.texi: Likewise.
37973         * doc/posix-functions/wmemcmp.texi: Likewise.
37974         * doc/posix-functions/wmemcpy.texi: Likewise.
37975         * doc/posix-functions/wmemmove.texi: Likewise.
37976         * doc/posix-functions/wmemset.texi: Likewise.
37977         * doc/posix-functions/wprintf.texi: Likewise.
37978         * doc/posix-functions/wscanf.texi: Likewise.
37979
37980 2008-12-21  Bruno Haible  <bruno@clisp.org>
37981
37982         Work around a portability problem.
37983         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
37984         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
37985
37986 2008-12-20  Bruno Haible  <bruno@clisp.org>
37987
37988         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
37989         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
37990         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
37991         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
37992         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
37993
37994         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
37995         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
37996         set.
37997         (GNULIB_defined_mbstate_t): New macro.
37998         (mbsinit): Redefine if REPLACE_MBSINIT is set.
37999         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
38000         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
38001         reuses the system's mbrtowc function but works around the bugs.
38002         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
38003         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
38004         macros.
38005         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
38006         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
38007         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
38008         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
38009         REPLACE_MBSINIT if mbsinit needs to be overridden.
38010         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
38011         REPLACE_MBSINIT, REPLACE_MBRTOWC.
38012         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
38013         REPLACE_MBSINIT, REPLACE_MBRTOWC.
38014         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
38015         m4/locale-zh.m4.
38016         (Depends): Add mbsinit.
38017         * modules/mbsinit (Depends): Add mbrtowc.
38018         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
38019
38020 2008-12-20  Bruno Haible  <bruno@clisp.org>
38021
38022         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
38023         so that there are no conversion errors on AIX.
38024         * tests/test-mbsrtowcs.c (main): LIkewise.
38025
38026 2008-12-20  Bruno Haible  <bruno@clisp.org>
38027
38028         Work around wctob bug on Solaris <= 9.
38029         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
38030         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
38031         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
38032         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
38033         * modules/wctob (Files): Add m4/locale-fr.m4.
38034         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
38035
38036 2008-12-20  Bruno Haible  <bruno@clisp.org>
38037
38038         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
38039         /dev/null.
38040         * tests/test-select-in.sh: Likewise.
38041         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38042
38043 2008-12-20  Bruno Haible  <bruno@clisp.org>
38044
38045         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
38046         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
38047         Cygwin 1.5.x.
38048
38049 2008-12-20  Bruno Haible  <bruno@clisp.org>
38050
38051         Ensure mbstate_t is defined on HP-UX 11.11.
38052         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
38053         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
38054         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
38055         AC_USE_SYSTEM_EXTENSIONS.
38056         * modules/fnmatch (Depends-on): Add extensions.
38057         * modules/mbrlen (Depends-on): Likewise.
38058         * modules/mbrtowc (Depends-on): Likewise.
38059         * modules/mbsinit (Depends-on): Likewise.
38060         * modules/mbsrtowcs (Depends-on): Likewise.
38061         * modules/mbswidth (Depends-on): Likewise.
38062         * modules/quotearg (Depends-on): Likewise.
38063         * modules/strftime (Depends-on): Likewise.
38064
38065 2008-12-20  Bruno Haible  <bruno@clisp.org>
38066
38067         Ensure wctob is declared on IRIX 6.5.
38068         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
38069         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
38070         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
38071         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
38072         of HAVE_WCTOB.
38073         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
38074         HAVE_WCTOB.
38075         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
38076
38077 2008-12-19  Bruno Haible  <bruno@clisp.org>
38078
38079         * modules/mbsrtowcs-tests: New file.
38080         * tests/test-mbsrtowcs1.sh: New file.
38081         * tests/test-mbsrtowcs2.sh: New file.
38082         * tests/test-mbsrtowcs3.sh: New file.
38083         * tests/test-mbsrtowcs4.sh: New file.
38084         * tests/test-mbsrtowcs.c: New file.
38085
38086         New module 'mbsrtowcs'.
38087         * lib/wchar.in.h (mbsrtowcs): New declaration.
38088         * lib/mbsrtowcs.c: New file.
38089         * m4/mbsrtowcs.m4: New file.
38090         * modules/mbsrtowcs: New file.
38091         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
38092         HAVE_MBSRTOWCS.
38093         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
38094         HAVE_MBSRTOWCS.
38095         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
38096
38097 2008-12-19  Bruno Haible  <bruno@clisp.org>
38098
38099         New module 'mbrlen'.
38100         * lib/wchar.in.h (mbrlen): New declaration.
38101         * lib/mbrlen.c: New file.
38102         * m4/mbrlen.m4: New file.
38103         * modules/mbrlen: New file.
38104         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
38105         HAVE_MBRLEN.
38106         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
38107         HAVE_MBRLEN.
38108         * doc/posix-functions/mbrlen.texi: Document the new module.
38109
38110 2008-12-19  Bruno Haible  <bruno@clisp.org>
38111
38112         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
38113         * modules/mbrtowc (Depends-on): Add verify.
38114         Suggested by Paul Eggert.
38115
38116 2008-12-18  Bruno Haible  <bruno@clisp.org>
38117
38118         * modules/mbsinit-tests: New file.
38119         * tests/test-mbsinit.sh: New file.
38120         * tests/test-mbsinit.c: New file.
38121
38122 2008-12-18  Bruno Haible  <bruno@clisp.org>
38123
38124         * modules/mbrtowc-tests: New file.
38125         * tests/test-mbrtowc1.sh: New file.
38126         * tests/test-mbrtowc2.sh: New file.
38127         * tests/test-mbrtowc3.sh: New file.
38128         * tests/test-mbrtowc4.sh: New file.
38129         * tests/test-mbrtowc.c: New file.
38130
38131         New module 'mbrtowc'.
38132         * lib/wchar.in.h (mbstate_t): Override when the system does not have
38133         mbsinit and mbrtowc.
38134         (mbrtowc): New declaration.
38135         * lib/mbrtowc.c: New file.
38136         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
38137         * modules/mbrtowc: New file.
38138         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
38139         HAVE_MBRTOWC.
38140         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
38141         HAVE_MBRTOWC.
38142         * doc/posix-functions/mbrtowc.texi: Document the new module.
38143
38144 2008-12-18  Bruno Haible  <bruno@clisp.org>
38145
38146         New module 'wctob'.
38147         * lib/wchar.in.h (wctob): New declaration.
38148         * lib/wctob.c: New file.
38149         * m4/wctob.m4: New file.
38150         * modules/wctob: New file.
38151         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
38152         HAVE_WCTOB.
38153         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
38154         * doc/posix-functions/wctob.texi: Document the new module.
38155
38156 2008-12-18  Bruno Haible  <bruno@clisp.org>
38157
38158         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
38159         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
38160
38161 2008-12-18  Simon Josefsson  <simon@josefsson.org>
38162
38163         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
38164         G. Christensen" <tgc@jupiterrise.com>.
38165
38166         * lib/flock.c: Need to include errno.h.  Reported by "Tom
38167         G. Christensen" <tgc@jupiterrise.com>.
38168
38169         * lib/flock.c: Need to include string.h.  Reported by "Tom
38170         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
38171         <ebb9@byu.net>.
38172
38173 2008-12-18  Bruno Haible  <bruno@clisp.org>
38174
38175         * m4/locale-ja.m4: New file, from GNU gettext.
38176
38177 2008-12-17  Bruno Haible  <bruno@clisp.org>
38178
38179         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
38180         Suggested by Eric Blake.
38181
38182 2008-12-17  Bruno Haible  <bruno@clisp.org>
38183
38184         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
38185
38186 2008-12-17  Bruno Haible  <bruno@clisp.org>
38187
38188         * lib/mbsinit.c: Include verify.h. Verify an assumption.
38189         * modules/mbsinit (Depends-on): Add verify.
38190         Suggested by Paul Eggert.
38191
38192 2008-12-17  Bruno Haible  <bruno@clisp.org>
38193
38194         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
38195         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
38196         gl_FUNC_MBRTOWC.
38197         * m4/mbiter.m4 (gl_MBITER): LIkewise.
38198         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
38199         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
38200         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
38201         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
38202         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
38203         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
38204         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
38205         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
38206         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
38207         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
38208         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
38209         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
38210         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
38211         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
38212         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
38213         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
38214         * modules/trim (configure.ac): Likewise.
38215
38216 2008-12-17  Bruno Haible  <bruno@clisp.org>
38217
38218         * modules/btowc-tests: New file.
38219         * tests/test-btowc1.sh: New file.
38220         * tests/test-btowc2.sh: New file.
38221         * tests/test-btowc.c: New file.
38222
38223         New module 'btowc'.
38224         * lib/wchar.in.h (btowc): New declaration.
38225         * lib/btowc.c: New file.
38226         * m4/btowc.m4: New file.
38227         * modules/btowc: New file.
38228         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
38229         HAVE_BTOWC.
38230         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
38231         * doc/posix-functions/btowc.texi: Document the new module.
38232
38233 2008-12-17  Bruno Haible  <bruno@clisp.org>
38234
38235         New module 'mbsinit'.
38236         * lib/wchar.in.h (mbsinit): New declaration.
38237         * lib/mbsinit.c: New file.
38238         * m4/mbsinit.m4: New file.
38239         * modules/mbsinit: New file.
38240         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
38241         HAVE_MBSINIT.
38242         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
38243         HAVE_MBSINIT.
38244         * doc/posix-functions/mbsinit.texi: Document the new module.
38245
38246 2008-12-16  Bruno Haible  <bruno@clisp.org>
38247
38248         * lib/unistd.in.h: Add comment.
38249         * tests/test-environ.c: Don't include <stdlib.h>.
38250
38251 2008-12-16  Bruno Haible  <bruno@clisp.org>
38252
38253         * lib/parse-duration.h (parse_duration): Document return value
38254         convention.
38255         * lib/parse-duration.c: Include specification header first. Add
38256         comments.
38257         (_): Remove macro.
38258         (parse_year_month_day, parse_hour_minute_second): Move side effects
38259         outside of strchr call.
38260         (parse_non_iso8601): Move side effects outside of isspace call.
38261         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
38262         call.
38263
38264 2008-12-16  Bruno Haible  <bruno@clisp.org>
38265
38266         * tests/test-parse-duration.sh: Produce no output when the test
38267         succeeds.
38268
38269 2008-12-16  Bruno Haible  <bruno@clisp.org>
38270
38271         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
38272         expressions.
38273
38274 2008-12-15  Bruno Haible  <bruno@clisp.org>
38275
38276         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
38277         * doc/glibc-functions/flistxattr.texi: Likewise.
38278         * doc/glibc-functions/fopencookie.texi: Likewise.
38279         * doc/glibc-functions/fremovexattr.texi: Likewise.
38280         * doc/glibc-functions/fsetxattr.texi: Likewise.
38281         * doc/glibc-functions/getxattr.texi: Likewise.
38282         * doc/glibc-functions/lgetxattr.texi: Likewise.
38283         * doc/glibc-functions/listxattr.texi: Likewise.
38284         * doc/glibc-functions/llistxattr.texi: Likewise.
38285         * doc/glibc-functions/lremovexattr.texi: Likewise.
38286         * doc/glibc-functions/lsetxattr.texi: Likewise.
38287         * doc/glibc-functions/removexattr.texi: Likewise.
38288         * doc/glibc-functions/setxattr.texi: Likewise.
38289         * doc/posix-functions/open_memstream.texi: Likewise.
38290
38291 2008-12-15  Eric Blake  <ebb9@byu.net>
38292
38293         Update doc for cygwin 1.7.
38294         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
38295         functions.
38296         * doc/posix-functions/fchmodat.texi: Likewise.
38297         * doc/posix-functions/fchownat.texi: Likewise.
38298         * doc/posix-functions/fdopendir.texi: Likewise.
38299         * doc/posix-functions/fmemopen.texi: Likewise.
38300         * doc/posix-functions/freeaddrinfo.texi: Likewise.
38301         * doc/posix-functions/fstatat.texi: Likewise.
38302         * doc/posix-functions/futimens.texi: Likewise.
38303         * doc/posix-functions/gai_strerror.texi: Likewise.
38304         * doc/posix-functions/getaddrinfo.texi: Likewise.
38305         * doc/posix-functions/getnameinfo.texi: Likewise.
38306         * doc/posix-functions/if_freenameindex.texi: Likewise.
38307         * doc/posix-functions/if_indextoname.texi: Likewise.
38308         * doc/posix-functions/if_nameindex.texi: Likewise.
38309         * doc/posix-functions/if_nametoindex.texi: Likewise.
38310         * doc/posix-functions/insque.texi: Likewise.
38311         * doc/posix-functions/linkat.texi: Likewise.
38312         * doc/posix-functions/llrint.texi: Likewise.
38313         * doc/posix-functions/llrintf.texi: Likewise.
38314         * doc/posix-functions/llrintl.texi: Likewise.
38315         * doc/posix-functions/lockf.texi: Likewise.
38316         * doc/posix-functions/lrintl.texi: Likewise.
38317         * doc/posix-functions/mkdirat.texi: Likewise.
38318         * doc/posix-functions/mkfifoat.texi: Likewise.
38319         * doc/posix-functions/mknodat.texi: Likewise.
38320         * doc/posix-functions/mq_close.texi: Likewise.
38321         * doc/posix-functions/mq_getattr.texi: Likewise.
38322         * doc/posix-functions/mq_notify.texi: Likewise.
38323         * doc/posix-functions/mq_open.texi: Likewise.
38324         * doc/posix-functions/mq_receive.texi: Likewise.
38325         * doc/posix-functions/mq_send.texi: Likewise.
38326         * doc/posix-functions/mq_setattr.texi: Likewise.
38327         * doc/posix-functions/mq_timedreceive.texi: Likewise.
38328         * doc/posix-functions/mq_timedsend.texi: Likewise.
38329         * doc/posix-functions/mq_unlink.texi: Likewise.
38330         * doc/posix-functions/open_memstream.texi: Likewise.
38331         * doc/posix-functions/openat.texi: Likewise.
38332         * doc/posix-functions/posix_fadvise.texi: Likewise.
38333         * doc/posix-functions/posix_fallocate.texi: Likewise.
38334         * doc/posix-functions/posix_madvise.texi: Likewise.
38335         * doc/posix-functions/posix_memalign.texi: Likewise.
38336         * doc/posix-functions/posix_openpt.texi: Likewise.
38337         * doc/posix-functions/readlinkat.texi: Likewise.
38338         * doc/posix-functions/remque.texi: Likewise.
38339         * doc/posix-functions/renameat.texi: Likewise.
38340         * doc/posix-functions/rintl.texi: Likewise.
38341         * doc/posix-functions/sem_unlink.texi: Likewise.
38342         * doc/posix-functions/shm_open.texi: Likewise.
38343         * doc/posix-functions/shm_unlink.texi: Likewise.
38344         * doc/posix-functions/signgam.texi: Likewise.
38345         * doc/posix-functions/sigset.texi: Likewise.
38346         * doc/posix-functions/stpcpy.texi: Likewise.
38347         * doc/posix-functions/stpncpy.texi: Likewise.
38348         * doc/posix-functions/strerror.texi: Likewise.
38349         * doc/posix-functions/strtod.texi: Likewise.
38350         * doc/posix-functions/symlinkat.texi: Likewise.
38351         * doc/posix-functions/unlinkat.texi: Likewise.
38352         * doc/posix-functions/utimensat.texi: Likewise.
38353         * doc/glibc-functions/bindresvport.texi: Likewise.
38354         * doc/glibc-functions/dn_expand.texi: Likewise.
38355         * doc/glibc-functions/exp10.texi: Likewise.
38356         * doc/glibc-functions/exp10f.texi: Likewise.
38357         * doc/glibc-functions/fgetxattr.texi: Likewise.
38358         * doc/glibc-functions/flistxattr.texi: Likewise.
38359         * doc/glibc-functions/fopencookie.texi: Likewise.
38360         * doc/glibc-functions/freeifaddrs.texi: Likewise.
38361         * doc/glibc-functions/fremovexattr.texi: Likewise.
38362         * doc/glibc-functions/fsetxattr.texi: Likewise.
38363         * doc/glibc-functions/getifaddrs.texi: Likewise.
38364         * doc/glibc-functions/getxattr.texi: Likewise.
38365         * doc/glibc-functions/lgetxattr.texi: Likewise.
38366         * doc/glibc-functions/listxattr.texi: Likewise.
38367         * doc/glibc-functions/llistxattr.texi: Likewise.
38368         * doc/glibc-functions/lremovexattr.texi: Likewise.
38369         * doc/glibc-functions/lsetxattr.texi: Likewise.
38370         * doc/glibc-functions/pow10.texi: Likewise.
38371         * doc/glibc-functions/pow10f.texi: Likewise.
38372         * doc/glibc-functions/rcmd_af.texi: Likewise.
38373         * doc/glibc-functions/removexattr.texi: Likewise.
38374         * doc/glibc-functions/res_init.texi: Likewise.
38375         * doc/glibc-functions/res_mkquery.texi: Likewise.
38376         * doc/glibc-functions/res_query.texi: Likewise.
38377         * doc/glibc-functions/res_querydomain.texi: Likewise.
38378         * doc/glibc-functions/res_send.texi: Likewise.
38379         * doc/glibc-functions/rresvport_af.texi: Likewise.
38380         * doc/glibc-functions/setxattr.texi: Likewise.
38381         * doc/glibc-functions/strcasestr.texi: Likewise.
38382
38383 2008-12-15  Bruno Haible  <bruno@clisp.org>
38384
38385         Fix compilation error on OSF/1 4.0.
38386         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
38387         <sys/time.h>, simply delegate to the system header.
38388         Reported by Daniel Richard G. <oss@teragram.com>.
38389
38390 2008-12-15  Bruno Haible  <bruno@clisp.org>
38391
38392         * doc/posix-functions/openat.texi: Mention the 'openat' module.
38393         * doc/posix-functions/fchmodat.texi: Likewise.
38394         * doc/posix-functions/fchownat.texi: Likewise.
38395         * doc/posix-functions/fdopendir.texi: Likewise.
38396         * doc/posix-functions/fstatat.texi: Likewise.
38397         * doc/posix-functions/mkdirat.texi: Likewise.
38398         * doc/posix-functions/unlinkat.texi: Likewise.
38399
38400 2008-12-14  Bruno Haible  <bruno@clisp.org>
38401
38402         Update doc for POSIX:2008.
38403         * doc/posix-functions/faccessat.texi: New file.
38404         * doc/posix-functions/fchmodat.texi: New file.
38405         * doc/posix-functions/fchownat.texi: New file.
38406         * doc/posix-functions/fdopendir.texi: New file.
38407         * doc/posix-functions/fstatat.texi: New file.
38408         * doc/posix-functions/futimens.texi: New file.
38409         * doc/posix-functions/linkat.texi: New file.
38410         * doc/posix-functions/mkdirat.texi: New file.
38411         * doc/posix-functions/mkfifoat.texi: New file.
38412         * doc/posix-functions/mknodat.texi: New file.
38413         * doc/posix-functions/open_wmemstream.texi: New file.
38414         * doc/posix-functions/openat.texi: New file.
38415         * doc/posix-functions/psiginfo.texi: New file.
38416         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
38417         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
38418         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
38419         * doc/posix-functions/readlinkat.texi: New file.
38420         * doc/posix-functions/renameat.texi: New file.
38421         * doc/posix-functions/strerror_l.texi: New file.
38422         * doc/posix-functions/symlinkat.texi: New file.
38423         * doc/posix-functions/unlinkat.texi: New file.
38424         * doc/posix-functions/utimensat.texi: New file.
38425         * doc/gnulib.texi (Function Substitutes): Add these subsections.
38426
38427 2008-12-14  Bruno Haible  <bruno@clisp.org>
38428
38429         Update doc for POSIX:2008.
38430         * doc/posix-functions/alphasort.texi: Renamed from
38431         doc/glibc-functions/alphasort.texi.
38432         * doc/posix-functions/dirfd.texi: Renamed from
38433         doc/glibc-functions/dirfd.texi.
38434         * doc/posix-functions/dprintf.texi: Renamed from
38435         doc/glibc-functions/dprintf.texi.
38436         * doc/posix-functions/duplocale.texi: Renamed from
38437         doc/glibc-functions/duplocale.texi.
38438         * doc/posix-functions/fexecve.texi: Renamed from
38439         doc/glibc-functions/fexecve.texi.
38440         * doc/posix-functions/fmemopen.texi: Renamed from
38441         doc/glibc-functions/fmemopen.texi.
38442         * doc/posix-functions/freelocale.texi: Renamed from
38443         doc/glibc-functions/freelocale.texi.
38444         * doc/posix-functions/getdate_err.texi: Renamed from
38445         doc/glibc-functions/getdate_err.texi.
38446         * doc/posix-functions/isalnum_l.texi: Renamed from
38447         doc/glibc-functions/isalnum_l.texi.
38448         * doc/posix-functions/isalpha_l.texi: Renamed from
38449         doc/glibc-functions/isalpha_l.texi.
38450         * doc/posix-functions/isblank_l.texi: Renamed from
38451         doc/glibc-functions/isblank_l.texi.
38452         * doc/posix-functions/iscntrl_l.texi: Renamed from
38453         doc/glibc-functions/iscntrl_l.texi.
38454         * doc/posix-functions/isdigit_l.texi: Renamed from
38455         doc/glibc-functions/isdigit_l.texi.
38456         * doc/posix-functions/isgraph_l.texi: Renamed from
38457         doc/glibc-functions/isgraph_l.texi.
38458         * doc/posix-functions/islower_l.texi: Renamed from
38459         doc/glibc-functions/islower_l.texi.
38460         * doc/posix-functions/isprint_l.texi: Renamed from
38461         doc/glibc-functions/isprint_l.texi.
38462         * doc/posix-functions/ispunct_l.texi: Renamed from
38463         doc/glibc-functions/ispunct_l.texi.
38464         * doc/posix-functions/isspace_l.texi: Renamed from
38465         doc/glibc-functions/isspace_l.texi.
38466         * doc/posix-functions/isupper_l.texi: Renamed from
38467         doc/glibc-functions/isupper_l.texi.
38468         * doc/posix-functions/iswalnum_l.texi: Renamed from
38469         doc/glibc-functions/iswalnum_l.texi.
38470         * doc/posix-functions/iswalpha_l.texi: Renamed from
38471         doc/glibc-functions/iswalpha_l.texi.
38472         * doc/posix-functions/iswblank_l.texi: Renamed from
38473         doc/glibc-functions/iswblank_l.texi.
38474         * doc/posix-functions/iswcntrl_l.texi: Renamed from
38475         doc/glibc-functions/iswcntrl_l.texi.
38476         * doc/posix-functions/iswctype_l.texi: Renamed from
38477         doc/glibc-functions/iswctype_l.texi.
38478         * doc/posix-functions/iswdigit_l.texi: Renamed from
38479         doc/glibc-functions/iswdigit_l.texi.
38480         * doc/posix-functions/iswgraph_l.texi: Renamed from
38481         doc/glibc-functions/iswgraph_l.texi.
38482         * doc/posix-functions/iswlower_l.texi: Renamed from
38483         doc/glibc-functions/iswlower_l.texi.
38484         * doc/posix-functions/iswprint_l.texi: Renamed from
38485         doc/glibc-functions/iswprint_l.texi.
38486         * doc/posix-functions/iswpunct_l.texi: Renamed from
38487         doc/glibc-functions/iswpunct_l.texi.
38488         * doc/posix-functions/iswspace_l.texi: Renamed from
38489         doc/glibc-functions/iswspace_l.texi.
38490         * doc/posix-functions/iswupper_l.texi: Renamed from
38491         doc/glibc-functions/iswupper_l.texi.
38492         * doc/posix-functions/iswxdigit_l.texi: Renamed from
38493         doc/glibc-functions/iswxdigit_l.texi.
38494         * doc/posix-functions/isxdigit_l.texi: Renamed from
38495         doc/glibc-functions/isxdigit_l.texi.
38496         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
38497         doc/glibc-functions/mbsnrtowcs.texi.
38498         * doc/posix-functions/mkdtemp.texi: Renamed from
38499         doc/glibc-functions/mkdtemp.texi.
38500         * doc/posix-functions/newlocale.texi: Renamed from
38501         doc/glibc-functions/newlocale.texi.
38502         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
38503         doc/glibc-functions/nl_langinfo_l.texi.
38504         * doc/posix-functions/open_memstream.texi: Renamed from
38505         doc/glibc-functions/open_memstream.texi.
38506         * doc/posix-functions/opterr.texi: Renamed from
38507         doc/glibc-functions/opterr.texi.
38508         * doc/posix-functions/optind.texi: Renamed from
38509         doc/glibc-functions/optind.texi.
38510         * doc/posix-functions/optopt.texi: Renamed from
38511         doc/glibc-functions/optopt.texi.
38512         * doc/posix-functions/psignal.texi: Renamed from
38513         doc/glibc-functions/psignal.texi.
38514         * doc/posix-functions/scandir.texi: Renamed from
38515         doc/glibc-functions/scandir.texi.
38516         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
38517         doc/glibc-functions/sched_get_priority_min.texi.
38518         * doc/posix-functions/signgam.texi: Renamed from
38519         doc/glibc-functions/signgam.texi.
38520         * doc/posix-functions/stpcpy.texi: Renamed from
38521         doc/glibc-functions/stpcpy.texi.
38522         * doc/posix-functions/stpncpy.texi: Renamed from
38523         doc/glibc-functions/stpncpy.texi.
38524         * doc/posix-functions/strcasecmp_l.texi: Renamed from
38525         doc/glibc-functions/strcasecmp_l.texi.
38526         * doc/posix-functions/strcoll_l.texi: Renamed from
38527         doc/glibc-functions/strcoll_l.texi.
38528         * doc/posix-functions/strfmon_l.texi: Renamed from
38529         doc/glibc-functions/strfmon_l.texi.
38530         * doc/posix-functions/strftime_l.texi: Renamed from
38531         doc/glibc-functions/strftime_l.texi.
38532         * doc/posix-functions/strncasecmp_l.texi: Renamed from
38533         doc/glibc-functions/strncasecmp_l.texi.
38534         * doc/posix-functions/strndup.texi: Renamed from
38535         doc/glibc-functions/strndup.texi.
38536         * doc/posix-functions/strnlen.texi: Renamed from
38537         doc/glibc-functions/strnlen.texi.
38538         * doc/posix-functions/strsignal.texi: Renamed from
38539         doc/glibc-functions/strsignal.texi.
38540         * doc/posix-functions/strxfrm_l.texi: Renamed from
38541         doc/glibc-functions/strxfrm_l.texi.
38542         * doc/posix-functions/timer_gettime.texi: Renamed from
38543         doc/glibc-functions/timer_gettime.texi.
38544         * doc/posix-functions/tolower_l.texi: Renamed from
38545         doc/glibc-functions/tolower_l.texi.
38546         * doc/posix-functions/toupper_l.texi: Renamed from
38547         doc/glibc-functions/toupper_l.texi.
38548         * doc/posix-functions/towctrans_l.texi: Renamed from
38549         doc/glibc-functions/towctrans_l.texi.
38550         * doc/posix-functions/towlower_l.texi: Renamed from
38551         doc/glibc-functions/towlower_l.texi.
38552         * doc/posix-functions/towupper_l.texi: Renamed from
38553         doc/glibc-functions/towupper_l.texi.
38554         * doc/posix-functions/uselocale.texi: Renamed from
38555         doc/glibc-functions/uselocale.texi.
38556         * doc/posix-functions/vdprintf.texi: Renamed from
38557         doc/glibc-functions/vdprintf.texi.
38558         * doc/posix-functions/wcpcpy.texi:
38559         Renamed from doc/glibc-functions/wcpcpy.texi.
38560         * doc/posix-functions/wcpncpy.texi: Renamed from
38561         doc/glibc-functions/wcpncpy.texi.
38562         * doc/posix-functions/wcscasecmp.texi: Renamed from
38563         doc/glibc-functions/wcscasecmp.texi.
38564         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
38565         doc/glibc-functions/wcscasecmp_l.texi.
38566         * doc/posix-functions/wcscoll_l.texi: Renamed from
38567         doc/glibc-functions/wcscoll_l.texi.
38568         * doc/posix-functions/wcsdup.texi: Renamed from
38569         doc/glibc-functions/wcsdup.texi.
38570         * doc/posix-functions/wcsncasecmp.texi: Renamed from
38571         doc/glibc-functions/wcsncasecmp.texi.
38572         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
38573         doc/glibc-functions/wcsncasecmp_l.texi.
38574         * doc/posix-functions/wcsnlen.texi: Renamed from
38575         doc/glibc-functions/wcsnlen.texi.
38576         * doc/posix-functions/wcsnrtombs.texi: Renamed from
38577         doc/glibc-functions/wcsnrtombs.texi.
38578         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
38579         doc/glibc-functions/wcsxfrm_l.texi.
38580         * doc/posix-functions/wctrans_l.texi: Renamed from
38581         doc/glibc-functions/wctrans_l.texi.
38582         * doc/posix-functions/wctype_l.texi: Renamed from
38583         doc/glibc-functions/wctype_l.texi.
38584         * doc/gnulib.texi (Function Substitutes): Add these subsections.
38585         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
38586         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
38587         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
38588         these subsections.
38589         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
38590         Remove sections.
38591
38592 2008-12-14  Bruno Haible  <bruno@clisp.org>
38593
38594         Update doc for POSIX:2008.
38595         * doc/posix-functions/*.texi: Update URL of POSIX specification.
38596
38597 2008-12-14  Bruno Haible  <bruno@clisp.org>
38598
38599         Update doc for POSIX:2008.
38600         * doc/pastposix-functions/bcmp.texi: Renamed from
38601         doc/posix-functions/bcmp.texi.
38602         * doc/pastposix-functions/bcopy.texi: Renamed from
38603         doc/posix-functions/bcopy.texi.
38604         * doc/pastposix-functions/bsd_signal.texi: Renamed from
38605         doc/posix-functions/bsd_signal.texi.
38606         * doc/pastposix-functions/bzero.texi: Renamed from
38607         doc/posix-functions/bzero.texi.
38608         * doc/pastposix-functions/ecvt.texi: Renamed from
38609         doc/posix-functions/ecvt.texi.
38610         * doc/pastposix-functions/fcvt.texi: Renamed from
38611         doc/posix-functions/fcvt.texi.
38612         * doc/pastposix-functions/ftime.texi: Renamed from
38613         doc/posix-functions/ftime.texi.
38614         * doc/pastposix-functions/gcvt.texi: Renamed from
38615         doc/posix-functions/gcvt.texi.
38616         * doc/pastposix-functions/getcontext.texi: Renamed from
38617         doc/posix-functions/getcontext.texi.
38618         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
38619         doc/posix-functions/gethostbyaddr.texi.
38620         * doc/pastposix-functions/gethostbyname.texi: Renamed from
38621         doc/posix-functions/gethostbyname.texi.
38622         * doc/pastposix-functions/getwd.texi: Renamed from
38623         doc/posix-functions/getwd.texi.
38624         * doc/pastposix-functions/h_errno.texi: Renamed from
38625         doc/posix-functions/h_errno.texi.
38626         * doc/pastposix-functions/index.texi: Renamed from
38627         doc/posix-functions/index.texi.
38628         * doc/pastposix-functions/makecontext.texi: Renamed from
38629         doc/posix-functions/makecontext.texi.
38630         * doc/pastposix-functions/mktemp.texi: Renamed from
38631         doc/posix-functions/mktemp.texi.
38632         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
38633         doc/posix-functions/pthread_attr_getstackaddr.texi.
38634         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
38635         doc/posix-functions/pthread_attr_setstackaddr.texi.
38636         * doc/pastposix-functions/rindex.texi: Renamed from
38637         doc/posix-functions/rindex.texi.
38638         * doc/pastposix-functions/scalb.texi: Renamed from
38639         doc/posix-functions/scalb.texi.
38640         * doc/pastposix-functions/setcontext.texi: Renamed from
38641         doc/posix-functions/setcontext.texi.
38642         * doc/pastposix-functions/swapcontext.texi: Renamed from
38643         doc/posix-functions/swapcontext.texi.
38644         * doc/pastposix-functions/ualarm.texi: Renamed from
38645         doc/posix-functions/ualarm.texi.
38646         * doc/pastposix-functions/usleep.texi: Renamed from
38647         doc/posix-functions/usleep.texi.
38648         * doc/pastposix-functions/vfork.texi: Renamed from
38649         doc/posix-functions/vfork.texi.
38650         * doc/pastposix-functions/wcswcs.texi: Renamed from
38651         doc/posix-functions/wcswcs.texi.
38652         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
38653         (Function Substitutes): Update.
38654
38655 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38656
38657         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
38658         m4/strerror.m4.
38659
38660 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38661             Bruno Haible  <bruno@clisp.org>
38662
38663         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
38664
38665 2008-12-13  Bruno Haible  <bruno@clisp.org>
38666
38667         * modules/strtoull (Depends-on): Remove unistd.
38668
38669 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38670
38671         * modules/strtoull (Depends-on): Add stdlib.
38672
38673 2008-12-11  Simon Josefsson  <simon@josefsson.org>
38674
38675         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
38676
38677 2008-12-10  Jim Meyering  <meyering@redhat.com>
38678
38679         gl_ASSERT: don't say assertions are disabled when they're not
38680         * m4/assert.m4 (gl_ASSERT): Do not make configure report
38681         "checking whether to enable assertions... no", when they are in
38682         fact enabled.  This is solely a bug in the output of configure.
38683         In spite of saying "no", NDEBUG was not defined in that case.
38684         Also, as noted by Eric Blake, leave assertions enabled upon
38685         --enable-assert=INVALID.
38686
38687 2008-12-10  Bruno Haible  <bruno@clisp.org>
38688
38689         Change MODULES.html to refer to POSIX:2008 where possible.
38690         * MODULES.html.sh (POSIX2008_URL): New variable.
38691         (posix_headers): Remove sys/timeb, ucontext.
38692         (posix2001_headers): New variable.
38693         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
38694         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
38695         index, makecontext, mktemp, pthread_attr_getstackaddr,
38696         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
38697         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
38698         (posix2001_functions): New variable.
38699         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
38700         otherwise.
38701
38702 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38703
38704         add missing include to parse-duration.c
38705         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
38706         * modules/parse-duration (Depends-on): Add xalloc.
38707
38708         fix sed script reading maint.mk
38709         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
38710         (syntax-check-rules): Use it.
38711
38712 2008-12-09  Bruno Haible  <bruno@clisp.org>
38713
38714         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
38715         MacOS X 10.4/PowerPC.
38716         Reported by Simon Josefsson.
38717
38718 2008-12-08  Jim Meyering  <meyering@redhat.com>
38719
38720         work around mingw's lack of some S_IF definitions
38721         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
38722         Reported by Simon Josefsson.
38723
38724 2008-12-08  Bruno Haible  <bruno@clisp.org>
38725
38726         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
38727         applied to variables. Needed on MacOS X 10.4/PowerPC.
38728         Reported by Simon Josefsson.
38729
38730 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
38731         and Eric Blake  <ebb9@byu.net>
38732
38733         assert: honor --enable-assert
38734         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
38735         order to honor --enable-assert, rather than treating it as a
38736         synonym for --disable-assert.
38737
38738 2008-12-08  Jim Meyering  <meyering@redhat.com>
38739
38740         * lib/posixtm.c: Remove now-useless declaration of mktime.
38741
38742         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
38743
38744 2008-12-07  Bruno Haible  <bruno@clisp.org>
38745
38746         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
38747         test_once): Mark functions as static.
38748         * tests/test-tls.c (test_tls): Likewise.
38749
38750 2008-12-07  Bruno Haible  <bruno@clisp.org>
38751
38752         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
38753         iconv_register_autodetect.
38754
38755 2008-12-07  Jim Meyering  <meyering@redhat.com>
38756
38757         posixtm.c: avoid a warning
38758         * lib/posixtm.c (posixtime): Don't initialize tm0.
38759         It's no longer needed to placate gcc4's -Wuninitialized,
38760         and the attempt to placate would elicit a new warning.
38761
38762         unicodeio.c: mark unused parameters
38763         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
38764         (fallback_failure_callback): Likewise.
38765
38766 2008-12-07  Bruno Haible  <bruno@clisp.org>
38767
38768         * gnulib-tool (func_create_testdir): When building the tests
38769         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
38770         Reported by Simon Josefsson.
38771
38772 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38773
38774         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
38775
38776 2008-12-06  Bruno Haible  <bruno@clisp.org>
38777
38778         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
38779         Suggested by Eric Blake.
38780
38781 2008-12-06  Bruno Haible  <bruno@clisp.org>
38782
38783         Fix a c-stack test failure on MacOS X.
38784         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
38785         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
38786         handler for SIGBUS as well.
38787         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
38788         install a signal handler for SIGBUS as well.
38789         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
38790
38791 2008-12-06  Bruno Haible  <bruno@clisp.org>
38792
38793         Advocacy documentation.
38794         * doc/gnulib-intro.texi (Benefits): New section.
38795         * doc/gnulib.texi: Update.
38796
38797 2008-12-06  Bruno Haible  <bruno@clisp.org>
38798
38799         Document the 'manywarnings' module.
38800         * doc/manywarnings.texi: New file.
38801         * doc/gnulib.texi: Include it.
38802
38803 2008-12-05  Eric Blake  <ebb9@byu.net>
38804
38805         tests: silence some gcc warnings
38806         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
38807         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
38808         type mismatches.
38809
38810 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38811             Bruno Haible  <bruno@clisp.org>
38812
38813         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
38814
38815 2008-11-29  Jim Meyering  <meyering@redhat.com>
38816
38817         unicodeio.c: mark unused parameters
38818         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
38819         (fallback_failure_callback): Likewise.
38820
38821         fts: fix a thinko
38822         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
38823         (set_stat_type): Return S_IF*-valued "type" directly.
38824         Prompted by James Youngman's spotting a related bug.
38825         Confirmed by further testing through find.
38826
38827         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
38828         * lib/fts.c (D_TYPE): Define.
38829         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
38830         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
38831         (s_ifmt_shift_bits): New function.
38832         (set_stat_type): New function.
38833         (fts_build): When not calling fts_stat, call set_stat_type
38834         to propagate dirent.d_type info to fts_read caller.
38835         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
38836         fts_statp->st_mode type information may be valid.
38837
38838 2008-11-28  Simon Josefsson  <simon@josefsson.org>
38839
38840         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
38841         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
38842         <sds@gnu.org>.
38843
38844 2008-11-20  Bruno Haible  <bruno@clisp.org>
38845
38846         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
38847         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
38848         INCLUDE_NEXT.
38849         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
38850         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
38851         * modules/math (Makefile.am): Substitute
38852         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
38853         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38854
38855 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
38856             Bruno Haible  <bruno@clisp.org>
38857
38858         * lib/stdint.in.h: Define all type macros so that their expansion is
38859         a single typedef'ed token. Fixes a compilation failure in Boost which
38860         does "using ::int8_t;".
38861
38862 2008-11-18  Simon Josefsson  <simon@josefsson.org>
38863
38864         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
38865         gl_MANYWARN_ALL_GCC.
38866         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
38867         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
38868         * modules/manywarnings: New file.
38869         * MODULES.html.sh: Mention manywarnings module.
38870
38871 2008-11-18  Bruno Haible  <bruno@clisp.org>
38872
38873         * doc/gnulib-tool.texi (Unit tests): New section.
38874
38875 2008-11-18  Simon Josefsson  <simon@josefsson.org>
38876
38877         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
38878         paths like 'lib/po/foo.po'.
38879
38880 2008-11-17  Simon Josefsson  <simon@josefsson.org>
38881
38882         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
38883         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
38884
38885 2008-11-17  Simon Josefsson  <simon@josefsson.org>
38886
38887         * m4/warnings.m4: Use CPPFLAGS to really check whether the
38888         parameter works.
38889
38890 2008-11-17  Simon Josefsson  <simon@josefsson.org>
38891
38892         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
38893
38894 2008-11-17  Bruce Korb  <bkorb@gnu.org>
38895
38896         * modules/parse-duration-tests: New file.
38897         * tests/test-parse-duration.sh: New file.
38898         * tests/test-parse-duration.c: New file.
38899
38900         New module 'parse-duration'.
38901         * lib/parse-duration.h: New file.
38902         * lib/parse-duration.c: New file.
38903         * modules/parse-duration: New file.
38904
38905 2008-11-17  Bruno Haible  <bruno@clisp.org>
38906
38907         * tests/test-select-out.sh: Comment out the first pipe test.
38908         Reported by Simon Josefsson.
38909
38910 2008-11-17  Bruno Haible  <bruno@clisp.org>
38911
38912         * modules/getaddrinfo (Depends-on): Add servent, hostent.
38913         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
38914         gl_HOSTENT.
38915
38916 2008-11-17  Bruno Haible  <bruno@clisp.org>
38917
38918         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
38919         -lnetwork and -lnet. Needed for Haiku and BeOS.
38920
38921 2008-11-16  Bruno Haible  <bruno@clisp.org>
38922
38923         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
38924
38925 2008-11-16  Bruno Haible  <bruno@clisp.org>
38926
38927         Avoid test failure on Haiku.
38928         * tests/test-fsync.c: Include <errno.h>.
38929         (main): Don't require that fsync (0) fails.
38930
38931 2008-11-15  Bruno Haible  <bruno@clisp.org>
38932
38933         New module 'hostent'.
38934         * modules/hostent: New file.
38935         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
38936
38937 2008-11-15  Bruno Haible  <bruno@clisp.org>
38938
38939         New module 'servent'.
38940         * modules/servent: New file.
38941         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
38942
38943 2008-11-15  Bruno Haible  <bruno@clisp.org>
38944
38945         Avoid generating same test program with two different rules.
38946         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
38947         test-frexp to test-frexp-nolibm.
38948         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
38949         test-frexpl to test-frexpl-nolibm.
38950
38951 2008-11-15  Bruno Haible  <bruno@clisp.org>
38952
38953         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
38954         $(FREXPL_LIBM).
38955
38956 2008-11-15  Bruno Haible  <bruno@clisp.org>
38957
38958         * lib/netdb.in.h: Activate the definitions also when the system's
38959         <netdb.h> has 'struct addrinfo'.
38960         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
38961         EAI_OVERFLOW or AI_NUMERICSERV.
38962         * doc/posix-headers/netdb.texi: Document the problem.
38963
38964 2008-11-15  Bruno Haible  <bruno@clisp.org>
38965
38966         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
38967
38968         Make the 'sched' module work on platforms where <sched.h> exists but
38969         is incomplete (such as Haiku).
38970         * lib/sched.in.h; Include the system's <sched.h> if it exists.
38971         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
38972         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
38973         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
38974         HAVE_STRUCT_SCHED_PARAM.
38975         * modules/sched (Depends-on): Add include_next.
38976         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
38977         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
38978         * doc/posix-headers/sched.texi: Document the issue.
38979
38980 2008-11-13  Jim Meyering  <meyering@redhat.com>
38981
38982         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
38983         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
38984         test would fail due to the difference in the Report bugs to ...
38985         line.  The expected address is empty, "<>", while the actual
38986         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
38987
38988 2008-11-12  Bruno Haible  <bruno@clisp.org>
38989
38990         lstat: don't compile lstat.c on systems lacking lstat
38991         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
38992         which don't have lstat; this is handled by lib/sys_stat.in.h already.
38993         Reported by Daniel P. Berrange via Jim Meyering.
38994
38995 2008-11-12  Jim Meyering  <meyering@redhat.com>
38996
38997         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
38998
38999 2008-11-12  Simon Josefsson  <simon@josefsson.org>
39000
39001         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
39002         instead.
39003
39004 2008-11-12  Bruno Haible  <bruno@clisp.org>
39005
39006         * lib/unicodeio.c: Include unistr.h.
39007         (utf8_wctomb): Remove function.
39008         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
39009
39010 2008-11-12  Simon Josefsson  <simon@josefsson.org>
39011
39012         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
39013         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
39014         <bruno@clisp.org>.
39015         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
39016
39017 2008-11-12  Simon Josefsson  <simon@josefsson.org>
39018
39019         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
39020         * doc/gnulib.texi: Add section for warnings.
39021
39022 2008-11-11  Bruno Haible  <bruno@clisp.org>
39023
39024         * lib/sockets.h: Add a comment.
39025
39026 2008-11-11  Karl Berry  <karl@gnu.org>
39027
39028         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
39029
39030 2008-11-11  Eric Blake  <ebb9@byu.net>
39031
39032         fdl.texi: avoid git symlinks
39033         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
39034
39035 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
39036
39037         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
39038
39039 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
39040
39041         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
39042         (gl_WARN_ADD): Substitute $2 if literal.
39043
39044 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
39045
39046         * m4/warning.m4: Remove.
39047
39048 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
39049
39050         * m4/warnings.m4: Almost complete rewrite. :-)
39051
39052 2008-11-10  Simon Josefsson  <simon@josefsson.org>
39053
39054         * modules/warnings: New module.
39055         * m4/warnings.m4: New file.
39056         * MODULES.html.sh: Mention warnings module.
39057         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
39058         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39059
39060 2008-11-10  Eric Blake  <ebb9@byu.net>
39061
39062         fdl.texi: make a symlink to the latest version
39063         * doc/standards.texi: Revert today's earlier change.
39064         * doc/fdl-1.2.texi: Rename from old fdl.texi...
39065         * doc/fdl.texi: ...and replace this with a symlink to the newer
39066         fdl-1.3.texi.
39067
39068 2008-11-10  Bruno Haible  <bruno@clisp.org>
39069
39070         * tests/test-select-fd.c (main): Accept the result file name as fourth
39071         argument.
39072         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
39073         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
39074
39075 2008-11-10  Bruno Haible  <bruno@clisp.org>
39076
39077         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
39078         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
39079         as autoconf-substituted macros.
39080         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
39081         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
39082         gl_NETDB_H_DEFAULTS. Set these variables.
39083         * modules/netdb (Makefile.am): Substitute these variables.
39084
39085 2008-11-10  Eric Blake  <ebb9@byu.net>
39086
39087         standards.texi: include correct file for FDL 1.3
39088         * doc/standards.texi (GNU Free Documentation License): Change
39089         include file to pull in FDL 1.3, not 1.2.
39090
39091         fdl.texi: revert accidental change to license
39092         * doc/fdl.texi: This is FDL 1.2, not 1.3.
39093
39094 2008-11-10  Bruno Haible  <bruno@clisp.org>
39095
39096         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
39097         cross-compiling guesses also when the native compile gives no result.
39098
39099 2008-11-10  Bruno Haible  <bruno@clisp.org>
39100
39101         * lib/spawni.c (__spawni): Force variable into the stack.
39102
39103 2008-11-10  Bruno Haible  <bruno@clisp.org>
39104
39105         Add support for Haiku.
39106         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
39107         glibc and BeOS, but also on Haiku.
39108         * lib/fpurge.c (fpurge): Likewise.
39109         * lib/freadable.c (freadable): Likewise.
39110         * lib/freadahead.c (freadahead): Likewise.
39111         * lib/freading.c (freading): Likewise.
39112         * lib/freadptr.c (freadptr): Likewise.
39113         * lib/freadseek.c (freadptrinc): Likewise.
39114         * lib/fseeko.c (rpl_fseeko): Likewise.
39115         * lib/fseterr.c (fseterr): Likewise.
39116         * lib/fwritable.c (fwritable): Likewise.
39117         * lib/fwriting.c (fwriting): Likewise.
39118         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
39119
39120 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
39121
39122         * lib/config.charset: Treat Haiku like BeOS.
39123
39124 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
39125
39126         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
39127         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
39128
39129 2008-11-08  Bruno Haible  <bruno@clisp.org>
39130
39131         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
39132         AC_CACHE_CHECK.
39133
39134 2008-11-08  Bruno Haible  <bruno@clisp.org>
39135
39136         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
39137
39138 2008-11-08  Bruno Haible  <bruno@clisp.org>
39139
39140         * tests/test-select-fd.c: New file.
39141         * tests/test-select-in.sh: New file.
39142         * tests/test-select-out.sh: New file.
39143         * tests/test-select-stdin.c: New file.
39144         * modules/select-tests (Files): Add the new files.
39145         (Depends-on): Add gettimeofday.
39146         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
39147         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
39148         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
39149
39150 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
39151             Bruno Haible  <bruno@clisp.org>
39152
39153         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
39154
39155 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
39156
39157         * build-aux/pmccabe2html: Added support for C++ source files.
39158
39159 2008-11-05  Ben Pfaff  <blp@gnu.org>
39160
39161         Fix lib/close.c build on Windows.
39162         * modules/close (Files): Add lib/w32sock.h.
39163
39164 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
39165
39166         Accept Bison's NEWS format.
39167         * build-aux/announce-gen (print_news_deltas): Tweak
39168         $re_prefix.
39169
39170 2008-11-04  Bruno Haible  <bruno@clisp.org>
39171
39172         * modules/random_r (Maintainer): Add glibc.
39173
39174 2008-11-04  Simon Josefsson  <simon@josefsson.org>
39175
39176         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
39177         by karl@freefriends.org (Karl Berry).
39178         * doc/alloca.texi: Likewise.
39179         * doc/c-ctype.texi: Likewise.
39180         * doc/c-strcase.texi: Likewise.
39181         * doc/c-strcaseeq.texi: Likewise.
39182         * doc/c-strcasestr.texi: Likewise.
39183         * doc/c-strstr.texi: Likewise.
39184         * doc/c-strtod.texi: Likewise.
39185         * doc/c-strtold.texi: Likewise.
39186         * doc/ctime.texi: Likewise.
39187         * doc/error.texi: Likewise.
39188         * doc/fdl.texi: Likewise.
39189         * doc/gcd.texi: Likewise.
39190         * doc/getdate.texi: Likewise.
39191         * doc/gnulib-intro.texi: Likewise.
39192         * doc/gnulib-tool.texi: Likewise.
39193         * doc/gnulib.texi: Likewise.
39194         * doc/inet_ntoa.texi: Likewise.
39195         * doc/maintain.texi: Likewise.
39196         * doc/make-stds.texi: Likewise.
39197         * doc/quote.texi: Likewise.
39198         * doc/regexprops-generic.texi: Likewise.
39199         * doc/standards.texi: Likewise.
39200         * doc/verify.texi: Likewise.
39201         * doc/visibility.texi: Likewise.
39202         * doc/gnulib.texi (GNU Free Documentation License): Include
39203         fdl-1.3.texi instead of fdl.texi.
39204
39205 2008-11-04  Simon Josefsson  <simon@josefsson.org>
39206
39207         * doc/fdl-1.3.texi: New file, from
39208         <http://www.gnu.org/licenses/fdl-1.3.texi>.
39209         * modules/fdl-1.3: Add.
39210         * MODULES.html.sh: Add fdl-1.3.
39211
39212 2008-11-03  Bruno Haible  <bruno@clisp.org>
39213
39214         Make determination of absolute name of header file work with AIX xlc.
39215         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
39216         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
39217         preprocessing.
39218         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
39219         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
39220
39221 2008-11-03  Simon Josefsson  <simon@josefsson.org>
39222
39223         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
39224         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
39225         <ludo@gnu.org>.
39226
39227 2008-11-02  Bruno Haible  <bruno@clisp.org>
39228
39229         Mark 'strpbrk' obsolete.
39230         * modules/strpbrk (Status, Notice): New sections.
39231         * modules/strtok_r (Depends-on): Add strpbrk.
39232
39233 2008-11-02  Bruno Haible  <bruno@clisp.org>
39234
39235         Mark 'strdup' obsolete.
39236         * modules/strdup (Status, Notice): New sections.
39237         * modules/findprog (Depends-on): Add strdup.
39238         * modules/getaddrinfo (Depends-on): Likewise.
39239         * modules/localename (Depends-on): Likewise.
39240         * modules/relocatable-lib (Depends-on): Likewise.
39241         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
39242         * modules/relocatable-prog (Depends-on): Likewise.
39243         * modules/trim (Depends-on): Likewise.
39244         * modules/unictype/gen-ctype (Depends-on): Likewise.
39245         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
39246
39247 2008-11-02  Bruno Haible  <bruno@clisp.org>
39248
39249         Mark 'strcspn' obsolete.
39250         * modules/strcspn (Status, Notice): New sections.
39251
39252 2008-11-02  Bruno Haible  <bruno@clisp.org>
39253
39254         Mark 'rmdir' obsolete.
39255         * modules/rmdir (Status, Notice): New sections.
39256         * modules/clean-temp (Depends-on): Add rmdir.
39257         * modules/openat (Depends-on): Likewise.
39258
39259 2008-11-02  Bruno Haible  <bruno@clisp.org>
39260
39261         Mark 'raise' obsolete.
39262         * modules/raise (Status, Notice): New sections.
39263         (Include): Specify <signal.h>.
39264         * modules/stdio (Depends-on): Add raise.
39265         * modules/write (Depends-on): Likewise.
39266
39267 2008-11-02  Bruno Haible  <bruno@clisp.org>
39268
39269         Mark 'memset' obsolete.
39270         * modules/memset (Status, Notice): New sections.
39271
39272 2008-11-02  Bruno Haible  <bruno@clisp.org>
39273
39274         Mark 'memmove' obsolete.
39275         * modules/memmove (Status, Notice): New sections.
39276         * modules/argp (Depends-on): Add memmove.
39277         * modules/argz (Depends-on): Likewise.
39278         * modules/canonicalize (Depends-on): Likewise.
39279         * modules/canonicalize-lgpl (Depends-on): Likewise.
39280         * modules/fts (Depends-on): Likewise.
39281         * modules/getcwd (Depends-on): Likewise.
39282         * modules/human (Depends-on): Likewise.
39283         * modules/regex (Depends-on): Likewise.
39284         * modules/striconveh (Depends-on): Likewise.
39285         * modules/trim (Depends-on): Likewise.
39286         * modules/unistr/u8-move (Depends-on): Likewise.
39287         * modules/unistr/u16-move (Depends-on): Likewise.
39288         * modules/unistr/u32-move (Depends-on): Likewise.
39289
39290 2008-11-02  Bruno Haible  <bruno@clisp.org>
39291
39292         Mark 'memcpy' obsolete.
39293         * modules/memcpy (Status, Notice): New sections.
39294
39295 2008-11-02  Bruno Haible  <bruno@clisp.org>
39296
39297         Mark 'memcmp' obsolete.
39298         * modules/memcmp (Status, Notice): New sections.
39299         * modules/argmatch (Depends-on): Add memchr.
39300         * modules/backupfile (Depends-on): Likewise.
39301         * modules/c-strcasestr (Depends-on): Likewise.
39302         * modules/crypto/des (Depends-on): Likewise.
39303         * modules/csharpcomp (Depends-on): Likewise.
39304         * modules/fnmatch (Depends-on): Likewise.
39305         * modules/git-merge-changelog (Depends-on): Likewise.
39306         * modules/isnand (Depends-on): Likewise.
39307         * modules/isnand-nolibm (Depends-on): Likewise.
39308         * modules/isnanf (Depends-on): Likewise.
39309         * modules/isnanf-nolibm (Depends-on): Likewise.
39310         * modules/isnanl (Depends-on): Likewise.
39311         * modules/isnanl-nolibm (Depends-on): Likewise.
39312         * modules/mbchar (Depends-on): Likewise.
39313         * modules/memcoll (Depends-on): Likewise.
39314         * modules/quotearg (Depends-on): Likewise.
39315         * modules/regex (Depends-on): Likewise.
39316         * modules/relocatable-prog (Depends-on): Likewise.
39317         * modules/same (Depends-on): Likewise.
39318         * modules/signbit (Depends-on): Likewise.
39319         * modules/strcasestr-simple (Depends-on): Likewise.
39320         * modules/unictype/gen-ctype (Depends-on): Likewise.
39321         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
39322         * modules/uniname/uniname (Depends-on): Likewise.
39323         * modules/unistr/u8-cmp (Depends-on): Likewise.
39324
39325 2008-11-02  Bruno Haible  <bruno@clisp.org>
39326
39327         Mark 'memchr' obsolete.
39328         * modules/memchr (Status, Notice): New sections.
39329         * modules/argp (Depends-on): Add memchr.
39330         * modules/base64 (Depends-on): Likewise.
39331         * modules/c-strcasestr (Depends-on): Likewise.
39332         * modules/chdir-long (Depends-on): Likewise.
39333         * modules/fnmatch (Depends-on): Likewise.
39334         * modules/getsubopt (Depends-on): Likewise.
39335         * modules/git-merge-changelog (Depends-on): Likewise.
39336         * modules/glob (Depends-on): Likewise.
39337         * modules/strcasestr-simple (Depends-on): Likewise.
39338         * modules/strnlen (Depends-on): Likewise.
39339
39340 2008-11-02  Bruno Haible  <bruno@clisp.org>
39341
39342         Mark 'atexit' obsolete.
39343         * modules/atexit (Status, Notice): New sections.
39344         * modules/chdir-long (Depends-on): Add atexit.
39345         * modules/wait-process (Depends-on): Likewise.
39346
39347 2008-11-02  Bruno Haible  <bruno@clisp.org>
39348
39349         * gnulib-tool: New option --with-obsolete.
39350         (func_usage): Document it.
39351         (func_modules_transitive_closure): Drop obsolete dependencies if
39352         incobsolete is not true.
39353         (func_import): Read and save the incobsolete variable to the cache.
39354
39355 2008-11-02  Bruno Haible  <bruno@clisp.org>
39356
39357         * modules/TEMPLATE-EXTENDED: New field 'Status'.
39358         * gnulib-tool: New option --extract-status.
39359         (func_usage): Document it.
39360         (sed_extract_prog): Recognize it.
39361         (func_get_status): New function.
39362
39363 2008-10-30  Simon Josefsson  <simon@josefsson.org>
39364
39365         * modules/sockets (License): Change from LGPL to LGPLv2+.
39366
39367 2008-10-28  Simon Josefsson  <simon@josefsson.org>
39368
39369         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
39370
39371 2008-10-28  Simon Josefsson  <simon@josefsson.org>
39372
39373         * MODULES.html.sh (Support for systems lacking POSIX:2001):
39374         Mention times and sys_times.
39375         * modules/sys_times, modules/sys_times-tests: New modules.
39376         * modules/times, modules/times-tests: Likewise
39377         * m4/sys_times_h.m4: New file.
39378         * lib/sys_times.in.h: Likewise
39379         * lib/times.c: Likewise.
39380         * tests/test-sys_times.c: Likewise.
39381         * tests/test-times.c: Likewise.
39382         * doc/posix-headers/sys_times.texi: Update.
39383         * doc/posix-functions/times.texi: Update.
39384
39385 2008-10-28  Jim Meyering  <meyering@redhat.com>
39386
39387         * modules/tempname (Depends-on): Add lstat.
39388
39389         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
39390
39391 2008-10-28  Simon Josefsson  <simon@josefsson.org>
39392
39393         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
39394         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
39395         using idiom used elsewhere in gnulib.
39396
39397 2008-10-27  Jim Meyering  <meyering@redhat.com>
39398
39399         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
39400
39401 2008-10-27  Simon Josefsson  <simon@josefsson.org>
39402
39403         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
39404         TESTS_ENVIRONMENT, for shell scripts that needs to call built
39405         programs.
39406         * tests/test-argp-2.sh: Use $EXEEXT when needed.
39407
39408 2008-10-27  Simon Josefsson  <simon@josefsson.org>
39409
39410         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
39411
39412 2008-10-27  Bruno Haible  <bruno@clisp.org>
39413
39414         * tests/test-lstat.c: Include <stdio.h>.
39415
39416 2008-10-27  Simon Josefsson  <simon@josefsson.org>
39417
39418         * modules/lstat-tests: New module.
39419         * tests/test-lstat.c: New file.
39420
39421 2008-10-26  Jim Meyering  <meyering@redhat.com>
39422
39423         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
39424
39425 2008-10-26  Simon Josefsson  <simon@josefsson.org>
39426             Bruno Haible  <bruno@clisp.org>
39427
39428         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
39429         * modules/configmake (Include): Add a note that the include must come
39430         after all system headers.
39431         * lib/javaversion.c: Include configmake.h after all other includes.
39432
39433 2008-10-26  Bruno Haible  <bruno@clisp.org>
39434
39435         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
39436         HAVE_STRUCT_RANDOM_DATA to 1.
39437         (gl_STDLIB_H): Simplify.
39438
39439 2008-10-26  Simon Josefsson  <simon@josefsson.org>
39440
39441         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
39442         substitute HAVE_STRUCT_RANDOM_DATA.
39443         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
39444         random_data.
39445         * modules/stdlib (Makefile.am): Substitute
39446         HAVE_STRUCT_RANDOM_DATA.
39447
39448 2008-10-26  Simon Josefsson  <simon@josefsson.org>
39449
39450         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
39451         * doc/gnulib-intro.texi (Copyright): Likewise.
39452
39453 2008-10-26  Simon Josefsson  <simon@josefsson.org>
39454
39455         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
39456         findings.
39457
39458 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
39459             Bruno Haible  <bruno@clisp.org>
39460
39461         * lib/unistd.in.h: Include <winsock2.h>.
39462         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
39463         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
39464         Provide dummy declarations.
39465         (gethostname): Override.
39466         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
39467         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
39468         gl_PREREQ_SYS_H_WINSOCK2.
39469         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
39470         * doc/posix-functions/gethostname.texi: More details.
39471
39472 2008-10-25  Bruno Haible  <bruno@clisp.org>
39473
39474         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
39475         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
39476         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
39477
39478         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
39479         here ...
39480         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
39481         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
39482         gl_UNISTD_H_DEFAULTS.
39483
39484 2008-10-25  Eric Blake  <ebb9@byu.net>
39485
39486         signbit: avoid spurious compiler failure
39487         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
39488         declarations inside function.
39489
39490 2008-10-24  Simon Josefsson  <simon@josefsson.org>
39491             Bruno Haible  <bruno@clisp.org>
39492
39493         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
39494         * modules/random_r (Depends-on): Add stdint.
39495
39496 2008-10-24  Bruno Haible  <bruno@clisp.org>
39497
39498         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
39499         Eggert.
39500         * modules/strerror (License): Likewise.
39501
39502 2008-10-24  Jim Meyering  <meyering@redhat.com>
39503
39504         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
39505         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
39506
39507 2008-10-24  Eric Blake  <ebb9@byu.net>
39508
39509         getgroups: fix compilation when getgroups is available
39510         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
39511         but with <config.h> override of getgroups disabled.
39512
39513 2008-10-24  Simon Josefsson  <simon@josefsson.org>
39514
39515         * doc/gnulib.texi (Header files): Add note about C++ problems.
39516         Explained by Bruno Haible <bruno@clisp.org>.
39517
39518 2008-10-23  Bruno Haible  <bruno@clisp.org>
39519
39520         Define a dummy SA_NODEFER macro on Interix.
39521         * lib/signal.in.h (SA_NODEFER): Define fallback.
39522         Reported by Aleksey Cheusov <cheusov@tut.by> via
39523         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
39524
39525 2008-10-23  Bruno Haible  <bruno@clisp.org>
39526
39527         * modules/freadahead (License): Change to LGPLv2+.
39528         Suggested by Simon Josefsson.
39529
39530 2008-10-23  Jim Meyering  <meyering@redhat.com>
39531
39532         random_r: new module
39533         * modules/random_r: New file.
39534         * m4/random_r.m4: New file.
39535         * lib/random_r.c: New file, from glibc.
39536         * modules/random_r-tests: New file.
39537         * tests/test-random_r.c: New file.
39538         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
39539          Declare.
39540         (RAND_MAX): Define.
39541         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
39542         * modules/stdlib: Substitute them, too.
39543         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
39544         * doc/glibc-functions/initstate_r.texi: Mention the new module.
39545         * doc/glibc-functions/random_r.texi: Likewise.
39546         * doc/glibc-functions/setstate_r.texi: Likewise.
39547         * doc/glibc-functions/srandom_r.texi: Likewise.
39548         * config/srclist.txt: Mention it.
39549
39550 2008-10-23  David Lutterkort  <lutter@redhat.com>
39551
39552         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
39553         link requirement
39554
39555 2008-10-23  Jim Meyering  <meyering@redhat.com>
39556
39557         selinux-h: mark parameters of stub functions as intentionally unused
39558         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
39559         * lib/se-context.in.h: Likewise.
39560
39561 2008-10-22  Simon Josefsson  <simon@josefsson.org>
39562
39563         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
39564
39565 2008-10-22  Simon Josefsson  <simon@josefsson.org>
39566
39567         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
39568
39569 2008-10-22  Eric Blake  <ebb9@byu.net>
39570
39571         glthread/thread: avoid compiler warning
39572         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
39573         Add unreachable abort to silence compiler.
39574
39575 2008-10-22  Eric Blake  <ebb9@byu.net>
39576
39577         netdb: also supply struct addrinfo for cygwin 1.5.x
39578         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
39579         older cygwin.
39580         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
39581         cygwin.
39582         * doc/posix-headers/netdb.texi (netdb.h): Document this.
39583
39584 2008-10-22  Bruno Haible  <bruno@clisp.org>
39585
39586         * users.txt: Update entry about pspp.
39587
39588 2008-10-21  Bruno Haible  <bruno@clisp.org>
39589
39590         Simplification.
39591         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
39592         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
39593
39594         Simplification.
39595         * lib/ioctl.c (ioctl): Don't undefine.
39596         * lib/socket.c (socket): Don't undefine.
39597
39598         Remove unused module indicator macros.
39599         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
39600         GNULIB_$1 as a C macro.
39601
39602         * doc/posix-functions/close.texi: Undo last change.
39603         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
39604         Windows platforms.
39605
39606 2008-10-21  Bruno Haible  <bruno@clisp.org>
39607
39608         Add gethostname() declaration to <unistd.h>.
39609         * lib/unistd.in.h (gethostname): New declaration.
39610         * lib/gethostname.c: Include <unistd.h>.
39611         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
39612         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
39613         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
39614         and HAVE_GETHOSTNAME.
39615         * modules/gethostname (Depends-on): Add unistd.
39616         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39617         (Include): Specify <unistd.h>.
39618         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
39619         HAVE_GETHOSTNAME.
39620         * tests/test-gethostname.c: Include <unistd.h> first.
39621
39622 2008-10-21  Bruno Haible  <bruno@clisp.org>
39623
39624         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
39625         * modules/select-tests (Depends-on): Likewise.
39626         Reported by Simon Josefsson.
39627
39628 2008-10-21  Simon Josefsson  <simon@josefsson.org>
39629
39630         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
39631         * lib/accept.c: New file, based on winsock.c.
39632         * lib/bind.c: New file, based on winsock.c.
39633         * lib/connect.c: New file, based on winsock.c.
39634         * lib/getpeername.c: New file, based on winsock.c.
39635         * lib/getsockname.c: New file, based on winsock.c.
39636         * lib/getsockopt.c: New file, based on winsock.c.
39637         * lib/ioctl.c: New file, based on winsock.c.
39638         * lib/listen.c: New file, based on winsock.c.
39639         * lib/recv.c: New file, based on winsock.c.
39640         * lib/recvfrom.c: New file, based on winsock.c.
39641         * lib/send.c: New file, based on winsock.c.
39642         * lib/sendto.c: New file, based on winsock.c.
39643         * lib/setsockopt.c: New file, based on winsock.c.
39644         * lib/shutdown.c: New file, based on winsock.c.
39645         * lib/socket.c: New file, based on winsock.c.
39646         * lib/w32sock.h: New file, based on winsock.c.
39647         * lib/winsock.c: Remove file.
39648         * modules/accept: Likewise.
39649         * modules/bind: Likewise.
39650         * modules/connect: Likewise.
39651         * modules/getpeername: Likewise.
39652         * modules/getsockname: Likewise.
39653         * modules/getsockopt: Likewise.
39654         * modules/ioctl: Likewise.
39655         * modules/listen: Likewise.
39656         * modules/recv: Likewise.
39657         * modules/recvfrom: Likewise.
39658         * modules/send: Likewise.
39659         * modules/sendto: Likewise.
39660         * modules/setsockopt: Likewise.
39661         * modules/shutdown: Likewise.
39662         * modules/socket: Use socket.c instead of winsock.c.
39663         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
39664         * doc/posix-functions/accept.texi: Doc fix.
39665         * doc/posix-functions/bind.texi: Doc fix.
39666         * doc/posix-functions/close.texi: Doc fix.
39667         * doc/posix-functions/connect.texi: Doc fix.
39668         * doc/posix-functions/getpeername.texi: Doc fix.
39669         * doc/posix-functions/getsockname.texi: Doc fix.
39670         * doc/posix-functions/getsockopt.texi: Doc fix.
39671         * doc/posix-functions/ioctl.texi: Doc fix.
39672         * doc/posix-functions/listen.texi: Doc fix.
39673         * doc/posix-functions/recv.texi: Doc fix.
39674         * doc/posix-functions/recvfrom.texi: Doc fix.
39675         * doc/posix-functions/send.texi: Doc fix.
39676         * doc/posix-functions/sendto.texi: Doc fix.
39677         * doc/posix-functions/setsockopt.texi: Doc fix.
39678         * doc/posix-functions/shutdown.texi: Doc fix.
39679         * doc/posix-functions/socket.texi: Doc fix.
39680
39681 2008-10-20  Bruno Haible  <bruno@clisp.org>
39682
39683         Take into account the role of SIGABRT_COMPAT on Windows 2008.
39684         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
39685         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
39686         as an alias for SIGABRT.
39687         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
39688         (sigaction): Map it to SIGABRT.
39689         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
39690
39691 2008-10-20  Bruno Haible  <bruno@clisp.org>
39692
39693         * lib/fts.c: Don't include lstat.h.
39694         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
39695
39696         Move the lstat() declaration to <sys/stat.h>.
39697         * lib/lstat.h: Remove file.
39698         * lib/sys_stat.in.h: Add special invocation convention.
39699         (lstat): New declaration.
39700         * lib/lstat.c (orig_lstat): New function.
39701         (rpl_lstat): Use orig_lstat instead of lstat.
39702         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
39703         AC_C_INLINE. Set REPLACE_LSTAT.
39704         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
39705         and REPLACE_LSTAT.
39706         * modules/lstat (Files): Remove lib/lstat.h.
39707         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
39708         (Include): Specify <sys/stat.h> instead of lstat.h.
39709         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
39710         REPLACE_LSTAT.
39711         * NEWS: Mention the change.
39712
39713 2008-10-20  Bruno Haible  <bruno@clisp.org>
39714
39715         * modules/posix_spawn-tests: New file.
39716         * tests/test-posix_spawn3.c: New file.
39717
39718 2008-10-20  Bruno Haible  <bruno@clisp.org>
39719
39720         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
39721         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
39722         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
39723         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
39724         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
39725
39726 2008-10-20  Bruno Haible  <bruno@clisp.org>
39727
39728         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
39729         of posix_spawn on AIX 5.3.
39730
39731 2008-10-20  Bruno Haible  <bruno@clisp.org>
39732
39733         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
39734
39735 2008-10-20  Bruno Haible  <bruno@clisp.org>
39736
39737         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
39738         of AC_LANG_PROGRAM.
39739
39740 2008-10-20  Simon Josefsson  <simon@josefsson.org>
39741
39742         * lib/netdb.in.h: Don't define GNU specific constants until they
39743         are supported or needed.  Reported by Bruno Haible
39744         <bruno@clisp.org>.
39745
39746 2008-10-20  Simon Josefsson  <simon@josefsson.org>
39747
39748         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
39749
39750 2008-10-20  Simon Josefsson  <simon@josefsson.org>
39751
39752         * lib/getaddrinfo.h: Remove file.
39753         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
39754         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
39755         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
39756         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
39757         * modules/netdb: Substitute GNULIB_GETADDRINFO.
39758         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
39759         * tests/test-getaddrinfo.c: Likewise.
39760         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
39761         * NEWS: Mention change.
39762
39763 2008-10-19  Bruno Haible  <bruno@clisp.org>
39764
39765         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
39766
39767 2008-10-19  Bruno Haible  <bruno@clisp.org>
39768
39769         * lib/wait-process.c: Include simply <sys/wait.h>.
39770         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
39771         WIFSTOPPED): Remove fallback definitions.
39772         * modules/wait-process (Depends-on): Add sys_wait.
39773
39774         New module 'sys_wait'.
39775         * modules/sys_wait: New file.
39776         * lib/sys_wait.in.h: New file, partially copied from
39777         lib/wait-process.c.
39778         * m4/sys_wait_h.m4: New file.
39779         * doc/posix-headers/sys_wait.texi: Mention the new module.
39780
39781 2008-10-19  Bruno Haible  <bruno@clisp.org>
39782
39783         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
39784
39785 2008-10-19  Bruno Haible  <bruno@clisp.org>
39786
39787         Assume that waitpid() fills an 'int' status, not a 'union wait'.
39788         * lib/wait-process.c (WAIT_T): Remove type.
39789         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
39790         (wait_subprocess): Update.
39791
39792 2008-10-19  Bruno Haible  <bruno@clisp.org>
39793
39794         New module 'atoll'.
39795         * modules/atoll: New file.
39796         * lib/stdlib.in.h (atoll): New declaration.
39797         * lib/atoll.c: New file, from glibc with modifications.
39798         * m4/atoll.m4: New file.
39799         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
39800         HAVE_ATOLL.
39801         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
39802         * doc/posix-functions/atoll.texi: Mention the new module.
39803
39804 2008-10-19  Bruno Haible  <bruno@clisp.org>
39805
39806         Add strtoull() declaration to <stdlib.h>.
39807         * lib/stdlib.in.h (strtoull): New declaration.
39808         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
39809         Set HAVE_STRTOULL.
39810         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
39811         HAVE_STRTOULL.
39812         * modules/strtoull (Depends-on): Add stdlib.
39813         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39814         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
39815         HAVE_STRTOULL.
39816
39817 2008-10-19  Bruno Haible  <bruno@clisp.org>
39818
39819         Add strtoll() declaration to <stdlib.h>.
39820         * lib/stdlib.in.h (strtoll): New declaration.
39821         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
39822         Set HAVE_STRTOLL.
39823         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
39824         HAVE_STRTOLL.
39825         * modules/strtoll (Depends-on): Add stdlib.
39826         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39827         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
39828
39829 2008-10-19  Bruno Haible  <bruno@clisp.org>
39830
39831         * modules/bcopy (Depends-on): Add strings.
39832         (Include): Specify <strings.h>.
39833
39834 2008-10-19  Bruno Haible  <bruno@clisp.org>
39835
39836         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
39837
39838 2008-10-19  Bruno Haible  <bruno@clisp.org>
39839
39840         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
39841         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
39842         mingw.
39843
39844 2008-10-19  Bruno Haible  <bruno@clisp.org>
39845
39846         * lib/atanl.c: Don't include isnanl.h.
39847         * lib/cosl.c: Likewise.
39848         * lib/ldexpl.c: Likewise.
39849         * lib/logl.c: Likewise.
39850         * lib/sinl.c: Likewise.
39851         * lib/sqrtl.c: Likewise.
39852         * lib/tanl.c: Likewise.
39853
39854         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
39855         * lib/isnanf.h: Remove file.
39856         * lib/isnand.h: Remove file.
39857         * lib/isnanl.h: Remove file.
39858         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
39859         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
39860         macros.
39861         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
39862         HAVE_ISNANF, don't define it as a C macro.
39863         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
39864         HAVE_ISNAND, don't define it as a C macro.
39865         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
39866         HAVE_ISNANL, don't define it as a C macro.
39867         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
39868         HAVE_ISNAN[FDL].
39869         * modules/isnanf (Files): Remove lib/isnanf.h.
39870         (Depends-on): Add math.
39871         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
39872         (Include): Specify <math.h> instead of isnanf.h.
39873         * modules/isnand (Files): Remove lib/isnand.h.
39874         (Depends-on): Add math.
39875         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
39876         (Include): Specify <math.h> instead of isnand.h.
39877         * modules/isnanl (Files): Remove lib/isnanl.h.
39878         (Depends-on): Add math.
39879         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
39880         (Include): Specify <math.h> instead of isnanl.h.
39881         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
39882         HAVE_ISNAN[FDL].
39883         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
39884         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
39885         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
39886         * NEWS: Mention the change.
39887
39888 2008-10-18  Bruno Haible  <bruno@clisp.org>
39889
39890         Add getusershell(), setusershell(), endusershell() declarations to
39891         <unistd.h>.
39892         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
39893         declarations.
39894         * lib/getusershell.c: Include unistd.h.
39895         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
39896         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
39897         HAVE_GETUSERSHELL.
39898         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
39899         and HAVE_GETUSERSHELL.
39900         * modules/getusershell (Depends-on): Add unistd, extensions.
39901         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39902         (Include): Specify <unistd.h>.
39903         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
39904         HAVE_GETUSERSHELL.
39905
39906 2008-10-18  Bruno Haible  <bruno@clisp.org>
39907
39908         Add a getloadavg() declaration to <stdlib.h>.
39909         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
39910         getloadavg declaration.
39911         (getloadavg): New declaration.
39912         * lib/getloadavg.c: Include <stdlib.h> first.
39913         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
39914         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
39915         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
39916         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
39917         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
39918         * modules/getloadavg (Depends-on): Add stdlib, extensions.
39919         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39920         (Include): Specify <stdlib.h>.
39921         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
39922         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
39923
39924 2008-10-18  Bruno Haible  <bruno@clisp.org>
39925
39926         * lib/dirchownmod.c: Don't include lchmod.h.
39927
39928         Move the lchmod() declaration to <sys/stat.h>.
39929         * lib/lchmod.h: Remove file.
39930         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
39931         (lchmod): New declaration, moved here from lib/lchown.h.
39932         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
39933         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
39934         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
39935         and HAVE_LCHMOD.
39936         * modules/lchmod (Files): Remove lib/lchmod.h.
39937         (Depends-on): Add sys_stat, extensions.
39938         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
39939         (Include): Specify <sys/stat.h> instead of lchmod.h.
39940         * modules/sys_stat (Depends-on): Add link-warning.
39941         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
39942         definition of GL_LINK_WARNING.
39943         * NEWS: Mention the change.
39944
39945 2008-10-18  Bruno Haible  <bruno@clisp.org>
39946
39947         * lib/fchdir.c: Don't include dirfd.h.
39948         * lib/fts.c: Likewise.
39949         * lib/getcwd.c: Likewise.
39950         * lib/glob.c: Likewise.
39951
39952         Move the dirfd() declaration to <dirent.h>.
39953         * lib/dirfd.h: Remove file.
39954         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
39955         (dirfd): New declaration.
39956         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
39957         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
39958         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
39959         HAVE_DECL_DIRFD.
39960         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
39961         HAVE_DECL_DIRFD.
39962         * modules/dirfd (Files): Remove lib/dirfd.h.
39963         (Depends-on): Add dirent, extensions.
39964         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
39965         (Include): Specify <dirent.h> instead of dirfd.h.
39966         * modules/dirent (Depends-on): Add link-warning.
39967         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
39968         definition of GL_LINK_WARNING.
39969         * NEWS: Mention the change.
39970
39971 2008-10-18  Bruno Haible  <bruno@clisp.org>
39972
39973         Move the euidaccess() declaration to <unistd.h>.
39974         * lib/euidaccess.h: Remove file.
39975         * lib/unistd.in.h (euidaccess): New declaration.
39976         * lib/euidaccess.c: Don't include euidaccess.h.
39977         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
39978         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
39979         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
39980         and HAVE_EUIDACCESS.
39981         * modules/euidaccess (Files): Remove lib/euidaccess.h.
39982         (Depends-on): Add unistd.
39983         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39984         (Include): Specify <unistd.h> instead of euidaccess.h.
39985         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
39986         HAVE_EUIDACCESS.
39987         * NEWS: Mention the change.
39988
39989 2008-10-18  Bruno Haible  <bruno@clisp.org>
39990
39991         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
39992
39993         Move the getdomainname() declaration to <unistd.h>.
39994         * lib/getdomainname.h: Remove file.
39995         * lib/unistd.in.h (getdomainname): New declaration.
39996         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
39997         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
39998         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
39999         HAVE_GETDOMAINNAME.
40000         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40001         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
40002         * modules/getdomainname (Files): Remove lib/getdomainname.h.
40003         (Depends-on): Add unistd, extensions.
40004         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
40005         (Includes): Specify <unistd.h> instead of getdomainname.h.
40006         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
40007         HAVE_GETDOMAINNAME.
40008         * NEWS: Mention the change.
40009
40010 2008-10-18  Bruno Haible  <bruno@clisp.org>
40011
40012         * modules/dirent: New file.
40013         * m4/dirent_h.m4: New file.
40014         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
40015         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
40016         * modules/fchdir (Files): Remove lib/dirent.in.h.
40017         (Depends-on): Add dirent.
40018         (Makefile.am): Move rules to modules/dirent.
40019         * doc/posix-headers/dirent.texi: Mention the new module.
40020
40021 2008-10-18  Bruno Haible  <bruno@clisp.org>
40022
40023         Avoid -Wunused-parameter warnings in public gnulib header files.
40024         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
40025         macro.
40026         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
40027
40028 2008-10-18  Bruno Haible  <bruno@clisp.org>
40029
40030         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
40031         * doc/glibc-functions/error.texi: Mention the module 'error'.
40032         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
40033         * doc/glibc-functions/getdomainname.texi: Mention the module
40034         'getdomainname'.
40035         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
40036         * doc/glibc-functions/getpagesize.texi: Mention the module
40037         'getpagesize'.
40038         * doc/glibc-functions/getusershell.texi: Mention the module
40039         'getusershell'.
40040         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
40041         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
40042         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
40043         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
40044         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
40045         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
40046         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
40047         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
40048         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
40049         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
40050         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
40051         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
40052         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
40053         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
40054
40055 2008-10-17  Bruno Haible  <bruno@clisp.org>
40056
40057         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
40058         HP-UX and IRIX, use -0.0L.
40059         * tests/test-ceill.c (minus_zero): Likewise.
40060         * tests/test-floorl.c (minus_zero): Likewise.
40061         * tests/test-frexpl.c (minus_zero): Likewise.
40062         * tests/test-isnan.c (minus_zerol): Likewise.
40063         * tests/test-isnanl.h (minus_zero): Likewise.
40064         * tests/test-ldexpl.c (minus_zero): Likewise.
40065         * tests/test-roundl.c (minus_zero): Likewise.
40066         * tests/test-signbit.c (minus_zerol): Likewise.
40067         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
40068         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
40069         * tests/test-truncl.c (minus_zero): Likewise.
40070         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
40071         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
40072         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
40073         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
40074
40075 2008-10-17  Bruno Haible  <bruno@clisp.org>
40076
40077         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
40078         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
40079         that it gets activated only for gcc >= 3.0.
40080         * lib/dirent.in.h: Likewise.
40081         * lib/errno.in.h: Likewise.
40082         * lib/fcntl.in.h: Likewise.
40083         * lib/float.in.h: Likewise.
40084         * lib/iconv.in.h: Likewise.
40085         * lib/inttypes.in.h: Likewise.
40086         * lib/locale.in.h: Likewise.
40087         * lib/math.in.h: Likewise.
40088         * lib/netdb.in.h: Likewise.
40089         * lib/netinet_in.in.h: Likewise.
40090         * lib/search.in.h: Likewise.
40091         * lib/signal.in.h: Likewise.
40092         * lib/spawn.in.h: Likewise.
40093         * lib/stdarg.in.h: Likewise.
40094         * lib/stdint.in.h: Likewise.
40095         * lib/stdio.in.h: Likewise.
40096         * lib/stdlib.in.h: Likewise.
40097         * lib/string.in.h: Likewise.
40098         * lib/strings.in.h: Likewise.
40099         * lib/sys_file.in.h: Likewise.
40100         * lib/sys_ioctl.in.h: Likewise.
40101         * lib/sys_select.in.h: Likewise.
40102         * lib/sys_socket.in.h: Likewise.
40103         * lib/sys_stat.in.h: Likewise.
40104         * lib/sys_time.in.h: Likewise.
40105         * lib/sysexits.in.h: Likewise.
40106         * lib/time.in.h: Likewise.
40107         * lib/unistd.in.h: Likewise.
40108         * lib/wchar.in.h: Likewise.
40109         * lib/wctype.in.h: Likewise.
40110         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
40111
40112 2008-10-17  Jim Meyering  <meyering@redhat.com>
40113
40114         ignore-value: don't depend on inline module
40115         * modules/ignore-value (Depends-on): Remove 'inline'.
40116         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
40117         Suggestion from Bruno Haible.
40118
40119 2008-10-17  Bruno Haible  <bruno@clisp.org>
40120
40121         New implementation of condition variables for Win32.
40122         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
40123         (gl_linked_waitqueue_t): New type.
40124         (gl_cond_t): Use it.
40125         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
40126         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
40127         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
40128         (glthread_cond_init_func, glthread_cond_wait_func,
40129         glthread_cond_timedwait_func, glthread_cond_signal_func,
40130         glthread_cond_broadcast_func, glthread_cond_destroy_func):
40131         Reimplemented on the basis of gl_linked_waitqueue_t.
40132         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
40133         gl_waitqueue_t.
40134         (gl_rwlock_t): Update.
40135         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
40136
40137 2008-10-17  Simon Josefsson  <simon@josefsson.org>
40138
40139         * modules/recvfrom (Depends-on): Add dependency on getpeername.
40140         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
40141
40142 2008-10-17  Jim Meyering  <meyering@redhat.com>
40143
40144         ignore-value: new module
40145         * modules/ignore-value: New file.
40146         * lib/ignore-value.h: New file.
40147         * MODULES.html.sh (Compiler warning management): New section,
40148         just for this module.  More to come.
40149
40150 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
40151
40152         open-safer.c: avoid 'signed and unsigned in conditional...' warning
40153         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
40154         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
40155
40156 2008-10-16  Jim Meyering  <meyering@redhat.com>
40157
40158         openat-die.c: avoid 'no previous prototype' warning
40159         * lib/openat-die.c: Include "openat.h".
40160         Reported by Reuben Thomas <rrt@sc3d.org>.
40161
40162 2008-10-16  Simon Josefsson  <simon@josefsson.org>
40163
40164         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
40165         * lib/netdb.in.h: Fix typo.
40166         Reported by Bruno Haible  <bruno@clisp.org>
40167
40168         * lib/netdb.in.h: Include sys/socket.h for platforms without
40169         netdb.h, to get structures like hostent on MinGW.
40170         * modules/netdb (Depends-on): Add sys_socket.
40171
40172 2008-10-15  Simon Josefsson  <simon@josefsson.org>
40173
40174         * modules/netdb, modules/netdb-tests: New file.
40175         * m4/netdb_h.m4: New file.
40176         * lib/netdb.in.h: Add, currently just an empty file pending
40177         definitions.
40178         * tests/test-netdb.c: New file.
40179         * doc/posix-headers/netdb.texi: Mention that we replace it if
40180         needed.
40181         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
40182         netdb.
40183
40184 2008-10-15  Simon Josefsson  <simon@josefsson.org>
40185
40186         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
40187         with code.
40188
40189 2008-10-13  Bruno Haible  <bruno@clisp.org>
40190
40191         * lib/glthread/cond.c (glthread_cond_wait_func,
40192         glthread_cond_timedwait_func): Add a comment.
40193
40194 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
40195
40196         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
40197         * tests/test-select.c: Likewise,
40198
40199 2008-10-13  Bruno Haible  <bruno@clisp.org>
40200
40201         * lib/glthread/cond.c (glthread_cond_wait_func,
40202         glthread_cond_timedwait_func): Fix variable name.
40203         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
40204
40205 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
40206
40207         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
40208         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
40209         struct sockaddr.sa_len.
40210         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
40211
40212 2008-10-13  Simon Josefsson  <simon@josefsson.org>
40213
40214         * build-aux/pmccabe2html: Add css and css_url parameters.
40215
40216 2008-10-12  Bruno Haible  <bruno@clisp.org>
40217
40218         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
40219         calling aclx_get.
40220         Reported by Rainer Tammer <tammer@tammer.net>.
40221
40222 2008-10-12  Bruno Haible  <bruno@clisp.org>
40223
40224         Use msvcrt aware primitives for creation/termination of Win32 threads.
40225         * lib/glthread/thread.c: Include <process.h>.
40226         (glthread_create_func): Use _beginthreadex instead of CreateThread.
40227         (wrapper_func): Update signature.
40228         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
40229
40230 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
40231             Bruno Haible  <bruno@clisp.org>
40232
40233         Provide a Win32 implementation of the 'cond' module.
40234         * lib/glthread/cond.h [USE_WIN32]: New implementation.
40235         * lib/glthread/cond.c (glthread_cond_init_func,
40236         glthread_cond_wait_func, glthread_cond_timedwait_func,
40237         glthread_cond_signal_func, glthread_cond_broadcast_func,
40238         glthread_cond_destroy_func) [USE_WIN32]: New functions.
40239         * modules/cond (Dependencies): Add gettimeofday.
40240
40241 2008-10-11  Bruno Haible  <bruno@clisp.org>
40242
40243         Make sleep work on older versions of mingw.
40244         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
40245         only whether it exists.
40246         * doc/posix-functions/sleep.texi: Mention the problem with older
40247         versions of mingw.
40248
40249 2008-10-11  Bruno Haible  <bruno@clisp.org>
40250
40251         New module 'shutdown'.
40252         * modules/shutdown: New file.
40253         * lib/sys_socket.in.h (shutdown): New declaration.
40254         * lib/winsock.c (shutdown): New function.
40255         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
40256         GNULIB_SHUTDOWN.
40257         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
40258         * doc/posix-functions/shutdown.texi: Document the new module.
40259
40260 2008-10-11  Jim Meyering  <meyering@redhat.com>
40261
40262         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
40263
40264 2008-10-11  Bruno Haible  <bruno@clisp.org>
40265
40266         New module 'fclose'.
40267         * modules/fclose: New file.
40268         * lib/stdio.in.h (fclose): New declaration.
40269         * lib/fclose.c: New file.
40270         * m4/fclose.m4: New file.
40271         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
40272         REPLACE_FCLOSE.
40273         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
40274         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
40275         REPLACE_FCLOSE.
40276         * modules/close (Depends-on): fclose.
40277         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
40278
40279 2008-10-11  Bruno Haible  <bruno@clisp.org>
40280
40281         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
40282         set errno and don't call _close.
40283
40284 2008-10-10  Bruno Haible  <bruno@clisp.org>
40285
40286         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
40287         ACL, not afterwards. Fixes test failure on Cygwin.
40288
40289 2008-10-09  Ben Pfaff  <blp@gnu.org>
40290
40291         * build-aux/announce-gen: Fix gnulib version related part of usage
40292         message.  Die with a useful error message if no tarballs are
40293         found.
40294
40295 2008-10-10  Jim Meyering  <meyering@redhat.com>
40296
40297         bootstrap: use git's --depth=N option only if it's supported
40298         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
40299         recognize the --depth option.  Reported by Pádraig Brady.
40300
40301 2008-10-09  Bruno Haible  <bruno@clisp.org>
40302
40303         New module 'ioctl'.
40304         * modules/ioctl: New file.
40305         * lib/sys_socket.in.h (ioctl): Remove declaration.
40306         * lib/winsock.c: Include <sys/ioctl.h>.
40307         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
40308         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
40309         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
40310         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
40311         * doc/posix-functions/ioctl.texi: Mention the new module.
40312
40313 2008-10-09  Bruno Haible  <bruno@clisp.org>
40314
40315         New module 'sys_ioctl'.
40316         * lib/sys_ioctl.in.h: New file.
40317         * m4/sys_ioctl_h.m4: New file.
40318         * modules/sys_ioctl: New file.
40319         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
40320
40321 2008-10-09  Bruno Haible  <bruno@clisp.org>
40322
40323         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
40324         * lib/winsock.c: Include <stdarg.h>.
40325         (rpl_ioctl): Change to second argument 'int' and then varargs.
40326
40327 2008-10-09  Bruno Haible  <bruno@clisp.org>
40328
40329         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
40330         when the sys_socket module is present and the system has <winsock2.h>.
40331
40332 2008-10-09  Bruno Haible  <bruno@clisp.org>
40333
40334         * doc/posix-functions/close.texi: Mention module 'close' instead of
40335         module 'sys_socket'.
40336
40337 2008-10-09  Bruno Haible  <bruno@clisp.org>
40338
40339         * doc/glibc-headers/sys_ioctl.texi: New file.
40340         * doc/gnulib.texi: Include it.
40341
40342 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
40343             Bruno Haible  <bruno@clisp.org>
40344
40345         Combine the two replacements of 'close'.
40346         * lib/sys_socket.in.h (close): Define to a reminder to include
40347         <unistd.h>.
40348         (_gl_close_fd_maybe_socket): New declaration.
40349         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
40350         * lib/winsock.c (close): Remove undefinition.
40351         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
40352         needed for the gnulib module 'close'.
40353         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
40354         define to an error symbol or to a warning, if suitable.
40355         * lib/close.c: Include <sys/socket.h>.
40356         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
40357         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
40358         UNISTD_H_HAVE_WINSOCK2_H.
40359         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
40360         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40361         UNISTD_H_HAVE_WINSOCK2_H.
40362         * modules/sys_socket (Files): Add m4/unistd_h.m4.
40363         (configure.ac): Set a module indicator.
40364         (Makefile.am): Substitute GNULIB_CLOSE.
40365         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
40366         * modules/poll-tests (Depends-on): Add close.
40367         * modules/select-tests (Depends-on): Likewise.
40368
40369 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
40370             Bruno Haible  <bruno@clisp.org>
40371
40372         New module 'close'.
40373         * modules/close: New file.
40374         * lib/unistd.in.h (close): Move declaration out of the
40375         FCHDIR_REPLACEMENT scope.
40376         (_gl_unregister_fd): New declaration.
40377         * lib/close.c: New file.
40378         * lib/fchdir.c (rpl_close): Remove function.
40379         * m4/close.m4: New file.
40380         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
40381         close.
40382         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
40383         REPLACE_CLOSE.
40384         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
40385         REPLACE_CLOSE.
40386         * modules/fchdir (Depends-on): Add close.
40387
40388 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
40389             Bruno Haible  <bruno@clisp.org>
40390
40391         * lib/fcntl.in.h (open): Simplify conditionals.
40392         (_gl_register_fd): New declaration.
40393         * lib/fchdir.c (rpl_open): Remove function.
40394         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
40395         also.
40396         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
40397         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
40398         open.
40399
40400 2008-10-09  Jim Meyering  <meyering@redhat.com>
40401
40402         GNUmakefile: use the more name-space-friendly "_version"
40403         * top/GNUmakefile (_dummy): Update.
40404         (_version): Rename from "version".
40405
40406 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
40407             Bruno Haible  <bruno@clisp.org>
40408
40409         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
40410         rpl_close.
40411         (_gl_register_fd): New function, extracted from rpl_open.
40412         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
40413         (rpl_open, rpl_opendir): Use _gl_register_fd.
40414
40415 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
40416
40417         Fix organization of 'open' replacement.
40418         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
40419         (gl_FUNC_OPEN): Use it.
40420         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
40421
40422 2008-10-08  Bruno Haible  <bruno@clisp.org>
40423
40424         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
40425
40426 2008-10-08  Simon Josefsson  <simon@josefsson.org>
40427
40428         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
40429         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
40430         listen).
40431
40432 2008-10-08  Eric Blake  <ebb9@byu.net>
40433
40434         GNUmakefile: add 'make version' target
40435         * top/GNUmakefile (_curr-ver): Split version update rules...
40436         (version): ...into a target.
40437
40438 2008-10-07  Bruno Haible  <bruno@clisp.org>
40439
40440         Use a more portable replacement expression for -0.0L.
40441         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
40442         instead of -0.0L. Fix m4 quotation.
40443
40444         * tests/test-signbit.c: Include <float.h>.
40445         (minus_zero): New variable.
40446         (test_signbitl): Use minus_zero instead of -zero.
40447         * modules/signbit-tests (Depends-on): Add float.
40448
40449         * tests/test-ceill.c: Include <float.h>.
40450         (zero): Remove variable.
40451         (minus_zero): New variable.
40452         (main): Use minus_zero instead of -zero.
40453         * modules/ceill-tests (Depends-on): Add float.
40454
40455         * tests/test-floorl.c: Include <float.h>.
40456         (zero): Remove variable.
40457         (minus_zero): New variable.
40458         (main): Use minus_zero instead of -zero.
40459         * modules/floorl-tests (Depends-on): Add float.
40460
40461         * tests/test-roundl.c: Include <float.h>.
40462         (zero): Remove variable.
40463         (minus_zero): New variable.
40464         (main): Use minus_zero instead of -zero.
40465         * modules/roundl-tests (Depends-on): Add float.
40466
40467         * tests/test-truncl.c: Include <float.h>.
40468         (zero): Remove variable.
40469         (minus_zero): New variable.
40470         (main): Use minus_zero instead of -zero.
40471         * modules/truncl-tests (Depends-on): Add float.
40472
40473         * tests/test-frexpl.c (zero): Remove variable.
40474         (minus_zero): New variable.
40475         (main): Use minus_zero instead of -zero.
40476         * modules/frexpl-tests (Depends-on): Add float.
40477
40478         * tests/test-isnan.c (zerol): Remove variable.
40479         (minus_zerol): New variable.
40480         (test_long_double): Use minus_zerol instead of -zerol.
40481         * modules/isnan-tests (Depends-on): Add float.
40482
40483         * tests/test-isnanl.h (zero): Remove variable.
40484         (minus_zero): New variable.
40485         (main): Use minus_zero instead of -zero.
40486         * modules/isnanl-nolibm-tests (Depends-on): Add float.
40487         * modules/isnanl-tests (Depends-on): Add float.
40488
40489         * tests/test-ldexpl.c (zero): Remove variable.
40490         (minus_zero): New variable.
40491         (main): Use minus_zero instead of -zero.
40492         * modules/ldexpl-tests (Depends-on): Add float.
40493
40494         * tests/test-snprintf-posix.h (zerol): Remove variable.
40495         (minus_zerol): New variable.
40496         (test_function): Use minus_zerol instead of -zerol.
40497         * modules/snprintf-posix-tests (Depends-on): Add float.
40498         * modules/vsnprintf-posix-tests (Depends-on): Add float.
40499
40500         * tests/test-sprintf-posix.h (zerol): Remove variable.
40501         (minus_zerol): New variable.
40502         (test_function): Use minus_zerol instead of -zerol.
40503         * modules/sprintf-posix-tests (Depends-on): Add float.
40504         * modules/vsprintf-posix-tests (Depends-on): Add float.
40505
40506         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
40507         (minus_zerol): New variable.
40508         (test_function): Use minus_zerol instead of -zerol.
40509         * modules/vasnprintf-posix-tests (Depends-on): Add float.
40510
40511         * tests/test-vasprintf-posix.c (zerol): Remove variable.
40512         (minus_zerol): New variable.
40513         (test_function): Use minus_zerol instead of -zerol.
40514         * modules/vasprintf-posix-tests (Depends-on): Add float.
40515
40516 2008-10-07  Simon Josefsson  <simon@josefsson.org>
40517
40518         * MODULES.html.sh (Support for building documentation): Mention
40519         pmccabe2html.  Sort entries.
40520
40521         Add pmccabe2html module, from gnupdf.
40522         * build-aux/pmccabe.css: New file.
40523         * build-aux/pmccabe2html: New file.
40524         * m4/pmccabe2html.m4: New file.
40525         * modules/pmccabe2html: New file.
40526
40527 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
40528
40529         flock: new module
40530         * MODULES.html.sh: Add to list of modules.
40531         * lib/flock.c: flock implementation for Windows and Unix systems
40532         which have fcntl.
40533         * doc/glibc-functions/flock.texi: Update documentation.
40534         * lib/sys_file.in.h: <sys/file.h> header file.
40535         * m4/flock.m4: M4 macros.
40536         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
40537         * modules/flock: flock module.
40538         * modules/flock-tests: flock tests module.
40539         * modules/sys_file: sys/file.h module.
40540         * tests/test-flock.c: test suite for flock.
40541
40542 2008-10-06  Jim Meyering  <meyering@redhat.com>
40543
40544         bootstrap: check for LT_INIT more portably still ;-)
40545         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
40546         Spotted by Bruno Haible.
40547
40548 2008-10-06  Eric Blake  <ebb9@byu.net>
40549
40550         test-signbit: avoid tripping Irix cc bug on -0.0L
40551         * tests/test-signbit.c (minus_zerol): Delete, and replace with
40552         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
40553         entire testsuite consistent and avoids an Irix 6.2 bug.
40554
40555 2008-10-05  Bruno Haible  <bruno@clisp.org>
40556             Jim Meyering  <jim@meyering.net>
40557
40558         Add an option for ignoring EPIPE during close_stdout.
40559         * lib/closeout.h: Include <stdbool.h>.
40560         (close_stdout_set_ignore_EPIPE): New declaration.
40561         * lib/closeout.c: Include <stdbool.h>.
40562         (ignore_EPIPE): New variable.
40563         (close_stdout_set_ignore_EPIPE): New function.
40564         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
40565         * lib/close-stream.c (close_stream): Mention the possible EPIPE
40566         failure.
40567         * modules/closeout (Depends-on): Add stdbool.
40568
40569 2008-10-05  Bruno Haible  <bruno@clisp.org>
40570
40571         * modules/accept: New file.
40572         * modules/bind: New file.
40573         * modules/connect: New file.
40574         * modules/getpeername: New file.
40575         * modules/getsockname: New file.
40576         * modules/getsockopt: New file.
40577         * modules/listen: New file.
40578         * modules/recv: New file.
40579         * modules/recvfrom: New file.
40580         * modules/send: New file.
40581         * modules/sendto: New file.
40582         * modules/setsockopt: New file.
40583         * modules/socket: New file.
40584         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
40585         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
40586         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
40587         the particular module is requested. Add a link warning when the
40588         particular module is not requested.
40589         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
40590         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
40591         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
40592         the particular module is requested.
40593         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
40594         gl_SYS_SOCKET_H_DEFAULTS): New macros.
40595         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
40596         * modules/sys_socket (Depends-on): Add link-warning.
40597         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
40598         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
40599         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
40600         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
40601         GL_LINK_WARNING.
40602         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
40603         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
40604         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
40605         * doc/posix-functions/getpeername.texi: Mention the new module
40606         'getpeername'.
40607         * doc/posix-functions/getsockname.texi: Mention the new module
40608         'getsockname'.
40609         * doc/posix-functions/getsockopt.texi: Mention the new module
40610         'getsockopt'.
40611         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
40612         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
40613         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
40614         * doc/posix-functions/send.texi: Mention the new module 'send'.
40615         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
40616         * doc/posix-functions/setsockopt.texi: Mention the new module
40617         'setsockopt'.
40618         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
40619         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
40620         listen, connect, accept.
40621         * modules/select-tests (Depends-on): Likewise.
40622
40623 2008-10-05  Bruno Haible  <bruno@clisp.org>
40624
40625         * lib/winsock.c (strerror): Remove unused #undef.
40626         (rpl_close): Remove unused local variable.
40627
40628         * modules/sys_socket (Depends-on); Add errno.
40629
40630 2008-10-05  Bruno Haible  <bruno@clisp.org>
40631
40632         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
40633         (select): Add a link warning when the 'select' module is not used.
40634         * modules/sys_select (Depends-on): Add link-warning.
40635         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
40636         Suggested by Paolo Bonzini.
40637
40638 2008-10-05  Jim Meyering  <meyering@redhat.com>
40639
40640         bootstrap: check for LT_INIT more portably
40641         * build-aux/bootstrap: Avoid using grep -E, since it's not
40642         portable enough.  Suggestion from Bruno Haible.
40643
40644 2008-10-05  Bruno Haible  <bruno@clisp.org>
40645
40646         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
40647         as being fixed by gnulib.
40648
40649 2008-10-05  Bruno Haible  <bruno@clisp.org>
40650
40651         * modules/select-tests: New file, mostly copied from
40652         modules/sys_select-tests.
40653         * tests/test-select.c: New file, mostly copied from
40654         tests/test-sys_select.c.
40655         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
40656         * modules/sys_select-tests (Depends-on): Remove all dependencies.
40657         (Makefile.am): Remove test_sys_select_LDADD.
40658
40659         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
40660         to an undefined symbol, for an error message.
40661         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
40662         (gl_SYS_SELECT_H_DEFAULTS): New macro.
40663         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
40664         winsock-select.c here.
40665         * modules/sys_select (Files): Remove lib/winsock-select.c.
40666         (Depends-on): Remove alloca.
40667         (Makefile.am): Substitute GNULIB_SELECT.
40668         * modules/select: New file.
40669         * doc/posix-functions/select.texi: Update.
40670
40671 2008-10-05  Bruno Haible  <bruno@clisp.org>
40672
40673         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
40674         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
40675         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
40676         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
40677         getdtablesize.
40678         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
40679         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
40680
40681 2008-10-05  Bruno Haible  <bruno@clisp.org>
40682
40683         * modules/getdtablesize-tests: New file.
40684         * tests/test-getdtablesize.c: New file.
40685
40686         New module 'getdtablesize'.
40687         * lib/unistd.in.h (getdtablesize): New declaration.
40688         * lib/getdtablesize.c: New file.
40689         * m4/getdtablesize.m4: New file.
40690         * modules/getdtablesize: New file.
40691         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40692         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
40693         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
40694         HAVE_GETDTABLESIZE.
40695         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
40696
40697 2008-10-05  Bruno Haible  <bruno@clisp.org>
40698
40699         * modules/sched (Makefile.am): Fix typo.
40700         Reported by Simon Josefsson.
40701
40702 2008-10-05  Jim Meyering  <meyering@redhat.com>
40703
40704         bootstrap: check for LT_INIT, too
40705         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
40706         are deprecated.  Suggestion from Ralf Wildenhues.
40707
40708 2008-10-05  Bruno Haible  <bruno@clisp.org>
40709
40710         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
40711         overriding them by ours.
40712         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
40713
40714 2008-10-05  Jim Meyering  <meyering@redhat.com>
40715
40716         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
40717         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
40718         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
40719
40720 2008-10-04  Bruno Haible  <bruno@clisp.org>
40721
40722         * modules/dup2 (License): Change to LGPLv2+.
40723         * modules/sleep (License): Likewise.
40724         * modules/perror (License): Likewise.
40725         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
40726         Blake.
40727         * modules/signal (License): Likewise.
40728         * modules/sigprocmask (License): Likewise.
40729         * modules/raise (License): Change to LGPLv2+, with approval by Jim
40730         Meyering.
40731
40732 2008-10-04  Bruno Haible  <bruno@clisp.org>
40733
40734         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
40735         Reported by Rainer Tammer <tammer@tammer.net>.
40736
40737 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
40738             Bruno Haible  <bruno@clisp.org>
40739
40740         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
40741         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
40742         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
40743
40744 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
40745
40746         filevercmp: new module
40747         * lib/filevercmp.h: New function filevercmp comparing version strings.
40748         * lib/filevercmp.c: Implementation of filevercmp function.
40749         * modules/filevercmp: Module metadata.
40750         * tests/test-filevercmp.c: Unit test for new module.
40751         * modules/filevercmp-tests: Unit test metadata.
40752         * MODULES.html.sh: Add filevercmp module.
40753
40754 2008-10-03  Bruno Haible  <bruno@clisp.org>
40755
40756         * lib/c-ctype.h: Add comment.
40757         Reported by Jim Meyering.
40758
40759 2008-10-02  Bruno Haible  <bruno@clisp.org>
40760
40761         * modules/posix_spawn-internal (Depends-on): Add 'open'.
40762
40763 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
40764
40765         * build-aux/bootstrap: Allow renaming bootstrap, and change the
40766         name of bootstrap.conf accordingly.
40767
40768 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
40769
40770         * build-aux/bootstrap: Install git-merge-changelog configuration
40771         items into .gitconfig if needed.
40772
40773 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
40774
40775         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
40776         git repository, and initialize/update it accordingly.
40777
40778 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
40779
40780         * modules/fsync-tests: New file.
40781         * tests/test-fsync.c: New file.
40782
40783         New module 'fsync'.
40784         * lib/fsync.c: New file.
40785         * m4/fsync.m4: New file.
40786         * modules/fsync: New file.
40787         * lib/unistd.in.h (fsync): New declaration.
40788         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
40789         GNULIB_FSYNC and HAVE_FSYNC.
40790         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
40791         * MODULES.html.sh (posix_functions): Add fsync.
40792         * doc/posix-functions/fsync.texi: Mention the new module.
40793
40794 2008-10-02  Jim Meyering  <meyering@redhat.com>
40795
40796         fts.c: sync with similar code from coreutils' remove.c
40797         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
40798         Guard also with "#if defined __linux__", since for now at least,
40799         this code is Linux-kernel-specific.
40800
40801 2008-10-02  Jim Meyering  <meyering@redhat.com>
40802
40803         fts: bug fixes
40804         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
40805         Include <sys/vfs.h>, not <sys/statfs.h>.
40806
40807         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
40808         Include <sys/vfs.h>, not <sys/statfs.h>.
40809
40810 2008-10-01  Bruno Haible  <bruno@clisp.org>
40811
40812         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
40813         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
40814         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
40815         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
40816         * doc/posix-functions/posix_spawnp.texi: Likewise.
40817         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
40818         whether posix_spawn actually works.
40819         * m4/pipe.m4 (gl_PIPE): Likewise.
40820         * modules/execute (Files): Add m4/posix_spawn.m4.
40821         * modules/pipe (Files): Add m4/posix_spawn.m4.
40822         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
40823
40824 2008-10-01  Jim Meyering  <meyering@redhat.com>
40825
40826         remove trailing spaces
40827         * NEWS: Likewise.
40828         * lib/poll.c (poll): Likewise.
40829         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
40830         * lib/winsock.c (rpl_close): Likewise.
40831         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
40832         * modules/yield: Likewise.
40833         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
40834         * tests/test-sys_select.c (connect_to_socket): Likewise.
40835
40836         fts.c: adjust a new interface to be more generally useful
40837         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
40838         (fts_build): Adjust caller.
40839
40840 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40841
40842         * modules/cond-tests: New file.
40843         * tests/test-cond.c: New file.
40844
40845 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40846             Bruno Haible  <bruno@clisp.org>
40847
40848         * modules/cond (Dependencies): Add errno, time.
40849         * lib/glthread/cond.h: Include <time.h>.
40850         (gl_cond_define, gl_cond_define_initialized): Use the same definition
40851         across platforms.
40852
40853 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40854             Bruno Haible  <bruno@clisp.org>
40855
40856         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
40857
40858 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40859             Bruno Haible  <bruno@clisp.org>
40860
40861         * modules/tls-tests (Depends-on): Add thread, yield.
40862         (configure.ac): Remove all checks.
40863         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
40864         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
40865         gl_thread_self): Remove definitions. Include glthread/thread.h and
40866         glthread/yield.h instead.
40867         (test_tls): Pass an additional NULL argument to gl_thread_join.
40868
40869 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40870             Bruno Haible  <bruno@clisp.org>
40871
40872         * modules/lock-tests (Depends-on): Add thread, yield.
40873         (configure.ac): Remove all checks.
40874         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
40875         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
40876         gl_thread_self): Remove definitions. Include glthread/thread.h and
40877         glthread/yield.h instead.
40878         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
40879         additional NULL argument to gl_thread_join.
40880
40881 2008-09-30  Bruno Haible  <bruno@clisp.org>
40882
40883         Fix the Win32 implementation of the 'thread' module.
40884         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
40885         pointer type.
40886         (gl_thread_self): Invoke gl_thread_self_func.
40887         (gl_thread_self_func): New declaration.
40888         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
40889         (do_init_self_key, init_self_key): New functions.
40890         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
40891         Remove some fields.
40892         (running_threads, running_lock): Remove variables.
40893         (get_current_thread_handle): New function.
40894         (gl_thread_self_func, wrapper_func, glthread_create_func,
40895         glthread_join_func, gl_thread_exit_func): Largely rewritten and
40896         simplified.
40897
40898 2008-09-30  Bruno Haible  <bruno@clisp.org>
40899
40900         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
40901         files.
40902
40903 2008-09-30  Jim Meyering  <meyering@redhat.com>
40904
40905         fts.m4: correct the test for statfs.f_type
40906         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
40907         when checking for statfs.f_type.
40908
40909 2008-09-15  Simon Josefsson  <simon@josefsson.org>
40910
40911         tests: avoid some compiler warnings
40912         * tests/test-memchr.c (main): Pass NULL indirectly.
40913         * tests/test-getdate.c (main): Remove unused variable 'ret'.
40914
40915 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
40916
40917         getdate.y: disallow countable dayshifts like "4 yesterday ago"
40918         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
40919         exactly specified dayshifts.
40920         (dayshift): New rule.
40921         (rel): Add dayshift.
40922         (relative_time_table) [tomorrow, yesterday, today, now]:
40923         Use tDAY_SHIFT in place of tDAY_UNIT.
40924         * tests/test-getdate.c: Add tests for now-disallowed countable
40925         dayshifts, e.g., "4 yesterday ago".
40926
40927 2008-09-29  Bruno Haible  <bruno@clisp.org>
40928
40929         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
40930         * tests/test-posix_spawn1.in.sh: Renamed from
40931         tests/test-posix_spawn.in.sh.
40932         * tests/test-posix_spawn2.c: New file.
40933         * tests/test-posix_spawn2.in.sh: New file.
40934         * modules/posix_spawnp-tests (Files): Update.
40935         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
40936
40937 2008-09-29  Bruno Haible  <bruno@clisp.org>
40938
40939         Propagate effects of putenv/setenv/unsetenv to child processes.
40940         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
40941         * lib/pipe.c (create_pipe): Likewise.
40942
40943 2008-09-29  Bruno Haible  <bruno@clisp.org>
40944
40945         Enable use of shell scripts as executables in mingw.
40946         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
40947         run the program as a shell script.
40948         * lib/pipe.c (create_pipe): Likewise.
40949         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
40950         resulting array.
40951
40952 2008-09-29  Eric Blake  <ebb9@byu.net>
40953
40954         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
40955
40956 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
40957
40958         * doc/posix-functions/accept.texi: Update mingw problems.
40959         * doc/posix-functions/bind.texi: Update mingw problems.
40960         * doc/posix-functions/close.texi: Update mingw problems.
40961         * doc/posix-functions/connect.texi: Update mingw problems.
40962         * doc/posix-functions/getpeername.texi: Update mingw problems.
40963         * doc/posix-functions/getsockname.texi: Update mingw problems.
40964         * doc/posix-functions/getsockopt.texi: Update mingw problems.
40965         * doc/posix-functions/ioctl.texi: Update mingw problems.
40966         * doc/posix-functions/listen.texi: Update mingw problems.
40967         * doc/posix-functions/recv.texi: Update mingw problems.
40968         * doc/posix-functions/recvfrom.texi: Update mingw problems.
40969         * doc/posix-functions/select.texi: Update mingw problems.
40970         * doc/posix-functions/send.texi: Update mingw problems.
40971         * doc/posix-functions/sendto.texi: Update mingw problems.
40972         * doc/posix-functions/setsockopt.texi: Update mingw problems.
40973         * doc/posix-functions/socket.texi: Update mingw problems.
40974
40975 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
40976             Bruno Haible  <bruno@clisp.org>
40977
40978         * lib/sys_select.in.h: Include sys/time.h.
40979         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
40980         * modules/sys_select: Depend on sys_time.
40981         * tests/test-sys_select.c: Test that sys/select.h defines struct
40982         timeval fully.
40983
40984 2008-09-29  Bruno Haible  <bruno@clisp.org>
40985
40986         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
40987         * lib/sys_select.in.h: Likewise.
40988
40989 2008-09-29  Bruno Haible  <bruno@clisp.org>
40990
40991         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
40992
40993 2008-09-29  Bruno Haible  <bruno@clisp.org>
40994
40995         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
40996         Set LIBSOCKET instead of augmenting LIBS.
40997         * modules/sockets (Link): New section.
40998         * modules/sockets-tests (test_sockets_LDADD): New variable.
40999         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
41000         * modules/poll-tests (test_poll_LDADD): New variable.
41001         * NEWS: Document the change.
41002
41003 2008-09-29  Bruno Haible  <bruno@clisp.org>
41004
41005         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
41006         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
41007         ARPA_INET_H directly.
41008         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
41009
41010 2008-09-28  Bruno Haible  <bruno@clisp.org>
41011
41012         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
41013         from gl_HEADER_SYS_SOCKET.
41014         (gl_HEADER_SYS_SOCKET): Invoke it.
41015         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
41016
41017 2008-09-28  Bruno Haible  <bruno@clisp.org>
41018
41019         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
41020         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
41021         Needed on OSF/1 4.0.
41022
41023 2008-09-28  Bruno Haible  <bruno@clisp.org>
41024
41025         Override open more carefully.
41026         * lib/open.c (orig_open): New function.
41027         (rpl_open): Use orig_open instead of open.
41028         * lib/fcntl.in.h: Add special invocation convention.
41029         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
41030         (gl_FUNC_OPEN): Invoke it.
41031
41032         Override freopen more carefully.
41033         * lib/freopen.c (orig_freopen): New function.
41034         (rpl_freopen): Use orig_freopen instead of freopen.
41035         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
41036         (gl_FUNC_FREOPEN): Invoke it.
41037
41038         Override fopen more carefully.
41039         * lib/fopen.c (orig_fopen): New function.
41040         (rpl_fopen): Use orig_fopen instead of fopen.
41041         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
41042         (gl_FUNC_FOPEN): Invoke it.
41043         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
41044
41045 2008-09-28  Bruno Haible  <bruno@clisp.org>
41046
41047         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
41048         SIGPIPE.
41049
41050 2008-09-28  Bruno Haible  <bruno@clisp.org>
41051
41052         * tests/test-sigaction.c (handler, main): Disable the check whether
41053         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
41054         glibc systems with LinuxThreads.
41055
41056 2008-09-28  Bruno Haible  <bruno@clisp.org>
41057
41058         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
41059
41060         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
41061         with AIX xlc.
41062         * lib/fcntl.in.h (open): Likewise.
41063         Reported by Rainer Tammer <tammer@tammer.net>.
41064
41065 2008-09-28  Bruno Haible  <bruno@clisp.org>
41066
41067         * modules/posix_spawnp-tests: New file.
41068         * tests/test-posix_spawn.c: New file.
41069         * tests/test-posix_spawn.in.sh: New file.
41070
41071         New module 'posix_spawnp'.
41072         * modules/posix_spawnp: New file.
41073         * lib/spawnp.c: New file, from GNU libc with modifications.
41074         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
41075
41076         New module 'posix_spawn'.
41077         * modules/posix_spawn: New file.
41078         * lib/spawn.c: New file, from GNU libc with modifications.
41079         * doc/posix-functions/posix_spawn.texi: Mention the new module.
41080
41081         New module 'posix_spawnattr_destroy'.
41082         * modules/posix_spawnattr_destroy: New file.
41083         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
41084         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
41085         module.
41086
41087         New module 'posix_spawnattr_setsigmask'.
41088         * modules/posix_spawnattr_setsigmask: New file.
41089         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
41090         modifications.
41091         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
41092         new module.
41093
41094         New module 'posix_spawnattr_getsigmask'.
41095         * modules/posix_spawnattr_getsigmask: New file.
41096         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
41097         modifications.
41098         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
41099         new module.
41100
41101         New module 'posix_spawnattr_setsigdefault'.
41102         * modules/posix_spawnattr_setsigdefault: New file.
41103         * lib/spawnattr_setdefault.c: New file, from GNU libc with
41104         modifications.
41105         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
41106         new module.
41107
41108         New module 'posix_spawnattr_getsigdefault'.
41109         * modules/posix_spawnattr_getsigdefault: New file.
41110         * lib/spawnattr_getdefault.c: New file, from GNU libc with
41111         modifications.
41112         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
41113         new module.
41114
41115         New module 'posix_spawnattr_setschedpolicy'.
41116         * modules/posix_spawnattr_setschedpolicy: New file.
41117         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
41118         modifications.
41119         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
41120         new module.
41121
41122         New module 'posix_spawnattr_getschedpolicy'.
41123         * modules/posix_spawnattr_getschedpolicy: New file.
41124         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
41125         modifications.
41126         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
41127         new module.
41128
41129         New module 'posix_spawnattr_setschedparam'.
41130         * modules/posix_spawnattr_setschedparam: New file.
41131         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
41132         modifications.
41133         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
41134         new module.
41135
41136         New module 'posix_spawnattr_getschedparam'.
41137         * modules/posix_spawnattr_getschedparam: New file.
41138         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
41139         modifications.
41140         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
41141         new module.
41142
41143         New module 'posix_spawnattr_setpgroup'.
41144         * modules/posix_spawnattr_setpgroup: New file.
41145         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
41146         modifications.
41147         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
41148         module.
41149
41150         New module 'posix_spawnattr_getpgroup'.
41151         * modules/posix_spawnattr_getpgroup: New file.
41152         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
41153         modifications.
41154         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
41155         module.
41156
41157         New module 'posix_spawnattr_setflags'.
41158         * modules/posix_spawnattr_setflags: New file.
41159         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
41160         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
41161         module.
41162
41163         New module 'posix_spawnattr_getflags'.
41164         * modules/posix_spawnattr_getflags: New file.
41165         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
41166         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
41167         module.
41168
41169         New module 'posix_spawnattr_init'.
41170         * modules/posix_spawnattr_init: New file.
41171         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
41172         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
41173         module.
41174
41175         New module 'posix_spawn_file_actions_destroy'.
41176         * modules/posix_spawn_file_actions_destroy: New file.
41177         * lib/spawn_faction_destroy.c: New file, from GNU libc with
41178         modifications.
41179         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
41180         the new module.
41181
41182         New module 'posix_spawn_file_actions_addopen'.
41183         * modules/posix_spawn_file_actions_addopen: New file.
41184         * lib/spawn_faction_addopen.c: New file, from GNU libc with
41185         modifications.
41186         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
41187         the new module.
41188
41189         New module 'posix_spawn_file_actions_adddup2'.
41190         * modules/posix_spawn_file_actions_adddup2: New file.
41191         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
41192         modifications.
41193         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
41194         the new module.
41195
41196         New module 'posix_spawn_file_actions_addclose'.
41197         * modules/posix_spawn_file_actions_addclose: New file.
41198         * lib/spawn_faction_addclose.c: New file, from GNU libc with
41199         modifications.
41200         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
41201         the new module.
41202
41203         New module 'posix_spawn_file_actions_init'.
41204         * modules/posix_spawn_file_actions_init: New file.
41205         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
41206         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
41207         new module.
41208
41209         New module 'posix_spawn-internal'.
41210         * modules/posix_spawn-internal: New file.
41211         * lib/spawn_int.h: New file, from GNU libc with modifications.
41212         * lib/spawni.c: New file, from GNU libc with modifications.
41213         * m4/posix_spawn.m4: New file.
41214
41215         New module 'spawn'.
41216         * modules/spawn: New file.
41217         * lib/spawn.in.h: New file, from GNU libc with modifications.
41218         * m4/spawn_h.m4: New file.
41219         * doc/posix-headers/spawn.texi: Mention the new module.
41220
41221 2008-09-28  Bruno Haible  <bruno@clisp.org>
41222
41223         * modules/sched-tests: New file.
41224         * tests/test-sched.c: New file.
41225
41226         New module 'sched'.
41227         * modules/sched: New file.
41228         * lib/sched.in.h: New file.
41229         * m4/sched_h.m4: New file.
41230         * doc/posix-headers/sched.texi: Mention the new module.
41231
41232 2008-09-27  Eric Blake  <ebb9@byu.net>
41233
41234         Fix previous patch, and tweak references to $0.
41235         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
41236         (func_version, func_gnulib_dir): Don't call this program
41237         gnulib-tool.
41238         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
41239         with using $0 in function.
41240         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
41241         (func_fatal_error): Reuse the name the user invoked us with.
41242
41243 2008-09-27  Bruno Haible  <bruno@clisp.org>
41244
41245         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
41246         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
41247         (gl_ICONV_H): Not here.
41248         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
41249         instead of assigning ICONV_H directly.
41250
41251         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
41252         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
41253         WCHAR_H directly.
41254
41255 2008-09-27  Bruno Haible  <bruno@clisp.org>
41256
41257         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
41258         * modules/arpa_inet (Depends-on): Add link-warning.
41259         (Makefile.am): Insert the definition of GL_LINK-WARNING.
41260         * modules/unistd (Makefile.am): Likewise.
41261
41262 2008-09-26  Bruno Haible  <bruno@clisp.org>
41263
41264         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
41265         variables.
41266         (func_version): Essentially copied from gnulib-tool.
41267         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
41268         func_readlink): Copied from gnulib-tool.
41269
41270 2008-09-26  Bruno Haible  <bruno@clisp.org>
41271
41272         * gnulib-tool (func_version): Change directory to $gnulib_dir before
41273         invoking git-version-gen.
41274
41275 2008-09-26  Bruno Haible  <bruno@clisp.org>
41276
41277         * posix-modules: Update to directory names changed on 2008-01-19.
41278         Remove commas in output before splitting into words. No more need to
41279         avoid 'ftruncate' since 2007-02-19.
41280
41281 2008-09-26  Bruno Haible  <bruno@clisp.org>
41282
41283         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
41284
41285 2008-09-26  Bruno Haible  <bruno@clisp.org>
41286
41287         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
41288         * modules/fwriteerror (Depends-on): Add errno.
41289
41290 2008-09-26  Bruno Haible  <bruno@clisp.org>
41291
41292         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
41293         * tests/test-vc-list-files-cvs.sh: Likewise.
41294
41295 2008-09-26  Bruno Haible  <bruno@clisp.org>
41296
41297         * doc/posix-headers/sys_resource.texi: Reorder items.
41298
41299 2008-09-26  Jim Meyering  <meyering@redhat.com>
41300
41301         fts: tweak inode comparison function
41302         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
41303         inode numbers, as documented.
41304
41305         fts: sort dirent entries on inode number before traversing
41306         This avoids a quadratic, seek-related performance penalty when
41307         operating on a directory containing many entries (measurable at 10k;
41308         3.5 hours at 2 million entries with a cold cache) on certain types
41309         of file systems, including ext3 and ext4, but not tmpfs.
41310         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
41311         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
41312         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
41313         (fs_handles_readdir_ordered_dirents_efficiently): New function.
41314         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
41315         (fts_build): Set the stat.st_ino member from D_INO.
41316         If it is likely to be useful, sort dirent entries on inode number.
41317
41318         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
41319         and the struct statfs.f_type member.
41320         * modules/fts (Depends-on): Add d-ino.
41321
41322 2008-09-26  Bruno Haible  <bruno@clisp.org>
41323
41324         * modules/sigpipe-die (Depends-on): Add sigpipe.
41325
41326         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
41327         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
41328         and GNULIB_STDIO_H_SIGPIPE are set.
41329         * lib/stdio-write.c: New file.
41330         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
41331         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
41332         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
41333         REPLACE_STDIO_WRITE_FUNCS.
41334         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
41335         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
41336         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
41337         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
41338         * modules/stdio (Files): Add lib/stdio-write.c.
41339         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
41340         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
41341         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
41342         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
41343         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
41344         REPLACE_FPRINTF_POSIX.
41345         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
41346         REPLACE_PRINTF_POSIX.
41347         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
41348         REPLACE_VFPRINTF_POSIX.
41349         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
41350         REPLACE_VPRINTF_POSIX.
41351         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
41352         SIGPIPE issue.
41353         * doc/posix-functions/fputc.texi: Likewise.
41354         * doc/posix-functions/fputs.texi: Likewise.
41355         * doc/posix-functions/fwrite.texi: Likewise.
41356         * doc/posix-functions/printf.texi: Likewise.
41357         * doc/posix-functions/putc.texi: Likewise.
41358         * doc/posix-functions/putchar.texi: Likewise.
41359         * doc/posix-functions/puts.texi: Likewise.
41360         * doc/posix-functions/vfprintf.texi: Likewise.
41361         * doc/posix-functions/vprintf.texi: Likewise.
41362
41363         * modules/safe-write (Depends-on): Add write.
41364
41365         * modules/sigpipe-tests: New file.
41366         * tests/test-sigpipe.c: New file.
41367         * tests/test-sigpipe.sh: New file.
41368
41369         * modules/write: New file.
41370         * lib/unistd.in.h: Include <sys/types.h>.
41371         (write): New declaration.
41372         * lib/write.c: New file.
41373         * m4/write.m4: New file.
41374         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41375         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
41376         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
41377         GNULIB_WRITE, REPLACE_WRITE.
41378         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
41379         and the SIGPIPE issue.
41380
41381         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
41382         (raise): New declaration.
41383         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
41384         (ext_signal): New function.
41385         (rpl_raise): New function.
41386         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
41387         GNULIB_SIGNAL_H_SIGPIPE.
41388         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
41389         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
41390
41391         * modules/sigpipe: New file.
41392         * m4/sigpipe.m4: New file.
41393
41394 2008-09-25  Derek Price  <derek@ximbiot.com>
41395             Bruno Haible  <bruno@clisp.org>
41396
41397         * gnulib-tool (func_import): Report all license incompatibilities, not
41398         just the first one.
41399
41400 2008-09-25  Bruno Haible  <bruno@clisp.org>
41401
41402         * gnulib-tool (func_import): When computing the edits, consider not
41403         only the Makefile.ams that exist but also those that will be generated.
41404
41405 2008-09-25  Simon Josefsson  <simon@josefsson.org>
41406
41407         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
41408         fixes gnulib-tool --test warning about duplicate dependency.
41409
41410 2008-09-25  Bruno Haible  <bruno@clisp.org>
41411
41412         * gnulib-tool: Don't ask the user to perform edits in the generated
41413         Makefile.ams.
41414         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
41415         apply to the Makefile.am being generated.
41416         (func_emit_tests_Makefile_am): Execute edits that apply to the
41417         Makefile.am being generated.
41418         (func_import): Setup list of Makefile.am edits before emitting the
41419         Makefile.ams, not at the end.
41420         (func_create_testdir): Update.
41421         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41422
41423 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41424
41425         * gnulib-tool (func_import): Store the --tests-base option in the
41426         comment in gnulib-cache.m4.
41427
41428 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
41429
41430         * NEWS: Document increased portability that sys_select now provides.
41431
41432         * lib/sys_select.in.h: Install select wrapper.
41433         * lib/sys_socket.in.h: Use more descriptive name when there is no
41434         select wrapper.
41435         * lib/winsock-select.c: New.
41436         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
41437         Require gl_HEADER_SYS_SOCKET.
41438         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
41439         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
41440         * tests/test-sys_select.c: Add functional tests.
41441
41442 2008-09-24  Eric Blake  <ebb9@byu.net>
41443
41444         open, fopen: close fd leak in last patch
41445         * lib/open.c (rpl_open): Close fd before returning error.
41446         * lib/fopen.c (rpl_fopen): Close fd before returning error.
41447         * doc/posix-functions/open.texi (open): Document that Irix also
41448         has the bug.
41449         * doc/posix-functions/fopen.texi (fopen): Likewise.
41450         Reported by Paolo Bonzini.
41451
41452 2008-09-24  Bruno Haible  <bruno@clisp.org>
41453
41454         Ensure that a filename ending in a slash cannot be used to access a
41455         non-directory.
41456         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
41457         to check whether it's really a directory.
41458         * lib/fopen.c: Include fcntl.h, unistd.h.
41459         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
41460         and fdopen().
41461         * modules/fopen (Depends-on): Add unistd.
41462         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
41463         * tests/test-fopen.c (main): Likewise.
41464         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
41465         * doc/posix-functions/fopen.texi: Likewise.
41466         Reported by Eric Blake.
41467
41468 2008-09-23  Eric Blake  <ebb9@byu.net>
41469
41470         c-stack: avoid compiler optimizations when provoking overflow
41471         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
41472         recursion harder to optimize, to ensure a stack overflow occurs.
41473         * tests/test-c-stack.c (recurse): Likewise.
41474         Borrowed from libsigsegv.
41475
41476         c-stack: work around Irix sigaltstack bug
41477         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
41478         whether sigaltstack uses wrong end of stack_t (copied in part from
41479         libsigsegv).
41480         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
41481         Irix bug, without requiring an over-allocation.
41482         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
41483         bug.
41484
41485         fopen: document mingw bug on directories
41486         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
41487         not allowing a stream visiting a directory, even though reading
41488         from such a stream is not portable.
41489
41490 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
41491
41492         * lib/poll.c: Rewrite.
41493         * modules/poll: Depend on alloca.
41494
41495 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
41496
41497         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
41498         instead define prototypes for a full set of wrappers.  Ensure
41499         that Cygwin does not use the compatibility code, which is only
41500         for MinGW.
41501         * lib/winsock.c: New.
41502         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
41503         * modules/sys_socket: Add lib/winsock.c.
41504
41505         * modules/poll-tests: Add errno and perror.
41506         * tests/test-poll.c: Use ioctl, not ioctlsocket.
41507
41508 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
41509
41510         * tests/test-poll.c: Downgrade minimum needed Winsock version.
41511
41512 2008-09-23  Bruno Haible  <bruno@clisp.org>
41513
41514         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
41515         * doc/glibc-functions/*: Likewise.
41516
41517 2008-09-23  Simon Josefsson  <simon@josefsson.org>
41518
41519         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
41520         success.
41521
41522 2008-09-22  Eric Blake  <ebb9@byu.net>
41523             Bruno Haible  <bruno@clisp.org>
41524
41525         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
41526         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
41527         supply %A but mishandle pseudo-NaN.
41528         Reported by Simon Josefsson.
41529
41530 2008-09-21  Bruno Haible  <bruno@clisp.org>
41531
41532         * tests/test-lock.c (main): Tweak skip message.
41533         * tests/test-tls.c (main): Likewise.
41534
41535 2008-09-21  Bruno Haible  <bruno@clisp.org>
41536
41537         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
41538         whether 'struct sigaction' has sa_sigaction here...
41539         (gl_PREREQ_SIG_HANDLER_H): ... not here.
41540         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
41541
41542 2008-09-21  Bruno Haible  <bruno@clisp.org>
41543
41544         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
41545         section.
41546         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
41547         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
41548         the new section.
41549         (Support for obsolete systems lacking POSIX:2001): New section.
41550         (String handling <string.h>): Move strdup to the new section.
41551         Suggested by Simon Josefsson and Paolo Bonzini.
41552
41553 2008-09-21  Bruno Haible  <bruno@clisp.org>
41554
41555         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
41556         exponents in %e and %g results on 'long double'. Needed for mingw's
41557         improved *printf functions.
41558         * tests/test-vasprintf-posix.c (test_function): Likewise.
41559         * tests/test-snprintf-posix.h (test_function): Likewise.
41560         * tests/test-sprintf-posix.h (test_function): Likewise.
41561         Reported by Eric Blake.
41562
41563 2008-09-21  Bruno Haible  <bruno@clisp.org>
41564
41565         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
41566         * tests/test-sprintf-posix.h (test_function): Likewise.
41567
41568 2008-09-21  Bruno Haible  <bruno@clisp.org>
41569
41570         * modules/getpass (Depends-on): Add strdup-posix.
41571
41572         New module 'strdup-posix'.
41573         * modules/strdup-posix: New file.
41574         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
41575         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
41576         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
41577         REPLACE_STRDUP.
41578         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
41579         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
41580         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41581         strdup-posix.
41582
41583         * modules/strdup (Depends-on): Remove malloc-posix.
41584
41585 2008-09-20  Bruno Haible  <bruno@clisp.org>
41586
41587         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
41588         Wildenhues.
41589
41590 2008-09-20  Bruno Haible  <bruno@clisp.org>
41591
41592         Ensure that wint_t gets defined on IRIX 5.3.
41593         * lib/wchar.in.h (wint_t): Define if not defined by the system.
41594         * lib/wctype.in.h (wint_t): Likewise.
41595         (__wctype_wint_t): Remove type.
41596         (isw*): Use wint_t instead of __wctype_wint_t.
41597         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
41598         * modules/wchar (Files): Add m4/wint_t.m4.
41599         (Makefile.am): Substitute HAVE_WINT_T.
41600         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
41601         * tests/test-wctype.c: Check that wint_t is defined.
41602         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
41603         * doc/posix-headers/wctype.texi: Likewise.
41604         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41605
41606 2008-09-18  Bruno Haible  <bruno@clisp.org>
41607
41608         * gnulib-tool (func_exit): Update comment.
41609
41610 2008-09-18  Simon Josefsson  <simon@josefsson.org>
41611
41612         * modules/getaddrinfo (Depends-on): Remove strdup, this module
41613         assumes strdup exists and does not depend on strdup to return
41614         ENOMEM on out of memory conditions.
41615
41616 2008-09-18  Bruno Haible  <bruno@clisp.org>
41617
41618         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
41619         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
41620         digits for the exponent.
41621
41622 2008-09-18  Jim Meyering  <meyering@redhat.com>
41623             Bruno Haible  <bruno@clisp.org>
41624
41625         * lib/vasnprintf.c (decimal_point_char): Define also if
41626         NEED_PRINTF_INFINITE_LONG_DOUBLE.
41627
41628 2008-09-16  Bruno Haible  <bruno@clisp.org>
41629         and Eric Blake  <ebb9@byu.net>
41630
41631         vasnprintf: support Irix 5.3
41632         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
41633         that mishandle long double infinity.
41634         Reported by Tom G. Christensen.
41635
41636 2008-09-16  Bruno Haible  <bruno@clisp.org>
41637
41638         * doc/glibc-functions/scandir.texi: Mention the function is missing on
41639         Solaris 9.
41640         * doc/glibc-functions/alphasort.texi: Likewise.
41641         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
41642
41643 2008-09-16  Jim Meyering  <meyering@redhat.com>
41644
41645         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
41646         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
41647         a umask modification leak out of a subshell.  Otherwise, the
41648         opensolaris /bin/sh would be accepted and thus cause unwarranted
41649         failures in the coreutils test suite.
41650
41651 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
41652
41653         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
41654         to succeed.
41655
41656 2008-09-16  Jim Meyering  <meyering@redhat.com>
41657
41658         avoid spurious test failure when library is built without ACL support
41659         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
41660         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
41661         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
41662         * tests/test-copy-acl.sh: Likewise.
41663
41664 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41665
41666         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
41667         based on character occurrence counts.
41668
41669 2008-09-15  Eric Blake  <ebb9@byu.net>
41670
41671         tests: avoid some compiler warnings
41672         * tests/test-memchr.c (main): Pass NULL indirectly.
41673         * tests/test-closein.c (main): Avoid unused variable.
41674
41675 2008-09-15  Bruno Haible  <bruno@clisp.org>
41676
41677         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
41678         are missing on OpenBSD 4.0 individually.
41679         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41680
41681 2008-09-15  Bruno Haible  <bruno@clisp.org>
41682
41683         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
41684         * doc/posix-functions/strerror.texi: Mention also Cygwin.
41685         * doc/posix-functions/perror.texi: Likewise.
41686         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
41687         is missing.
41688         Reported by Eric Blake.
41689
41690         * lib/errno.in.h: Use replacement values >= 2000.
41691         Reported by Eric Blake.
41692
41693 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41694
41695         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
41696         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
41697         limit.
41698         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
41699         compareseq was aborted.
41700
41701 2008-09-14  Bruno Haible  <bruno@clisp.org>
41702
41703         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
41704         yvec_edit_count.
41705         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
41706         (fstrcmp_bounded): Simplify result computation accordingly.
41707
41708 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41709
41710         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
41711         (fstrcmp): Define in terms of fstrcmp_bounded.
41712         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
41713         lower_bound argument.
41714         Return quickly if the result is certainly < lower_bound.
41715         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
41716
41717 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41718
41719         * lib/diffseq.h (EARLY_ABORT): New macro.
41720         (compareseq): Change return type to bool. Return true when EARLY_ABORT
41721         evaluates to true.
41722
41723 2008-09-14  Bruno Haible  <bruno@clisp.org>
41724
41725         * modules/perror-tests: New file.
41726         * tests/test-perror.sh: New file.
41727         * tests/test-perror.c: New file.
41728
41729         New module 'perror'.
41730         * lib/stdio.in.h (perror): New declaration.
41731         * lib/perror.c: New file.
41732         * m4/perror.m4: New file.
41733         * modules/perror: New file.
41734         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
41735         * doc/posix-functions/perror.texi: Mention the perror module.
41736         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
41737         REPLACE_PERROR.
41738         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
41739         REPLACE_PERROR.
41740
41741 2008-09-14  Bruno Haible  <bruno@clisp.org>
41742
41743         * modules/stdio (Makefile.am): Reorder to match the order in
41744         lib/stdio.in.h.
41745         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
41746
41747 2008-09-13  Bruno Haible  <bruno@clisp.org>
41748
41749         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
41750
41751 2008-09-13  Bruno Haible  <bruno@clisp.org>
41752
41753         Extend strerror to cover the added errno values.
41754         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
41755         (rpl_strerror): Provide error messages for the added errno values and
41756         for the WSA* values.
41757         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
41758         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
41759         strerror.
41760         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
41761         * modules/strerror (Depends-on): Add errno.
41762         * doc/posix-functions/strerror.texi: Document the change.
41763         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
41764         and EOVERFLOW.
41765
41766 2008-09-13  Bruno Haible  <bruno@clisp.org>
41767
41768         * modules/EOVERFLOW: Remove file.
41769         * m4/eoverflow.m4: Remove file.
41770         * modules/EOVERFLOW-tests: Remove file.
41771         * tests/test-EOVERFLOW.c: Remove file.
41772         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
41773         * modules/ftell (Depends-on): Likewise.
41774         * modules/getdelim (Depends-on): Likewise.
41775         * modules/getugroups (Depends-on): Likewise.
41776         * modules/poll (Depends-on): Likewise.
41777         * modules/snprintf (Depends-on): Likewise.
41778         * modules/sprintf-posix (Depends-on): Likewise.
41779         * modules/vasnprintf (Depends-on): Likewise.
41780         * modules/vasprintf (Depends-on): Likewise.
41781         * modules/vfprintf-posix (Depends-on): Likewise.
41782         * modules/vsnprintf (Depends-on): Likewise.
41783         * modules/vsprintf-posix (Depends-on): Likewise.
41784         * modules/xvasprintf (Depends-on): Likewise.
41785         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
41786         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
41787         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
41788         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
41789         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
41790         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
41791         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
41792         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
41793         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
41794         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
41795         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
41796         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
41797         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
41798         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
41799         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
41800         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
41801         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
41802         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
41803         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
41804         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
41805         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
41806         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
41807         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
41808         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
41809         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
41810         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
41811         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
41812         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
41813         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
41814         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
41815         * MODULES.html.sh: Remove EOVERFLOW.
41816         * NEWS: Mention the change.
41817
41818 2008-09-13  Bruno Haible  <bruno@clisp.org>
41819
41820         * modules/errno-tests: New file.
41821         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
41822
41823         * lib/errno.in.h: New file.
41824         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
41825         * modules/errno: New file.
41826         * doc/posix-headers/errno.texi: Update documentation.
41827         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
41828
41829 2008-09-13  Bruno Haible  <bruno@clisp.org>
41830
41831         * tests/test-poll.c: Use #if for native Windows, rather than testing
41832         __MSVCRT__.
41833
41834 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41835             Bruno Haible  <bruno@clisp.org>
41836
41837         * lib/glob.c: Don't include <pwd.h> on native Windows.
41838         (WINDOWS32): New macro.
41839         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
41840
41841 2008-09-13  Bruno Haible  <bruno@clisp.org>
41842
41843         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
41844         (ETIMEDOUT): Remove macro.
41845         (glthread_cond_timedwait_multithreaded): New declaration.
41846         (glthread_cond_timedwait): Use it.
41847         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
41848         (glthread_cond_timedwait_multithreaded): New function.
41849
41850 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
41851
41852         * modules/poll-tests: Do not check for io.h.
41853         * tests/test-poll.c: Check for __MSVCRT__ instead.
41854
41855 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
41856
41857         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
41858         * modules/poll-tests: Add inet_pton, stdbool, sockets.
41859         * tests/test-poll.c: Use them.  Use _pipe on Windows.
41860
41861 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
41862
41863         * modules/poll-tests: New.
41864         * tests/test-poll.c: New.
41865
41866 2008-09-12  Eric Blake  <ebb9@byu.net>
41867
41868         frexp: test for NetBSD failure on -0.0
41869         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
41870         not all, bugs from NetBSD 3.0 have been fixed.
41871         * doc/posix-functions/frexp.texi (frexp): Document bug.
41872         Reported by Thomas Klausner.
41873
41874         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
41875         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
41876         literal -0.0.
41877         Reported by Jonathan C. Patschke <jp@centtech.com>.
41878
41879 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41880
41881         * lib/glthread/cond.h: Use dummy implementation also if
41882         USE_WIN32_THREADS.
41883
41884 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41885
41886         * modules/fnmatch-posix (License): Change to LGPLv2+.
41887         * modules/fnmatch-gnu (License): Likewise.
41888
41889 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41890
41891         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
41892
41893 2008-09-11  Jim Meyering  <meyering@redhat.com>
41894
41895         * users.txt: Add gtk-vnc.
41896
41897 2008-09-08  Simon Josefsson  <simon@josefsson.org>
41898
41899         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
41900         rotate amounts.
41901
41902         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
41903         required for 16-bit and 8-bit rotates.
41904         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
41905         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
41906         UINT8_MAX instead of hard-coded constants.
41907         Suggested by Paul Eggert.
41908
41909 2008-09-07  Bruno Haible  <bruno@clisp.org>
41910
41911         * tests/test-striconveh.c (main): Check behaviour when converting from
41912         UTF-7.
41913
41914         Make striconveh work better with stateful encodings.
41915         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
41916         that iconv does not increment the inptr when returning -1/EINVAL.
41917
41918 2008-09-07  Bruno Haible  <bruno@clisp.org>
41919
41920         * build-aux/config.rpath: Update according to libtool-2.2.6.
41921         * build-aux/config.libpath: Likewise.
41922
41923 2008-09-06  Bruno Haible  <bruno@clisp.org>
41924
41925         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
41926         * lib/freadptr.c (freadptr): Likewise.
41927         * lib/freadseek.c (freadptrinc): Likewise.
41928         Reported by Simon Josefsson.
41929
41930 2008-09-06  Bruno Haible  <bruno@clisp.org>
41931
41932         * modules/freadptr (License): Change to LGPLv2+.
41933         * modules/freadseek (License): Likewise.
41934         Suggested by Eric Blake.
41935
41936         * modules/memchr2 (License): Change to LGPLv2+.
41937         Approved by Eric Blake.
41938
41939 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41940             Bruno Haible  <bruno@clisp.org>
41941
41942         Make gnulib-tool work with native 'sed' on AIX.
41943         * gnulib-tool (sed_noop): New variable.
41944         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
41945         func_add_or_update, func_create_testdir): Use it to initialize sed
41946         script variables.
41947         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41948
41949 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
41950             Bruno Haible  <bruno@clisp.org>
41951
41952         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
41953         also works after #include directives.
41954
41955 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
41956
41957         getdate.y: reject an out-of-range timezone value
41958         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
41959         the range [-24...+24].  When specified with only one or two digits,
41960         * tests/test-getdate.c: Tests for the fix.
41961         * doc/getdate.texi: Document this change.
41962
41963 2008-09-03  Bruno Haible  <bruno@clisp.org>
41964
41965         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
41966
41967 2008-09-02  Simon Josefsson  <simon@josefsson.org>
41968
41969         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
41970         <bruce.korb@gmail.com> with ideas from Ben Pfaff
41971         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
41972         Blake <ebb9@byu.net>.
41973
41974         * tests/test-bitrotate.c: Add more test vectors.
41975
41976 2008-09-02  Eric Blake  <ebb9@byu.net>
41977
41978         vasnprintf-posix: handle large precision via %.*d
41979         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
41980         when handling it ourselves.
41981         * tests/test-vasnprintf-posix.c (test_function): Add test.
41982         * tests/test-snprintf-posix.h (test_function): Likewise.
41983         * tests/test-sprintf-posix.h (test_function): Likewise.
41984         * tests/test-vasprintf-posix.c (test_function): Likewise.
41985         Reported by Alain Guibert.
41986
41987 2008-09-01  Eric Blake  <ebb9@byu.net>
41988
41989         c-stack: make configure-time check more robust
41990         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
41991         successful sigaction call.
41992         Reported by Tom G. Christensen.
41993
41994 2008-09-01  Bruno Haible  <bruno@clisp.org>
41995
41996         New module 'findprog-lgpl'.
41997         * modules/findprog-lgpl: New file.
41998         * lib/findprog-lgpl.c: New file.
41999         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
42000         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
42001         to decide whether to use strdup or xstrdup, concatenated_filename or
42002         xconcatenated_filename.
42003
42004 2008-09-01  Bruno Haible  <bruno@clisp.org>
42005
42006         Split module 'concat-filename' into 'concat-filename' (LGPL) and
42007         'xconcat-filename' (GPL).
42008         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
42009         (License): Change to LGPLv2+.
42010         * modules/xconcat-filename: New file.
42011         * lib/concat-filename.h (concatenated_filename): Change specification.
42012         (xconcatenated_filename): New declaration.
42013         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
42014         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
42015         memory situations.
42016         * lib/xconcat-filename.c: New file.
42017         * NEWS: Mention the change.
42018         * lib/findprog.c: Include concat-filename.h, not filename.h.
42019         (find_in_path): Use xconcatenated_filename instead of
42020         concatenated_filename.
42021         * lib/javacomp.c: Include concat-filename.h, not filename.h.
42022         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
42023         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
42024         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
42025         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
42026         instead of concatenated_filename.
42027         * lib/javaexec.c: Include concat-filename.h, not filename.h.
42028         (execute_java_class): Use xconcatenated_filename instead of
42029         concatenated_filename.
42030         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
42031         * modules/javacomp (Depends-on): Likewise.
42032         * modules/javaexec (Depends-on): Likewise.
42033
42034 2008-09-01  Bruno Haible  <bruno@clisp.org>
42035
42036         Split module 'filename' into 'filename' and 'concat-filename'.
42037         * modules/filename: Keep only lib/filename.h.
42038         (License): Change to LGPLv2+.
42039         * modules/concat-filename: New file, extracted from modules/filename.
42040         * lib/filename.h (concatenated_filename): Remove declaration.
42041         * lib/concat-filename.h: New file, extracted from lib/filename.h.
42042         * lib/concat-filename.c: Include concat-filename.h.
42043         * NEWS: Mention the change.
42044
42045 2008-09-01  Simon Josefsson  <simon@josefsson.org>
42046
42047         * lib/bitrotate.h (rotl8, rotr8): Add.
42048
42049         * modules/bitrotate (configure.ac): Need
42050         AC_REQUIRE([AC_C_INLINE]).
42051         (Description): Mention stdint.h.  Reported by Bruno Haible
42052         <bruno@clisp.org>.
42053
42054         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
42055         Paolo Bonzini <bonzini@gnu.org>.
42056
42057 2008-08-31  Bruno Haible  <bruno@clisp.org>
42058
42059         Assume Solaris specific bi-arch conventions on Solaris systems.
42060         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
42061         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
42062         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
42063         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
42064         like acl_libdirstem.
42065         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
42066         acl_libdirstem.
42067         * NEWS: Mention the change.
42068         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
42069
42070 2008-08-31  Jim Meyering  <meyering@redhat.com>
42071
42072         * lib/strftime.h: Add comments describing the two added arguments.
42073
42074         remove duplicate #include directives
42075         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
42076         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
42077
42078 2008-08-31  Bruno Haible  <bruno@clisp.org>
42079
42080         New module 'sigpipe-die'.
42081         * modules/sigpipe-die: New file.
42082         * lib/sigpipe-die.h: New file.
42083         * lib/sigpipe-die.c: New file.
42084         * MODULES.html.sh (Signal handling): Add sigpipe-die.
42085
42086 2008-08-31  Bruno Haible  <bruno@clisp.org>
42087
42088         Don't override previously installed signal handlers.
42089         * lib/fatal-signal.c (saved_sigactions): New variable.
42090         (uninstall_handlers): Reset the signal to the saved handler, not
42091         to SIG_DFL (except when ignored).
42092         (install_handlers): Save the previous handlers.
42093
42094 2008-08-30  Bruno Haible  <bruno@clisp.org>
42095
42096         * gnulib-tool (func_reset_sigpipe): New function.
42097         (func_get_automake_snippet, func_modules_transitive_closure,
42098         func_import): Invoke it before a join command that reads from stdin,
42099         to avoid "echo: write error: Broken pipe" error messages on stderr.
42100         Reported by Sam Steingold <sds@gnu.org>.
42101
42102 2008-08-30  Bruno Haible  <bruno@clisp.org>
42103
42104         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
42105         Code copied from m4/open.m4.
42106         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
42107         access and the filename ends in a slash. Code copied from lib/open.c.
42108         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
42109         * tests/test-fopen.c (main): Check against bug with trailing slash.
42110
42111 2008-08-29  Bruno Haible  <bruno@clisp.org>
42112
42113         Avoid some "gcc -pedantic" warnings.
42114         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
42115         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
42116         * lib/dirent.in.h: Likewise.
42117         * lib/fcntl.in.h: Likewise.
42118         * lib/float.in.h: Likewise.
42119         * lib/iconv.in.h: Likewise.
42120         * lib/inttypes.in.h: Likewise.
42121         * lib/locale.in.h: Likewise.
42122         * lib/math.in.h: Likewise.
42123         * lib/netinet_in.in.h: Likewise.
42124         * lib/search.in.h: Likewise.
42125         * lib/signal.in.h: Likewise.
42126         * lib/stdarg.in.h: Likewise.
42127         * lib/stdint.in.h: Likewise.
42128         * lib/stdio.in.h: Likewise.
42129         * lib/stdlib.in.h: Likewise.
42130         * lib/string.in.h: Likewise.
42131         * lib/strings.in.h: Likewise.
42132         * lib/sys_select.in.h: Likewise.
42133         * lib/sys_socket.in.h: Likewise.
42134         * lib/sys_stat.in.h: Likewise.
42135         * lib/sys_time.in.h: Likewise.
42136         * lib/sysexits.in.h: Likewise.
42137         * lib/time.in.h: Likewise.
42138         * lib/unistd.in.h: Likewise.
42139         * lib/wchar.in.h: Likewise.
42140         * lib/wctype.in.h: Likewise.
42141         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
42142         * modules/fchdir (Makefile.am): Likewise.
42143         * modules/fcntl (Makefile.am): Likewise.
42144         * modules/float (Makefile.am): Likewise.
42145         * modules/iconv_open (Makefile.am): Likewise.
42146         * modules/inttypes (Makefile.am): Likewise.
42147         * modules/locale (Makefile.am): Likewise.
42148         * modules/math (Makefile.am): Likewise.
42149         * modules/netinet_in (Makefile.am): Likewise.
42150         * modules/search (Makefile.am): Likewise.
42151         * modules/signal (Makefile.am): Likewise.
42152         * modules/stdarg (Makefile.am): Likewise.
42153         * modules/stdint (Makefile.am): Likewise.
42154         * modules/stdio (Makefile.am): Likewise.
42155         * modules/stdlib (Makefile.am): Likewise.
42156         * modules/string (Makefile.am): Likewise.
42157         * modules/strings (Makefile.am): Likewise.
42158         * modules/sys_select (Makefile.am): Likewise.
42159         * modules/sys_socket (Makefile.am): Likewise.
42160         * modules/sys_stat (Makefile.am): Likewise.
42161         * modules/sys_time (Makefile.am): Likewise.
42162         * modules/sysexits (Makefile.am): Likewise.
42163         * modules/time (Makefile.am): Likewise.
42164         * modules/unistd (Makefile.am): Likewise.
42165         * modules/wchar (Makefile.am): Likewise.
42166         * modules/wctype (Makefile.am): Likewise.
42167         Reported by Reuben Thomas <rrt@sc3d.org>.
42168
42169 2008-08-29  Bruno Haible  <bruno@clisp.org>
42170
42171         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
42172         any more.
42173
42174 2008-08-29  Simon Josefsson  <simon@josefsson.org>
42175
42176         * MODULES.html.sh (Misc): Add bitrotate.
42177
42178         * modules/bitrotate: New file.
42179
42180         * lib/bitrotate.h: New file.
42181
42182         * modules/bitrotate-tests: New file.
42183
42184         * tests/test-bitrotate.c: New file.
42185
42186         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
42187         on the bitrotate module.
42188
42189         * lib/arctwo.c: Use new bitrotate module.
42190
42191 2008-08-29  Jim Meyering  <meyering@redhat.com>
42192
42193         bootstrap: merge changes from coreutils
42194         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
42195         of copied files.  Remove a kludge, now that this is fixed.
42196         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
42197         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
42198         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
42199
42200 2008-08-29  Bruno Haible  <bruno@clisp.org>
42201
42202         * MODULES.html.sh: Remove --cvs-urls option.
42203
42204 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
42205
42206         maint.mk: adjust to file name change
42207         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
42208
42209 2008-08-28  Jim Meyering  <meyering@redhat.com>
42210
42211         * modules/getndelim2 (License): Relicense to LGPLv2+.
42212         Approved by Richard Stallman for the version of 1995, and by
42213         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
42214
42215 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
42216
42217         * lib/getdelim.c (flockfile, funlockfile): Make all of them
42218         dummy if one is not available.  Do not touch them if
42219         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
42220         (getc_maybe_unlocked): New.
42221         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
42222
42223 2008-08-26  Eric Blake  <ebb9@byu.net>
42224
42225         doc/INSTALL: resync from autoconf
42226         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
42227         (INSTALL_PRELUDE): Delete; this is done more efficiently by
42228         moving...
42229         * install.texi [!autoconf]: ...here.  Resync from autoconf.
42230         * INSTALL: Regenerate.
42231         * INSTALL.ISO: New file.
42232         * INSTALL.UTF-8: Likewise.
42233
42234 2008-08-26  Jim Meyering  <meyering@redhat.com>
42235
42236         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
42237         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
42238         these definitions conditional, so that they may be overridden, too.
42239
42240 2008-08-26  Bruno Haible  <bruno@clisp.org>
42241
42242         Generate INSTALL file variants with prettier quotes.
42243         * doc/Makefile (INSTALL_PRELUDE): New macro.
42244         (INSTALL): Use it.
42245         (INSTALL.ISO, INSTALL.UTF-8): New rules.
42246
42247 2008-08-26  Bruno Haible  <bruno@clisp.org>
42248
42249         Run makeinfo in an English locale.
42250         * doc/Makefile (MAKEINFO): New variable.
42251
42252 2008-08-26  Bruno Haible  <bruno@clisp.org>
42253
42254         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
42255         Suggested by Eric Blake.
42256
42257 2008-08-25  Bruno Haible  <bruno@clisp.org>
42258
42259         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
42260
42261 2008-08-25  Eric Blake  <ebb9@byu.net>
42262
42263         c-stack: test that stack overflow can be caught
42264         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
42265         that platform allows handling stack overflow; at least OS/2 EMX
42266         has sigaltstack, but crashes before transferring control to
42267         handler on stack overflow.
42268         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
42269         check for HAVE_STACK_OVERFLOW_HANDLING.
42270         Reported by Elbert Pol.
42271
42272 2008-08-25  Bruno Haible  <bruno@clisp.org>
42273
42274         * doc/posix-functions/strftime.texi: Fix description of strftime
42275         module.
42276
42277 2008-08-24  Bruno Haible  <bruno@clisp.org>
42278
42279         * tests/uniwidth/test-uc_width2.c: New file.
42280         * tests/uniwidth/test-uc_width2.sh: New file.
42281         * modules/uniwidth/width-tests (Files): Add the new files.
42282         (TESTS): Add uniwidth/test-uc_width2.sh.
42283         (TESTS_ENVIRONMENT): New variable.
42284         (check_PROGRAMS): Add test-uc_width2.
42285         (test_uc_width2_SOURCES): New variable.
42286
42287         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
42288         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
42289         not 0x00AB.
42290         Reported by Alexander V. Lukyanov <lav@netis.ru>.
42291
42292 2008-08-22  Eric Blake  <ebb9@byu.net>
42293
42294         test-lock, test-tls: mention why a test is skipped
42295         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
42296         skipped.
42297         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
42298
42299         count-one-bits: relax license
42300         * modules/count-one-bits (License): Relicense to LGPLv2+.
42301         Suggested by Ludovic Courtès, approved by Ben Pfaff.
42302
42303 2008-08-22  Andreas Schwab  <schwab@suse.de>
42304
42305         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
42306         Remove spurious space in assignment.
42307
42308 2008-08-21  Simon Josefsson  <simon@josefsson.org>
42309
42310         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
42311         Paul Eggert <eggert@CS.UCLA.EDU>.
42312
42313 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
42314
42315         * modules/gettext: Add m4/threadlib.m4.
42316
42317 2008-08-19  Eric Blake  <ebb9@byu.net>
42318
42319         test-c-stack: fix compilation failure on FreeBSD 5.0
42320         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
42321         headers before <sys/resource.h>.
42322         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
42323         the bug.
42324         Reported by Nelson H. F. Beebe.
42325
42326         strverscmp: migrate from "strverscmp.h" to <string.h>
42327         * modules/string (Makefile.am): Add new hooks.
42328         * modules/strverscmp (Files): Remove strverscmp.h.
42329         (Depends-on): Add string.
42330         (configure.ac): Add indicator.
42331         (Include): Mention new header.
42332         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
42333         defaults.
42334         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
42335         results.
42336         * lib/strverscmp.h: Delete.
42337         * lib/string.in.h (strverscmp): Provide declaration, when needed.
42338         * tests/test-strverscmp.c (includes): Adjust client.
42339         * lib/check-version.c (includes): Likewise.
42340         * NEWS: Document the change.
42341
42342         strverscmp: add unit test
42343         * modules/strverscmp-tests: New file.
42344         * tests/test-strverscmp.c: Likewise.
42345
42346 2008-08-19  Simon Josefsson  <simon@josefsson.org>
42347
42348         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
42349         regarding Windows crypto stuff, from Mono.
42350
42351 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
42352
42353         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
42354         if present, for intel RND.  Return error on failures.
42355
42356 2008-08-18  Ben Pfaff  <blp@gnu.org>
42357
42358         gitlog-to-changelog: give better diagnostic for failed pipe-open
42359         * build-aux/gitlog-to-changelog: Improve error message: suggest
42360         that the version of Git may be too old.
42361
42362 2008-08-18  Simon Josefsson  <simon@josefsson.org>
42363
42364         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
42365         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
42366
42367 2008-08-18  Bruno Haible  <bruno@clisp.org>
42368
42369         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
42370         pthread_in_use().
42371
42372 2008-08-18  Bruno Haible  <bruno@clisp.org>
42373
42374         * lib/glthread/threadlib.c: Include <pthread.h>.
42375
42376 2008-08-18  Bruno Haible  <bruno@clisp.org>
42377
42378         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
42379         glthread_recursive_lock_* macros.
42380         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
42381         Fix syntax error.
42382
42383 2008-08-18  Bruno Haible  <bruno@clisp.org>
42384
42385         * lib/glthread/thread.c: Avoid forcing a context switch right after
42386         thread creation.
42387
42388 2008-08-17  Bruno Haible  <bruno@clisp.org>
42389
42390         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
42391         * lib/glthread/thread.h: Provide Win32 specific implementation.
42392         * modules/thread (Files): Add lib/glthread/thread.c.
42393         (Depends-on): Add lock.
42394         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
42395
42396 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42397
42398         New module 'yield'.
42399         * modules/yield: New file.
42400         * lib/glthread/yield.h: New file.
42401         * m4/yield.m4: New file.
42402         * MODULES.html.sh (Multithreading): Add yield.
42403
42404 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42405
42406         New module 'thread'.
42407         * modules/thread: New file.
42408         * lib/glthread/thread.h: New file.
42409         * m4/thread.m4: New file.
42410         * MODULES.html.sh (Multithreading): Add thread.
42411
42412 2008-08-17  Bruno Haible  <bruno@clisp.org>
42413
42414         * lib/glthread/lock.h: Include <stdlib.h> always.
42415         * lib/glthread/tls.h: Likewise.
42416         * lib/glthread/cond.h: Likewise.
42417
42418 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42419
42420         New module 'cond'.
42421         * modules/cond: New file.
42422         * lib/glthread/cond.h: New file.
42423         * lib/glthread/cond.c: New file.
42424         * m4/cond.m4: New file.
42425         * MODULES.html.sh (Multithreading): Add cond.
42426
42427 2008-08-16  Eric Blake  <ebb9@byu.net>
42428
42429         c-stack: fix regression on Irix 5.3 from 2008-06-21
42430         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
42431         sa_sigaction...
42432         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
42433         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
42434         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
42435         * modules/signal (Makefile.am): Use the value.
42436         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
42437         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
42438         * doc/posix-headers/signal.texi (signal.h): Document this
42439         portability issue.
42440         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
42441         Reported by Tom G. Christensen.
42442
42443 2008-08-17  Bruno Haible  <bruno@clisp.org>
42444
42445         New module 'threadlib'.
42446         * modules/threadlib: New file.
42447         * lib/glthread/threadlib.c: New file, extracted from
42448         lib/glthread/lock.c.
42449         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
42450         functions.
42451         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
42452         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
42453         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
42454         macros.
42455         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
42456         (gl_DISABLE_THREADS): Remove macro.
42457         * modules/lock (Files): Remove build-aux/config.rpath.
42458         (Depends-on): Remove havelib. Add threadlib.
42459         (configure.ac-early): Remove section.
42460         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
42461         * modules/tls (Depends-on): Remove lock. Add threadlib.
42462         (Link): New section, copied from threadlib.
42463         * MODULES.html.sh (Multithreading): Add threadlib.
42464
42465 2008-08-14  Bruno Haible  <bruno@clisp.org>
42466
42467         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
42468         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
42469         glthread_rwlock_unlock, glthread_rwlock_destroy,
42470         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
42471         glthread_recursive_lock_destroy): Define as macros always.
42472         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
42473         glthread_lock_lock.
42474         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
42475         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
42476         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
42477         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
42478         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
42479         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
42480         (glthread_recursive_lock_lock_func): Renamed from
42481         glthread_recursive_lock_lock.
42482         (glthread_recursive_lock_unlock_func): Renamed from
42483         glthread_recursive_lock_unlock.
42484         (glthread_recursive_lock_destroy_func): Renamed from
42485         glthread_recursive_lock_destroy.
42486
42487 2008-08-14  Bruno Haible  <bruno@clisp.org>
42488
42489         * lib/glthread/lock.h: Renamed from lib/lock.h.
42490         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
42491         * lib/glthread/tls.h: Renamed from lib/tls.h.
42492         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
42493         * lib/fstrcmp.c: Update includes.
42494         * lib/strsignal.c: Update includes.
42495         * modules/lock (Files, Makefile.am): Update.
42496         (Include): Change to "glthread/lock.h".
42497         * modules/tls (Files, Makefile.am): Update.
42498         (Include): Change to "glthread/tls.h".
42499         * tests/test-lock.c: Update includes.
42500         * tests/test-tls.c: Update includes.
42501         * NEWS: Mention the renamed header files.
42502
42503 2008-08-11  Jim Meyering  <meyering@redhat.com>
42504
42505         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
42506
42507 2008-08-11  Eric Blake  <ebb9@byu.net>
42508
42509         test-c-stack: avoid C99-ism
42510         * tests/test-c-stack.c (main): Fix whitespace, move declaration
42511         before statement.
42512         Reported by Alain Guibert.
42513
42514 2008-08-10  Jim Meyering  <meyering@redhat.com>
42515
42516         ensure that return value of uinttostr et al are not ignored
42517         * lib/inttostr.h (__GNUC_PREREQ): Define.
42518         (__attribute_warn_unused_result__): Define.
42519         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
42520
42521 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
42522
42523         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
42524         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
42525
42526 2008-08-07  Jim Meyering  <meyering@redhat.com>
42527
42528         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
42529
42530         * modules/mkstemp (License): Relicense under LGPLv2+.
42531         * modules/tempname (License): Likewise.
42532
42533 2008-08-06  Bruno Haible  <bruno@clisp.org>
42534
42535         * lib/poll.c (poll): Further micro-optimization.
42536
42537 2008-08-06  Jim Meyering  <meyering@redhat.com>
42538
42539         inet_pton.c: use locale-independent tolower
42540         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
42541         (inet_pton6): Use c_tolower rather than tolower.
42542         * modules/inet_pton (Depends-on): Add c-ctype.
42543
42544 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
42545
42546         * lib/poll.c (poll): Avoid division when timeout is 0, cache
42547         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
42548
42549 2008-08-06  Jim Meyering  <meyering@redhat.com>
42550
42551         * modules/inet_pton (License): Relicense under LGPLv2+.
42552
42553 2008-08-03  Bruno Haible  <bruno@clisp.org>
42554
42555         Additional non-aborting API for lock and tls.
42556         * lib/lock.h: Include <errno.h>.
42557         (glthread_lock_init): New macro/function.
42558         (gl_lock_init): Define as wrapper around glthread_lock_init.
42559         (glthread_lock_lock): New macro/function.
42560         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
42561         (glthread_lock_unlock): New macro/function.
42562         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
42563         (glthread_lock_destroy): New macro/function.
42564         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
42565         (glthread_rwlock_init): New macro/function.
42566         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
42567         (glthread_rwlock_rdlock): New macro/function.
42568         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
42569         (glthread_rwlock_wrlock): New macro/function.
42570         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
42571         (glthread_rwlock_unlock): New macro/function.
42572         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
42573         (glthread_rwlock_destroy): New macro/function.
42574         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
42575         (glthread_recursive_lock_init): New macro/function.
42576         (gl_recursive_lock_init): Define as wrapper around
42577         glthread_recursive_lock_init.
42578         (glthread_recursive_lock_lock): New macro/function.
42579         (gl_recursive_lock_lock): Define as wrapper around
42580         glthread_recursive_lock_lock.
42581         (glthread_recursive_lock_unlock): New macro/function.
42582         (gl_recursive_lock_unlock): Define as wrapper around
42583         glthread_recursive_lock_unlock.
42584         (glthread_recursive_lock_destroy): New macro/function.
42585         (gl_recursive_lock_destroy): Define as wrapper around
42586         glthread_recursive_lock_destroy.
42587         (glthread_once): New macro/function.
42588         (gl_once): Define as wrapper around glthread_once.
42589         Update function declarations.
42590         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
42591         glthread_rwlock_init. Return error code.
42592         (glthread_rwlock_rdlock_multithreaded): Renamed from
42593         glthread_rwlock_rdlock. Return error code.
42594         (glthread_rwlock_wrlock_multithreaded): Renamed from
42595         glthread_rwlock_wrlock. Return error code.
42596         (glthread_rwlock_unlock_multithreaded): Renamed from
42597         glthread_rwlock_unlock. Return error code.
42598         (glthread_rwlock_destroy_multithreaded): Renamed from
42599         glthread_rwlock_destroy. Return error code.
42600         (glthread_recursive_lock_init_multithreaded): Renamed from
42601         glthread_recursive_lock_init. Return error code.
42602         (glthread_recursive_lock_lock_multithreaded): Renamed from
42603         glthread_recursive_lock_lock. Return error code.
42604         (glthread_recursive_lock_unlock_multithreaded): Renamed from
42605         glthread_recursive_lock_unlock. Return error code.
42606         (glthread_recursive_lock_destroy_multithreaded): Renamed from
42607         glthread_recursive_lock_destroy. Return error code.
42608         (glthread_once_call): Make static.
42609         (glthread_once_multithreaded): Renamed from glthread_once.
42610         * lib/tls.h: Include <errno.h>.
42611         (glthread_tls_key_init): New macro/function.
42612         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
42613         (glthread_tls_set): New macro/function.
42614         (gl_tls_set): Define as wrapper around glthread_tls_set.
42615         (glthread_tls_key_destroy): New macro/function.
42616         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
42617         Update function declarations.
42618         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
42619         glthread_tls_get.
42620         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
42621
42622 2008-08-04  Eric Blake  <ebb9@byu.net>
42623
42624         gnumakefile: use space, not TAB, outside of targets
42625         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
42626
42627 2008-08-02  Jim Meyering  <meyering@redhat.com>
42628
42629         getdate.y: avoid locale-dependent date parsing failure
42630         In Turkish locales, getdate would fail to recognize keywords
42631         containing a lowercase "i".  The solution is not to rely on
42632         locale-sensitive case-conversion.
42633         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
42634         (lookup_word): Use c_toupper in place of toupper.
42635         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
42636         Reported by Vefa Bicakci <bicave@superonline.com> in
42637         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
42638         * modules/getdate (Depends-on): Add c-ctype.
42639
42640 2008-08-02  Bruno Haible  <bruno@clisp.org>
42641
42642         * gnulib-tool (func_import): When updating or creating a .gitignore
42643         file, prepend each added line with a slash, and ignore leading slashes
42644         from the existing lines.
42645         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
42646
42647 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42648
42649         Portability fix for GNU make 3.79.1.
42650         * top/GNUmakefile: Avoid 'else COND', which older GNU make
42651         versions do not understand.
42652
42653 2008-08-01  Bruno Haible  <bruno@clisp.org>
42654
42655         Work around bug of HP-UX 10.20 cc with -0.0 literal.
42656         * tests/test-isnanf.h (zero): New variable.
42657         (main): Avoid literal -0.0f.
42658         * tests/test-isnand.h (zero): New variable.
42659         (main): Avoid literal -0.0.
42660         * tests/test-isnanl.h (zero): New variable.
42661         (main): Avoid literal -0.0L.
42662         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
42663         (test_float, test_double, test_long_double): Avoid literals -0.0f,
42664         -0.0, -0.0L.
42665         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
42666         (test_signbitd): Avoid literal -0.0.
42667         (test_signbitl): Avoid literal -0.0L.
42668         * tests/test-ceilf1.c (zero): New variable.
42669         (main): Avoid literal -0.0f.
42670         * tests/test-ceill.c (zero): New variable.
42671         (main): Avoid literal -0.0L.
42672         * tests/test-floorf1.c (zero): New variable.
42673         (main): Avoid literal -0.0f.
42674         * tests/test-floorl.c (zero): New variable.
42675         (main): Avoid literal -0.0L.
42676         * tests/test-roundf1.c (zero): New variable.
42677         (main): Avoid literal -0.0f.
42678         * tests/test-round1.c (zero): New variable.
42679         (main): Avoid literal -0.0.
42680         * tests/test-roundl.c (zero): New variable.
42681         (main): Avoid literal -0.0L.
42682         * tests/test-truncf1.c (zero): New variable.
42683         (main): Avoid literal -0.0f.
42684         * tests/test-trunc1.c (zero): New variable.
42685         (main): Avoid literal -0.0.
42686         * tests/test-truncl.c (zero): New variable.
42687         (main): Avoid literal -0.0L.
42688         * tests/test-frexp.c (zero): New variable.
42689         (main): Avoid literal -0.0.
42690         * tests/test-frexpl.c (zero): New variable.
42691         (main): Avoid literal -0.0L.
42692         * tests/test-ldexpl.c (zero): New variable.
42693         (main): Avoid literal -0.0L.
42694         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
42695         (zerod, zerol): New variables.
42696         (test_function): Avoid literals -0.0, -0.0L.
42697         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
42698         (zerod, zerol): New variables.
42699         (test_function): Avoid literals -0.0, -0.0L.
42700         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
42701         (zerod, zerol): New variables.
42702         (test_function): Avoid literals -0.0, -0.0L.
42703         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
42704         (zerod, zerol): New variables.
42705         (test_function): Avoid literals -0.0, -0.0L.
42706         * tests/test-strtod.c (zero): New variable.
42707         (main): Avoid literal -0.0.
42708         Reported by Jonathan C. Patschke <jp@centtech.com>.
42709
42710 2008-07-31  Jim Meyering  <meyering@redhat.com>
42711
42712         sha256.h: correct definition of SHA224_DIGEST_SIZE
42713         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
42714         Reported by Paulie Pena IV <paulie4@gmail.com>.
42715         Define as 224 / 8, rather than as a literal.
42716         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
42717         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
42718         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
42719
42720 2008-07-31  Bruno Haible  <bruno@clisp.org>
42721
42722         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
42723         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
42724         Reported by Jonathan Patschke <jp@centtech.com>.
42725
42726 2008-07-31  Bruno Haible  <bruno@clisp.org>
42727
42728         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
42729         Reported by Paolo Bonzini <bonzini@gnu.org>.
42730
42731 2008-07-30  Eric Blake  <ebb9@byu.net>
42732
42733         test-strtod: allow compilation without -lm
42734         * tests/test-strtod.c (main): Avoid link dependence on fabs.
42735         Reported by Dennis Clarke <blastwave@gmail.com>.
42736
42737 2008-07-28  Jim Meyering  <meyering@redhat.com>
42738
42739         bootstrap: work also when there are no .po files in po/
42740         * build-aux/bootstrap (update_po_files): Complete the change
42741         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
42742
42743 2008-07-27  Jim Meyering  <meyering@redhat.com>
42744
42745         * users.txt: Add zile.
42746
42747 2008-07-26  Ben Pfaff  <blp@gnu.org>
42748
42749         Add missing dependencies on new m4/exponent[fdl].m4 files.
42750         * modules/isnanf-nolibm: Add m4/exponentf.m4.
42751         * modules/isnand-nolibm: Add m4/exponentd.m4.
42752         * modules/isnanl-nolibm: Add m4/exponentl.m4.
42753         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
42754         m4/isnan[fdl].m4, because the macros actually used moved.
42755         Reported by Jim Meyering.
42756
42757 2008-07-14  Ben Pfaff  <blp@gnu.org>
42758
42759         Add isinf module.
42760         * lib/isinf.c: New file.
42761         * lib/math.in.h: Define isinf macro if we have decided to replace
42762         it.
42763         * m4/isinf.m4: New file.
42764         * m4/math_h.m4: Initialize and substitute variables for isinf
42765         module.
42766         * modules/isinf: New file.
42767         * modules/isinf-tests: New file.
42768         * modules/math: Add substitutions for new module.
42769         * tests/test-isinf.c: New file.
42770         * doc/posix-functions/isinf.texi: Mention new module.
42771         * MODULES.html.sh: Mention new module.
42772
42773 2008-07-14  Ben Pfaff  <blp@gnu.org>
42774
42775         Factor out some macros for use by additional modules.
42776         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
42777         exponentf.m4.
42778         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
42779         exponentd.m4.
42780         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
42781         file exponentl.m4.
42782         * m4/exponentf.m4: New file.
42783         * m4/exponentd.m4: New file.
42784         * m4/exponentl.m4: New file.
42785         * modules/isnanf: Use new file m4/exponentf.m4.
42786         * modules/isnand: Use new file m4/exponentd.m4.
42787         * modules/isnanl: Use new file m4/exponentl.m4.
42788
42789 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
42790
42791         mktime.c: normalize tp->tm_isdst value to -1/0/1.
42792         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
42793         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
42794         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
42795
42796         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
42797         readlink on platforms without PATH_MAX.
42798
42799 2008-07-21  Eric Blake  <ebb9@byu.net>
42800
42801         Warn, not fail, on stale version.
42802         * top/GNUmakefile (_curr-ver): Tone down previous patch.
42803
42804         Don't allow installation with stale devel version number.
42805         * top/GNUmakefile (_is-install-target): New macro.
42806         (_curr-ver): Forbid installation with stale version number.
42807
42808 2008-07-20  Bruno Haible  <bruno@clisp.org>
42809
42810         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
42811         TESTS_ENVIRONMENT.
42812         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
42813
42814 2008-07-20  Bruno Haible  <bruno@clisp.org>
42815
42816         * lib/c-stack.h (c_stack_action): Add documentation.
42817         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
42818
42819 2008-07-20  Bruno Haible  <bruno@clisp.org>
42820
42821         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
42822         * modules/readlink (License): Likewise.
42823
42824 2008-07-17  Eric Blake  <ebb9@byu.net>
42825
42826         * modules/c-stack (Link): Fix typo.
42827
42828         Make c-stack use libsigsegv, when available.
42829         * modules/c-stack (Depends-on): Add libsigsegv.
42830         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
42831         needed.
42832         * lib/c-stack.c (SIGSTKSZ): Define fallback.
42833         (segv_handler, overflow_handler, c_stack_action)
42834         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
42835         implementation when libsigsegv is available, but only when using
42836         the library is necessary.
42837         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
42838         comment, explaining why XSI check fails on Linux.
42839         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
42840         * tests/test-c-stack2.sh: Tweak skip message.
42841         * NEWS: Document new link-time requirements.
42842
42843 2008-07-16  Eric Blake  <ebb9@byu.net>
42844
42845         c-stack: Expose false positives when not using libsigsegv.
42846         * modules/c-stack-tests (Files): Expand test.
42847         * tests/test-c-stack.c (main): Add means to conditionally trigger
42848         non-overflow SIGSEGV.
42849         * tests/test-c-stack2.sh: New file.
42850
42851 2008-07-14  Bruno Haible  <bruno@clisp.org>
42852
42853         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
42854         Reported by Eric Blake.
42855
42856 2008-07-14  Sam Steingold  <sds@gnu.org>
42857             Bruno Haible  <bruno@clisp.org>
42858
42859         New module libsigsegv.
42860         * modules/libsigsegv: New file.
42861         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
42862         modifications.
42863         * MODULES.html.sh (Signal handling): New section.
42864
42865 2008-07-14  Bruno Haible  <bruno@clisp.org>
42866
42867         * modules/unictype/ctype-* (Description): Add the word "function".
42868         Improves the resulting doc in MODULES.html.
42869
42870 2008-07-12  Ben Pfaff  <blp@gnu.org>
42871
42872         Add longlong module.
42873         * modules/longlong: New file.
42874
42875 2008-07-12  Bruno Haible  <bruno@clisp.org>
42876
42877         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
42878         to empty.
42879
42880 2008-07-10  Ben Pfaff  <blp@gnu.org>
42881
42882         Add isnan module.
42883         * doc/posix-functions/isnan.texi: Mention new module.
42884         * lib/math.in.h: Define isnan macro if we have decided to replace
42885         it.
42886         * m4/isnan.m4: New file.
42887         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
42888         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
42889         also.
42890         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
42891         redundancy.
42892         * m4/math_h.m4: Initialize and substitute variables for isnan
42893         module.
42894         * modules/isnan: New file.
42895         * modules/isnan-tests: New file.
42896         * modules/math: Add substitutions for new module.
42897         * tests/test-isnan.c: New file.
42898         * MODULES.html.sh: Mention new module.
42899
42900 2008-07-10  Ben Pfaff  <blp@gnu.org>
42901
42902         Add isnanf module.
42903         * lib/isnanf.m4: New file.
42904         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
42905         (gl_HAVE_ISNANF_IN_LIBM): New macro.
42906         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
42907         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
42908         * modules/isnanf: New file.
42909         * modules/isnanf-tests: New file.
42910         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
42911         files.
42912         * tests/test-isnanf-nolibm.c: factored most of its contents into
42913         new file tests/test-isnanf.h.
42914         * tests/test-isnanf.h: New file.
42915         * tests/test-isnanf.c: New file.
42916         * MODULES.html.sh: Mention new module.
42917         * doc/glibc-functions/isnanf.texi: Mention new module.
42918
42919 2008-07-10  Ben Pfaff  <blp@gnu.org>
42920
42921         Add isnand module.
42922         * lib/isnand.h: New file.
42923         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
42924         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
42925         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
42926         functionality also.
42927         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
42928         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
42929         (gl_HAVE_ISNAND_IN_LIBM): New macro.
42930         * modules/isnand: New file.
42931         * modules/isnand-tests: New file.
42932         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
42933         files.
42934         * tests/test-isnand-nolibm.c: factored most of its contents into
42935         new file tests/test-isnand.h.
42936         * tests/test-isnand.h: New file.
42937         * tests/test-isnand.c: New file.
42938         * MODULES.html.sh: Mention new module.
42939
42940 2008-07-10  Ben Pfaff  <blp@gnu.org>
42941
42942         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
42943         * lib/isnand.h: Rename lib/isnand-nolibm.h.
42944         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
42945         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
42946         * modules/isnanf-nolibm: Update references to renamed files.
42947         * modules/isnand-nolibm: Likewise.
42948         * modules/isnanf-nolibm-tests: Likewise.
42949         * modules/isnand-nolibm-tests: Likewise.
42950         * lib/frexp.c: Likewise.
42951         * lib/isfinite.c: Likewise.
42952         * lib/signbitd.c: Likewise.
42953         * lib/signbitf.c: Likewise.
42954         * lib/vasnprintf.c: Likewise.
42955         * tests/test-ceilf1.c: Likewise.
42956         * tests/test-ceilf2.c: Likewise.
42957         * tests/test-floorf1.c: Likewise.
42958         * tests/test-floorf2.c: Likewise.
42959         * tests/test-frexp.c: Likewise.
42960         * tests/test-round1.c: Likewise.
42961         * tests/test-round2.c: Likewise.
42962         * tests/test-roundf1.c: Likewise.
42963         * tests/test-strtod.c: Likewise.
42964         * tests/test-trunc1.c: Likewise.
42965         * tests/test-trunc2.c: Likewise.
42966         * tests/test-truncf1.c: Likewise.
42967         * tests/test-truncf2.c: Likewise.
42968         * NEWS: Mention the renamed header files.
42969
42970 2008-07-11  Jim Meyering  <meyering@redhat.com>
42971
42972         vc-list-files: make the last-resort awk code more portable
42973         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
42974         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
42975         does not support it.
42976
42977 2008-07-10  Eric Blake  <ebb9@byu.net>
42978
42979         Work with tar's bootstrap.
42980         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
42981         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
42982         an m4 comment.
42983
42984 2008-07-09  Jim Meyering  <meyering@redhat.com>
42985
42986         posix-shell.m4: fix typo that made this test malfunction
42987         * m4/posix-shell.m4: Remove capitalization in variable name.
42988
42989 2008-07-08  Bruno Haible  <bruno@clisp.org>
42990
42991         * m4/onceonly.m4: Update comments.
42992         Reported by Ben Pfaff <blp@cs.stanford.edu>.
42993
42994 2008-07-04  Jim Meyering  <meyering@redhat.com>
42995
42996         * users.txt: Add vc-dwim.
42997         (bison, coreutils): Use the gitweb URL.
42998
42999 2008-07-03  Jim Meyering  <meyering@redhat.com>
43000
43001         * users.txt: Add libffcall.  From Sam Steingold.
43002
43003 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
43004
43005         getdate.y: do not ignore TZ with relative day, month or year offset
43006         * lib/getdate.y (get_date): Move the tz-handling block to follow the
43007         relative-date-handling, since otherwise, the latter would clobber the
43008         sole output (an updated Start value) of the tz-handling block.
43009         * tests/test-getdate.c: Tests for the fix
43010
43011 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43012
43013         Recognize 'foo_LIBRARIES += libgnu.a'.
43014         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
43015         makefile snippet has already specified an installation location,
43016         also using '+='.
43017
43018 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
43019
43020         getdate.y: factor out common actions
43021         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
43022         Use them in place of open-coded actions.
43023
43024 2008-07-01  Simon Josefsson  <simon@josefsson.org>
43025
43026         Add self-test for getdate module.
43027         * modules/getdate-tests: New file.
43028         * tests/test-getdate.c: New file.
43029
43030 2008-06-29  Bruno Haible  <bruno@clisp.org>
43031
43032         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
43033         .gitignore.
43034         Reported by Sylvain Beucler <beuc@beuc.net>.
43035
43036 2008-06-29  Bruno Haible  <bruno@clisp.org>
43037
43038         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
43039         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
43040
43041 2008-06-29  Bruno Haible  <bruno@clisp.org>
43042
43043         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
43044         EXTRA_DIST.
43045         Reported by Sylvain Beucler <beuc@beuc.net>.
43046
43047 2008-06-26  Jim Meyering  <meyering@redhat.com>
43048
43049         make several modules depend on the "open" module
43050         This provides slightly increased consistency when opening-for-write
43051         the name of a non-directory spelled with a trailing slash.
43052         * modules/chdir-safer: Likewise.
43053         * modules/chown: Likewise.
43054         * modules/clean-temp: Likewise.
43055         * modules/copy-file: Likewise.
43056         * modules/fchdir: Likewise.
43057         * modules/fcntl-safer: Likewise.
43058         * modules/pipe: Likewise.
43059         * modules/utime: Likewise.
43060         Prompted by Eric Blake and Bruno Haible.
43061
43062 2008-06-24  Andreas Schwab  <schwab@suse.de>
43063
43064         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
43065         literals can be used as initializers for global variables.
43066
43067 2008-06-23  Eric Blake  <ebb9@byu.net>
43068
43069         Make gnulib-cache.m4 easier to diff.
43070         * gnulib-tool (func_import): Allow newlines when reading cached
43071         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
43072
43073 2008-06-23  Bruno Haible  <bruno@clisp.org>
43074
43075         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
43076         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
43077         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
43078         m4/signalblocking.m4.
43079         (gl_PREREQ_SIGACTION): Don't invoke it.
43080         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
43081         gl_PREREQ_SIG_HANDLER_H.
43082         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
43083         Don't check for sigaction here.
43084
43085 2008-06-23  Bruno Haible  <bruno@clisp.org>
43086
43087         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
43088         (install_handlers): Don't set the SA_RESETHAND flag.
43089
43090 2008-06-23  Bruno Haible  <bruno@clisp.org>
43091
43092         * m4/sigaction.m4: Comment fixes.
43093         * lib/signal.in.h: Likewise.
43094
43095 2008-06-23  Eric Blake  <ebb9@byu.net>
43096
43097         Fix typo.
43098         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
43099
43100         Avoid SA_ namespace.
43101         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
43102         Reported by Ralf Wildenhues.
43103
43104         Avoid test failure due to SA_RESTORER.
43105         * tests/test-sigaction.c (SA_MASK): New macro.
43106         (main): Avoid failing due to extension flags being set.
43107         Reported by Jim Meyering.
43108
43109         Revert use of sig-handler.h in sigprocmask.c.
43110         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
43111         it requires the existence of struct sigaction.
43112         * lib/sigprocmask.c (handler_t): Restore typedef.
43113         (rpl_signal, old_handlers): Use local type.
43114
43115 2008-06-22  Bruno Haible  <bruno@clisp.org>
43116
43117         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
43118         conditionally.
43119         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43120
43121 2008-06-22  Bruno Haible  <bruno@clisp.org>
43122
43123         * doc/posix-functions/siginterrupt.texi: Move note.
43124
43125         * lib/signal.in.h (SA_RESTART): New macro.
43126         * lib/sigaction.c: Update comment.
43127
43128         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
43129
43130         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
43131         (gl_PREREQ_SIGPROCMASK): Invoke it.
43132         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
43133
43134         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
43135
43136         * lib/sigprocmask.c: Update a comment.
43137
43138 2008-06-21  Eric Blake  <ebb9@byu.net>
43139
43140         Use sigaction module rather than signal().
43141         * modules/c-stack (Depends-on): Add sigaction.
43142         * modules/fatal-signal (Depends-on): Likewise.
43143         * modules/nanosleep (Depends-on): Likewise.
43144         * modules/sigprocmask (Files): Add sig-handler.h.
43145         * modules/sigaction (Files): Likewise.
43146         * lib/sig-handler.h (get_handler): New file, suggested by Paul
43147         Eggert.
43148         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
43149         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
43150         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
43151         (init_fatal_signals): Likewise.
43152         * lib/nanosleep.c (rpl_nanosleep): Likewise.
43153         (siginterrupt): Delete fallback.
43154         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
43155         instead.
43156         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
43157         siginterrupt.
43158
43159         New module sigaction, for mingw.
43160         * modules/sigaction: New module...
43161         * modules/sigaction-tests: ...and its test.
43162         * m4/sigaction.m4: New file.
43163         * lib/sigaction.c: Likewise.
43164         * tests/test-sigaction.c: Likewise.
43165         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
43166         * modules/signal (Makefile.am): Likewise.
43167         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
43168         needed.
43169         * doc/posix-headers/signal.texi (signal.h): Mention provided
43170         types.
43171         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
43172         that sigaction is preferable.
43173         * doc/posix-functions/sigaction.texi (sigaction): Mention new
43174         module.
43175         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
43176         sigaction.
43177
43178         Improve robustness of sigprocmask by overriding signal.
43179         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
43180         is in use.
43181         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
43182         (SIGKILL, SIGSTOP): Provide fallbacks.
43183         (rpl_signal): Implement.
43184         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
43185         signal can be called inside handlers.
43186
43187         Fix nanosleep module on mingw.
43188         * modules/nanosleep (Depends-on): Add sys_select.
43189         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
43190
43191         Fix licensing of sigprocmask.
43192         * modules/raise (License): Relicense as LGPL.
43193
43194 2008-06-21  Bruno Haible  <bruno@clisp.org>
43195
43196         * lib/propername.c (proper_name_utf8): Don't use the transliterated
43197         result if it contains question marks.
43198         Reported by Michael Geng <linux@michaelgeng.de>.
43199
43200 2008-06-19  Bruno Haible  <bruno@clisp.org>
43201
43202         Fix CVS-ism.
43203         * doc/gnulib.texi: Include updated-stamp.texi.
43204         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
43205         (updated-stamp.texi): New rule.
43206         (gnulib.info): Depend on it.
43207         * doc/.gitignore: Add updated-stamp.texi.
43208         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
43209
43210 2008-06-19  Bruno Haible  <bruno@clisp.org>
43211
43212         * doc/Makefile (gnulib.info): Update and simplify dependencies.
43213         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
43214
43215 2008-06-19  Eric Blake  <ebb9@byu.net>
43216
43217         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
43218         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
43219         Reported by Stepan Kasal.
43220
43221 2008-06-18  Bruno Haible  <bruno@clisp.org>
43222
43223         * lib/fatal-signal.c (init_fatal_signals): Add comment.
43224         Reported by Eric Blake.
43225
43226 2008-06-18  Eric Blake  <ebb9@byu.net>
43227
43228         Work around cygwin 1.5.25 strsignal bug.
43229         * tests/test-strsignal.c: Allow for const char *.
43230         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
43231
43232 2008-06-18  Simon Josefsson  <simon@josefsson.org>
43233
43234         * users.txt: Update URL to article and add author/date
43235         information.
43236
43237 2008-06-17  Bruno Haible  <bruno@clisp.org>
43238
43239         New macro gl_DISABLE_THREADS.
43240         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
43241         if the user did not pass --enable-threads or --disable-threads option.
43242         (gl_DISABLE_THREADS): New macro.
43243         Reported by Eric Blake <ebb9@byu.net>.
43244
43245 2008-06-17  Bruno Haible  <bruno@clisp.org>
43246
43247         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
43248         when the macro ignores it.
43249         Based on a patch by Eric Blake <ebb9@byu.net>.
43250
43251 2008-06-17  Bruno Haible  <bruno@clisp.org>
43252
43253         * modules/tls (License): Change to LGPLv2+.
43254         Reported by Eric Blake.
43255
43256 2008-06-17  Eric Blake  <ebb9@byu.net>
43257
43258         Simplify c-stack prerequisites.
43259         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
43260         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
43261         no longer requires <ucontext.h> to exist.  Optimize setrlimit
43262         check.
43263         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
43264         <sys/resource.h>.
43265
43266         Move c-stack test into testsuite.
43267         * modules/c-stack-tests: New file.
43268         * lib/c-stack.c [DEBUG]: Move test program...
43269         * tests/test-c-stack.c: ...into this new file.  Skip rather than
43270         fail test if sigaltstack is lacking.
43271         * tests/test-c-stack.sh: New driver file.
43272
43273 2008-06-16  Eric Blake  <ebb9@byu.net>
43274
43275         Use raise module consistently.
43276         * modules/fatal-signal (Depends-on): Add raise.
43277         * modules/sigprocmask (Depends-on): Likewise.
43278         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
43279         * lib/sigprocmask.c (sigprocmask): Likewise.
43280         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
43281         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
43282
43283         Fix compliance bug in sigpending.
43284         * lib/sigprocmask.c (sigpending): Return pending array via
43285         parameter, not return value.
43286
43287 2008-06-14  Eric Blake  <ebb9@byu.net>
43288
43289         Improve obstack-printf test code.
43290         * tests/test-obstack-printf.c (test_function): Fix comment, and
43291         simplify usage of obstack_* in macros.  Add a test for coverage.
43292         Reported by Bruno Haible.
43293
43294 2008-06-14  Bruno Haible  <bruno@clisp.org>
43295
43296         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
43297         array size as a constant, not as a const variable.
43298         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
43299         AC_USE_SYSTEM_EXTENSIONS.
43300         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
43301         Test whether the obstack_printf function actually exists.
43302         * modules/obstack-printf (Depends-on): Add extensions.
43303         (Include): Remove obstack.h.
43304         * modules/obstack-printf-posix (Depends-on): Add extensions.
43305         (Include): Remove obstack.h.
43306
43307 2008-06-13  Eric Blake  <ebb9@byu.net>
43308
43309         Add obstack-printf and obstack-printf-posix modules.
43310         * modules/obstack-printf: New file.
43311         * modules/obstack-printf-posix: Likewise.
43312         * MODULES.html.sh (Misc): Mention them.
43313         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
43314         Likewise.
43315         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
43316         Likewise.
43317         * modules/stdio (Makefile.am): Accomodate new modules.
43318         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43319         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
43320         Declare.
43321         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
43322         functions.
43323         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
43324         (gl_REPLACE_OBSTACK_PRINTF): New macros
43325         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
43326         * tests/test-obstack-printf.c: New file.
43327         * modules/obstack-printf-tests: Likewise.
43328         * modules/obstack-printf-posix-tests: Likewise.
43329
43330 2008-06-11  Bruno Haible  <bruno@clisp.org>
43331
43332         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
43333         * lib/open.c: Include errno.h.
43334         (open): Fail when attempting to write to a file that has a trailing
43335         slash.
43336         * tests/test-open.c (main): Test against trailing slash bug.
43337         * doc/posix-functions/open.texi: Mention the trailing slash bug.
43338
43339 2008-06-10  Bruno Haible  <bruno@clisp.org>
43340
43341         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
43342         for $? to work inside the trap command, with various /bin/sh-s.
43343         * tests/test-vc-list-files-cvs.sh: Likewise.
43344
43345 2008-06-10  Bruno Haible  <bruno@clisp.org>
43346
43347         * lib/acl-internal.h: Don't include gettext.h here.
43348         * lib/set-mode-acl.c: Include gettext.h here.
43349         * lib/copy-acl.c: Likewise.
43350
43351 2008-06-10  Bruno Haible  <bruno@clisp.org>
43352
43353         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
43354         * lib/wait-process.c (wait_subprocess): Likewise.
43355         * lib/execute.h (execute): Add termsigp argument.
43356         * lib/execute.c (execute): Likewise.
43357         * lib/csharpcomp.c (compile_csharp_using_pnet,
43358         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
43359         * lib/csharpexec.c (execute_csharp_using_pnet,
43360         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
43361         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
43362         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
43363         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
43364         is_jikes_present): Update.
43365         * lib/javaexec.c (execute_java_class): Update.
43366         * lib/javaversion.c (execute_and_read_line): Update.
43367         * NEWS: Document the changes.
43368         Reported by Eric Blake.
43369
43370 2008-06-10  Eric Blake  <ebb9@byu.net>
43371
43372         Add missing include.
43373         * tests/test-strstr.c (includes): Add <signal.h>.
43374         * tests/test-strcasestr.c (includes): Likewise.
43375         * tests/test-memmem.c (includes): Likewise.
43376
43377 2008-06-10  Bruno Haible  <bruno@clisp.org>
43378
43379         * lib/wait-process.c (wait_subprocess): Add an assertion.
43380
43381 2008-06-10  Bruno Haible  <bruno@clisp.org>
43382
43383         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
43384
43385 2008-06-10  Bruno Haible  <bruno@clisp.org>
43386
43387         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
43388         using alarm().
43389         * tests/test-strcasestr.c (main): Likewise.
43390         * tests/test-strstr.c (main): Likewise.
43391
43392 2008-06-09  Bruno Haible  <bruno@clisp.org>
43393
43394         Work around the Solaris 10 ACE ACLs ABI change.
43395         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
43396         declare if ACL_NO_TRIVIAL is present.
43397         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
43398         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
43399         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
43400         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
43401         define if ACL_NO_TRIVIAL is present.
43402         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
43403         and use the current ABI.
43404         (file_has_acl): Use same #if condition as elsewhere.
43405         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
43406         in use, and use the current ABI.
43407         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
43408         Reported by Jim Meyering.
43409
43410 2008-06-09  Eric Blake  <ebb9@byu.net>
43411
43412         Work around environments that (stupidly) ignore SIGALRM.
43413         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
43414         before using alarm().
43415         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
43416         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
43417         Reported by Ian Beckwith <ianb@erislabs.net>.
43418
43419         Produce autobuild blurb earlier in log.
43420         * modules/autobuild (configure.ac-early): Move AB_INIT here.
43421
43422 2008-06-09  Jim Meyering  <meyering@redhat.com>
43423         and Ondřej Vašík  <ovasik@redhat.com>
43424
43425         utimens.c: correct kernel bug work-around
43426         Ondřej Vašík found that the invalid return value of 280 indicates
43427         failure, not success, and the kernel bug we're trying to work
43428         around affects not just the utimensat call, but also the fallback
43429         futimens call.
43430         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
43431         not success.
43432         [HAVE_FUTIMENS]: Use the same work-around, here.
43433
43434 2008-06-09  Jim Meyering  <meyering@redhat.com>
43435
43436         add more guards around definition of ACE_-related code
43437         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
43438         ALLOW and ACE_OWNER are also defined.
43439
43440 2008-06-08  Bruno Haible  <bruno@clisp.org>
43441
43442         * lib/acl-internal.h: Add me as co-author.
43443         * lib/file-has-acl.c: Likewise.
43444         * lib/set-mode-acl.c: Likewise.
43445         * lib/copy-acl.c: Likewise.
43446
43447 2008-06-08  Bruno Haible  <bruno@clisp.org>
43448
43449         Add support for AIX ACLs.
43450         * lib/acl-internal.h (acl_nontrivial): New declaration.
43451         * lib/file-has-acl.c (acl_nontrivial): New function.
43452         (file_has_acl): Add implementation using AIX 4 ACL API.
43453         * lib/set-mode-acl.c (qset_acl): Likewise.
43454         * lib/copy-acl.c (qcopy_acl): Likewise.
43455
43456 2008-06-08  Bruno Haible  <bruno@clisp.org>
43457
43458         Add support for HP-UX ACLs.
43459         * lib/acl-internal.h (acl_nontrivial): New declaration.
43460         * lib/file-has-acl.c (acl_nontrivial): New function.
43461         (file_has_acl): Add implementation using HP-UX 11 ACL API.
43462         * lib/set-mode-acl.c (qset_acl): Likewise.
43463         * lib/copy-acl.c (qcopy_acl): Likewise.
43464
43465 2008-06-08  Bruno Haible  <bruno@clisp.org>
43466
43467         Add support for Cygwin ACLs.
43468         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
43469         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
43470         the chmod_or_fchmod call.
43471         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
43472
43473 2008-06-08  Bruno Haible  <bruno@clisp.org>
43474
43475         Fix bug with setuid modes in Solaris 10+ code.
43476         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
43477         succeeded, when the mode contains some special bits.
43478
43479 2008-06-08  Bruno Haible  <bruno@clisp.org>
43480
43481         Add support for Solaris 7..10 ACLs.
43482         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
43483         declarations.
43484         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
43485         functions.
43486         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
43487         * lib/set-mode-acl.c (qset_acl): Likewise.
43488         * lib/copy-acl.c (qcopy_acl): Likewise.
43489
43490 2008-06-08  Bruno Haible  <bruno@clisp.org>
43491
43492         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
43493         declaration.
43494         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
43495         (acl_access_nontrivial): Remove MacOS X case.
43496         (file_has_acl): Use acl_extended_nontrivial.
43497         * lib/copy-acl.c (qcopy_acl): Likewise.
43498
43499 2008-06-08  Bruno Haible  <bruno@clisp.org>
43500
43501         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
43502
43503 2008-06-08  Jim Meyering  <meyering@redhat.com>
43504
43505         * modules/acl (Maintainer): Add Bruno Haible.
43506
43507 2008-06-07  Bruno Haible  <bruno@clisp.org>
43508
43509         Improve support for Tru64 ACLs.
43510         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
43511         ACL on OSF/1.
43512
43513 2008-06-07  Bruno Haible  <bruno@clisp.org>
43514
43515         Add support for MacOS X ACLs.
43516         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
43517         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
43518         * lib/set-mode-acl.c (qset_acl): Likewise.
43519         * lib/copy-acl.c (qcopy_acl): Likewise.
43520
43521 2008-06-07  Bruno Haible  <bruno@clisp.org>
43522
43523         Fix memory leak introduced on 2008-05-22.
43524         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
43525         use.
43526
43527 2008-06-07  Bruno Haible  <bruno@clisp.org>
43528
43529         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
43530         to construct an empty ACL.
43531
43532 2008-06-07  Bruno Haible  <bruno@clisp.org>
43533
43534         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
43535         precisely.
43536         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
43537
43538 2008-06-07  Bruno Haible  <bruno@clisp.org>
43539
43540         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
43541         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
43542
43543 2008-06-07  Bruno Haible  <bruno@clisp.org>
43544
43545         * doc/posix-functions/_setjmp.texi: Explain the use of this function
43546         regardless of POSIX.
43547         * doc/posix-functions/_longjmp.texi: Likewise.
43548         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
43549         SystemV platform in this case.
43550
43551 2008-06-06  Eric Blake  <ebb9@byu.net>
43552
43553         Document abort() bugs.
43554         * doc/posix-functions/abort.texi (abort): Mention anomalies.
43555
43556         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
43557         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
43558         sigsetjmp.
43559         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
43560         siglongjmp, but only as a macro.
43561         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
43562         is obsolete.
43563         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
43564
43565         Tweak documentation to cover cygwin argz bugs.
43566         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
43567         argz bug fix; no code change needed since no cygwin releases
43568         occurred between the last fix and the bug being tested.
43569         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
43570         module and recently fixed cygwin bugs.
43571         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
43572         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
43573         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
43574         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
43575         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
43576         Likewise.
43577         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
43578         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
43579         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
43580         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
43581         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
43582         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
43583         Likewise.
43584
43585         Avoid gcc warning on cygwin.
43586         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
43587         !ACL_NO_TRIVIAL]: Avoid unused variable.
43588
43589 2008-06-05  Eric Blake  <ebb9@byu.net>
43590
43591         Be tolerant of UNKNOWN version in gnulib-tool test dir.
43592         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
43593         git-version-gen fails to come up with a version.
43594         Reported by Simon Josefsson.
43595
43596 2008-06-05  Jim Meyering  <meyering@redhat.com>
43597             Paul Eggert  <eggert@cs.ucla.edu>
43598
43599         utimens.c: work around a probable Linux kernel bug
43600         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
43601         appears to be a kernel bug that causes utimensat to return 280
43602         instead of 0, indicating success.
43603
43604 2008-06-04  Bruno Haible  <bruno@clisp.org>
43605
43606         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
43607         2008-06-01 commit.
43608
43609 2008-06-04  Bruno Haible  <bruno@clisp.org>
43610
43611         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
43612         * lib/file-has-acl.c (acl_access_nontrivial): New function.
43613         (file_has_acl): Use it. Save errno afterwards.
43614         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
43615
43616 2008-06-03  Bruno Haible  <bruno@clisp.org>
43617
43618         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
43619         draft code. Simplify #ifs.
43620         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
43621         Put Solaris code after POSIX-draft code. Fix comments regarding
43622         Solaris 10, HP-UX. Mention Cygwin.
43623         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
43624
43625 2008-06-03  Eric Blake  <ebb9@byu.net>
43626
43627         Provide fallback for older kernels.
43628         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
43629         Provide runtime fallback if kernel lacks support.
43630         Reported by Mike Frysinger.
43631
43632 2008-06-02  Bruno Haible  <bruno@clisp.org>
43633
43634         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
43635         it exists.
43636
43637 2008-06-02  Bruno Haible  <bruno@clisp.org>
43638
43639         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
43640         * lib/copy-acl.c (qcopy_acl): Update comment.
43641
43642 2008-06-02  Bruno Haible  <bruno@clisp.org>
43643
43644         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
43645         like ACL APIs.
43646
43647 2008-06-02  Bruno Haible  <bruno@clisp.org>
43648
43649         * tests/test-file-has-acl.sh: Use different code for Cygwin.
43650         * tests/test-set-mode-acl.sh: Likewise.
43651         * tests/test-copy-acl.sh: Likewise.
43652         * tests/test-copy-file.sh: Likewise.
43653
43654 2008-06-02  Bruno Haible  <bruno@clisp.org>
43655
43656         * tests/test-file-has-acl.sh: Remove unused code.
43657
43658 2008-06-01  Bruno Haible  <bruno@clisp.org>
43659
43660         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
43661         (copy_acl): Just a wrapper around qcopy_acl that emits the error
43662         messages.
43663         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
43664
43665 2008-06-01  Bruno Haible  <bruno@clisp.org>
43666
43667         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
43668         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
43669         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
43670         APIs.
43671         * modules/acl-tests (configure.ac): Remove tests now contained in
43672         m4/acl.m4.
43673
43674 2008-06-02  Jim Meyering  <meyering@redhat.com>
43675
43676         announce-gen: use a better key-server host name
43677         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
43678         it may be more consistently reliable.  Suggested by Werner Koch
43679         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
43680
43681 2008-06-01  Bruno Haible  <bruno@clisp.org>
43682
43683         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
43684         Reported by Voroskoi Andras <voroskoi@gmail.com>.
43685
43686 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
43687
43688         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
43689
43690 2008-06-01  Bruno Haible  <bruno@clisp.org>
43691
43692         New ACL tests.
43693         * tests/test-file-has-acl.sh: New file.
43694         * tests/test-file-has-acl.c: New file.
43695         * tests/test-set-mode-acl.sh: New file.
43696         * tests/test-set-mode-acl.c: New file.
43697         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
43698         * tests/test-copy-acl.c: New file.
43699         * modules/acl-tests: New file, based on modules/copy-file-tests.
43700         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
43701         (Depends-on): Add acl-tests.
43702         (configure.ac): Remove checks.
43703         (Makefile.am): Don't create test-sameacls program here any more.
43704
43705 2008-06-01  Bruno Haible  <bruno@clisp.org>
43706
43707         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
43708         * tests/test-sameacls.c: Include progname.h.
43709         (main): Invoke set_program_name. Portability fixes for MacOS X,
43710         Solaris, HP-UX.
43711
43712 2008-06-01  Bruno Haible  <bruno@clisp.org>
43713
43714         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
43715         function.
43716         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
43717
43718 2008-06-01  Bruno Haible  <bruno@clisp.org>
43719
43720         * modules/rpmatch (Depends-on): Add strdup.
43721
43722 2008-06-01  Bruno Haible  <bruno@clisp.org>
43723
43724         * lib/pipe.c: Include unistd-safer.h.
43725         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
43726         * modules/pipe (Depends-on): Add unistd-safer.
43727
43728 2008-05-30  Simon Josefsson  <simon@josefsson.org>
43729
43730         * modules/autobuild (configure.ac): Call AB_INIT.
43731
43732 2008-05-30  Simon Josefsson  <simon@josefsson.org>
43733
43734         * tests/test-getaddrinfo.c: Don't print debug messages by default.
43735         Suggested by Bruno Haible <bruno@clisp.org>.
43736
43737 2008-05-30  Simon Josefsson  <simon@josefsson.org>
43738
43739         * tests/test-base64.c: Cast size_t to unsigned long when invoking
43740         printf.  Use %lu instead of %d.  Reported by Bruno Haible
43741         <bruno@clisp.org>.
43742
43743 2008-05-29  Eric Blake  <ebb9@byu.net>
43744
43745         Prefer new POSIX 200x interfaces over futimesat.
43746         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
43747         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
43748         when available.
43749         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
43750
43751 2008-05-28  Bruno Haible  <bruno@clisp.org>
43752
43753         * modules/stpcpy (License): Change to LGPLv2+.
43754         Requested by David Lutterkort <dlutter@redhat.com>.
43755
43756 2008-05-27  Bruno Haible  <bruno@clisp.org>
43757
43758         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
43759         current mingw.
43760         Reported by Jose E. Marchesi <jemarch@gnu.org>.
43761
43762 2008-05-27  Bruno Haible  <bruno@clisp.org>
43763
43764         * modules/iconv_open (Link): New section, from module 'iconv'.
43765         * modules/striconv (Link): Likewise.
43766         * modules/striconveh (Link): Likewise.
43767         * modules/xstriconv (Link): Likewise.
43768         * modules/unicodeio (Link): Likewise.
43769         * modules/propername (Link): Likewise.
43770         Reported by Jim Meyering.
43771
43772 2008-05-26  Jim Meyering  <meyering@redhat.com>
43773
43774         sha256: do not artificially restrict buffer length to be < 2^32
43775         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
43776         uint32_t to size_t.
43777         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
43778         to match.
43779
43780         avoid unaligned access errors, e.g., on sparc
43781         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
43782         direct access through a possibly-unaligned uint64* pointer.
43783         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
43784         direct access through a possibly-unaligned uint32* pointer.
43785         Prompted by this patch from Tom "spot" Callaway:
43786         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
43787
43788         sha512.c: fix typo in comment
43789         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
43790
43791 2008-05-25  Bruno Haible  <bruno@clisp.org>
43792
43793         * lib/set-mode-acl.c: Renamed from lib/acl.c.
43794         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
43795         (Makefile.am): Update lib_SOURCES.
43796
43797 2008-05-25  Bruno Haible  <bruno@clisp.org>
43798
43799         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
43800
43801 2008-05-25  Jim Meyering  <meyering@redhat.com>
43802
43803         useless-if-before-free: freed expr may have white-space differences
43804         * build-aux/useless-if-before-free: Recognize cases in which the
43805         freed expression differs from the tested one in embedded white
43806         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
43807         $1 was used, so we can't make any regexp shy.  Improved tests now
43808         detect this.
43809
43810         useless-if-before-free: accept white space in the expression.
43811         * build-aux/useless-if-before-free: For now, any white space
43812         in the expression must be identical in the free argument.
43813
43814         useless-if-before-free: efficiency tweak
43815         * build-aux/useless-if-before-free: Make the expression-matching
43816         regexp "shy".
43817         Make the *outer* regexp shy, not the expr-matching one.
43818
43819         update code-in-comment to accept cast of free arg
43820         * build-aux/useless-if-before-free: Update regexp.
43821
43822 2008-05-25  Bruno Haible  <bruno@clisp.org>
43823
43824         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
43825         * modules/copy-file-tests (Files, Makefile.am): Update.
43826         * tests/test-copy-file.c (func_test_copy): Update.
43827
43828 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
43829
43830         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
43831
43832 2008-05-23  Bruno Haible  <bruno@clisp.org>
43833
43834         Improve support for ACLs on OSF/1.
43835         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
43836         Remove fallback for unknown flavors of ACLs.
43837
43838 2008-05-22  Bruno Haible  <bruno@clisp.org>
43839
43840         Add support for ACLs on OSF/1.
43841         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
43842         replacements.
43843         (acl_free_text): New macro fallback.
43844         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
43845         acl_free.
43846         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
43847         acl_free_text function. Require AC_C_INLINE.
43848
43849 2008-05-22  Bruno Haible  <bruno@clisp.org>
43850
43851         Make copy_acl work on MacOS X 10.5.
43852         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
43853         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
43854         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
43855         If MODE_INSIDE_ACL, don't assume that every system has the same text
43856         representation for ACLs as FreeBSD.
43857         * lib/copy-acl.c (copy_acl): Add support for platforms with
43858         !MODE_INSIDE_ACL.
43859         * lib/file-has-acl.c (file_has_acl): Likewise.
43860         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
43861         FreeBSD, MacOS X, or IRIX, respectively.
43862
43863 2008-05-22  Bruno Haible  <bruno@clisp.org>
43864
43865         * lib/acl.h: Don't include <sys/acl.h>.
43866         (GETACLCNT): Move fallback to lib/acl-internal.h.
43867         * lib/acl-internal.h: Include <sys/acl.h> here.
43868         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
43869
43870 2008-05-22  Bruno Haible  <bruno@clisp.org>
43871
43872         Split off copy_acl function to separate file.
43873         * lib/copy-acl.c: New file, extracted from lib/acl.c.
43874         * lib/acl.c (copy_acl): Moved function to separate file.
43875         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
43876         * modules/acl (Files): Add lib/copy-acl.c.
43877         (Makefiles.am): Augment lib_SOURCES.
43878
43879 2008-05-22  Bruno Haible  <bruno@clisp.org>
43880
43881         * modules/copy-file-tests: New file.
43882         * tests/test-copy-file.sh: New file.
43883         * tests/test-copy-file.c: New file.
43884         * tests/test-copy-file-sameacls.c: New file.
43885
43886 2008-05-22  Eric Blake  <ebb9@byu.net>
43887
43888         Avoid gcc warning.
43889         * tests/test-memcmp.c (main): Pass NULL indirectly.
43890
43891 2008-05-21  Bruno Haible  <bruno@clisp.org>
43892
43893         Add reference doc about ACLs.
43894         * doc/acl-resources.txt: New file.
43895         * doc/acl-cygwin.txt: New file.
43896
43897 2008-05-21  Bruno Haible  <bruno@clisp.org>
43898
43899         Avoid one more warning from gcc.
43900         * lib/vasnprintf.c (IF_LINT): Update comments.
43901         (VASNPRINTF): Use it also for the 'prefix' array initializer.
43902
43903 2008-05-21  Jim Meyering  <meyering@redhat.com>
43904
43905         avoid a warning from gcc
43906         * lib/vasnprintf.c (IF_LINT): Define.
43907         (scale10_round_decimal_long_double):
43908         Use it to avoid a "may be used uninitialized" warning.
43909         (scale10_round_decimal_double): Likewise.
43910
43911 2008-05-21  Simon Josefsson  <simon@josefsson.org>
43912
43913         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
43914         declared.
43915
43916 2008-05-20  Bruno Haible  <bruno@clisp.org>
43917
43918         * tests/test-memcmp.c (main): Test also the sign of the result. Test
43919         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
43920
43921 2008-05-20  Simon Josefsson  <simon@josefsson.org>
43922
43923         * modules/memcmp-tests: New file.
43924         * tests/test-memcmp.c: New file.
43925
43926 2008-05-19  Bruno Haible  <bruno@clisp.org>
43927
43928         * modules/propername (Notice, configure.ac): Put quoted "..." into
43929         --keyword option.
43930         * lib/propername.h: Update comments accordingly.
43931         Reported by Eric Blake.
43932
43933 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
43934
43935         * modules/getpass-gnu (Depends-on): Add fseeko.
43936
43937 2008-05-19  Simon Josefsson  <simon@josefsson.org>
43938
43939         * modules/base64-tests: New file.
43940
43941 2008-05-19  Bo Borgerson <gigabo@gmail.com>
43942
43943         * lib/base64.c (base64_decode_ctx): If a decode context structure
43944         was passed in use it to ignore newlines.  If a context structure
43945         was _not_ passed in, continue to treat newlines as garbage (this
43946         is the historical behavior).  Formerly base64_decode.
43947         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
43948         takes a decode context structure.
43949         * lib/base64.h (base64_decode): Macro for four-argument calls.
43950         (base64_decode_alloc): Likewise.
43951         * lib/base64.c (base64_decode_ctx): If a decode context structure
43952         was passed in use it to ignore newlines.  If a context structure
43953         was _not_ passed in, continue to treat newlines as garbage (this
43954         is the historical behavior).  Formerly base64_decode.
43955         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
43956         takes a decode context structure.
43957         * lib/base64.h (base64_decode): Macro for four-argument calls.
43958         (base64_decode_alloc): Likewise.
43959
43960 2008-05-19  Jim Meyering  <meyering@redhat.com>
43961
43962         avoid a warning from gcc
43963         * lib/trim.c (IF_LINT): Define.
43964         (trim2): Use it to avoid a "may be used uninitialized" warning.
43965
43966         Fix doc typo.
43967         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
43968
43969 2008-05-19  Bruno Haible  <bruno@clisp.org>
43970
43971         * doc/glibc-functions/getpass.texi: Document limits of other
43972         implementations.
43973
43974 2008-05-19  Simon Josefsson  <simon@josefsson.org>
43975             Bruno Haible <bruno@clisp.org>
43976
43977         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
43978
43979 2008-05-18  Bruno Haible  <bruno@clisp.org>
43980
43981         * modules/propername: New file, from GNU gettext.
43982         * lib/propername.h: New file, from GNU gettext.
43983         * lib/propername.c: New file, from GNU gettext.
43984         * MODULES.html.sh (Internationalization functions): Add propername.
43985
43986 2008-05-16  Jim Meyering  <meyering@redhat.com>
43987             Bruno Haible  <bruno@clisp.org>
43988
43989         Avoid some warnings from "gcc -Wshadow".
43990         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
43991
43992 2008-05-15  Eric Blake  <ebb9@byu.net>
43993
43994         Extend previous patch to cygwin 1.7.0.
43995         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
43996         fast implementation in cygwin >= 1.7.0.
43997         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
43998         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
43999
44000 2008-05-15  Bruno Haible  <bruno@clisp.org>
44001
44002         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
44003         implementation in glibc >= 2.9.
44004         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
44005         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
44006
44007 2008-05-15  Bruno Haible  <bruno@clisp.org>
44008
44009         * MODULES.html.sh (Internationalization functions): Remove linebreak.
44010         (Unicode string functions): Add unilbrk/*.
44011         Reported by Karl Berry.
44012
44013 2008-05-15  Eric Blake  <ebb9@byu.net>
44014
44015         Fix violation of <stdbool.h> replacement in regex.
44016         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
44017         * lib/regexec.c (re_search_internal): Likewise.
44018         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
44019
44020 2008-05-15  Jim Meyering  <meyering@redhat.com>
44021
44022         avoid distracting test output when git or cvs is not found
44023         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
44024         * tests/test-vc-list-files-git.sh: Likewise.
44025
44026 2008-05-15  Eric Blake  <ebb9@byu.net>
44027
44028         Glibc finally accepted the memmem speedup code, bugzilla #5514.
44029         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
44030         glibc version.
44031         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
44032         * doc/posix-functions/strstr.texi (strstr): Likewise.
44033         * lib/str-two-way.h (MAX): Sychronize with glibc.
44034
44035 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
44036
44037         * lib/regcomp.c (optimize_utf8): Add a note on why we test
44038         opr.ctx_type.
44039         (calc_first): Initialize constraint field.
44040         (duplicate_node_closure): Use it instead of special casing ANCHORS.
44041         Fix grammar.
44042         (duplicate_node): Merge constraint field for all node types.
44043         (calc_eclosure_iter): Look at constraint field for all node types.
44044         * lib/regex_internal.c (create_cd_newstate): Don't look at
44045         opr.ctx_type.
44046
44047 2008-05-14  Bruno Haible  <bruno@clisp.org>
44048
44049         Help GCC to do better code generation.
44050         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
44051         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
44052         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
44053         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
44054         Declare with attribute 'malloc' if supported.
44055
44056 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
44057
44058         use "echo STR|wc -c" rather than unportable "expr length STR"
44059         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
44060         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
44061
44062 2008-05-14  Jim Meyering  <meyering@redhat.com>
44063
44064         use dd ibs=$n count=1 ... rather than less-portable head -c$n
44065         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
44066         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
44067         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
44068         via Collin Lasse.
44069
44070 2008-05-14  Eric Blake  <ebb9@byu.net>
44071
44072         Avoid quadratic growth in gl_LIBSOURCES.
44073         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
44074         Suggested by Bruno Haible.
44075
44076         Test xmemdup0.
44077         * modules/xmemdup0-tests: New file.
44078         * tests/test-xmemdup0.c: Likewise.
44079
44080 2008-05-13  Eric Blake  <ebb9@byu.net>
44081
44082         Split xmemdup0 into its own module.
44083         * modules/xmemdup0: New file.
44084         * lib/xmemdup0.h: Likewise.
44085         * lib/xmemdup0.c: Likewise.
44086         * MODULES.html.sh (Memory management functions): Add xmemdup0.
44087         * lib/xalloc.h (xmemdup0): Remove.
44088         * lib/xmalloc.c (xmemdup0): Likewise.
44089
44090 2008-05-13  Eric Blake  <ebb9@byu.net>
44091             Bruno Haible  <bruno@clisp.org>
44092
44093         Reduce number of forks required during autoconf.
44094         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
44095         and gl_LIBSOURCES_DIR.
44096         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
44097         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
44098         m4_syscmd per file.
44099         <m4_foreach_w>: Move...
44100         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
44101
44102 2008-05-13  Eric Blake  <ebb9@byu.net>
44103
44104         * gnulib-tool: Fix various comment typos.
44105
44106 2008-05-12  Bruno Haible  <bruno@clisp.org>
44107
44108         Tailor the linebreaking algorithm.
44109         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
44110
44111 2008-05-12  Bruno Haible  <bruno@clisp.org>
44112
44113         Update to Unicode 5.0.0.
44114         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
44115         LBP_JV, LBP_JT. Redistribute values.
44116         (unilbrk_table): Change size.
44117         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
44118         Unicode TR#14 rev. 22.
44119         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
44120         LBP_JV, LBP_JT. Redistribute values.
44121         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
44122         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
44123         Update.
44124         * lib/unilbrk/lbrkprop1.h: Regenerated.
44125         * lib/unilbrk/lbrkprop2.h: Regenerated.
44126         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
44127         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
44128         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
44129         Likewise.
44130         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
44131         Likewise.
44132         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
44133         result.
44134         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
44135         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
44136         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
44137         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
44138         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
44139         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
44140
44141 2008-05-11  Bruno Haible  <bruno@clisp.org>
44142
44143         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
44144
44145 2008-05-11  Bruno Haible  <bruno@clisp.org>
44146
44147         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
44148         * modules/unilbrk/gen-lbrk: New file.
44149
44150 2008-05-11  Bruno Haible  <bruno@clisp.org>
44151
44152         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
44153         * m4/sha512.m4 (gl_SHA512): Likewise.
44154
44155 2008-05-11  Jim Meyering  <meyering@redhat.com>
44156
44157         New modules: crypto/sha256, crypto/sha512 (from coreutils)
44158         * modules/crypto/sha256: New file.
44159         * modules/crypto/sha512: Likewise.
44160         * lib/sha256.c: Likewise.
44161         * lib/sha256.h: Likewise.
44162         * lib/sha512.c: Likewise.
44163         * lib/sha512.h: Likewise.
44164         * lib/u64.h: Likewise.
44165         * m4/sha256.m4: Likewise.
44166         * m4/sha512.m4: Likewise.
44167         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
44168
44169 2008-05-10  Bruno Haible  <bruno@clisp.org>
44170
44171         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
44172         (Input/Output <stdio.h>): Add xprintf.
44173         (Signal handling <signal.h>): Add strsignal.
44174         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
44175         (Core language properties): Add func.
44176         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
44177         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
44178         strings.
44179         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
44180         (Input/output): New section.
44181         (File system functions): Add openat-die, stat-macros.
44182         (Networking functions): Add sockets.
44183         (Unicode string functions): Add unictype/*.
44184         (Support for building libraries and executables): Add gperf.
44185         (Support for building documentation): Add agpl-3.0.
44186         (Misc): Add nocrash.
44187
44188 2008-05-10  Bruno Haible  <bruno@clisp.org>
44189
44190         * modules/unictype/gen-ctype: New file.
44191
44192 2008-05-10  Jim Meyering  <meyering@redhat.com>
44193
44194         Make chdir-safer.c more efficient on a system with no symlinks.
44195         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
44196         also if ELOOP is zero.  Suggested by Bruno Haible.
44197
44198         Make chdir-safer.c slightly safer.
44199         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
44200         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
44201
44202         Avoid compile failure on systems without ELOOP (like mingw).
44203         * lib/chdir-safer.c (ELOOP): Define if not already defined.
44204         Reported by Bruno Haible.
44205
44206 2008-05-10  Bruno Haible  <bruno@clisp.org>
44207
44208         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
44209         (is_utf8_encoding): Use a case-insensitive comparison.
44210         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
44211         streq.
44212
44213 2008-05-10  Bruno Haible  <bruno@clisp.org>
44214
44215         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
44216         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
44217         * lib/unilbrk/ulc-common.h (iconv_string_length,
44218         iconv_string_keeping_offsets): Remove declarations.
44219         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
44220         Don't include <iconv.h>, streq.h, xsize.h.
44221         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
44222         conversion.
44223         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
44224         <iconv.h>, streq.h, xsize.h.
44225         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
44226         conversion.
44227         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
44228         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
44229         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
44230         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
44231
44232 2008-05-10  Bruno Haible  <bruno@clisp.org>
44233
44234         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
44235         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
44236
44237         * modules/unilbrk/u32-width-linebreaks-tests: New file.
44238         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
44239
44240         * modules/unilbrk/u16-width-linebreaks-tests: New file.
44241         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
44242
44243         * modules/unilbrk/u8-width-linebreaks-tests: New file.
44244         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
44245
44246         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
44247         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
44248
44249         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
44250         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
44251
44252         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
44253         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
44254
44255         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
44256         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
44257
44258 2008-05-10  Bruno Haible  <bruno@clisp.org>
44259
44260         Split up 'linebreak' module.
44261         * lib/unilbrk.h: New file, based on lib/linebreak.h.
44262         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
44263         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
44264         modifications.
44265         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
44266         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
44267         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
44268         lib/linebreak.c.
44269         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
44270         lib/linebreak.c.
44271         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
44272         lib/linebreak.c.
44273         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
44274         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
44275         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
44276         lib/linebreak.c.
44277         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
44278         lib/linebreak.c.
44279         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
44280         lib/linebreak.c.
44281         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
44282         lib/linebreak.c.
44283         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
44284         lib/linebreak.c.
44285         * modules/unilbrk/base: New file.
44286         * modules/unilbrk/tables: New file.
44287         * modules/unilbrk/u8-possible-linebreaks: New file.
44288         * modules/unilbrk/u16-possible-linebreaks: New file.
44289         * modules/unilbrk/u32-possible-linebreaks: New file.
44290         * modules/unilbrk/ulc-common: New file.
44291         * modules/unilbrk/ulc-possible-linebreaks: New file.
44292         * modules/unilbrk/u8-width-linebreaks: New file.
44293         * modules/unilbrk/u16-width-linebreaks: New file.
44294         * modules/unilbrk/u32-width-linebreaks: New file.
44295         * modules/unilbrk/ulc-width-linebreaks: New file.
44296         * lib/linebreak.h: Remove file.
44297         * lib/linebreak.c: Remove file.
44298         * m4/linebreak.m4: Remove file.
44299         * modules/linebreak: Remove file.
44300         * NEWS: Mention the changes.
44301
44302 2008-05-09  Eric Blake  <ebb9@byu.net>
44303
44304         Add xmemdup0.
44305         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
44306         implementation.
44307         * lib/xmalloc.c (xmemdup0): New C implementation.
44308
44309 2008-05-08  Bruno Haible  <bruno@clisp.org>
44310
44311         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
44312
44313 2008-05-07  Eric Blake  <ebb9@byu.net>
44314
44315         Support cross-compilation of <wctype.h>.
44316         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
44317         AC_CACHE_CHECK.
44318
44319 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
44320
44321         * build-aux/vc-list-files: Add support for bzr.
44322
44323 2008-05-03  Jim Meyering  <meyering@redhat.com>
44324
44325         avoid failed assertion with tight malloc
44326         * tests/test-getndelim2.c: Correct an off-by-one assertion.
44327
44328 2008-05-03  Simon Josefsson  <simon@josefsson.org>
44329
44330         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
44331         are needed from arpa/inet.h.
44332         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
44333         Reported by Bruno Haible.
44334
44335 2008-05-02  Jim Meyering  <meyering@redhat.com>
44336
44337         avoid compilation error on FreeBSD 6
44338         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
44339
44340 2008-05-01  Jim Meyering  <meyering@redhat.com>
44341
44342         useless-if-before-free: correct --help's exit status description
44343         * build-aux/useless-if-before-free (usage): Like grep, exit 0
44344         for one or more matches, etc.  Reported by Bruno Haible.
44345
44346         vc-list-files: make the stand-alone gnulib test work
44347         * modules/vc-list-files-tests (configure.ac):
44348         Define and AC_SUBST abs_aux_dir.
44349         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
44350         $(abs_top_srcdir) to each script and having each of them
44351         duplicate the work of setting PATH, set PATH here, using
44352         the new variable, abs_aux_dir instead.
44353         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
44354         * tests/test-vc-list-files-git.sh: Likewise.
44355         Reported by Bruno Haible.
44356
44357 2008-05-01  Bruno Haible  <bruno@clisp.org>
44358
44359         * lib/getndelim2.c (getndelim2): Fix newsize computation during
44360         reallocation. Rename 'done' to 'found_delimiter'.
44361
44362 2008-05-01  Jim Meyering  <meyering@redhat.com>
44363
44364         vc-list-files: accommodate /bin/sh like the one from Solaris 10
44365         * build-aux/vc-list-files: Use `...`, not $(...).
44366
44367 2008-04-30  Jim Meyering  <meyering@redhat.com>
44368
44369         add tests for vc-list-files
44370         * modules/vc-list-files-tests: New module.
44371         * tests/test-vc-list-files-cvs.sh: New file.
44372         * tests/test-vc-list-files-git.sh: New file.
44373
44374         avoid a warning from gcc
44375         * lib/getndelim2.c (IF_LINT): Define.
44376         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
44377
44378         vc-list-files: work properly with build-aux/cvsu, too
44379         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
44380         to all cvs-based clauses.
44381
44382         vc-list-files: work properly in the CVS+awk case, too
44383         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
44384
44385         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
44386         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
44387         take more than one file argument, so .  Add quotes, just in case $dir
44388         ever contains a shell meta-character.  Prompted by Soren Hansen in
44389         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
44390
44391 2008-04-29  Eric Blake  <ebb9@byu.net>
44392
44393         Optimize getndelim2 to use block operations when possible.
44394         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
44395         freadseek, and memchr2.
44396         * lib/getndelim2.c (getndelim2): Use them for block reads.
44397
44398 2008-04-29  Bruno Haible  <bruno@clisp.org>
44399
44400         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
44401         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
44402         * modules/inet_ntop (Depends-on): Add extensions.
44403         * modules/inet_pton (Depends-on): Likewise.
44404         Reported by Simon Josefsson.
44405
44406 2008-04-29  Jim Meyering  <meyering@redhat.com>
44407
44408         When the is more than one match in a block, match all of them.
44409         * build-aux/useless-if-before-free: Iterate through each block
44410         until there are no more matches.
44411
44412         Fix broken useless-if-before-free script.
44413         * build-aux/useless-if-before-free: Fix typo: missing "?" after
44414         the expression to match cast of argument to free-like function.
44415
44416 2008-04-29  Eric Blake  <ebb9@byu.net>
44417
44418         Use new header.
44419         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
44420
44421 2008-04-29  Jim Meyering  <meyering@redhat.com>
44422
44423         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
44424         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
44425         by gnulib to exist and to declare e.g., inet_ntop.
44426         Don't include "inet_ntop.h", now removed.
44427
44428         * m4/arpa_inet_h.m4: Remove trailing blanks.
44429
44430 2008-04-29  Eric Blake  <ebb9@byu.net>
44431
44432         Silence valgrind on safe reads beyond potential array bounds.
44433         * lib/rawmemchr.valgrind: New file.
44434         * lib/strchrnul.valgrind: Likewise.
44435         * modules/rawmemchr (Files): Distribute new file.
44436         * modules/strchrnul (Files): Likewise.
44437         Suggested by Bruno Haible.
44438
44439 2008-04-29  Bruno Haible  <bruno@clisp.org>
44440
44441         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
44442         (inet_ntop, inet_pton): Change portability warning's wording.
44443         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
44444         Invoke gl_CHECK_NEXT_HEADERS.
44445         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
44446         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
44447         set ARPA_INET_H.
44448         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
44449         * modules/arpa_inet (Description): No longer only for systems that
44450         lack it.
44451         (Depends-on): Add include_next.
44452         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
44453         HAVE_ARPA_INET_H.
44454
44455 2008-04-29  Jim Meyering  <meyering@redhat.com>
44456
44457         * modules/mkdir (License): Re-license as LGPLv2+.
44458
44459 2008-04-29  Bruno Haible  <bruno@clisp.org>
44460
44461         * modules/rawmemchr (Maintainer): Set to Eric.
44462         * modules/strchrnul (Maintainer): Likewise.
44463
44464 2008-04-29  Simon Josefsson  <simon@josefsson.org>
44465
44466         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
44467         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
44468
44469         * modules/arpa_inet (arpa/inet.h): Use them.
44470
44471 2008-04-28  Eric Blake  <ebb9@byu.net>
44472
44473         Test getndelim2.
44474         * modules/getndelim2-tests: New file.
44475         * tests/test-getndelim2.c: Likewise.
44476         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
44477         stream.
44478         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
44479
44480         * MODULES.html.sh: Document new module.
44481
44482 2008-04-20  Bruno Haible  <bruno@clisp.org>
44483
44484         * lib/c-stack.c (die): Use raise.
44485         * modules/c-stack (Depends-on): Add raise.
44486
44487 2008-04-28  Bruno Haible  <bruno@clisp.org>
44488
44489         Expect rpmatch to be declared.
44490         * lib/yesno.c (rpmatch): Remove declaration.
44491
44492         Declare rpmatch.
44493         * lib/stdlib.in.h (rpmatch): New declaration.
44494         * lib/rpmatch.c: Include <stdlib.h> first.
44495         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
44496         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
44497         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
44498         HAVE_RPMATCH.
44499         * modules/rpmatch (Depends-on): Add stdlib, extensions.
44500         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44501         (Include): Set to <stdlib.h>.
44502         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
44503         HAVE_RPMATCH.
44504         * NEWS: Document the change.
44505
44506 2008-04-28  Bruno Haible  <bruno@clisp.org>
44507
44508         Change rpmatch to use nl_langinfo when appropriate.
44509         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
44510         (N_): New macro.
44511         (localized_pattern): New function/macro.
44512         (try): Remove match, nomatch arguments. Copy the pattern into safe
44513         memory before caching it.
44514         (rpmatch): Use localized_pattern. Add translator comments.
44515         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
44516         Suggested by Eric Blake.
44517         * modules/rpmatch (Depends-on): Add stdbool.
44518
44519 2008-04-28  Eric Blake  <ebb9@byu.net>
44520
44521         Add rawmemchr module, matching glibc.
44522         * modules/string (Makefile.am): New indicator.
44523         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
44524         * lib/string.in.h (rawmemchr): Declare when appropriate.
44525         * modules/rawmemchr: New file.
44526         * m4/rawmemchr.m4: Likewise.
44527         * lib/rawmemchr.c: Likewise.
44528         * modules/rawmemchr-tests: Likewise.
44529         * tests/test-rawmemchr.c: Likewise.
44530         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
44531         module.
44532         * modules/strchrnul (Depends-on): Add rawmemchr.
44533         * lib/strchrnul.c (strchrnul): Optimize a corner case.
44534
44535         Whitespace cleanup.
44536         * tests/test-strchrnul.c: Reindent.
44537         * lib/strchrnul.c: Likewise.
44538
44539         Optimize and test strchrnul.
44540         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
44541         * modules/strchrnul-tests: New file.
44542         * tests/test-strchrnul.c: Likewise.
44543
44544         Remove intprops dependency.
44545         * modules/memchr (Depends-on): Remove intprops.
44546         * modules/memrchr (Depends-on): Likewise.
44547         * modules/memchr2 (Depends-on): Likewise.
44548         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
44549         * lib/memrchr.c (__memrchr): Likewise.
44550         * lib/memrchr2.c (memchr2): Likewise.
44551         Reported by Simon Josefsson.
44552
44553 2008-04-28  Simon Josefsson  <simon@josefsson.org>
44554
44555         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
44556         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44557
44558 2008-04-28  Simon Josefsson  <simon@josefsson.org>
44559
44560         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
44561
44562         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
44563
44564         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
44565
44566         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
44567         declarations.
44568         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
44569
44570         * m4/inet_pton.m4: Don't check for header files.
44571
44572         * m4/inet_ntop.m4: Don't check for header files.
44573
44574 2008-04-28  Simon Josefsson  <simon@josefsson.org>
44575
44576         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
44577         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
44578         trigger for cygwin).
44579         Reported by Bruno Haible  <bruno@clisp.org>.
44580
44581 2008-04-28  Bruno Haible  <bruno@clisp.org>
44582
44583         * doc/posix-functions/strdup.texi: Mention mingw problem.
44584
44585 2008-04-27  Bruno Haible  <bruno@clisp.org>
44586
44587         * modules/stat-time-tests (Depends-on): Add sleep.
44588         * tests/test-stat-time.c (force_unlink): New function.
44589         (cleanup): Use it.
44590         (test_mtime): Remove the ctime related tests.
44591         (test_ctime): New function, containing the ctime related tests.
44592         (main): Call test_ctime, except on native Windows platforms.
44593
44594 2008-04-27  Bruno Haible  <bruno@clisp.org>
44595
44596         * lib/rpmatch.c (rpmatch): Add some comments.
44597         Reported by James Youngman <jay@gnu.org>.
44598
44599 2008-04-27  Bruno Haible  <bruno@clisp.org>
44600
44601         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
44602         quiet NaNs.
44603
44604 2008-04-27  Bruno Haible  <bruno@clisp.org>
44605
44606         Make test-yesno.sh work on mingw.
44607         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
44608         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
44609         (main): Set stdin to binary mode.
44610         * modules/yesno-tests (Depends-on): Add binary-io.
44611
44612 2008-04-27  Bruno Haible  <bruno@clisp.org>
44613
44614         Fix 'isfinite' on x86, x86_64, ia64 platforms.
44615         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
44616         argument that lie outside the IEEE 854 domain.
44617         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
44618         (gl_ISFINITE): Use it.
44619         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
44620
44621 2008-04-27  Bruno Haible  <bruno@clisp.org>
44622
44623         Allow local renaming in config.h.
44624         * lib/memrchr.c (memrchr): Don't undefine outside libc.
44625
44626 2008-04-27  Bruno Haible  <bruno@clisp.org>
44627
44628         * lib/memchr.c (__memchr): Change type of 'i'.
44629         * lib/memchr2.c (memchr2): Likewise.
44630
44631 2008-04-26  Eric Blake  <ebb9@byu.net>
44632         and Bruno Haible  <bruno@clisp.org>
44633
44634         Optimize and test memrchr.
44635         * modules/memrchr (Depends-on): Add intprops.
44636         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
44637         * modules/memrchr-tests: New file.
44638         * tests/test-memrchr.c: New file.
44639
44640 2008-04-26  Bruno Haible  <bruno@clisp.org>
44641
44642         Add tentative support for DragonFly BSD.
44643         * lib/stdio-impl.h: Add macros for DragonFly BSD.
44644         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
44645         fp.
44646         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
44647         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
44648         * lib/fpurge.c (fpurge): Likewise.
44649         * lib/freadable.c (freaadable): Likewise.
44650         * lib/freadahead.c (freadahead): Likewise.
44651         * lib/freading.c (freading): Likewise.
44652         * lib/freadptr.c (freadptr): Likewise.
44653         * lib/freadseek.c (freadptrinc): Likewise.
44654         * lib/fseeko.c (fseeko): Likewise.
44655         * lib/fseterr.c (fseterr): Likewise.
44656         * lib/fwritable.c (fwritable): Likewise.
44657         * lib/fwriting.c (fwriting): Likewise.
44658
44659 2008-04-26  Bruno Haible  <bruno@clisp.org>
44660
44661         * lib/stdio-impl.h: New file.
44662         * lib/fbufmode.c: Include stdio-impl.h.
44663         (fbufmode): Use fp_, remove redundant #defines.
44664         * lib/fflush.c: Include stdio-impl.h.
44665         (clear_ungetc_buffer): Remove redundant #defines.
44666         * lib/fpurge.c: Include stdio-impl.h.
44667         (fpurge): Remove redundant #defines.
44668         * lib/freadable.c: Include stdio-impl.h.
44669         (freadable): Remove redundant #defines.
44670         * lib/freadahead.c: Include stdio-impl.h.
44671         (freadahead): Remove redundant #defines.
44672         * lib/freading.c: Include stdio-impl.h.
44673         (freading): Remove redundant #defines.
44674         * lib/freadptr.c: Include stdio-impl.h.
44675         (freadptr): Remove redundant #defines.
44676         * lib/freadseek.c: Include stdio-impl.h.
44677         (freadptrinc): Remove redundant #defines.
44678         * lib/fseeko.c: Include stdio-impl.h.
44679         (rpl_fseeko): Remove redundant #defines.
44680         * lib/fseterr.c: Include stdio-impl.h.
44681         (fseterr): Remove redundant #defines.
44682         * lib/fwritable.c: Include stdio-impl.h.
44683         (fwritable: Remove redundant #defines.
44684         * lib/fwriting.c: Include stdio-impl.h.
44685         (fwriting): Remove redundant #defines.
44686         * modules/fbufmode (Files): Add lib/stdio-impl.h.
44687         * modules/fflush (Files): Likewise.
44688         * modules/fpurge (Files): Likewise.
44689         * modules/freadable (Files): Likewise.
44690         * modules/freadahead (Files): Likewise.
44691         * modules/freading (Files): Likewise.
44692         * modules/freadptr (Files): Likewise.
44693         * modules/freadseek (Files): Likewise.
44694         * modules/fseeko (Files): Likewise.
44695         * modules/fseterr (Files): Likewise.
44696         * modules/fwritable (Files): Likewise.
44697         * modules/fwriting (Files): Likewise.
44698
44699 2008-04-26  Bruno Haible  <bruno@clisp.org>
44700
44701         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
44702         restore_seek_optimization, update_fpos_cache): New functions, extracted
44703         from rpl_fflush.
44704         (rpl_fflush): Use them.
44705         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
44706         (gl_REPLACE_FFLUSH): Use it.
44707
44708 2008-04-26  Bruno Haible  <bruno@clisp.org>
44709
44710         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
44711         on Solaris.
44712         * tests/test-xstrtoimax.sh: Likewise.
44713         * tests/test-xstrtoumax.sh: Likewise.
44714         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44715
44716 2008-04-26  Bruno Haible  <bruno@clisp.org>
44717
44718         * modules/memchr-tests: New file.
44719         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
44720
44721 2008-04-26  Eric Blake  <ebb9@byu.net>
44722             Bruno Haible  <bruno@clisp.org>
44723
44724         * lib/memchr.c: Include intprops.h.
44725         (__memchr): Optimize parallel detection of matching bytes. Rename local
44726         variables. Add explanatory comments.
44727
44728 2008-04-26  Bruno Haible  <bruno@clisp.org>
44729
44730         Fix module 'memchr', broken since 2000-10-28.
44731         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
44732
44733 2008-04-26  Bruno Haible  <bruno@clisp.org>
44734
44735         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
44736         comments.
44737
44738 2008-04-25  Eric Blake  <ebb9@byu.net>
44739
44740         Use native fstatat on cygwin 1.7.0.
44741         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
44742         first.
44743
44744 2008-04-23  Eric Blake  <ebb9@byu.net>
44745
44746         Improve memchr2 performance.
44747         * lib/memchr2.c (memchr2): Further optimize parallel detection of
44748         NUL bytes.
44749         * modules/memchr2 (Depends-on): Use intprops.h.
44750
44751 2008-04-23  Simon Josefsson  <simon@josefsson.org>
44752
44753         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
44754         an inline function instead of a CPP macro.  Patch by Ben Pfaff
44755         <blp@cs.stanford.edu>.
44756
44757 2008-04-23  Simon Josefsson  <simon@josefsson.org>
44758
44759         * lib/arpa_inet.in.h: New file.
44760
44761         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
44762         (Makefile.am): Sed in substitute header file.
44763
44764         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
44765         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
44766
44767         * modules/inet_ntop (configure.ac): Use
44768         gl_ARPA_INET_MODULE_INDICATOR.
44769
44770         * modules/inet_pton (configure.ac): Use
44771         gl_ARPA_INET_MODULE_INDICATOR.
44772
44773 2008-04-22  Jim Meyering  <meyering@redhat.com>
44774
44775         * modules/verify (License): Re-license as LGPLv2+.
44776
44777 2008-04-22  Simon Josefsson  <simon@josefsson.org>
44778
44779         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
44780         parameter to void* as per POSIX standard (MinGW uses char*).
44781
44782 2008-04-21  Bruno Haible  <bruno@clisp.org>
44783
44784         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
44785         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
44786         Define to replacements if REPLACE_ISWCNTRL is 1.
44787         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
44788         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
44789         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
44790         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
44791         what it fixes.
44792         * doc/posix-functions/iswalpha.texi: Likewise.
44793         * doc/posix-functions/iswblank.texi: Likewise.
44794         * doc/posix-functions/iswcntrl.texi: Likewise.
44795         * doc/posix-functions/iswdigit.texi: Likewise.
44796         * doc/posix-functions/iswgraph.texi: Likewise.
44797         * doc/posix-functions/iswlower.texi: Likewise.
44798         * doc/posix-functions/iswprint.texi: Likewise.
44799         * doc/posix-functions/iswpunct.texi: Likewise.
44800         * doc/posix-functions/iswspace.texi: Likewise.
44801         * doc/posix-functions/iswupper.texi: Likewise.
44802         * doc/posix-functions/iswxdigit.texi: Likewise.
44803         Reported by Alain Guibert.
44804
44805 2008-04-21  Bruno Haible  <bruno@clisp.org>
44806
44807         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
44808         Patch by Alain Guibert.
44809
44810 2008-04-21  Bruno Haible  <bruno@clisp.org>
44811
44812         Fix test failures on mingw.
44813         * tests/test-xstrtol.c (print_no_progname): New function.
44814         (main): Install it in error_print_progname hook.
44815         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
44816         * tests/test-xstrtoimax.sh: Likewise.
44817         * tests/test-xstrtoumax.sh: Likewise.
44818
44819 2008-04-21  Bruno Haible  <bruno@clisp.org>
44820
44821         Fix test failure on mingw.
44822         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
44823
44824 2008-04-21  Bruno Haible  <bruno@clisp.org>
44825
44826         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
44827         Actually assign a value.
44828
44829 2008-04-20  Bruno Haible  <bruno@clisp.org>
44830
44831         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
44832         take 2.
44833         * lib/canonicalize.c (canonicalize_file_name): Elide if the
44834         'canonicalize-lgpl' module is also used.
44835         * lib/canonicalize-lgpl.c: Undo last change.
44836         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
44837
44838 2008-04-20  Bruno Haible  <bruno@clisp.org>
44839
44840         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
44841         config.h. Provide _mkdir based fallback for mingw.
44842         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
44843         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
44844         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
44845         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
44846         rather than defining mkdir in config.h.
44847         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
44848         (gl_SYS_STAT_H_DEFAULTS): New macro.
44849         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
44850         HAVE_IO_H any more.
44851         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
44852         HAVE_DECL_MKDIR and HAVE_IO_H.
44853
44854 2008-04-20  Bruno Haible  <bruno@clisp.org>
44855
44856         * lib/isapipe.c: Port to native Windows platforms.
44857
44858 2008-04-20  Bruno Haible  <bruno@clisp.org>
44859
44860         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
44861
44862 2008-04-21  Eric Blake  <ebb9@byu.net>
44863
44864         Work around preprocessors that don't handle UINTMAX_MAX.
44865         * lib/memchr2.c (memchr2): Avoid embedded #if.
44866         Reported by Alain Guibert, fix suggested by Bruno Haible.
44867
44868 2008-04-21  Simon Josefsson  <simon@josefsson.org>
44869
44870         * doc/posix-functions/strftime.texi (strftime): Explain better
44871         Windows incompatibility.  Suggested by Micah Cowan
44872         <micah@cowan.name>.
44873
44874 2008-04-20  Bruno Haible  <bruno@clisp.org>
44875
44876         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
44877         unistr/u8-mblen.
44878
44879 2008-04-20  Bruno Haible  <bruno@clisp.org>
44880
44881         Fix test failure on platforms with non-GNU iconv.
44882         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
44883         (U_TO_U8): Use it, rather than u16_to_u8.
44884         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
44885         units at the end of the input string.
44886         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
44887
44888 2008-04-20  Bruno Haible  <bruno@clisp.org>
44889
44890         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
44891         when the resulting length is 0.
44892         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
44893
44894 2008-04-20  Bruno Haible  <bruno@clisp.org>
44895
44896         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
44897         works.
44898         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
44899
44900 2008-04-20  Bruno Haible  <bruno@clisp.org>
44901
44902         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
44903         * modules/tsearch-tests (configure.ac): Test for initstate function.
44904
44905 2008-04-20  Bruno Haible  <bruno@clisp.org>
44906
44907         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
44908         for nlink_t if missing.
44909         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
44910
44911 2008-04-19  Bruno Haible  <bruno@clisp.org>
44912
44913         Work around snprintf bug on Linux libc5.
44914         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
44915         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
44916         gl_SNPRINTF_SIZE1.
44917         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44918         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
44919         that test failed.
44920         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
44921         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
44922         * modules/snprintf (Files): Add m4/printf.m4.
44923         * modules/vsnprintf (Files): Likewise.
44924         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
44925         * doc/posix-functions/vsnprintf.texi: Likewise.
44926
44927 2008-04-19  Bruno Haible  <bruno@clisp.org>
44928
44929         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
44930         from 0.0058 to less than 10^-7.
44931
44932 2008-04-19  Bruno Haible  <bruno@clisp.org>
44933
44934         Fix rounding when a precision is given.
44935         * lib/vasnprintf.c (is_borderline): New function.
44936         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
44937         9...9x.
44938         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
44939         %e, %g.
44940         * tests/test-vasprintf-posix.c (test_function): Likewise.
44941         * tests/test-snprintf-posix.h (test_function): Likewise.
44942         * tests/test-sprintf-posix.h (test_function): Likewise.
44943         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
44944         * tests/test-printf-posix.h (test_function): Likewise.
44945         * tests/test-printf-posix.output: Update.
44946         Reported by John Darrington <john@darrington.wattle.id.au> via
44947         Ben Pfaff <blp@cs.stanford.edu>.
44948
44949 2008-04-18  Simon Josefsson  <simon@josefsson.org>
44950
44951         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
44952         Suggested by Bruno Haible <bruno@clisp.org>.
44953
44954 2008-04-17  Bruno Haible  <bruno@clisp.org>
44955
44956         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
44957         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
44958         implementation.
44959         Patch by Bruce Merry <bmerry@gmail.com>.
44960
44961 2008-04-17  Simon Josefsson  <simon@josefsson.org>
44962
44963         * doc/posix-functions/strftime.texi (strftime): Mention that %e
44964         doesn't work under Windows.
44965
44966 2008-04-16  Bruno Haible  <bruno@clisp.org>
44967
44968         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
44969         New macros.
44970         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
44971         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
44972         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
44973         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
44974         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
44975         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
44976         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
44977         macros.
44978         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
44979         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
44980         Northern Sotho, Uighur.
44981
44982 2008-04-16  Bruno Haible  <bruno@clisp.org>
44983
44984         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
44985         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
44986         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
44987         Reported by Daniel Bergström <daniel@octocode.com>.
44988
44989 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
44990             Bruno Haible  <bruno@clisp.org>
44991
44992         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
44993         function.
44994         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
44995         New functions, mostly extracted from gl_locale_name_default.
44996         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
44997
44998 2008-04-16  Eric Blake  <ebb9@byu.net>
44999
45000         Adjust strtod detection to catch glibc 2.7 bug.
45001         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
45002         Reported by John Gatewood Ham.
45003
45004 2008-04-16  Bruno Haible  <bruno@clisp.org>
45005
45006         Add tentative support for Linux libc5.
45007         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
45008         * lib/fpurge.c (fpurge): Likewise.
45009         * lib/freadable.c (freadable): Likewise.
45010         * lib/freadahead.c (freadahead): Likewise.
45011         * lib/freading.c (freading): Likewise.
45012         * lib/freadptr.c (freadptr): Likewise.
45013         * lib/freadseek.c (freadptrinc): Likewise.
45014         * lib/fseeko.c (rpl_fseeko): Likewise.
45015         * lib/fseterr.c (fseterr): Likewise.
45016         * lib/fwritable.c (fwritable): Likewise.
45017         * lib/fwriting.c (fwriting): Likewise.
45018         Reported by Alain Guibert <alguibert+bts@free.fr>.
45019
45020 2008-04-15  Bruno Haible  <bruno@clisp.org>
45021
45022         * modules/mathl (configure.ac): Define module indicator.
45023
45024 2008-04-15  Bruno Haible  <bruno@clisp.org>
45025
45026         * lib/logl.c (logl): Remove unused variables.
45027
45028 2008-04-15  Bruno Haible  <bruno@clisp.org>
45029
45030         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
45031         fails.
45032
45033 2008-04-15  Bruno Haible  <bruno@clisp.org>
45034
45035         * lib/trim.c (trim2): Fix argument of isspace() macro.
45036
45037 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
45038
45039         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
45040         to 0.
45041         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
45042
45043 2008-04-14  Bruno Haible  <bruno@clisp.org>
45044
45045         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
45046         AC_LANG_PROGRAM argument.
45047         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
45048         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
45049         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
45050         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
45051         * m4/math_h.m4 (gl_MATH_H): Likewise.
45052         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
45053         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
45054         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
45055         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
45056         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
45057         * m4/regex.m4 (gl_REGEX): Likewise.
45058         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
45059         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
45060         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45061         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
45062         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
45063         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
45064         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
45065         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
45066
45067 2008-04-14  Jim Meyering  <meyering@redhat.com>
45068
45069         test-strtod: fix typos: s/abs/fabs/
45070         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
45071
45072 2008-04-13  Bruno Haible  <bruno@clisp.org>
45073
45074         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
45075         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
45076         module is also used and while not building the reloc-wrapper.
45077
45078 2008-04-13  Bruno Haible  <bruno@clisp.org>
45079
45080         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
45081
45082 2008-04-13  Bruno Haible  <bruno@clisp.org>
45083
45084         Fix AIX compilation failure introduced on 2008-04-02.
45085         * tests/test-frexp.c (exp): Undefine before redefining.
45086         * tests/test-frexpl.c (exp): Likewise.
45087
45088 2008-04-13  Bruno Haible  <bruno@clisp.org>
45089
45090         Work around a HP-UX stdio bug.
45091         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
45092         * tests/test-ftello.c (main): Likewise.
45093         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
45094         * doc/posix-functions/ftello.texi: Likewise.
45095
45096 2008-04-13  Bruno Haible  <bruno@clisp.org>
45097
45098         Make test-signbit pass on HP-UX/hppa.
45099         * tests/test-signbit.c (minus_zerol): New variable.
45100         (test_signbitl): Use it.
45101
45102 2008-04-13  Bruno Haible  <bruno@clisp.org>
45103
45104         Make truncl work on OSF/1 4.0.
45105         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
45106         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
45107         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
45108         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
45109         HAVE_DECL_TRUNCL.
45110         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
45111         HAVE_DECL_TRUNCL.
45112         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
45113
45114 2008-04-13  Bruno Haible  <bruno@clisp.org>
45115
45116         * lib/unictype.h: Remove trailing comma from enumeration definitions.
45117
45118 2008-04-13  Bruno Haible  <bruno@clisp.org>
45119
45120         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
45121         expression, so as to avoid HP-UX 11 cc compiler bug.
45122
45123 2008-04-13  Bruno Haible  <bruno@clisp.org>
45124
45125         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
45126
45127 2008-04-13  Bruno Haible  <bruno@clisp.org>
45128
45129         * lib/git-merge-changelog.c: Remove empty declaration outside of
45130         functions.
45131
45132 2008-04-13  Bruno Haible  <bruno@clisp.org>
45133
45134         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
45135
45136 2008-04-13  Bruno Haible  <bruno@clisp.org>
45137
45138         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
45139         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
45140         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
45141         also if it exists but lacks definitions of the SHUT_* macros.
45142         * modules/sys_socket (Description): Update.
45143         Reported by Elbert Pol <e.pol@chello.nl>.
45144
45145 2008-04-13  Bruno Haible  <bruno@clisp.org>
45146
45147         * lib/localcharset.c (OS2): Don't redefine if already defined.
45148         Reported by Elbert Pol <e.pol@chello.nl>.
45149
45150 2008-04-13  Bruno Haible  <bruno@clisp.org>
45151
45152         * lib/binary-io.h [__EMX__]: Include <io.h>.
45153         Reported by Elbert Pol <e.pol@chello.nl>.
45154
45155 2008-04-12  Bruno Haible  <bruno@clisp.org>
45156
45157         * lib/fpucw.h: Enable the definitions also for x86_64.
45158         Needed for NetBSD/x86_64.
45159         Reported by Thomas Klausner <tk@giga.or.at>.
45160
45161 2008-04-12  Bruno Haible  <bruno@clisp.org>
45162
45163         * tests/test-strtod.c: Include isnand.h.
45164         (main): Use isnand instead of isnan.
45165         Reported by Jim Meyering.
45166
45167 2008-04-12  Bruno Haible  <bruno@clisp.org>
45168
45169         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
45170         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
45171
45172 2008-04-12  Jim Meyering  <meyering@redhat.com>
45173
45174         * m4/math_h.m4 (gl_MATH_H): Fix typos.
45175
45176 2008-04-12  Bruno Haible  <bruno@clisp.org>
45177
45178         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
45179         Reported by Elbert Pol <e.pol@chello.nl>.
45180
45181 2008-04-12  Eric Blake  <ebb9@byu.net>
45182
45183         Work around Solaris 10 math.h bug.
45184         * m4/math_h.m4 (gl_MATH_H): Check for bug.
45185         (gl_MATH_H_DEFAULTS): Set up default.
45186         * modules/math (Makefile.am): Replace new indicators.
45187         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
45188         * tests/test-math.c (main): Test this.
45189         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
45190         * doc/posix-headers/math.texi (math.h): Mention bug.
45191         Reported by Nelson H. F. Beebe and Jim Meyering.
45192
45193 2008-04-11  Bruno Haible  <bruno@clisp.org>
45194
45195         Adapt to future versions of Apple GCC.
45196         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
45197         Reported by Peter O'Gorman <peter@pogma.com>.
45198
45199 2008-04-11  Bruno Haible  <bruno@clisp.org>
45200
45201         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
45202
45203 2008-04-11  Bruno Haible  <bruno@clisp.org>
45204
45205         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
45206
45207         * modules/getaddrinfo-tests (Makefile.am): Define
45208         test_getaddrinfo_LDADD.
45209
45210 2008-04-11  Bruno Haible  <bruno@clisp.org>
45211
45212         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
45213         (init): Fix syntax error.
45214         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
45215         is declared.
45216
45217 2008-04-11  Bruno Haible  <bruno@clisp.org>
45218
45219         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
45220         * modules/glob (Depends-on): Add stdbool.
45221
45222 2008-04-11  Bruno Haible  <bruno@clisp.org>
45223
45224         * lib/trim.c: Include <string.h>.
45225
45226 2008-04-11  Eric Blake  <ebb9@byu.net>
45227
45228         Avoid compile failure on OS/2.
45229         * lib/regex_internal.h (internal_function): Disable optimization
45230         on OS/2 (__EMX__), where it caused compiler error.
45231         Reported by Elbert Pol.
45232
45233 2008-04-11  Bruno Haible  <bruno@clisp.org>
45234
45235         Flush the standard error stream before aborting. Needed on mingw.
45236         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
45237         * tests/test-array_list.c (ASSERT): Likewise.
45238         * tests/test-array_oset.c (ASSERT): Likewise.
45239         * tests/test-avltree_list.c (ASSERT): Likewise.
45240         * tests/test-avltree_oset.c (ASSERT): Likewise.
45241         * tests/test-avltreehash_list.c (ASSERT): Likewise.
45242         * tests/test-binary-io.c (ASSERT): Likewise.
45243         * tests/test-byteswap.c (ASSERT): Likewise.
45244         * tests/test-c-ctype.c (ASSERT): Likewise.
45245         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
45246         * tests/test-c-strcasestr.c (ASSERT): Likewise.
45247         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
45248         * tests/test-c-strstr.c (ASSERT): Likewise.
45249         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
45250         * tests/test-canonicalize.c (ASSERT): Likewise.
45251         * tests/test-carray_list.c (ASSERT): Likewise.
45252         * tests/test-ceilf1.c (ASSERT): Likewise.
45253         * tests/test-ceilf2.c (ASSERT): Likewise.
45254         * tests/test-ceill.c (ASSERT): Likewise.
45255         * tests/test-count-one-bits.c (ASSERT): Likewise.
45256         * tests/test-fbufmode.c (ASSERT): Likewise.
45257         * tests/test-fflush2.c (ASSERT): Likewise.
45258         * tests/test-floorf1.c (ASSERT): Likewise.
45259         * tests/test-floorf2.c (ASSERT): Likewise.
45260         * tests/test-floorl.c (ASSERT): Likewise.
45261         * tests/test-fopen.c (ASSERT): Likewise.
45262         * tests/test-fpending.c (ASSERT): Likewise.
45263         * tests/test-fprintf-posix.c (ASSERT): Likewise.
45264         * tests/test-fpurge.c (ASSERT): Likewise.
45265         * tests/test-freadable.c (ASSERT): Likewise.
45266         * tests/test-freadahead.c (ASSERT): Likewise.
45267         * tests/test-freading.c (ASSERT): Likewise.
45268         * tests/test-freadptr.c (ASSERT): Likewise.
45269         * tests/test-freadptr2.c (ASSERT): Likewise.
45270         * tests/test-freadseek.c (ASSERT): Likewise.
45271         * tests/test-freopen.c (ASSERT): Likewise.
45272         * tests/test-frexp.c (ASSERT): Likewise.
45273         * tests/test-frexpl.c (ASSERT): Likewise.
45274         * tests/test-fseek.c (ASSERT): Likewise.
45275         * tests/test-fseeko.c (ASSERT): Likewise.
45276         * tests/test-fstrcmp.c (ASSERT): Likewise.
45277         * tests/test-ftell.c (ASSERT): Likewise.
45278         * tests/test-ftello.c (ASSERT): Likewise.
45279         * tests/test-func.c (ASSERT): Likewise.
45280         * tests/test-fwritable.c (ASSERT): Likewise.
45281         * tests/test-fwriting.c (ASSERT): Likewise.
45282         * tests/test-getdelim.c (ASSERT): Likewise.
45283         * tests/test-getline.c (ASSERT): Likewise.
45284         * tests/test-i-ring.c (ASSERT): Likewise.
45285         * tests/test-iconv-utf.c (ASSERT): Likewise.
45286         * tests/test-iconv.c (ASSERT): Likewise.
45287         * tests/test-isfinite.c (ASSERT): Likewise.
45288         * tests/test-isnand.c (ASSERT): Likewise.
45289         * tests/test-isnanf.c (ASSERT): Likewise.
45290         * tests/test-isnanl.h (ASSERT): Likewise.
45291         * tests/test-ldexpl.c (ASSERT): Likewise.
45292         * tests/test-linked_list.c (ASSERT): Likewise.
45293         * tests/test-linkedhash_list.c (ASSERT): Likewise.
45294         * tests/test-localename.c (ASSERT): Likewise.
45295         * tests/test-lseek.c (ASSERT): Likewise.
45296         * tests/test-mbscasecmp.c (ASSERT): Likewise.
45297         * tests/test-mbscasestr1.c (ASSERT): Likewise.
45298         * tests/test-mbscasestr2.c (ASSERT): Likewise.
45299         * tests/test-mbscasestr3.c (ASSERT): Likewise.
45300         * tests/test-mbscasestr4.c (ASSERT): Likewise.
45301         * tests/test-mbschr.c (ASSERT): Likewise.
45302         * tests/test-mbscspn.c (ASSERT): Likewise.
45303         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
45304         * tests/test-mbspbrk.c (ASSERT): Likewise.
45305         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
45306         * tests/test-mbsrchr.c (ASSERT): Likewise.
45307         * tests/test-mbsspn.c (ASSERT): Likewise.
45308         * tests/test-mbsstr1.c (ASSERT): Likewise.
45309         * tests/test-mbsstr2.c (ASSERT): Likewise.
45310         * tests/test-mbsstr3.c (ASSERT): Likewise.
45311         * tests/test-memchr2.c (ASSERT): Likewise.
45312         * tests/test-memmem.c (ASSERT): Likewise.
45313         * tests/test-open.c (ASSERT): Likewise.
45314         * tests/test-printf-frexp.c (ASSERT): Likewise.
45315         * tests/test-printf-frexpl.c (ASSERT): Likewise.
45316         * tests/test-printf-posix.c (ASSERT): Likewise.
45317         * tests/test-quotearg.c (ASSERT): Likewise.
45318         * tests/test-rbtree_list.c (ASSERT): Likewise.
45319         * tests/test-rbtree_oset.c (ASSERT): Likewise.
45320         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
45321         * tests/test-round1.c (ASSERT): Likewise.
45322         * tests/test-roundf1.c (ASSERT): Likewise.
45323         * tests/test-roundl.c (ASSERT): Likewise.
45324         * tests/test-signbit.c (ASSERT): Likewise.
45325         * tests/test-sleep.c (ASSERT): Likewise.
45326         * tests/test-snprintf-posix.c (ASSERT): Likewise.
45327         * tests/test-snprintf.c (ASSERT): Likewise.
45328         * tests/test-sprintf-posix.c (ASSERT): Likewise.
45329         * tests/test-stat-time.c (ASSERT): Likewise.
45330         * tests/test-strcasestr.c (ASSERT): Likewise.
45331         * tests/test-strerror.c (ASSERT): Likewise.
45332         * tests/test-striconv.c (ASSERT): Likewise.
45333         * tests/test-striconveh.c (ASSERT): Likewise.
45334         * tests/test-striconveha.c (ASSERT): Likewise.
45335         * tests/test-strsignal.c (ASSERT): Likewise.
45336         * tests/test-strstr.c (ASSERT): Likewise.
45337         * tests/test-strtod.c (ASSERT): Likewise.
45338         * tests/test-trunc1.c (ASSERT): Likewise.
45339         * tests/test-trunc2.c (ASSERT): Likewise.
45340         * tests/test-truncf1.c (ASSERT): Likewise.
45341         * tests/test-truncf2.c (ASSERT): Likewise.
45342         * tests/test-truncl.c (ASSERT): Likewise.
45343         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
45344         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
45345         * tests/test-vasnprintf.c (ASSERT): Likewise.
45346         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
45347         * tests/test-vasprintf.c (ASSERT): Likewise.
45348         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
45349         * tests/test-vprintf-posix.c (ASSERT): Likewise.
45350         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
45351         * tests/test-vsnprintf.c (ASSERT): Likewise.
45352         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
45353         * tests/test-wcwidth.c (ASSERT): Likewise.
45354         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
45355         * tests/test-xprintf-posix.c (ASSERT): Likewise.
45356         * tests/test-xvasprintf.c (ASSERT): Likewise.
45357         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
45358         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
45359         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
45360         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
45361         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
45362         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
45363         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
45364         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
45365         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
45366         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
45367         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
45368         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
45369         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
45370         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
45371         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
45372         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
45373         * tests/unictype/test-block_list.c (ASSERT): Likewise.
45374         * tests/unictype/test-block_of.c (ASSERT): Likewise.
45375         * tests/unictype/test-block_test.c (ASSERT): Likewise.
45376         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
45377         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
45378         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
45379         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
45380         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
45381         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
45382         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
45383         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
45384         * tests/unictype/test-combining.c (ASSERT): Likewise.
45385         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
45386         * tests/unictype/test-digit.c (ASSERT): Likewise.
45387         * tests/unictype/test-mirror.c (ASSERT): Likewise.
45388         * tests/unictype/test-numeric.c (ASSERT): Likewise.
45389         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
45390         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
45391         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
45392         * tests/unictype/test-scripts.c (ASSERT): Likewise.
45393         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
45394         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
45395         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
45396         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
45397         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
45398         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
45399         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
45400         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
45401         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
45402         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
45403         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
45404         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
45405         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
45406         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
45407         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
45408         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
45409         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
45410         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
45411         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
45412         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
45413         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
45414         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
45415         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
45416         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
45417         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
45418         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
45419         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
45420         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
45421         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
45422         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
45423         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
45424         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
45425         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
45426         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
45427         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
45428         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
45429         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
45430         Reported by Eric Blake.
45431
45432 2008-04-11  Bruno Haible  <bruno@clisp.org>
45433
45434         * lib/wchar.in.h: Tweak comment.
45435
45436 2008-04-11  Bruno Haible  <bruno@clisp.org>
45437
45438         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
45439         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
45440         gl_COMMON.
45441         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
45442
45443 2008-04-11  Bruno Haible  <bruno@clisp.org>
45444
45445         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
45446
45447 2008-04-11  Simon Josefsson  <simon@josefsson.org>
45448
45449         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
45450         of attempting to use non-existing /dev/*random.  Based on patch
45451         from Adam Strzelecki <ono@java.pl> in
45452         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
45453
45454 2008-04-08  Bruno Haible  <bruno@clisp.org>
45455
45456         Add tentative support for emx+gcc.
45457         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
45458         * lib/fpurge.c (fpurge): Likewise.
45459         * lib/freadable.c (freadable): Likewise.
45460         * lib/freadahead.c (freadahead): Likewise.
45461         * lib/freading.c (freading): Likewise.
45462         * lib/freadptr.c (freadptr): Likewise.
45463         * lib/freadseek.c (freadptrinc): Likewise.
45464         * lib/fseeko.c (rpl_fseeko): Likewise.
45465         * lib/fseterr.c (fseterr): Likewise.
45466         * lib/fwritable.c (fwritable): Likewise.
45467         * lib/fwriting.c (fwriting): Likewise.
45468         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
45469
45470 2008-04-09  Eric Blake  <ebb9@byu.net>
45471
45472         Avoid some autoconf warnings.
45473         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
45474         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
45475         * m4/afs.m4 (gl_AFS): Likewise.
45476         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
45477         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
45478         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
45479         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
45480         (gl_INTEGER_TYPE_SUFFIX): Likewise.
45481         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
45482         (AC_CHECK_DECLS_ONCE): Likewise.
45483         Rename file...
45484         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
45485         gnulib-tool requires autoconf 2.59 or better.
45486         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
45487
45488 2008-04-08  Eric Blake  <ebb9@byu.net>
45489
45490         Use 'git describe --match' if present (added in git 1.5.5).
45491         * build-aux/git-version-gen: Limit result to tags that match 'v*'
45492         if possible.
45493
45494 2008-04-08  Bruno Haible  <bruno@clisp.org>
45495
45496         Add tentative support for OpenServer.
45497         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
45498         _ptr, _cnt.
45499         * lib/fpurge.c (fpurge): Likewise.
45500         * lib/freadable.c (freadable): Likewise.
45501         * lib/freadahead.c (freadahead): Likewise.
45502         * lib/freading.c (freading): Likewise.
45503         * lib/freadptr.c (freadptr): Likewise.
45504         * lib/freadseek.c (freadptrinc): Likewise.
45505         * lib/fseeko.c (rpl_fseeko): Likewise.
45506         * lib/fseterr.c (fseterr): Likewise.
45507         * lib/fwritable.c (fwritable): Likewise.
45508         * lib/fwriting.c (fwriting): Likewise.
45509         Reported by Roger Cornelius <rac@tenzing.org> and
45510         Brian K. White <brian@aljex.com>.
45511
45512 2008-04-06  Jim Meyering  <meyering@redhat.com>
45513
45514         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
45515
45516 2008-04-06  Bruno Haible  <bruno@clisp.org>
45517
45518         Avoid possible error with non-ASCII bytes in UTF-8 locales.
45519         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
45520         * tests/test-printf-posix.sh: Likewise.
45521         * tests/test-vfprintf-posix.sh: Likewise.
45522         * tests/test-vprintf-posix.sh: Likewise.
45523         * tests/test-xprintf-posix.sh: Likewise.
45524
45525 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45526
45527         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
45528         hide error from 'ls', needed on OS/2.
45529         Report by Elbert Pol <elbert.pol@gmail.com>.
45530
45531 2008-04-04  Eric Blake  <ebb9@byu.net>
45532
45533         Make test-fseeko.c failures meaningful.
45534         * tests/test-fseeko.c: Print line number on failure.
45535         * tests/test-fseek.c: Likewise.
45536         Reported by Nelson H. F. Beebe.
45537
45538         Improve strtod bug detection check.
45539         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
45540         required for Solaris 10.
45541         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
45542
45543 2008-04-04  Bruno Haible  <bruno@clisp.org>
45544
45545         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
45546         by m4/setenv.m4.
45547
45548 2008-04-03  Eric Blake  <ebb9@byu.net>
45549
45550         Ensure sane .version contents.
45551         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
45552         version string.
45553         * build-aux/git-version-gen: Improve documentation.
45554
45555         Make GNU make output nicer.
45556         * top/GNUmakefile [!_have-Makefile]: Add dependency on
45557         MAKECMDGOALS to enforce message for all command line targets.  Set
45558         srcdir for use in maint.mk.
45559
45560         Another maintainer tweak.
45561         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
45562         a target that regenerates version.
45563
45564 2008-04-03  Jim Meyering  <meyering@redhat.com>
45565
45566         vc-list-files: don't cause coreutils "make po-check" failure
45567         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
45568
45569 2008-04-03  Eric Blake  <ebb9@byu.net>
45570
45571         Allow VPATH usage of vc-list-files.
45572         * build-aux/vc-list-files (scriptversion): Add timestamp.
45573         (options): Add --help, --version, -C.
45574         (CVS): Support installed cvsu.
45575
45576 2008-04-02  Bruno Haible  <bruno@clisp.org>
45577
45578         Avoid some "statement with no effect" warnings from gcc.
45579         * tests/test-wctype.c (main): Explicitly ignore unused values.
45580         Reported by Jim Meyering.
45581
45582 2008-04-02  Jim Meyering  <meyering@redhat.com>
45583
45584         Avoid some warnings from "gcc -Wshadow".
45585         * tests/test-frexp.c (exp): Define to a different identifier.
45586         * tests/test-frexpl.c (exp): Likewise.
45587
45588 2008-04-03  Jim Meyering  <meyering@redhat.com>
45589
45590         bootstrap: remove dangling *.[ch] symlinks from lib
45591         * build-aux/bootstrap [dangling symlink removal]: Move find's
45592         -depth option to precede all others, to avoid a warning.
45593         Remove *.[ch] files too, and from "$source_base" (usually lib/).
45594
45595 2008-04-02  Bruno Haible  <bruno@clisp.org>
45596
45597         Avoid some warnings from "gcc -Wshadow".
45598         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
45599         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
45600         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
45601         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
45602         Reported by Jim Meyering.
45603
45604 2008-04-01  Bruno Haible  <bruno@clisp.org>
45605
45606         Fix test to work on IRIX 6.5 with cc.
45607         * tests/test-math.c (numeric_equal): New function.
45608         (main): Use it.
45609
45610 2008-04-01  Bruno Haible  <bruno@clisp.org>
45611
45612         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
45613
45614 2008-04-01  Bruno Haible  <bruno@clisp.org>
45615
45616         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
45617         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
45618         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
45619         (Depends-on): Remove math.
45620
45621         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
45622         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
45623         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
45624         (Depends-on): Remove math.
45625
45626         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
45627         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
45628         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
45629         (Depends-on): Remove math.
45630         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
45631         (Depends-on): Remove math.
45632
45633         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
45634         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
45635         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
45636         (Depends-on): Remove math.
45637         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
45638         (Depends-on): Remove math.
45639
45640         * tests/test-round1.c: Include nan.h.
45641         (main): Use NaNd instead of NAN.
45642         * modules/round-tests (Files): Add tests/nan.h.
45643
45644         * tests/test-trunc1.c: Include nan.h.
45645         (main): Use NaNd instead of NAN.
45646         * modules/trunc-tests (Files): Add tests/nan.h.
45647
45648         * tests/test-roundf1.c: Include nan.h.
45649         (main): Use NaNf instead of NAN.
45650         * modules/roundf-tests (Files): Add tests/nan.h.
45651
45652         * tests/test-truncf1.c: Include nan.h.
45653         (main): Use NaNf instead of NAN.
45654         * modules/truncf-tests (Files): Add tests/nan.h.
45655
45656         * tests/test-ceilf1.c: Include nan.h.
45657         (main): Use NaNf instead of NAN.
45658         * modules/ceilf-tests (Files): Add tests/nan.h.
45659
45660         * tests/test-floorf1.c: Include nan.h.
45661         (main): Use NaNf instead of NAN.
45662         * modules/floorf-tests (Files): Add tests/nan.h.
45663
45664         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
45665         (main): Use NaNf instead of NAN.
45666         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
45667
45668         * tests/test-isnand.c: Include nan.h instead of <math.h>.
45669         (main): Use NaNd instead of NAN.
45670         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
45671
45672         * tests/test-frexp.c: Include nan.h.
45673         (main): Use NaNd instead of NAN.
45674         * modules/frexp-tests (Files): Add tests/nan.h.
45675
45676         * lib/isnan.c: Don't include <math.h>.
45677         (FUNC): Don't use NAN macro.
45678         * modules/isnand-nolibm (Depends-on): Remove math.
45679         * modules/isnanf-nolibm (Depends-on): Remove math.
45680         * modules/isnanl (Depends-on): Remove math.
45681         * modules/isnanl-nolibm (Depends-on): Remove math.
45682
45683         * tests/nan.h: New file.
45684
45685 2008-04-01  Eric Blake  <ebb9@byu.net>
45686
45687         Fix typos.
45688         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
45689         values to be the right type.
45690
45691         For now, cater to gnulib strtod inaccuracies.
45692         * tests/test-strtod.c (main): Allow 1-ulp error on expected
45693         fractional results.  While not as nice from a QoI perspective, it
45694         is a quicker patch than correctly implementing decimal to binary
45695         rounding.
45696
45697 2008-03-31  Eric Blake  <ebb9@byu.net>
45698
45699         Guarantee a definition of NAN.
45700         * lib/math.in.h (NAN): Define if missing.
45701         * tests/test-math.c (main): Test it.
45702         * doc/posix-headers/math.texi (math.h): Document this.
45703         * lib/isnan.c (rpl_isnand): Use it.
45704         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
45705         * tests/test-floorf1.c (NaN): Likewise.
45706         * tests/test-frexp.c (NaN): Likewise.
45707         * tests/test-isnand.c (NaN): Likewise.
45708         * tests/test-isnanf.c (NaN): Likewise.
45709         * tests/test-round1.c (NaN): Likewise.
45710         * tests/test-roundf1.c (NaN): Likewise.
45711         * tests/test-snprintf-posix.h (NaN): Likewise.
45712         * tests/test-sprintf-posix.h (NaN): Likewise.
45713         * tests/test-trunc1.c (NaN): Likewise.
45714         * tests/test-truncf1.c (NaN): Likewise.
45715         * tests/test-vasnprintf-posix.c (NaN): Likewise.
45716         * tests/test-vasprintf-posix.c (NaN): Likewise.
45717         * modules/isnand-nolibm (Depends-on): Add math.
45718         * modules/isnanf-nolibm (Depends-on): Likewise.
45719         * modules/isnanl (Depends-on): Likewise.
45720         * modules/isnanl-nolibm (Depends-on): Likewise.
45721         * modules/snprintf-posix-tests (Depends-on): Likewise.
45722         * modules/sprintf-posix-tests (Depends-on): Likewise.
45723         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
45724         * modules/vsprintf-posix-tests (Depends-on): Likewise.
45725         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
45726         * modules/vasprintf-posix-tests (Depends-on): Likewise.
45727
45728 2008-03-31  Bruno Haible  <bruno@clisp.org>
45729
45730         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
45731         * doc/posix-functions/strtod.texi: Likewise.
45732
45733 2008-03-31  Bruno Haible  <bruno@clisp.org>
45734
45735         * tests/test-strtod.c (main): Don't use C99 syntax.
45736
45737 2008-03-31  Bruno Haible  <bruno@clisp.org>
45738
45739         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
45740         Reported by Eric Blake.
45741
45742 2008-03-31  Jim Meyering  <meyering@redhat.com>
45743
45744         Don't compare actual signbit return values.
45745         * tests/test-strtod.c (main): Rather, compare only their
45746         zero/non-zero nature.
45747
45748 2008-03-31  Eric Blake  <ebb9@byu.net>
45749
45750         More strtod documentation.
45751         * doc/posix-functions/strtod.texi (strtod): Interpret more test
45752         failures as distinct bugs.
45753
45754 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
45755
45756         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
45757         Problem reported by Erik Benada in
45758         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
45759
45760 2008-03-30  Bruno Haible  <bruno@clisp.org>
45761
45762         * tests/test-strtod.c: Add comments about which assertion fails on which
45763         platform.
45764         * doc/posix-functions/strtod.texi: Add info about many more platforms.
45765
45766 2008-03-30  Eric Blake  <ebb9@byu.net>
45767
45768         Test signbit behavior on zeros.
45769         * tests/test-signbit.c (test_signbitf): Add tests for zero.
45770         (test_signbitd, test_signbitl): Likewise.
45771
45772         More strtod touchups.
45773         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
45774         sign of negative underflow, for now.  Use .5, not .1.
45775         * doc/posix-functions/strtod.texi (strtod): Mention these
45776         limitations.
45777         Reported by Jim Meyering.
45778
45779 2008-03-30  Bruno Haible  <bruno@clisp.org>
45780
45781         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
45782         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
45783
45784 2008-03-30  Bruno Haible  <bruno@clisp.org>
45785
45786         Avoid failure when attempting to return empty iconv results on some
45787         platforms.
45788         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
45789         allocation, don't report ENOMEM when the resulting string is empty.
45790
45791 2008-03-30  Bruno Haible  <bruno@clisp.org>
45792
45793         Fix buffer overrun.
45794         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
45795         Don't consider the width for tmp_length. Check count against tmp_length
45796         before doing the padding. Ensure enough allocation during padding.
45797
45798 2008-03-30  Eric Blake  <ebb9@byu.net>
45799
45800         strtod touchups.
45801         * lib/strtod.c (strtod): Avoid compiler warnings.
45802         Reported by Jim Meyering.
45803
45804 2008-03-30  Bruno Haible  <bruno@clisp.org>
45805
45806         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
45807         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
45808         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
45809         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
45810         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
45811         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
45812         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
45813         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
45814
45815         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
45816         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
45817         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
45818         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
45819         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
45820         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
45821         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
45822         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
45823
45824         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
45825         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
45826         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
45827         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
45828         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
45829         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
45830         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
45831         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
45832
45833         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
45834         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
45835
45836         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
45837         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
45838
45839         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
45840         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
45841
45842         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
45843         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
45844         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
45845
45846         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
45847         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
45848         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
45849
45850         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
45851         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
45852         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
45853
45854         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
45855         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
45856         * modules/vasprintf (Depends-on): Add EOVERFLOW.
45857
45858         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
45859         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
45860         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
45861         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
45862         (Depends-on): Add EOVERFLOW.
45863         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
45864         (Depends-on): Add EOVERFLOW.
45865         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
45866         (Depends-on): Add EOVERFLOW.
45867         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
45868         (Depends-on): Add EOVERFLOW.
45869         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
45870         (Depends-on): Add EOVERFLOW.
45871         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
45872         (Depends-on): Add EOVERFLOW.
45873         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
45874         (Depends-on): Add EOVERFLOW.
45875         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
45876         (Depends-on): Add EOVERFLOW.
45877
45878         * lib/sprintf.c (EOVERFLOW): Remove fallback.
45879         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
45880         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
45881
45882         * lib/snprintf.c (EOVERFLOW): Remove fallback.
45883         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
45884         * modules/snprintf (Depends-on): Add EOVERFLOW.
45885
45886         * lib/poll.c (EOVERFLOW): Remove fallback.
45887         * modules/poll (Depends-on): Add EOVERFLOW.
45888
45889         * lib/getugroups.c (EOVERFLOW): Remove fallback.
45890         * modules/getugroups (Depends-on): Add EOVERFLOW.
45891
45892         * lib/getdelim.c (EOVERFLOW): Remove fallback.
45893         * modules/getdelim (Depends-on): Add EOVERFLOW.
45894
45895         * lib/ftell.c (EOVERFLOW): Remove fallback.
45896         * modules/ftell (Depends-on): Add EOVERFLOW.
45897
45898         * lib/fprintf.c (EOVERFLOW): Remove fallback.
45899         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
45900         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
45901
45902         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
45903
45904         * modules/EOVERFLOW-tests: New file.
45905         * tests/test-EOVERFLOW.c: New file.
45906
45907         * modules/EOVERFLOW: New file.
45908         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
45909
45910 2008-03-30  Bruno Haible  <bruno@clisp.org>
45911
45912         Fix bug introduced on 2007-06-10.
45913         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
45914         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
45915
45916 2008-03-30  Bruno Haible  <bruno@clisp.org>
45917
45918         Improve freadseek's efficiency after ungetc.
45919         * lib/freadseek.c: Include freadahead.h.
45920         (freadptrinc): New function, extracted from freadseek.
45921         (freadseek): Use it in a loop. Use freadahead to determine the number
45922         of loop iterations.
45923         * modules/freadseek (Depends-on): Add freadahead.
45924         (configure.ac): Require AC_C_INLINE.
45925
45926 2008-03-30  Bruno Haible  <bruno@clisp.org>
45927
45928         * lib/freadseek.c (freadseek): Don't ignore the return value of
45929         freadptr.
45930
45931 2008-03-29  Eric Blake  <ebb9@byu.net>
45932
45933         Add hex float support.
45934         * modules/strtod (Depends-on): Add c-ctype.
45935         (Link): Mention POW_LIB.
45936         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
45937         whitespace between 'e' and exponent.
45938         * tests/test-strtod.c (main): Enable hex float tests.
45939         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
45940         now provides.
45941
45942         Document various strtod bugs, with some fixes.
45943         * doc/posix-functions/strtod.texi (strtod): Document bugs with
45944         "-0x", "inf", "nan", and hex constants.
45945         * doc/posix-functions/atof.texi (atof): Likewise.
45946         * modules/stdlib (Makefile.am): Support strtod.
45947         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
45948         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
45949         detect additional strtod bugs.
45950         * lib/stdlib.in.h (rpl_strtod): Add declarations.
45951         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
45952         bool where appropriate.  Parse 'inf' and 'nan'.
45953         * tests/test-strtod.c: New file.
45954         * modules/strtod (Depends-on): Add stdbool, stdlib.
45955         (configure.ac): Turn on module indicator.
45956         * modules/strtod-tests: New module.
45957
45958 2008-03-29  Eric Blake  <ebb9@byu.net>
45959
45960         Fix ftell on mingw.
45961         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
45962         * modules/ftell-tests (Depends-on): Add binary-io.
45963         * modules/ftello-tests (Depends-on): Likewise.
45964         * tests/test-ftell.c (main): Enhance test to cover behavior after
45965         ungetc.  Enforce binary mode.
45966         * tests/test-ftello.c (main): Likewise.
45967
45968         Pass test-freadseek on cygwin.
45969         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
45970         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
45971         ungetc buffer.
45972
45973         * tests/test-fflush2.c (main): Fix typo.
45974
45975 2008-03-29  Bruno Haible  <bruno@clisp.org>
45976
45977         * tests/test-fflush2.c (main): Temporarily disable the contents of
45978         this test.
45979         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
45980         Reported by Eric Blake.
45981
45982 2008-03-28  Simon Josefsson  <simon@josefsson.org>
45983
45984         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
45985         (GC_SHA224_DIGEST_SIZE): Add.
45986
45987         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
45988         (gc_hash_digest_length): Likewise.
45989         (gc_hash_buffer): Likewise.
45990
45991 2008-03-25  Bruno Haible  <bruno@clisp.org>
45992
45993         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
45994         detail which gettext release to use.
45995         Reported by Simon Josefsson.
45996
45997 2008-03-26  Jim Meyering  <meyering@redhat.com>
45998
45999         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
46000         * modules/gnumakefile (clean-GNUmakefile): Also, use
46001         test ... && ... || : syntax rather than if-then ... fi.
46002
46003         gnumakefile: Don't double-quote-expand $(VPATH) value.
46004         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
46005
46006 2008-03-24  Eric Blake  <ebb9@byu.net>
46007
46008         Alter GNUmakefile to install into top directory.
46009         * modules/maintainer-makefile: Split, and add dependency...
46010         * modules/gnumakefile: to this new module.
46011         * build-aux/GNUmakefile: Move...
46012         * top/GNUmakefile: ...here.
46013         * build-aux/maint.mk: Move...
46014         * top/maint.mk: ...here.
46015         * MODULES.html.sh (Support for maintaining...): Document new
46016         module.
46017
46018 2008-03-23  Bruno Haible  <bruno@clisp.org>
46019
46020         * gnulib-tool: New options --vc-files, --no-vc-files.
46021         (func_usage): Document them.
46022         (vc_files): New variable.
46023         (func_import): Consider vc_files.
46024         (func_create_testdir): Set vc_files to empty.
46025         Suggested by Jim Meyering and Karl Berry.
46026
46027 2008-03-23  Bruno Haible  <bruno@clisp.org>
46028
46029         Fix regex compilation error on HP-UX 11.
46030         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
46031         * modules/regex (Files): Add m4/mbstate_t.m4.
46032         Reported by Ton Voon <ton.voon@altinity.com>.
46033
46034 2008-03-23  Bruno Haible  <bruno@clisp.org>
46035
46036         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
46037
46038 2008-03-23  Eric Blake  <ebb9@byu.net>
46039             Bruno Haible  <bruno@clisp.org>
46040
46041         Install files from top/ in the destination directory.
46042         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
46043         augmentation also for the files from top/.
46044         (func_import, func_create_testdir): Rewrite file names:
46045         top/filename -> filename.
46046
46047 2008-03-23  Bruno Haible  <bruno@clisp.org>
46048
46049         Tweak "gnulib --version" output.
46050         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
46051
46052 2008-03-23  Bruno Haible  <bruno@clisp.org>
46053
46054         Tweak "gnulib --version" output.
46055         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
46056         rather than contents of ChangeLog, when possible.
46057
46058 2008-03-21  Eric Blake  <ebb9@byu.net>
46059
46060         More --version tweaks.
46061         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
46062         date of last ChangeLog entry.
46063
46064 2008-03-21  Jim Meyering  <meyering@redhat.com>
46065
46066         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
46067
46068 2008-03-20  Eric Blake  <ebb9@byu.net>
46069
46070         VPATH fix.
46071         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
46072
46073 2008-03-20  Simon Josefsson  <simon@josefsson.org>
46074
46075         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
46076         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
46077
46078 2008-03-20  Eric Blake  <ebb9@byu.net>
46079
46080         Sync GNUmakefile with coreutils.
46081         * build-aux/GNUmakefile (have-Makefile): Rename...
46082         (_have-Makefile): ...to this, for namespace consideration.
46083         (GNUmakefile.cfg): Include, if present.
46084         (_autoreconf): Define a default.
46085         (_is-dist-target): New rule for rebuilds to pick up intra-release
46086         version.
46087         (maint-cfg.mk): Rename...
46088         (cfg.mk): ...to this.
46089
46090 2008-03-18  Jim Meyering  <meyering@redhat.com>
46091
46092         New script and module: mktempd
46093         * MODULES.html.sh (maint+release support): Add mktempd.
46094         * build-aux/mktempd: New file.
46095         * modules/mktempd: New file.
46096
46097 2008-03-15  Jim Meyering  <meyering@redhat.com>
46098
46099         Undo last change.
46100         * lib/sha1.c, lib/md5.c: 63 != ~63.
46101         Reported by Andreas Schwab.
46102
46103         sha1.c, md5.c: Hoist a redundant expression.
46104         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
46105         "ctx->buflen" only once, before calling *_process_block.
46106         * lib/md5.c (md5_process_bytes): Likewise.
46107
46108 2008-03-14  Eric Blake  <ebb9@byu.net>
46109
46110         Bump copyright year in files generated by gnulib-tool.
46111         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
46112         gnulib-tool, rather than hard-coding it.
46113
46114         Fix 'gnulib-tool --version' output to work with git.
46115         * gnulib-tool (func_gnulib_dir): New function, extracted from...
46116         (startup): ...here.
46117         (func_version): Use it to invoke git-version-gen, rather than
46118         relying on CVS keyword expansion.  Modernize wording.
46119         (cvsdatestamp, last_checkin_date, version): Kill unused
46120         variables.
46121
46122 2008-03-12  Jim Meyering  <meyering@redhat.com>
46123
46124         Recognize optional cast of the argument to free.
46125         * build-aux/useless-if-before-free: Update regexps.
46126
46127         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
46128
46129 2008-03-11  Bruno Haible  <bruno@clisp.org>
46130
46131         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
46132         by a single package.
46133         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
46134         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
46135         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
46136         Reported by Sam Steingold <sds@gnu.org>.
46137
46138 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
46139
46140         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
46141         repositories.
46142
46143 2008-03-11  Bruno Haible  <bruno@clisp.org>
46144
46145         Avoid conflicts between local macro definitions.
46146         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
46147         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
46148
46149 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
46150             Bruno Haible  <bruno@clisp.org>
46151
46152         Make va_copy work with some version of xlc on AIX 5.1.
46153         * lib/stdarg.in.h: New file.
46154         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
46155         On AIX, use a <stdarg.h> file substitute.
46156         * modules/stdarg (Files): Add lib/stdarg.in.h.
46157         (Depends-on): Add include_next.
46158         (Makefile.am): Build a stdarg.h substitute if requested.
46159         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
46160
46161 2008-03-10  Bruno Haible  <bruno@clisp.org>
46162
46163         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
46164         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
46165         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
46166
46167 2008-03-10  Bruno Haible  <bruno@clisp.org>
46168
46169         * modules/stdlib (Depends-on): Add include_next, remove
46170         absolute-header.
46171
46172 2008-03-09  Bruno Haible  <bruno@clisp.org>
46173
46174         * lib/freadahead.h (freadahead): Document more precisely.
46175         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
46176         the sum of both buffer sizes.
46177         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
46178         * NEWS: Document the change.
46179
46180 2008-03-09  Bruno Haible  <bruno@clisp.org>
46181
46182         Extend freadptr to return also the buffer size.
46183         * lib/freadptr.h (freadptr): Add sizep argument.
46184         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
46185         (freadptr): Add sizep argument. Determine buffer size like freadahead
46186         does.
46187         * tests/test-freadptr.c: Don't include freadahead.h.
46188         (main): Adapt for new calling convention of freadptr.
46189         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
46190         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
46191         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
46192         tests/test-freadptr2.sh.
46193         (Depends): Remove freadahead.
46194         (TESTS): Add test-freadptr2.sh.
46195         (check_PROGRAMS): Add test-freadptr2.
46196
46197 2008-03-09  Bruno Haible  <bruno@clisp.org>
46198
46199         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
46200         Report and solution by Simon Josefsson.
46201
46202 2008-03-06  Bruno Haible  <bruno@clisp.org>
46203
46204         Make fflush after ungetc work on BSD platforms.
46205         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
46206         * tests/test-fflush2.c: New file.
46207         * tests/test-fflush2.sh: New file.
46208         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
46209         tests/test-fflush2.c.
46210         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
46211         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
46212
46213 2008-03-06  Eric Blake  <ebb9@byu.net>
46214
46215         Likewise for ftello.
46216         * modules/ftello (Dependencies): Add extensions.
46217         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
46218
46219 2008-03-06  Bruno Haible  <bruno@clisp.org>
46220
46221         * modules/fseeko (Dependencies): Add extensions.
46222         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
46223         Needed on glibc systems.
46224
46225 2008-03-06  Bruno Haible  <bruno@clisp.org>
46226
46227         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
46228         email address.
46229         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
46230
46231 2008-03-06  Bruno Haible  <bruno@clisp.org>
46232
46233         * users.txt: Add libgnupdf.
46234
46235 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
46236
46237         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
46238         (Header File Substitutes, Function Substitutes,
46239         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
46240         (Build robot for gnulib): Fix typo.
46241
46242 2008-03-06  Bruno Haible  <bruno@clisp.org>
46243
46244         * doc/gnulib-tool.texi (VCS Issues): Small updates.
46245         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
46246
46247 2008-03-06  Bruno Haible  <bruno@clisp.org>
46248
46249         * doc/func.texi: New file, extracted from doc/gnulib.texi.
46250         * doc/gnulib.texi: Include it.
46251
46252 2008-03-06  Simon Josefsson  <simon@josefsson.org>
46253
46254         * modules/func (License): Change license to unlimited; there was
46255         no LGPL parts in the module anyway.
46256
46257 2008-03-06  Simon Josefsson  <simon@josefsson.org>
46258
46259         * modules/__func__: Renamed to modules/func.
46260         * modules/__func__-tests: Renamed to modules/func-tests.
46261         * tests/test-__func__.c: Renamed to tests/test-func.c.
46262         * m4/__func__.m4: Renamed to m4/func.m4.
46263         * doc/gnulib.texi (__func__): Section renamed to func.
46264         Suggested by Eric Blake <ebb9@byu.net>.
46265
46266 2008-03-06  Simon Josefsson  <simon@josefsson.org>
46267
46268         * doc/gnulib.texi (__func__): Use C99 terminology when talking
46269         about __func__.  Make example self-contained.  Suggested by Eric
46270         Blake <ebb9@byu.net>.
46271
46272         * tests/test-__func__.c (main): Avoid extraneous () around __func.
46273         Suggested by Eric Blake <ebb9@byu.net>.
46274
46275 2008-03-06  Simon Josefsson  <simon@josefsson.org>
46276
46277         * modules/__func__: New file.
46278         * modules/__func__-tests: New file.
46279         * tests/test-__func__.c: New file.
46280         * m4/__func__.m4: New file.
46281         * doc/gnulib.texi (__func__): Document __func__ module.
46282
46283 2008-03-05  Simon Josefsson  <simon@josefsson.org>
46284
46285         * modules/byteswap (License): Re-license as LGPLv2+.
46286
46287 2008-03-05  Simon Josefsson  <simon@josefsson.org>
46288
46289         * doc/Makefile: Add pdf target.
46290
46291 2008-03-05  Simon Josefsson  <simon@josefsson.org>
46292
46293         * modules/inline (License): Use 'unlimited', since there are only
46294         *.m4 files in this module.
46295
46296 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
46297             Bruno Haible  <bruno@clisp.org>
46298
46299         Add support for HP C 7.1 on OpenVMS 8.3.
46300         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
46301
46302 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
46303
46304         Update VMS specifics.
46305         * lib/getopt.c [VMS]: Remove include of unixlib.h.
46306
46307 2008-03-02  Jim Meyering  <meyering@redhat.com>
46308
46309         Remove the last dependency on the "free" module.
46310         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
46311         Reported by Bob Proulx.
46312
46313         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
46314
46315         Remove useless "if" tests before free.  Deprecate "free" module.
46316         * doc/posix-functions/free.texi: Mention that this
46317         module is no longer useful.
46318         * modules/free (Notice): Say this module is obsolete.
46319         * modules/readutmp (Depends-on): Remove free.
46320         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
46321         * lib/putenv.c (putenv): Likewise.
46322         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
46323         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
46324         * tests/test-c-strcasestr.c (main): Likewise.
46325         * tests/test-c-strstr.c (main): Likewise.
46326         * tests/test-mbscasestr1.c (main): Likewise.
46327         * tests/test-mbscasestr2.c (main): Likewise.
46328         * tests/test-mbsstr1.c (main): Likewise.
46329         * tests/test-mbsstr2.c (main): Likewise.
46330         * tests/test-memmem.c (main): Likewise.
46331         * tests/test-strcasestr.c (main): Likewise.
46332         * tests/test-striconv.c (main): Likewise.
46333         * tests/test-striconveh.c (main): Likewise.
46334         * tests/test-striconveha.c (main): Likewise.
46335         * tests/test-strstr.c (main): Likewise.
46336
46337         * build-aux/git-version-gen: Adjust a comment and the Usage string.
46338
46339         bootstrap: sync from coreutils again
46340         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
46341
46342 2008-03-01  Jim Meyering  <meyering@redhat.com>
46343
46344         bootstrap: sync from coreutils
46345         * build-aux/bootstrap (update_po_files): Copy a .po file into place
46346         also when the target doesn't exist.
46347
46348 2008-03-01  Eric Blake  <ebb9@byu.net>
46349
46350         Fix bugs in last patch.
46351         * lib/memchr2.c (memchr2): Fix typo.
46352         * tests/test-memchr2.c: Test previous bug, and don't use GNU
46353         extension.
46354         Reported by Bruce Korb.
46355
46356         New module 'memchr2'.
46357         * modules/memchr2: New file.
46358         * modules/memchr2-tests: Likewise.
46359         * lib/memchr2.h: Likewise.
46360         * lib/memchr2.c: Likewise, based on memchr.c.
46361         * tests/test-memchr2.c: New test.
46362         * MODULES.html.sh (String handling): Add memchr2.
46363
46364 2008-02-29  Bruno Haible  <bruno@clisp.org>
46365
46366         * modules/freadseek-tests: New file.
46367         * tests/test-freadseek.sh: New file.
46368         * tests/test-freadseek.c: New file.
46369
46370         New module 'freadseek'.
46371         * modules/freadseek: New file.
46372         * lib/freadseek.h: New file.
46373         * lib/freadseek.c: New file.
46374         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
46375
46376 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
46377
46378         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
46379         wydawca.
46380
46381         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
46382         program_invocation_name and program_invocation_short_name are
46383         present.
46384
46385 2008-02-28  Bruno Haible  <bruno@clisp.org>
46386
46387         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
46388         * tests/test-freadptr.sh: Also test non-seekable stdin.
46389
46390 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
46391
46392         * build-aux/bootstrap (source_base, m4_base)
46393         (doc_base, tests_base): New variables.
46394         (gnulib_tool_options): Do not hardcode base directories, use
46395         the above variables instead.
46396
46397 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
46398
46399         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
46400
46401 2008-02-28  Bruno Haible  <bruno@clisp.org>
46402
46403         * modules/freadptr-tests: New file.
46404         * tests/test-freadptr.sh: New file.
46405         * tests/test-freadptr.c: New file.
46406
46407         New module 'freadptr'.
46408         * modules/freadptr: New file.
46409         * lib/freadptr.h: New file.
46410         * lib/freadptr.c: New file.
46411         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
46412
46413 2008-02-26  Karl Berry  <karl@freefriends.org>
46414
46415         Sync from Libtool:
46416         * libltdl/argz.c (argz_add, argz_count): New functions.
46417         * libltdl/argz.in.h: Declare them.
46418         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
46419
46420 2008-02-22  Bruno Haible  <bruno@clisp.org>
46421
46422         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
46423         is a pointer type.  Needed for HP-UX 10.
46424         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
46425         * doc/posix-functions/gmtime_r.texi: Likewise.
46426         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
46427
46428 2008-02-24  Bruno Haible  <bruno@clisp.org>
46429
46430         * modules/environ-tests: New file.
46431         * tests/test-environ.c: New file.
46432
46433         New module 'environ'.
46434         * modules/environ: New file.
46435         * lib/unistd.in.h (environ): New declaration.
46436         * m4/environ.m4: New file.
46437         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
46438         after use.
46439         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
46440         HAVE_DECL_ENVIRON.
46441         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
46442         HAVE_DECL_ENVIRON.
46443         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
46444         wrong claim that 'environ' is missing on some systems.
46445         * modules/execute (Depends-on): Add environ.
46446         * lib/execute.c (environ): Remove fallback declaration.
46447         * modules/pipe (Depends-on): Add environ.
46448         * lib/pipe.c (environ): Remove fallback declaration.
46449         * modules/setenv (Depends-on): Add environ.
46450         * lib/setenv.c (environ): Remove fallback declaration.
46451         * modules/unsetenv (Depends-on): Add environ.
46452         * lib/unsetenv.c (environ): Remove fallback declaration.
46453         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
46454         m4/environ.m4.
46455         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
46456         (gl_PREREQ_UNSETENV): Likewise.
46457
46458 2008-02-24  Bruno Haible  <bruno@clisp.org>
46459
46460         * doc/posix-functions/environ.texi: Document the MacOS X problem.
46461
46462 2008-02-20  Bob Proulx  <bob@proulx.com>
46463
46464         Enable use of older two part flavor 'git describe'.
46465         * build-aux/git-version-gen: If using the older two part flavor of
46466         git version then recreate the third part now present in the
46467         newer three part flavor of git describe.
46468
46469 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
46470
46471         * lib/fts.c (fts_build): Typo correction to comment.
46472
46473 2008-02-17  Bruno Haible  <bruno@clisp.org>
46474
46475         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
46476         generating no-op conflicts.
46477
46478 2008-02-17  Bruno Haible  <bruno@clisp.org>
46479
46480         Speed up by 10%.
46481         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
46482         result_entries, rather than an index-based loop.
46483
46484 2008-02-17  Bruno Haible  <bruno@clisp.org>
46485
46486         Speed up by 25%.
46487         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
46488         'hashcode_cached'.
46489         (entry_create): New function.
46490         (entry_hashcode): Use the cached hashcode if possible.
46491         (read_changelog_file, try_split_merged_entry): Use entry_create.
46492
46493 2008-02-17  Bruno Haible  <bruno@clisp.org>
46494
46495         Speed up from O(n^2) to O(n) for long ChangeLog files.
46496         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
46497         (read_changelog_file): Change implementation of entries_reversed list
46498         to rbtreehash.
46499         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
46500
46501 2008-02-17  Bruno Haible  <bruno@clisp.org>
46502
46503         New option --split-merged-entry.
46504         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
46505         (find_paragraph_end, try_split_merged_entry): New functions.
46506         (long_options): Add option --split-merged-entry.
46507         (usage): Document option --split-merged-entry.
46508         (main): Implement option --split-merged-entry.
46509         Reported by Eric Blake.
46510
46511 2008-02-17  Bruno Haible  <bruno@clisp.org>
46512
46513         * lib/git-merge-changelog.c: Include c-strstr.h.
46514         (main): Support the "git pull --rebase" situation.
46515         * modules/git-merge-changelog (Depends-on): Add c-strstr.
46516         Reported by Eric Blake.
46517
46518 2008-02-16  Eric Blake  <ebb9@byu.net>
46519
46520         Avoid doubling \ in common case of "c-maybe" quoting style.
46521         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
46522         eliding outer quotes.
46523         * lib/quotearg.h: Document this.
46524         * tests/test-quotearg.c (result_strings, inputs, results_g)
46525         (flag_results, locale_results): Test it by adding a new string to
46526         each test group.
46527         (compare_strings): Test new string.
46528
46529 2008-02-13  Eric Blake  <ebb9@byu.net>
46530
46531         Avoid trigraph quoting in default output.
46532         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
46533         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
46534         unless explicitly requested.
46535         * tests/test-quotearg.c (flag_results, main): Add additional tests.
46536
46537 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
46538
46539         Don't rely on signed integer overflowing to negative value.
46540         * lib/getugroups.c (getugroups): Include <limits.h>.
46541         Instead, compare against INT_MAX, and increment only if the test passes.
46542
46543 2008-02-13  Jim Meyering  <meyering@redhat.com>
46544         and Eric Blake  <ebb9@byu.net>
46545
46546         Avoid shadowing warning and compile errors on Linux.
46547         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
46548         forwarding macros on Linux.
46549         (dcgettext): Define a stub, for Linux.
46550         (results_g, main): Avoid warnings.
46551
46552 2008-02-12  Eric Blake  <ebb9@byu.net>
46553
46554         Silence warning in last patch.
46555         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
46556
46557         Quotearg part 4: add tests, fix c-maybe colon quoting.
46558         * lib/quotearg.h: Improve documentation.
46559         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
46560         escapes when adding outer quotes.  When quoting trigraphs, use
46561         valid C notation.  When quoting NUL, omit extra characters if next
46562         character is not digit.  Alter prototype.
46563         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
46564         callers.
46565         * modules/quotearg-tests: New module.
46566         * tests/test-quotearg.c: New test.
46567
46568 2008-02-07  Eric Blake  <ebb9@byu.net>
46569
46570         Quotearg part 3: add flag to control outer quote elision.
46571         * lib/quotearg.h (c_maybe_quoting_style): New style.
46572         (enum quoting_flags): Better documentation of flags.
46573         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
46574         c-maybe style.
46575         (quotearg_buffer_restyled): Handle new flag to elide outer
46576         quotes.
46577
46578         Quotearg part 2: add flag that can control NUL elision.
46579         * lib/quotearg.h (set_quoting_flags): New prototype.
46580         * lib/quotearg.c (struct quoting_options): Add flag field.
46581         (set_quoting_flags): New function.
46582         (quotearg_buffer_restyled): Add flags parameter.
46583         (quotearg_alloc_mem): Set the flag if length cannot be returned.
46584         (quotearg_n_options): Set the flag, since length cannot be
46585         returned.
46586         (quoting_options_from_style): Default flags correctly.
46587
46588         Quotearg part 1: more wrappers, restore quotearg_char state.
46589         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
46590         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
46591         (quotearg_colon_mem): New wrappers.
46592         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
46593         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
46594         functions.
46595         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
46596         (quotearg_colon_mem): New functions.
46597
46598 2008-02-11  Bruno Haible  <bruno@clisp.org>
46599
46600         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
46601         library in the current directory: it does not work with parallel make.
46602         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46603
46604 2008-02-11  Bruno Haible  <bruno@clisp.org>
46605
46606         * .gitattributes: New file.
46607
46608 2008-02-11  Jim Meyering  <meyering@redhat.com>
46609
46610         useless-if-before-free: Fix reversed exit values.
46611         * build-aux/useless-if-before-free: Use correct values
46612         for EXIT_MATCH and EXIT_NO_MATCH.
46613
46614         * build-aux/useless-if-before-free: Close stdout carefully.
46615
46616 2008-02-10  Bruno Haible  <bruno@clisp.org>
46617
46618         New module 'git-merge-changelog'.
46619         * modules/git-merge-changelog: New file.
46620         * lib/git-merge-changelog.c: New file.
46621
46622 2008-02-10  Jim Meyering  <meyering@redhat.com>
46623
46624         useless-if-before-free: New option: --list (-l).
46625
46626         useless-if-before-free: Don't exit immediately upon open failure.
46627         * build-aux/useless-if-before-free: Exit 2 for errors.
46628         Upon failure to open a file, don't exit immediately.
46629         Rather, just warn and continue with any remaining files.
46630
46631 2008-02-10  Bruno Haible  <bruno@clisp.org>
46632
46633         New abstract list operation 'node_set_value'.
46634         * lib/gl_list.h (gl_list_node_set_value): New function.
46635         (struct gl_list_implementation): New field node_set_value.
46636         * lib/gl_list.c (gl_list_node_set_value): New function.
46637         * lib/gl_array_list.c (gl_array_node_set_value): New function.
46638         (gl_array_list_implementation): Update.
46639         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
46640         (gl_carray_list_implementation): Update.
46641         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
46642         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
46643         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
46644         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
46645         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
46646         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
46647         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
46648         Update.
46649         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
46650         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
46651         (gl_sublist_list_implementation): Update.
46652
46653 2008-02-10  Bruno Haible  <bruno@clisp.org>
46654
46655         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
46656         Needed when ELEMENT is #defined to 'some_type *'.
46657
46658 2008-02-10  Jim Meyering  <meyering@redhat.com>
46659
46660         New script and module: useless-if-before-free
46661         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
46662         * build-aux/useless-if-before-free: New file.
46663         * modules/useless-if-before-free: New file.
46664
46665         * build-aux/gitlog-to-changelog: Use committer date, not author date.
46666
46667         xstrtol_error: Fix typo.
46668         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
46669         s/exit_failure/exit_status/.
46670
46671 2008-02-09  Jim Meyering  <meyering@redhat.com>
46672
46673         New script and module: gitlog-to-changelog
46674         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
46675         * modules/gitlog-to-changelog: New file.
46676         * build-aux/gitlog-to-changelog: New file.
46677
46678 2008-02-08  Jim Meyering  <meyering@redhat.com>
46679
46680         Avoid two "parameter unused" warnings.
46681         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
46682         Mark "st" as used.
46683
46684         Use "git COMMAND", not "git-COMMAND".
46685         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
46686         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
46687         * build-aux/git-version-gen: Use "git status", not "git-status".
46688
46689 2008-02-07  Bruno Haible  <bruno@clisp.org>
46690
46691         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
46692         Avoids a crash on Windows Vista.
46693         Reported by Adam Strzelecki <ono@java.pl> via
46694         Simon Josefsson <simon@josefsson.org>.
46695
46696 2008-02-06  Bruno Haible  <bruno@clisp.org>
46697
46698         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
46699         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
46700         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
46701         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
46702         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
46703         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46704         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
46705         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
46706         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46707         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46708         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46709         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46710         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46711         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46712         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46713         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
46714         left-adjust flag.
46715         * tests/test-snprintf-posix.h (test_function): Likewise.
46716         * tests/test-sprintf-posix.h (test_function): Likewise.
46717         * tests/test-vasprintf-posix.c (test_function): Likewise.
46718         * doc/posix-functions/fprintf.texi: Update.
46719         * doc/posix-functions/printf.texi: Update.
46720         * doc/posix-functions/snprintf.texi: Update.
46721         * doc/posix-functions/sprintf.texi: Update.
46722         * doc/posix-functions/vfprintf.texi: Update.
46723         * doc/posix-functions/vprintf.texi: Update.
46724         * doc/posix-functions/vsnprintf.texi: Update.
46725         * doc/posix-functions/vsprintf.texi: Update.
46726         Reported by Peter Fales <psfales@alcatel-lucent.com>.
46727
46728 2008-02-06  Bruno Haible  <bruno@clisp.org>
46729
46730         Fix bug introduced on 2008-01-26.
46731         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
46732
46733 2008-02-06  Bruno Haible  <bruno@clisp.org>
46734
46735         Fix bug introduced on 2007-06-10.
46736         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
46737         !NEED_PRINTF_FLAG_ZERO.
46738
46739 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
46740
46741         getloadavg: use libperfstat on AIX5
46742         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
46743
46744 2008-02-03  Bruno Haible  <bruno@clisp.org>
46745
46746         * lib/diffseq.h: Add comments about required #includes.
46747         Reported by Michael Biggs <gnulib@doubleplum.net>.
46748
46749 2008-02-01  Bruno Haible  <bruno@clisp.org>
46750
46751         * users.txt: Add gnuit.
46752
46753 2008-01-31  Bruno Haible  <bruno@clisp.org>
46754
46755         * lib/md4.c (set_uint32): Mark as inline.
46756         * lib/md5.c (set_uint32): Likewise.
46757         * lib/sha1.c (set_uint32): Likewise.
46758         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
46759         * m4/md5.m4 (gl_MD5): Likewise.
46760         * m4/sha1.m4 (gl_SHA1): Likewise.
46761
46762 2008-01-31  Jim Meyering  <meyering@redhat.com>
46763
46764         Use "sizeof VAR", rather than a literal "4".
46765         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
46766         * lib/md4.c (md4_read_ctx): Likewise.
46767         * lib/sha1.c (sha1_read_ctx): Likewise.
46768
46769 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46770
46771         * tests/test-sha1.c: New file, based on test-md5.c.
46772
46773         * modules/crypto/sha1-tests: New file.
46774
46775 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46776
46777         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
46778
46779 2008-01-31  Jim Meyering  <meyering@redhat.com>
46780
46781         Prefer "sizeof v" over the equivalent "4".
46782         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
46783         * lib/md5.c (set_uint32): Likewise.
46784         * lib/sha1.c (set_uint32): Likewise.
46785
46786 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46787
46788         * lib/sha1.c (set_uint32): Mark function as static.
46789
46790 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46791
46792         md2: clarify comments to say that alignment is not required.
46793         * lib/md2.h: Remove warning about alignment in comment.
46794         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
46795         never been required.
46796
46797 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46798
46799         md4: adapt alignment constraint fix from sha1.
46800         * lib/md4.c (set_uint32): New function, from sha1.c
46801         (md4_read_ctx): Use it.
46802         (md4_finish_ctx): Doc fix.
46803         * lib/md4.h: Doc fix.
46804
46805 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46806
46807         md5: adapt alignment constraint fix from sha1.
46808         * lib/md5.c (set_uint32): New function, from sha1.c
46809         (md5_read_ctx): Use it.
46810         (md5_finish_ctx): Doc fix.
46811         * lib/md5.h: Doc fix.
46812
46813 2008-01-30  Peter Palfrader  <weasel@debian.org>
46814
46815         sha1: remove the result buffer alignment constraint
46816         * lib/sha1.c (set_uint32): New function.
46817         (sha1_read_ctx): Rewrite to remove the result buffer alignment
46818         constraint.
46819         (sha1_finish_ctx): Remove comment warning about alignment constraint.
46820         * lib/sha1.h: Likewise.
46821
46822 2008-01-30  Andreas Schwab  <schwab@suse.de>
46823             Bruno Haible  <bruno@clisp.org>
46824
46825         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
46826         correct definition of LDBL_MIN_EXP.
46827
46828 2008-01-30  Karl Berry  <karl@gnu.org>
46829
46830         * config/srclist-update: try to preserve x bit on updates.
46831         * config/srclistvars.sh: update for karl.
46832
46833 2008-01-29  Jim Meyering  <meyering@redhat.com>
46834
46835         vasnprintf.c: Avoid warning about unused label
46836         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
46837         "overflow" label definition and associated code with the
46838         same cpp condition that guards the sole use of that label.
46839
46840 2008-01-26  Bruno Haible  <bruno@clisp.org>
46841
46842         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
46843         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
46844         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
46845         * lib/isnanl-nolibm.h (isnanl): Likewise.
46846         Reported by Paul Eggert <eggert@cs.ucla.edu>.
46847
46848 2008-01-26  Bruno Haible  <bruno@clisp.org>
46849
46850         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
46851         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
46852
46853 2008-01-26  Bruno Haible  <bruno@clisp.org>
46854
46855         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
46856         GCC >= 4.0 built-in.
46857         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
46858
46859 2008-01-26  Bruno Haible  <bruno@clisp.org>
46860
46861         Rename isnan, applicable to 'double' only, to isnand.
46862         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
46863         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
46864         (configure.ac): Update.
46865         (Include): Replace "isnan.h" with "isnand.h".
46866         * m4/isnand.m4: Renamed from m4/isnan.m4.
46867         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
46868         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
46869         instead of isnan.c.
46870         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
46871         instead of HAVE_ISNAN_IN_LIBC.
46872         (isnand): Renamed from isnan.
46873         * lib/isnand.c: New file.
46874         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
46875         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
46876         (Makefile.am): Update.
46877         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
46878         Include isnand.h instead of isnan.h.
46879         (main): Test isnand instead of isnan.
46880         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
46881         isnan-nolibm.
46882         * modules/frexp (Depends-on): Likewise.
46883         * modules/frexp-tests (Depends-on): Likewise.
46884         * modules/frexp-nolibm (Depends-on): Likewise.
46885         * modules/frexp-nolibm-tests (Depends-on): Likewise.
46886         * modules/isfinite (Depends-on): Likewise.
46887         * modules/round-tests (Depends-on): Likewise.
46888         * modules/signbit (Depends-on): Likewise.
46889         * modules/signbit-tests (Depends-on): Likewise.
46890         * modules/snprintf-posix (Depends-on): Likewise.
46891         * modules/sprintf-posix (Depends-on): Likewise.
46892         * modules/trunc-tests (Depends-on): Likewise.
46893         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
46894         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
46895         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
46896         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
46897         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
46898         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
46899         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
46900         * modules/vasnprintf-posix (Depends-on): Likewise.
46901         * modules/vasprintf-posix (Depends-on): Likewise.
46902         * modules/vfprintf-posix (Depends-on): Likewise.
46903         * modules/vsnprintf-posix (Depends-on): Likewise.
46904         * modules/vsprintf-posix (Depends-on): Likewise.
46905         * lib/frexp.c: Include isnand.h instead of isnan.h.
46906         (ISNAN): Set to isnand instead of isnan.
46907         * lib/isfinite.c: Include isnand.h instead of isnan.h.
46908         (gl_isfinited): Use isnand instead of isnan.
46909         * lib/signbitd.c: Include isnand.h instead of isnan.h.
46910         (gl_signbitd): Use isnand instead of isnan.
46911         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
46912         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
46913         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
46914         (main): Use isnand instead of isnan.
46915         * tests/test-round1.c: Include isnand.h.
46916         (main): Use isnand instead of isnan.
46917         * tests/test-round2.c: Include isnand.h instead of isnan.h.
46918         (ISNAN): Set to isnand instead of isnan.
46919         * tests/test-trunc1.c: Include isnand.h.
46920         (main): Use isnand instead of isnan.
46921         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
46922         (equal): Use isnand instead of isnan.
46923         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
46924         isnand-nolibm.
46925         * NEWS: Mention the change.
46926
46927 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
46928             Bruno Haible  <bruno@clisp.org>
46929
46930         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
46931         the GCC builtins for signbits are present and set
46932         REPLACE_SIGNBIT_USING_GCC if so.
46933         * lib/math.in.h (signbit): Define using GCC builtins if
46934         REPLACE_SIGNBIT_USING_GCC is set.
46935         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
46936         REPLACE_SIGNBIT_USING_GCC.
46937         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
46938
46939 2008-01-25  Jim Meyering  <meyering@redhat.com>
46940
46941         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
46942         * lib/poll.c: Include <config.h>, not "config.h".
46943         * tests/test-getaddrinfo.c: Likewise.
46944
46945 2008-01-25  Simon Josefsson  <simon@josefsson.org>
46946
46947         * modules/sockets-tests: New file.
46948
46949 2008-01-24  Simon Josefsson  <simon@josefsson.org>
46950
46951         * modules/sockets: New module, can be used to call WSA_Startup and
46952         WSA_Cleanup when needed.
46953
46954         * lib/sockets.h, lib/sockets.c: New files.
46955
46956         * m4/sockets.m4: New file.
46957
46958         * tests/test-sockets.c: New file.
46959
46960 2008-01-19  Bruno Haible  <bruno@clisp.org>
46961
46962         * doc/posix-headers: Renamed from doc/headers.
46963         * doc/posix-functions: Renamed from doc/functions.
46964         * doc/gnulib.texi: Update.
46965
46966 2008-01-19  Bruno Haible  <bruno@clisp.org>
46967
46968         * doc/glibc-functions/strcasestr.texi: Include contents of
46969         doc/functions/strcasestr.texi, fixing the list of platforms.
46970         * doc/functions/strcasestr.texi: Remove file.
46971
46972 2008-01-19  Bruno Haible  <bruno@clisp.org>
46973
46974         * doc/glibc-functions/memmem.texi: Include contents of
46975         doc/functions/memmem.texi.
46976         * doc/functions/memmem.texi: Remove file.
46977
46978 2008-01-18  Bruno Haible  <bruno@clisp.org>
46979
46980         * doc/glibc-functions/*.texi: New files.
46981         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
46982         to use the new files.
46983
46984 2008-01-17  Bruno Haible  <bruno@clisp.org>
46985
46986         * tests/test-gethostname.c (main): Fix printf statement.
46987
46988 2008-01-17  Simon Josefsson  <simon@josefsson.org>
46989
46990         * modules/gethostname-tests: New file.
46991
46992         * tests/test-gethostname.c: New file.
46993
46994 2008-01-17  Simon Josefsson  <simon@josefsson.org>
46995
46996         * lib/gethostname.c: Include string.h unconditionally, strncpy is
46997         used by the UNAME case.  Reported by Bruno Haible
46998         <bruno@clisp.org>.
46999
47000 2008-01-17  Eric Blake  <ebb9@byu.net>
47001
47002         Convert c-strcasestr to be more efficient.
47003         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
47004         (Depends-on): Add c-strcase, remove malloca, strnlen.
47005         * tests/test-c-strcasestr.c (main): Enhance test.
47006         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
47007
47008 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
47009
47010         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
47011         Use it in creating po/Makevars.
47012
47013 2008-01-15  Simon Josefsson  <simon@josefsson.org>
47014
47015         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
47016         Applications that requires it should initialize libgcrypt
47017         manually.
47018
47019 2008-01-16  Simon Josefsson  <simon@josefsson.org>
47020
47021         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
47022
47023 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
47024
47025         Fix problem with getdate on mingw32 reported by Simon Josefsson
47026         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
47027         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
47028         tzname", when deciding whether to declare tzname.
47029         * lib/strftime.c (tzname): Likewise.
47030
47031 2008-01-15  Bruno Haible  <bruno@clisp.org>
47032
47033         Work around a MacOS X 10.5 bug in frexpl().
47034         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
47035         * doc/functions/frexpl.texi: Document the bug.
47036         Reported by Elias Pipping <pipping@gentoo.org>.
47037
47038 2008-01-14  Eric Blake  <ebb9@byu.net>
47039
47040         Touch up previous patch.
47041         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
47042         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
47043
47044         Convert strcasestr module to use Two-Way algorithm.
47045         * modules/strcasestr-simple: New module, based on the old
47046         strcasestr, but with Two-Way rather than KMP.
47047         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
47048         * lib/string.in.h (rpl_strcasestr): Declare.
47049         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
47050         performance.
47051         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
47052         * modules/string (Makefile.am): Support strcasestr.
47053         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
47054         * modules/strcasestr-tests (Depends-on): Check for alarm.
47055         * tests/test-strcasestr.c: Augment test.
47056         * lib/str-two-way.h: Clean up stray macro.
47057         * NEWS: Document new module.
47058         * MODULES.html.sh (string handling): Likewise.
47059         * doc/functions/strcasestr.texi: New file.
47060         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
47061         here, since it is not a POSIX function.
47062
47063 2008-01-14  Colin Watson  <cjwatson@debian.org>
47064             Bruno Haible  <bruno@clisp.org>
47065
47066         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
47067         works fine; if not, set REPLACE_STRSIGNAL.
47068         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
47069         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
47070         REPLACE_STRSIGNAL.
47071         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
47072         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
47073         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
47074
47075 2008-01-14  Bruno Haible  <bruno@clisp.org>
47076
47077         * modules/strsignal (Include): Change to <string.h>.
47078
47079 2008-01-14  Colin Watson  <cjwatson@debian.org>
47080
47081         * modules/argp (Notice): Add a notice recommending to change
47082         XGETTEXT_OPTIONS.
47083         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
47084
47085 2008-01-13  Colin Watson  <cjwatson@debian.org>
47086
47087         * modules/strsignal-tests: New file.
47088         * tests/test-strsignal.c: New file.
47089
47090         * lib/strsignal.c: New file, from glibc with modifications.
47091         * lib/siglist.h: New file, from glibc with modifications.
47092         * lib/string.in.h (strsignal): New declaration.
47093         * m4/strsignal.m4: New file.
47094         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
47095         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
47096         * modules/strsignal: New file.
47097         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
47098         HAVE_DECL_STRSIGNAL.
47099
47100 2008-01-13  Bruno Haible  <bruno@clisp.org>
47101
47102         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
47103         locale encoding is not ASCII. Needed for OpenBSD 4.0.
47104         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
47105         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
47106
47107 2008-01-13  Bruno Haible  <bruno@clisp.org>
47108
47109         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
47110         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
47111         * lib/argp.h (__attribute__): Likewise.
47112         * lib/c-stack.c (__attribute__): Likewise.
47113         * lib/error.h (__attribute__): Likewise.
47114         * lib/fts.c (__attribute__): Likewise.
47115         * lib/openat.h (__attribute__): Likewise.
47116         * lib/stdio.in.h (__attribute__): Likewise.
47117         * lib/string.in.h (__attribute__): Likewise.
47118         * lib/utimens.c (__attribute__): Likewise.
47119         * lib/vasnprintf.h (__attribute__): Likewise.
47120         * lib/xalloc.h (__attribute__): Likewise.
47121         * lib/xprintf.h (__attribute__): Likewise.
47122         * lib/xstrtol.h (__attribute__): Likewise.
47123         * lib/xvasprintf.h (__attribute__): Likewise.
47124
47125 2008-01-12  Bruno Haible  <bruno@clisp.org>
47126
47127         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
47128         * doc/glibc-headers/a.out.texi: New file.
47129         * doc/glibc-headers/aliases.texi: New file.
47130         * doc/glibc-headers/alloca.texi: New file.
47131         * doc/glibc-headers/ar.texi: New file.
47132         * doc/glibc-headers/argp.texi: New file.
47133         * doc/glibc-headers/argz.texi: New file.
47134         * doc/glibc-headers/byteswap.texi: New file.
47135         * doc/glibc-headers/crypt.texi: New file.
47136         * doc/glibc-headers/endian.texi: New file.
47137         * doc/glibc-headers/envz.texi: New file.
47138         * doc/glibc-headers/err.texi: New file.
47139         * doc/glibc-headers/error.texi: New file.
47140         * doc/glibc-headers/execinfo.texi: New file.
47141         * doc/glibc-headers/fpu_control.texi: New file.
47142         * doc/glibc-headers/fstab.texi: New file.
47143         * doc/glibc-headers/fts.texi: New file.
47144         * doc/glibc-headers/getopt.texi: New file.
47145         * doc/glibc-headers/ieee754.texi: New file.
47146         * doc/glibc-headers/ifaddrs.texi: New file.
47147         * doc/glibc-headers/libintl.texi: New file.
47148         * doc/glibc-headers/mcheck.texi: New file.
47149         * doc/glibc-headers/mntent.texi: New file.
47150         * doc/glibc-headers/obstack.texi: New file.
47151         * doc/glibc-headers/paths.texi: New file.
47152         * doc/glibc-headers/printf.texi: New file.
47153         * doc/glibc-headers/pty.texi: New file.
47154         * doc/glibc-headers/resolv.texi: New file.
47155         * doc/glibc-headers/shadow.texi: New file.
47156         * doc/glibc-headers/sysexits.texi: New file.
47157         * doc/glibc-headers/ttyent.texi: New file.
47158
47159 2008-01-12  Jim Meyering  <meyering@redhat.com>
47160
47161         announce-gen: emit Gnulib's git-based version string.
47162         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
47163         New option --gnulib-version=V, where V is expected to be
47164         the output of running git describe in the gnulib directory.
47165         (get_tool_versions): Request feedback on xdelta.  I suspect it's
47166         not useful, and plan to stop publishing an xdelta file with each
47167         coreutils release.
47168
47169         * build-aux/announce-gen: Also check for lzma-compressed files.
47170
47171 2008-01-11  Bruno Haible  <bruno@clisp.org>
47172
47173         * tests/test-memmem.c (main): Increase maximum allowed time.
47174         * tests/test-strstr.c (main): Likewise.
47175
47176 2008-01-11  Bruno Haible  <bruno@clisp.org>
47177
47178         * doc/functions/memmem.texi: Add more precisions about platforms.
47179         * doc/functions/strstr.texi: Likewise.
47180
47181 2008-01-10  Eric Blake  <ebb9@byu.net>
47182
47183         * m4/strstr.m4: Delete cruft from copy-n-paste.
47184         Reported by Bruno Haible.
47185
47186 2008-01-10  Bruno Haible  <bruno@clisp.org>
47187
47188         Make c-strstr rely on strstr.
47189         * lib/c-strstr.c: Don't include str-kmp.h.
47190         (c_strstr): Define in terms of strstr.
47191         * modules/c-strstr (Files): Remove lib/str-kmp.h.
47192         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
47193
47194 2008-01-10  Bruno Haible  <bruno@clisp.org>
47195
47196         * doc/gnulib.texi (String Functions in C Locale): New section.
47197         * doc/c-ctype.texi: New file.
47198         * doc/c-strcase.texi: New file.
47199         * doc/c-strcaseeq.texi: New file.
47200         * doc/c-strcasestr.texi: New file.
47201         * doc/c-strstr.texi: New file.
47202         * doc/c-strtod.texi: New file.
47203         * doc/c-strtold.texi: New file.
47204
47205 2008-01-10  Eric Blake  <ebb9@byu.net>
47206
47207         * lib/relocatable.h: Fix a comment.
47208
47209 2008-01-10  Eric Blake  <ebb9@byu.net>
47210
47211         Share two-way algorithm.
47212         * lib/str-two-way.h: New file, merged from...
47213         * lib/memmem.c: ...here...
47214         * lib/strstr.c: ...and here.
47215         * modules/memmem (Files): Use it.
47216         * modules/strstr (Files): Likewise.
47217
47218         Avoid quadratic strstr implementations.
47219         * lib/strstr.c: New file.
47220         * m4/strstr.m4: Likewise.
47221         * modules/strstr: Likewise.
47222         * modules/strstr-tests: Likewise.
47223         * tests/test-strstr.c: Likewise.
47224         * lib/string.in.h (rpl_strstr): Declare.
47225         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
47226         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
47227         * modules/string (Makefile.am): Likewise.
47228         * MODULES.html.sh (string handling): Mention new module.
47229         * doc/functions/strstr.texi (strstr): Document the bug.
47230
47231 2008-01-10  Bruno Haible  <bruno@clisp.org>
47232
47233         * lib/relocatable.h (relocate): State whether result is freshly
47234         allocated or not.
47235         * lib/relocatable.c (relocate): Return a freshly allocated string
47236         instead of a pointer to a privately held string.
47237         Reported by Sylvain Beucler <beuc@gnu.org>.
47238
47239 2008-01-10  Colin Watson  <cjwatson@debian.org>
47240
47241         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
47242         s/S_ISNLK/S_ISLNK/.
47243
47244 2008-01-09  Bruno Haible  <bruno@clisp.org>
47245
47246         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
47247         and other files.
47248         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
47249         if it's only a guess.
47250         * modules/memmem: Simplify by depending on memmem-simple.
47251
47252 2008-01-09  Bruno Haible  <bruno@clisp.org>
47253
47254         Work around OpenBSD 4.0 tdelete() bug.
47255         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
47256         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
47257         macros and don't redefine the enum values.
47258         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
47259         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
47260         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
47261
47262 2008-01-09  Bruno Haible  <bruno@clisp.org>
47263
47264         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
47265         (main): Don't perform the tests if setlocale did not install a UTF-8
47266         locale. Needed on OpenBSD 4.0.
47267         * modules/wcwidth-tests (Depends-on): Add localcharset.
47268
47269 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
47270
47271         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
47272         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
47273         * NEWS: announce this.
47274         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
47275
47276 2008-01-09  Simon Josefsson  <simon@josefsson.org>
47277         and Eric Blake  <ebb9@byu.net>
47278
47279         Add memmem-simple module.
47280         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
47281         (gl_FUNC_MEMMEM): Separate performance from presence checks.
47282         * modules/memmem-simple: New file.
47283         * modules/memmem (Description): Tweak.
47284         * MODULES.html.sh (string handling): Mention new module.
47285         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
47286         addressed by memmem-simple.
47287         * NEWS: Document the difference.
47288
47289 2008-01-09  Eric Blake  <ebb9@byu.net>
47290
47291         Give gcc some memmem optimization hints.
47292         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
47293         (strcasestr): Declare as pure.
47294         * modules/memmem (Maintainer): Claim my implementation.
47295
47296 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47297
47298         Support AIX 6.1 and higher.
47299         * build-aux/config.libpath: Likewise.
47300         * build-aux/config.rpath: Likewise.
47301
47302 2008-01-08  Jim Meyering  <meyering@redhat.com>
47303             Bruno Haible  <bruno@clisp.org>
47304
47305         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
47306         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
47307         Reported by Peter Fales in
47308         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
47309
47310 2008-01-08  Bruno Haible  <bruno@clisp.org>
47311
47312         * modules/unictype/category-of (Depends-on): Add
47313         unictype/category-none.
47314         * modules/unictype/category-and-tests (Depends-on): Add
47315         unictype/category-{L,N,Lu,Nd}.
47316         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
47317         * modules/unictype/category-or-tests (Depends-on): Add
47318         unictype/category-{L,N}.
47319         * modules/unictype/category-name-tests (Depends-on): Add
47320         unictype/category-{Z,Nl}.
47321         Reported by Simon Josefsson.
47322
47323 2008-01-08  Bruno Haible  <bruno@clisp.org>
47324
47325         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
47326         convention better.
47327         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
47328         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
47329         Reported by Peter Miller <millerp@canb.auug.org.au>.
47330
47331 2008-01-08  Eric Blake  <ebb9@byu.net>
47332
47333         Rewrite memmem to guarantee linear complexity without malloc.
47334         * lib/memmem.c (memmem): Use Two-Way rather than
47335         Knuth-Morris-Pratt, to allow O(1) space usage.
47336         (critical_factorization, two_way_short_needle)
47337         (two_way_long_needle): New functions.
47338         (knuth_morris_pratt): Delete.
47339         * modules/memmem (Depends-on): No longer need malloca or stdbool.
47340         Add stdint.
47341         * tests/test-memmem.c (main): Add tests for periodic needle and
47342         sublinear performance.
47343         * doc/functions/memmem.texi (memmem): Document other deficiencies
47344         in cygwin and older glibc.
47345
47346 2008-01-08  Bruno Haible  <bruno@clisp.org>
47347
47348         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
47349         augmentation.
47350
47351 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
47352
47353         Add a configure time option: --disable-acl.
47354         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
47355         AC_ARG_ENABLE(acl).
47356
47357 2008-01-06  Simon Josefsson  <simon@josefsson.org>
47358
47359         * tests/test-localename.c: Don't include obsolete "setenv.h".
47360
47361         * modules/localename-tests (Depends-on): Need unsetenv.
47362
47363 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47364
47365         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
47366
47367 2008-01-06  Colin Watson  <cjwatson@debian.org>
47368
47369         * users.txt: Add man-db.
47370
47371 2008-01-07  Bruno Haible  <bruno@clisp.org>
47372
47373         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
47374         previous section name.
47375
47376 2008-01-07  Bruno Haible  <bruno@clisp.org>
47377
47378         * lib/progname.c (set_program_name): Don't strip off a leading
47379         "lt-" prefix outside a .libs directory.
47380         Suggested by Paul Eggert.
47381
47382 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
47383             Bruno Haible  <bruno@clisp.org>
47384
47385         Improve memory cleanup in 'relocatable' module.
47386         * lib/relocatable.h (compute_curr_prefix): Change return type to
47387         'char *'.
47388         * lib/relocatable.c (compute_curr_prefix): Change return type to
47389         'char *'. Free curr_installdir after use.
47390         (relocate): Free curr_prefix_better after use.
47391         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
47392
47393 2008-01-01  Bruno Haible  <bruno@clisp.org>
47394
47395         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
47396         failure on older glibc systems.
47397         Reported by Peter Fales <psfales@alcatel-lucent.com>.
47398
47399 2008-01-05  Eric Blake  <ebb9@byu.net>
47400
47401         Avoid quadratic system memmem.
47402         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
47403         Reported by Ralf Wildenhues.
47404
47405         Fix memmem test for mingw.
47406         * modules/memmem-tests (configure.ac): Check for alarm.
47407         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
47408         it.
47409         * doc/functions/memmem.texi: New file.
47410         * doc/gnulib.texi (Function Substitutes): Add memmem.
47411         Reported by Bruno Haible.
47412
47413 2008-01-04  Bruno Haible  <bruno@clisp.org>
47414
47415         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
47416         Require gl_HEADER_STRINGS_H_DEFAULTS, not
47417         gl_HEADER_STRING_H_DEFAULTS.
47418
47419 2008-01-04  Eric Blake  <ebb9@byu.net>
47420
47421         Shorten duration of memmem test.
47422         * tests/test-memmem.c (main): Use alarm to declare failure if test
47423         is taking too long.
47424         Reported by Ralf Wildenhues.
47425
47426 2007-12-21  Simon Josefsson  <simon@josefsson.org>
47427
47428         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
47429         string, needed by strerror.
47430
47431 2008-01-03  Colin Watson  <cjwatson@debian.org>
47432             Bruno Haible  <bruno@clisp.org>
47433
47434         * doc/gnulib-tool.texi (Localization): New section.
47435
47436 2008-01-02  Bruno Haible  <bruno@clisp.org>
47437
47438         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
47439         variables to 'unsigned char *' type.
47440         Reported by Paul Eggert.
47441
47442 2008-01-02  Jim Meyering  <jim@meyering.net>
47443
47444         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
47445
47446 2007-12-31  Jim Meyering  <jim@meyering.net>
47447
47448         Avoid use of private FTS type name.
47449         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
47450
47451 2007-12-30  Karl Berry  <karl@gnu.org>
47452
47453         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
47454         work around defect in Texinfo and/or the standalone Info browser.
47455
47456 2007-12-30  Bruno Haible  <bruno@clisp.org>
47457
47458         Unify 5 copies of the KMP code.
47459         * lib/str-kmp.h: New file.
47460         * lib/c-strcasestr.c: Include str-kmp.h.
47461         (knuth_morris_pratt): Remove function.
47462         (c_strcasestr): Update.
47463         * lib/c-strstr.c: Include str-kmp.h.
47464         (knuth_morris_pratt): Remove function.
47465         (c_strcasestr): Update.
47466         * lib/mbscasestr.c: Include str-kmp.h.
47467         (knuth_morris_pratt_unibyte): Remove function.
47468         * lib/mbsstr.c: Include str-kmp.h.
47469         (knuth_morris_pratt_unibyte): Remove function.
47470         * lib/strcasestr.c: Include str-kmp.h.
47471         (knuth_morris_pratt): Remove function.
47472         (strcasestr): Update.
47473         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
47474         * modules/c-strstr (Files): Likewise.
47475         * modules/mbscasestr (Files): Likewise.
47476         * modules/mbsstr (Files): Likewise.
47477         * modules/strcasestr (Files): Likewise.
47478         Suggested by Paul Eggert.
47479
47480 2007-12-30  Bruno Haible  <bruno@clisp.org>
47481
47482         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
47483         defined.
47484
47485 2007-12-30  Bruno Haible  <bruno@clisp.org>
47486
47487         * lib/xmalloca.h: Include xalloc.h.
47488         (xnmalloca): New macro.
47489
47490 2007-12-30  Bruno Haible  <bruno@clisp.org>
47491
47492         * lib/malloca.h (nmalloca): New macro.
47493         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
47494         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
47495         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
47496         knuth_morris_pratt_multibyte): Likewise.
47497         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
47498         knuth_morris_pratt_multibyte): Likewise.
47499         * lib/memmem.c (knuth_morris_pratt): Likewise.
47500         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
47501
47502 2007-12-25  Bruno Haible  <bruno@clisp.org>
47503
47504         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
47505         * lib/glob.c: Don't include openat.h.
47506         (link_exists2_p): Add back the code that deals with the
47507         !GLOB_ALTDIRFUNC case.
47508         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
47509         let it do the filename concatenation.
47510         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
47511         * modules/glob (Depends-on): Remove openat.
47512
47513 2007-12-31  Bruno Haible  <bruno@clisp.org>
47514
47515         * modules/dirfd (License): Change to LGPLv2+.
47516         Approved by Jim Meyering.
47517
47518 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
47519
47520         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
47521         when multiplying M by sizeof (size_t).
47522
47523 2007-12-10  Martin Lambers  <marlam@marlam.de>
47524
47525         Override getpagesize on mingw.
47526         * lib/getpagesize.c: New file.
47527         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
47528         * modules/getpagesize (Files): Add lib/getpagesize.c.
47529         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
47530         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47531         REPLACE_GETPAGESIZE.
47532         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
47533
47534 2007-12-25  Bruno Haible  <bruno@clisp.org>
47535
47536         * modules/localcharset (Notice): New field.
47537         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
47538         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
47539
47540 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
47541             Bruno Haible  <bruno@clisp.org>
47542
47543         Avoid using the syntax symbol() in formatted documentation.
47544         * MODULES.html.sh (func_module): When replacing symbol() with a
47545         hyperlink, remove the parentheses. Show an error if some remain.
47546         Recognize and render the '...' syntax.
47547         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
47548         Rework. Add paragraph about GCC's inlining.
47549         * doc/alloca.texi: Likewise.
47550         * doc/error.texi: Remove parentheses from symbol reference.
47551         * doc/gnulib-intro.texi: Likewise.
47552         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
47553         * modules/fnmatch (Description): Reword to say "the ... function".
47554         * modules/full-read (Description): Likewise.
47555         * modules/full-write (Description): Likewise.
47556         * modules/safe-read (Description): Likewise.
47557         * modules/safe-write (Description): Likewise.
47558         * modules/strchrnul (Description): Likewise.
47559         * modules/trim (Description): Likewise.
47560         * modules/error (Description): Remove parentheses from symbol
47561         references.
47562         * modules/verror (Description): Likewise.
47563         Reported by Karl Berry.
47564
47565 2007-12-25  Bruno Haible  <bruno@clisp.org>
47566
47567         Fixup after 2007-10-16 commit.
47568         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
47569
47570 2007-12-24  Bruno Haible  <bruno@clisp.org>
47571
47572         Make --enable-relocatable work with DESTDIR.
47573         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
47574         to compute installdir from destprog.
47575         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
47576         also set the RELOC_DESTDIR variable.
47577         Reported by Левашев Иван <octagram@bluebottle.com>.
47578
47579 2007-12-24  Bruno Haible  <bruno@clisp.org>
47580
47581         Fix link error due to xalloc_die().
47582         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
47583         of xreadlink.
47584         * lib/relocwrapper.c: Update comments.
47585         * build-aux/install-reloc: Remove xreadlink.c from file list.
47586         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
47587         xreadlink.c.
47588         Reported by Левашев Иван <octagram@bluebottle.com>.
47589
47590 2007-12-24  Bruno Haible  <bruno@clisp.org>
47591
47592         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
47593         * lib/setenv.h: Remove file.
47594         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
47595         lib/setenv.h.
47596         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
47597         (Depends-on): Add stdlib.
47598         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
47599         gl_FUNC_UNSETENV.
47600         (Include): Replace setenv.h with <stdlib.h>.
47601         * modules/unsetenv: New file.
47602         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
47603         * lib/unsetenv.c: Include <stdlib.h> first.
47604         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
47605         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
47606         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
47607         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
47608         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
47609         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
47610         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
47611         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
47612         * doc/functions/unsetenv.texi: Update.
47613         * modules/xsetenv (Depends-on): Add unsetenv.
47614         * modules/getdate (Depends-on): Likewise.
47615         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
47616         * lib/xsetenv.c: Don't include setenv.h.
47617         * lib/getdate.y: Likewise.
47618         * lib/relocwrapper.c: Likewise.
47619         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
47620         (Depends-on): Add stdlib.
47621         * NEWS: Mention the changes.
47622         Reported by Левашев Иван <octagram@bluebottle.com>.
47623
47624 2007-12-23  Bruno Haible  <bruno@clisp.org>
47625
47626         * lib/memmem.c (memmem): Use lowercase variable names. Tab
47627         indentation.
47628
47629 2007-12-23  Bruno Haible  <bruno@clisp.org>
47630
47631         * lib/c-strcasestr.c: Add more comments.
47632         * lib/c-strstr.c: Likewise.
47633         * lib/mbscasestr.c: Likewise.
47634         * lib/mbsstr.c: Likewise.
47635         * lib/strcasestr.c: Likewise.
47636         * lib/memmem.c: Likewise.
47637
47638 2007-12-23  Bruno Haible  <bruno@clisp.org>
47639
47640         * tests/test-memmem.c: Include <string.h> first.
47641
47642 2007-12-22  Bruno Haible  <bruno@clisp.org>
47643
47644         * gnulib-tool (func_create_testdir): Change $auxdir while generating
47645         the contents of $testsbase.
47646         Reported by Ralf Wildenhues.
47647
47648 2007-12-22  Bruno Haible  <bruno@clisp.org>
47649
47650         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
47651         two variables local_ldadd_before, local_ldadd_last.
47652
47653 2007-12-20  Eric Blake  <ebb9@byu.net>
47654
47655         Work around circular library issue when cross-compiling.
47656         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
47657         that progname.o does not need to pull in rpl_memcmp.
47658
47659 2007-12-19  Eric Blake  <ebb9@byu.net>
47660
47661         Fix memmem to avoid O(n^2) worst-case complexity.
47662         * lib/memmem.c (knuth_morris_pratt): New function.
47663         (memmem): Use it if first few naive iterations fail.
47664         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
47665         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
47666         * modules/memchr (License): Likewise.
47667         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
47668         malloca.
47669         * tests/test-memmem.c: Rewrite, borrowing ideas from
47670         test-mbsstr1.c; the old version wouldn't even compile!
47671         * modules/memmem-tests: New file.
47672         * lib/string.in.h (rpl_memmem): Add declaration.
47673         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
47674         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
47675         REPLACE_MEMMEM.
47676
47677 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
47678
47679         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
47680         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
47681         before any system include files, and undef after them all.  This
47682         should fix a problem on VMS reported by John E. Malmberg in
47683         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
47684
47685 2007-12-17  Eric Blake  <ebb9@byu.net>
47686
47687         Revert addition of verify, for BSD/OS.
47688         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
47689         can't handle large files, for the sake of obsolete platforms.
47690         * modules/fseeko (Depends-on): Remove verify.
47691         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
47692         * doc/functions/ftello.texi (ftello): Likewise.
47693         * doc/functions/fgetpos.texi (fgetpos): Likewise.
47694         Reported by Larry Jones.
47695
47696 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
47697
47698         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
47699         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
47700
47701 2007-12-17  Jim Meyering  <meyering@redhat.com>
47702
47703         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
47704         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
47705         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
47706         * modules/getcwd (Depends-on): Add openat.
47707         Reported by Petr Salinger.
47708
47709 2007-12-17  Bruno Haible  <bruno@clisp.org>
47710
47711         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
47712         avoid a segmentation fault of the configure test on x86_64 systems.
47713
47714 2007-12-15  Jim Meyering  <meyering@redhat.com>
47715
47716         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
47717
47718 2007-12-13  Eric Blake  <ebb9@byu.net>
47719
47720         Another fseek test.
47721         * tests/test-fseek.c (main): Also test ungetc handling.
47722         * tests/test-fseeko.c (main): Likewise.
47723         * modules/fseeko (Depends-on): Add verify.
47724         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
47725         large.
47726         Reported by Larry Jones.
47727
47728         Fix fseeko on mingw.
47729         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
47730         seek.
47731
47732         Beef up fseek tests.
47733         * tests/test-fseek.c (main): Also test eof handling.
47734         * tests/test-fseeko.c (main): Likewise.
47735         Reported by Larry Jones.
47736
47737 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
47738
47739         Fix fseeko on BSD-based platforms.
47740         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
47741         successful seek.
47742
47743 2007-12-12  Eric Blake  <ebb9@byu.net>
47744
47745         Allow circular dependency of separate libtests.a
47746         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
47747         when use_libtests.
47748
47749 2007-12-11  Eric Blake  <ebb9@byu.net>
47750
47751         Fix bug with -0.0L in previous patch.
47752         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
47753         * tests/test-isnan.c (main): Also test on zeroes.
47754         * tests/test-isnanf.c (main): Likewise.
47755         * tests/test-isnanl.h (main): Likewise.
47756
47757         Detect pseudo-denormals on x86 even when cross-compiling.
47758         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
47759         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
47760         invalid bit patterns that happen to satisfy ==.
47761
47762         Avoid link failures with separate libtests.a.
47763         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
47764         last, to satisfy circular dependencies.
47765
47766 2007-12-11  Eric Blake  <ebb9@byu.net>
47767         and Bruno Haible  <bruno@clisp.org>
47768
47769         Fix OpenBSD 4.0 <float.h> handling of long double.
47770         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
47771         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
47772         * doc/headers/float.texi (float.h): Document OpenBSD bug.
47773
47774 2007-12-11  Jim Meyering  <meyering@redhat.com>
47775
47776         * users.txt: Add libvirt.
47777
47778         Support versions of autoconf prior to 2.59c.
47779         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
47780         if it is not already defined.
47781
47782 2007-12-09  Bruno Haible  <bruno@clisp.org>
47783
47784         Let 'gnulib-tool --import' collect sources needed for the tests in
47785         tests/ rather than in lib/.
47786         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
47787         argument. If true, add rules to generate libtests.a, and put libtests.a
47788         into $(LDADD). Consider source files in subdirectories and set
47789         uses_subdirs.
47790         (func_emit_initmacro_start, func_emit_initmacro_end,
47791         func_emit_initmacro_done): Pass all arguments explicitly.
47792         (func_import): Determine two module lists main_modules,
47793         testsrelated_modules. Determine use_libtests. Determine two variables
47794         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
47795         instead of just sed_transform_lib_file. Determine two variables
47796         main_files and testsrelated_files. Compute 'files' as the union of
47797         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
47798         func_add_or_update. In the generated gnulib-comp.m4, collect the
47799         object files for tests/ in different variables than those for lib/.
47800         Substitute LIBTESTS_LIBDEPS.
47801         (func_create_testdir): Combine the uses_subdirs results from
47802         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
47803
47804 2007-12-09  Bruno Haible  <bruno@clisp.org>
47805
47806         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
47807         the build-aux directory.
47808
47809 2007-12-09  Bruno Haible  <bruno@clisp.org>
47810
47811         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
47812         introduced on 2006-09-09.
47813
47814 2007-12-07  Jim Meyering  <meyering@redhat.com>
47815
47816         Let these macros work also with autoconf-2.59.
47817         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
47818         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
47819         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
47820
47821 2007-12-06  Jim Meyering  <meyering@redhat.com>
47822
47823         Avoid a configure-time syntax error in gl_FUNC_ACL.
47824         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
47825         function in each branch, before testing the cache variable.
47826
47827 2007-12-04  Eric Blake  <ebb9@byu.net>
47828
47829         Make scripts executable.
47830         * build-aux/config.guess: Add execute permissions.
47831         * build-aux/config.sub: Likewise.
47832         * build-aux/gendocs.sh: Likewise.
47833
47834         Fix frexp on mingw.
47835         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
47836         cross-compiling.
47837         * doc/functions/frexp.texi (frexp): Document the bug.
47838
47839         Make cygwin fseeko check more reliable.
47840         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
47841         version numbers, rather than unrelated feature check.
47842         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
47843         * doc/functions/ftello.texi (ftello): Likewise.
47844         Reported by Bruno Haible.
47845
47846         * m4/strerror.m4: Bump version number.
47847
47848 2007-12-03  Bruno Haible  <bruno@clisp.org>
47849
47850         * doc/functions/mprotect.texi: Mention the mingw problem.
47851
47852 2007-12-03  Eric Blake  <ebb9@byu.net>
47853
47854         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
47855         REPLACE_STRERROR is initialized before this macro.
47856
47857 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
47858
47859         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
47860         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
47861         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
47862         put -lsec in even for programs other than 'ls'.  This fixes a problem
47863         for gettext reported by Bruno Haible in
47864         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
47865         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
47866         Add support for Solaris 10.  This isn't efficient, but should get the
47867         job done for now.
47868
47869 2007-12-03  James Youngman  <jay@gnu.org>
47870
47871         * doc/regexprops-generic.texi: change "an close-group" to "a
47872         close-group" and "illegal" to "not allowed".
47873
47874 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47875
47876         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
47877         pr_byname.h. Needed for the rare case when the maintainer has done
47878         "make maintainer-clean" in the source directory and then attempts a
47879         build outside the source directory.
47880         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
47881         scripts_byname.h.
47882
47883 2007-12-02  Martin Lambers <marlam@marlam.de>
47884             Bruno Haible  <bruno@clisp.org>
47885
47886         * lib/getpagesize.h: Remove file.
47887         * lib/unistd.in.h: Include declaration of getpagesize here.
47888         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
47889         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
47890         HAVE_SYS_PARAM_H.
47891         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
47892         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
47893         * modules/getpagesize (Files): Remove lib/getpagesize.h.
47894         (Depends-on): Add unistd.
47895         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47896         (Include): Use <unistd.h> instead of getpagesize.h.
47897         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
47898         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
47899         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
47900         gl_GETPAGESIZE invocation, already handled by module dependency.
47901         * lib/pagealign_alloc.c: Don't include getpagesize.h.
47902
47903 2007-12-02  Bruno Haible  <bruno@clisp.org>
47904
47905         * modules/strings-tests: New file.
47906         * tests/test-strings.c: New file.
47907
47908         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
47909         * lib/strings.in.h: New file.
47910         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
47911         * m4/strings_h.m4: New file.
47912         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
47913         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
47914         * modules/strings: New file.
47915         * modules/string (Makefile.am): Update.
47916         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
47917         Reported by Karl Berry.
47918
47919 2007-12-01  Eric Blake  <ebb9@byu.net>
47920
47921         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
47922         accomodate fix in cygwin 1.5.25.
47923
47924 2007-12-01  Jim Meyering  <meyering@redhat.com>
47925
47926         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
47927         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
47928         that would inhibit utf8-optimization of a regexp containing line-
47929         or buffer-anchors, e.g., `^', `$'.
47930
47931 2007-11-30  Bruno Haible  <bruno@clisp.org>
47932
47933         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
47934         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
47935         glthread_recursive_lock_init.
47936         * lib/lock.c (glthread_recursive_lock_init)
47937         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
47938         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47939
47940 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
47941
47942         New function qset_acl, like set_acl but with syscall semantics.
47943         * lib/acl.h (qset_acl): New decl.
47944         * lib/acl.c (qset_acl): New function.
47945         (set_acl): Use new function.  Use more-consistent diagnostics.
47946
47947 2007-11-28  Jim Meyering  <meyering@redhat.com>
47948
47949         * modules/physmem (License): Change from GPL to LGPLv2+.
47950
47951 2007-11-26  Bruno Haible  <bruno@clisp.org>
47952
47953         * lib/vasnprintf.c (decode_long_double): Don't abort if the
47954         'long double' type has excess precision.
47955         Reported by Jim Meyering in
47956         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
47957
47958 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47959
47960         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
47961         Sync from <http://gnu.org/licenses>.
47962         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
47963         with license text from same location.
47964         * doc/maintain.texi, doc/standards.texi:  Sync from
47965         <http://savannah.gnu.org/projects/gnustandards>.
47966
47967 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
47968         and Jim Meyering  <meyering@redhat.com>
47969
47970         Adjust getdate' grammar to accept a slightly more regular language.
47971         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
47972         Before, the former was rejected.
47973         * lib/getdate.y (digits_to_date_time): New function, factored
47974         out of ...
47975         (number): ...here.  Just call digits_to_date_time.
47976         (hybrid): New non-terminal to handle an <unsigned number,
47977         signed relative offset> sequence consistently.
47978
47979 2007-11-18  Jim Meyering  <meyering@redhat.com>
47980
47981         Pull my changes from coreutils:
47982         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
47983         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
47984         use of $gnulib_tool_option_extras, so that it's separated from the
47985         preceding argument.
47986
47987         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
47988         * build-aux/bootstrap (cp_mark_as_generated): Create any required
47989         parent destination directories before copying a file into place.
47990
47991 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
47992
47993         bootstrap: work also with 4-argument variant of AC_INIT
47994         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
47995
47996 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
47997
47998         Port test-getaddrinfo to Solaris.
47999         Problem reported by Bruno Haible in
48000         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
48001         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
48002         explanation of setting 'hints'.
48003         Don't reject an implementation merely because it returns EAI_SERVICE.
48004         (EAI_SERVICE): Define to 0 if not defined.
48005
48006 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
48007
48008         The license of gnu-make and posix-shell is now "GPLed build tool".
48009         * modules/gnu-make (License): Likewise.
48010         * modules/posix-shell (License): Likewise.
48011
48012         New module posix-shell, for determining a POSIX shell
48013         or perhaps something that is close enough to a POSIX shell.
48014         * m4/posix-shell.m4: New file.
48015         * modules/posix-shell: New file.
48016
48017         * MODULES.html.sh: Mention new module.
48018
48019         New module gnu-make, for determining whether we're using GNU Make.
48020         * m4/gnu-make.m4: New file.
48021         * modules/gnu-make: New file.
48022         * MODULES.html.sh: Mention new module.
48023
48024 2007-11-14  Jim Meyering  <meyering@redhat.com>
48025
48026         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
48027         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
48028         use this macro to create a function _definition_.
48029         Remove useless "#undef ARGMATCH_DIE".
48030
48031 2007-11-14  Bruno Haible  <bruno@clisp.org>
48032
48033         * lib/config.charset: Update for OpenBSD 4.1.
48034         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
48035
48036 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
48037
48038         Document 64-bit #if problems in stdint.texi.
48039         * doc/headers/stdint.texi (stdint.h): Mention problems with
48040         64-bit-#if, and how to work around them.
48041
48042         Don't insist on 'long long int' support in the preprocessor.  It
48043         breaks too many things.  For example, PRIdMAX still uses a 'long
48044         long int' format with the latest Sun compiler, even though
48045         HAVE_LONG_LONG_INT isn't defined due to that compiler's
48046         preprocessor problem.  This causes the latest coreutils to dump
48047         core on Solaris 10 sparc with the Sun C compiler.
48048         Instead, fix the 2007-10-16 problem in a different way, by evaluating
48049         the troublesome expressions at configure-time, not at #if-time.
48050         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
48051         preprocessor.
48052         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
48053         compile-time C checks, done at 'configure'-time.
48054         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
48055         * modules/inttypes (Makefile): Substitute the new symbols that
48056         gl_INTTYPES_H now generates.
48057         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
48058
48059 2007-11-12  Bruno Haible  <bruno@clisp.org>
48060
48061         Tests for Unicode character classification functions.
48062
48063         * modules/unictype/bidicategory-byname-tests: New file.
48064         * modules/unictype/bidicategory-name-tests: New file.
48065         * modules/unictype/bidicategory-of-tests: New file.
48066         * modules/unictype/bidicategory-test-tests: New file.
48067         * modules/unictype/block-list-tests: New file.
48068         * modules/unictype/block-of-tests: New file.
48069         * modules/unictype/block-test-tests: New file.
48070         * modules/unictype/category-C-tests: New file.
48071         * modules/unictype/category-Cc-tests: New file.
48072         * modules/unictype/category-Cf-tests: New file.
48073         * modules/unictype/category-Cn-tests: New file.
48074         * modules/unictype/category-Co-tests: New file.
48075         * modules/unictype/category-Cs-tests: New file.
48076         * modules/unictype/category-L-tests: New file.
48077         * modules/unictype/category-Ll-tests: New file.
48078         * modules/unictype/category-Lm-tests: New file.
48079         * modules/unictype/category-Lo-tests: New file.
48080         * modules/unictype/category-Lt-tests: New file.
48081         * modules/unictype/category-Lu-tests: New file.
48082         * modules/unictype/category-M-tests: New file.
48083         * modules/unictype/category-Mc-tests: New file.
48084         * modules/unictype/category-Me-tests: New file.
48085         * modules/unictype/category-Mn-tests: New file.
48086         * modules/unictype/category-N-tests: New file.
48087         * modules/unictype/category-Nd-tests: New file.
48088         * modules/unictype/category-Nl-tests: New file.
48089         * modules/unictype/category-No-tests: New file.
48090         * modules/unictype/category-P-tests: New file.
48091         * modules/unictype/category-Pc-tests: New file.
48092         * modules/unictype/category-Pd-tests: New file.
48093         * modules/unictype/category-Pe-tests: New file.
48094         * modules/unictype/category-Pf-tests: New file.
48095         * modules/unictype/category-Pi-tests: New file.
48096         * modules/unictype/category-Po-tests: New file.
48097         * modules/unictype/category-Ps-tests: New file.
48098         * modules/unictype/category-S-tests: New file.
48099         * modules/unictype/category-Sc-tests: New file.
48100         * modules/unictype/category-Sk-tests: New file.
48101         * modules/unictype/category-Sm-tests: New file.
48102         * modules/unictype/category-So-tests: New file.
48103         * modules/unictype/category-Z-tests: New file.
48104         * modules/unictype/category-Zl-tests: New file.
48105         * modules/unictype/category-Zp-tests: New file.
48106         * modules/unictype/category-Zs-tests: New file.
48107         * modules/unictype/category-and-not-tests: New file.
48108         * modules/unictype/category-and-tests: New file.
48109         * modules/unictype/category-byname-tests: New file.
48110         * modules/unictype/category-name-tests: New file.
48111         * modules/unictype/category-none-tests: New file.
48112         * modules/unictype/category-of-tests: New file.
48113         * modules/unictype/category-or-tests: New file.
48114         * modules/unictype/category-test-withtable-tests: New file.
48115         * modules/unictype/combining-class-tests: New file.
48116         * modules/unictype/ctype-alnum-tests: New file.
48117         * modules/unictype/ctype-alpha-tests: New file.
48118         * modules/unictype/ctype-blank-tests: New file.
48119         * modules/unictype/ctype-cntrl-tests: New file.
48120         * modules/unictype/ctype-digit-tests: New file.
48121         * modules/unictype/ctype-graph-tests: New file.
48122         * modules/unictype/ctype-lower-tests: New file.
48123         * modules/unictype/ctype-print-tests: New file.
48124         * modules/unictype/ctype-punct-tests: New file.
48125         * modules/unictype/ctype-space-tests: New file.
48126         * modules/unictype/ctype-upper-tests: New file.
48127         * modules/unictype/ctype-xdigit-tests: New file.
48128         * modules/unictype/decimal-digit-tests: New file.
48129         * modules/unictype/digit-tests: New file.
48130         * modules/unictype/mirror-tests: New file.
48131         * modules/unictype/numeric-tests: New file.
48132         * modules/unictype/property-alphabetic-tests: New file.
48133         * modules/unictype/property-ascii-hex-digit-tests: New file.
48134         * modules/unictype/property-bidi-arabic-digit-tests: New file.
48135         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
48136         * modules/unictype/property-bidi-block-separator-tests: New file.
48137         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
48138         * modules/unictype/property-bidi-common-separator-tests: New file.
48139         * modules/unictype/property-bidi-control-tests: New file.
48140         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
48141         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
48142         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
48143         * modules/unictype/property-bidi-european-digit-tests: New file.
48144         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
48145         * modules/unictype/property-bidi-left-to-right-tests: New file.
48146         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
48147         * modules/unictype/property-bidi-other-neutral-tests: New file.
48148         * modules/unictype/property-bidi-pdf-tests: New file.
48149         * modules/unictype/property-bidi-segment-separator-tests: New file.
48150         * modules/unictype/property-bidi-whitespace-tests: New file.
48151         * modules/unictype/property-byname-tests: New file.
48152         * modules/unictype/property-combining-tests: New file.
48153         * modules/unictype/property-composite-tests: New file.
48154         * modules/unictype/property-currency-symbol-tests: New file.
48155         * modules/unictype/property-dash-tests: New file.
48156         * modules/unictype/property-decimal-digit-tests: New file.
48157         * modules/unictype/property-default-ignorable-code-point-tests: New file.
48158         * modules/unictype/property-deprecated-tests: New file.
48159         * modules/unictype/property-diacritic-tests: New file.
48160         * modules/unictype/property-extender-tests: New file.
48161         * modules/unictype/property-format-control-tests: New file.
48162         * modules/unictype/property-grapheme-base-tests: New file.
48163         * modules/unictype/property-grapheme-extend-tests: New file.
48164         * modules/unictype/property-grapheme-link-tests: New file.
48165         * modules/unictype/property-hex-digit-tests: New file.
48166         * modules/unictype/property-hyphen-tests: New file.
48167         * modules/unictype/property-id-continue-tests: New file.
48168         * modules/unictype/property-id-start-tests: New file.
48169         * modules/unictype/property-ideographic-tests: New file.
48170         * modules/unictype/property-ids-binary-operator-tests: New file.
48171         * modules/unictype/property-ids-trinary-operator-tests: New file.
48172         * modules/unictype/property-ignorable-control-tests: New file.
48173         * modules/unictype/property-iso-control-tests: New file.
48174         * modules/unictype/property-join-control-tests: New file.
48175         * modules/unictype/property-left-of-pair-tests: New file.
48176         * modules/unictype/property-line-separator-tests: New file.
48177         * modules/unictype/property-logical-order-exception-tests: New file.
48178         * modules/unictype/property-lowercase-tests: New file.
48179         * modules/unictype/property-math-tests: New file.
48180         * modules/unictype/property-non-break-tests: New file.
48181         * modules/unictype/property-not-a-character-tests: New file.
48182         * modules/unictype/property-numeric-tests: New file.
48183         * modules/unictype/property-other-alphabetic-tests: New file.
48184         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
48185         * modules/unictype/property-other-grapheme-extend-tests: New file.
48186         * modules/unictype/property-other-id-continue-tests: New file.
48187         * modules/unictype/property-other-id-start-tests: New file.
48188         * modules/unictype/property-other-lowercase-tests: New file.
48189         * modules/unictype/property-other-math-tests: New file.
48190         * modules/unictype/property-other-uppercase-tests: New file.
48191         * modules/unictype/property-paired-punctuation-tests: New file.
48192         * modules/unictype/property-paragraph-separator-tests: New file.
48193         * modules/unictype/property-pattern-syntax-tests: New file.
48194         * modules/unictype/property-pattern-white-space-tests: New file.
48195         * modules/unictype/property-private-use-tests: New file.
48196         * modules/unictype/property-punctuation-tests: New file.
48197         * modules/unictype/property-quotation-mark-tests: New file.
48198         * modules/unictype/property-radical-tests: New file.
48199         * modules/unictype/property-sentence-terminal-tests: New file.
48200         * modules/unictype/property-soft-dotted-tests: New file.
48201         * modules/unictype/property-space-tests: New file.
48202         * modules/unictype/property-terminal-punctuation-tests: New file.
48203         * modules/unictype/property-test-tests: New file.
48204         * modules/unictype/property-titlecase-tests: New file.
48205         * modules/unictype/property-unassigned-code-value-tests: New file.
48206         * modules/unictype/property-unified-ideograph-tests: New file.
48207         * modules/unictype/property-uppercase-tests: New file.
48208         * modules/unictype/property-variation-selector-tests: New file.
48209         * modules/unictype/property-white-space-tests: New file.
48210         * modules/unictype/property-xid-continue-tests: New file.
48211         * modules/unictype/property-xid-start-tests: New file.
48212         * modules/unictype/property-zero-width-tests: New file.
48213         * modules/unictype/scripts-tests: New file.
48214         * modules/unictype/syntax-c-ident-tests: New file.
48215         * modules/unictype/syntax-c-whitespace-tests: New file.
48216         * modules/unictype/syntax-java-ident-tests: New file.
48217         * modules/unictype/syntax-java-whitespace-tests: New file.
48218         * tests/unictype/test-bidi_byname.c: New file.
48219         * tests/unictype/test-bidi_name.c: New file.
48220         * tests/unictype/test-bidi_of.c: New file.
48221         * tests/unictype/test-bidi_test.c: New file.
48222         * tests/unictype/test-block_list.c: New file.
48223         * tests/unictype/test-block_of.c: New file.
48224         * tests/unictype/test-block_test.c: New file.
48225         * tests/unictype/test-categ_and.c: New file.
48226         * tests/unictype/test-categ_and_not.c: New file.
48227         * tests/unictype/test-categ_byname.c: New file.
48228         * tests/unictype/test-categ_name.c: New file.
48229         * tests/unictype/test-categ_none.c: New file.
48230         * tests/unictype/test-categ_of.c: New file.
48231         * tests/unictype/test-categ_or.c: New file.
48232         * tests/unictype/test-categ_test_withtable.c: New file.
48233         * tests/unictype/test-combining.c: New file.
48234         * tests/unictype/test-decdigit.c: New file.
48235         * tests/unictype/test-digit.c: New file.
48236         * tests/unictype/test-mirror.c: New file.
48237         * tests/unictype/test-numeric.c: New file.
48238         * tests/unictype/test-pr_byname.c: New file.
48239         * tests/unictype/test-pr_test.c: New file.
48240         * tests/unictype/test-predicate-part1.h: New file.
48241         * tests/unictype/test-predicate-part2.h: New file.
48242         * tests/unictype/test-scripts.c: New file.
48243         * tests/unictype/test-sy_c_ident.c: New file.
48244         * tests/unictype/test-sy_java_ident.c: New file.
48245
48246         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
48247         for Unicode 5.0.0.
48248         * tests/unictype/test-categ_Cc.c: Likewise.
48249         * tests/unictype/test-categ_Cf.c: Likewise.
48250         * tests/unictype/test-categ_Cn.c: Likewise.
48251         * tests/unictype/test-categ_Co.c: Likewise.
48252         * tests/unictype/test-categ_Cs.c: Likewise.
48253         * tests/unictype/test-categ_L.c: Likewise.
48254         * tests/unictype/test-categ_Ll.c: Likewise.
48255         * tests/unictype/test-categ_Lm.c: Likewise.
48256         * tests/unictype/test-categ_Lo.c: Likewise.
48257         * tests/unictype/test-categ_Lt.c: Likewise.
48258         * tests/unictype/test-categ_Lu.c: Likewise.
48259         * tests/unictype/test-categ_M.c: Likewise.
48260         * tests/unictype/test-categ_Mc.c: Likewise.
48261         * tests/unictype/test-categ_Me.c: Likewise.
48262         * tests/unictype/test-categ_Mn.c: Likewise.
48263         * tests/unictype/test-categ_N.c: Likewise.
48264         * tests/unictype/test-categ_Nd.c: Likewise.
48265         * tests/unictype/test-categ_Nl.c: Likewise.
48266         * tests/unictype/test-categ_No.c: Likewise.
48267         * tests/unictype/test-categ_P.c: Likewise.
48268         * tests/unictype/test-categ_Pc.c: Likewise.
48269         * tests/unictype/test-categ_Pd.c: Likewise.
48270         * tests/unictype/test-categ_Pe.c: Likewise.
48271         * tests/unictype/test-categ_Pf.c: Likewise.
48272         * tests/unictype/test-categ_Pi.c: Likewise.
48273         * tests/unictype/test-categ_Po.c: Likewise.
48274         * tests/unictype/test-categ_Ps.c: Likewise.
48275         * tests/unictype/test-categ_S.c: Likewise.
48276         * tests/unictype/test-categ_Sc.c: Likewise.
48277         * tests/unictype/test-categ_Sk.c: Likewise.
48278         * tests/unictype/test-categ_Sm.c: Likewise.
48279         * tests/unictype/test-categ_So.c: Likewise.
48280         * tests/unictype/test-categ_Z.c: Likewise.
48281         * tests/unictype/test-categ_Zl.c: Likewise.
48282         * tests/unictype/test-categ_Zp.c: Likewise.
48283         * tests/unictype/test-categ_Zs.c: Likewise.
48284         * tests/unictype/test-ctype_alnum.c: Likewise.
48285         * tests/unictype/test-ctype_alpha.c: Likewise.
48286         * tests/unictype/test-ctype_blank.c: Likewise.
48287         * tests/unictype/test-ctype_cntrl.c: Likewise.
48288         * tests/unictype/test-ctype_digit.c: Likewise.
48289         * tests/unictype/test-ctype_graph.c: Likewise.
48290         * tests/unictype/test-ctype_lower.c: Likewise.
48291         * tests/unictype/test-ctype_print.c: Likewise.
48292         * tests/unictype/test-ctype_punct.c: Likewise.
48293         * tests/unictype/test-ctype_space.c: Likewise.
48294         * tests/unictype/test-ctype_upper.c: Likewise.
48295         * tests/unictype/test-ctype_xdigit.c: Likewise.
48296         * tests/unictype/test-decdigit.h: Likewise.
48297         * tests/unictype/test-digit.h: Likewise.
48298         * tests/unictype/test-numeric.h: Likewise.
48299         * tests/unictype/test-pr_alphabetic.c: Likewise.
48300         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
48301         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
48302         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
48303         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
48304         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
48305         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
48306         * tests/unictype/test-pr_bidi_control.c: Likewise.
48307         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
48308         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
48309         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
48310         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
48311         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
48312         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
48313         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
48314         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
48315         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
48316         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
48317         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
48318         * tests/unictype/test-pr_combining.c: Likewise.
48319         * tests/unictype/test-pr_composite.c: Likewise.
48320         * tests/unictype/test-pr_currency_symbol.c: Likewise.
48321         * tests/unictype/test-pr_dash.c: Likewise.
48322         * tests/unictype/test-pr_decimal_digit.c: Likewise.
48323         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
48324         * tests/unictype/test-pr_deprecated.c: Likewise.
48325         * tests/unictype/test-pr_diacritic.c: Likewise.
48326         * tests/unictype/test-pr_extender.c: Likewise.
48327         * tests/unictype/test-pr_format_control.c: Likewise.
48328         * tests/unictype/test-pr_grapheme_base.c: Likewise.
48329         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
48330         * tests/unictype/test-pr_grapheme_link.c: Likewise.
48331         * tests/unictype/test-pr_hex_digit.c: Likewise.
48332         * tests/unictype/test-pr_hyphen.c: Likewise.
48333         * tests/unictype/test-pr_id_continue.c: Likewise.
48334         * tests/unictype/test-pr_id_start.c: Likewise.
48335         * tests/unictype/test-pr_ideographic.c: Likewise.
48336         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
48337         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
48338         * tests/unictype/test-pr_ignorable_control.c: Likewise.
48339         * tests/unictype/test-pr_iso_control.c: Likewise.
48340         * tests/unictype/test-pr_join_control.c: Likewise.
48341         * tests/unictype/test-pr_left_of_pair.c: Likewise.
48342         * tests/unictype/test-pr_line_separator.c: Likewise.
48343         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
48344         * tests/unictype/test-pr_lowercase.c: Likewise.
48345         * tests/unictype/test-pr_math.c: Likewise.
48346         * tests/unictype/test-pr_non_break.c: Likewise.
48347         * tests/unictype/test-pr_not_a_character.c: Likewise.
48348         * tests/unictype/test-pr_numeric.c: Likewise.
48349         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
48350         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
48351         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
48352         * tests/unictype/test-pr_other_id_continue.c: Likewise.
48353         * tests/unictype/test-pr_other_id_start.c: Likewise.
48354         * tests/unictype/test-pr_other_lowercase.c: Likewise.
48355         * tests/unictype/test-pr_other_math.c: Likewise.
48356         * tests/unictype/test-pr_other_uppercase.c: Likewise.
48357         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
48358         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
48359         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
48360         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
48361         * tests/unictype/test-pr_private_use.c: Likewise.
48362         * tests/unictype/test-pr_punctuation.c: Likewise.
48363         * tests/unictype/test-pr_quotation_mark.c: Likewise.
48364         * tests/unictype/test-pr_radical.c: Likewise.
48365         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
48366         * tests/unictype/test-pr_soft_dotted.c: Likewise.
48367         * tests/unictype/test-pr_space.c: Likewise.
48368         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
48369         * tests/unictype/test-pr_titlecase.c: Likewise.
48370         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
48371         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
48372         * tests/unictype/test-pr_uppercase.c: Likewise.
48373         * tests/unictype/test-pr_variation_selector.c: Likewise.
48374         * tests/unictype/test-pr_white_space.c: Likewise.
48375         * tests/unictype/test-pr_xid_continue.c: Likewise.
48376         * tests/unictype/test-pr_xid_start.c: Likewise.
48377         * tests/unictype/test-pr_zero_width.c: Likewise.
48378         * tests/unictype/test-sy_c_whitespace.c: Likewise.
48379         * tests/unictype/test-sy_java_whitespace.c: Likewise.
48380
48381 2007-11-12  Bruno Haible  <bruno@clisp.org>
48382
48383         Unicode character classification functions.
48384         * lib/unictype.h: New file.
48385         * modules/unictype/base: New file.
48386         * modules/unictype/category-L: New file.
48387         * modules/unictype/category-Lu: New file.
48388         * modules/unictype/category-Ll: New file.
48389         * modules/unictype/category-Lt: New file.
48390         * modules/unictype/category-Lm: New file.
48391         * modules/unictype/category-Lo: New file.
48392         * modules/unictype/category-M: New file.
48393         * modules/unictype/category-Mn: New file.
48394         * modules/unictype/category-Mc: New file.
48395         * modules/unictype/category-Me: New file.
48396         * modules/unictype/category-N: New file.
48397         * modules/unictype/category-Nd: New file.
48398         * modules/unictype/category-Nl: New file.
48399         * modules/unictype/category-No: New file.
48400         * modules/unictype/category-P: New file.
48401         * modules/unictype/category-Pc: New file.
48402         * modules/unictype/category-Pd: New file.
48403         * modules/unictype/category-Ps: New file.
48404         * modules/unictype/category-Pe: New file.
48405         * modules/unictype/category-Pi: New file.
48406         * modules/unictype/category-Pf: New file.
48407         * modules/unictype/category-Po: New file.
48408         * modules/unictype/category-S: New file.
48409         * modules/unictype/category-Sm: New file.
48410         * modules/unictype/category-Sc: New file.
48411         * modules/unictype/category-Sk: New file.
48412         * modules/unictype/category-So: New file.
48413         * modules/unictype/category-Z: New file.
48414         * modules/unictype/category-Zs: New file.
48415         * modules/unictype/category-Zl: New file.
48416         * modules/unictype/category-Zp: New file.
48417         * modules/unictype/category-C: New file.
48418         * modules/unictype/category-Cc: New file.
48419         * modules/unictype/category-Cf: New file.
48420         * modules/unictype/category-Cs: New file.
48421         * modules/unictype/category-Co: New file.
48422         * modules/unictype/category-Cn: New file.
48423         * modules/unictype/category-or: New file.
48424         * modules/unictype/category-of: New file.
48425         * modules/unictype/category-test: New file.
48426         * modules/unictype/category-test-withtable: New file.
48427         * modules/unictype/category-byname: New file.
48428         * modules/unictype/category-none: New file.
48429         * modules/unictype/category-and: New file.
48430         * modules/unictype/category-and-not: New file.
48431         * modules/unictype/category-name: New file.
48432         * modules/unictype/combining-class: New file.
48433         * modules/unictype/category-all: New file.
48434         * modules/unictype/bidicategory-all: New file.
48435         * modules/unictype/bidicategory-byname: New file.
48436         * modules/unictype/bidicategory-name: New file.
48437         * modules/unictype/bidicategory-of: New file.
48438         * modules/unictype/bidicategory-test: New file.
48439         * modules/unictype/decimal-digit: New file.
48440         * modules/unictype/digit: New file.
48441         * modules/unictype/numeric: New file.
48442         * modules/unictype/mirror: New file.
48443         * modules/unictype/property-white-space: New file.
48444         * modules/unictype/property-alphabetic: New file.
48445         * modules/unictype/property-other-alphabetic: New file.
48446         * modules/unictype/property-not-a-character: New file.
48447         * modules/unictype/property-default-ignorable-code-point: New file.
48448         * modules/unictype/property-other-default-ignorable-code-point: New
48449         file.
48450         * modules/unictype/property-deprecated: New file.
48451         * modules/unictype/property-logical-order-exception: New file.
48452         * modules/unictype/property-variation-selector: New file.
48453         * modules/unictype/property-private-use: New file.
48454         * modules/unictype/property-unassigned-code-value: New file.
48455         * modules/unictype/property-uppercase: New file.
48456         * modules/unictype/property-other-uppercase: New file.
48457         * modules/unictype/property-lowercase: New file.
48458         * modules/unictype/property-other-lowercase: New file.
48459         * modules/unictype/property-titlecase: New file.
48460         * modules/unictype/property-soft-dotted: New file.
48461         * modules/unictype/property-id-start: New file.
48462         * modules/unictype/property-other-id-start: New file.
48463         * modules/unictype/property-id-continue: New file.
48464         * modules/unictype/property-other-id-continue: New file.
48465         * modules/unictype/property-xid-start: New file.
48466         * modules/unictype/property-xid-continue: New file.
48467         * modules/unictype/property-pattern-white-space: New file.
48468         * modules/unictype/property-pattern-syntax: New file.
48469         * modules/unictype/property-join-control: New file.
48470         * modules/unictype/property-grapheme-base: New file.
48471         * modules/unictype/property-grapheme-extend: New file.
48472         * modules/unictype/property-other-grapheme-extend: New file.
48473         * modules/unictype/property-grapheme-link: New file.
48474         * modules/unictype/property-bidi-control: New file.
48475         * modules/unictype/property-bidi-left-to-right: New file.
48476         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
48477         * modules/unictype/property-bidi-arabic-right-to-left: New file.
48478         * modules/unictype/property-bidi-european-digit: New file.
48479         * modules/unictype/property-bidi-eur-num-separator: New file.
48480         * modules/unictype/property-bidi-eur-num-terminator: New file.
48481         * modules/unictype/property-bidi-arabic-digit: New file.
48482         * modules/unictype/property-bidi-common-separator: New file.
48483         * modules/unictype/property-bidi-block-separator: New file.
48484         * modules/unictype/property-bidi-segment-separator: New file.
48485         * modules/unictype/property-bidi-whitespace: New file.
48486         * modules/unictype/property-bidi-non-spacing-mark: New file.
48487         * modules/unictype/property-bidi-boundary-neutral: New file.
48488         * modules/unictype/property-bidi-pdf: New file.
48489         * modules/unictype/property-bidi-embedding-or-override: New file.
48490         * modules/unictype/property-bidi-other-neutral: New file.
48491         * modules/unictype/property-hex-digit: New file.
48492         * modules/unictype/property-ascii-hex-digit: New file.
48493         * modules/unictype/property-ideographic: New file.
48494         * modules/unictype/property-unified-ideograph: New file.
48495         * modules/unictype/property-radical: New file.
48496         * modules/unictype/property-ids-binary-operator: New file.
48497         * modules/unictype/property-ids-trinary-operator: New file.
48498         * modules/unictype/property-zero-width: New file.
48499         * modules/unictype/property-space: New file.
48500         * modules/unictype/property-non-break: New file.
48501         * modules/unictype/property-iso-control: New file.
48502         * modules/unictype/property-format-control: New file.
48503         * modules/unictype/property-dash: New file.
48504         * modules/unictype/property-hyphen: New file.
48505         * modules/unictype/property-punctuation: New file.
48506         * modules/unictype/property-line-separator: New file.
48507         * modules/unictype/property-paragraph-separator: New file.
48508         * modules/unictype/property-quotation-mark: New file.
48509         * modules/unictype/property-sentence-terminal: New file.
48510         * modules/unictype/property-terminal-punctuation: New file.
48511         * modules/unictype/property-currency-symbol: New file.
48512         * modules/unictype/property-math: New file.
48513         * modules/unictype/property-other-math: New file.
48514         * modules/unictype/property-paired-punctuation: New file.
48515         * modules/unictype/property-left-of-pair: New file.
48516         * modules/unictype/property-combining: New file.
48517         * modules/unictype/property-composite: New file.
48518         * modules/unictype/property-decimal-digit: New file.
48519         * modules/unictype/property-numeric: New file.
48520         * modules/unictype/property-diacritic: New file.
48521         * modules/unictype/property-extender: New file.
48522         * modules/unictype/property-ignorable-control: New file.
48523         * modules/unictype/property-test: New file.
48524         * modules/unictype/property-byname: New file.
48525         * modules/unictype/property-all: New file.
48526         * modules/unictype/scripts: New file.
48527         * modules/unictype/scripts-all: New file.
48528         * modules/unictype/block-of: New file.
48529         * modules/unictype/block-test: New file.
48530         * modules/unictype/block-list: New file.
48531         * modules/unictype/block-all: New file.
48532         * modules/unictype/syntax-c-whitespace: New file.
48533         * modules/unictype/syntax-java-whitespace: New file.
48534         * modules/unictype/syntax-c-ident: New file.
48535         * modules/unictype/syntax-java-ident: New file.
48536         * modules/unictype/ctype-alnum: New file.
48537         * modules/unictype/ctype-alpha: New file.
48538         * modules/unictype/ctype-cntrl: New file.
48539         * modules/unictype/ctype-digit: New file.
48540         * modules/unictype/ctype-graph: New file.
48541         * modules/unictype/ctype-lower: New file.
48542         * modules/unictype/ctype-print: New file.
48543         * modules/unictype/ctype-punct: New file.
48544         * modules/unictype/ctype-space: New file.
48545         * modules/unictype/ctype-upper: New file.
48546         * modules/unictype/ctype-xdigit: New file.
48547         * modules/unictype/ctype-blank: New file.
48548         * lib/unictype/bidi_byname.c: New file.
48549         * lib/unictype/bidi_name.c: New file.
48550         * lib/unictype/bidi_of.c: New file.
48551         * lib/unictype/bidi_test.c: New file.
48552         * lib/unictype/bitmap.h: New file.
48553         * lib/unictype/block_test.c: New file.
48554         * lib/unictype/blocks.c: New file.
48555         * lib/unictype/categ_C.c: New file.
48556         * lib/unictype/categ_Cc.c: New file.
48557         * lib/unictype/categ_Cf.c: New file.
48558         * lib/unictype/categ_Cn.c: New file.
48559         * lib/unictype/categ_Co.c: New file.
48560         * lib/unictype/categ_Cs.c: New file.
48561         * lib/unictype/categ_L.c: New file.
48562         * lib/unictype/categ_Ll.c: New file.
48563         * lib/unictype/categ_Lm.c: New file.
48564         * lib/unictype/categ_Lo.c: New file.
48565         * lib/unictype/categ_Lt.c: New file.
48566         * lib/unictype/categ_Lu.c: New file.
48567         * lib/unictype/categ_M.c: New file.
48568         * lib/unictype/categ_Mc.c: New file.
48569         * lib/unictype/categ_Me.c: New file.
48570         * lib/unictype/categ_Mn.c: New file.
48571         * lib/unictype/categ_N.c: New file.
48572         * lib/unictype/categ_Nd.c: New file.
48573         * lib/unictype/categ_Nl.c: New file.
48574         * lib/unictype/categ_No.c: New file.
48575         * lib/unictype/categ_P.c: New file.
48576         * lib/unictype/categ_Pc.c: New file.
48577         * lib/unictype/categ_Pd.c: New file.
48578         * lib/unictype/categ_Pe.c: New file.
48579         * lib/unictype/categ_Pf.c: New file.
48580         * lib/unictype/categ_Pi.c: New file.
48581         * lib/unictype/categ_Po.c: New file.
48582         * lib/unictype/categ_Ps.c: New file.
48583         * lib/unictype/categ_S.c: New file.
48584         * lib/unictype/categ_Sc.c: New file.
48585         * lib/unictype/categ_Sk.c: New file.
48586         * lib/unictype/categ_Sm.c: New file.
48587         * lib/unictype/categ_So.c: New file.
48588         * lib/unictype/categ_Z.c: New file.
48589         * lib/unictype/categ_Zl.c: New file.
48590         * lib/unictype/categ_Zp.c: New file.
48591         * lib/unictype/categ_Zs.c: New file.
48592         * lib/unictype/categ_and.c: New file.
48593         * lib/unictype/categ_and_not.c: New file.
48594         * lib/unictype/categ_byname.c: New file.
48595         * lib/unictype/categ_name.c: New file.
48596         * lib/unictype/categ_none.c: New file.
48597         * lib/unictype/categ_of.c: New file.
48598         * lib/unictype/categ_or.c: New file.
48599         * lib/unictype/categ_test.c: New file.
48600         * lib/unictype/combining.c: New file.
48601         * lib/unictype/ctype_alnum.c: New file.
48602         * lib/unictype/ctype_alpha.c: New file.
48603         * lib/unictype/ctype_blank.c: New file.
48604         * lib/unictype/ctype_cntrl.c: New file.
48605         * lib/unictype/ctype_digit.c: New file.
48606         * lib/unictype/ctype_graph.c: New file.
48607         * lib/unictype/ctype_lower.c: New file.
48608         * lib/unictype/ctype_print.c: New file.
48609         * lib/unictype/ctype_punct.c: New file.
48610         * lib/unictype/ctype_space.c: New file.
48611         * lib/unictype/ctype_upper.c: New file.
48612         * lib/unictype/ctype_xdigit.c: New file.
48613         * lib/unictype/decdigit.c: New file.
48614         * lib/unictype/digit.c: New file.
48615         * lib/unictype/identsyntaxmap.h: New file.
48616         * lib/unictype/mirror.c: New file.
48617         * lib/unictype/numeric.c: New file.
48618         * lib/unictype/pr_alphabetic.c: New file.
48619         * lib/unictype/pr_ascii_hex_digit.c: New file.
48620         * lib/unictype/pr_bidi_arabic_digit.c: New file.
48621         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
48622         * lib/unictype/pr_bidi_block_separator.c: New file.
48623         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
48624         * lib/unictype/pr_bidi_common_separator.c: New file.
48625         * lib/unictype/pr_bidi_control.c: New file.
48626         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
48627         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
48628         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
48629         * lib/unictype/pr_bidi_european_digit.c: New file.
48630         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
48631         * lib/unictype/pr_bidi_left_to_right.c: New file.
48632         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
48633         * lib/unictype/pr_bidi_other_neutral.c: New file.
48634         * lib/unictype/pr_bidi_pdf.c: New file.
48635         * lib/unictype/pr_bidi_segment_separator.c: New file.
48636         * lib/unictype/pr_bidi_whitespace.c: New file.
48637         * lib/unictype/pr_byname.c: New file.
48638         * lib/unictype/pr_byname.gperf: New file.
48639         * lib/unictype/pr_combining.c: New file.
48640         * lib/unictype/pr_composite.c: New file.
48641         * lib/unictype/pr_currency_symbol.c: New file.
48642         * lib/unictype/pr_dash.c: New file.
48643         * lib/unictype/pr_decimal_digit.c: New file.
48644         * lib/unictype/pr_default_ignorable_code_point.c: New file.
48645         * lib/unictype/pr_deprecated.c: New file.
48646         * lib/unictype/pr_diacritic.c: New file.
48647         * lib/unictype/pr_extender.c: New file.
48648         * lib/unictype/pr_format_control.c: New file.
48649         * lib/unictype/pr_grapheme_base.c: New file.
48650         * lib/unictype/pr_grapheme_extend.c: New file.
48651         * lib/unictype/pr_grapheme_link.c: New file.
48652         * lib/unictype/pr_hex_digit.c: New file.
48653         * lib/unictype/pr_hyphen.c: New file.
48654         * lib/unictype/pr_id_continue.c: New file.
48655         * lib/unictype/pr_id_start.c: New file.
48656         * lib/unictype/pr_ideographic.c: New file.
48657         * lib/unictype/pr_ids_binary_operator.c: New file.
48658         * lib/unictype/pr_ids_trinary_operator.c: New file.
48659         * lib/unictype/pr_ignorable_control.c: New file.
48660         * lib/unictype/pr_iso_control.c: New file.
48661         * lib/unictype/pr_join_control.c: New file.
48662         * lib/unictype/pr_left_of_pair.c: New file.
48663         * lib/unictype/pr_line_separator.c: New file.
48664         * lib/unictype/pr_logical_order_exception.c: New file.
48665         * lib/unictype/pr_lowercase.c: New file.
48666         * lib/unictype/pr_math.c: New file.
48667         * lib/unictype/pr_non_break.c: New file.
48668         * lib/unictype/pr_not_a_character.c: New file.
48669         * lib/unictype/pr_numeric.c: New file.
48670         * lib/unictype/pr_other_alphabetic.c: New file.
48671         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
48672         * lib/unictype/pr_other_grapheme_extend.c: New file.
48673         * lib/unictype/pr_other_id_continue.c: New file.
48674         * lib/unictype/pr_other_id_start.c: New file.
48675         * lib/unictype/pr_other_lowercase.c: New file.
48676         * lib/unictype/pr_other_math.c: New file.
48677         * lib/unictype/pr_other_uppercase.c: New file.
48678         * lib/unictype/pr_paired_punctuation.c: New file.
48679         * lib/unictype/pr_paragraph_separator.c: New file.
48680         * lib/unictype/pr_pattern_syntax.c: New file.
48681         * lib/unictype/pr_pattern_white_space.c: New file.
48682         * lib/unictype/pr_private_use.c: New file.
48683         * lib/unictype/pr_punctuation.c: New file.
48684         * lib/unictype/pr_quotation_mark.c: New file.
48685         * lib/unictype/pr_radical.c: New file.
48686         * lib/unictype/pr_sentence_terminal.c: New file.
48687         * lib/unictype/pr_soft_dotted.c: New file.
48688         * lib/unictype/pr_space.c: New file.
48689         * lib/unictype/pr_terminal_punctuation.c: New file.
48690         * lib/unictype/pr_test.c: New file.
48691         * lib/unictype/pr_titlecase.c: New file.
48692         * lib/unictype/pr_unassigned_code_value.c: New file.
48693         * lib/unictype/pr_unified_ideograph.c: New file.
48694         * lib/unictype/pr_uppercase.c: New file.
48695         * lib/unictype/pr_variation_selector.c: New file.
48696         * lib/unictype/pr_white_space.c: New file.
48697         * lib/unictype/pr_xid_continue.c: New file.
48698         * lib/unictype/pr_xid_start.c: New file.
48699         * lib/unictype/pr_zero_width.c: New file.
48700         * lib/unictype/scripts.c: New file.
48701         * lib/unictype/sy_c_ident.c: New file.
48702         * lib/unictype/sy_c_whitespace.c: New file.
48703         * lib/unictype/sy_java_ident.c: New file.
48704         * lib/unictype/sy_java_whitespace.c: New file.
48705
48706         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
48707         Unicode 5.0.0.
48708         * lib/unictype/blocks.h: Likewise.
48709         * lib/unictype/categ_C.h: Likewise.
48710         * lib/unictype/categ_Cc.h: Likewise.
48711         * lib/unictype/categ_Cf.h: Likewise.
48712         * lib/unictype/categ_Cn.h: Likewise.
48713         * lib/unictype/categ_Co.h: Likewise.
48714         * lib/unictype/categ_Cs.h: Likewise.
48715         * lib/unictype/categ_L.h: Likewise.
48716         * lib/unictype/categ_Ll.h: Likewise.
48717         * lib/unictype/categ_Lm.h: Likewise.
48718         * lib/unictype/categ_Lo.h: Likewise.
48719         * lib/unictype/categ_Lt.h: Likewise.
48720         * lib/unictype/categ_Lu.h: Likewise.
48721         * lib/unictype/categ_M.h: Likewise.
48722         * lib/unictype/categ_Mc.h: Likewise.
48723         * lib/unictype/categ_Me.h: Likewise.
48724         * lib/unictype/categ_Mn.h: Likewise.
48725         * lib/unictype/categ_N.h: Likewise.
48726         * lib/unictype/categ_Nd.h: Likewise.
48727         * lib/unictype/categ_Nl.h: Likewise.
48728         * lib/unictype/categ_No.h: Likewise.
48729         * lib/unictype/categ_P.h: Likewise.
48730         * lib/unictype/categ_Pc.h: Likewise.
48731         * lib/unictype/categ_Pd.h: Likewise.
48732         * lib/unictype/categ_Pe.h: Likewise.
48733         * lib/unictype/categ_Pf.h: Likewise.
48734         * lib/unictype/categ_Pi.h: Likewise.
48735         * lib/unictype/categ_Po.h: Likewise.
48736         * lib/unictype/categ_Ps.h: Likewise.
48737         * lib/unictype/categ_S.h: Likewise.
48738         * lib/unictype/categ_Sc.h: Likewise.
48739         * lib/unictype/categ_Sk.h: Likewise.
48740         * lib/unictype/categ_Sm.h: Likewise.
48741         * lib/unictype/categ_So.h: Likewise.
48742         * lib/unictype/categ_Z.h: Likewise.
48743         * lib/unictype/categ_Zl.h: Likewise.
48744         * lib/unictype/categ_Zp.h: Likewise.
48745         * lib/unictype/categ_Zs.h: Likewise.
48746         * lib/unictype/categ_of.h: Likewise.
48747         * lib/unictype/combining.h: Likewise.
48748         * lib/unictype/ctype_alnum.h: Likewise.
48749         * lib/unictype/ctype_alpha.h: Likewise.
48750         * lib/unictype/ctype_blank.h: Likewise.
48751         * lib/unictype/ctype_cntrl.h: Likewise.
48752         * lib/unictype/ctype_digit.h: Likewise.
48753         * lib/unictype/ctype_graph.h: Likewise.
48754         * lib/unictype/ctype_lower.h: Likewise.
48755         * lib/unictype/ctype_print.h: Likewise.
48756         * lib/unictype/ctype_punct.h: Likewise.
48757         * lib/unictype/ctype_space.h: Likewise.
48758         * lib/unictype/ctype_upper.h: Likewise.
48759         * lib/unictype/ctype_xdigit.h: Likewise.
48760         * lib/unictype/decdigit.h: Likewise.
48761         * lib/unictype/digit.h: Likewise.
48762         * lib/unictype/mirror.h: Likewise.
48763         * lib/unictype/numeric.h: Likewise.
48764         * lib/unictype/pr_alphabetic.h: Likewise.
48765         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
48766         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
48767         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
48768         * lib/unictype/pr_bidi_block_separator.h: Likewise.
48769         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
48770         * lib/unictype/pr_bidi_common_separator.h: Likewise.
48771         * lib/unictype/pr_bidi_control.h: Likewise.
48772         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
48773         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
48774         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
48775         * lib/unictype/pr_bidi_european_digit.h: Likewise.
48776         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
48777         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
48778         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
48779         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
48780         * lib/unictype/pr_bidi_pdf.h: Likewise.
48781         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
48782         * lib/unictype/pr_bidi_whitespace.h: Likewise.
48783         * lib/unictype/pr_combining.h: Likewise.
48784         * lib/unictype/pr_composite.h: Likewise.
48785         * lib/unictype/pr_currency_symbol.h: Likewise.
48786         * lib/unictype/pr_dash.h: Likewise.
48787         * lib/unictype/pr_decimal_digit.h: Likewise.
48788         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
48789         * lib/unictype/pr_deprecated.h: Likewise.
48790         * lib/unictype/pr_diacritic.h: Likewise.
48791         * lib/unictype/pr_extender.h: Likewise.
48792         * lib/unictype/pr_format_control.h: Likewise.
48793         * lib/unictype/pr_grapheme_base.h: Likewise.
48794         * lib/unictype/pr_grapheme_extend.h: Likewise.
48795         * lib/unictype/pr_grapheme_link.h: Likewise.
48796         * lib/unictype/pr_hex_digit.h: Likewise.
48797         * lib/unictype/pr_hyphen.h: Likewise.
48798         * lib/unictype/pr_id_continue.h: Likewise.
48799         * lib/unictype/pr_id_start.h: Likewise.
48800         * lib/unictype/pr_ideographic.h: Likewise.
48801         * lib/unictype/pr_ids_binary_operator.h: Likewise.
48802         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
48803         * lib/unictype/pr_ignorable_control.h: Likewise.
48804         * lib/unictype/pr_iso_control.h: Likewise.
48805         * lib/unictype/pr_join_control.h: Likewise.
48806         * lib/unictype/pr_left_of_pair.h: Likewise.
48807         * lib/unictype/pr_line_separator.h: Likewise.
48808         * lib/unictype/pr_logical_order_exception.h: Likewise.
48809         * lib/unictype/pr_lowercase.h: Likewise.
48810         * lib/unictype/pr_math.h: Likewise.
48811         * lib/unictype/pr_non_break.h: Likewise.
48812         * lib/unictype/pr_not_a_character.h: Likewise.
48813         * lib/unictype/pr_numeric.h: Likewise.
48814         * lib/unictype/pr_other_alphabetic.h: Likewise.
48815         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
48816         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
48817         * lib/unictype/pr_other_id_continue.h: Likewise.
48818         * lib/unictype/pr_other_id_start.h: Likewise.
48819         * lib/unictype/pr_other_lowercase.h: Likewise.
48820         * lib/unictype/pr_other_math.h: Likewise.
48821         * lib/unictype/pr_other_uppercase.h: Likewise.
48822         * lib/unictype/pr_paired_punctuation.h: Likewise.
48823         * lib/unictype/pr_paragraph_separator.h: Likewise.
48824         * lib/unictype/pr_pattern_syntax.h: Likewise.
48825         * lib/unictype/pr_pattern_white_space.h: Likewise.
48826         * lib/unictype/pr_private_use.h: Likewise.
48827         * lib/unictype/pr_punctuation.h: Likewise.
48828         * lib/unictype/pr_quotation_mark.h: Likewise.
48829         * lib/unictype/pr_radical.h: Likewise.
48830         * lib/unictype/pr_sentence_terminal.h: Likewise.
48831         * lib/unictype/pr_soft_dotted.h: Likewise.
48832         * lib/unictype/pr_space.h: Likewise.
48833         * lib/unictype/pr_terminal_punctuation.h: Likewise.
48834         * lib/unictype/pr_titlecase.h: Likewise.
48835         * lib/unictype/pr_unassigned_code_value.h: Likewise.
48836         * lib/unictype/pr_unified_ideograph.h: Likewise.
48837         * lib/unictype/pr_uppercase.h: Likewise.
48838         * lib/unictype/pr_variation_selector.h: Likewise.
48839         * lib/unictype/pr_white_space.h: Likewise.
48840         * lib/unictype/pr_xid_continue.h: Likewise.
48841         * lib/unictype/pr_xid_start.h: Likewise.
48842         * lib/unictype/pr_zero_width.h: Likewise.
48843         * lib/unictype/scripts.h: Likewise.
48844         * lib/unictype/scripts_byname.gperf: Likewise.
48845         * lib/unictype/sy_c_ident.h: Likewise.
48846         * lib/unictype/sy_c_whitespace.h: Likewise.
48847         * lib/unictype/sy_java_ident.h: Likewise.
48848         * lib/unictype/sy_java_whitespace.h: Likewise.
48849
48850         * lib/unictype/Makefile: New file.
48851         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
48852         glibc.
48853         * lib/unictype/3level.h: New file, copied from glibc.
48854         * lib/unictype/3levelbit.h: New file.
48855
48856 2007-11-11  Bruno Haible  <bruno@clisp.org>
48857
48858         * modules/gperf: New file.
48859         * modules/iconv_open (Depends-on): Add it.
48860         (Makefile.am): Remove the GPERF definition.
48861
48862 2007-11-11  Bruno Haible  <bruno@clisp.org>
48863
48864         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
48865         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
48866
48867 2007-11-11  Bruno Haible  <bruno@clisp.org>
48868
48869         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
48870         (usage): Remove function.
48871
48872 2007-11-11  Bruno Haible  <bruno@clisp.org>
48873
48874         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
48875         gl_FUNC_CEILF_LIBS.
48876         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
48877         gl_FUNC_CEIL_LIBS.
48878         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
48879         gl_FUNC_CEILL_LIBS.
48880         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
48881         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
48882         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
48883
48884 2007-11-11  Bruno Haible  <bruno@clisp.org>
48885
48886         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
48887         roundf were declared but do not exist on functions.
48888         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
48889         roundl were declared but do not exist on functions.
48890         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
48891         HAVE_FLOORL_AND_CEILL, respectively.
48892         Needed for Sun C on Solaris 10.
48893
48894 2007-11-11  Bruno Haible  <bruno@clisp.org>
48895
48896         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
48897         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
48898         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
48899         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
48900         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
48901         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
48902         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
48903         HAVE_DECL_ROUNDF.
48904         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
48905         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
48906         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
48907         of HAVE_DECL_ROUND*.
48908         * modules/math (Makefile.am): Update.
48909
48910 2007-11-10  Bruno Haible  <bruno@clisp.org>
48911
48912         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
48913         ptrdiff_t as m4/intl.m4.
48914
48915 2007-11-10  Jim Meyering  <meyering@redhat.com>
48916
48917         Avoid link failure for the argmatch test.
48918         * tests/test-argmatch.c (usage): Define function to avoid a link
48919         failure: argmatch_die requires a usage function.
48920
48921 2007-11-09  Bruno Haible  <bruno@clisp.org>
48922
48923         * doc/functions/snprintf.texi: Mention BeOS deficiency.
48924         * doc/functions/vsnprintf.texi: Likewise.
48925         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
48926         with a size argument < 2.
48927
48928 2007-11-09  Bruno Haible  <bruno@clisp.org>
48929
48930         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
48931         buffer. Fixes an inefficiency introduced on 2007-11-03.
48932
48933 2007-11-09  Bruno Haible  <bruno@clisp.org>
48934
48935         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
48936         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
48937
48938 2007-11-08  Jim Meyering  <meyering@redhat.com>
48939
48940         Change cache variable name prefix "jm_" to "gl_" everywhere.
48941         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
48942         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
48943         * m4/uptime.m4: s/gl_/jm_/
48944
48945 2007-11-07  Bruno Haible  <bruno@clisp.org>
48946
48947         Update to GNU gettext 0.17.
48948         * m4/intl.m4: Update to GNU gettext 0.17.
48949         * m4/po.m4: Likewise.
48950         * modules/gettext (Files): Remove m4/ulonglong.m4.
48951         (configure.ac): Require gettext infrastructure from version 0.17.
48952
48953 2007-11-06  Bruno Haible  <bruno@clisp.org>
48954
48955         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
48956         symbolic values are not defined in a public header.
48957         * lib/freadable.c (freadable) [QNX]: Likewise.
48958         * lib/freadahead.c (freadahead) [QNX]: Likewise.
48959         * lib/freading.c (freading) [QNX]: Likewise.
48960         * lib/fseterr.c (fseterr) [QNX]: Likewise.
48961         * lib/fwritable.c (fwritable) [QNX]: Likewise.
48962         * lib/fwriting.c (fwriting) [QNX]: Likewise.
48963         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
48964         Reported by Alain Magloire.
48965
48966         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
48967
48968 2007-11-05  Bruno Haible  <bruno@clisp.org>
48969
48970         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
48971         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
48972         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
48973         Reported by Eric Blake.
48974
48975 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48976             Bruno Haible  <bruno@clisp.org>
48977
48978         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
48979         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
48980         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
48981         (malloc): Undefine also before including <stdlib.h>.
48982         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
48983         Needed on OSF/1 4.0.
48984
48985 2007-11-05  Jim Meyering  <meyering@redhat.com>
48986
48987         git-version-gen: sync from coreutils.
48988         * build-aux/git-version-gen: Add comments.
48989         Change the first '-' to '.' in the snapshot version string,
48990         e.g., 6.9-377-08144 -> 6.9.377-08144
48991         Remove first parameter.
48992         Don't declare a version "-dirty" merely because a time
48993         stamp has changed.
48994
48995 2007-11-04  Bruno Haible  <bruno@clisp.org>
48996
48997         * lib/lock.h: Protect all macro definitions containing an 'if'
48998         statement through a "do { ... } while (0)".
48999         * lib/tls.h: Likewise.
49000
49001 2007-11-04  Bruno Haible  <bruno@clisp.org>
49002
49003         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
49004
49005 2007-11-04  Bruno Haible  <bruno@clisp.org>
49006
49007         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
49008         * modules/fprintf-posix (Depends-on): Add nocrash.
49009         * modules/snprintf-posix (Depends-on): Likewise.
49010         * modules/sprintf-posix (Depends-on): Likewise.
49011         * modules/vasnprintf-posix (Depends-on): Likewise.
49012         * modules/vasprintf-posix (Depends-on): Likewise.
49013         * modules/vfprintf-posix (Depends-on): Likewise.
49014         * modules/vsnprintf-posix (Depends-on): Likewise.
49015         * modules/vsprintf-posix (Depends-on): Likewise.
49016         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
49017         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
49018         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
49019         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
49020         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
49021         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
49022         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
49023
49024 2007-11-04  Bruno Haible  <bruno@clisp.org>
49025
49026         * modules/nocrash: New file.
49027         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
49028         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
49029
49030 2007-11-04  Bruno Haible  <bruno@clisp.org>
49031
49032         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
49033         precision handling.
49034         * tests/test-vasprintf-posix.c (test_function): Likewise.
49035         * tests/test-snprintf-posix.h (test_function): Likewise.
49036         * tests/test-sprintf-posix.h (test_function): Likewise.
49037
49038         Fix *printf behaviour for large precisions on mingw and BeOS.
49039         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
49040         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
49041         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
49042         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
49043         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49044         gl_PRINTF_PRECISION and test its result. Invoke
49045         gl_PREREQ_VASNPRINTF_PRECISION.
49046         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49047         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49048         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49049         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49050         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49051         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49052         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49053         * doc/functions/fprintf.texi: Update.
49054         * doc/functions/printf.texi: Update.
49055         * doc/functions/snprintf.texi: Update.
49056         * doc/functions/sprintf.texi: Update.
49057         * doc/functions/vfprintf.texi: Update.
49058         * doc/functions/vprintf.texi: Update.
49059         * doc/functions/vsnprintf.texi: Update.
49060         * doc/functions/vsprintf.texi: Update.
49061
49062 2007-11-04  Bruno Haible  <bruno@clisp.org>
49063
49064         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
49065
49066 2007-11-04  Bruno Haible  <bruno@clisp.org>
49067
49068         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
49069         Reported by Sylvain Beucler <beuc@gnu.org>.
49070
49071 2007-11-03  Bruno Haible  <bruno@clisp.org>
49072
49073         * tests/test-fprintf-posix2.sh: New file.
49074         * tests/test-fprintf-posix2.c: New file.
49075         * modules/fprintf-posix-tests (Files): Add them.
49076         (TESTS): Add test-fprintf-posix2.sh.
49077         (configure.ac): Check for getrlimit and setrlimit.
49078         (check_PROGRAMS): Add test-fprintf-posix2.
49079
49080         * tests/test-printf-posix2.sh: New file.
49081         * tests/test-printf-posix2.c: New file.
49082         * modules/printf-posix-tests (Files): Add them.
49083         (TESTS): Add test-printf-posix2.sh.
49084         (configure.ac): Check for getrlimit and setrlimit.
49085         (check_PROGRAMS): Add test-printf-posix2.
49086
49087         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
49088         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
49089         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
49090         (decode_double): New function, copied from decode_long_double.
49091         (scale10_round_decimal_decoded): New function, extracted from
49092         scale10_round_decimal_long_double.
49093         (scale10_round_decimal_long_double): Use it.
49094         (scale10_round_decimal_double): New function.
49095         (floorlog10): New function.
49096         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
49097         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
49098         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
49099         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49100         gl_PRINTF_ENOMEM and test its result. Invoke
49101         gl_PREREQ_VASNPRINTF_ENOMEM.
49102         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49103         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49104         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49105         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49106         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49107         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49108         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49109         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
49110         * modules/snprintf-posix (Depends-on): Likewise.
49111         * modules/sprintf-posix (Depends-on): Likewise.
49112         * modules/vasnprintf-posix (Depends-on): Likewise.
49113         * modules/vasprintf-posix (Depends-on): Likewise.
49114         * modules/vfprintf-posix (Depends-on): Likewise.
49115         * modules/vsnprintf-posix (Depends-on): Likewise.
49116         * modules/vsprintf-posix (Depends-on): Likewise.
49117         * doc/functions/fprintf.texi: Update.
49118         * doc/functions/printf.texi: Update.
49119         * doc/functions/snprintf.texi: Update.
49120         * doc/functions/sprintf.texi: Update.
49121         * doc/functions/vfprintf.texi: Update.
49122         * doc/functions/vprintf.texi: Update.
49123         * doc/functions/vsnprintf.texi: Update.
49124         * doc/functions/vsprintf.texi: Update.
49125
49126 2007-11-03  Bruno Haible  <bruno@clisp.org>
49127
49128         * modules/frexp-nolibm-tests: New file.
49129
49130         * modules/frexp-nolibm: New file.
49131         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
49132
49133 2007-11-03  Bruno Haible  <bruno@clisp.org>
49134
49135         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
49136         value is C99 compliant.
49137         Needed for OSF/1 5.1.
49138
49139 2007-11-03  Bruno Haible  <bruno@clisp.org>
49140
49141         Fix out-of-memory handling of vasnprintf.
49142         * lib/printf-parse.c: Include <errno.h>.
49143         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
49144         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
49145         is already set.
49146
49147 2007-11-02  Eric Blake  <ebb9@byu.net>
49148
49149         Fix tests on cygwin.
49150         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
49151
49152 2007-11-01  Bruno Haible  <bruno@clisp.org>
49153
49154         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
49155         warning.
49156         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
49157         needed for POSIX compatibility.
49158
49159 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
49160
49161         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
49162         for compatibility with GNU.
49163
49164 2007-11-01  Bruno Haible  <bruno@clisp.org>
49165
49166         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
49167         (putenv): Renamed from rpl_putenv. Change argument type from
49168         'const char *' to 'char *'.
49169         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
49170         of defining putenv in config.h, just set REPLACE_PUTENV.
49171         * modules/putenv (Depends-on): Add stdlib.
49172         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
49173         (Include): Use <stdlib.h>.
49174         * lib/stdlib.in.h (putenv): New declaration.
49175         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
49176         REPLACE_PUTENV.
49177         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
49178         REPLACE_PUTENV.
49179         Needed for MacOS X 10.5.0.
49180         Reported by Peter O'Gorman <peter@pogma.com>.
49181
49182 2007-11-01  Jim Meyering  <meyering@redhat.com>
49183
49184         Treat an empty date string exactly like "0".
49185         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
49186         if the remaining date string (to be parsed) is empty, use "0".
49187         Reported by Mischa Molhoek and discussed in this thread:
49188         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
49189
49190 2007-10-31  Bruno Haible  <bruno@clisp.org>
49191
49192         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
49193         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
49194         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
49195         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
49196         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
49197         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
49198
49199 2007-10-31  Bruno Haible  <bruno@clisp.org>
49200
49201         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
49202         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
49203         (AC_TYPE_LONG_LONG_INT): Use it.
49204         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
49205         it as well.
49206         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
49207         to m4/longlong.m4.
49208         * modules/stdint (Files): Remove m4/ulonglong.m4.
49209         * modules/strtoull (Files): Use m4/longlong.m4 instead of
49210         m4/ulonglong.m4.
49211         * modules/strtoumax (Files): Likewise.
49212
49213 2007-10-30  Bruno Haible  <bruno@clisp.org>
49214
49215         * modules/xvasprintf-posix: New file.
49216         Suggested by Eric Blake.
49217
49218 2007-10-30  Bruno Haible  <bruno@clisp.org>
49219
49220         * modules/xprintf-posix-tests: New file.
49221         * tests/test-xprintf-posix.sh: New file.
49222         * tests/test-xprintf-posix.c: New file.
49223         * tests/test-xfprintf-posix.c: New file.
49224
49225         * modules/xprintf-posix: New file.
49226
49227 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49228
49229         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
49230         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
49231         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
49232
49233 2007-10-29  Bruno Haible  <bruno@clisp.org>
49234
49235         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
49236         contain the special marker '_cv_'.
49237         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
49238         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
49239         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
49240         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
49241         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
49242         Reported by Ralf Wildenhues.
49243
49244 2007-10-29  Bruno Haible  <bruno@clisp.org>
49245
49246         * gnulib-tool (func_import): When --lgpl is not specified, set
49247         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
49248         GPLv3.
49249         Reported by Simon Josefsson.
49250
49251 2007-10-28  Bruno Haible  <bruno@clisp.org>
49252
49253         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
49254         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
49255         HAVE_DECL_ISFINITE.
49256         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
49257         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
49258         HAVE_DECL_ISFINITE.
49259
49260 2007-10-28  Bruno Haible  <bruno@clisp.org>
49261
49262         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
49263         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
49264
49265 2007-10-28  Bruno Haible  <bruno@clisp.org>
49266
49267         Fix link errors with Sun C 5.0 on Solaris 10.
49268         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
49269         function is declared but not present in the compiler's libm.
49270         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
49271         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
49272         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
49273         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
49274         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
49275         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
49276         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
49277         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
49278         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
49279         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
49280         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
49281         HAVE_DECL_FLOORL.
49282
49283 2007-10-28  Bruno Haible  <bruno@clisp.org>
49284
49285         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
49286         gl_FUNC_FLOORL. Cache the result.
49287         (gl_FUNC_FLOORL): Use it.
49288         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
49289         gl_FUNC_CEILL. Cache the result.
49290         (gl_FUNC_CEILL): Use it.
49291
49292         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
49293         gl_FUNC_FLOOR. Cache the result.
49294         (gl_FUNC_FLOOR): Use it.
49295         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
49296         gl_FUNC_CEIL. Cache the result.
49297         (gl_FUNC_CEIL): Use it.
49298
49299         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
49300         gl_FUNC_FLOORF. Cache the result.
49301         (gl_FUNC_FLOORF): Use it.
49302         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
49303         gl_FUNC_CEILF. Cache the result.
49304         (gl_FUNC_CEILF): Use it.
49305
49306 2007-10-28  Bruno Haible  <bruno@clisp.org>
49307
49308         * gnulib-tool: Allow specifying the LGPL version number through
49309         --lgpl=2 or --lgpl=3.
49310         (func_usage): Document --lgpl with argument.
49311         Handle --lgpl=... arguments.
49312         (func_import): Recognize also gl_LGPL calls with an argument. When
49313         --lgpl=2 is used and the module's license is just LGPL, report an
49314         error. Set sed_transform_lib_file according to the lgpl variable. In
49315         the generated files, use --lgpl or gl_LGPL invocations with argument,
49316         if necessary.
49317         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
49318         an LGPv2+ license.
49319         * doc/gnulib-tool.texi (Modified imports): Update explanation of
49320         gl_LGPL macro.
49321
49322 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49323             Bruno Haible  <bruno@clisp.org>
49324
49325         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
49326         (u16_uctomb_aux): Likewise.
49327         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
49328         !HAVE_INLINE.
49329         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
49330
49331 2007-10-28  Bruno Haible  <bruno@clisp.org>
49332
49333         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
49334         Invoke AM_GETTEXT_OPTION if it exists.
49335         * modules/vasprintf: Likewise.
49336         * modules/verror: Likewise.
49337         * modules/xprintf: Likewise.
49338         * modules/xvasprintf: Likewise.
49339
49340 2007-10-27  Ben Pfaff  <blp@gnu.org>
49341
49342         * lib/math.in.h: Define isfinite macro and prototypes for
49343         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
49344         implementations.
49345         * m4/math_h.m4: New substitutions for isfinite module.
49346         * lib/isfinite.c: New file.
49347         * m4/isfinite.m4: New file.
49348         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
49349         * modules/isfinite: New file.
49350         * modules/isfinite-tests: New file.
49351         * tests/tests-isfinite.c: New file.
49352         * doc/functions/isfinite.texi: Mention isfinite module.
49353         * MODULES.html.sh: Mention new module.
49354
49355 2007-10-27  Ben Pfaff  <blp@gnu.org>
49356
49357         Ralf Wildenhues reported that Tru64 4.0D declares the round
49358         functions but does not have definitions.
49359         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
49360         cannot be found in any library, set the output variable to
49361         "missing" instead of "".
49362         * m4/round.m4: Also use our substitute if we cannot find round in
49363         any library, even if it is declared.
49364         * m4/roundf.m4: Likewise for roundf.
49365         * m4/roundl.m4: Likewise for roundl.
49366         * lib/math.in.h: Undefine roundf, round, roundl before defining
49367         their replacements, to allow for hypothetical systems where these
49368         may be defined as macros but not available in libraries.
49369
49370 2007-10-27  Bruno Haible  <bruno@clisp.org>
49371
49372         * doc/gnulib.texi: Invoke @firstparagraphindent.
49373         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
49374         changes in gnulib.
49375         (Source changes): New section.
49376
49377 2007-10-26  Bruno Haible  <bruno@clisp.org>
49378
49379         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
49380         borrowed from autoconf.
49381
49382 2007-10-26  Bruno Haible  <bruno@clisp.org>
49383
49384         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
49385         strerror returned the empty string. Needed on HP-UX 11.00.
49386
49387 2007-10-24  Micah Cowan  <micah@cowan.name>
49388
49389         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
49390         * build-aux/bootstrap: Remove support for now-unnecessary option,
49391         --cvs-user, and envvars CVS_USER, CVS_RSH.
49392
49393 2007-10-24  Jim Meyering  <meyering@redhat.com>
49394
49395         Avoid diagnostics from sha1sum when there is no cached checksum.
49396         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
49397         if the po.s1 file hasn't been created yet.
49398
49399         * build-aux/bootstrap: Sync from coreutils:
49400         2007-10-24  Jim Meyering  <meyering@redhat.com>
49401         Get gnulib from the git repository, not from an obsolete cvs one.
49402         * build-aux/bootstrap: Suggestion from Micah Cowan.
49403         2007-10-04  Jim Meyering  <jim@meyering.net>
49404         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
49405         (update_po_files): Work also when there are no .po files in po/.
49406
49407 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
49408
49409         * README: Append ".git" to git and cg examples.
49410         Problem reported by Benoit Sigoure.
49411
49412 2007-10-23  Micah Cowan  <micah@cowan.name>
49413
49414         * users.txt: Add wget.
49415
49416 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49417
49418         Fix linking of some unistdio tests on FreeBSD.
49419         * modules/unistdio/u16-vsnprintf-tests
49420         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
49421         * modules/unistdio/u16-vsprintf-tests
49422         (test_u16_vsnprintf1_LDADD): Likewise.
49423         * modules/unistdio/u32-vsnprintf-tests
49424         (test_u32_vsnprintf1_LDADD): Likewise.
49425         * modules/unistdio/u32-vsprintf-tests
49426         (test_u32_vsprintf1_LDADD): Likewise.
49427         * modules/unistdio/u8-vsnprintf-tests
49428         (test_u8_vsnprintf1_LDADD): Likewise.
49429         * modules/unistdio/u8-vsprintf-tests
49430         (test_u8_vsprintf1_LDADD): Likewise.
49431         * modules/unistdio/ulc-vsnprintf-tests
49432         (test_ulc_vsnprintf1_LDADD): Likewise.
49433         * modules/unistdio/ulc-vsprintf-tests
49434         (test_ulc_vsprintf1_LDADD): Likewise.
49435
49436         Fix linking of some uniconv tests on FreeBSD.
49437         * modules/uniconv/u16-conv-from-enc-tests
49438         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
49439         * modules/uniconv/u16-conv-to-enc-tests
49440         (test_u16_conv_to_enc_LDADD): Likewise.
49441         * modules/uniconv/u16-strconv-from-enc-tests
49442         (test_u16_strconv_from_enc_LDADD): Likewise.
49443         * modules/uniconv/u16-strconv-to-enc-tests
49444         (test_u16_strconv_to_enc_LDADD): Likewise.
49445         * modules/uniconv/u32-conv-from-enc-tests
49446         (test_u32_conv_from_enc_LDADD): Likewise.
49447         * modules/uniconv/u32-conv-to-enc-tests
49448         (test_u32_conv_to_enc_LDADD): Likewise.
49449         * modules/uniconv/u32-strconv-from-enc-tests
49450         (test_u32_strconv_from_enc_LDADD): Likewise.
49451         * modules/uniconv/u32-strconv-to-enc-tests
49452         (test_u32_strconv_to_enc_LDADD): Likewise.
49453         * modules/uniconv/u8-conv-from-enc-tests
49454         (test_u8_conv_from_enc_LDADD): Likewise.
49455         * modules/uniconv/u8-conv-to-enc-tests
49456         (test_u8_conv_to_enc_LDADD): Likewise.
49457         * modules/uniconv/u8-strconv-from-enc-tests
49458         (test_u8_strconv_from_enc_LDADD): Likewise.
49459         * modules/uniconv/u8-strconv-to-enc-tests
49460         (test_u8_strconv_to_enc_LDADD): Likewise.
49461
49462 2007-10-22  Bruno Haible  <bruno@clisp.org>
49463
49464         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
49465         size.
49466
49467 2007-10-22  Eric Blake  <ebb9@byu.net>
49468
49469         Tweak x*printf documentation.
49470         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
49471         variable name and comments.
49472         Suggested by Bruno Haible.
49473
49474 2007-10-22  Bruno Haible  <bruno@clisp.org>
49475
49476         * lib/acl.c (copy_acl): Fix file name in comment.
49477
49478 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
49479
49480         Fix Tru64 problem with stdbool.h.
49481         * lib/stdbool.in.h (false, true):
49482         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
49483         Don't declare as an enum in this situation; it runs afoul of Tru64.
49484         Problem reported by Steven M. Schweda in
49485         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
49486
49487 2007-10-22  Eric Blake  <ebb9@byu.net>
49488
49489         Also wrap vf?printf.
49490         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
49491         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
49492         (xvprintf, xvfprintf): New functions.
49493
49494 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49495
49496         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
49497         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
49498
49499         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
49500         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
49501
49502 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
49503
49504         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
49505         by Bruno Haible.
49506
49507 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49508
49509         * lib/getloadavg.c
49510         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
49511         Undef `sys' after including sys/table.h, for Tru64 4.0D.
49512
49513         * tests/test-i-ring.c: Work for C89.
49514
49515 2007-10-22  Bruno Haible  <bruno@clisp.org>
49516
49517         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
49518         -1u, in preprocessor expression, so that we don't test for the bug
49519         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
49520         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
49521
49522 2007-10-22  Eric Blake  <ebb9@byu.net>
49523
49524         * tests/test-yesno.sh: Silence stderr during test.
49525
49526 2007-10-22  Simon Josefsson  <simon@josefsson.org>
49527
49528         * modules/crypto/gc-camellia: New file.
49529
49530         * m4/gc-camellia.m4: New file.
49531
49532         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
49533
49534         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
49535
49536 2007-10-22  Simon Josefsson  <simon@josefsson.org>
49537
49538         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
49539         --help to stdout.  Reported by sms@antinode.org (Steven
49540         M. Schweda).
49541
49542 2007-10-22  Simon Josefsson  <simon@josefsson.org>
49543
49544         * users.txt: Fix link to libksba.
49545
49546 2007-10-21  Ben Pfaff  <blp@gnu.org>
49547
49548         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
49549         round.c roundf implementation that depends on floorf and ceilf to
49550         be tested unconditionally.
49551
49552 2007-10-21  Ben Pfaff  <blp@gnu.org>
49553
49554         * m4/check-libm-func.m4: Removed.
49555         * m4/check-math-lib.m4: New file.
49556         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
49557         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
49558         definition and lack of AC_LIBOBJ([roundf]).
49559         * m4/roundl.m4: Ditto, and similarly for roundl.
49560         * modules/round: Reference new m4 file.
49561         * modules/roundf: Ditto.
49562         * modules/roundl: Ditto.
49563         * tests/test-round2.c (main): Use ROUND instead of round.
49564         Bug report from Bruno Haible.
49565
49566 2007-10-21  Bruno Haible  <bruno@clisp.org>
49567
49568         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
49569         context.
49570
49571 2007-10-21  Bruno Haible  <bruno@clisp.org>
49572
49573         * tests/test-wcwidth.c (main): Allow negative result for some control
49574         characters.
49575
49576         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
49577         Needed on OSF/1 5.1.
49578
49579 2007-10-21  Bruno Haible  <bruno@clisp.org>
49580
49581         * tests/test-floorf1.c: Include isnanf.h.
49582         (main): Use isnanf() instead of isnan().
49583         * tests/test-ceilf1.c: Include isnanf.h.
49584         (main): Use isnanf() instead of isnan().
49585         * tests/test-truncf1.c: Include isnanf.h.
49586         (main): Use isnanf() instead of isnan().
49587         * tests/test-roundf1.c: Include isnanf.h.
49588         (main): Use isnanf() instead of isnan().
49589
49590 2007-10-21  Eric Blake  <ebb9@byu.net>
49591
49592         * users.txt: Update URL for m4.
49593
49594 2007-10-21  Bruno Haible  <bruno@clisp.org>
49595
49596         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
49597
49598 2007-10-21  Bruno Haible  <bruno@clisp.org>
49599
49600         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
49601         Git's management files if the CVS files are not present.
49602
49603 2007-10-20  Bruno Haible  <bruno@clisp.org>
49604
49605         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
49606         gcc-3.4.x.
49607
49608 2007-10-20  Ben Pfaff  <blp@gnu.org>
49609
49610         * lib/math.in.h: Declare round, roundf, roundl if we are providing
49611         implementations.
49612         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
49613         * lib/round.c: New file.
49614         * lib/roundf.c: New file.
49615         * lib/roundl.c: New file.
49616         * m4/round.m4: New file.
49617         * m4/roundf.m4: New file.
49618         * m4/roundl.m4: New file.
49619         * m4/check-libm-func-m4: New file.
49620         * modules/math: Replace round, roundf, roundl related @VARS@ in
49621         math.in.h.
49622         * modules/round: New file.
49623         * modules/round-tests: New file.
49624         * modules/roundf: New file.
49625         * modules/roundf-tests: New file.
49626         * modules/roundl: New file.
49627         * modules/roundl-tests: New file.
49628         * tests/test-round1.c: New file.
49629         * tests/test-round2.c: New file.
49630         * tests/test-roundf1.c: New file.
49631         * tests/test-roundf2.c: New file.
49632         * tests/test-roundl.c: New file.
49633         * doc/functions/round.texi: Mention round module.
49634         * doc/functions/roundf.texi: Mention roundf module.
49635         * doc/functions/roundl.texi: Mention roundl module.
49636         * MODULES.html.sh: Mention new modules.
49637         Thanks to Bruno Haible for suggestions.
49638
49639 2007-10-20  Jim Meyering  <meyering@redhat.com>
49640
49641         * lib/xprintf.c: Include <config.h> unconditionally.
49642
49643         Change xprintf's license to GPL.
49644         * modules/xprintf (License): s/LGPL/GPL/, since this module
49645         depends on modules (exit and exitfail) which are GPL.
49646         Suggestion from Bruno Haible.
49647
49648         xprintf fixes.
49649         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
49650         Use a clearer diagnostic.
49651         Patch from Bruno Haible.
49652
49653 2007-10-20  Bruno Haible  <bruno@clisp.org>
49654
49655         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
49656         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
49657         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49658
49659 2007-10-20  Bruno Haible  <bruno@clisp.org>
49660
49661         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
49662         precision in the comparison result > x - 1 or similar.
49663         * tests/test-ceilf2.c (correct_result_p): Likewise.
49664         * tests/test-truncf2.c (correct_result_p): Likewise.
49665         * tests/test-trunc2.c (correct_result_p): Likewise.
49666         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49667
49668 2007-10-20  Bruno Haible  <bruno@clisp.org>
49669
49670         * modules/ceil: New file.
49671         * m4/ceil.m4: New file.
49672         * doc/functions/ceil.texi: Mention the 'ceil' module.
49673
49674 2007-10-20  Bruno Haible  <bruno@clisp.org>
49675
49676         * modules/floor: New file.
49677         * m4/floor.m4: New file.
49678         * doc/functions/floor.texi: Mention the 'floor' module.
49679
49680 2007-10-20  Bruno Haible  <bruno@clisp.org>
49681
49682         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
49683         of %a.
49684         * modules/floorf-tests (Depends-on): Likewise.
49685         * modules/truncf-tests (Depends-on): Likewise.
49686         * modules/trunc-tests (Depends-on): Likewise.
49687         Reported by Ben Pfaff.
49688
49689 2007-10-19  Jim Meyering  <meyering@redhat.com>
49690
49691         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
49692         Don't bother testing specific errno values.  Just test ferror.
49693
49694         New module: xprintf
49695         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
49696
49697 2007-10-19  Bruno Haible  <bruno@clisp.org>
49698
49699         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
49700         syntax.
49701         * modules/javaexec (Makefile.am): Likewise.
49702         * modules/relocatable-prog (Makefile.am): Likewise.
49703         Suggested by Jim Meyering.
49704
49705 2007-10-18  Bruno Haible  <bruno@clisp.org>
49706
49707         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
49708         Reported by Jim Meyering.
49709
49710 2007-10-18  Eric Blake  <ebb9@byu.net>
49711
49712         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
49713
49714 2007-10-18  Bruno Haible  <bruno@clisp.org>
49715
49716         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
49717         the format string into writable memory. Needed in Fortify conditions.
49718
49719 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
49720             Bruno Haible  <bruno@clisp.org>
49721
49722         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
49723         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
49724         * modules/trim (Depends-on): Add mbchar.
49725         (configure.ac): Add gl_FUNC_MBRTOWC.
49726         (Makefile.am): Augment lib_SOURCES.
49727
49728 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
49729
49730         Modify glob.c to use fstatat and dirfd, to simplify it.
49731         Suggested by Eric Blake.
49732         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
49733         Don't include <stdbool.h>; not used.
49734         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
49735         (link_exists_p): Simplify implementation, since we can now assume
49736         dirfd and fstatat.
49737         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
49738
49739 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49740
49741         * gnulib-tool (func_get_dependencies): Fix sed script to
49742         match only tests.
49743
49744 2007-10-17  Bruno Haible  <bruno@clisp.org>
49745
49746         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
49747         allow locale names without encoding suffix.
49748         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
49749         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
49750
49751 2007-10-16  Bruno Haible  <bruno@clisp.org>
49752
49753         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
49754         * lib/getgroups.c (getgroups): Likewise.
49755         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
49756
49757 2007-10-16  Bruno Haible  <bruno@clisp.org>
49758
49759         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
49760         * modules/malloc-posix (License): Likewise.
49761         * modules/realloc-posix (License): Likewise.
49762         * modules/calloc-posix (License): Likewise.
49763         * modules/intprops (License): Change from GPL to LGPL, with
49764         Paul Eggert's approval.
49765
49766 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
49767
49768         Merge glibc changes into lib/glob.c.
49769
49770         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
49771         2007-10-15 04:59:03 UTC.  Here are the changes:
49772
49773         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
49774
49775         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
49776
49777         * lib/glob.c: Add some branch prediction throughout.
49778
49779         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
49780
49781         [BZ #5103]
49782         * lib/glob.c (glob): Recognize patterns starting \/.
49783
49784         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
49785
49786         [BZ #3996]
49787         * lib/glob.c (attribute_hidden): Define if not defined.
49788         (glob): Unescape dirname, filename or username when needed and not
49789         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
49790         is NULL.  Handle unescaped [ in pattern without closing ].
49791         Don't pass GLOB_CHECK down to recursive glob for directories.
49792         (__glob_pattern_type): New function.
49793         (__glob_pattern_p): Implement using __glob_pattern_type.
49794         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
49795         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
49796         Remove unreachable code.
49797
49798         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
49799
49800         * lib/glob.c (glob_in_dir): Add some comments and asserts to
49801         explain why there are no leaks.
49802
49803         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
49804
49805         [BZ #3253]
49806         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
49807         time, rather allocate increasingly bigger arrays of pointers, if
49808         possible with alloca, if too large with malloc.
49809
49810 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
49811
49812         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
49813         Problem reported by H.Merijn Brand in
49814         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
49815         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
49816         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
49817
49818 2007-10-15  Bruno Haible  <bruno@clisp.org>
49819
49820         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
49821         with explicit rpl_ prefix.
49822         * lib/fopen.c (fopen): Likewise.
49823         * lib/freopen.c (freopen): Likewise.
49824         * lib/iconv.c (iconv): Likewise.
49825         * lib/iconv_close.c (iconv_close): Likewise.
49826
49827 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49828
49829         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
49830
49831 2007-10-15  Bruno Haible  <bruno@clisp.org>
49832
49833         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
49834         <stddef.h> instead of <stdlib.h> since we only need NULL.
49835         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49836
49837 2007-10-15  Bruno Haible  <bruno@clisp.org>
49838
49839         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
49840         Replace paragraph talking about LIBOBJS.
49841         Reported by Colin Watson <cjwatson@debian.org>.
49842
49843 2007-10-15  Bruno Haible  <bruno@clisp.org>
49844
49845         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
49846         <stdlib.h> before using NULL.
49847
49848 2007-10-15  Simon Josefsson  <simon@josefsson.org>
49849
49850         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
49851         Reported by Albert Chin <china@thewrittenword.com>.
49852
49853 2007-10-14  Bruno Haible  <bruno@clisp.org>
49854
49855         * modules/iconv_open-utf-tests: New file.
49856         * tests/test-iconv-utf.c: New file.
49857
49858         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
49859         * modules/iconv_open-utf: New file.
49860         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
49861         (iconv, iconv_close): New declarations.
49862         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
49863         be defined.
49864         (iconv_open): Add special handling of conversion between UTF-8 and
49865         UTF-{16,32}{BE,LE}.
49866         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
49867         * lib/iconv_close.c: New file.
49868         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
49869         gl_FUNC_ICONV_OPEN.
49870         (gl_FUNC_ICONV_OPEN): Use it.
49871         (gl_FUNC_ICONV_OPEN_UTF): New macro.
49872         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
49873         and REPLACE_ICONV_UTF.
49874         * modules/iconv_open (Depends-on): Add c-strcase.
49875         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
49876         ICONV_CONST.
49877         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
49878
49879 2007-10-13  Albert Chin  <china@thewrittenword.com>
49880             Bruno Haible  <bruno@clisp.org>
49881
49882         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
49883         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
49884
49885 2007-10-13  Bruno Haible  <bruno@clisp.org>
49886
49887         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
49888         defined, use the ISO C99 inline semantics.
49889         * lib/argp.h (ARGP_EI): Likewise.
49890
49891 2007-10-13  Bruno Haible  <bruno@clisp.org>
49892
49893         Handle 'inline' change in gcc 4.3.0.
49894         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
49895         argp_fmtstream_write, argp_fmtstream_set_lmargin,
49896         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
49897         argp_fmtstream_point): Disable 'extern' declaration if the function
49898         definition is going to be provided inline.
49899         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
49900         semantics, not the ISO C99 inline semantics.
49901         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
49902         'extern' declaration if the function definition is going to be provided
49903         inline.
49904         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
49905         the GNU C inline semantics, not the ISO C99 inline semantics. With
49906         GCC 4.2, avoid a warning.
49907
49908 2007-10-13  Bruno Haible  <bruno@clisp.org>
49909
49910         * lib/freading.h (freading): Enable the use of __freading for
49911         glibc >= 2.7.
49912         * lib/freading.c (freading): Likewise.
49913
49914 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
49915
49916         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
49917         "warning: C99 inline functions are not supported; using GNU89".
49918
49919 2007-10-12  Bruno Haible  <bruno@clisp.org>
49920
49921         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
49922         of 2.
49923         * tests/test-ceilf2.c: New file.
49924         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
49925
49926         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
49927         * modules/ceilf-tests: Update.
49928
49929 2007-10-12  Bruno Haible  <bruno@clisp.org>
49930
49931         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
49932         of 2.
49933         * tests/test-floorf2.c: New file.
49934         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
49935
49936         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
49937         * modules/floorf-tests: Update.
49938
49939 2007-10-12  Bruno Haible  <bruno@clisp.org>
49940
49941         * tests/test-trunc2.c: New file.
49942         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
49943
49944         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
49945         * modules/trunc-tests: Update.
49946
49947 2007-10-12  Bruno Haible  <bruno@clisp.org>
49948
49949         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
49950         of 2.
49951         * tests/test-truncf2.c: New file.
49952         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
49953
49954         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
49955         * modules/truncf-tests: Update.
49956
49957 2007-10-11  Eric Blake  <ebb9@byu.net>
49958
49959         Don't claim strerror is broken on Interix.
49960         * doc/functions/strerror.texi (strerror): Known broken systems are
49961         now Solaris 8, and not Interix.
49962         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
49963         Interix on cross-compile.
49964         Reported by Martin Koeppe in
49965         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
49966
49967 2007-10-11  Bruno Haible  <bruno@clisp.org>
49968
49969         * modules/i-ring-tests: New file.
49970         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
49971         instead of assert.
49972
49973 2007-10-11  Bruno Haible  <bruno@clisp.org>
49974
49975         * modules/filenamecat-tests: New file.
49976         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
49977         * lib/filenamecat.c: Remove test code.
49978
49979 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
49980
49981         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
49982
49983         * lib/strerror.c: Include <string.h> always, to test interface,
49984         and to remove the need for the dummy.
49985         Include intprops.h to compute width instead of doing it ourselves
49986         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
49987         (strerror): Define it to return NULL if there's no system strerror.
49988         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
49989         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
49990         ancient pre-strerror Unix systems well any more.  Saying "unknown
49991         system error" is enough.
49992         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
49993         simpler strerror.c implementation.
49994         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
49995         Simplify the tests to reflect the simpler strerror implementation.
49996         * modules/strerror (Depends-on): Add intprops.
49997
49998 2007-10-09  Eric Blake  <ebb9@byu.net>
49999
50000         Silence test-fpending.
50001         * modules/fpending-tests (Files): Add wrapper script.
50002         * tests/test-fpending.sh: New file.
50003
50004 2007-10-09  Bruno Haible  <bruno@clisp.org>
50005
50006         * MODULES.html.sh (func_module): Don't create a hyperlink for
50007         function names like 'printf_frexp'.
50008         (Misc): Add crc, memxor.
50009         (Characteristics of floating types): New section.
50010         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
50011         isnanf-nolibm, signbit, trunc, truncf, truncl.
50012         (Enhancements for ISO C 99 functions): New subsection Input/output.
50013         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
50014         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
50015         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
50016         (Compatibility checks for POSIX:2001 functions): Add clock-time.
50017         (Enhancements for POSIX:2001 functions): Add chdir-long.
50018         (File system functions): Add areadlink, chdir-safer, read-file.
50019         Remove cycle-check.
50020         (File system as inode set): New section.
50021         (Date and time): Add gethrxtime.
50022         (Multithreading): Add openmp.
50023         (Internationalization functions): Add localename.
50024         (Unicode string functions): Add unistr/u*-mbsnlen.
50025         (Support for maintaining and releasing projects): Add git-version-gen.
50026         (Lone files): Remove directories.
50027
50028 2007-10-08  Ben Pfaff  <blp@gnu.org>
50029
50030         * lib/xmalloca.h: Fix typo in comment.
50031
50032 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
50033
50034         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
50035         when avoiding problems with integer overflow.  Use a portable test
50036         instead.
50037
50038 2007-10-08  Simon Josefsson  <simon@josefsson.org>
50039
50040         * modules/dummy (License): Change to LGPLv2+.
50041         * modules/float (License): Likewise
50042         * modules/realloc (License): Likewise
50043         * modules/stdlib (License): Likewise
50044
50045 2007-10-07  Bruno Haible  <bruno@clisp.org>
50046
50047         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
50048         * floor.c (TWO_MANT_DIG): Likewise.
50049         * ceil.c (TWO_MANT_DIG): Likewise.
50050         Reported by Ben Pfaff.
50051
50052 2007-10-07  Bruno Haible  <bruno@clisp.org>
50053
50054         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
50055         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
50056         * lib/frexp.c (FUNC): Likewise.
50057         * lib/printf-frexp.h (printf_frexp): Likewise.
50058         * lib/printf-frexpl.h (printf_frexpl): Likewise.
50059         * lib/printf-frexp.c (FUNC): Likewise.
50060         Suggested by Jim Meyering.
50061
50062 2007-10-07  Jim Meyering  <meyering@redhat.com>
50063
50064         Make xnanosleep's integer overflow test more robust.
50065         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
50066         so that gcc-4.3.0 doesn't optimize away this test for overflow.
50067
50068 2007-10-07  Bruno Haible  <bruno@clisp.org>
50069
50070         * NEWS: Mention the license change.
50071
50072         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
50073         abbreviations in the modules files.
50074
50075         Change copyright notice from GPLv2+ to GPLv3+.
50076         * README: Change copyright notice.
50077         * MODULES.html.sh: Likewise.
50078         * build-aux/bootstrap.conf: Likewise.
50079         * build-aux/config.libpath: Likewise.
50080         * build-aux/csharpcomp.sh.in: Likewise.
50081         * build-aux/csharpexec.sh.in: Likewise.
50082         * build-aux/install-reloc: Likewise.
50083         * build-aux/javacomp.sh.in: Likewise.
50084         * build-aux/javaexec.sh.in: Likewise.
50085         * build-aux/ldd.sh.in: Likewise.
50086         * build-aux/reloc-ldflags: Likewise.
50087         * build-aux/relocatable.sh.in: Likewise.
50088         * build-aux/x-to-1.in: Likewise.
50089         * check-module: Likewise.
50090         * config/srclistvars.sh: Likewise.
50091         * gnulib-tool: Likewise.
50092         * lib/acl-internal.h: Likewise.
50093         * lib/acl.c: Likewise.
50094         * lib/acl.h: Likewise.
50095         * lib/acl_entries.c: Likewise.
50096         * lib/areadlink-with-size.c: Likewise.
50097         * lib/areadlink.c: Likewise.
50098         * lib/areadlink.h: Likewise.
50099         * lib/argmatch.c: Likewise.
50100         * lib/argmatch.h: Likewise.
50101         * lib/argp-ba.c: Likewise.
50102         * lib/argp-eexst.c: Likewise.
50103         * lib/argp-fmtstream.c: Likewise.
50104         * lib/argp-fmtstream.h: Likewise.
50105         * lib/argp-fs-xinl.c: Likewise.
50106         * lib/argp-help.c: Likewise.
50107         * lib/argp-namefrob.h: Likewise.
50108         * lib/argp-parse.c: Likewise.
50109         * lib/argp-pin.c: Likewise.
50110         * lib/argp-pv.c: Likewise.
50111         * lib/argp-pvh.c: Likewise.
50112         * lib/argp-xinl.c: Likewise.
50113         * lib/argp.h: Likewise.
50114         * lib/at-func.c: Likewise.
50115         * lib/atanl.c: Likewise.
50116         * lib/backupfile.c: Likewise.
50117         * lib/backupfile.h: Likewise.
50118         * lib/basename.c: Likewise.
50119         * lib/binary-io.h: Likewise.
50120         * lib/byteswap.in.h: Likewise.
50121         * lib/c-stack.c: Likewise.
50122         * lib/c-stack.h: Likewise.
50123         * lib/c-strcasestr.c: Likewise.
50124         * lib/c-strcasestr.h: Likewise.
50125         * lib/c-strstr.c: Likewise.
50126         * lib/c-strstr.h: Likewise.
50127         * lib/c-strtod.c: Likewise.
50128         * lib/calloc.c: Likewise.
50129         * lib/canon-host.c: Likewise.
50130         * lib/canon-host.h: Likewise.
50131         * lib/canonicalize-lgpl.c: Likewise.
50132         * lib/canonicalize.c: Likewise.
50133         * lib/canonicalize.h: Likewise.
50134         * lib/ceil.c: Likewise.
50135         * lib/ceilf.c: Likewise.
50136         * lib/ceill.c: Likewise.
50137         * lib/chdir-long.c: Likewise.
50138         * lib/chdir-long.h: Likewise.
50139         * lib/chdir-safer.c: Likewise.
50140         * lib/chdir-safer.h: Likewise.
50141         * lib/chown.c: Likewise.
50142         * lib/classpath.c: Likewise.
50143         * lib/classpath.h: Likewise.
50144         * lib/clean-temp.c: Likewise.
50145         * lib/clean-temp.h: Likewise.
50146         * lib/cloexec.c: Likewise.
50147         * lib/close-stream.c: Likewise.
50148         * lib/closein.c: Likewise.
50149         * lib/closein.h: Likewise.
50150         * lib/closeout.c: Likewise.
50151         * lib/closeout.h: Likewise.
50152         * lib/concat-filename.c: Likewise.
50153         * lib/copy-file.c: Likewise.
50154         * lib/copy-file.h: Likewise.
50155         * lib/count-one-bits.h: Likewise.
50156         * lib/crc.c: Likewise.
50157         * lib/crc.h: Likewise.
50158         * lib/creat-safer.c: Likewise.
50159         * lib/csharpcomp.c: Likewise.
50160         * lib/csharpcomp.h: Likewise.
50161         * lib/csharpexec.c: Likewise.
50162         * lib/csharpexec.h: Likewise.
50163         * lib/cycle-check.c: Likewise.
50164         * lib/cycle-check.h: Likewise.
50165         * lib/diacrit.c: Likewise.
50166         * lib/diacrit.h: Likewise.
50167         * lib/diffseq.h: Likewise.
50168         * lib/dirchownmod.c: Likewise.
50169         * lib/dirent.in.h: Likewise.
50170         * lib/dirfd.c: Likewise.
50171         * lib/dirfd.h: Likewise.
50172         * lib/dirname.c: Likewise.
50173         * lib/dirname.h: Likewise.
50174         * lib/dummy.c: Likewise.
50175         * lib/dup-safer.c: Likewise.
50176         * lib/dup2.c: Likewise.
50177         * lib/eealloc.h: Likewise.
50178         * lib/error.c: Likewise.
50179         * lib/error.h: Likewise.
50180         * lib/euidaccess.c: Likewise.
50181         * lib/exclude.c: Likewise.
50182         * lib/exclude.h: Likewise.
50183         * lib/execute.c: Likewise.
50184         * lib/execute.h: Likewise.
50185         * lib/exitfail.c: Likewise.
50186         * lib/exitfail.h: Likewise.
50187         * lib/expl.c: Likewise.
50188         * lib/fatal-signal.c: Likewise.
50189         * lib/fatal-signal.h: Likewise.
50190         * lib/fbufmode.c: Likewise.
50191         * lib/fbufmode.h: Likewise.
50192         * lib/fchdir.c: Likewise.
50193         * lib/fchmodat.c: Likewise.
50194         * lib/fchownat.c: Likewise.
50195         * lib/fcntl--.h: Likewise.
50196         * lib/fcntl-safer.h: Likewise.
50197         * lib/fcntl.in.h: Likewise.
50198         * lib/fd-safer.c: Likewise.
50199         * lib/fflush.c: Likewise.
50200         * lib/file-has-acl.c: Likewise.
50201         * lib/file-set.c: Likewise.
50202         * lib/file-type.c: Likewise.
50203         * lib/file-type.h: Likewise.
50204         * lib/fileblocks.c: Likewise.
50205         * lib/filemode.c: Likewise.
50206         * lib/filemode.h: Likewise.
50207         * lib/filename.h: Likewise.
50208         * lib/filenamecat.c: Likewise.
50209         * lib/filenamecat.h: Likewise.
50210         * lib/findprog.c: Likewise.
50211         * lib/findprog.h: Likewise.
50212         * lib/float.in.h: Likewise.
50213         * lib/floor.c: Likewise.
50214         * lib/floorf.c: Likewise.
50215         * lib/floorl.c: Likewise.
50216         * lib/fopen-safer.c: Likewise.
50217         * lib/fopen.c: Likewise.
50218         * lib/fpending.c: Likewise.
50219         * lib/fpending.h: Likewise.
50220         * lib/fprintf.c: Likewise.
50221         * lib/fprintftime.h: Likewise.
50222         * lib/fpucw.h: Likewise.
50223         * lib/fpurge.c: Likewise.
50224         * lib/fpurge.h: Likewise.
50225         * lib/freadable.c: Likewise.
50226         * lib/freadable.h: Likewise.
50227         * lib/freadahead.c: Likewise.
50228         * lib/freadahead.h: Likewise.
50229         * lib/freading.c: Likewise.
50230         * lib/freading.h: Likewise.
50231         * lib/free.c: Likewise.
50232         * lib/freopen.c: Likewise.
50233         * lib/frexp.c: Likewise.
50234         * lib/frexpl.c: Likewise.
50235         * lib/fseek.c: Likewise.
50236         * lib/fseterr.c: Likewise.
50237         * lib/fseterr.h: Likewise.
50238         * lib/fstatat.c: Likewise.
50239         * lib/fstrcmp.c: Likewise.
50240         * lib/fstrcmp.h: Likewise.
50241         * lib/fsusage.c: Likewise.
50242         * lib/fsusage.h: Likewise.
50243         * lib/ftell.c: Likewise.
50244         * lib/ftello.c: Likewise.
50245         * lib/fts-cycle.c: Likewise.
50246         * lib/fts.c: Likewise.
50247         * lib/fts_.h: Likewise.
50248         * lib/full-read.c: Likewise.
50249         * lib/full-read.h: Likewise.
50250         * lib/full-write.c: Likewise.
50251         * lib/full-write.h: Likewise.
50252         * lib/fwritable.c: Likewise.
50253         * lib/fwritable.h: Likewise.
50254         * lib/fwriteerror.c: Likewise.
50255         * lib/fwriteerror.h: Likewise.
50256         * lib/fwriting.c: Likewise.
50257         * lib/fwriting.h: Likewise.
50258         * lib/gcd.c: Likewise.
50259         * lib/gcd.h: Likewise.
50260         * lib/getcwd.c: Likewise.
50261         * lib/getdate.h: Likewise.
50262         * lib/getdate.y: Likewise.
50263         * lib/getdomainname.c: Likewise.
50264         * lib/getdomainname.h: Likewise.
50265         * lib/getgroups.c: Likewise.
50266         * lib/gethostname.c: Likewise.
50267         * lib/gethrxtime.c: Likewise.
50268         * lib/gethrxtime.h: Likewise.
50269         * lib/getloadavg.c: Likewise.
50270         * lib/getndelim2.c: Likewise.
50271         * lib/getndelim2.h: Likewise.
50272         * lib/getnline.c: Likewise.
50273         * lib/getnline.h: Likewise.
50274         * lib/getopt.c: Likewise.
50275         * lib/getopt.in.h: Likewise.
50276         * lib/getopt1.c: Likewise.
50277         * lib/getopt_int.h: Likewise.
50278         * lib/getpagesize.h: Likewise.
50279         * lib/getsubopt.c: Likewise.
50280         * lib/gettime.c: Likewise.
50281         * lib/getugroups.c: Likewise.
50282         * lib/getugroups.h: Likewise.
50283         * lib/getusershell.c: Likewise.
50284         * lib/gl_anyavltree_list1.h: Likewise.
50285         * lib/gl_anyavltree_list2.h: Likewise.
50286         * lib/gl_anyhash_list1.h: Likewise.
50287         * lib/gl_anyhash_list2.h: Likewise.
50288         * lib/gl_anylinked_list1.h: Likewise.
50289         * lib/gl_anylinked_list2.h: Likewise.
50290         * lib/gl_anyrbtree_list1.h: Likewise.
50291         * lib/gl_anyrbtree_list2.h: Likewise.
50292         * lib/gl_anytree_list1.h: Likewise.
50293         * lib/gl_anytree_list2.h: Likewise.
50294         * lib/gl_anytree_oset.h: Likewise.
50295         * lib/gl_anytreehash_list1.h: Likewise.
50296         * lib/gl_anytreehash_list2.h: Likewise.
50297         * lib/gl_array_list.c: Likewise.
50298         * lib/gl_array_list.h: Likewise.
50299         * lib/gl_array_oset.c: Likewise.
50300         * lib/gl_array_oset.h: Likewise.
50301         * lib/gl_avltree_list.c: Likewise.
50302         * lib/gl_avltree_list.h: Likewise.
50303         * lib/gl_avltree_oset.c: Likewise.
50304         * lib/gl_avltree_oset.h: Likewise.
50305         * lib/gl_avltreehash_list.c: Likewise.
50306         * lib/gl_avltreehash_list.h: Likewise.
50307         * lib/gl_carray_list.c: Likewise.
50308         * lib/gl_carray_list.h: Likewise.
50309         * lib/gl_linked_list.c: Likewise.
50310         * lib/gl_linked_list.h: Likewise.
50311         * lib/gl_linkedhash_list.c: Likewise.
50312         * lib/gl_linkedhash_list.h: Likewise.
50313         * lib/gl_list.c: Likewise.
50314         * lib/gl_list.h: Likewise.
50315         * lib/gl_oset.c: Likewise.
50316         * lib/gl_oset.h: Likewise.
50317         * lib/gl_rbtree_list.c: Likewise.
50318         * lib/gl_rbtree_list.h: Likewise.
50319         * lib/gl_rbtree_oset.c: Likewise.
50320         * lib/gl_rbtree_oset.h: Likewise.
50321         * lib/gl_rbtreehash_list.c: Likewise.
50322         * lib/gl_rbtreehash_list.h: Likewise.
50323         * lib/gl_sublist.c: Likewise.
50324         * lib/gl_sublist.h: Likewise.
50325         * lib/group-member.c: Likewise.
50326         * lib/group-member.h: Likewise.
50327         * lib/hard-locale.c: Likewise.
50328         * lib/hard-locale.h: Likewise.
50329         * lib/hash-pjw.c: Likewise.
50330         * lib/hash-pjw.h: Likewise.
50331         * lib/hash-triple.c: Likewise.
50332         * lib/hash.c: Likewise.
50333         * lib/hash.h: Likewise.
50334         * lib/human.c: Likewise.
50335         * lib/human.h: Likewise.
50336         * lib/i-ring.c: Likewise.
50337         * lib/i-ring.h: Likewise.
50338         * lib/idcache.c: Likewise.
50339         * lib/imaxabs.c: Likewise.
50340         * lib/imaxdiv.c: Likewise.
50341         * lib/inet_pton.c: Likewise.
50342         * lib/inet_pton.h: Likewise.
50343         * lib/intprops.h: Likewise.
50344         * lib/inttostr.c: Likewise.
50345         * lib/inttostr.h: Likewise.
50346         * lib/inttypes.in.h: Likewise.
50347         * lib/isapipe.c: Likewise.
50348         * lib/isdir.c: Likewise.
50349         * lib/isnan.c: Likewise.
50350         * lib/isnan.h: Likewise.
50351         * lib/isnanf.c: Likewise.
50352         * lib/isnanf.h: Likewise.
50353         * lib/isnanl-nolibm.h: Likewise.
50354         * lib/isnanl.c: Likewise.
50355         * lib/isnanl.h: Likewise.
50356         * lib/javacomp.c: Likewise.
50357         * lib/javacomp.h: Likewise.
50358         * lib/javaexec.c: Likewise.
50359         * lib/javaexec.h: Likewise.
50360         * lib/javaversion.c: Likewise.
50361         * lib/javaversion.h: Likewise.
50362         * lib/javaversion.java: Likewise.
50363         * lib/lbrkprop.h: Likewise.
50364         * lib/lchmod.h: Likewise.
50365         * lib/lchown.c: Likewise.
50366         * lib/ldexpl.c: Likewise.
50367         * lib/linebreak.c: Likewise.
50368         * lib/linebreak.h: Likewise.
50369         * lib/linebuffer.c: Likewise.
50370         * lib/linebuffer.h: Likewise.
50371         * lib/locale.in.h: Likewise.
50372         * lib/logl.c: Likewise.
50373         * lib/long-options.c: Likewise.
50374         * lib/long-options.h: Likewise.
50375         * lib/lstat.c: Likewise.
50376         * lib/lstat.h: Likewise.
50377         * lib/math.in.h: Likewise.
50378         * lib/mbchar.c: Likewise.
50379         * lib/mbchar.h: Likewise.
50380         * lib/mbfile.h: Likewise.
50381         * lib/mbiter.h: Likewise.
50382         * lib/mbscasecmp.c: Likewise.
50383         * lib/mbscasestr.c: Likewise.
50384         * lib/mbschr.c: Likewise.
50385         * lib/mbscspn.c: Likewise.
50386         * lib/mbslen.c: Likewise.
50387         * lib/mbsncasecmp.c: Likewise.
50388         * lib/mbsnlen.c: Likewise.
50389         * lib/mbspbrk.c: Likewise.
50390         * lib/mbspcasecmp.c: Likewise.
50391         * lib/mbsrchr.c: Likewise.
50392         * lib/mbssep.c: Likewise.
50393         * lib/mbsspn.c: Likewise.
50394         * lib/mbsstr.c: Likewise.
50395         * lib/mbstok_r.c: Likewise.
50396         * lib/mbswidth.c: Likewise.
50397         * lib/mbswidth.h: Likewise.
50398         * lib/mbuiter.h: Likewise.
50399         * lib/memcasecmp.c: Likewise.
50400         * lib/memcasecmp.h: Likewise.
50401         * lib/memchr.c: Likewise.
50402         * lib/memcmp.c: Likewise.
50403         * lib/memcoll.c: Likewise.
50404         * lib/memcoll.h: Likewise.
50405         * lib/memcpy.c: Likewise.
50406         * lib/memrchr.c: Likewise.
50407         * lib/mkancesdirs.c: Likewise.
50408         * lib/mkdir-p.c: Likewise.
50409         * lib/mkdir-p.h: Likewise.
50410         * lib/mkdir.c: Likewise.
50411         * lib/mkdirat.c: Likewise.
50412         * lib/mkdtemp.c: Likewise.
50413         * lib/mkstemp-safer.c: Likewise.
50414         * lib/mkstemp.c: Likewise.
50415         * lib/modechange.c: Likewise.
50416         * lib/modechange.h: Likewise.
50417         * lib/mountlist.c: Likewise.
50418         * lib/mountlist.h: Likewise.
50419         * lib/mpsort.c: Likewise.
50420         * lib/nanosleep.c: Likewise.
50421         * lib/obstack.c: Likewise.
50422         * lib/obstack.h: Likewise.
50423         * lib/open-safer.c: Likewise.
50424         * lib/open.c: Likewise.
50425         * lib/openat-die.c: Likewise.
50426         * lib/openat-priv.h: Likewise.
50427         * lib/openat-proc.c: Likewise.
50428         * lib/openat.c: Likewise.
50429         * lib/openat.h: Likewise.
50430         * lib/pagealign_alloc.c: Likewise.
50431         * lib/pagealign_alloc.h: Likewise.
50432         * lib/physmem.c: Likewise.
50433         * lib/physmem.h: Likewise.
50434         * lib/pipe-safer.c: Likewise.
50435         * lib/pipe.c: Likewise.
50436         * lib/pipe.h: Likewise.
50437         * lib/posixtm.c: Likewise.
50438         * lib/posixtm.h: Likewise.
50439         * lib/posixver.c: Likewise.
50440         * lib/printf-frexp.c: Likewise.
50441         * lib/printf-frexp.h: Likewise.
50442         * lib/printf-frexpl.c: Likewise.
50443         * lib/printf-frexpl.h: Likewise.
50444         * lib/printf.c: Likewise.
50445         * lib/progname.c: Likewise.
50446         * lib/progname.h: Likewise.
50447         * lib/progreloc.c: Likewise.
50448         * lib/putenv.c: Likewise.
50449         * lib/quote.c: Likewise.
50450         * lib/quote.h: Likewise.
50451         * lib/quotearg.c: Likewise.
50452         * lib/quotearg.h: Likewise.
50453         * lib/raise.c: Likewise.
50454         * lib/readline.c: Likewise.
50455         * lib/readline.h: Likewise.
50456         * lib/readlink.c: Likewise.
50457         * lib/readtokens.c: Likewise.
50458         * lib/readtokens.h: Likewise.
50459         * lib/readtokens0.c: Likewise.
50460         * lib/readtokens0.h: Likewise.
50461         * lib/readutmp.c: Likewise.
50462         * lib/readutmp.h: Likewise.
50463         * lib/realloc.c: Likewise.
50464         * lib/relocwrapper.c: Likewise.
50465         * lib/rename-dest-slash.c: Likewise.
50466         * lib/rename.c: Likewise.
50467         * lib/rmdir.c: Likewise.
50468         * lib/rpmatch.c: Likewise.
50469         * lib/safe-read.c: Likewise.
50470         * lib/safe-read.h: Likewise.
50471         * lib/safe-write.c: Likewise.
50472         * lib/safe-write.h: Likewise.
50473         * lib/same-inode.h: Likewise.
50474         * lib/same.c: Likewise.
50475         * lib/same.h: Likewise.
50476         * lib/save-cwd.c: Likewise.
50477         * lib/save-cwd.h: Likewise.
50478         * lib/savedir.c: Likewise.
50479         * lib/savedir.h: Likewise.
50480         * lib/savewd.c: Likewise.
50481         * lib/savewd.h: Likewise.
50482         * lib/search.in.h: Likewise.
50483         * lib/setenv.c: Likewise.
50484         * lib/setenv.h: Likewise.
50485         * lib/settime.c: Likewise.
50486         * lib/sh-quote.c: Likewise.
50487         * lib/sh-quote.h: Likewise.
50488         * lib/sig2str.c: Likewise.
50489         * lib/sig2str.h: Likewise.
50490         * lib/signal.in.h: Likewise.
50491         * lib/signbitd.c: Likewise.
50492         * lib/signbitf.c: Likewise.
50493         * lib/signbitl.c: Likewise.
50494         * lib/sigprocmask.c: Likewise.
50495         * lib/sincosl.c: Likewise.
50496         * lib/sleep.c: Likewise.
50497         * lib/sprintf.c: Likewise.
50498         * lib/sqrtl.c: Likewise.
50499         * lib/stat-time.h: Likewise.
50500         * lib/stdio--.h: Likewise.
50501         * lib/stdio-safer.h: Likewise.
50502         * lib/stdlib--.h: Likewise.
50503         * lib/stdlib-safer.h: Likewise.
50504         * lib/stdlib.in.h: Likewise.
50505         * lib/stpcpy.c: Likewise.
50506         * lib/stpncpy.c: Likewise.
50507         * lib/strchrnul.c: Likewise.
50508         * lib/strcspn.c: Likewise.
50509         * lib/strerror.c: Likewise.
50510         * lib/strftime.c: Likewise.
50511         * lib/strftime.h: Likewise.
50512         * lib/striconveh.c: Likewise.
50513         * lib/striconveh.h: Likewise.
50514         * lib/striconveha.c: Likewise.
50515         * lib/striconveha.h: Likewise.
50516         * lib/stripslash.c: Likewise.
50517         * lib/strnlen1.c: Likewise.
50518         * lib/strnlen1.h: Likewise.
50519         * lib/strtod.c: Likewise.
50520         * lib/strtoimax.c: Likewise.
50521         * lib/strtok_r.c: Likewise.
50522         * lib/strtol.c: Likewise.
50523         * lib/strtoll.c: Likewise.
50524         * lib/strtoul.c: Likewise.
50525         * lib/strtoull.c: Likewise.
50526         * lib/sysexits.in.h: Likewise.
50527         * lib/tempname.c: Likewise.
50528         * lib/tempname.h: Likewise.
50529         * lib/timespec.h: Likewise.
50530         * lib/tls.c: Likewise.
50531         * lib/tls.h: Likewise.
50532         * lib/tmpdir.c: Likewise.
50533         * lib/tmpdir.h: Likewise.
50534         * lib/tmpfile-safer.c: Likewise.
50535         * lib/tmpfile.c: Likewise.
50536         * lib/trigl.c: Likewise.
50537         * lib/trigl.h: Likewise.
50538         * lib/trim.c: Likewise.
50539         * lib/trim.h: Likewise.
50540         * lib/trunc.c: Likewise.
50541         * lib/truncf.c: Likewise.
50542         * lib/truncl.c: Likewise.
50543         * lib/tsearch.c: Likewise.
50544         * lib/unicodeio.c: Likewise.
50545         * lib/unicodeio.h: Likewise.
50546         * lib/unistd--.h: Likewise.
50547         * lib/unistd-safer.h: Likewise.
50548         * lib/unistdio/ulc-fprintf.c: Likewise.
50549         * lib/unistdio/ulc-vfprintf.c: Likewise.
50550         * lib/unlinkdir.c: Likewise.
50551         * lib/unlinkdir.h: Likewise.
50552         * lib/unlocked-io.h: Likewise.
50553         * lib/unsetenv.c: Likewise.
50554         * lib/userspec.c: Likewise.
50555         * lib/utime.c: Likewise.
50556         * lib/utimecmp.c: Likewise.
50557         * lib/utimecmp.h: Likewise.
50558         * lib/utimens.c: Likewise.
50559         * lib/verify.h: Likewise.
50560         * lib/verror.c: Likewise.
50561         * lib/verror.h: Likewise.
50562         * lib/version-etc-fsf.c: Likewise.
50563         * lib/version-etc.c: Likewise.
50564         * lib/version-etc.h: Likewise.
50565         * lib/vfprintf.c: Likewise.
50566         * lib/vprintf.c: Likewise.
50567         * lib/vsprintf.c: Likewise.
50568         * lib/w32spawn.h: Likewise.
50569         * lib/wait-process.c: Likewise.
50570         * lib/wait-process.h: Likewise.
50571         * lib/wcwidth.c: Likewise.
50572         * lib/write-any-file.c: Likewise.
50573         * lib/xalloc-die.c: Likewise.
50574         * lib/xalloc.h: Likewise.
50575         * lib/xasprintf.c: Likewise.
50576         * lib/xgetcwd.c: Likewise.
50577         * lib/xgetcwd.h: Likewise.
50578         * lib/xgetdomainname.c: Likewise.
50579         * lib/xgetdomainname.h: Likewise.
50580         * lib/xgethostname.c: Likewise.
50581         * lib/xmalloc.c: Likewise.
50582         * lib/xmalloca.c: Likewise.
50583         * lib/xmalloca.h: Likewise.
50584         * lib/xmemcoll.c: Likewise.
50585         * lib/xnanosleep.c: Likewise.
50586         * lib/xreadlink.c: Likewise.
50587         * lib/xreadlink.h: Likewise.
50588         * lib/xsetenv.c: Likewise.
50589         * lib/xsetenv.h: Likewise.
50590         * lib/xstriconv.c: Likewise.
50591         * lib/xstriconv.h: Likewise.
50592         * lib/xstrndup.c: Likewise.
50593         * lib/xstrndup.h: Likewise.
50594         * lib/xstrtod.c: Likewise.
50595         * lib/xstrtod.h: Likewise.
50596         * lib/xstrtol-error.c: Likewise.
50597         * lib/xstrtol.c: Likewise.
50598         * lib/xstrtol.h: Likewise.
50599         * lib/xtime.h: Likewise.
50600         * lib/xvasprintf.c: Likewise.
50601         * lib/xvasprintf.h: Likewise.
50602         * lib/yesno.c: Likewise.
50603         * lib/yesno.h: Likewise.
50604         * posix-modules: Likewise.
50605         * tests/test-alloca-opt.c: Likewise.
50606         * tests/test-arcfour.c: Likewise.
50607         * tests/test-arctwo.c: Likewise.
50608         * tests/test-argmatch.c: Likewise.
50609         * tests/test-argp-2.sh: Likewise.
50610         * tests/test-argp.c: Likewise.
50611         * tests/test-arpa_inet.c: Likewise.
50612         * tests/test-array_list.c: Likewise.
50613         * tests/test-array_oset.c: Likewise.
50614         * tests/test-atexit.c: Likewise.
50615         * tests/test-avltree_list.c: Likewise.
50616         * tests/test-avltree_oset.c: Likewise.
50617         * tests/test-avltreehash_list.c: Likewise.
50618         * tests/test-base64.c: Likewise.
50619         * tests/test-binary-io.c: Likewise.
50620         * tests/test-byteswap.c: Likewise.
50621         * tests/test-c-ctype.c: Likewise.
50622         * tests/test-c-strcasecmp.c: Likewise.
50623         * tests/test-c-strcasestr.c: Likewise.
50624         * tests/test-c-strncasecmp.c: Likewise.
50625         * tests/test-c-strstr.c: Likewise.
50626         * tests/test-canonicalize-lgpl.c: Likewise.
50627         * tests/test-canonicalize.c: Likewise.
50628         * tests/test-carray_list.c: Likewise.
50629         * tests/test-ceilf.c: Likewise.
50630         * tests/test-ceill.c: Likewise.
50631         * tests/test-count-one-bits.c: Likewise.
50632         * tests/test-crc.c: Likewise.
50633         * tests/test-dirname.c: Likewise.
50634         * tests/test-fbufmode.c: Likewise.
50635         * tests/test-fcntl.c: Likewise.
50636         * tests/test-fflush.c: Likewise.
50637         * tests/test-floorf.c: Likewise.
50638         * tests/test-floorl.c: Likewise.
50639         * tests/test-fopen.c: Likewise.
50640         * tests/test-fprintf-posix.c: Likewise.
50641         * tests/test-fprintf-posix.h: Likewise.
50642         * tests/test-fpurge.c: Likewise.
50643         * tests/test-freadable.c: Likewise.
50644         * tests/test-freadahead.c: Likewise.
50645         * tests/test-freading.c: Likewise.
50646         * tests/test-freopen.c: Likewise.
50647         * tests/test-frexp.c: Likewise.
50648         * tests/test-frexpl.c: Likewise.
50649         * tests/test-fseek.c: Likewise.
50650         * tests/test-fseeko.c: Likewise.
50651         * tests/test-fseterr.c: Likewise.
50652         * tests/test-fstrcmp.c: Likewise.
50653         * tests/test-ftell.c: Likewise.
50654         * tests/test-ftello.c: Likewise.
50655         * tests/test-fwritable.c: Likewise.
50656         * tests/test-fwriting.c: Likewise.
50657         * tests/test-getaddrinfo.c: Likewise.
50658         * tests/test-getpass.c: Likewise.
50659         * tests/test-gettimeofday.c: Likewise.
50660         * tests/test-hmac-md5.c: Likewise.
50661         * tests/test-hmac-sha1.c: Likewise.
50662         * tests/test-iconv.c: Likewise.
50663         * tests/test-iconvme.c: Likewise.
50664         * tests/test-inttypes.c: Likewise.
50665         * tests/test-isnan.c: Likewise.
50666         * tests/test-isnanf.c: Likewise.
50667         * tests/test-isnanl-nolibm.c: Likewise.
50668         * tests/test-isnanl.c: Likewise.
50669         * tests/test-isnanl.h: Likewise.
50670         * tests/test-ldexpl.c: Likewise.
50671         * tests/test-linked_list.c: Likewise.
50672         * tests/test-linkedhash_list.c: Likewise.
50673         * tests/test-locale.c: Likewise.
50674         * tests/test-localename.c: Likewise.
50675         * tests/test-lock.c: Likewise.
50676         * tests/test-lseek.c: Likewise.
50677         * tests/test-malloca.c: Likewise.
50678         * tests/test-math.c: Likewise.
50679         * tests/test-mbscasecmp.c: Likewise.
50680         * tests/test-mbscasestr1.c: Likewise.
50681         * tests/test-mbscasestr2.c: Likewise.
50682         * tests/test-mbscasestr3.c: Likewise.
50683         * tests/test-mbscasestr4.c: Likewise.
50684         * tests/test-mbschr.c: Likewise.
50685         * tests/test-mbscspn.c: Likewise.
50686         * tests/test-mbsncasecmp.c: Likewise.
50687         * tests/test-mbspbrk.c: Likewise.
50688         * tests/test-mbspcasecmp.c: Likewise.
50689         * tests/test-mbsrchr.c: Likewise.
50690         * tests/test-mbsspn.c: Likewise.
50691         * tests/test-mbsstr1.c: Likewise.
50692         * tests/test-mbsstr2.c: Likewise.
50693         * tests/test-mbsstr3.c: Likewise.
50694         * tests/test-md5.c: Likewise.
50695         * tests/test-memmem.c: Likewise.
50696         * tests/test-netinet_in.c: Likewise.
50697         * tests/test-open.c: Likewise.
50698         * tests/test-printf-frexp.c: Likewise.
50699         * tests/test-printf-frexpl.c: Likewise.
50700         * tests/test-printf-posix.c: Likewise.
50701         * tests/test-printf-posix.h: Likewise.
50702         * tests/test-rbtree_list.c: Likewise.
50703         * tests/test-rbtree_oset.c: Likewise.
50704         * tests/test-rbtreehash_list.c: Likewise.
50705         * tests/test-read-file.c: Likewise.
50706         * tests/test-rijndael.c: Likewise.
50707         * tests/test-search.c: Likewise.
50708         * tests/test-signbit.c: Likewise.
50709         * tests/test-sleep.c: Likewise.
50710         * tests/test-snprintf-posix.c: Likewise.
50711         * tests/test-snprintf-posix.h: Likewise.
50712         * tests/test-snprintf.c: Likewise.
50713         * tests/test-sprintf-posix.c: Likewise.
50714         * tests/test-sprintf-posix.h: Likewise.
50715         * tests/test-stat-time.c: Likewise.
50716         * tests/test-stdbool.c: Likewise.
50717         * tests/test-stdint.c: Likewise.
50718         * tests/test-stdio.c: Likewise.
50719         * tests/test-stdlib.c: Likewise.
50720         * tests/test-stpncpy.c: Likewise.
50721         * tests/test-strcasestr.c: Likewise.
50722         * tests/test-striconv.c: Likewise.
50723         * tests/test-striconveh.c: Likewise.
50724         * tests/test-striconveha.c: Likewise.
50725         * tests/test-string.c: Likewise.
50726         * tests/test-sys_select.c: Likewise.
50727         * tests/test-sys_socket.c: Likewise.
50728         * tests/test-sys_stat.c: Likewise.
50729         * tests/test-sys_time.c: Likewise.
50730         * tests/test-sysexits.c: Likewise.
50731         * tests/test-time.c: Likewise.
50732         * tests/test-tls.c: Likewise.
50733         * tests/test-trunc.c: Likewise.
50734         * tests/test-truncf.c: Likewise.
50735         * tests/test-truncl.c: Likewise.
50736         * tests/test-unistd.c: Likewise.
50737         * tests/test-vasnprintf-posix.c: Likewise.
50738         * tests/test-vasnprintf-posix2.c: Likewise.
50739         * tests/test-vasnprintf.c: Likewise.
50740         * tests/test-vasprintf-posix.c: Likewise.
50741         * tests/test-vasprintf.c: Likewise.
50742         * tests/test-verify.c: Likewise.
50743         * tests/test-vfprintf-posix.c: Likewise.
50744         * tests/test-vprintf-posix.c: Likewise.
50745         * tests/test-vsnprintf-posix.c: Likewise.
50746         * tests/test-vsnprintf.c: Likewise.
50747         * tests/test-vsprintf-posix.c: Likewise.
50748         * tests/test-wchar.c: Likewise.
50749         * tests/test-wctype.c: Likewise.
50750         * tests/test-wcwidth.c: Likewise.
50751         * tests/test-xstrtol.c: Likewise.
50752         * tests/test-xvasprintf.c: Likewise.
50753         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
50754         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
50755         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
50756         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
50757         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
50758         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
50759         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
50760         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
50761         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
50762         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
50763         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
50764         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
50765         * tests/uniname/test-uninames.c: Likewise.
50766         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
50767         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
50768         * tests/unistdio/test-u16-printf1.h: Likewise.
50769         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
50770         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
50771         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
50772         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
50773         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
50774         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
50775         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
50776         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
50777         * tests/unistdio/test-u32-printf1.h: Likewise.
50778         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
50779         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
50780         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
50781         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
50782         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
50783         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
50784         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
50785         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
50786         * tests/unistdio/test-u8-printf1.h: Likewise.
50787         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
50788         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
50789         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
50790         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
50791         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
50792         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
50793         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
50794         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
50795         * tests/unistdio/test-ulc-printf1.h: Likewise.
50796         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
50797         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
50798         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
50799         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
50800         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
50801         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
50802         * tests/uniwidth/test-u16-strwidth.c: Likewise.
50803         * tests/uniwidth/test-u16-width.c: Likewise.
50804         * tests/uniwidth/test-u32-strwidth.c: Likewise.
50805         * tests/uniwidth/test-u32-width.c: Likewise.
50806         * tests/uniwidth/test-u8-strwidth.c: Likewise.
50807         * tests/uniwidth/test-u8-width.c: Likewise.
50808         * tests/uniwidth/test-uc_width.c: Likewise.
50809         * config/srclist-update: Likewise.
50810         (fixlicense): Update to GPLv3+.
50811
50812         Change copyright notice from LGPLv2.1+ to LGPLv3+.
50813         * tests/test-tsearch.c: Change copyright notice.
50814
50815         Change copyright notice from LGPLv2.0+ to LGPLv3+.
50816         * lib/c-strcaseeq.h: Change copyright notice.
50817         * lib/streq.h: Likewise.
50818         * lib/uniconv.h: Likewise.
50819         * lib/uniconv/u-conv-from-enc.h: Likewise.
50820         * lib/uniconv/u-conv-to-enc.h: Likewise.
50821         * lib/uniconv/u-strconv-from-enc.h: Likewise.
50822         * lib/uniconv/u-strconv-to-enc.h: Likewise.
50823         * lib/uniconv/u16-conv-from-enc.c: Likewise.
50824         * lib/uniconv/u16-conv-to-enc.c: Likewise.
50825         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
50826         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
50827         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
50828         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
50829         * lib/uniconv/u32-conv-from-enc.c: Likewise.
50830         * lib/uniconv/u32-conv-to-enc.c: Likewise.
50831         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
50832         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
50833         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
50834         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
50835         * lib/uniconv/u8-conv-from-enc.c: Likewise.
50836         * lib/uniconv/u8-conv-to-enc.c: Likewise.
50837         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
50838         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
50839         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
50840         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
50841         * lib/uniname.h: Likewise.
50842         * lib/uniname/uniname.c: Likewise.
50843         * lib/unistdio.h: Likewise.
50844         * lib/unistdio/u-asnprintf.h: Likewise.
50845         * lib/unistdio/u-asprintf.h: Likewise.
50846         * lib/unistdio/u-printf-args.c: Likewise.
50847         * lib/unistdio/u-printf-args.h: Likewise.
50848         * lib/unistdio/u-printf-parse.h: Likewise.
50849         * lib/unistdio/u-snprintf.h: Likewise.
50850         * lib/unistdio/u-sprintf.h: Likewise.
50851         * lib/unistdio/u-vasprintf.h: Likewise.
50852         * lib/unistdio/u-vsnprintf.h: Likewise.
50853         * lib/unistdio/u-vsprintf.h: Likewise.
50854         * lib/unistdio/u16-asnprintf.c: Likewise.
50855         * lib/unistdio/u16-asprintf.c: Likewise.
50856         * lib/unistdio/u16-printf-parse.c: Likewise.
50857         * lib/unistdio/u16-snprintf.c: Likewise.
50858         * lib/unistdio/u16-sprintf.c: Likewise.
50859         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
50860         * lib/unistdio/u16-u16-asprintf.c: Likewise.
50861         * lib/unistdio/u16-u16-snprintf.c: Likewise.
50862         * lib/unistdio/u16-u16-sprintf.c: Likewise.
50863         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
50864         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
50865         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
50866         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
50867         * lib/unistdio/u16-vasnprintf.c: Likewise.
50868         * lib/unistdio/u16-vasprintf.c: Likewise.
50869         * lib/unistdio/u16-vsnprintf.c: Likewise.
50870         * lib/unistdio/u16-vsprintf.c: Likewise.
50871         * lib/unistdio/u32-asnprintf.c: Likewise.
50872         * lib/unistdio/u32-asprintf.c: Likewise.
50873         * lib/unistdio/u32-printf-parse.c: Likewise.
50874         * lib/unistdio/u32-snprintf.c: Likewise.
50875         * lib/unistdio/u32-sprintf.c: Likewise.
50876         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
50877         * lib/unistdio/u32-u32-asprintf.c: Likewise.
50878         * lib/unistdio/u32-u32-snprintf.c: Likewise.
50879         * lib/unistdio/u32-u32-sprintf.c: Likewise.
50880         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
50881         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
50882         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
50883         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
50884         * lib/unistdio/u32-vasnprintf.c: Likewise.
50885         * lib/unistdio/u32-vasprintf.c: Likewise.
50886         * lib/unistdio/u32-vsnprintf.c: Likewise.
50887         * lib/unistdio/u32-vsprintf.c: Likewise.
50888         * lib/unistdio/u8-asnprintf.c: Likewise.
50889         * lib/unistdio/u8-asprintf.c: Likewise.
50890         * lib/unistdio/u8-printf-parse.c: Likewise.
50891         * lib/unistdio/u8-snprintf.c: Likewise.
50892         * lib/unistdio/u8-sprintf.c: Likewise.
50893         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
50894         * lib/unistdio/u8-u8-asprintf.c: Likewise.
50895         * lib/unistdio/u8-u8-snprintf.c: Likewise.
50896         * lib/unistdio/u8-u8-sprintf.c: Likewise.
50897         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
50898         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
50899         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
50900         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
50901         * lib/unistdio/u8-vasnprintf.c: Likewise.
50902         * lib/unistdio/u8-vasprintf.c: Likewise.
50903         * lib/unistdio/u8-vsnprintf.c: Likewise.
50904         * lib/unistdio/u8-vsprintf.c: Likewise.
50905         * lib/unistdio/ulc-asnprintf.c: Likewise.
50906         * lib/unistdio/ulc-asprintf.c: Likewise.
50907         * lib/unistdio/ulc-printf-parse.c: Likewise.
50908         * lib/unistdio/ulc-snprintf.c: Likewise.
50909         * lib/unistdio/ulc-sprintf.c: Likewise.
50910         * lib/unistdio/ulc-vasnprintf.c: Likewise.
50911         * lib/unistdio/ulc-vasprintf.c: Likewise.
50912         * lib/unistdio/ulc-vsnprintf.c: Likewise.
50913         * lib/unistdio/ulc-vsprintf.c: Likewise.
50914         * lib/unistr.h: Likewise.
50915         * lib/unistr/u-cpy-alloc.h: Likewise.
50916         * lib/unistr/u-cpy.h: Likewise.
50917         * lib/unistr/u-endswith.h: Likewise.
50918         * lib/unistr/u-move.h: Likewise.
50919         * lib/unistr/u-set.h: Likewise.
50920         * lib/unistr/u-startswith.h: Likewise.
50921         * lib/unistr/u-stpcpy.h: Likewise.
50922         * lib/unistr/u-stpncpy.h: Likewise.
50923         * lib/unistr/u-strcat.h: Likewise.
50924         * lib/unistr/u-strcpy.h: Likewise.
50925         * lib/unistr/u-strcspn.h: Likewise.
50926         * lib/unistr/u-strdup.h: Likewise.
50927         * lib/unistr/u-strlen.h: Likewise.
50928         * lib/unistr/u-strncat.h: Likewise.
50929         * lib/unistr/u-strncpy.h: Likewise.
50930         * lib/unistr/u-strnlen.h: Likewise.
50931         * lib/unistr/u-strpbrk.h: Likewise.
50932         * lib/unistr/u-strspn.h: Likewise.
50933         * lib/unistr/u-strstr.h: Likewise.
50934         * lib/unistr/u-strtok.h: Likewise.
50935         * lib/unistr/u16-check.c: Likewise.
50936         * lib/unistr/u16-chr.c: Likewise.
50937         * lib/unistr/u16-cmp.c: Likewise.
50938         * lib/unistr/u16-cpy-alloc.c: Likewise.
50939         * lib/unistr/u16-cpy.c: Likewise.
50940         * lib/unistr/u16-endswith.c: Likewise.
50941         * lib/unistr/u16-mblen.c: Likewise.
50942         * lib/unistr/u16-mbsnlen.c: Likewise.
50943         * lib/unistr/u16-mbtouc-aux.c: Likewise.
50944         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
50945         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
50946         * lib/unistr/u16-mbtouc.c: Likewise.
50947         * lib/unistr/u16-mbtoucr.c: Likewise.
50948         * lib/unistr/u16-move.c: Likewise.
50949         * lib/unistr/u16-next.c: Likewise.
50950         * lib/unistr/u16-prev.c: Likewise.
50951         * lib/unistr/u16-set.c: Likewise.
50952         * lib/unistr/u16-startswith.c: Likewise.
50953         * lib/unistr/u16-stpcpy.c: Likewise.
50954         * lib/unistr/u16-stpncpy.c: Likewise.
50955         * lib/unistr/u16-strcat.c: Likewise.
50956         * lib/unistr/u16-strchr.c: Likewise.
50957         * lib/unistr/u16-strcmp.c: Likewise.
50958         * lib/unistr/u16-strcpy.c: Likewise.
50959         * lib/unistr/u16-strcspn.c: Likewise.
50960         * lib/unistr/u16-strdup.c: Likewise.
50961         * lib/unistr/u16-strlen.c: Likewise.
50962         * lib/unistr/u16-strmblen.c: Likewise.
50963         * lib/unistr/u16-strmbtouc.c: Likewise.
50964         * lib/unistr/u16-strncat.c: Likewise.
50965         * lib/unistr/u16-strncmp.c: Likewise.
50966         * lib/unistr/u16-strncpy.c: Likewise.
50967         * lib/unistr/u16-strnlen.c: Likewise.
50968         * lib/unistr/u16-strpbrk.c: Likewise.
50969         * lib/unistr/u16-strrchr.c: Likewise.
50970         * lib/unistr/u16-strspn.c: Likewise.
50971         * lib/unistr/u16-strstr.c: Likewise.
50972         * lib/unistr/u16-strtok.c: Likewise.
50973         * lib/unistr/u16-to-u32.c: Likewise.
50974         * lib/unistr/u16-to-u8.c: Likewise.
50975         * lib/unistr/u16-uctomb-aux.c: Likewise.
50976         * lib/unistr/u16-uctomb.c: Likewise.
50977         * lib/unistr/u32-check.c: Likewise.
50978         * lib/unistr/u32-chr.c: Likewise.
50979         * lib/unistr/u32-cmp.c: Likewise.
50980         * lib/unistr/u32-cpy-alloc.c: Likewise.
50981         * lib/unistr/u32-cpy.c: Likewise.
50982         * lib/unistr/u32-endswith.c: Likewise.
50983         * lib/unistr/u32-mblen.c: Likewise.
50984         * lib/unistr/u32-mbsnlen.c: Likewise.
50985         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
50986         * lib/unistr/u32-mbtouc.c: Likewise.
50987         * lib/unistr/u32-mbtoucr.c: Likewise.
50988         * lib/unistr/u32-move.c: Likewise.
50989         * lib/unistr/u32-next.c: Likewise.
50990         * lib/unistr/u32-prev.c: Likewise.
50991         * lib/unistr/u32-set.c: Likewise.
50992         * lib/unistr/u32-startswith.c: Likewise.
50993         * lib/unistr/u32-stpcpy.c: Likewise.
50994         * lib/unistr/u32-stpncpy.c: Likewise.
50995         * lib/unistr/u32-strcat.c: Likewise.
50996         * lib/unistr/u32-strchr.c: Likewise.
50997         * lib/unistr/u32-strcmp.c: Likewise.
50998         * lib/unistr/u32-strcpy.c: Likewise.
50999         * lib/unistr/u32-strcspn.c: Likewise.
51000         * lib/unistr/u32-strdup.c: Likewise.
51001         * lib/unistr/u32-strlen.c: Likewise.
51002         * lib/unistr/u32-strmblen.c: Likewise.
51003         * lib/unistr/u32-strmbtouc.c: Likewise.
51004         * lib/unistr/u32-strncat.c: Likewise.
51005         * lib/unistr/u32-strncmp.c: Likewise.
51006         * lib/unistr/u32-strncpy.c: Likewise.
51007         * lib/unistr/u32-strnlen.c: Likewise.
51008         * lib/unistr/u32-strpbrk.c: Likewise.
51009         * lib/unistr/u32-strrchr.c: Likewise.
51010         * lib/unistr/u32-strspn.c: Likewise.
51011         * lib/unistr/u32-strstr.c: Likewise.
51012         * lib/unistr/u32-strtok.c: Likewise.
51013         * lib/unistr/u32-to-u16.c: Likewise.
51014         * lib/unistr/u32-to-u8.c: Likewise.
51015         * lib/unistr/u32-uctomb.c: Likewise.
51016         * lib/unistr/u8-check.c: Likewise.
51017         * lib/unistr/u8-chr.c: Likewise.
51018         * lib/unistr/u8-cmp.c: Likewise.
51019         * lib/unistr/u8-cpy-alloc.c: Likewise.
51020         * lib/unistr/u8-cpy.c: Likewise.
51021         * lib/unistr/u8-endswith.c: Likewise.
51022         * lib/unistr/u8-mblen.c: Likewise.
51023         * lib/unistr/u8-mbsnlen.c: Likewise.
51024         * lib/unistr/u8-mbtouc-aux.c: Likewise.
51025         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
51026         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
51027         * lib/unistr/u8-mbtouc.c: Likewise.
51028         * lib/unistr/u8-mbtoucr.c: Likewise.
51029         * lib/unistr/u8-move.c: Likewise.
51030         * lib/unistr/u8-next.c: Likewise.
51031         * lib/unistr/u8-prev.c: Likewise.
51032         * lib/unistr/u8-set.c: Likewise.
51033         * lib/unistr/u8-startswith.c: Likewise.
51034         * lib/unistr/u8-stpcpy.c: Likewise.
51035         * lib/unistr/u8-stpncpy.c: Likewise.
51036         * lib/unistr/u8-strcat.c: Likewise.
51037         * lib/unistr/u8-strchr.c: Likewise.
51038         * lib/unistr/u8-strcmp.c: Likewise.
51039         * lib/unistr/u8-strcpy.c: Likewise.
51040         * lib/unistr/u8-strcspn.c: Likewise.
51041         * lib/unistr/u8-strdup.c: Likewise.
51042         * lib/unistr/u8-strlen.c: Likewise.
51043         * lib/unistr/u8-strmblen.c: Likewise.
51044         * lib/unistr/u8-strmbtouc.c: Likewise.
51045         * lib/unistr/u8-strncat.c: Likewise.
51046         * lib/unistr/u8-strncmp.c: Likewise.
51047         * lib/unistr/u8-strncpy.c: Likewise.
51048         * lib/unistr/u8-strnlen.c: Likewise.
51049         * lib/unistr/u8-strpbrk.c: Likewise.
51050         * lib/unistr/u8-strrchr.c: Likewise.
51051         * lib/unistr/u8-strspn.c: Likewise.
51052         * lib/unistr/u8-strstr.c: Likewise.
51053         * lib/unistr/u8-strtok.c: Likewise.
51054         * lib/unistr/u8-to-u16.c: Likewise.
51055         * lib/unistr/u8-to-u32.c: Likewise.
51056         * lib/unistr/u8-uctomb-aux.c: Likewise.
51057         * lib/unistr/u8-uctomb.c: Likewise.
51058         * lib/unitypes.h: Likewise.
51059         * lib/uniwidth.h: Likewise.
51060         * lib/uniwidth/cjk.h: Likewise.
51061         * lib/uniwidth/u16-strwidth.c: Likewise.
51062         * lib/uniwidth/u16-width.c: Likewise.
51063         * lib/uniwidth/u32-strwidth.c: Likewise.
51064         * lib/uniwidth/u32-width.c: Likewise.
51065         * lib/uniwidth/u8-strwidth.c: Likewise.
51066         * lib/uniwidth/u8-width.c: Likewise.
51067         * lib/uniwidth/width.c: Likewise.
51068
51069 2007-10-07  Bruno Haible  <bruno@clisp.org>
51070
51071         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
51072         The file is still under LGPL (see modules/inttypes).
51073
51074 2007-10-06  Bruno Haible  <bruno@clisp.org>
51075
51076         * modules/trunc (Dependencies): Add 'extensions'.
51077         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
51078         Reported by Ben Pfaff <blp@gnu.org>.
51079
51080 2007-10-06  Bruno Haible  <bruno@clisp.org>
51081
51082         * modules/freopen-tests: New file.
51083         * tests/test-freopen.c: New file.
51084
51085         * modules/fopen-tests: New file.
51086         * tests/test-fopen.c: New file.
51087
51088         * modules/fopen: New file.
51089         * lib/fopen.c: New file.
51090         * m4/fopen.m4: New file.
51091         * modules/freopen: New file.
51092         * lib/freopen.c: New file.
51093         * m4/freopen.m4: New file.
51094         * lib/stdio.in.h (fopen, freopen): New declarations.
51095         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
51096         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
51097         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
51098         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
51099         * doc/functions/fopen.texi: Mention the 'fopen' module.
51100         * doc/functions/freopen.texi: Mention the 'freopen' module.
51101
51102 2007-10-06  Bruno Haible  <bruno@clisp.org>
51103
51104         * modules/open-tests: New file.
51105         * tests/test-open.c: New file.
51106
51107         * modules/open: New file.
51108         * lib/open.c: New file.
51109         * m4/open.m4: New file.
51110         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
51111         lib/open.c does.
51112         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
51113         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
51114         macros.
51115         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
51116         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
51117         REPLACE_OPEN.
51118         * doc/functions/open.texi: Mention the 'open' module.
51119
51120 2007-10-04  Bruno Haible  <bruno@clisp.org>
51121
51122         * modules/ceill-tests: New file.
51123         * tests/test-ceill.c: New file.
51124
51125         * modules/ceill: New file.
51126         * lib/ceill.c: Replace entire file.
51127         * m4/ceill.m4: New file.
51128         * lib/math.in.h (ceill): Replace declaration.
51129         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
51130         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
51131         * doc/functions/ceill.texi: Mention the 'ceill' module.
51132         * modules/mathl (Files): Remove lib/ceill.c.
51133         (Depends-on): Add ceill.
51134
51135 2007-10-04  Bruno Haible  <bruno@clisp.org>
51136
51137         * modules/ceilf-tests: New file.
51138         * tests/test-ceilf.c: New file.
51139
51140         * modules/ceilf: New file.
51141         * lib/ceil.c: New file.
51142         * lib/ceilf.c: New file.
51143         * m4/ceilf.m4: New file.
51144         * lib/math.in.h (ceilf): New declaration.
51145         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
51146         HAVE_DECL_CEILF.
51147         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
51148         HAVE_DECL_CEILF.
51149         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
51150
51151 2007-10-04  Bruno Haible  <bruno@clisp.org>
51152
51153         * modules/floorl-tests: New file.
51154         * tests/test-floorl.c: New file.
51155
51156         * modules/floorl: New file.
51157         * lib/floorl.c: Replace entire file.
51158         * m4/floorl.m4: New file.
51159         * lib/math.in.h (floorl): Replace declaration.
51160         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
51161         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
51162         * doc/functions/floorl.texi: Mention the 'floorl' module.
51163         * modules/mathl (Files): Remove lib/floorl.c.
51164         (Depends-on): Add floorl.
51165
51166 2007-10-04  Bruno Haible  <bruno@clisp.org>
51167
51168         * modules/floorf-tests: New file.
51169         * tests/test-floorf.c: New file.
51170
51171         * modules/floorf: New file.
51172         * lib/floor.c: New file.
51173         * lib/floorf.c: New file.
51174         * m4/floorf.m4: New file.
51175         * lib/math.in.h (floorf): New declaration.
51176         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
51177         HAVE_DECL_FLOORF.
51178         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
51179         HAVE_DECL_FLOORF.
51180         * doc/functions/floorf.texi: Mention the 'floorf' module.
51181
51182 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
51183             Bruno Haible  <bruno@clisp.org>
51184
51185         Advertise for the Git server instead of the CVS server.
51186         * doc/gnulib-intro.texi (Steady Development): Mention the Git
51187         repository instead of the CVS one.
51188         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
51189         about all VCS systems generically.
51190         * doc/gnulib.texi (Introduction): Capitalize `Git'.
51191
51192 2007-10-04  Bruno Haible  <bruno@clisp.org>
51193
51194         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
51195         means.
51196         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
51197
51198 2007-10-04  Bruno Haible  <bruno@clisp.org>
51199
51200         * modules/truncl-tests: New file.
51201         * tests/test-truncl.c: New file.
51202
51203         * modules/truncl: New file.
51204         * lib/truncl.c: New file.
51205         * m4/truncl.m4: New file.
51206         * lib/math.in.h (truncl): New declaration.
51207         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
51208         HAVE_DECL_TRUNCL.
51209         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
51210         HAVE_DECL_TRUNCL.
51211         * doc/functions/truncl.texi: Mention the 'truncl' module.
51212
51213 2007-10-04  Bruno Haible  <bruno@clisp.org>
51214
51215         * modules/truncf-tests: New file.
51216         * tests/test-truncf.c: New file.
51217
51218         * modules/truncf: New file.
51219         * lib/trunc.c: Make paramerizable through USE_* macros.
51220         * lib/truncf.c: New file.
51221         * m4/truncf.m4: New file.
51222         * lib/math.in.h (truncf): New declaration.
51223         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
51224         HAVE_DECL_TRUNCF.
51225         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
51226         HAVE_DECL_TRUNCF.
51227         * doc/functions/truncf.texi: Mention the 'truncf' module.
51228
51229 2007-10-03  Bruno Haible  <bruno@clisp.org>
51230
51231         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
51232         augmentation also for tests modules.
51233         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
51234         * modules/atexit-tests (Makefile.am): Likewise.
51235         * modules/binary-io-tests (Makefile.am): Likewise.
51236         * modules/c-strcase-tests (Makefile.am): Likewise.
51237         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
51238         * modules/canonicalize-tests (Makefile.am): Likewise.
51239         * modules/closein-tests (Makefile.am): Likewise.
51240         * modules/fprintf-posix-tests (Makefile.am): Likewise.
51241         * modules/freadahead-tests (Makefile.am): Likewise.
51242         * modules/fseek-tests (Makefile.am): Likewise.
51243         * modules/fseeko-tests (Makefile.am): Likewise.
51244         * modules/ftell-tests (Makefile.am): Likewise.
51245         * modules/ftello-tests (Makefile.am): Likewise.
51246         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
51247         * modules/isnanl-tests (Makefile.am): Likewise.
51248         * modules/lseek-tests (Makefile.am): Likewise.
51249         * modules/mbscasecmp-tests (Makefile.am): Likewise.
51250         * modules/mbscasestr-tests (Makefile.am): Likewise.
51251         * modules/mbschr-tests (Makefile.am): Likewise.
51252         * modules/mbscspn-tests (Makefile.am): Likewise.
51253         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
51254         * modules/mbspbrk-tests (Makefile.am): Likewise.
51255         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
51256         * modules/mbsrchr-tests (Makefile.am): Likewise.
51257         * modules/mbsspn-tests (Makefile.am): Likewise.
51258         * modules/mbsstr-tests (Makefile.am): Likewise.
51259         * modules/printf-posix-tests (Makefile.am): Likewise.
51260         * modules/snprintf-posix-tests (Makefile.am): Likewise.
51261         * modules/sprintf-posix-tests (Makefile.am): Likewise.
51262         * modules/tsearch-tests (Makefile.am): Likewise.
51263         * modules/uniname/uniname-tests (Makefile.am): Likewise.
51264         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
51265         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
51266         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
51267         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
51268         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
51269         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
51270         * modules/vprintf-posix-tests (Makefile.am): Likewise.
51271         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
51272         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
51273         * modules/xstrtoimax-tests (Makefile.am): Likewise.
51274         * modules/xstrtol-tests (Makefile.am): Likewise.
51275         * modules/xstrtoumax-tests (Makefile.am): Likewise.
51276         * modules/yesno-tests (Makefile.am): Likewise.
51277
51278 2007-10-03  Bruno Haible  <bruno@clisp.org>
51279
51280         * modules/trunc-tests: New file.
51281         * tests/test-trunc.c: New file.
51282
51283         * modules/trunc: New file.
51284         * lib/trunc.c: New file.
51285         * m4/trunc.m4: New file.
51286         * lib/math.in.h (trunc): New declaration.
51287         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
51288         HAVE_DECL_TRUNC.
51289         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
51290         HAVE_DECL_TRUNC.
51291         * doc/functions/trunc.texi: Mention the 'trunc' module.
51292
51293 2007-10-03  Bruno Haible  <bruno@clisp.org>
51294
51295         * tests/test-fpending.c: New file, mostly copied
51296         from coreutils/lib/t-fpending.c.
51297         * modules/fpending-tests: New file.
51298
51299 2007-10-03  Bruno Haible  <bruno@clisp.org>
51300
51301         Port the stdio extensions to QNX (untested).
51302         * lib/fseterr.c (fseterr): Add support for QNX.
51303         * lib/fbufmode.c (fbufmode): Likewise.
51304         * lib/freadable.c (freadable): Likewise.
51305         * lib/fwritable.c (fwritable): Likewise.
51306         * lib/freading.c (freading): Likewise.
51307         * lib/fwriting.c (fwriting): Likewise.
51308         * lib/freadahead.c (freadahed): Likewise.
51309         * lib/fpurge.c (fpurge): Likewise.
51310         * lib/fseeko.c (rpl_fseeko): Likewise.
51311
51312 2007-10-03  Bruno Haible  <bruno@clisp.org>
51313             Jim Meyering  <jim@meyering.net>
51314             Eric Blake  <ebb9@byu.net>
51315
51316         * doc/relocatable.texi: Use @command instead of @program.
51317
51318 2007-10-02  Jim Meyering  <jim@meyering.net>
51319
51320         Perform one more "_.h" -> ".in.h" substitution.
51321         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
51322         instead of unistd_.h here, too.
51323
51324 2007-10-01  Bruno Haible  <bruno@clisp.org>
51325
51326         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
51327         Needed for the alloca-opt module.
51328
51329 2007-09-30  Bruno Haible  <bruno@clisp.org>
51330
51331         * lib/alloca.in.h: Renamed from lib/alloca_.h.
51332         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
51333         alloca_.h.
51334         * lib/argz.in.h: Renamed from lib/argz_.h.
51335         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
51336         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
51337         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
51338         byteswap_.h.
51339         * lib/dirent.in.h: Renamed from lib/dirent_.h.
51340         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
51341         dirent_.h.
51342         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
51343         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
51344         fcntl_.h.
51345         * lib/float.in.h: Renamed from lib/float_.h.
51346         * modules/float (Files, Makefile.am): Use float.in.h instead of
51347         float_.h.
51348         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
51349         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
51350         fnmatch_.h.
51351         * lib/getopt.in.h: Renamed from lib/getopt_.h.
51352         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
51353         getopt_.h.
51354         * lib/glob.in.h: Renamed from lib/glob_.h.
51355         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
51356         * lib/iconv.in.h: Renamed from lib/iconv_.h.
51357         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
51358         iconv_.h.
51359         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
51360         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
51361         inttypes_.h.
51362         * lib/locale.in.h: Renamed from lib/locale_.h.
51363         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
51364         locale_.h.
51365         * lib/math.in.h: Renamed from lib/math_.h.
51366         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
51367         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
51368         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
51369         of netinet_in_.h. Add dependency.
51370         * lib/poll.in.h: Renamed from lib/poll_.h.
51371         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
51372         * lib/search.in.h: Renamed from lib/search_.h.
51373         * modules/search (Files, Makefile.am): Use search.in.h instead of
51374         search_.h.
51375         * lib/signal.in.h: Renamed from lib/signal_.h.
51376         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
51377         _signal.h.
51378         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
51379         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
51380         stdbool_.h.
51381         * lib/stdint.in.h: Renamed from lib/stdint_.h.
51382         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
51383         stdint_.h.
51384         * lib/stdio.in.h: Renamed from lib/stdio_.h.
51385         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
51386         stdio_.h.
51387         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
51388         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
51389         stdlib_.h.
51390         * lib/string.in.h: Renamed from lib/string_.h.
51391         * modules/string (Files, Makefile.am): Use string.in.h instead of
51392         string_.h.
51393         * doc/gnulib-tool.texi (Initial import): Update.
51394         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
51395         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
51396         of sys_select_.h. Add dependency.
51397         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
51398         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
51399         of sys_socket_.h.
51400         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
51401         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
51402         sys_stat_.h.
51403         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
51404         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
51405         sys_time_.h.
51406         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
51407         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
51408         sysexits_.h.
51409         * lib/time.in.h: Renamed from lib/time_.h.
51410         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
51411         * lib/unistd.in.h: Renamed from lib/unistd_.h.
51412         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
51413         unistd_.h.
51414         * lib/wchar.in.h: Renamed from lib/wchar_.h.
51415         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
51416         wchar_.h.
51417         * lib/wctype.in.h: Renamed from lib/wctype_.h.
51418         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
51419         wctype_.h.
51420         * build-aux/bootstrap (slurp): Update.
51421         * lib/.cppi-disable: Update.
51422
51423 2007-09-30  Bruno Haible  <bruno@clisp.org>
51424
51425         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
51426         Needed on BeOS.
51427
51428 2007-09-30  Bruno Haible  <bruno@clisp.org>
51429
51430         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
51431
51432 2007-09-29  Bruno Haible  <bruno@clisp.org>
51433
51434         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
51435
51436 2007-09-29  Bruno Haible  <bruno@clisp.org>
51437
51438         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
51439         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
51440         * build-aux/install-reloc: Compile also areadlink.c.
51441         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
51442
51443 2007-09-29  Bruno Haible  <bruno@clisp.org>
51444
51445         * gnulib-tool (func_emit_initmacro_done): Indentation.
51446
51447 2007-09-29  Bruno Haible  <bruno@clisp.org>
51448
51449         * README: Add CVS checkout update instructions.
51450         Info from Bob Proulx <bob@proulx.com>.
51451
51452 2007-09-28  Eric Blake  <ebb9@byu.net>
51453
51454         Provide move-if-change.
51455         * build-aux/move-if-change: New file, based on best practice
51456         rather than any canonical upstream location.
51457
51458 2007-09-28  Jim Meyering  <jim@meyering.net>
51459
51460         Fix canonicalize loop-detection corner case.
51461         Do not attempt to stat the symlink values stored via seen_triple.
51462         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
51463         on linux-2.6.18, (but not 2.6.22).
51464         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
51465         triple_compare.  The former compares dev,ino,filename, while the latter
51466         would actually stat dirname(filename) when dev and ino were equal.
51467         * lib/hash-triple.c: Install <string.h>.
51468         (STREQ): Define.
51469         (triple_compare_ino_str): New function.
51470         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
51471
51472 2007-09-28  Eric Blake  <ebb9@byu.net>
51473
51474         Enforce that AC_REPLACE_FUNCS files exist.
51475         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
51476         override check for typos.
51477
51478         Fix test-closein on Solaris 10.
51479         * tests/test-closein.c (main): Don't assume stdin can be inherited
51480         closed on all systems.
51481         * tests/test-closein.sh: Likewise.
51482         Reported by Piotr Tarnowski.
51483
51484 2007-09-28  Jim Meyering  <jim@meyering.net>
51485
51486         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
51487
51488 2007-09-27  Jim Meyering  <jim@meyering.net>
51489
51490         canonicalize: Avoid a false-positive cycle failure.
51491         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
51492         Sort.  Remove cycle-check.
51493         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
51494         not cycle-check.h.
51495         (seen_triple): New function.
51496         (canonicalize_filename_mode): Use it instead of cycle-check.
51497         * tests/test-canonicalize.c: Add a test for this bug.
51498         * tests/test-canonicalize.sh: Set up and run the test.
51499
51500         New module, file-set, from coreutils.
51501         * modules/file-set: Define it.
51502         * lib/file-set.c, lib/file-set.h: Implement.
51503
51504         New module, hash-triple, from coreutils.
51505         * modules/hash-triple: Define it.
51506         * lib/hash-triple.c, lib/hash-triple.h: Implement.
51507
51508 2007-09-25  Eric Blake  <ebb9@byu.net>
51509
51510         Fix strerror on Interix.
51511         * lib/string_.h (strerror): Declare replacement.
51512         * doc/functions/strerror.texi (strerror): Document the Interix
51513         shortcoming.
51514         * modules/string (Makefile.am): Support new hooks.
51515         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
51516         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
51517         gl_FUNC_STRERROR_SEPARATE.
51518         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
51519         * lib/strerror.c (rpl_strerror): Provide replacement.
51520         * modules/strerror (Depends-on): Add string.
51521         (configure.ac): Detect use of module.
51522         * tests/test-strerror.c: New file.
51523         * modules/strerror-tests: New test module.
51524         * modules/argp (Depends-on): Add strerror.
51525         * modules/error (Depends-on): Likewise.
51526         Reported by Martin Koeppe.
51527
51528 2007-09-24  Bruno Haible  <bruno@clisp.org>
51529
51530         * README: Update git instructions.
51531
51532 2007-09-24  Eric Blake  <ebb9@byu.net>
51533
51534         Revert fpending breakage from 2007-09-08.
51535         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
51536         __fpending.c.
51537
51538 2007-09-24  Jim Meyering  <jim@meyering.net>
51539
51540         filenamecat.c: Add a test.
51541         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
51542         showing how the function works when DIR is the empty string.
51543
51544 2007-09-21  Simon Josefsson  <simon@josefsson.org>
51545
51546         * tests/test-canonicalize.sh: Turn on executable bit.
51547
51548 2007-09-19  Eric Blake  <ebb9@byu.net>
51549
51550         * README: Update CVS instructions.
51551
51552 2007-09-18  Bruno Haible  <bruno@clisp.org>
51553
51554         * modules/areadlink: New file.
51555         * lib/areadlink.h (areadlink): New declaration.
51556         * lib/areadlink.c: New file, based on lib/xreadlink.c.
51557
51558 2007-09-17  Jim Meyering  <jim@meyering.net>
51559
51560         * lib/savewd.c (ESTALE) [!defined]: Define.
51561         Reported to be required on Interix by Martin Koeppe.
51562
51563 2007-09-17  Bruno Haible  <bruno@clisp.org>
51564
51565         * gnulib-tool (func_version): Use $version.
51566
51567 2007-09-16  Bruno Haible  <bruno@clisp.org>
51568
51569         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
51570         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
51571         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
51572         Reported by Greg Schafer <gschafer@zip.com.au>.
51573
51574 2007-09-15  Bruno Haible  <bruno@clisp.org>
51575
51576         * gnulib-tool (sed): Try a little harder to make bash understand the
51577         alias.
51578         Reported by Bruce Korb <bruce.korb@gmail.com>.
51579
51580 2007-09-13  Eric Blake  <ebb9@byu.net>
51581
51582         * ChangeLog: Remove conflict markers.
51583
51584 2007-09-13  Simon Josefsson  <simon@josefsson.org>
51585
51586         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
51587         Reported by Bruno Haible <bruno@clisp.org>.
51588
51589 2007-09-12  Bruno Haible  <bruno@clisp.org>
51590
51591         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
51592         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
51593         is not defined.
51594
51595 2007-09-12  Eric Blake  <ebb9@byu.net>
51596
51597         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
51598         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
51599         Autoconf definition.
51600         * modules/euidaccess (Depends-on): Add extensions, for
51601         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
51602         * modules/fnmatch (Depends-on): Likewise.
51603         * modules/getaddrinfo (Depends-on): Likewise.
51604         * modules/getdelim (Depends-on): Likewise.
51605         * modules/getline (Depends-on): Likewise.
51606         * modules/getsubopt (Depends-on): Likewise.
51607         * modules/gettext (Depends-on): Likewise.
51608         * modules/group-member (Depends-on): Likewise.
51609         * modules/mbchar (Depends-on): Likewise.
51610         * modules/memmem (Depends-on): Likewise.
51611         * modules/mempcpy (Depends-on): Likewise.
51612         * modules/memrchr (Depends-on): Likewise.
51613         * modules/pagealign_alloc (Depends-on): Likewise.
51614         * modules/readutmp (Depends-on): Likewise.
51615         * modules/stpcpy (Depends-on): Likewise.
51616         * modules/stpncpy (Depends-on): Likewise.
51617         * modules/strchrnul (Depends-on): Likewise.
51618         * modules/strndup (Depends-on): Likewise.
51619         * modules/strsep (Depends-on): Likewise.
51620         * modules/strverscmp (Depends-on): Likewise.
51621         * modules/vasprintf (Depends-on): Likewise.
51622         * modules/wcwidth (Depends-on): Likewise.
51623         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
51624         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
51625         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
51626         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
51627         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
51628         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
51629         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
51630         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
51631         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
51632         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
51633         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
51634         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
51635         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
51636         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
51637         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
51638         * m4/readutmp.m4 (gl_READUTMP): Likewise.
51639         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
51640         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
51641         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
51642         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
51643         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
51644         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
51645         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
51646         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
51647         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
51648         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
51649         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
51650         so that lock.m4 can be used in gettext without extensions module.
51651
51652 2007-09-11  Bruno Haible  <bruno@clisp.org>
51653
51654         * m4/isc-posix.m4: Remove file.
51655         Suggested by Eric Blake.
51656
51657 2007-09-11  Eric Blake  <ebb9@byu.net>
51658
51659         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
51660
51661 2007-09-10  Bruno Haible  <bruno@clisp.org>
51662
51663         * posix-modules: Fix typo in error message.
51664         Reported by Matt <mkraai@beckman.com>.
51665
51666 2007-09-09  Bruno Haible  <bruno@clisp.org>
51667
51668         * doc/functions/getdelim.texi: Update list of platforms lacking the
51669         function.
51670         * doc/functions/getline.texi: Likewise.
51671
51672 2007-09-09  Jim Meyering  <jim@meyering.net>
51673
51674         * lib/hash.c (hash_initialize): Detect calloc failure.
51675         Reported by Bruno Haible.
51676
51677 2007-09-09  Bruno Haible  <bruno@clisp.org>
51678
51679         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
51680         malloc or realloc fails.
51681
51682 2007-09-09  Bruno Haible  <bruno@clisp.org>
51683
51684         * modules/getcwd (Depends-on): Add malloc-posix.
51685         * modules/glob (Depends-on): Likewise.
51686         * modules/putenv (Depends-on): Likewise.
51687         * modules/strdup (Depends-on): Likewise.
51688         * modules/getdelim (Depends-on): Add realloc-posix.
51689         * modules/read-file (Depends-on): Likewise.
51690
51691 2007-09-09  Bruno Haible  <bruno@clisp.org>
51692
51693         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
51694         (gl_FUNC_MALLOC_POSIX): Require it.
51695         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
51696         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
51697         * modules/realloc (Files): Add m4/malloc.m4.
51698         * modules/calloc (Files): Likewise.
51699
51700 2007-09-09  Bruno Haible  <bruno@clisp.org>
51701
51702         * modules/malloc-posix: New file.
51703         * modules/malloc (Depends-on): Add malloc-posix.
51704         * lib/malloc.c: Include errno.h.
51705         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
51706         and a POSIX-compatible malloc into a single function. Set ENOMEM
51707         when returning NULL.
51708         * m4/malloc.m4: New file.
51709         * doc/functions/malloc.texi: Mention the malloc-posix module.
51710         * lib/stdlib_.h (malloc): New declaration.
51711         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
51712         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
51713         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
51714         and HAVE_MALLOC_POSIX.
51715
51716 2007-09-09  Bruno Haible  <bruno@clisp.org>
51717
51718         * modules/realloc-posix: New file.
51719         * modules/realloc (Depends-on): Add realloc-posix.
51720         * lib/realloc.c: Include errno.h.
51721         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
51722         and a POSIX-compatible realloc into a single function. Set ENOMEM
51723         when returning NULL.
51724         * m4/realloc.m4: New file.
51725         * doc/functions/realloc.texi: Mention the realloc-posix module.
51726         * lib/stdlib_.h (realloc): New declaration.
51727         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
51728         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
51729         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
51730         and HAVE_REALLOC_POSIX.
51731
51732 2007-09-09  Bruno Haible  <bruno@clisp.org>
51733
51734         * modules/calloc-posix: New file.
51735         * modules/calloc (Depends-on): Add calloc-posix.
51736         * lib/calloc.c: Include errno.h.
51737         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
51738         and a POSIX-compatible calloc into a single function. Set ENOMEM
51739         when returning NULL.
51740         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
51741         * doc/functions/calloc.texi: Mention the calloc-posix module.
51742         * lib/stdlib_.h (calloc): New declaration.
51743         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
51744         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
51745         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
51746         and HAVE_CALLOC_POSIX.
51747
51748 2007-09-09  Bruno Haible  <bruno@clisp.org>
51749
51750         Allow for modules to show an arbitrary notice.
51751         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
51752         * gnulib-tool: New option --extract-notice.
51753         (func_usage): Document it.
51754         (sed_extract_prog): Update.
51755         (func_get_notice): New function.
51756         (func_modules_notice): New function.
51757         (func_import, func_create_testdir): Invoke it.
51758         Suggested by Jim Meyering.
51759
51760 2007-09-09  Bruno Haible  <bruno@clisp.org>
51761
51762         * gnulib-tool: New options --verbose, --quiet.
51763         (func_usage): Document them.
51764         (verbose): New variable.
51765         (func_execute_command): New function.
51766         (func_import): Don't show the module list and the file list if
51767         $verbose < 0.
51768         (func_create_testdir): Likewise. Use func_execute_command.
51769         (func_create_megatestdir): Use func_execute_command.
51770
51771 2007-09-08  Bruno Haible  <bruno@clisp.org>
51772
51773         * gnulib-tool (func_import): Prefer rsync over wget when available,
51774         for fetching the PO files.
51775
51776 2007-09-08  Bruno Haible  <bruno@clisp.org>
51777
51778         * posix-modules: New file. Portions copied from gnulib-tool.
51779         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
51780
51781 2007-09-08  Jim Meyering  <jim@meyering.net>
51782
51783         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
51784         * lib/fpending.h: Rename from __fpending.h.
51785         * lib/fpending.c: Rename from __fpending.c.
51786         Include "fpending.h", not "__fpending.h".
51787         * lib/__fpending.h, lib/__fpending.c: Remove files.
51788         * modules/fpending (Files): Reflect new file names.
51789         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
51790
51791 2007-09-08  Bruno Haible  <bruno@clisp.org>
51792
51793         * m4/inttypes-h.m4: Remove stub file.
51794
51795 2007-09-07  Simon Josefsson  <simon@josefsson.org>
51796
51797         * doc/headers/stdint.texi: Discuss #include_next issue.
51798
51799 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
51800
51801         * build-aux/bootstrap: Remove obsolete comment about wget --help.
51802
51803 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51804
51805         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
51806         in variable name.
51807
51808 2007-09-03  Jim Meyering  <jim@meyering.net>
51809
51810         New module: git-version-gen.
51811         * modules/git-version-gen: New file.
51812
51813         Import changes from coreutils for bootstrap script.
51814
51815         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
51816
51817         bootstrap: uses rsync to download the .po files
51818         * build-aux/bootstrap (po_download_command_format): New global.
51819         (download_po_files): Use rsync.
51820         (update_po_files): Don't remove .po files after download,
51821         so future rsync runs can take advantage of the copies.
51822
51823         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
51824
51825         Solve the unnecessary-.po-file-regeneration problem once and for all.
51826         * build-aux/bootstrap (download_po_files): New function, renamed from
51827         get_translations.  Now, downloads, but doesn't update LINGUAS.
51828         (update_po_files): New function.
51829
51830         bootstrap: Ignore more.
51831         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
51832         uniwidth to e.g., lib/.gitignore.
51833         (slurp): Handle the sys_stat_.h -> sys mapping, too.
51834
51835         * build-aux/bootstrap: New setting: vc_ignore.
51836         (insert_sorted_if_absent): Create $file if absent.
51837         Adapt to new, possibly empty, list: $vc_ignore.
51838
51839         bootstrap: generate more ignorable names
51840         * build-aux/bootstrap (slurp): When generating ignorable names,
51841         also map .sin to .sed, .gperf to .c, and .y to .c.
51842
51843 2007-09-03  Jim Meyering  <jim@meyering.net>
51844
51845         * build-aux/git-version-gen: New file, from coreutils.  For details, see
51846         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
51847
51848 2007-09-02  Bruno Haible  <bruno@clisp.org>
51849
51850         Fix mis-recognition of 'mcs' on QNX 6.
51851         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
51852         output contains the string "Mono".
51853         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
51854         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
51855
51856 2007-09-01  Bruno Haible  <bruno@clisp.org>
51857
51858         Fix collision between uniwidth/* and linebreak modules.
51859         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
51860         u32_width): Remove declarations.
51861         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
51862         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
51863         streq3, streq2, streq1, streq0): Remove functions.
51864         (STREQ): Remove macro.
51865         (is_cjk_encoding): Remove function.
51866         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
51867         (uc_width, u8_width, u16_width, u32_width): Remove functions.
51868         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
51869         * NEWS: Document the change.
51870
51871 2007-09-01  Bruno Haible  <bruno@clisp.org>
51872
51873         * lib/streq.h: Add double-inclusion guard.
51874
51875 2007-09-01  Karl Berry  <karl@gnu.org>
51876
51877         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
51878
51879 2007-08-28  Jim Meyering  <jim@meyering.net>
51880
51881         Rename mreadlink_with_size to areadlink_with_size.
51882         * NEWS: Document the change.
51883         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
51884         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
51885         * lib/mreadlink.h: Rename this to...
51886         * lib/areadlink.h: ...this.
51887         * modules/mreadlink-with-size: Rename this to...
51888         * modules/areadlink-with-size: ...this.
51889         * lib/canonicalize.c: Reflect the renaming.
51890         * modules/canonicalize: Likewise.
51891
51892 2007-08-26  Bruno Haible  <bruno@clisp.org>
51893
51894         * gnulib-tool (func_import): When deciding which files to remove,
51895         consider also dangling symbolic links.
51896         Reported by Eric Blake.
51897
51898 2007-08-26  Bruno Haible  <bruno@clisp.org>
51899
51900         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
51901
51902 2007-08-23  Simon Josefsson  <simon@josefsson.org>
51903
51904         * lib/readline.c: Don't include getline.h, the prototype is now
51905         found in stdio.h.
51906
51907 2007-08-23  Jim Meyering  <jim@meyering.net>
51908
51909         Getdelim touchup.
51910         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
51911         around the funlockfile call, since funlockfile never sets errno.
51912         Don't set errno upon failed realloc.
51913
51914 2007-08-22  Eric Blake  <ebb9@byu.net>
51915
51916         Getline touchups.
51917         * lib/getdelim.c (getdelim): Revert regression that required *n to
51918         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
51919         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
51920         getdelim, rather than whether implementation is missing.
51921         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
51922         * lib/stdio_.h (getline): Also declare if replacement is
51923         required.
51924         * doc/functions/getdelim.texi: New file.
51925         * doc/functions/getline.texi: Likewise.
51926         * doc/gnulib.texi (Function Substitutes): Add new files.
51927         Reported by Bruno Haible.
51928
51929 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
51930
51931         * users.txt: Add Guile.
51932
51933 2007-08-22  Eric Blake  <ebb9@byu.net>
51934
51935         * tests/test-getdelim.c (main): Use remove, not unlink.
51936         * tests/test-getline.c (main): Likewise.
51937
51938         Move getline and getdelim into stdio.h, per POSIX 200x.
51939         * modules/getline (Files): Remove getline.h.
51940         (Depends-on): Add stdio.
51941         (configure.ac): Add module indicator.
51942         * modules/getdelim (Files): Remove getdelim.h.
51943         (Depends-on): Add stdio.
51944         (configure.ac): Add module indicator.
51945         * modules/stdio (Makefile.am): Work with new indicators.
51946         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
51947         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
51948         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
51949         * lib/getdelim.h: Delete.
51950         * lib/getline.h: Delete.
51951         * lib/stdio_.h (getdelim, getline): Declare.
51952         * modules/getdelim-tests: New module.
51953         * modules/getline-tests: Likewise.
51954         * tests/test-getdelim.c: New file.
51955         * tests/test-getline.c: Likewise.
51956         * NEWS: Document the change.
51957         * lib/getline.c: Update choice of header.
51958         * lib/csharpcomp.c: Likewise.
51959         * lib/getpass.c: Likewise.
51960         * lib/javacomp.c: Likewise.
51961         * lib/javaversion.c: Likewise.
51962         * lib/yesno.c: Likewise.
51963         * lib/getdelim.c: Likewise.
51964         (getdelim): Set errno on failure, and avoid memory leak.
51965
51966 2007-08-19  Bruno Haible  <bruno@clisp.org>
51967
51968         * modules/closein (Depends-on): Add freadahead.
51969         * lib/closein.c: Include freadahead.h.
51970         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
51971         is zero.
51972
51973 2007-08-19  Bruno Haible  <bruno@clisp.org>
51974
51975         * modules/freadahead-tests: New file.
51976         * tests/test-freadahead.sh: New file.
51977         * tests/test-freadahead.c: New file.
51978
51979         * modules/freadahead: New file.
51980         * lib/freadahead.h: New file.
51981         * lib/freadahead.c: New file.
51982         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
51983         fbufmode, fpurge, freadable, fwritable.
51984
51985 2007-08-19  Eric Blake  <ebb9@byu.net>
51986
51987         Test yesno in combination with closein.
51988         * lib/yesno.c (yesno): Document use of stdin.
51989         * modules/yesno-tests (Files): New module.
51990         * tests/test-yesno.c (main): New file.
51991         * tests/test-yesno.sh: Likewise.
51992
51993 2007-08-19  Bruno Haible  <bruno@clisp.org>
51994
51995         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
51996         * lib/fseeko.c (rpl_fseeko): Likewise.
51997         * lib/fseterr.c (fseterr): Likewise.
51998
51999 2007-08-19  Bruno Haible  <bruno@clisp.org>
52000
52001         * tests/test-lseek.c (main): Disable a test for BeOS.
52002         * doc/functions/lseek.texi: Document the BeOS bug.
52003
52004 2007-08-19  Bruno Haible  <bruno@clisp.org>
52005             Eric Blake  <ebb9@byu.net>
52006
52007         * lib/lseek.c: Include <sys/stat.h>.
52008         (rpl_lseek): Add workaround code also for Unix platforms.
52009         Needed for BeOS.
52010         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
52011         * doc/functions/lseek.texi: Document BeOS definiency.
52012
52013 2007-08-18  Bruno Haible  <bruno@clisp.org>
52014
52015         * modules/fstrcmp-tests: New file.
52016         * tests/test-fstrcmp.c: New file.
52017
52018 2007-08-18  Bruno Haible  <bruno@clisp.org>
52019
52020         * modules/fstrcmp: New file, from GNU gettext with modifications.
52021         * lib/fstrcmp.h: New file, from GNU gettext.
52022         * lib/fstrcmp.c: New file, from GNU gettext.
52023         * MODULES.html.sh (String handling): Add fstrcmp.
52024
52025 2007-08-18  Bruno Haible  <bruno@clisp.org>
52026
52027         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
52028         'bool'.
52029         (diag, compareseq): Remove const from the ctxt argument.
52030         (USE_HEURISTIC): Undefine at the end.
52031
52032 2007-08-18  Jim Meyering  <jim@meyering.net>
52033
52034         New file: lib/idcache.h
52035         * NEWS: Mention the addition.
52036         * modules/idcache (Files): Add lib/idcache.h
52037         * lib/idcache.c: Include "idcache.h".
52038         Don't include <sys/types.h>.
52039         Add a FIXME comment.
52040         Move file-scoped "static" declarations to the top.
52041         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
52042
52043 2007-08-17  Bruno Haible  <bruno@clisp.org>
52044         and Paul Eggert  <eggert@cs.ucla.edu>
52045
52046         * MODULES.html.sh: Add diffseq.
52047         * modules/diffseq: New file.
52048         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
52049         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
52050
52051 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
52052
52053         Import changes from coreutils for bootstrap script.
52054
52055         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
52056
52057         * build-aux/bootstrap (slurp): Work even in environments where
52058         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
52059         current code does not slurp files whose names start with ".", and
52060         this looks like it might be a troublesome area.
52061
52062         2007-07-11  Jim Meyering  <jim@meyering.net>
52063
52064         If there's a GPL vN copyright comment, require that N == 3.
52065
52066         2007-07-08  Jim Meyering  <jim@meyering.net>
52067
52068         Run the coreutils-specific code only if tests/Makefile.am.in exists.
52069         * build-aux/bootstrap (mam_template): Move definition out of loop.
52070
52071         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
52072
52073         * build-aux/bootstrap (symlink_to_dir): Rename function from
52074         symlink_to_gnulib.  Add a directory parameter.  Update all
52075         callers.
52076         (cp_mark_as_generated): Also check for -- and link to -- files in
52077         gl/.
52078
52079         2007-07-08  Jim Meyering  <jim@meyering.net>
52080
52081         Adapt to deeper hierarchy in gnulib.
52082         * build-aux/bootstrap (symlink_to_dir): If the destination
52083         directory doesn't exist, create it. This is required at least for
52084         "lib/uniwidth/cjk.h".
52085
52086         2007-05-15  Jim Meyering  <jim@meyering.net>
52087
52088         * build-aux/bootstrap: Now that generated Makefile.am files
52089         are no longer under version control, they must be created at
52090         bootstrap time.
52091
52092 2007-08-14  Ben Pfaff  <blp@gnu.org>
52093
52094         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
52095
52096 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
52097
52098         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
52099         given the changes below.
52100         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
52101         even on hosts that have padding bits beyond the supported 64.
52102
52103 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
52104
52105         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
52106         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
52107         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
52108         depends on it.
52109         (xstrtol_error): Remove.
52110         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
52111         but with a different signature.
52112         (ATTRIBUTE_NORETURN, __attribute__): New macros.
52113         * lib/xstrtol-error.c: Include exitfail.h.
52114         (xstrtol_fatal): New function, with a different signature from the
52115         old xstrtol_error, so that the caller need not worry about passing
52116         in an exit status, or about storage management of the option argument.
52117         (xstrtol_error): Now a static function.  Redo signature to
52118         implement xstrtol_fatal.  Output the correct number of hyphens in
52119         front of the option so that the caller need not worry about
52120         storage management.
52121         (N_): New macro.
52122         (_): Remove; not used now.
52123         * modules/xstrtol: Depend on getopt.
52124         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
52125         of old STRTOL_FATAL_ERROR macro.
52126         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
52127         of test program.
52128         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
52129         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
52130
52131 2007-08-08  Eric Blake  <ebb9@byu.net>
52132
52133         * lib/xstrtol-error.c: Add missing include.
52134
52135         Move xstrtol messages into gnulib domain, when --pobase is used.
52136         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
52137         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
52138         * modules/xstrtol (Files): Distribute new file.
52139         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
52140         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
52141         * tests/test-xstrtol.c: ...into new file.
52142         * tests/test-xstrtoul.c: Also test xstrtoul.
52143         * tests/test-xstrtoimax.c: Also test xstrtoimax.
52144         * tests/test-xstrtoumax.c: Also test xstrtoumax.
52145         * tests/test-xstrtol.sh: Drive the tests.
52146         * tests/test-xstrtoimax.sh: Likewise.
52147         * tests/test-xstrtoumax.sh: Likewise.
52148         * modules/xstrtol-tests: New module.
52149         * modules/xstrtoimax-tests: Likewise.
52150         * modules/xstrtoumax-tests: Likewise.
52151
52152 2007-08-08  Jim Meyering  <jim@meyering.net>
52153
52154         New function: mfile_name_concat.
52155         * lib/filenamecat.c (mfile_name_concat): New function, just like
52156         file_name_concat, but return NULL upon failure rather than exiting
52157         with a diagnostic.
52158         * lib/filenamecat.h: Declare it.
52159
52160 2007-08-07  Bruno Haible  <bruno@clisp.org>
52161
52162         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
52163         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
52164         warning from gcc.
52165         Reported by Eric Blake.
52166
52167 2007-08-07  Simon Josefsson  <simon@josefsson.org>
52168
52169         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
52170         * modules/crypto/arcfour (License): Likewise.
52171         * modules/crypto/des-tests (License): Likewise.
52172         * modules/crypto/gc-arctwo-tests (License): Likewise.
52173         * modules/crypto/gc-des-tests (License): Likewise.
52174         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
52175         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
52176         * modules/crypto/gc-md2-tests (License): Likewise.
52177         * modules/crypto/gc-md4-tests (License): Likewise.
52178         * modules/crypto/gc-md5-tests (License): Likewise.
52179         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
52180         * modules/crypto/gc-rijndael-tests (License): Likewise.
52181         * modules/crypto/gc-sha1-tests (License): Likewise.
52182         * modules/crypto/gc-tests (License): Likewise.
52183         * modules/crypto/hmac-md5 (License): Likewise.
52184         * modules/crypto/hmac-sha1 (License): Likewise.
52185         * modules/crypto/md2-tests (License): Likewise.
52186         * modules/crypto/md4-tests (License): Likewise.
52187         * modules/crypto/md5 (License): Likewise.
52188         * modules/crypto/rijndael (License): Likewise.
52189         * modules/crypto/sha1 (License): Likewise.
52190         * modules/memxor (License): Likewise.
52191
52192 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
52193         and Bruno Haible  <bruno@clisp.org>
52194
52195         * NEWS: Describe interface changes to human, xstrtol.
52196         * lib/human.h: Include <xstrtol.h>.
52197         (human_options): Return enum strtol_error, not int.  Remove
52198         bool arg; take int * instead.
52199         * lib/human.c: Don't include "gettext.h".
52200         (_): Remove; no longer used.
52201         Don't include <xstrtol.h>, since human.h does it.
52202         (human_options): Adjust to abovementioned interface changes.
52203         Do not report error to stderr; that's now the caller's
52204         responsibility.
52205         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
52206         interface change.
52207         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
52208         Str, Argument_type_string.  All uses changed.  Put " argument"
52209         in diagnostics to make them clearer.  Change wording of suffix
52210         message for clarity.
52211         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
52212         Argument_type_string.
52213         (STRTOL_FATAL_WARN): Remove; no longer used.
52214         * modules/human (Depends-on): Remove gettext-h.
52215
52216 2007-08-06  Simon Josefsson  <simon@josefsson.org>
52217
52218         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
52219
52220 2007-07-31  Bruno Haible  <bruno@clisp.org>
52221
52222         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
52223         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
52224         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
52225
52226 2007-07-31  Bruno Haible  <bruno@clisp.org>
52227
52228         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
52229         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
52230
52231 2007-07-30  Bruno Haible  <bruno@clisp.org>
52232
52233         * modules/base64 (License): Use the synonymous term "LGPLv2+".
52234         * modules/c-ctype (License): Likewise.
52235         * modules/c-strcase (License): Likewise.
52236         * modules/check-version (License): Likewise.
52237         * modules/iconv (License): Likewise.
52238         * modules/iconv_open (License): Likewise.
52239         * modules/read-file (License): Likewise.
52240         * modules/striconv (License): Likewise.
52241         * modules/strverscmp (License): Likewise.
52242         * modules/vasprintf (License): Likewise.
52243         * modules/crypto/des (License): Likewise.
52244         * modules/crypto/gc (License): Likewise.
52245         * modules/crypto/gc-arcfour (License): Likewise.
52246         * modules/crypto/gc-arctwo (License): Likewise.
52247         * modules/crypto/gc-des (License): Likewise.
52248         * modules/crypto/gc-hmac-md5 (License): Likewise.
52249         * modules/crypto/gc-hmac-sha1 (License): Likewise.
52250         * modules/crypto/gc-md2 (License): Likewise.
52251         * modules/crypto/gc-md4 (License): Likewise.
52252         * modules/crypto/gc-md5 (License): Likewise.
52253         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
52254         * modules/crypto/gc-random (License): Likewise.
52255         * modules/crypto/gc-rijndael (License): Likewise.
52256         * modules/crypto/gc-sha1 (License): Likewise.
52257         * modules/crypto/md2 (License): Likewise.
52258         * modules/crypto/md4 (License): Likewise.
52259
52260 2007-07-30  Jim Meyering  <jim@meyering.net>
52261
52262         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
52263         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
52264         it has valid stat data.  This bug would cause du not to count the
52265         sizes of inaccessible directories.
52266         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
52267         in <http://bugzilla.redhat.com/250077>.
52268
52269 2007-07-25  Peter O'Gorman  <peter@pogma.com>
52270             Bruno Haible  <bruno@clisp.org>
52271
52272         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
52273         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
52274         #include_next, gives a diagnostic about it, but reports no error in
52275         the exit code.
52276         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
52277
52278 2007-07-24  Ben Pfaff  <blp@gnu.org>
52279
52280         Improve name: "count-one-bits" is better than "popcount".
52281         * MODULES.html.sh: Update name.
52282         * lib/popcount.h: Renamed lib/count-one-bits.h.
52283         (popcount): Renamed count_one_bits.
52284         (popcountl): Renamed count_one_bits_l.
52285         (popcountll): Renamed count_one_bits_ll.
52286         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
52287         * modules/popcount: Renamed module/count-one-bits.
52288         * modules/popcount-tests: Renamed module/count-one-bits-tests.
52289         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
52290
52291 2007-07-23  Ben Pfaff  <blp@gnu.org>
52292
52293         * lib/popcount.h (popcount32): Reduce size of constants, to allow
52294         better code generation, and add U to large constants to avoid
52295         warnings, in non-GCC case.
52296         Suggested by Bruno Haible.
52297
52298 2007-07-23  Ben Pfaff  <blp@gnu.org>
52299
52300         * lib/popcount.h: Use verify_true instead of if...abort.
52301         * modules/popcount: Depend on verify module.
52302         Suggested by Jim Meyering.
52303
52304 2007-07-23  Bruno Haible  <bruno@clisp.org>
52305
52306         * gnulib-tool (func_import): Create a .cvsignore file also when the
52307         directory is not yet in CVS but the toplevel directory is. When
52308         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
52309         Reported by Karl Berry.
52310
52311 2007-07-22  Ben Pfaff  <blp@gnu.org>
52312
52313         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
52314         case.
52315         Suggested by Eric Blake.
52316
52317 2007-07-22  Ben Pfaff  <blp@gnu.org>
52318
52319         New module: popcount.
52320         * MODULES.html.sh: Add popcount.
52321         * modules/popcount: New file.
52322         * modules/popcount-tests: New file.
52323         * tests/test-popcount.c: New file.
52324         * lib/popcount.h: New file.
52325         * m4/popcount.m4: New file.
52326
52327 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
52328
52329         * build-aux/announce-gen: Update to GPLv3.
52330
52331         * build-aux/config.guess: Update from config.
52332
52333 2007-07-21  Bruno Haible  <bruno@clisp.org>
52334
52335         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
52336         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
52337
52338 2007-07-20  Jim Meyering  <jim@meyering.net>
52339
52340         * check-module: Diagnose a self-dependency.
52341
52342 2007-07-19  Bruno Haible  <bruno@clisp.org>
52343
52344         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
52345         empty.
52346         Reported by Eric Blake.
52347
52348 2007-07-18  Bruno Haible  <bruno@clisp.org>
52349
52350         * gnulib-tool: New options --po-base, --po-domain.
52351         (func_usage): Document them.
52352         (pobase, po_domain): New variables.
52353         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
52354         DEFAULT_TEXT_DOMAIN.
52355         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
52356         (func_import): Consider pobase and po_domain. Create a po/ directory.
52357         (func_create_testdir): Set pobase and po_domain to empty.
52358         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
52359         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
52360
52361 2007-07-18  Bruno Haible  <bruno@clisp.org>
52362
52363         * gnulib-tool (func_get_automake_snippet): Synthesize also an
52364         EXTRA_DIST augmentation for files in build-aux/.
52365
52366 2007-07-16  Bruno Haible  <bruno@clisp.org>
52367
52368         * modules/lseek (License): Use the synonymous term "LGPLv2+".
52369         * modules/getdelim (License): Likewise.
52370
52371 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52372
52373         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
52374         * modules/d-type (License): Likewise.
52375         * modules/extensions (License): Likewise.
52376         * modules/fnmatch (License): Likewise.
52377         * modules/fseeko (License): Likewise.
52378         * modules/getaddrinfo (License): Likewise.
52379         * modules/getline (License): Likewise.
52380         * modules/getlogin_r (License): Likewise.
52381         * modules/getpass (License): Likewise.
52382         * modules/gettimeofday (License): Likewise.
52383         * modules/glob (License): Likewise.
52384         * modules/inet_ntop (License): Likewise.
52385         * modules/malloc (License): Likewise.
52386         * modules/malloca (License): Likewise.
52387         * modules/memmem (License): Likewise.
52388         * modules/mempcpy (License): Likewise.
52389         * modules/memset (License): Likewise.
52390         * modules/minmax (License): Likewise.
52391         * modules/mktime (License): Likewise.
52392         * modules/netinet_in (License): Likewise.
52393         * modules/pathmax (License): Likewise.
52394         * modules/poll (License): Likewise.
52395         * modules/regex (License): Likewise.
52396         * modules/snprintf (License): Likewise.
52397         * modules/stdbool (License): Likewise.
52398         * modules/stdint (License): Likewise.
52399         * modules/stdio (License): Likewise.
52400         * modules/strcase (License): Likewise.
52401         * modules/strcasestr (License): Likewise.
52402         * modules/strdup (License): Likewise.
52403         * modules/string (License): Likewise.
52404         * modules/strndup (License): Likewise.
52405         * modules/strnlen (License): Likewise.
52406         * modules/strpbrk (License): Likewise.
52407         * modules/strptime (License): Likewise.
52408         * modules/strsep (License): Likewise.
52409         * modules/sys_select (License): Likewise.
52410         * modules/sys_socket (License): Likewise.
52411         * modules/sys_stat (License): Likewise.
52412         * modules/sys_time (License): Likewise.
52413         * modules/time (License): Likewise.
52414         * modules/time_r (License): Likewise.
52415         * modules/timegm (License): Likewise.
52416         * modules/unistd (License): Likewise.
52417         * modules/vsnprintf (License): Likewise.
52418         * modules/wctype (License): Likewise.
52419
52420 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52421
52422         * modules/argz (License): LGPLv2+.
52423
52424 2007-07-15  Karl Berry  <karl@gnu.org>
52425
52426         * doc/gnulib.texi: revise node structure per new fdl.texi.
52427
52428 2007-07-14  Bruno Haible  <bruno@clisp.org>
52429
52430         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
52431         the output file.
52432         * lib/uniname/uninames.h: Regenerated.
52433
52434 2007-07-14  Karl Berry  <karl@gnu.org>
52435
52436         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
52437         omitting sectioning and index commands.
52438
52439 2007-07-13  Bruno Haible  <bruno@clisp.org>
52440
52441         New gnulib-tool option --more-symlinks.
52442         * gnulib-tool (func_usage): Document --more-symlinks.
52443         (do_copyrights): New variable.
52444         Recognize option --more-symlinks.
52445         (func_import): Don't add a copyright notice transform to
52446         sed_transform_lib_file if do_copyrights is empty.
52447
52448 2007-07-13  Bruno Haible  <bruno@clisp.org>
52449
52450         * lib/vasnprintf.c (decimal_point_char): Define also if
52451         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
52452         && !NEED_PRINTF_DIRECTIVE_A.
52453         Reported by Clemens Koller <clemens.koller@anagramm.de> via
52454         Gary V. Vaughan <gary@gnu.org>.
52455
52456 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
52457
52458         * lib/inttypes_.h: Undo previous change, since it was fixed
52459         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
52460
52461 2007-07-13  Bruno Haible  <bruno@clisp.org>
52462
52463         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
52464         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
52465
52466 2007-07-13  Jim Meyering  <jim@meyering.net>
52467
52468         df: Don't fail for Tru64's "file-on-file mount".
52469         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
52470         so we fall through and use statfs instead.  Details here:
52471         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
52472         Reported by Albert Chin.
52473
52474 2007-07-13  Bruno Haible  <bruno@clisp.org>
52475
52476         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
52477         * modules/configmake (License): Likewise.
52478         * modules/gettext (License): Likewise.
52479         * modules/gettext-h (License): Likewise.
52480         * modules/include_next (License): Likewise.
52481         * modules/link-warning (License): Likewise.
52482         * modules/localcharset (License): Likewise.
52483         * modules/localename (License): Likewise.
52484         * modules/lock (License): Likewise.
52485         * modules/relocatable-lib-lgpl (License): Likewise.
52486         * modules/size_max (License): Likewise.
52487         * modules/vasnprintf (License): Likewise.
52488         * modules/wchar (License): Likewise.
52489         * modules/xsize (License): Likewise.
52490
52491 2007-07-13  Bruno Haible  <bruno@clisp.org>
52492
52493         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
52494         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
52495
52496 2007-07-12  Bruno Haible  <bruno@clisp.org>
52497
52498         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
52499         in the modules files.
52500
52501 2007-07-11  Karl Berry  <karl@gnu.org>
52502
52503         * MODULES.html.sh (func_module): use
52504          sed -e '\|^'"${includefile}"'$|d'
52505          instead of /.../d, to avoid errors on $includefile's containing /.
52506
52507 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
52508
52509         * gnulib-tool (func_import): Avoid duplication of --avoid
52510         statements
52511         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
52512         names to `_' in variable names.
52513
52514 2007-07-10  Eric Blake  <ebb9@byu.net>
52515
52516         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
52517         * NEWS: Document this change.
52518
52519 2007-07-08  Bruno Haible  <bruno@clisp.org>
52520
52521         Update to Unicode 5.0.
52522         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
52523         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
52524         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
52525         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
52526         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
52527         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
52528         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
52529         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
52530         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
52531         U+10A3F, U+1D242..U+1D244.
52532         (nonspacing_table_ind): Update.
52533         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
52534         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
52535
52536 2007-07-08  Bruno Haible  <bruno@clisp.org>
52537
52538         Update to Unicode 5.0.
52539         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
52540         code transform. Extend the name index field of unicode_name_to_code and
52541         unicode_code_to_name from 16 to 24 bits.
52542         * lib/uniname/uniname.c (unicode_character_name,
52543         unicode_name_character): Add the range 0x12xxx to the code transform.
52544         * lib/uniname/uninames.h: Regenerated.
52545         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
52546
52547 2007-07-07  Bruno Haible  <bruno@clisp.org>
52548
52549         * modules/wcwidth-tests: New file.
52550         * tests/test-wcwidth.c: New file.
52551
52552         Work around MacOS X wcwidth() bug.
52553         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
52554         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
52555         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
52556         original wcwidth in non-UTF-8 locales.
52557         * modules/wcwidth (Depends-on): Add localcharset, streq,
52558         uniwidth/width.
52559         * doc/functions/wcwidth.texi: Update.
52560
52561 2007-07-07  Bruno Haible  <bruno@clisp.org>
52562
52563         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
52564         (wcwidth): New declaration.
52565         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
52566         macros.
52567         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
52568         here. Prepare for creating <wchar.h> unconditionally.
52569         * modules/wchar (Depends-on): Add link-warning.
52570         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
52571         REPLACE_WCWIDTH, and GL_LINK_WARNING.
52572         * lib/wcwidth.h: Remove file.
52573         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
52574         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
52575         * modules/wcwidth (Files): Remove lib/wcwidth.h.
52576         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
52577         (Include): Replace wcwidth.h with <wchar.h>.
52578         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
52579         * lib/mbchar.h: Don't include wcwidth.h.
52580         * lib/mbswidth.c: Likewise.
52581         * NEWS: Mention the change.
52582
52583 2007-07-07  Bruno Haible  <bruno@clisp.org>
52584
52585         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
52586         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
52587         definition with an external declaration.
52588         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
52589         defined as a function. Remove AC_C_INLINE requirement.
52590         * modules/wcwidth (Files): Add lib/wcwidth.c.
52591         (Makefile.am): Remove redundant statement.
52592
52593 2007-07-07  Bruno Haible  <bruno@clisp.org>
52594
52595         * MODULES.html.sh (Unicode string functions): Add the new modules.
52596
52597         * tests/uniwidth/test-u32-strwidth.c: New file.
52598         * modules/uniwidth/u32-strwidth-tests: New file.
52599
52600         * lib/uniwidth/u32-strwidth.c: New file.
52601         * modules/uniwidth/u32-strwidth: New file.
52602
52603         * tests/uniwidth/test-u16-strwidth.c: New file.
52604         * modules/uniwidth/u16-strwidth-tests: New file.
52605
52606         * lib/uniwidth/u16-strwidth.c: New file.
52607         * modules/uniwidth/u16-strwidth: New file.
52608
52609         * tests/uniwidth/test-u8-strwidth.c: New file.
52610         * modules/uniwidth/u8-strwidth-tests: New file.
52611
52612         * lib/uniwidth/u8-strwidth.c: New file.
52613         * modules/uniwidth/u8-strwidth: New file.
52614
52615         * tests/uniwidth/test-u32-width.c: New file.
52616         * modules/uniwidth/u32-width-tests: New file.
52617
52618         * lib/uniwidth/u32-width.c: New file.
52619         * modules/uniwidth/u32-width: New file.
52620
52621         * tests/uniwidth/test-u16-width.c: New file.
52622         * modules/uniwidth/u16-width-tests: New file.
52623
52624         * lib/uniwidth/u16-width.c: New file.
52625         * modules/uniwidth/u16-width: New file.
52626
52627         * tests/uniwidth/test-u8-width.c: New file.
52628         * modules/uniwidth/u8-width-tests: New file.
52629
52630         * lib/uniwidth/u8-width.c: New file.
52631         * modules/uniwidth/u8-width: New file.
52632
52633         * tests/uniwidth/test-uc_width.c: New file.
52634         * modules/uniwidth/width-tests: New file.
52635
52636         * lib/uniwidth/width.c: New file, from GNU libiconv.
52637         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
52638         * modules/uniwidth/width: New file.
52639
52640         * lib/uniwidth.h: New file, from GNU libiconv.
52641         * modules/uniwidth/base: New file.
52642
52643 2007-07-07  Bruno Haible  <bruno@clisp.org>
52644
52645         * lib/uniname.h: New file, from GNU gettext.
52646         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
52647         * lib/uniname/uninames.h: New file, from GNU gettext.
52648         * lib/uniname/uniname.c: New file, from GNU gettext.
52649         * tests/uniname/test-uninames.sh: New file.
52650         * tests/uniname/test-uninames.c: New file, from GNU gettext.
52651         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
52652         * modules/uniname/base: New file.
52653         * modules/uniname/uniname: New file.
52654         * modules/uniname/uniname-tests: New file.
52655         * MODULES.html.sh (Unicode string functions): Add the new modules.
52656
52657 2007-07-06  Bruno Haible  <bruno@clisp.org>
52658
52659         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
52660
52661 2007-07-06  Bruno Haible  <bruno@clisp.org>
52662
52663         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
52664         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
52665         includes <cygwin/sys_time.h> which includes <sys/select.h> which
52666         include <sys/time.h>.
52667         Reported by Eric Blake.
52668
52669 2007-07-06  Eric Blake  <ebb9@byu.net>
52670
52671         Fix testing canonicalize on cygwin.
52672         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
52673         Revert patch from 2007-06-19.
52674         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
52675         canonicalize module is also in use.
52676         * tests/test-canonicalize.c: New file.
52677         * tests/test-canonicalize.sh: Likewise.
52678         * modules/canonicalize-tests: Likewise.
52679
52680 2007-07-06  Jim Meyering  <jim@meyering.net>
52681
52682         * lib/getugroups.c (getugroups): Detect getgrent failure.
52683         Adjust comment to reflect reality: this function may return -1.
52684
52685 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
52686
52687         * build-aux/bootstrap (TP_URL,get_translations): Update to use
52688         the new TP address.
52689         (usage): Fix typo
52690         (gnulib_mk): New variable.
52691
52692 2007-07-05  Jim Meyering  <jim@meyering.net>
52693
52694         Don't let endgrent clobber errno, no matter how improbable.
52695         * lib/getugroups.c (getugroups): Save and restore errno around
52696         endgrent call.
52697
52698         Close the group DB even when failing with 2^31 or more members.
52699         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
52700
52701 2007-07-04  Jim Meyering  <jim@meyering.net>
52702
52703         * lib/getugroups.h: New file.
52704         * lib/getugroups.c: Include "getugroups.h".
52705         Remove uses of "register" keyword.
52706         Move local variable, "cp", down into scope where used.
52707         Give "username" parameter the "const" attribute.
52708         * modules/getugroups (Files): Add lib/getugroups.h
52709
52710 2007-07-04  Karl Berry  <karl@gnu.org>
52711
52712         * MODULES.html.sh (func_all_modules): Complete rename of
52713         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
52714
52715 2007-07-02  Bruno Haible  <bruno@clisp.org>
52716
52717         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
52718         mode, when inttypes.h comes from gnulib.
52719         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
52720
52721 2007-07-02  Simon Josefsson  <simon@josefsson.org>
52722
52723         * NEWS: Mention lgpl module name change.
52724
52725         * modules/lgpl-2.1: Renamed from lgpl.
52726
52727         * NEWS: Mention gpl module name change.
52728
52729         * modules/gpl-3.0: New file, based on gpl-2.0.
52730
52731         * modules/gpl-2.0: Renamed from gpl.
52732
52733         * modules/gpl: Fix filename, doc/gpl.texi is now found at
52734         doc/gpl-2.0.texi.
52735
52736 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
52737
52738         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
52739         #define __STDC_LIMIT_MACROS temporarily while including
52740         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
52741         Problem reported by Joel E. Denny in
52742         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
52743
52744 2007-07-01  Bruno Haible  <bruno@clisp.org>
52745
52746         * lib/unistdio.h: New file.
52747         * lib/unistdio/u-asnprintf.h: New file.
52748         * lib/unistdio/u-asprintf.h: New file.
52749         * lib/unistdio/u-printf-args.c: New file.
52750         * lib/unistdio/u-printf-args.h: New file.
52751         * lib/unistdio/u-printf-parse.h: New file.
52752         * lib/unistdio/u-snprintf.h: New file.
52753         * lib/unistdio/u-sprintf.h: New file.
52754         * lib/unistdio/u-vasprintf.h: New file.
52755         * lib/unistdio/u-vsnprintf.h: New file.
52756         * lib/unistdio/u-vsprintf.h: New file.
52757         * lib/unistdio/ulc-asnprintf.c: New file.
52758         * lib/unistdio/ulc-asprintf.c: New file.
52759         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
52760         * lib/unistdio/ulc-printf-parse.c: New file.
52761         * lib/unistdio/ulc-snprintf.c: New file.
52762         * lib/unistdio/ulc-sprintf.c: New file.
52763         * lib/unistdio/ulc-vasnprintf.c: New file.
52764         * lib/unistdio/ulc-vasprintf.c: New file.
52765         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
52766         * lib/unistdio/ulc-vsnprintf.c: New file.
52767         * lib/unistdio/ulc-vsprintf.c: New file.
52768         * lib/unistdio/u8-asnprintf.c: New file.
52769         * lib/unistdio/u8-asprintf.c: New file.
52770         * lib/unistdio/u8-printf-parse.c: New file.
52771         * lib/unistdio/u8-snprintf.c: New file.
52772         * lib/unistdio/u8-sprintf.c: New file.
52773         * lib/unistdio/u8-vasnprintf.c: New file.
52774         * lib/unistdio/u8-vasprintf.c: New file.
52775         * lib/unistdio/u8-vsnprintf.c: New file.
52776         * lib/unistdio/u8-vsprintf.c: New file.
52777         * lib/unistdio/u8-u8-asnprintf.c: New file.
52778         * lib/unistdio/u8-u8-asprintf.c: New file.
52779         * lib/unistdio/u8-u8-snprintf.c: New file.
52780         * lib/unistdio/u8-u8-sprintf.c: New file.
52781         * lib/unistdio/u8-u8-vasnprintf.c: New file.
52782         * lib/unistdio/u8-u8-vasprintf.c: New file.
52783         * lib/unistdio/u8-u8-vsnprintf.c: New file.
52784         * lib/unistdio/u8-u8-vsprintf.c: New file.
52785         * lib/unistdio/u16-asnprintf.c: New file.
52786         * lib/unistdio/u16-asprintf.c: New file.
52787         * lib/unistdio/u16-printf-parse.c: New file.
52788         * lib/unistdio/u16-snprintf.c: New file.
52789         * lib/unistdio/u16-sprintf.c: New file.
52790         * lib/unistdio/u16-vasnprintf.c: New file.
52791         * lib/unistdio/u16-vasprintf.c: New file.
52792         * lib/unistdio/u16-vsnprintf.c: New file.
52793         * lib/unistdio/u16-vsprintf.c: New file.
52794         * lib/unistdio/u16-u16-asnprintf.c: New file.
52795         * lib/unistdio/u16-u16-asprintf.c: New file.
52796         * lib/unistdio/u16-u16-snprintf.c: New file.
52797         * lib/unistdio/u16-u16-sprintf.c: New file.
52798         * lib/unistdio/u16-u16-vasnprintf.c: New file.
52799         * lib/unistdio/u16-u16-vasprintf.c: New file.
52800         * lib/unistdio/u16-u16-vsnprintf.c: New file.
52801         * lib/unistdio/u16-u16-vsprintf.c: New file.
52802         * lib/unistdio/u32-asnprintf.c: New file.
52803         * lib/unistdio/u32-asprintf.c: New file.
52804         * lib/unistdio/u32-printf-parse.c: New file.
52805         * lib/unistdio/u32-snprintf.c: New file.
52806         * lib/unistdio/u32-sprintf.c: New file.
52807         * lib/unistdio/u32-vasnprintf.c: New file.
52808         * lib/unistdio/u32-vasprintf.c: New file.
52809         * lib/unistdio/u32-vsnprintf.c: New file.
52810         * lib/unistdio/u32-vsprintf.c: New file.
52811         * lib/unistdio/u32-u32-asnprintf.c: New file.
52812         * lib/unistdio/u32-u32-asprintf.c: New file.
52813         * lib/unistdio/u32-u32-snprintf.c: New file.
52814         * lib/unistdio/u32-u32-sprintf.c: New file.
52815         * lib/unistdio/u32-u32-vasnprintf.c: New file.
52816         * lib/unistdio/u32-u32-vasprintf.c: New file.
52817         * lib/unistdio/u32-u32-vsnprintf.c: New file.
52818         * lib/unistdio/u32-u32-vsprintf.c: New file.
52819         * tests/unistdio/test-ulc-asnprintf1.c: New file.
52820         * tests/unistdio/test-ulc-asnprintf1.h: New file.
52821         * tests/unistdio/test-ulc-printf1.h: New file.
52822         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
52823         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
52824         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
52825         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
52826         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
52827         * tests/unistdio/test-ulc-vasprintf1.c: New file.
52828         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
52829         * tests/unistdio/test-ulc-vsprintf1.c: New file.
52830         * tests/unistdio/test-u8-asnprintf1.c: New file.
52831         * tests/unistdio/test-u8-asnprintf1.h: New file.
52832         * tests/unistdio/test-u8-printf1.h: New file.
52833         * tests/unistdio/test-u8-vasnprintf1.c: New file.
52834         * tests/unistdio/test-u8-vasnprintf2.c: New file.
52835         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
52836         * tests/unistdio/test-u8-vasnprintf3.c: New file.
52837         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
52838         * tests/unistdio/test-u8-vasprintf1.c: New file.
52839         * tests/unistdio/test-u8-vsnprintf1.c: New file.
52840         * tests/unistdio/test-u8-vsprintf1.c: New file.
52841         * tests/unistdio/test-u16-asnprintf1.c: New file.
52842         * tests/unistdio/test-u16-asnprintf1.h: New file.
52843         * tests/unistdio/test-u16-printf1.h: New file.
52844         * tests/unistdio/test-u16-vasnprintf1.c: New file.
52845         * tests/unistdio/test-u16-vasnprintf2.c: New file.
52846         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
52847         * tests/unistdio/test-u16-vasnprintf3.c: New file.
52848         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
52849         * tests/unistdio/test-u16-vasprintf1.c: New file.
52850         * tests/unistdio/test-u16-vsnprintf1.c: New file.
52851         * tests/unistdio/test-u16-vsprintf1.c: New file.
52852         * tests/unistdio/test-u32-asnprintf1.c: New file.
52853         * tests/unistdio/test-u32-asnprintf1.h: New file.
52854         * tests/unistdio/test-u32-printf1.h: New file.
52855         * tests/unistdio/test-u32-vasnprintf1.c: New file.
52856         * tests/unistdio/test-u32-vasnprintf2.c: New file.
52857         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
52858         * tests/unistdio/test-u32-vasnprintf3.c: New file.
52859         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
52860         * tests/unistdio/test-u32-vasprintf1.c: New file.
52861         * tests/unistdio/test-u32-vsnprintf1.c: New file.
52862         * tests/unistdio/test-u32-vsprintf1.c: New file.
52863         * modules/unistdio/base: New file.
52864         * modules/unistdio/u-printf-args: New file.
52865         * modules/unistdio/ulc-asnprintf: New file.
52866         * modules/unistdio/ulc-asprintf: New file.
52867         * modules/unistdio/ulc-fprintf: New file.
52868         * modules/unistdio/ulc-printf-parse: New file.
52869         * modules/unistdio/ulc-snprintf: New file.
52870         * modules/unistdio/ulc-sprintf: New file.
52871         * modules/unistdio/ulc-vasnprintf: New file.
52872         * modules/unistdio/ulc-vasprintf: New file.
52873         * modules/unistdio/ulc-vfprintf: New file.
52874         * modules/unistdio/ulc-vsnprintf: New file.
52875         * modules/unistdio/ulc-vsprintf: New file.
52876         * modules/unistdio/u8-asnprintf: New file.
52877         * modules/unistdio/u8-asprintf: New file.
52878         * modules/unistdio/u8-printf-parse: New file.
52879         * modules/unistdio/u8-snprintf: New file.
52880         * modules/unistdio/u8-sprintf: New file.
52881         * modules/unistdio/u8-vasnprintf: New file.
52882         * modules/unistdio/u8-vasprintf: New file.
52883         * modules/unistdio/u8-vsnprintf: New file.
52884         * modules/unistdio/u8-vsprintf: New file.
52885         * modules/unistdio/u8-u8-asnprintf: New file.
52886         * modules/unistdio/u8-u8-asprintf: New file.
52887         * modules/unistdio/u8-u8-snprintf: New file.
52888         * modules/unistdio/u8-u8-sprintf: New file.
52889         * modules/unistdio/u8-u8-vasnprintf: New file.
52890         * modules/unistdio/u8-u8-vasprintf: New file.
52891         * modules/unistdio/u8-u8-vsnprintf: New file.
52892         * modules/unistdio/u8-u8-vsprintf: New file.
52893         * modules/unistdio/u16-asnprintf: New file.
52894         * modules/unistdio/u16-asprintf: New file.
52895         * modules/unistdio/u16-printf-parse: New file.
52896         * modules/unistdio/u16-snprintf: New file.
52897         * modules/unistdio/u16-sprintf: New file.
52898         * modules/unistdio/u16-vasnprintf: New file.
52899         * modules/unistdio/u16-vasprintf: New file.
52900         * modules/unistdio/u16-vsnprintf: New file.
52901         * modules/unistdio/u16-vsprintf: New file.
52902         * modules/unistdio/u16-u16-asnprintf: New file.
52903         * modules/unistdio/u16-u16-asprintf: New file.
52904         * modules/unistdio/u16-u16-snprintf: New file.
52905         * modules/unistdio/u16-u16-sprintf: New file.
52906         * modules/unistdio/u16-u16-vasnprintf: New file.
52907         * modules/unistdio/u16-u16-vasprintf: New file.
52908         * modules/unistdio/u16-u16-vsnprintf: New file.
52909         * modules/unistdio/u16-u16-vsprintf: New file.
52910         * modules/unistdio/u32-asnprintf: New file.
52911         * modules/unistdio/u32-asprintf: New file.
52912         * modules/unistdio/u32-printf-parse: New file.
52913         * modules/unistdio/u32-snprintf: New file.
52914         * modules/unistdio/u32-sprintf: New file.
52915         * modules/unistdio/u32-vasnprintf: New file.
52916         * modules/unistdio/u32-vasprintf: New file.
52917         * modules/unistdio/u32-vsnprintf: New file.
52918         * modules/unistdio/u32-vsprintf: New file.
52919         * modules/unistdio/u32-u32-asnprintf: New file.
52920         * modules/unistdio/u32-u32-asprintf: New file.
52921         * modules/unistdio/u32-u32-snprintf: New file.
52922         * modules/unistdio/u32-u32-sprintf: New file.
52923         * modules/unistdio/u32-u32-vasnprintf: New file.
52924         * modules/unistdio/u32-u32-vasprintf: New file.
52925         * modules/unistdio/u32-u32-vsnprintf: New file.
52926         * modules/unistdio/u32-u32-vsprintf: New file.
52927         * modules/unistdio/ulc-asnprintf-tests: New file.
52928         * modules/unistdio/ulc-vasnprintf-tests: New file.
52929         * modules/unistdio/ulc-vasprintf-tests: New file.
52930         * modules/unistdio/ulc-vsnprintf-tests: New file.
52931         * modules/unistdio/ulc-vsprintf-tests: New file.
52932         * modules/unistdio/u8-asnprintf-tests: New file.
52933         * modules/unistdio/u8-vasnprintf-tests: New file.
52934         * modules/unistdio/u8-vasprintf-tests: New file.
52935         * modules/unistdio/u8-vsnprintf-tests: New file.
52936         * modules/unistdio/u8-vsprintf-tests: New file.
52937         * modules/unistdio/u16-asnprintf-tests: New file.
52938         * modules/unistdio/u16-vasnprintf-tests: New file.
52939         * modules/unistdio/u16-vasprintf-tests: New file.
52940         * modules/unistdio/u16-vsnprintf-tests: New file.
52941         * modules/unistdio/u16-vsprintf-tests: New file.
52942         * modules/unistdio/u32-asnprintf-tests: New file.
52943         * modules/unistdio/u32-vasnprintf-tests: New file.
52944         * modules/unistdio/u32-vasprintf-tests: New file.
52945         * modules/unistdio/u32-vsnprintf-tests: New file.
52946         * modules/unistdio/u32-vsprintf-tests: New file.
52947         * MODULES.html.sh (Unicode string functions): Add the new modules.
52948
52949 2007-07-01  Bruno Haible  <bruno@clisp.org>
52950
52951         * lib/sprintf.c (sprintf): Limit the available length estimation,
52952         to avoid address wraparound.
52953         * lib/vsprintf.c (vsprintf): Likewise.
52954         * modules/sprintf-posix (Dependencies): Add stdint.
52955         * modules/vsprintf-posix (Dependencies): Likewise.
52956
52957 2007-07-01  Bruno Haible  <bruno@clisp.org>
52958
52959         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
52960         Windows PATH as well. Conservative double-quoting. Comments.
52961
52962 2007-07-01  Bruno Haible  <bruno@clisp.org>
52963             Eric Blake  <ebb9@byu.net>
52964             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52965
52966         * gnulib-tool (self_abspathname): Fix algorithm to cope with
52967         empty components in $PATH, denoting '.'.
52968
52969 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52970
52971         * gnulib-tool: Fix indentation.
52972         (func_create_megatestdir): Likewise.
52973         Report by Bruno Haible.
52974
52975 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52976
52977         Sync from Automake.
52978         * build-aux/gnupload: Fix shell portability issues with for loops.
52979         Report by Karl Berry.
52980
52981 2007-06-29  Simon Josefsson  <simon@josefsson.org>
52982
52983         * build-aux/maint.mk (POURL): Use translationproject.org.
52984
52985 2007-06-27  Simon Josefsson  <simon@josefsson.org>
52986             Bruno Haible  <bruno@clisp.org>
52987
52988         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
52989         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
52990         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
52991         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
52992         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
52993
52994 2007-06-27  Bruno Haible  <bruno@clisp.org>
52995
52996         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
52997         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
52998
52999 2007-06-26  Karl Berry  <karl@gnu.org>
53000
53001         * MODULES.html.sh: remove xreadlink-with-size.
53002
53003 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
53004
53005         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
53006         method that I hope also handles the double-include problem noted
53007         by Bruno Haible in
53008         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
53009
53010 2007-06-23  Bruno Haible  <bruno@clisp.org>
53011
53012         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
53013         Don't let the 'mostlyclean' target fail if the last subdirectory could
53014         not be removed.
53015         Reported by Karl Berry.
53016
53017 2007-06-23  Bruno Haible  <bruno@clisp.org>
53018
53019         * gnulib-tool (echo): Add a speedier workaround for ksh.
53020         * tests/test-echo.sh: Likewise.
53021
53022 2007-06-23  Bruno Haible  <bruno@clisp.org>
53023
53024         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
53025         * tests/test-echo.sh: Likewise.
53026
53027 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53028
53029         * gnulib-tool (IFS): Initialize early, so we don't set it to
53030         empty later.
53031         (self_abspathname): Rewrite algorithm to set it, reindent.
53032         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
53033         (func_create_megatestdir): Merge some sed scripts.
53034
53035 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
53036
53037         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
53038         exposed by Sun Studio 11 cc on Solaris 8.
53039
53040 2007-06-22  Bruno Haible  <bruno@clisp.org>
53041
53042         * gnulib-tool (echo): Ensure the echo primitive does not interpret
53043         backslashes.
53044         * tests/test-echo.sh: New file.
53045
53046 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53047
53048         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
53049         simplify `sed_replace_build_aux' scripts, they are portable but
53050         echoing them with `echo' is not.
53051         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
53052
53053 2007-06-21  Karl Berry  <karl@gnu.org>
53054
53055         * config/srclist.txt: guess we can't handle the licenses via
53056         srclist at the moment.
53057
53058 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
53059
53060         * MODULES.html.sh: Add include_next.
53061         * modules/include_next: New file.
53062
53063 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
53064
53065         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
53066         INCLUDE_NEXT.
53067         (gl_CHECK_NEXT_HEADERS): New macro.
53068         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
53069         the obsolescent gl_ABSOLUTE_HEADER.
53070         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
53071         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
53072         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
53073         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
53074         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
53075         * m4/math_h.m4 (gl_MATH_H): Likewise.
53076         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
53077         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
53078         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
53079         * m4/stdint.m4 (gl_STDINT_H): Likewise.
53080         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
53081         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
53082         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
53083         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
53084         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
53085         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
53086         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
53087         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
53088         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
53089         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
53090         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
53091         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
53092         * m4/inttypes.m4 (gl_INTTYPES_H): Define
53093         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
53094         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
53095         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
53096         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
53097         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
53098         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
53099         * lib/float_.h: Likewise.
53100         * lib/inttypes_.h: Likewise.
53101         * lib/math_.h: Likewise.
53102         * lib/search_.h: Likewise.
53103         * lib/signal_.h: Likewise.
53104         * lib/stdint_.h: Likewise.
53105         * lib/stdio_.h: Likewise.
53106         * lib/stdlib_.h: Likewise.
53107         * lib/string_.h: Likewise.
53108         * lib/sys_stat_.h: Likewise.
53109         * lib/sys_time_.h: Likewise.
53110         * lib/time_.h: Likewise.
53111         * lib/unistd_.h: Likewise.
53112         * lib/wchar_.h: Likewise.
53113         * lib/wctype_.h: Likewise.
53114         * lib/dirent_.h: Likewise.
53115         * lib/iconv_.h: Likewise.
53116         * lib/locale_.h: Likewise.
53117         * lib/netinet_in_.h: Likewise.
53118         * lib/sys_select_.h: Likewise.
53119         * lib/sys_socket_.h: Likewise.
53120         * lib/sysexits_.h: Likewise.
53121         * modules/fcntl (Depends-on): Depend on include_next, not
53122         absolute_header.
53123         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
53124         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
53125         * modules/fchdir: Likewise.
53126         * modules/float: Likewise.
53127         * modules/iconv_open: Likewise.
53128         * modules/inttypes: Likewise.
53129         * modules/locale: Likewise.
53130         * modules/math: Likewise.
53131         * modules/netinet_in: Likewise.
53132         * modules/search: Likewise.
53133         * modules/signal: Likewise.
53134         * modules/stdint: Likewise.
53135         * modules/stdio: Likewise.
53136         * modules/stdlib: Likewise.
53137         * modules/string: Likewise.
53138         * modules/sys_select: Likewise.
53139         * modules/sys_socket: Likewise.
53140         * modules/sys_stat: Likewise.
53141         * modules/sys_time: Likewise.
53142         * modules/sysexits: Likewise.
53143         * modules/time: Likewise.
53144         * modules/unistd: Likewise.
53145         * modules/wchar: Likewise.
53146         * modules/wctype: Likewise.
53147         * modules/sys_stat: Change maintainer to "all".
53148         * modules/unistd: Likewise.
53149
53150 2007-06-20  Karl Berry  <karl@gnu.org>
53151
53152         * config/srclist.txt: track www changes in license files.
53153
53154 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
53155
53156         * build-aux/bootstrap: Remove stray dot.
53157         Make sure build_aux settings are honored when linking
53158         gnulib_extra_files.
53159
53160 2007-06-19  Eric Blake  <ebb9@byu.net>
53161
53162         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
53163         Allow compilation on cygwin.
53164
53165 2007-06-19  Jim Meyering  <jim@meyering.net>
53166
53167         xreadlink-with-size: Remove module.  No longer used.
53168         Ex-callers now use xreadlink or mreadlink-with-size.
53169         * modules/xreadlink-with-size: Remove module.
53170         * lib/xreadlink-with-size.c: Remove file.
53171         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
53172         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
53173         just before the function definition *is* accurate.
53174
53175         Eliminate one way canonicalize_filename_mode could exit.
53176         * lib/canonicalize.c (canonicalize_filename_mode):
53177         Use mreadlink_with_size, not xreadlink_with_size.
53178
53179 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
53180
53181         Detect porting problems to FreeBSD/arm, which has time_t wider than
53182         long int.  Original problem reported for GNU diff by Xin Li in
53183         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
53184         * modules/getdate (Depends-on): Add intprops, verify.
53185         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
53186         is an integer type no wider than long int.
53187
53188 2007-06-18  Jim Meyering  <jim@meyering.net>
53189
53190         New module: mreadlink-with-size.
53191         * MODULES.html.sh: Add mreadlink-with-size.
53192         * modules/mreadlink-with-size: New module
53193         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
53194         not xreadlink-with-size.
53195         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
53196
53197 2007-06-16  Bruno Haible  <bruno@clisp.org>
53198
53199         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
53200         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
53201         Reported by Gary V. Vaughan <gary@gnu.org>.
53202
53203 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
53204
53205         Revamp lchown so that it lives in unistd.h where it belongs.
53206         * lib/lchown.h: Remove.
53207         * lib/dirchownmod.c: Don't include lib/lchown.h.
53208         * lib/fchownat.c: Likewise.
53209         * lib/openat.c: Likewise.
53210         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
53211         does not follow symlinks.
53212         (EOPNOTSUPP): Define if not defined.
53213         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
53214         is defined to 0.
53215         (lchown): New decl.
53216         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
53217         Do not check for lchown decl.
53218         Set REPLACE_LCHOWN.
53219         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
53220         REPLACE_LCHOWN.
53221         * modules/chown: Make it clear it follows symlinks.
53222         * modules/lchown: Make it clear it doesn't follow symlinks.
53223         (Files): Remove lib/lchown.h
53224         (Depends-on): Add unistd.
53225         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
53226         (Include): Include <unistd.h>, not "lchown.h".
53227         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
53228         REPLACE_LCHOWN.
53229
53230 2007-06-15  Jim Meyering  <jim@meyering.net>
53231
53232         Change license (GPL to LGPL) of fsusage and dependents.
53233         * modules/fsusage (License): Change to LGPL.
53234         * modules/full-read (License): Likewise.
53235         * modules/full-write (License): Likewise.
53236         * modules/safe-read (License): Likewise.
53237         * modules/safe-write (License): Likewise.
53238
53239 2007-06-14  Ben Pfaff  <blp@gnu.org>
53240
53241         Missing part of allocsa -> malloca transition.
53242         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
53243         gl_MALLOCA.
53244
53245 2007-06-12  Bruno Haible  <bruno@clisp.org>
53246
53247         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
53248         to ia64, x86_64, i386.
53249         Reported by Eric Blake.
53250
53251 2007-06-12  Bruno Haible  <bruno@clisp.org>
53252
53253         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
53254         cross-compiling to x86_64.
53255
53256 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
53257
53258         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
53259         glitch reported by Ralf Wildenhues in
53260         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
53261
53262         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
53263         Vin Shelton.
53264
53265 2007-06-11  Bruno Haible  <bruno@clisp.org>
53266
53267         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
53268         replacement string.
53269         Reported by Eric Blake.
53270
53271 2007-06-10  Bruno Haible  <bruno@clisp.org>
53272
53273         Prepare vasnprintf code for use with Unicode strings.
53274         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
53275         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
53276         TYPE_U32_STRING.
53277         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
53278         a_u32_string variants.
53279         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
53280         * lib/printf-args.c: Don't include config.h and the specification
53281         header if PRINTF_FETCHARGS is already defined.
53282         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
53283         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
53284         TYPE_U16_STRING, TYPE_U32_STRING.
53285         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
53286         u16_directive, u16_directives, u32_directive, u32_directives): New
53287         types.
53288         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
53289         New declarations.
53290         * lib/printf-parse.c: Don't include config.h and the specification
53291         header if PRINTF_PARSE is already defined. Eliminate the set of
53292         parameters for WIDE_CHAR_VERSION; the user of this file must provide
53293         them now. Include c-ctype.h.
53294         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
53295         directive and CHAR_T_ONLY_ASCII.
53296         * lib/vasnprintf.c: Don't include config.h and the specification header
53297         if VASNPRINTF is already defined.
53298         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
53299         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
53300         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
53301         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
53302         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
53303         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
53304         code accordingly.
53305         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
53306         pad_ourselves also in this case, with the 'c' and 's' directives, and
53307         with a different notion of "width".
53308         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
53309
53310 2007-06-10  Bruno Haible  <bruno@clisp.org>
53311
53312         * modules/unistr/u32-mbsnlen: New file.
53313         * lib/unistr/u32-mbsnlen.c: New file.
53314
53315         * modules/unistr/u16-mbsnlen: New file.
53316         * lib/unistr/u16-mbsnlen.c: New file.
53317
53318         * modules/unistr/u8-mbsnlen: New file.
53319         * lib/unistr/u8-mbsnlen.c: New file.
53320
53321         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
53322         declarations.
53323
53324 2007-06-10  Bruno Haible  <bruno@clisp.org>
53325
53326         * lib/string_.h (mbsnlen): New declaration.
53327         * lib/mbsnlen.c: New file.
53328         * m4/mbsnlen.m4: New file.
53329         * modules/mbsnlen: New file.
53330         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
53331         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
53332         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
53333
53334 2007-06-10  Bruno Haible  <bruno@clisp.org>
53335
53336         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
53337
53338 2007-06-10  Bruno Haible  <bruno@clisp.org>
53339
53340         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
53341         * lib/mbuiter.h: Likewise.
53342
53343 2007-06-10  Bruno Haible  <bruno@clisp.org>
53344
53345         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
53346         declaration.
53347
53348 2007-06-10  Karl Berry  <karl@gnu.org>
53349
53350         * config/srclist.txt: remove gettext entries, Bruno prefers
53351         to update individually.
53352
53353 2007-06-10  Bruno Haible  <bruno@clisp.org>
53354
53355         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
53356         'maxlen'. Ensure only length + width bytes are allocated, not
53357         length + 1 + width.
53358
53359 2007-06-09  Bruno Haible  <bruno@clisp.org>
53360
53361         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
53362         (CHAR_T): Remove macro.
53363         (VASNPRINTF): Update.
53364
53365 2007-06-09  Bruno Haible  <bruno@clisp.org>
53366
53367         * MODULES.html.sh (Unicode string functions): Add the new modules.
53368
53369         * modules/uniconv/u32-conv-to-enc: New file.
53370         * lib/uniconv/u32-conv-to-enc.c: New file.
53371         * modules/uniconv/u32-conv-to-enc-tests: New file.
53372         * tests/uniconv/test-u32-conv-to-enc.c: New file.
53373
53374         * modules/uniconv/u16-conv-to-enc: New file.
53375         * lib/uniconv/u16-conv-to-enc.c: New file.
53376         * lib/uniconv/u-conv-to-enc.h: New file.
53377         * modules/uniconv/u16-conv-to-enc-tests: New file.
53378         * tests/uniconv/test-u16-conv-to-enc.c: New file.
53379
53380         * modules/uniconv/u8-conv-to-enc: New file.
53381         * lib/uniconv/u8-conv-to-enc.c: New file.
53382         * modules/uniconv/u8-conv-to-enc-tests: New file.
53383         * tests/uniconv/test-u8-conv-to-enc.c: New file.
53384
53385         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
53386         u32_conv_to_encoding): New declarations.
53387
53388 2007-06-09  Bruno Haible  <bruno@clisp.org>
53389
53390         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
53391
53392 2007-06-09  Bruno Haible  <bruno@clisp.org>
53393
53394         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
53395         * modules/malloca: Renamed from modules/allocsa, updated.
53396         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
53397         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
53398         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
53399         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
53400         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
53401         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
53402         * modules/xmalloca: Renamed from modules/xallocsa, updated.
53403         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
53404         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
53405         * modules/c-strcasestr (Depends-on): Update.
53406         * lib/c-strcasestr.c: Update.
53407         * modules/c-strstr (Depends-on): Update.
53408         * lib/c-strstr.c: Update.
53409         * modules/canonicalize-lgpl (Depends-on): Update.
53410         * lib/canonicalize-lgpl.c: Update.
53411         * modules/clean-temp (Depends-on): Update.
53412         * lib/clean-temp.c: Update.
53413         * modules/csharpcomp (Depends-on): Update.
53414         * lib/csharpcomp.c: Update.
53415         * modules/csharpexec (Depends-on): Update.
53416         * lib/csharpexec.c: Update.
53417         * modules/javacomp (Depends-on): Update.
53418         * lib/javacomp.c: Update.
53419         * modules/javaexec (Depends-on): Update.
53420         * lib/javaexec.c: Update.
53421         * modules/mbscasestr (Depends-on): Update.
53422         * lib/mbscasestr.c: Update.
53423         * modules/mbsstr (Depends-on): Update.
53424         * lib/mbsstr.c: Update.
53425         * modules/setenv (Depends-on): Update.
53426         * lib/setenv.c: Update.
53427         * modules/strcasestr (Depends-on): Update.
53428         * lib/strcasestr.c: Update.
53429         * modules/striconveha (Depends-on): Update.
53430         * lib/striconveha.c: Update.
53431         * modules/relocatable-prog-wrapper (Files): Update.
53432         * lib/relocwrapper.c: Update.
53433         * build-aux/install-reloc: Update.
53434         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
53435
53436 2007-06-08  Bruno Haible  <bruno@clisp.org>
53437
53438         Port to uClibc.
53439         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
53440         * lib/fpurge.c (fpurge): Likewise.
53441         * lib/freading.c (freading): Likewise.
53442         * lib/fseeko.c (rpl_fseeko): Likewise.
53443         * lib/fseterr.c (fseterr): Likewise.
53444         * lib/fwriting.c (fwriting): Likewise.
53445         * tests/test-fflush.c (main): Avoid a failure on uClibc.
53446
53447 2007-06-08  Bruno Haible  <bruno@clisp.org>
53448
53449         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
53450         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
53451         * modules/gettext (Files): Add m4/intlmacosx.m4.
53452
53453 2007-06-07  Bruno Haible  <bruno@clisp.org>
53454
53455         * modules/localename-tests: New file.
53456         * tests/test-localename.c: New file.
53457
53458         New module 'localename'.
53459         * lib/localename.h: New file.
53460         * lib/localename.c: New file, from GNU gettext.
53461         * m4/localename.m4: New file.
53462         * modules/localename: New file.
53463
53464 2007-06-07  Bruno Haible  <bruno@clisp.org>
53465
53466         Work around the lack of <wchar.h> on some builds of uClibc.
53467         * doc/headers/wchar.texi: Update.
53468         * lib/wchar_.h: Include <wchar.h> only if it exists.
53469         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
53470         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
53471         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
53472         doesn't exist.
53473         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
53474         * modules/mbfile (Depends-on): Add wchar.
53475         * modules/mbiter (Depends-on): Likewise.
53476         * modules/mbuiter (Depends-on): Likewise.
53477         Reported by Simon Josefsson.
53478
53479 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
53480
53481         Work around problem reported by Steven M. Schweda in
53482         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
53483         Tru64 5.1B with the Compaq compiler environment installed declares
53484         an 'isblank' function but does not define it in the C library.
53485         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
53486         * lib/regex_internal.h (isblank): Likewise.
53487         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
53488         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
53489
53490 2007-06-05  Bruno Haible  <bruno@clisp.org>
53491
53492         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
53493         ia64.
53494         * modules/printf-safe: New file.
53495         * modules/fprintf-posix (Depends-on): Add printf-safe.
53496         * modules/printf-posix (Depends-on): Likewise.
53497         * modules/snprintf-posix (Depends-on): Likewise.
53498         * modules/sprintf-posix (Depends-on): Likewise.
53499         * modules/vasnprintf-posix (Depends-on): Likewise.
53500         * modules/vasprintf-posix (Depends-on): Likewise.
53501         * modules/vfprintf-posix (Depends-on): Likewise.
53502         * modules/vprintf-posix (Depends-on): Likewise.
53503         * modules/vsnprintf-posix (Depends-on): Likewise.
53504         * modules/vsprintf-posix (Depends-on): Likewise.
53505         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
53506         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
53507         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
53508         "no" on i386, x86_64, ia64.
53509         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
53510         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
53511         on i386, x86_64, ia64.
53512         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
53513         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
53514         on i386, x86_64, ia64.
53515         * tests/test-vasnprintf-posix.c: Include float.h.
53516         (LDBL80_WORDS): New macro.
53517         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
53518         on i386, x86_64, ia64.
53519         * tests/test-vasprintf-posix.c: Include float.h.
53520         (LDBL80_WORDS): New macro.
53521         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
53522         on i386, x86_64, ia64.
53523         * tests/test-snprintf-posix.c: Include float.h.
53524         * tests/test-sprintf-posix.c: Likewise.
53525         * tests/test-vsnprintf-posix.c: Likewise.
53526         * tests/test-vsprintf-posix.c: Likewise.
53527
53528 2007-06-05  Bruno Haible  <bruno@clisp.org>
53529
53530         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
53531         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
53532         non-IEEE numbers on i386, x86_64, ia64.
53533         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
53534         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
53535         * tests/test-isnanl.h: Include float.h.
53536         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
53537
53538 2007-06-05  Bruno Haible  <bruno@clisp.org>
53539
53540         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
53541         also the %a / %A. Handle the %a / %A code before this extra handling.
53542
53543 2007-06-05  Bruno Haible  <bruno@clisp.org>
53544
53545         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
53546         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
53547
53548 2007-06-05  Bruno Haible  <bruno@clisp.org>
53549
53550         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
53551         typo in variable name.
53552
53553 2007-06-05  Eric Blake  <ebb9@byu.net>
53554
53555         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
53556         Reported by Simon Josefsson.
53557
53558 2007-06-04  Bruno Haible  <bruno@clisp.org>
53559
53560         Avoid test failures on some PowerPC platforms.
53561         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
53562         Define differently for PowerPC.
53563         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
53564         Reported by Gary V. Vaughan <gary@gnu.org>.
53565
53566 2007-06-02  Bruno Haible  <bruno@clisp.org>
53567
53568         Fix test-stdint failure on FreeBSD/ia64.
53569         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
53570         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
53571         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
53572         * doc/headers/stdint.texi: Update.
53573
53574 2007-06-01  Bruno Haible  <bruno@clisp.org>
53575
53576         * tests/test-binary-io.c (main): Pass a third argument to open().
53577         Reported by Gary V. Vaughan <gary@gnu.org>.
53578
53579 2007-06-01  Bruno Haible  <bruno@clisp.org>
53580
53581         * doc/functions/frexpl.texi: Update for mingw.
53582
53583 2007-06-01  Bruno Haible  <bruno@clisp.org>
53584
53585         * tests/test-lseek.c (main): Disable test of errno for invalid third
53586         argument.
53587         * doc/functions/lseek.texi: Update.
53588         Reported by Gary V. Vaughan <gary@gnu.org>.
53589
53590 2007-05-28  Bruno Haible  <bruno@clisp.org>
53591
53592         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
53593
53594 2007-05-31  Eric Blake  <ebb9@byu.net>
53595
53596         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
53597         cross compiling.
53598
53599 2007-05-30  Eric Blake  <ebb9@byu.net>
53600         and Bruno Haible  <bruno@clisp.org>
53601
53602         Work around mingw test failures exposed by m4-1.4.9b.
53603         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
53604         * tests/test-unistd.c: Disable uid_t and git_t tests for the
53605         moment.
53606
53607 2007-05-30  Bruno Haible  <bruno@clisp.org>
53608
53609         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
53610         assuming that they are closed. Needed on HP-UX 11.
53611
53612 2007-05-29  Bruno Haible  <bruno@clisp.org>
53613
53614         Fix a problem with #include_next.
53615         * lib/dirent_.h: Split the double-inclusion guard.
53616         * lib/fcntl_.h: Likewise.
53617         * lib/float_.h: Likewise.
53618         * lib/iconv_.h: Likewise.
53619         * lib/inttypes_.h: Likewise.
53620         * lib/locale_.h: Likewise.
53621         * lib/math_.h: Likewise.
53622         * lib/netinet_in_.h: Likewise.
53623         * lib/search_.h: Likewise.
53624         * lib/signal_.h: Likewise.
53625         * lib/stdint_.h: Likewise.
53626         * lib/stdio_.h: Likewise.
53627         * lib/stdlib_.h: Likewise.
53628         * lib/string_.h: Likewise.
53629         * lib/sys_select_.h: Likewise.
53630         * lib/sys_socket_.h: Likewise.
53631         * lib/sys_stat_.h: Likewise.
53632         * lib/sys_time_.h: Likewise.
53633         * lib/sysexits_.h: Likewise.
53634         * lib/time_.h: Likewise.
53635         * lib/unistd_.h: Likewise.
53636         * lib/wchar_.h: Likewise.
53637         * lib/wctype_.h: Likewise.
53638
53639 2007-05-29  Bruno Haible  <bruno@clisp.org>
53640
53641         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
53642         for the moment.
53643
53644 2007-05-29  Bruno Haible  <bruno@clisp.org>
53645
53646         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
53647         invocation.
53648         Reported by Eric Blake.
53649
53650 2007-05-29  Bruno Haible  <bruno@clisp.org>
53651
53652         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
53653         compiling case.
53654
53655 2007-05-29  Eric Blake  <ebb9@byu.net>
53656             Bruno Haible  <bruno@clisp.org>
53657
53658         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
53659         cross compiles.
53660
53661 2007-05-28  Eric Blake  <ebb9@byu.net>
53662
53663         * modules/closein-tests (test_closein_LDADD): Support test on
53664         cygwin with libtool.
53665
53666 2007-05-28  Bruno Haible  <bruno@clisp.org>
53667
53668         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
53669         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
53670         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
53671         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
53672         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
53673         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
53674         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
53675         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
53676         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
53677
53678 2007-05-28  Eric Blake  <ebb9@byu.net>
53679
53680         Unconditionally include <config.h> in unit tests.
53681         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
53682         * tests/test-allocsa.c, tests/test-arcfour.c,
53683         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
53684         tests/test-array_list.c, tests/test-array_oset.c,
53685         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
53686         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
53687         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
53688         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
53689         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
53690         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
53691         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
53692         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
53693         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
53694         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
53695         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
53696         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
53697         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
53698         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
53699         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
53700         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
53701         test-md5.c, test-memmem.c, test-printf-posix.c,
53702         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
53703         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
53704         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
53705         test-strcasestr.c, test-striconv.c, test-striconveh.c,
53706         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
53707         test-vasnprintf-posix2.c, test-vasnprintf.c,
53708         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
53709         test-vfprintf-posix.c, test-vprintf-posix.c,
53710         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
53711         test-xvasprintf.c: Likewise.
53712
53713 2007-05-28  Bruno Haible  <bruno@clisp.org>
53714
53715         * gnulib-tool (func_import): Remember the --with-tests command-line
53716         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
53717         Reported by Eric Blake.
53718
53719 2007-05-28  Bruno Haible  <bruno@clisp.org>
53720
53721         * modules/ftell-tests: New file.
53722         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
53723         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
53724
53725         * lib/ftell.c: New file.
53726         * modules/ftell: New file.
53727         * m4/ftell.m4: New file.
53728         * doc/functions/ftell.texi: Update.
53729         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
53730         REPLACE_FTELL.
53731         * lib/stdio_.h (rpl_ftell): New declaration.
53732         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
53733         REPLACE_FTELL.
53734
53735 2007-05-28  Eric Blake  <ebb9@byu.net>
53736
53737         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
53738
53739 2007-05-28  Bruno Haible  <bruno@clisp.org>
53740
53741         * modules/fseek-tests: New file.
53742         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
53743         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
53744
53745         * lib/fseek.c: New file.
53746         * modules/fseek: New file.
53747         * m4/fseek.m4: New file.
53748         * doc/functions/fseek.texi: Update.
53749         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
53750         REPLACE_FSEEK.
53751         * lib/stdio_.h (rpl_fseek): New declaration.
53752         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
53753         REPLACE_FSEEK.
53754
53755 2007-05-28  Bruno Haible  <bruno@clisp.org>
53756
53757         * lib/stdio_.h (fflush): More comments.
53758
53759 2007-05-28  Bruno Haible  <bruno@clisp.org>
53760
53761         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
53762         runtime test.
53763
53764 2007-05-28  Eric Blake  <ebb9@byu.net>
53765
53766         Improve lseek module.
53767         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
53768         * lib/unistd_.h (lseek): Scale back link warning message.
53769         * tests/test-lseek.c: Beef up test.
53770         * tests/test-lseek.sh: Exercise more facets of lseek.
53771         Reported by Bruno Haible.
53772
53773 2007-05-28  Bruno Haible  <bruno@clisp.org>
53774
53775         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
53776         to define.
53777
53778 2007-05-27  Bruno Haible  <bruno@clisp.org>
53779
53780         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
53781
53782 2007-05-27  Bruno Haible  <bruno@clisp.org>
53783
53784         * modules/openmp: New file.
53785         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
53786         Noah Misch.
53787
53788 2007-05-26  Bruno Haible  <bruno@clisp.org>
53789
53790         * modules/chdir-long (Depends-on): Add fchdir.
53791         * modules/chdir-safer (Depends-on): Likewise.
53792         * modules/fts (Depends-on): Likewise.
53793         * modules/fts-lgpl (Depends-on): Likewise.
53794         * modules/openat (Depends-on): Likewise.
53795         * modules/savewd (Depends-on): Likewise.
53796
53797 2007-05-24  Eric Blake  <ebb9@byu.net>
53798
53799         Fix lseek on mingw.
53800         * modules/lseek: New module.
53801         * m4/lseek.m4: New file.
53802         * lib/lseek.c: New file.
53803         * modules/lseek-tests: New file.
53804         * tests/test-lseek.c: New file.
53805         * tests/test-lseek.sh: New file.
53806         * MODULES.html.sh: Document lseek module.
53807         * modules/fflush (Depends-on): Add lseek, fseeko.
53808         * modules/fseeko (Depends-on): Likewise.
53809         * modules/ftello (Depends-on): Likewise.
53810         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
53811         broken.
53812         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
53813         broken.
53814         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
53815         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
53816         * lib/ftello.c (rpl_ftello): Likewise.
53817         * tests/test-fseeko.c (main): Test this.
53818         * tests/test-fseeko.sh: Likewise.
53819         * tests/test-ftello.c (main): Likewise.
53820         * tests/test-ftello.sh: Likewise.
53821         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
53822         implies replacing fseek.
53823         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
53824         HAVE_FTELLO.
53825         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
53826         * modules/unistd (Makefile.am): Likewise.
53827         * lib/unistd_.h (lseek): Declare a replacement.
53828         * doc/functions/lseek.texi (lseek): Document this fix.
53829         * doc/functions/fseek.texi (fseek): Likewise.
53830         * doc/functions/ftell.texi (ftell): Likewise.
53831
53832 2007-05-24  Bruno Haible  <bruno@clisp.org>
53833
53834         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
53835         in the printed representation of a NaN.
53836         * tests/test-vasprintf-posix.c (test_function): Likewise.
53837         * tests/test-snprintf-posix.h (test_function): Likewise.
53838         * tests/test-sprintf-posix.h (test_function): Likewise.
53839         Reported by Eric Blake.
53840
53841 2007-05-23  Eric Blake  <ebb9@byu.net>
53842
53843         Fix fseeko/ftello on cygwin 1.5.24.
53844         * doc/functions/fseeko.texi (fseeko): Document the fix.
53845         * doc/functions/ftello.texi (ftello): Document the fix.
53846         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
53847         * doc/functions/stdout.text (stdout): New file.
53848         * doc/functions/stderr.text (stderr): New file.
53849         * doc/gnulib.texi (Function Substitutes): Use new files.
53850         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
53851         prior to 1.7.0.
53852         * tests/test-ftello.c (main): Likewise for ftello.
53853         * tests/test-fseeko.sh: New file.
53854         * tests/test-ftello.sh: New file.
53855         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
53856         with seekable stdin.
53857         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
53858         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
53859         (gl_REPLACE_FSEEKO): New macro.
53860         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
53861         * modules/fseeko (Files): Distribute fseeko.c.
53862         * modules/ftello (Files): Distribute ftello.c.
53863         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
53864         mode.
53865         * lib/ftello.c (rpl_ftello): New file.
53866         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
53867         fseeko, ftello.
53868         (gl_STDIN_LARGE_OFFSET): New macro.
53869         * modules/stdio (Makefile.am): Perform the replacement.
53870         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
53871
53872 2007-05-23  Bruno Haible  <bruno@clisp.org>
53873
53874         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
53875         GNULIB_POSIXCHECK is defined.
53876
53877 2007-05-21  Bruno Haible  <bruno@clisp.org>
53878
53879         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
53880         Check also the output for NaN arguments. When cross-compiling, guess
53881         no on IRIX.
53882         * lib/vasnprintf.c: Update comments.
53883         * tests/test-vasnprintf-posix.c (strisnan): New function.
53884         (test_function): Use it.
53885         * tests/test-vasprintf-posix.c (strisnan): New function.
53886         (test_function): Use it.
53887         * tests/test-snprintf-posix.h (strisnan): New function.
53888         (test_function): Use it.
53889         * tests/test-sprintf-posix.h (strisnan): New function.
53890         (test_function): Use it.
53891         Reported by Eric Blake.
53892
53893 2007-05-20  Bruno Haible  <bruno@clisp.org>
53894
53895         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
53896         numbers that fails on BeOS.
53897         * doc/functions/frexpl.texi: Update.
53898
53899 2007-05-20  Jim Meyering  <jim@meyering.net>
53900
53901         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
53902         forced upon us by glibc-2.6.
53903
53904 2007-05-20  Bruno Haible  <bruno@clisp.org>
53905
53906         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
53907         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
53908         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
53909         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
53910         NEED_PRINTF_INFINITE.
53911         (is_infinitel): New function.
53912         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
53913         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
53914         gl_PREREQ_VASNPRINTF_INFINITE.
53915         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
53916         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53917         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
53918         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
53919         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
53920         gl_PREREQ_VASNPRINTF_INFINITE.
53921         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53922         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53923         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53924         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53925         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53926         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53927         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53928         * doc/functions/fprintf.texi: Update.
53929         * doc/functions/printf.texi: Update.
53930         * doc/functions/snprintf.texi: Update.
53931         * doc/functions/sprintf.texi: Update.
53932         * doc/functions/vfprintf.texi: Update.
53933         * doc/functions/vprintf.texi: Update.
53934         * doc/functions/vsnprintf.texi: Update.
53935         * doc/functions/vsprintf.texi: Update.
53936
53937 2007-05-20  Bruno Haible  <bruno@clisp.org>
53938
53939         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
53940         was not found in libc.
53941         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
53942
53943 2007-05-20  Bruno Haible  <bruno@clisp.org>
53944
53945         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
53946         printed as "-nan" instead of "nan".
53947         * tests/test-vasprintf-posix.c (test_function): Likewise.
53948         * tests/test-snprintf-posix.h (test_function): Likewise.
53949         * tests/test-sprintf-posix.h (test_function): Likewise.
53950         Needed for HP-UX 11.
53951
53952 2007-05-20  Jim Meyering  <jim@meyering.net>
53953
53954         Fix buggy test for the fchownat-deref bug.
53955         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
53956         symlink required for the run-test.  Without it, this test would
53957         always declare that fchownat doesn't work, and client code would
53958         unnecessarily use the replacement function with fixed libc.
53959         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
53960         Reported by Greg Schafer.
53961
53962 2007-05-19  Bruno Haible  <bruno@clisp.org>
53963
53964         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
53965         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
53966         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
53967         Needed for IRIX 6.5 and Solaris 2.5.1.
53968
53969 2007-05-19  Bruno Haible  <bruno@clisp.org>
53970
53971         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
53972         (test_function): Skip tests involving -0.0 on platforms where
53973         -0.0 = 0.0.
53974         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
53975         (test_function): Skip tests involving -0.0 on platforms where
53976         -0.0 = 0.0.
53977         * tests/test-snprintf-posix.h (have_minus_zero): New function.
53978         (test_function): Skip tests involving -0.0 on platforms where
53979         -0.0 = 0.0.
53980         * tests/test-sprintf-posix.h (have_minus_zero): New function.
53981         (test_function): Skip tests involving -0.0 on platforms where
53982         -0.0 = 0.0.
53983         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
53984         tests.
53985         * tests/test-printf-posix.h (test_function): Likewise.
53986         * tests/test-printf-posix.output: Remove all -0.0 related results.
53987         Needed for IRIX 6.5.
53988
53989 2007-05-19  Bruno Haible  <bruno@clisp.org>
53990
53991         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
53992         printed as "nan0x7fffffff" instead of "nan".
53993         * tests/test-vasprintf-posix.c (test_function): Likewise.
53994         * tests/test-snprintf-posix.h (test_function): Likewise.
53995         * tests/test-sprintf-posix.h (test_function): Likewise.
53996         * tests/test-fprintf-posix.h (NaN): Remove macro.
53997         (test_function): Remove all NaN related tests.
53998         * tests/test-printf-posix.h (NaN): Remove macro.
53999         (test_function): Remove all NaN related tests.
54000         * tests/test-printf-posix.output: Remove all NaN related results.
54001         Needed for IRIX 6.5.
54002
54003 2007-05-19  Bruno Haible  <bruno@clisp.org>
54004
54005         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
54006         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
54007
54008 2007-05-19  Bruno Haible  <bruno@clisp.org>
54009
54010         * lib/float_.h: New file.
54011         * m4/float_h.m4: New file.
54012         * modules/float: New file.
54013         * modules/isnanl (Dependencies): Add float.
54014         * modules/isnanl-nolibm (Dependencies): Likewise.
54015         * modules/mathl (Dependencies): Likewise.
54016         * modules/printf-frexpl (Dependencies): Likewise.
54017         * modules/signbit (Dependencies): Likewise.
54018         * modules/vasnprintf (Dependencies): Likewise.
54019         * doc/headers/float.texi: Update.
54020
54021 2007-05-19  Jim Meyering  <jim@meyering.net>
54022
54023         * lib/utimens.c (gl_futimens): Rename from futimens,
54024         now that glibc-2.6 declares futimens.
54025         * lib/utimens.h: Likewise.
54026
54027 2007-05-19  Bruno Haible  <bruno@clisp.org>
54028
54029         Avoid test failures on mingw.
54030         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
54031         * tests/test-printf-posix.sh: Likewise.
54032         * tests/test-vfprintf-posix.sh: Likewise.
54033         * tests/test-vprintf-posix.sh: Likewise.
54034
54035 2007-05-19  Bruno Haible  <bruno@clisp.org>
54036
54037         Fix *printf result for NaN, Inf, -0.0 on mingw.
54038         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
54039         * lib/vasnprintf.c: Include math.h and isnan.h.
54040         (is_infinite_or_zero): New function.
54041         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
54042         values in the %f, %F, %e, %E, %g, %G directives.
54043         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
54044         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54045         gl_PRINTF_INFINITE and test its result. Invoke
54046         gl_PREREQ_VASNPRINTF_INFINITE.
54047         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54048         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54049         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54050         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54051         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54052         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54053         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54054         * doc/functions/fprintf.texi: Update.
54055         * doc/functions/printf.texi: Update.
54056         * doc/functions/snprintf.texi: Update.
54057         * doc/functions/sprintf.texi: Update.
54058         * doc/functions/vfprintf.texi: Update.
54059         * doc/functions/vprintf.texi: Update.
54060         * doc/functions/vsnprintf.texi: Update.
54061         * doc/functions/vsprintf.texi: Update.
54062
54063 2007-05-19  Bruno Haible  <bruno@clisp.org>
54064
54065         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
54066         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
54067         Instead of multiplying with 10^k, set extra_zeroes to k.
54068         (scale10_round_long_double): Remove function.
54069
54070 2007-05-18  Bruno Haible  <bruno@clisp.org>
54071
54072         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
54073         introduced on 2007-05-06.
54074
54075 2007-05-18  Bruno Haible  <bruno@clisp.org>
54076
54077         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
54078         %g directives.
54079         * tests/test-vasprintf-posix.c (test_function): Likewise.
54080         * tests/test-snprintf-posix.h (test_function): Likewise.
54081         * tests/test-sprintf-posix.h (test_function): Likewise.
54082
54083 2007-05-18  Bruno Haible  <bruno@clisp.org>
54084
54085         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
54086         (strmatch): New function.
54087         (test_function): Test the %f directive on numbers of various exponents.
54088         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
54089         (strmatch): New function.
54090         (test_function): Test the %f directive on numbers of various exponents.
54091         * tests/test-snprintf-posix.h (strmatch): New function.
54092         (test_function): Test the %f directive on numbers of various exponents.
54093         * tests/test-sprintf-posix.h (strmatch): New function.
54094         (test_function): Test the %f directive on numbers of various exponents.
54095         * tests/test-snprintf-posix.c (SIZEOF): New macro.
54096         * tests/test-sprintf-posix.c (SIZEOF): New macro.
54097         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
54098         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
54099
54100 2007-05-18  Bruno Haible  <bruno@clisp.org>
54101
54102         Add support for 'long double' number output.
54103         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
54104         * lib/vasnprintf.c: Include math.h and float+.h.
54105         (mp_limb_t): New type.
54106         (GMP_LIMB_BITS): New macro.
54107         (mp_twolimb_t): New type.
54108         (GMP_TWOLIMB_BITS): New macro.
54109         (mpn_t): New type.
54110         (multiply, divide, convert_to_decimal, decode_long_double,
54111         scale10_round_long_double, scale10_round_decimal_long_double,
54112         floorlog10l): New functions.
54113         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
54114         for the %f, %F, %e, %E, %g, %G directives.
54115         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
54116         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54117         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
54118         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
54119         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54120         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54121         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54122         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54123         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54124         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54125         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54126         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
54127         * modules/snprintf-posix (Depends-on): Likewise.
54128         * modules/sprintf-posix (Depends-on): Likewise.
54129         * modules/vasnprintf-posix (Depends-on): Likewise.
54130         * modules/vasprintf-posix (Depends-on): Likewise.
54131         * modules/vfprintf-posix (Depends-on): Likewise.
54132         * modules/vsnprintf-posix (Depends-on): Likewise.
54133         * modules/vsprintf-posix (Depends-on): Likewise.
54134         * modules/vasnprintf (Files): Add lib/float+.h.
54135         * doc/functions/fprintf.texi: Update.
54136         * doc/functions/printf.texi: Update.
54137         * doc/functions/snprintf.texi: Update.
54138         * doc/functions/sprintf.texi: Update.
54139         * doc/functions/vfprintf.texi: Update.
54140         * doc/functions/vprintf.texi: Update.
54141         * doc/functions/vsnprintf.texi: Update.
54142         * doc/functions/vsprintf.texi: Update.
54143
54144 2007-05-18  Bruno Haible  <bruno@clisp.org>
54145
54146         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
54147
54148 2007-05-18  Bruno Haible  <bruno@clisp.org>
54149
54150         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
54151         for printing 64-bit integers. Needed for mingw.
54152
54153 2007-05-18  Bruno Haible  <bruno@clisp.org>
54154
54155         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
54156         gl_FUNC_FREXPL_WORKS.
54157         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
54158
54159 2007-05-18  Bruno Haible  <bruno@clisp.org>
54160
54161         * modules/frexpl-nolibm-tests: New file.
54162
54163         * modules/frexpl-nolibm: New file.
54164         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
54165
54166 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
54167
54168         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
54169         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
54170         GCC 4.2, which otherwise issues a lot of warnings.
54171         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
54172         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
54173         Likewise.
54174         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
54175         * modules/iconv_open (iconv.h): Likewise.
54176         * modules/locale (locale.h): Likewise.
54177         * modules/netinet_in (netinet/in.h): Likewise.
54178         * modules/sys_select (sys_select.h): Likewise.
54179         * modules/sys_socket (sys/socket.h): Likewise.
54180         * modules/sys_stat (sys/stat.h): Likewise.
54181         * modules/sysexits (sysexits.h): Likewise.
54182         * modules/unistd (unistd.h): Likewise.
54183
54184 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54185
54186         * modules/closein-tests (Makefile.am): Distribute
54187         `test-closein.sh'.
54188
54189 2007-05-17  Bruno Haible  <bruno@clisp.org>
54190
54191         * tests/test-printf-posix.output: Renamed from
54192         tests/test-fprintf-posix.out.
54193         * modules/fprintf-posix-tests: Update.
54194         * modules/printf-posix-tests: Update.
54195         * modules/vfprintf-posix-tests: Update.
54196         * modules/vprintf-posix-tests: Update.
54197         * tests/test-fprintf-posix.sh: Update.
54198         * tests/test-printf-posix.sh: Update.
54199         * tests/test-vfprintf-posix.sh: Update.
54200         * tests/test-vprintf-posix.sh: Update.
54201         Reported by Ralf Wildenhues.
54202
54203 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
54204
54205         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
54206         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
54207         GCC 4.2, which otherwise issues a lot of warnings.
54208         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
54209         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
54210         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
54211         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
54212         it should no longer be needed.
54213         * lib/string_.h: Likewise.
54214         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
54215         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
54216         * modules/inttypes (inttypes.h): Likewise.
54217         * modules/math (math.h): Likewise.
54218         * modules/search (search.h): Likewise.
54219         * modules/signal (signal.h): Likewise.
54220         * modules/stdint (stdint.h): Likewise.
54221         * modules/stdio (stdio.h): Likewise.
54222         * modules/stdlib (stdlib.h): Likewise.
54223         * modules/string (string.h): Likewise.
54224         * modules/sys_time (sys/time.h): Likewise.
54225         * modules/time (time.h): Likewise.
54226         * modules/wchar (wchar.h): Likewise.
54227         * modules/wctype (wtype.h): Likewise.
54228
54229 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
54230
54231         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
54232
54233 2007-05-13  Bruno Haible  <bruno@clisp.org>
54234
54235         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
54236         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
54237         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
54238         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
54239         (gl_PREREQ_STRTOK_R): Don't require it here.
54240
54241 2007-05-13  Bruno Haible  <bruno@clisp.org>
54242
54243         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
54244         when used in C++ mode.
54245
54246 2007-05-12  Bruno Haible  <bruno@clisp.org>
54247
54248         * lib/linebuffer.h: Tweak doc.
54249         * lib/linebuffer.c: Likewise.
54250
54251 2007-05-12  James Youngman  <jay@gnu.org>
54252
54253         * lib/linebuffer.c (readlinebuffer_delim): New function,
54254         like readlinebuffer, but use a caller-specified delimiter.
54255         (readlinebuffer): Just call readlinebuffer_delim with '\n'
54256         as the delimiter.
54257         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
54258
54259 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
54260
54261         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
54262         * modules/openat (Files): Remove openat-die.c.
54263         (Depends-on): Add openat-die.
54264         * modules/openat-die: New module.
54265
54266 2007-05-06  Bruno Haible  <bruno@clisp.org>
54267
54268         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
54269         Update with info about Cygwin.
54270         * doc/functions/fprintf.texi: Update.
54271         * doc/functions/printf.texi: Update.
54272         * doc/functions/snprintf.texi: Update.
54273         * doc/functions/sprintf.texi: Update.
54274         * doc/functions/vfprintf.texi: Update.
54275         * doc/functions/vprintf.texi: Update.
54276         * doc/functions/vsnprintf.texi: Update.
54277         * doc/functions/vsprintf.texi: Update.
54278         Reported by Eric Blake.
54279
54280 2007-05-06  Bruno Haible  <bruno@clisp.org>
54281
54282         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
54283         padding ourselves for the floating-point directives.
54284         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
54285         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
54286         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
54287         gl_PRINTF_FLAG_ZERO and test its result. Invoke
54288         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
54289         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54290         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
54291         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54292         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54293         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54294         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54295         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54296         * tests/test-snprintf-posix.h (test_function): Also check the width
54297         and some flags in the %f directive.
54298         * tests/test-sprintf-posix.h (test_function): Likewise.
54299         * tests/test-vasnprintf-posix.c (test_function): Likewise.
54300         * tests/test-vasprintf-posix.c (test_function): Likewise.
54301         * doc/functions/fprintf.texi: Update.
54302         * doc/functions/printf.texi: Update.
54303         * doc/functions/snprintf.texi: Update.
54304         * doc/functions/sprintf.texi: Update.
54305         * doc/functions/vfprintf.texi: Update.
54306         * doc/functions/vprintf.texi: Update.
54307         * doc/functions/vsnprintf.texi: Update.
54308         * doc/functions/vsprintf.texi: Update.
54309
54310 2007-05-06  Bruno Haible  <bruno@clisp.org>
54311
54312         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
54313         pass the ' flag character to sprintf or snprintf.
54314         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
54315         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
54316         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
54317         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
54318         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
54319         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54320         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
54321         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54322         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54323         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54324         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54325         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54326         * tests/test-snprintf-posix.h (test_function): Also check the grouping
54327         flag.
54328         * tests/test-sprintf-posix.h (test_function): Likewise.
54329         * tests/test-vasnprintf-posix.c (test_function): Likewise.
54330         * tests/test-vasprintf-posix.c (test_function): Likewise.
54331         * doc/functions/fprintf.texi: Update.
54332         * doc/functions/printf.texi: Update.
54333         * doc/functions/snprintf.texi: Update.
54334         * doc/functions/sprintf.texi: Update.
54335         * doc/functions/vfprintf.texi: Update.
54336         * doc/functions/vprintf.texi: Update.
54337         * doc/functions/vsnprintf.texi: Update.
54338         * doc/functions/vsprintf.texi: Update.
54339
54340 2007-05-01  Bruno Haible  <bruno@clisp.org>
54341
54342         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
54343
54344 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
54345
54346         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
54347         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
54348
54349 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
54350
54351         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
54352         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
54353         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
54354
54355 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
54356
54357         * lib/argp-help.c (struct hol_entry): New member `ord'.
54358         (HOL_ENTRY_PTRCMP): Use ord for comparison
54359         (hol_sort): Initialize ord.
54360
54361 2007-05-01  Bruno Haible  <bruno@clisp.org>
54362
54363         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
54364         Reported by Eric Blake.
54365         * doc/gnulib.texi (Function Substitutes): Update.
54366
54367 2007-05-01  Bruno Haible  <bruno@clisp.org>
54368
54369         * doc/functions.texi: Remove file, now redundant through
54370         doc/functions/*.texi.
54371
54372 2007-05-01  Bruno Haible  <bruno@clisp.org>
54373
54374         * modules/argp (Depends-on): Add sleep.
54375
54376 2007-05-01  Bruno Haible  <bruno@clisp.org>
54377
54378         * modules/sleep-tests: New file.
54379         * tests/test-sleep.c: New file.
54380
54381         * modules/sleep: New file.
54382         * lib/sleep.c: New file.
54383         * m4/sleep.m4: New file.
54384         * lib/unistd_.h (sleep): New declaration.
54385         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
54386         HAVE_SLEEP.
54387         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
54388         * doc/functions/sleep.texi: Document the sleep module.
54389
54390 2007-05-01  Bruno Haible  <bruno@clisp.org>
54391
54392         * lib/sigprocmask.h: Remove file.
54393         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
54394         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
54395         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
54396         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
54397         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
54398         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
54399         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
54400         HAVE_SIGSET_T as a shell variable.
54401         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
54402         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
54403         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
54404         (Depends-on): Add signal. Remove verify.
54405         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
54406         (Include): Mention <signal.h> instead of sigprocmask.h.
54407         * NEWS: Mention the change.
54408         * lib/fatal-signal.c: Don't include sigprocmask.h.
54409
54410 2007-05-01  Bruno Haible  <bruno@clisp.org>
54411
54412         * modules/signal: New file.
54413         * lib/signal_.h: New file.
54414         * m4/signal_h.m4: New file.
54415
54416 2007-05-01  Bruno Haible  <bruno@clisp.org>
54417
54418         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
54419         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
54420         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
54421         HAVE_WCTYPE_CTMP_BUG into wctype.h.
54422
54423 2007-05-01  Bruno Haible  <bruno@clisp.org>
54424
54425         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
54426         configure time.
54427         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
54428         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
54429         * modules/sys_stat (Makefile.am): Substitute their values into
54430         sys/stat.h.
54431
54432 2007-05-01  Bruno Haible  <bruno@clisp.org>
54433
54434         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
54435         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
54436         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
54437
54438 2007-05-01  Bruno Haible  <bruno@clisp.org>
54439
54440         * doc/header/assert.texi: Undo last change: don't mention the gnulib
54441         'assert' module here.
54442
54443 2007-05-01  Bruno Haible  <bruno@clisp.org>
54444
54445         * doc/functions/*.texi: New files.
54446         * doc/functions/google-ranking.txt: New file.
54447         * doc/gnulib.texi (Function Substitutes): New chapter.
54448         (ctime, inet_ntoa): Remove sections.
54449         * doc/ctime.texi: Remove file.
54450         * doc/inet_ntoa.texi: Remove file.
54451         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
54452         dependencies.
54453         (%.info): New rule, specifying a --reference-limit.
54454
54455 2007-05-01  Bruno Haible  <bruno@clisp.org>
54456
54457         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
54458
54459 2007-05-01  Bruno Haible  <bruno@clisp.org>
54460
54461         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
54462         the portability of 'mkdir' to mingw systems.
54463
54464 2007-05-01  Bruno Haible  <bruno@clisp.org>
54465
54466         * doc/headers/google-ranking.txt: New file.
54467
54468 2007-04-30  Eric Blake  <ebb9@byu.net>
54469
54470         Prefer fseeko to fseek.
54471         * modules/getpass (Depends-on): Add fseeko.
54472         * lib/getpass.c (getpass): Use fseeko, not fseek.
54473
54474 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
54475
54476         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
54477         assumes the sorting is stable, while most qsort implementations
54478         are not.  Use argument addresses to ensure they never compare as
54479         equal.
54480
54481         * tests/test-argp-2.sh (usage-indent test): Fix output
54482         (func_compare): Restore diff options
54483         * tests/test-argp.c: Restore #include "progname.h"
54484
54485 2007-04-29  Bruno Haible  <bruno@clisp.org>
54486
54487         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
54488         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
54489         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
54490         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54491         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
54492         (configure.ac): Define CHECK_SNPRINTF_POSIX.
54493         (TESTS, check_PROGRAMS): Add test-snprintf.
54494         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
54495         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
54496         (TESTS, check_PROGRAMS): Add test-vsnprintf.
54497         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
54498         assertions that fail on HP-UX, OSF/1, or IRIX.
54499         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
54500
54501 2007-04-29  Bruno Haible  <bruno@clisp.org>
54502
54503         * MODULES.html.sh (posix_functions): Remove 'contents'.
54504
54505 2007-04-29  Karl Berry  <karl@gnu.org>
54506
54507         * config/srclist.txt (gendocs_template_min): new entry.
54508
54509 2007-04-29  Bruno Haible  <bruno@clisp.org>
54510
54511         Work around fpurge bug on BSD systems.
54512         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
54513         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
54514         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
54515         fpurge to rpl_fpurge if the system already has this function.
54516         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
54517         the case where the system already has this function. Correct invariants
54518         on BSD systems.
54519         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
54520         BSD systems.
54521
54522 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
54523
54524         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
54525         proposed by Sven Verdoolaege.
54526
54527         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
54528         options.
54529         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
54530         (usage and help tests): Update
54531
54532 2007-04-29  Bruno Haible  <bruno@clisp.org>
54533
54534         * tests/test-fflush.c (main): Use a file of size 17, not 10.
54535         Print more information in case of failure. Disable a test on BeOS.
54536
54537 2007-04-29  Bruno Haible  <bruno@clisp.org>
54538
54539         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
54540         This helps debugging on systems on which no gdb is available.
54541
54542 2007-04-29  Bruno Haible  <bruno@clisp.org>
54543
54544         * lib/freading.h: Improve comments.
54545         * lib/fwriting.h: Likewise.
54546         * tests/test-freading.c (main): Don't check freading immediately after
54547         repositioning. Needed for glibc.
54548
54549 2007-04-29  Bruno Haible  <bruno@clisp.org>
54550
54551         * lib/freading.c (freading): Trivial simplification.
54552
54553 2007-04-28  Bruno Haible  <bruno@clisp.org>
54554
54555         * tests/test-fwriting.c (main): Also test the interaction between
54556         fflush and fwriting.
54557         * modules/fwriting-tests (Depends-on): Add fflush.
54558
54559         * tests/test-freading.c (main): Also test the interaction between
54560         fflush and freading.
54561         * modules/freading-tests (Depends-on): Add fflush.
54562
54563 2007-04-28  Bruno Haible  <bruno@clisp.org>
54564
54565         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
54566         fseeko and ftello.
54567         Suggested by Eric Blake.
54568
54569 2007-04-28  Jim Meyering  <jim@meyering.net>
54570
54571         Avoid false-negative in gl_STDINT_H's C99 conformance test.
54572         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
54573         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
54574
54575 2007-04-27  Eric Blake  <ebb9@byu.net>
54576
54577         * doc/headers/assert.texi (assert.h): Document assert module use.
54578
54579 2007-04-27  Bruno Haible  <bruno@clisp.org>
54580
54581         * doc/headers/*.texi: New files.
54582         * doc/gnulib.texi (Header File Substitutes): New chapter.
54583         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
54584         dependencies.
54585         (standards.info ,standards.html, standards.dvi): Update dependencies.
54586         (mostlyclean, clean): New targets.
54587
54588 2007-04-27  Bruno Haible  <bruno@clisp.org>
54589
54590         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
54591         * modules/sysexits (Files, Makefile.am): Update.
54592
54593         * lib/sys_socket_.h: Renamed from lib/socket_.h.
54594         * modules/sys_socket (Files, Makefile.am): Update.
54595
54596         * lib/sys_stat_.h: Renamed from lib/stat_.h.
54597         * modules/sys_stat (Files, Makefile.am): Update.
54598
54599 2007-04-27  Eric Blake  <ebb9@byu.net>
54600
54601         * lib/freading.h: Improve comments.
54602         * lib/fwriting.h: Likewise.
54603         * lib/fflush.c: Likewise.
54604
54605         Fix closein for mingw.
54606         * modules/closein-tests: Add tests for closein.
54607         * tests/test-closein.c: New file.
54608         * tests/test-closein.sh: Likewise.
54609         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
54610         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
54611
54612 2007-04-27  Bruno Haible  <bruno@clisp.org>
54613
54614         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
54615         version is < 6.
54616         * lib/math_.h [__DECC]: Likewise.
54617         * lib/stdio_.h [__DECC]: Likewise.
54618         * lib/stdlib_.h [__DECC]: Likewise.
54619         * lib/string_.h [__DECC]: Likewise.
54620         * lib/time_.h [__DECC]: Likewise.
54621         * lib/wchar_.h [__DECC]: Likewise.
54622         * lib/wctype_.h [__DECC]: Likewise.
54623
54624 2007-04-27  Bruno Haible  <bruno@clisp.org>
54625
54626         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
54627
54628 2007-04-27  Bruno Haible  <bruno@clisp.org>
54629
54630         * lib/fflush.c: Add comments.
54631         * modules/fpurge-tests (Depends-on): Add fflush.
54632         * modules/freadable-tests (Depends-on): Likewise.
54633         * modules/fwritable-tests (Depends-on): Likewise.
54634
54635 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
54636
54637         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
54638         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
54639         Report by Bruno Haible <bruno@clisp.org>.
54640
54641 2007-04-26  Eric Blake  <ebb9@byu.net>
54642
54643         Fix fflush on mingw.
54644         * modules/fflush (Depends-on): Add freading.
54645         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
54646         but unread data.
54647
54648 2007-04-26  Eric Blake  <ebb9@byu.net>
54649         and Bruno Haible  <bruno@clisp.org>
54650
54651         Implement freading and fwriting.
54652         * lib/freading.c: New file.
54653         * lib/freading.h: Likewise.
54654         * m4/freading.m4: Likewise.
54655         * modules/freading: Likewise.
54656         * modules/freading-tests: Likewise.
54657         * tests/test-freading.c: Likewise.
54658         * lib/fwriting.c: New file.
54659         * lib/fwriting.h: Likewise.
54660         * m4/fwriting.m4: Likewise.
54661         * modules/fwriting: Likewise.
54662         * modules/fwriting-tests: Likewise.
54663         * tests/test-fwriting.c: Likewise.
54664         * MODULES.html.sh (File stream based Input/Output): Mention them.
54665
54666 2007-04-26  Bruno Haible  <bruno@clisp.org>
54667
54668         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
54669         'long' when we assume it.
54670         Suggested by Eric Blake.
54671
54672 2007-04-26  Bruno Haible  <bruno@clisp.org>
54673
54674         Ensure fseeko, ftello are declared on glibc systems.
54675         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
54676         * modules/fseeko (configure.ac-early): Likewise.
54677         * modules/ftello (configure.ac-early): Likewise.
54678         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
54679         AC_FUNC_FSEEKO for this.
54680         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
54681         (gl_CHECK_FSEEKO): Remove macro.
54682
54683 2007-04-26  Bruno Haible  <bruno@clisp.org>
54684
54685         * tests/test-fflush.c (main): Also check the ftell result after
54686         fflush and fseek/fseeko.
54687         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
54688         file descriptor position cache in the stream.
54689         * lib/fseeko.c (rpl_fseeko): Likewise.
54690
54691 2007-04-26  Bruno Haible  <bruno@clisp.org>
54692
54693         * modules/fflush-tests (Depends-on): Add fseeko.
54694
54695 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
54696             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54697
54698         * lib/argz_.h: ensure error_t definition is obtained in same
54699         mechanism system argz.h would have.
54700         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
54701         argz facilities are known bad.  Err on the side of caution if
54702         cross-compiling.
54703
54704 2007-04-25  Eric Blake  <ebb9@byu.net>
54705
54706         * lib/fpurge.c (includes): Use stdlib.h for free.
54707         * tests/test-fflush.c (main): Also test fflush-fseeko.
54708
54709 2007-04-25  Bruno Haible  <bruno@clisp.org>
54710
54711         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
54712         * lib/fseeko.c: New file.
54713         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
54714         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
54715         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
54716         gl_FUNC_FSEEKO.
54717         (gl_FUNC_FSEEKO): Invoke it.
54718         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
54719         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
54720         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
54721
54722 2007-04-25  Bruno Haible  <bruno@clisp.org>
54723
54724         * modules/fflush (Depends-on): Add ftello.
54725
54726 2007-04-25  Bruno Haible  <bruno@clisp.org>
54727
54728         * modules/ftello-tests: New file.
54729         * tests/test-ftello.c: New file.
54730
54731         * modules/ftello: New file.
54732         * m4/ftello.m4: New file.
54733         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
54734         HAVE_FTELLO.
54735         * lib/stdio_.h (ftello): New declaration.
54736         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
54737         HAVE_FTELLO.
54738
54739 2007-04-25  Bruno Haible  <bruno@clisp.org>
54740
54741         * modules/fseeko-tests: New file.
54742         * tests/test-fseeko.c: New file.
54743
54744         * modules/fseeko: New file.
54745         * m4/fseeko.m4: New file.
54746         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
54747         HAVE_FSEEKO.
54748         * lib/stdio_.h (fseeko): New declaration.
54749         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
54750         HAVE_FSEEKO.
54751
54752 2007-04-25  Bruno Haible  <bruno@clisp.org>
54753
54754         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
54755
54756 2007-04-25  Bruno Haible  <bruno@clisp.org>
54757
54758         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
54759         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
54760         * tests/test-unistd.c: Likewise.
54761         * tests/test-fcntl.c: Likewise.
54762
54763 2007-04-23  Eric Blake  <ebb9@byu.net>
54764
54765         * lib/fflush.c: Fix missing include.
54766         Reported by Bruno Haible.
54767
54768 2007-04-23  Bruno Haible  <bruno@clisp.org>
54769
54770         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
54771         Reported by Eric Blake.
54772
54773 2007-04-23  Bruno Haible  <bruno@clisp.org>
54774
54775         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
54776
54777 2007-04-23  Bruno Haible  <bruno@clisp.org>
54778
54779         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
54780
54781 2007-04-23  Bruno Haible  <bruno@clisp.org>
54782
54783         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
54784         Needed on HP-UX 11.
54785
54786 2007-04-16  Eric Blake  <ebb9@byu.net>
54787
54788         Make fflush rely on fpurge.
54789         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
54790         open coding all variants.
54791         * modules/fflush (Depends-on): Add fpurge and unistd.
54792         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
54793         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
54794
54795         Fix --with-tests compilation on cygwin.
54796         * modules/argmatch-tests (Makefile.am): List gnulib library first
54797         in LDADD.
54798         * modules/argp-tests (Makefile.am): Likewise.
54799         * modules/array-list-tests (Makefile.am): Likewise.
54800         * modules/array-oset-tests (Makefile.am): Likewise.
54801         * modules/avltree-list-tests (Makefile.am): Likewise.
54802         * modules/avltree-oset-tests (Makefile.am): Likewise.
54803         * modules/avltreehash-list-tests (Makefile.am): Likewise.
54804         * modules/carray-list-tests (Makefile.am): Likewise.
54805         * modules/dirname-tests (Makefile.am): Likewise.
54806         * modules/frexp-tests (Makefile.am): Likewise.
54807         * modules/isnanl-tests (Makefile.am): Likewise.
54808         * modules/linked-list-tests (Makefile.am): Likewise.
54809         * modules/linkedhash-list-tests (Makefile.am): Likewise.
54810         * modules/lock-tests (Makefile.am): Likewise.
54811         * modules/rbtree-list-tests (Makefile.am): Likewise.
54812         * modules/rbtree-oset-tests (Makefile.am): Likewise.
54813         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
54814         * modules/tls-tests (Makefile.am): Likewise.
54815         * modules/tsearch-tests (Makefile.am): Likewise.
54816         * modules/xvasprintf-tests (Makefile.am): Likewise.
54817
54818         Fix fpurge for cygwin.
54819         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
54820         value.
54821         * modules/fpurge-tests (Depends-on): Clean up trash.
54822
54823 2007-04-16  Simon Josefsson  <simon@josefsson.org>
54824
54825         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
54826
54827         * m4/autobuild.m4: Re-indent.
54828
54829 2007-04-13  Bruno Haible  <bruno@clisp.org>
54830
54831         * modules/fpurge-tests: New file.
54832         * tests/test-fpurge.c: New file.
54833
54834         * modules/fpurge: New file.
54835         * lib/fpurge.h: New file.
54836         * lib/fpurge.c: New file.
54837         * m4/fpurge.m4: New file.
54838
54839 2007-04-13  Bruno Haible  <bruno@clisp.org>
54840
54841         * modules/fbufmode-tests: New file.
54842         * tests/test-fbufmode.c: New file.
54843
54844         * modules/fbufmode: New file.
54845         * lib/fbufmode.h: New file.
54846         * lib/fbufmode.c: New file.
54847         * m4/fbufmode.m4: New file.
54848
54849 2007-04-13  Bruno Haible  <bruno@clisp.org>
54850
54851         * modules/fwritable-tests: New file.
54852         * tests/test-fwritable.c: New file.
54853
54854         * modules/fwritable: New file.
54855         * lib/fwritable.h: New file.
54856         * lib/fwritable.c: New file.
54857         * m4/fwritable.m4: New file.
54858
54859 2007-04-13  Bruno Haible  <bruno@clisp.org>
54860
54861         * modules/freadable-tests: New file.
54862         * tests/test-freadable.c: New file.
54863
54864         * modules/freadable: New file.
54865         * lib/freadable.h: New file.
54866         * lib/freadable.c: New file.
54867         * m4/freadable.m4: New file.
54868
54869 2007-04-13  Bruno Haible  <bruno@clisp.org>
54870
54871         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
54872         MOSTLYCLEANFILES.
54873
54874 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
54875
54876         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
54877         gzip bootstrap.conf to avoid dragging in i18n machinery.
54878         (gnulib_tool_option): Use it.
54879
54880 2007-04-13  Bruno Haible  <bruno@clisp.org>
54881
54882         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
54883         %F directives.
54884         * tests/test-vasprintf-posix.c (test_function): Likewise.
54885         * tests/test-snprintf-posix.h (test_function): Likewise.
54886         * tests/test-sprintf-posix.h (test_function): Likewise.
54887         * tests/test-fprintf-posix.h (test_function): Likewise.
54888         * tests/test-printf-posix.h (test_function): Likewise.
54889         * tests/test-fprintf-posix.out: Likewise.
54890
54891 2007-04-13  Bruno Haible  <bruno@clisp.org>
54892
54893         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
54894         * modules/tls-tests (configure.ac): Likewise.
54895         Reported by Arto C. Nirkko <anirkko@insel.ch>.
54896
54897 2007-04-13  Bruno Haible  <bruno@clisp.org>
54898
54899         * lib/tls.c (glthread_tls_get): Fix return type.
54900         Patch by Arto C. Nirkko <anirkko@insel.ch>.
54901
54902 2007-04-12  Eric Blake  <ebb9@byu.net>
54903
54904         * modules/gettime (Depends-on): Remove gettime.
54905         Reported by Dmitry V. Levin.
54906
54907 2007-04-12  Bruno Haible  <bruno@clisp.org>
54908
54909         * modules/fflush (Include): Mention <stdio.h>.
54910         * modules/strtoimax (Include): Mention <inttypes.h>.
54911         * modules/strtoumax (Include): Likewise.
54912
54913 2007-04-12  Eric Blake  <ebb9@byu.net>
54914
54915         * .cvsignore: New file.
54916         * .gitignore: Likewise.
54917
54918 2007-04-12  Bruno Haible  <bruno@clisp.org>
54919
54920         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
54921         not before, since $(LDADD) often contains libgnu.a.
54922         * modules/striconv-tests (test_striconv_LDADD): Likewise.
54923         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
54924         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
54925         Needed on Cygwin.
54926
54927 2007-04-12  Eric Blake  <ebb9@byu.net>
54928
54929         Work around glibc's failure to flush stdin on fclose.
54930         * lib/closein.c (close_stdin): Flush stdin before closing.
54931
54932         Work around glibc's failure to reset seekable stdin on exit.
54933         * modules/closein: New module.
54934         * lib/closein.c: New file.
54935         * lib/closein.h: Likewise.
54936         * m4/closein.m4: Likewise.
54937         * MODULES.html.sh (File stream based Input/Output): Document it.
54938
54939 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54940
54941         * gnulib-tool: Rename generated 'autobuild' script to
54942         'do-autobuild' in --create-megatestdir output.
54943
54944         * doc/gnulib.texi (Build robot for gnulib): Fix.
54945
54946 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54947
54948         * modules/sysexits (Depends-on): Add absolute-header.
54949
54950 2007-04-12  Eric Blake  <ebb9@byu.net>
54951
54952         No need to preserve errno on success.
54953         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
54954         Reported by Bruno Haible.
54955
54956 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54957
54958         * MODULES.html.sh (Support for maintaining and releasing
54959         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
54960
54961 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54962
54963         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
54964
54965 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54966
54967         * modules/autobuild: New module.
54968
54969         * m4/autobuild.m4: New file.
54970
54971 2007-04-11  Bruno Haible  <bruno@clisp.org>
54972
54973         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
54974         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
54975         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
54976         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
54977         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54978         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54979         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54980         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
54981         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54982         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54983         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
54984         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54985         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54986         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
54987         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54988         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54989         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
54990         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54991         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54992         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
54993         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54994         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54995         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
54996         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54997         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54998         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
54999         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
55000         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
55001         Reported by Eric Blake.
55002
55003 2007-04-11  Bruno Haible  <bruno@clisp.org>
55004
55005         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
55006
55007 2007-04-10  Bruno Haible  <bruno@clisp.org>
55008
55009         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
55010         for NaN and Infinity. Needed on FreeBSD 6.1.
55011         * tests/test-vasnprintf-posix.c (test_function): Undo last change
55012         regarding results for "%010a" of Infinity and NaN.
55013         * tests/test-vasprintf-posix.c (test_function): Likewise.
55014         * tests/test-snprintf-posix.h (test_function): Likewise.
55015         * tests/test-sprintf-posix.h (test_function): Likewise.
55016         * tests/test-fprintf-posix.h (test_function): Likewise.
55017         * tests/test-printf-posix.h (test_function): Likewise.
55018         * tests/test-fprintf-posix.out: Likewise.
55019
55020 2007-04-10  Bruno Haible  <bruno@clisp.org>
55021
55022         * modules/locale-tests: New file.
55023         * tests/test-locale.c: New file.
55024
55025         * modules/locale: New file.
55026         * lib/locale_.h: New file.
55027         * m4/locale_h.m4: New file.
55028
55029 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
55030             Bruno Haible  <bruno@clisp.org>
55031
55032         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
55033         be determined, test for availability of the copysignf, copysign,
55034         copysignl functions.
55035         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
55036         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
55037         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
55038
55039 2007-04-09  Eric Blake  <ebb9@byu.net>
55040
55041         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
55042         * modules/stdio (Makefile.am): Support fflush.
55043         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
55044         * modules/fflush: New file.
55045         * lib/fflush.c: Likewise.
55046         * m4/fflush.m4: Likewise.
55047         * modules/fflush-tests: New test.
55048         * tests/test-fflush.c: Likewise.
55049         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
55050
55051 2007-04-06  Bruno Haible  <bruno@clisp.org>
55052
55053         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
55054         (VASNPRINTF): Use signbit for faster determination whether to print a
55055         minus sign.
55056         * modules/vasnprintf (Files): Remove lib/float+.h.
55057         * modules/fprintf-posix (Depends-on): Add signbit.
55058         * modules/snprintf-posix (Depends-on): Likewise.
55059         * modules/sprintf-posix (Depends-on): Likewise.
55060         * modules/vasnprintf-posix (Depends-on): Likewise.
55061         * modules/vasprintf-posix (Depends-on): Likewise.
55062         * modules/vfprintf-posix (Depends-on): Likewise.
55063         * modules/vsnprintf-posix (Depends-on): Likewise.
55064         * modules/vsprintf-posix (Depends-on): Likewise.
55065
55066 2007-04-06  Bruno Haible  <bruno@clisp.org>
55067
55068         * tests/test-frexp.c (main): Test also the sign bit of zero results.
55069         * tests/test-frexpl.c (main): Likewise.
55070         * tests/test-ldexpl.c (main): Likewise.
55071         * modules/frexp-tests (Depends-on): Add signbit.
55072         * modules/frexpl-tests (Depdends-on): Likewise.
55073         * modules/ldexpl-tests (Depdends-on): Likewise.
55074
55075 2007-04-06  Bruno Haible  <bruno@clisp.org>
55076
55077         * modules/signbit-tests: New file.
55078         * tests/test-signbit.c: New file.
55079
55080         * modules/signbit: New file.
55081         * lib/signbitf.c: New file.
55082         * lib/signbitd.c: New file.
55083         * lib/signbitl.c: New file.
55084         * m4/signbit.m4: New file.
55085         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
55086         (signbit): New macro.
55087         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
55088         REPLACE_SIGNBIT.
55089         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
55090         REPLACE_FREXPL into math.h.
55091
55092 2007-04-06  Bruno Haible  <bruno@clisp.org>
55093
55094         * modules/isnanf-nolibm-tests: New file.
55095         * tests/test-isnanf.c: New file.
55096
55097         * modules/isnanf-nolibm: New file.
55098         * lib/isnanf.h: New file.
55099         * lib/isnanf.c: New file.
55100         * lib/isnan.c: Consider the USE_FLOAT macro.
55101         * m4/isnanf.m4: New file.
55102
55103 2007-04-06  Bruno Haible  <bruno@clisp.org>
55104
55105         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
55106         (Link): New section.
55107
55108         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
55109
55110 2007-04-06  Bruno Haible  <bruno@clisp.org>
55111
55112         Assume the 'long double' type.
55113         * m4/longdouble.m4: Remove file.
55114         * config/srclist.txt: Don't mention longdouble.m4.
55115         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
55116         * lib/float+.h: Likewise.
55117         * lib/frexp.c: Likewise.
55118         * lib/printf-args.h: Likewise.
55119         * lib/printf-args.c: Likewise.
55120         * lib/printf-frexp.c: Likewise.
55121         * lib/printf-parse.c: Likewise.
55122         * lib/vasnprintf.c: Likewise.
55123         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
55124         * m4/intl.m4: Likewise.
55125         * m4/isnanl.m4: Likewise.
55126         * m4/printf.m4: Likewise.
55127         * m4/printf-frexpl.m4: Likewise.
55128         * m4/vasnprintf.m4: Likewise.
55129         * modules/allocsa (Files): Remove m4/longdouble.m4.
55130         * modules/gettext (Files): Likewise.
55131         * modules/relocatable-prog-wrapper (Files): Likewise.
55132         * modules/vasnprintf (Files): Likewise.
55133         * modules/isnanl (Files): Likewise.
55134         (Include): Simplify.
55135         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
55136         (Include): Simplify.
55137         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
55138         (Include): Simplify.
55139         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
55140         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
55141         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
55142         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
55143         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
55144         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
55145         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
55146         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
55147         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
55148         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
55149         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
55150         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
55151         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
55152         * tests/test-isnanl.c: Likewise.
55153         * tests/test-snprintf-posix.h: Likewise.
55154         * tests/test-sprintf-posix.h: Likewise.
55155         * tests/test-vasnprintf-posix.c: Likewise.
55156         * tests/test-vasnprintf-posix2.c: Likewise.
55157         * tests/test-vasprintf-posix.c: Likewise.
55158
55159 2007-04-06  Bruno Haible  <bruno@clisp.org>
55160
55161         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
55162         * lib/math_.h [__DECC]: Include the overridden include file through
55163         #include_next, outside the double-inclusion guard.
55164         * lib/stdio_.h [__DECC]: Likewise.
55165         * lib/stdlib_.h [__DECC]: Likewise.
55166         * lib/string_.h [__DECC]: Likewise.
55167         * lib/time_.h [__DECC]: Likewise.
55168         * lib/wchar_.h [__DECC]: Likewise.
55169         * lib/wctype_.h [__DECC]: Likewise.
55170         * lib/inttypes_.h [__DECC]: Likewise.
55171         Reported by Albert Chin <china@thewrittenword.com> in
55172         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
55173
55174 2007-04-04  Eric Blake  <ebb9@byu.net>
55175
55176         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
55177         1.5.x.
55178
55179 2007-04-04  Bruno Haible  <bruno@clisp.org>
55180
55181         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
55182         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
55183
55184 2007-04-04  Bruno Haible  <bruno@clisp.org>
55185
55186         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
55187         results for "%010a" of Infinity and NaN.
55188         * tests/test-vasprintf-posix.c (test_function): Likewise.
55189         * tests/test-snprintf-posix.h (test_function): Likewise.
55190         * tests/test-sprintf-posix.h (test_function): Likewise.
55191         * tests/test-fprintf-posix.h (test_function): Remove these tests.
55192         * tests/test-printf-posix.h (test_function): Likewise.
55193         * tests/test-fprintf-posix.out: Update.
55194         Needed for FreeBSD 6.1.
55195
55196 2007-04-04  Bruno Haible  <bruno@clisp.org>
55197
55198         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
55199         directly used by the gnulib modules nor by gnulib-tool.
55200
55201 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
55202
55203         * DEPENDENCIES: Give overall description of version dependency
55204         desirability.  Use more-typical names for apps.
55205         Add shell, coreutils, diffutils, grep, tar, gzip.
55206
55207 2007-04-04  Simon Josefsson  <simon@josefsson.org>
55208
55209         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
55210
55211 2007-04-04  Karl Berry  <karl@gnu.org>
55212
55213         * MODULES.html.sh (func_module): missing '.
55214
55215 2007-04-03  Bruno Haible  <bruno@clisp.org>
55216
55217         * modules/argmatch-tests (Makefile.am): New variable
55218         test_argmatch_LDADD.
55219         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
55220         * modules/array-list-tests (Makefile.am): New variable
55221         test_array_list_LDADD.
55222         * modules/array-oset-tests (Makefile.am): New variable
55223         test_array_oset_LDADD.
55224         * modules/avltree-list-tests (Makefile.am): New variable
55225         test_avltree_list_LDADD.
55226         * modules/avltree-oset-tests (Makefile.am): New variable
55227         test_avltree_oset_LDADD.
55228         * modules/avltreehash-list-tests (Makefile.am): New variable
55229         test_avltreehash_list_LDADD.
55230         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
55231         test_canonicalize_lgpl_LDADD.
55232         * modules/carray-list-tests (Makefile.am): New variable
55233         test_carray_list_LDADD.
55234         * modules/dirname-tests (Makefile.am): New variable
55235         test_dirname_LDADD.
55236         * modules/linked-list-tests (Makefile.am): New variable
55237         test_linked_list_LDADD.
55238         * modules/linkedhash-list-tests (Makefile.am): New variable
55239         test_linkedhash_list_LDADD.
55240         * modules/rbtree-list-tests (Makefile.am): New variable
55241         test_rbtree_list_LDADD.
55242         * modules/rbtree-oset-tests (Makefile.am): New variable
55243         test_rbtree_oset_LDADD.
55244         * modules/rbtreehash-list-tests (Makefile.am): New variable
55245         test_rbtreehash_list_LDADD.
55246         * modules/xvasprintf-tests (Makefile.am): New variable
55247         test_xvasprintf_LDADD.
55248         Reported by Eric Blake.
55249
55250 2007-04-03  Eric Blake  <ebb9@byu.net>
55251
55252         * DEPENDENCIES: Weaken m4 requirements.
55253
55254 2007-04-03  Bruno Haible  <bruno@clisp.org>
55255
55256         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
55257         * modules/isnanl-tests (configure.ac): Likewise.
55258
55259 2007-04-03  Ben Pfaff  <blp@gnu.org>
55260
55261         * modules/iconv_open: Add $(srcdir)/ to source directory
55262         references in Makefile fragments that call gperf, to fix VPATH
55263         builds.
55264
55265 2007-04-03  Bruno Haible  <bruno@clisp.org>
55266
55267         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
55268         * lib/ldexpl.c: Undo last change.
55269
55270 2007-04-03  Bruno Haible  <bruno@clisp.org>
55271
55272         * modules/printf-frexpl (Depends-on): Undo last change.
55273         (Files): Add m4/ldexpl.m4.
55274
55275 2007-04-03  Bruno Haible  <bruno@clisp.org>
55276
55277         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
55278         * modules/isnanl (Link): New section.
55279
55280         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
55281         * modules/frexp (Link): New section.
55282
55283         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
55284         * modules/frexpl (Link): New section.
55285
55286         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
55287         * modules/ldexpl (Link): New section.
55288
55289 2007-04-03  Bruno Haible  <bruno@clisp.org>
55290
55291         * modules/TEMPLATE-EXTENDED: New file.
55292         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
55293
55294 2007-04-03  Bruno Haible  <bruno@clisp.org>
55295
55296         * DEPENDENCIES: New file.
55297         Suggested by Simon Josefsson.
55298
55299 2007-04-03  Bruno Haible  <bruno@clisp.org>
55300
55301         * doc/gnulib.texi: Escape @.
55302
55303 2007-04-03  James Youngman  <jay@gnu.org>
55304         and Paul Eggert  <eggert@cs.ucla.edu>
55305
55306         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
55307         birthtime on all systems that have birthtime, not just those which
55308         use st_birthtimensec rather than st_birthtim.  Putting zero in
55309         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
55310         that the birth time is not available for files on an NFS mount.
55311
55312 2007-04-03  Simon Josefsson  <simon@josefsson.org>
55313
55314         * modules/memxor: Move back from crypto/, suggested by Bruno.
55315         * modules/crypto/hmac-sha1: Fix memxor dependency.
55316
55317         * modules/crypto/gc: Moved from ../.
55318
55319 2007-04-02  Eric Blake  <ebb9@byu.net>
55320
55321         * lib/ldexpl.c (includes): Avoid libm.
55322
55323         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
55324
55325 2007-04-02  Bruno Haible  <bruno@clisp.org>
55326
55327         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
55328         on IRIX.
55329
55330 2007-04-02  Bruno Haible  <bruno@clisp.org>
55331
55332         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
55333         x86 or x86_64 platforms running MacOS X.
55334         Reported by Ryan Schmidt <@ryandesign.com>.
55335
55336 2007-04-02  Bruno Haible  <bruno@clisp.org>
55337
55338         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
55339         i386.
55340
55341 2007-04-01  Simon Josefsson  <simon@josefsson.org>
55342
55343         * modules/crypto/arcfour: Moved from ../.
55344         * modules/crypto/arcfour-tests: Moved from ../.
55345         * modules/crypto/arctwo: Moved from ../.
55346         * modules/crypto/arctwo-tests: Moved from ../.
55347         * modules/crypto/des: Moved from ../.
55348         * modules/crypto/des-tests: Moved from ../.
55349         * modules/crypto/gc-arcfour: Moved from ../.
55350         * modules/crypto/gc-arcfour-tests: Moved from ../.
55351         * modules/crypto/gc-arctwo: Moved from ../.
55352         * modules/crypto/gc-arctwo-tests: Moved from ../.
55353         * modules/crypto/gc-des: Moved from ../.
55354         * modules/crypto/gc-des-tests: Moved from ../.
55355         * modules/crypto/gc-hmac-md5: Moved from ../.
55356         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
55357         * modules/crypto/gc-hmac-sha1: Moved from ../.
55358         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
55359         * modules/crypto/gc-md2: Moved from ../.
55360         * modules/crypto/gc-md2-tests: Moved from ../.
55361         * modules/crypto/gc-md4: Moved from ../.
55362         * modules/crypto/gc-md4-tests: Moved from ../.
55363         * modules/crypto/gc-md5: Moved from ../.
55364         * modules/crypto/gc-md5-tests: Moved from ../.
55365         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
55366         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
55367         * modules/crypto/gc-random: Moved from ../.
55368         * modules/crypto/gc-rijndael: Moved from ../.
55369         * modules/crypto/gc-rijndael-tests: Moved from ../.
55370         * modules/crypto/gc-sha1: Moved from ../.
55371         * modules/crypto/gc-sha1-tests: Moved from ../.
55372         * modules/crypto/gc-tests: Moved from ../.
55373         * modules/crypto/hmac-md5: Moved from ../.
55374         * modules/crypto/hmac-md5-tests: Moved from ../.
55375         * modules/crypto/hmac-sha1: Moved from ../.
55376         * modules/crypto/hmac-sha1-tests: Moved from ../.
55377         * modules/crypto/md2: Moved from ../.
55378         * modules/crypto/md2-tests: Moved from ../.
55379         * modules/crypto/md4: Moved from ../.
55380         * modules/crypto/md4-tests: Moved from ../.
55381         * modules/crypto/md5: Moved from ../.
55382         * modules/crypto/md5-tests: Moved from ../.
55383         * modules/crypto/memxor: Moved from ../.
55384         * modules/crypto/rijndael: Moved from ../.
55385         * modules/crypto/rijndael-tests: Moved from ../.
55386         * modules/crypto/sha1: Moved from ../.
55387
55388 2007-03-30  James Youngman  <jay@gnu.org>
55389
55390         * tests/test-stat-time.c (prepare_test): use chmod() rather than
55391         rename() to change the ctime of a file (because ctime is unaffected
55392         by rename on jfs2 on AIX 5.1).
55393         (main): Start by doing cleanup, in case a previous run failed leaving
55394         test files behind.
55395
55396 2007-03-31  Bruno Haible  <bruno@clisp.org>
55397
55398         Support old proprietary implementations of iconv.
55399         * modules/iconv_open: New file.
55400         * lib/iconv_.h: New file.
55401         * m4/iconv_h.m4: New file.
55402         * lib/iconv_open.c: New file.
55403         * lib/iconv_open-aix.gperf: New file.
55404         * lib/iconv_open-hpux.gperf: New file.
55405         * lib/iconv_open-irix.gperf: New file.
55406         * lib/iconv_open-osf.gperf: New file.
55407         * m4/iconv_open.m4: New file.
55408         * modules/linebreak (Depends-on): Add iconv_open.
55409         * modules/striconv (Depends-on): Likewise.
55410         * modules/striconveh (Depends-on): Likewise.
55411         * modules/unicodeio (Depends-on): Likewise.
55412         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
55413         (iconv_t)(-1).
55414         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
55415         conversion if cd is (iconv_t)(-1).
55416         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
55417         is not possible.
55418
55419 2007-03-31  Bruno Haible  <bruno@clisp.org>
55420
55421         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
55422         work on Solaris either. Protect also second use of "autodetect_jp".
55423
55424 2007-03-31  Bruno Haible  <bruno@clisp.org>
55425
55426         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
55427         the function is not present.
55428
55429 2007-03-31  Bruno Haible  <bruno@clisp.org>
55430
55431         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
55432         the function is not present.
55433
55434 2007-03-31  Bruno Haible  <bruno@clisp.org>
55435
55436         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
55437         a bug in HP-UX iconv_open().
55438
55439 2007-03-31  Bruno Haible  <bruno@clisp.org>
55440
55441         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
55442         (Mathematics <math.h>): New section, add fpieee.
55443         (Input/output <stdio.h>): Add fseterr.
55444         (Mathematics <math.h>): New section, add printf-frexp.
55445         (Container data structures): Add sublist.
55446         (Core language properties): Add fpucw, inline.
55447         (Functions for greatest-width integer types <inttypes.h>): Add
55448         imaxabs, imaxdiv, inttypes.
55449         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
55450         isnanl-nolibm, ldexp.
55451         (Mathematics <math.h>): New section, add printf-frexpl.
55452         (Support for systems lacking POSIX:2001): Add fprintf-posix,
55453         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
55454         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
55455         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
55456         (Unicode string functions): Add unistr/u*-mbtoucr.
55457         (Java): Add javacomp-script, javaexec-script.
55458         (C#): Add csharpcomp-script, csharpexec-script.
55459         (Support for building libraries and executables): Add havelib,
55460         relocatable-*.
55461         (Support for maintaining and releasing projects): Renamed from
55462         'Support for maintaining and release projects'. Add announce-gen.
55463
55464 2007-03-31  Bruno Haible  <bruno@clisp.org>
55465
55466         * README: Talk primarily about git.
55467         (git and CVS): Renamed from CVS.
55468         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
55469         gnulib is available through git.
55470         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
55471
55472 2007-03-30  Bruno Haible  <bruno@clisp.org>
55473
55474         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
55475         * lib/poll_.h: Likewise.
55476         * lib/stat_.h: Likewise.
55477         * lib/sys_time_.h: Likewise.
55478         * lib/sysexit_.h: Likewise.
55479         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
55480         * lib/stdbool_.h: Likewise.
55481         * lib/byteswap_.h: Add double-inclusion guard.
55482
55483 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
55484
55485         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
55486
55487 2007-03-30  Karl Berry  <karl@gnu.org>
55488
55489         * config/srclist-update: double space after USA in the license
55490         substitution, since that's how it's usually (?) written.
55491
55492 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
55493
55494         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
55495         reported by Bruno Haible.
55496
55497 2007-03-29  Bruno Haible  <bruno@clisp.org>
55498
55499         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
55500         a bug in AIX iconv().
55501
55502 2007-03-29  Bruno Haible  <bruno@clisp.org>
55503
55504         * modules/ldexpl-tests: New file.
55505         * tests/test-ldexpl.c: New file.
55506
55507 2007-03-29  Bruno Haible  <bruno@clisp.org>
55508
55509         * lib/ldexpl.c: Include fpucw.h.
55510         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
55511         multiplication.
55512         * modules/ldexpl (Depends-on): Add fpucw.
55513
55514 2007-03-29  Bruno Haible  <bruno@clisp.org>
55515
55516         * modules/ldexpl: New file.
55517         * m4/ldexpl.m4: New file.
55518         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
55519         set.
55520         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
55521         REPLACE_LDEXPL.
55522         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
55523         REPLACE_LDEXPL.
55524         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
55525         gl_FUNC_LDEXPL_WORKS.
55526         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
55527         * modules/mathl (Files): Remove lib/ldexpl.c.
55528         (Depends-on): Add ldexpl.
55529
55530 2007-03-29  Bruno Haible  <bruno@clisp.org>
55531
55532         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
55533
55534 2007-03-29  Bruno Haible  <bruno@clisp.org>
55535
55536         * tests/test-striconveh.c (main): Don't assume that a direct conversion
55537         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
55538         and possibly also HP-UX.
55539         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
55540         work on AIX, IRIX, HP-UX, OSF/1.
55541         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
55542         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
55543         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
55544         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
55545         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
55546         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
55547
55548 2007-03-29  Bruno Haible  <bruno@clisp.org>
55549
55550         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
55551
55552 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
55553
55554         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
55555         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
55556
55557 2007-03-29  Eric Blake  <ebb9@byu.net>
55558
55559         * lib/acl-internal.h: Remove redundant include.
55560         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
55561         Cygwin when a file is locked.
55562
55563 2007-03-29  Bruno Haible  <bruno@clisp.org>
55564
55565         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
55566         file.
55567         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
55568
55569 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
55570
55571         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
55572         try to remove a parent directory if the child couldn't be removed
55573         (except for the first rmdir, which could fail because the child
55574         doesn't exist).  Problem reported by Jeff Blaine in
55575         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
55576
55577 2007-03-28  Bruno Haible  <bruno@clisp.org>
55578
55579         * lib/striconveh.c (utf8conv_carefully): New function.
55580         (mem_cd_iconveh_internal): Invoke it.
55581
55582 2007-03-28  Bruno Haible  <bruno@clisp.org>
55583
55584         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
55585         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
55586         input.
55587         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
55588         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
55589         unistr/u8-uctomb.
55590
55591 2007-03-28  Bruno Haible  <bruno@clisp.org>
55592
55593         * modules/unistr/u8-mbtoucr: New file.
55594         * lib/unistr/u8-mbtoucr.c: New file.
55595         * modules/unistr/u16-mbtoucr: New file.
55596         * lib/unistr/u16-mbtoucr.c: New file.
55597         * modules/unistr/u16-mbtoucr: New file.
55598         * lib/unistr/u16-mbtoucr.c: New file.
55599         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
55600
55601 2007-03-27  Simon Josefsson  <simon@josefsson.org>
55602             Bruno Haible  <bruno@clisp.org>
55603
55604         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
55605         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
55606         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
55607
55608         * m4/stdio_h.m4: Add stubs for vasprintf too.
55609
55610         * modules/stdio: Support vasprintf in sed command.
55611
55612         * modules/vasprintf: Depend on stdio for prototypes.  Remove
55613         vasprintf.h.  Add stdio module indicator.
55614
55615         * lib/stdio_.h: Declare asprintf and vasprintf, based on
55616         vasprintf.h.
55617
55618         * lib/vasprintf.h: File removed.
55619
55620         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
55621         * lib/vasprintf.c: Ditto.
55622         * lib/xvasprintf.c: Ditto.
55623         * tests/test-vasprintf-posix.c: Ditto.
55624         * tests/test-vasprintf.c: Ditto.
55625
55626 2007-03-27  Bruno Haible  <bruno@clisp.org>
55627
55628         Make vasnprintf multithread-safe.
55629         * lib/vasnprintf.c (decimal_point_char): New function.
55630         (VASNPRINTF): Use it.
55631         Suggested by Simon Josefsson.
55632
55633 2007-03-27  Eric Blake  <ebb9@byu.net>
55634
55635         Support sub-second birthtime on cygwin.
55636         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
55637         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
55638         (get_stat_birthtime): Also work with st_birthtim.
55639
55640 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
55641
55642         * lib/stat-time.h (USE_BIRTHTIME): Remove.
55643         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
55644         (get_stat_birthtime_ns): Do not try to use "spare" fields.
55645         (get_stat_birthtime_ns): Simplify compile-time tests.
55646         (get_stat_birthtime): Change the API to look like
55647         get_stat_mtime etc., except return a negative tv_nsec on error.
55648         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
55649         Don't check for "spare" fields.
55650         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
55651         or for struct stat.st_birthtime, as these tests aren't used.
55652         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
55653
55654 2007-03-27  Bruno Haible  <bruno@clisp.org>
55655
55656         * lib/stat-time.h: Include <sys/stat.h>.
55657
55658 2007-03-27  James Youngman  <jay@gnu.org>
55659
55660         * lib/stat-time.h (get_stat_birthtime): New function for
55661           retrieving st_birthtime as provided by UFS2 (hence *BSD).
55662         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
55663           and its variants.
55664         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
55665         * modules/stat-time-test: New file.
55666         * tests/test-stat-time.c: New test, devised by Bruno Haible.
55667
55668 2007-03-26  Bruno Haible  <bruno@clisp.org>
55669
55670         Better support of signalling NaNs.
55671         * lib/atanl.c: Include isnanl.h.
55672         (atanl): Perform test for NaN at the beginning of the function and
55673         through a call to isnanl.
55674         * lib/cosl.c: Include isnanl.h.
55675         (cosl): Perform test for NaN at the beginning of the function and
55676         through a call to isnanl.
55677         * lib/ldexpl.c: Include isnanl.h.
55678         (ldexpl): Perform test for NaN through a call to isnanl.
55679         * lib/logl.c: Include isnanl.h.
55680         (logl): Perform test for NaN at the beginning of the function and
55681         through a call to isnanl.
55682         * lib/sinl.c: Include isnanl.h.
55683         (sinl): Perform test for NaN at the beginning of the function and
55684         through a call to isnanl.
55685         * lib/sqrtl.c: Include isnanl.h.
55686         (sqrtl): Perform test for NaN at the beginning of the function and
55687         through a call to isnanl.
55688         * lib/tanl.c: Include isnanl.h.
55689         (tanl): Perform test for NaN at the beginning of the function and
55690         through a call to isnanl.
55691         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
55692         * modules/mathl (Depends-on): Add isnanl.
55693
55694 2007-03-26  Eric Blake  <ebb9@byu.net>
55695
55696         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
55697         regression in logic sense of previous patch.
55698
55699 2007-03-26  Bruno Haible  <bruno@clisp.org>
55700
55701         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
55702         unportable shell command "if ! ...".
55703         Reported by Ralf Wildenhues.
55704
55705 2007-03-25  Bruno Haible  <bruno@clisp.org>
55706
55707         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
55708         <sysexits.h> file, and only add EX_CONFIG.
55709         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
55710         absolute file name and whether it is sufficient. Substitute also
55711         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
55712         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
55713         ABSOLUTE_SYSEXITS_H into sysexits.h.
55714
55715 2007-03-25  Bruno Haible  <bruno@clisp.org>
55716
55717         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
55718         hints is NULL.
55719
55720 2007-03-25  Bruno Haible  <bruno@clisp.org>
55721
55722         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
55723         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
55724
55725 2007-03-25  Bruno Haible  <bruno@clisp.org>
55726
55727         * lib/vasnprintf.c: Include langinfo.h.
55728         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
55729         multithread-safe.
55730         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
55731         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
55732         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55733         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55734         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55735         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55736         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55737         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
55738         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55739         Reported by Simon Josefsson.
55740
55741 2007-03-25  Bruno Haible  <bruno@clisp.org>
55742
55743         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
55744         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
55745         * modules/vasnprintf (Depends-on): Add stdint.
55746
55747 2007-03-25  Bruno Haible  <bruno@clisp.org>
55748
55749         * modules/fpieee: New file.
55750         * m4/fpieee.m4: New file.
55751         * modules/isnan-nolibm (Depends-on): Add fpieee.
55752         * modules/isnanl-nolibm (Depends-on): Add fpieee.
55753         * modules/isnanl (Depends-on): Add fpieee.
55754
55755 2007-03-25  Bruno Haible  <bruno@clisp.org>
55756
55757         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
55758
55759 2007-03-25  Bruno Haible  <bruno@clisp.org>
55760
55761         Avoid test failures on IRIX 6.5.
55762         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
55763         (main): Use it.
55764         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
55765         macros.
55766         (main): Use them.
55767
55768 2007-03-25  Bruno Haible  <bruno@clisp.org>
55769
55770         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
55771         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
55772         exists but doesn't work.
55773         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
55774         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
55775         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
55776         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
55777         math.h.
55778
55779 2007-03-25  Bruno Haible  <bruno@clisp.org>
55780
55781         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
55782         returns inf. Needed on IRIX 6.5.
55783
55784 2007-03-25  Bruno Haible  <bruno@clisp.org>
55785
55786         * tests/test-frexpl.c: Include isnanl-nolibm.h.
55787         (main): Use isnanl instead of x != x idiom.
55788         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
55789
55790         * tests/test-frexp.c: Include isnan.h.
55791         (main): Use isnan instead of x != x idiom.
55792         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
55793
55794 2007-03-25  Bruno Haible  <bruno@clisp.org>
55795
55796         * tests/test-frexp.c (NaN): New function/macro.
55797         (main): Use it instead of 0.0 / 0.0.
55798         * tests/test-isnan.c (NaN): New function/macro.
55799         (main): Use it instead of 0.0 / 0.0.
55800         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
55801         (test_function): Use it instead of 0.0 / 0.0.
55802         * tests/test-vasprintf-posix.c (NaN): New function/macro.
55803         (test_function): Use it instead of 0.0 / 0.0.
55804         * tests/test-snprintf-posix.h (NaN): New function/macro.
55805         (test_function): Use it instead of 0.0 / 0.0.
55806         * tests/test-sprintf-posix.h (NaN): New function/macro.
55807         (test_function): Use it instead of 0.0 / 0.0.
55808         * tests/test-fprintf-posix.h (NaN): New function/macro.
55809         (test_function): Use it instead of 0.0 / 0.0.
55810         * tests/test-printf-posix.h (NaN): New function/macro.
55811         (test_function): Use it instead of 0.0 / 0.0.
55812
55813         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
55814
55815 2007-03-25  Bruno Haible  <bruno@clisp.org>
55816
55817         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
55818
55819 2007-03-25  Bruno Haible  <bruno@clisp.org>
55820
55821         * lib/regexec.c (merge_state_with_log): Make static.
55822
55823 2007-03-25  Bruno Haible  <bruno@clisp.org>
55824
55825         * lib/trigl.c (kernel_rem_pio2): Make static.
55826
55827 2007-03-25  Bruno Haible  <bruno@clisp.org>
55828
55829         * lib/sincosl.c (sincosl_table): Make static.
55830
55831 2007-03-25  Bruno Haible  <bruno@clisp.org>
55832
55833         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
55834         if the compiler does not support C99.
55835
55836 2007-03-25  Bruno Haible  <bruno@clisp.org>
55837
55838         * modules/time (Makefile.am): Ensure all rule action lines start with a
55839         tab.
55840
55841 2007-03-24  Bruno Haible  <bruno@clisp.org>
55842
55843         * modules/tsearch-tests: New file.
55844         * tests/test-tsearch.sh: New file.
55845         * tests/test-tsearch.c: New file, mostly copied from glibc.
55846
55847         * modules/search-tests: New file.
55848         * tests/test-search.c: New file.
55849
55850         * modules/search: New file.
55851         * lib/search_.h: New file, incorporating lib/tsearch.h.
55852         * m4/search_h.m4: New file.
55853         * lib/tsearch.h: Remove file.
55854         * lib/tsearch.c: Include search.h instead of tsearch.h.
55855         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
55856         HAVE_TSEARCH.
55857         * modules/tsearch (Files): Remove lib/tsearch.h.
55858         (Depends-on): Add search.
55859         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
55860         (Include): Change tsearch.h into search.h.
55861
55862 2007-03-24  Bruno Haible  <bruno@clisp.org>
55863
55864         * modules/fpucw: New file.
55865         * lib/fpucw.h: New file.
55866         * lib/frexp.c: Include fpucw.h.
55867         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
55868         (FUNC): Use them.
55869         * lib/printf-frexp.c: Include fpucw.h.
55870         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
55871         (FUNC): Use them.
55872         * lib/vasnprintf.c: Include fpucw.h.
55873         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
55874         'long double' calculations.
55875         * tests/test-frexpl.c: Include fpucw.h.
55876         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
55877         * tests/test-printf-frexpl.c: Include fpucw.h.
55878         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
55879         * modules/frexpl (Depends-on): Add fpucw.
55880         * modules/printf-frexpl (Depends-on): Likewise.
55881         * modules/fprintf-posix (Depends-on): Likewise.
55882         * modules/snprintf-posix (Depends-on): Likewise.
55883         * modules/sprintf-posix (Depends-on): Likewise.
55884         * modules/vasnprintf-posix (Depends-on): Likewise.
55885         * modules/vasprintf-posix (Depends-on): Likewise.
55886         * modules/vfprintf-posix (Depends-on): Likewise.
55887         * modules/vsnprintf-posix (Depends-on): Likewise.
55888         * modules/vsprintf-posix (Depends-on): Likewise.
55889         * modules/frexpl-tests (Depends-on): Likewise.
55890         * modules/printf-frexpl-tests (Depends-on): Likewise.
55891
55892 2007-03-24  Bruno Haible  <bruno@clisp.org>
55893
55894         * lib/float+.h: New file.
55895         * lib/isnan.c: Include float+.h.
55896         (SIZE): New macro.
55897         (FUNC): Compare only SIZE bytes of the value.
55898         * lib/vasnprintf.c: Include float+.h.
55899         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
55900         SIZEOF_LDBL or SIZEOF_DBL bytes.
55901         * modules/isnan-nolibm (Files): Add lib/float+.h.
55902         * modules/isnanl-nolibm (Files): Add lib/float+.h.
55903         * modules/isnanl (Files): Add lib/float+.h.
55904         * modules/vasnprintf (Files): Add lib/float+.h.
55905
55906 2007-03-24  Bruno Haible  <bruno@clisp.org>
55907
55908         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
55909         include isnanl-nolibm.h.
55910
55911 2007-03-24  Bruno Haible  <bruno@clisp.org>
55912
55913         * tests/test-read-file.c (main): Don't produce spurious output for
55914         expected situations. Make the test fail if it encountered unexpected
55915         results.
55916
55917 2007-03-24  Bruno Haible  <bruno@clisp.org>
55918
55919         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
55920         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
55921
55922 2007-03-24  Bruno Haible  <bruno@clisp.org>
55923
55924         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
55925
55926 2007-03-24  Bruno Haible  <bruno@clisp.org>
55927
55928         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
55929         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
55930
55931         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
55932         * modules/utf8-ucs4: Turn into a symbolic link to module
55933         unistr/u8-mbtouc.
55934
55935         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
55936         utf8-ucs4-unsafe.
55937         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
55938         unistr/u8-mbtouc-unsafe.
55939
55940         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
55941         * modules/utf16-ucs4: Turn into a symbolic link to module
55942         unistr/u16-mbtouc.
55943
55944         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
55945         utf16-ucs4-unsafe.
55946         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
55947         unistr/u16-mbtouc-unsafe.
55948
55949         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
55950         * modules/ucs4-utf8: Turn into a symbolic link to module
55951         unistr/u8-ubtomb.
55952
55953         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
55954         * modules/ucs4-utf16: Turn into a symbolic link to module
55955         unistr/u16-ubtomb.
55956
55957 2007-03-24  Bruno Haible  <bruno@clisp.org>
55958
55959         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
55960         Enable the function only if HAVE_INLINE.
55961         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
55962         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
55963         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
55964         Enable the function only if HAVE_INLINE.
55965         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
55966         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
55967         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
55968         Enable the function only if HAVE_INLINE.
55969         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
55970         Enable the function only if HAVE_INLINE.
55971         * modules/utf8-ucs4: Update.
55972         * modules/utf8-ucs4-unsafe: Update.
55973         * modules/utf16-ucs4: Update.
55974         * modules/utf16-ucs4-unsafe: Update.
55975         * modules/ucs4-utf8: Update.
55976         * modules/ucs4-utf16: Update.
55977
55978 2007-03-24  Bruno Haible  <bruno@clisp.org>
55979
55980         * lib/utf8-ucs4.h: Remove file.
55981         * lib/utf8-ucs4-unsafe.h: Remove file.
55982         * lib/utf16-ucs4.h: Remove file.
55983         * lib/utf16-ucs4-unsafe.h: Remove file.
55984         * lib/ucs4-utf8.h: Remove file.
55985         * lib/ucs4-utf16.h: Remove file.
55986         * lib/unistr.h: Include their previous contents.
55987         * m4/utf-ucs4.m4: Remove file.
55988         * m4/ucs4-utf.m4: Remove file.
55989         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
55990         (Depends-on): Add unistr/base.
55991         (configure.ac): Remove gl_UTF_UCS4.
55992         (Makefile.am): Update.
55993         (Include): Change to unistr.h.
55994         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
55995         (Depends-on): Add unistr/base.
55996         (configure.ac): Remove gl_UTF_UCS4.
55997         (Makefile.am): Update.
55998         (Include): Change to unistr.h.
55999         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
56000         (Depends-on): Add unistr/base.
56001         (configure.ac): Remove gl_UTF_UCS4.
56002         (Makefile.am): Update.
56003         (Include): Change to unistr.h.
56004         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
56005         (Depends-on): Add unistr/base.
56006         (configure.ac): Remove gl_UTF_UCS4.
56007         (Makefile.am): Update.
56008         (Include): Change to unistr.h.
56009         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
56010         (Depends-on): Add unistr/base.
56011         (configure.ac): Remove gl_UCS4_UTF.
56012         (Makefile.am): Update.
56013         (Include): Change to unistr.h.
56014         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
56015         (Depends-on): Add unistr/base.
56016         (configure.ac): Remove gl_UCS4_UTF.
56017         (Makefile.am): Update.
56018         (Include): Change to unistr.h.
56019         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
56020         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
56021         utf8-ucs4-unsafe.h.
56022         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
56023         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
56024         utf16-ucs4-unsafe.h.
56025         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
56026         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
56027         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
56028         * lib/unistr/u8-strchr.c: Likewise.
56029         * lib/unistr/u8-strrchr.c: Likewise.
56030         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
56031         * lib/unistr/u16-strchr.c: Likewise.
56032         * lib/unistr/u16-strrchr.c: Likewise.
56033         * lib/striconveh.c: Update.
56034         * lib/linebreak.c: Update.
56035
56036 2007-03-24  Bruno Haible  <bruno@clisp.org>
56037
56038         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
56039         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
56040
56041 2007-03-22  Bruno Haible  <bruno@clisp.org>
56042
56043         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
56044
56045 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
56046
56047         * MODULES.html.sh (File system functions): New module write-any-file.
56048         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
56049         * m4/write-any-file.m4: New files.
56050
56051 2007-03-23  Eric Blake  <ebb9@byu.net>
56052
56053         * gnulib-tool: Rearrange space-tab sequences, since some editors
56054         like to eat them.
56055
56056 2007-03-23  Eric Blake  <ebb9@byu.net>
56057
56058         * lib/version-etc.c (version_etc_va): Update license wording to
56059         be more concise.  Recommended by Richard Stallman.
56060
56061 2007-03-22  Bruno Haible  <bruno@clisp.org>
56062
56063         * lib/poll.c (MSG_PEEK): New fallback definition.
56064
56065 2007-03-22  Bruno Haible  <bruno@clisp.org>
56066
56067         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
56068         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
56069         (main): Update.
56070         Fixes a compilation error on BeOS.
56071
56072 2007-03-22  Bruno Haible  <bruno@clisp.org>
56073
56074         * modules/frexpl-tests: New file.
56075         * tests/test-frexpl.c: New file.
56076
56077         * modules/frexpl: New file.
56078         * m4/frexpl.m4: New file.
56079         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
56080         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
56081         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
56082         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
56083         (Depends-on): Add frexpl. Remove isnanl-nolibm.
56084         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
56085
56086 2007-03-22  Bruno Haible  <bruno@clisp.org>
56087
56088         * lib/frexpl.c: Share code with lib/frexp.c.
56089         * modules/mathl (Files): Add lib/frexp.c.
56090         (Depends-on): Add isnanl-nolibm.
56091
56092 2007-03-22  Bruno Haible  <bruno@clisp.org>
56093
56094         * modules/printf-frexp (Files): Add m4/frexp.m4.
56095         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
56096         only if the found frexp function actually works.
56097
56098 2007-03-22  Bruno Haible  <bruno@clisp.org>
56099
56100         * lib/frexp.c: Remove older implementation that uses divisions.
56101
56102 2007-03-21  Bruno Haible  <bruno@clisp.org>
56103
56104         * modules/frexp-tests: New file.
56105         * tests/test-frexp.c: New file.
56106
56107         * modules/frexp: New file.
56108         * lib/frexp.c: New file.
56109         * m4/frexp.m4: New file.
56110         * lib/math_.h (frexp): New declaration.
56111         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
56112         REPLACE_FREXP.
56113         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
56114
56115 2007-03-21  Bruno Haible  <bruno@clisp.org>
56116
56117         * modules/isnanl-tests: New file.
56118         * tests/test-isnanl.c: New file.
56119
56120         * modules/isnanl: New file.
56121         * lib/isnanl.h: New file.
56122         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
56123         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
56124         gl_FUNC_ISNANL_WORKS.
56125         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
56126         New macros.
56127
56128 2007-03-21  Bruno Haible  <bruno@clisp.org>
56129
56130         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
56131         lib/isnanl.h.
56132         (Include): Update.
56133         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
56134         * lib/vasnprintf.c: Update.
56135         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
56136         tests/test-isnanl.h, remove tests/test-isnanl.c.
56137         (Makefile.am): Update.
56138         * tests/test-isnanl-nolibm.c: New file.
56139         * tests/test-isnanl.h: New file.
56140         * tests/test-isnanl.c: Remove file.
56141
56142 2007-03-21  Jim Meyering  <jim@meyering.net>
56143
56144         When trying to open ".", treat ESTALE like EACCES.
56145         * lib/savewd.c (savewd_save): Resort to forking not just upon
56146         failure with EACCES, but also when errno is ESTALE.
56147
56148 2007-03-20  Bruno Haible  <bruno@clisp.org>
56149
56150         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
56151         Needed on AIX 5.1. Reported by Matthew Woehlke.
56152
56153 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
56154
56155         Suggestions by Bruno Haible:
56156         * lib/acl-internal.h: Include "gettext.h" rather than rolling
56157         our own.
56158         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
56159         * modules/acl (Depends-on): Add gettext.
56160
56161 2007-03-19  Bruno Haible  <bruno@clisp.org>
56162
56163         * modules/iconvme: Remove file.
56164         * lib/iconvme.h: Remove file.
56165         * lib/iconvme.c: Remove file.
56166         * m4/iconvme.m4: Remove file.
56167
56168 2007-03-19  Bruno Haible  <bruno@clisp.org>
56169
56170         * doc/relocatable-maint.texi: Break long shell script line.
56171         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
56172
56173 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
56174
56175         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
56176         handle file_has_acl.
56177         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
56178         * lib/acl.c: Move header inclusions and related macro defns into
56179         lib/acl-internal.h.
56180         (S_ISLNK): Remove defn, since that's now done for us.
56181         (file_has_acl): Move to lib/file-has-acl.c.
56182         Call acl_trivial if available.  This is the crucial part of the fix.
56183         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
56184         shared within the library.  Rewrite a bit, partly to make it compatible
56185         with the GNU coding style.
56186         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
56187         Remove unnecessary double-quotes.
56188         Don't test for acl_to_text; the build will catch that.
56189         Replace acl_entries if it doesn't exist and it is needed.
56190         Check for -lsec and acl_trivial (as used on Solaris 10).
56191         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
56192         lib/file-has-acl.c.
56193         (Depends-on): Add sys_stat, for S_ISLNK.
56194
56195 2007-03-19  Ben Pfaff  <blp@gnu.org>
56196
56197         * doc/gnulib.texi: Fix typos.
56198         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
56199
56200 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
56201
56202         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
56203         If size is zero here, buf must be zero.
56204
56205 2007-03-19  Simon Josefsson  <simon@josefsson.org>
56206
56207         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
56208         <bruno@clisp.org>.
56209
56210 2007-03-18  Bruno Haible  <bruno@clisp.org>
56211
56212         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
56213         Suggested by Eric Blake.
56214
56215 2007-03-18  Ben Pfaff  <blp@gnu.org>
56216
56217         * doc/relocatable.texi: Recommend using as prefix a directory
56218         that does not exist and will never be created.  Based on
56219         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
56220         and others.
56221
56222 2007-03-17  Bruno Haible  <bruno@clisp.org>
56223
56224         * lib/fchownat.c: Include lchown.h.
56225
56226 2007-03-17  Bruno Haible  <bruno@clisp.org>
56227
56228         Fix endless loop when the given allocated size was > INT_MAX.
56229         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
56230         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
56231         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
56232         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
56233         * lib/sprintf.c (sprintf): Likewise.
56234
56235 2007-03-17  Bruno Haible  <bruno@clisp.org>
56236
56237         * tests/test-argp-2.sh (func_compare): Output a context diff.
56238
56239 2007-03-17  Bruno Haible  <bruno@clisp.org>
56240
56241         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
56242         locale's decimal-point character.
56243
56244 2007-03-17  Bruno Haible  <bruno@clisp.org>
56245
56246         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
56247         before comparing it. Needed because on some platforms (e.g. x86) a
56248         'long double' occupies less bytes than sizeof (long double).
56249
56250 2007-03-17  Bruno Haible  <bruno@clisp.org>
56251
56252         * tests/test-crc.c (main): Make printf statements 64-bit clean.
56253         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
56254         * tests/test-getaddrinfo.c (simple): Likewise.
56255         * tests/test-read-file.c (main): Likewise.
56256
56257 2007-03-17  Bruno Haible  <bruno@clisp.org>
56258
56259         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
56260
56261 2007-03-17  Bruno Haible  <bruno@clisp.org>
56262
56263         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
56264         unused variable.
56265
56266 2007-03-17  Bruno Haible  <bruno@clisp.org>
56267
56268         * tests/test-c-strcasecmp.c: Include c-strcase.h.
56269         * tests/test-c-strncasecmp.c: Likewise.
56270
56271 2007-03-17  Bruno Haible  <bruno@clisp.org>
56272
56273         * modules/stdlib (Depends-on): Add unistd.
56274         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
56275         Needed for MacOS X 10.3.
56276
56277 2007-03-17  Bruno Haible  <bruno@clisp.org>
56278
56279         * lib/unistr/u-strdup.h: Include <stdlib.h>.
56280
56281 2007-03-17  Bruno Haible  <bruno@clisp.org>
56282
56283         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
56284
56285 2007-03-17  Bruno Haible  <bruno@clisp.org>
56286
56287         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
56288         to reflect files copied from gnulib (with or without modifications).
56289         Suggested by Jim Meyering.
56290
56291 2007-03-17  Eric Blake  <ebb9@byu.net>
56292
56293         * NEWS: Document stdlib change from 2007-02-18.
56294
56295 2007-03-17  Jim Meyering  <jim@meyering.net>
56296
56297         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
56298         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
56299         someone uses a name containing shell meta-characters.
56300         Reported by Alfred M. Szmidt.
56301
56302         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
56303
56304 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
56305
56306         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
56307         and copy gettext configuration files only if configure.ac contains
56308         a use of AM_GNU_GETTEXT_VERSION.
56309
56310 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
56311
56312         * build-aux/bootstrap (gnulib_name): New variable.
56313         (gnulib_tool_options): Use it.
56314
56315 2007-03-13  Simon Josefsson  <simon@josefsson.org>
56316
56317         * tests/test-des.c: Use new namespace.
56318
56319 2007-03-15  Bruno Haible  <bruno@clisp.org>
56320
56321         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
56322         Reported by James Youngman <jay@gnu.org>.
56323
56324 2007-03-15  Bruno Haible  <bruno@clisp.org>
56325
56326         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
56327         declared prototype. Needed with cc on OSF/1 5.1.
56328
56329 2007-03-15  Bruno Haible  <bruno@clisp.org>
56330
56331         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
56332         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
56333         (struct gl_list_implementation): Add dispose_fn argument to the
56334         'create_empty', 'create' methods.
56335         (struct gl_list_impl_base): Add field 'dispose_fn'.
56336         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
56337         argument.
56338         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
56339         dispose_fn argument.
56340         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
56341         dispose_fn on the dropped values.
56342         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
56343         dispose_fn argument.
56344         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
56345         dropped values.
56346         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
56347         (gl_tree_remove_node): Call dispose_fn on the dropped value.
56348         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
56349         (gl_tree_remove_node): Call dispose_fn on the dropped value.
56350         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
56351         argument.
56352         (gl_tree_list_free): Call dispose_fn on the dropped values.
56353         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
56354         the dropped values.
56355         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
56356         Add dispose_fn argument.
56357         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
56358         Call dispose_fn on the dropped values.
56359         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
56360         Add dispose_fn argument.
56361         (gl_sublist_create): Initialize the 'dispose_fn' field.
56362         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
56363         * tests/test-array_list.c (main): Update.
56364         * tests/test-carray_list.c (main): Update.
56365         * tests/test-avltree_list.c (main): Update.
56366         * tests/test-rbtree_list.c (main): Update.
56367         * tests/test-avltreehash_list.c (main): Update.
56368         * tests/test-rbtreehash_list.c (main): Update.
56369         * tests/test-linked_list.c (main): Update.
56370         * tests/test-linkedhash_list.c (main): Update.
56371         * tests/test-array_oset.c (main): Update.
56372
56373 2007-03-15  Bruno Haible  <bruno@clisp.org>
56374
56375         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
56376         (gl_oset_create_empty): Add dispose_fn argument.
56377         (struct gl_oset_implementation): Add dispose_fn argument to
56378         'create_empty' method.
56379         (struct gl_oset_impl_base): Add dispose_fn field.
56380         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
56381         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
56382         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
56383         values.
56384         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
56385         (gl_tree_oset_free): Call dispose_fn on the dropped values.
56386         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
56387         dropped value.
56388         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
56389         dropped value.
56390         * tests/test-array_oset.c (main): Update.
56391         * tests/test-avltree_oset.c (main): Update.
56392         * tests/test-rbtree_oset.c (main): Update.
56393         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
56394
56395 2007-03-13  Bruno Haible  <bruno@clisp.org>
56396
56397         * tests/test-stdbool.c (i): Update after last patch.
56398
56399 2007-03-12  Bruno Haible  <bruno@clisp.org>
56400
56401         * lib/quotearg.c: Include <wctype.h> early, before the definition of
56402         the iswprint macro. Needed on Solaris 2.5.1.
56403
56404 2007-03-12  Bruno Haible  <bruno@clisp.org>
56405
56406         * tests/test-printf-frexp.c (main): Declare x as volatile.
56407
56408 2007-03-12  Simon Josefsson  <simon@josefsson.org>
56409
56410         * doc/gnulib.texi (Build robot for gnulib): New section.
56411
56412 2007-03-12  Jim Meyering  <jim@meyering.net>
56413
56414         * build-aux/bootstrap: New file.
56415         * build-aux/bootstrap.conf: New file, from coreutils.
56416
56417 2007-03-11  Bruno Haible  <bruno@clisp.org>
56418
56419         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
56420
56421 2007-03-12  Simon Josefsson  <simon@josefsson.org>
56422
56423         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
56424         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
56425         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
56426
56427 2007-03-11  Bruno Haible  <bruno@clisp.org>
56428
56429         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
56430         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
56431
56432 2007-03-11  Bruno Haible  <bruno@clisp.org>
56433
56434         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
56435         formula. Needed for SunPRO C 5.0.
56436
56437 2007-03-11  Bruno Haible  <bruno@clisp.org>
56438
56439         * modules/long-options (Depends-on): Add getopt.
56440
56441 2007-03-11  Bruno Haible  <bruno@clisp.org>
56442
56443         * modules/modechange (Depends-on): Add stdbool.
56444
56445 2007-03-11  Bruno Haible  <bruno@clisp.org>
56446
56447         * modules/i-ring (Depends-on): Add stdbool.
56448
56449 2007-03-11  Bruno Haible  <bruno@clisp.org>
56450
56451         * modules/gc-des (Depends-on): Add stdbool.
56452
56453 2007-03-11  Bruno Haible  <bruno@clisp.org>
56454
56455         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
56456
56457 2007-03-11  Bruno Haible  <bruno@clisp.org>
56458
56459         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
56460
56461 2007-03-11  Bruno Haible  <bruno@clisp.org>
56462
56463         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
56464
56465 2007-03-11  Bruno Haible  <bruno@clisp.org>
56466
56467         * lib/vasnprintf.c (sprintf): Undefine.
56468
56469 2007-03-11  Bruno Haible  <bruno@clisp.org>
56470
56471         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
56472         initializers in SunPRO C and Compaq C compilers.
56473
56474 2007-03-11  Bruno Haible  <bruno@clisp.org>
56475
56476         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
56477         decrementing code ANSI C compliant.
56478
56479 2007-03-11  Bruno Haible  <bruno@clisp.org>
56480
56481         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
56482         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
56483
56484 2007-03-11  Bruno Haible  <bruno@clisp.org>
56485
56486         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
56487         <stdbool.h> substitute doesn't pass.
56488
56489 2007-03-11  Bruno Haible  <bruno@clisp.org>
56490
56491         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
56492
56493 2007-03-11  Bruno Haible  <bruno@clisp.org>
56494
56495         * gnulib-tool (func_create_megatestdir): Create also an autobuild
56496         script, for submission to autobuild.josefsson.org.
56497
56498 2007-03-10  Bruno Haible  <bruno@clisp.org>
56499
56500         * modules/canonicalize-lgpl-tests: New file.
56501         * tests/test-canonicalize-lgpl.sh: New file.
56502         * tests/test-canonicalize-lgpl.c: New file.
56503
56504         * modules/c-strcase-tests: New file.
56505         * tests/test-c-strcase.sh: New file.
56506         * tests/test-c-strcasecmp.c: New file.
56507         * tests/test-c-strncasecmp.c: New file.
56508
56509         * modules/atexit-tests: New file.
56510         * tests/test-atexit.sh: New file.
56511         * tests/test-atexit.c: New file.
56512
56513 2007-03-10  Bruno Haible  <bruno@clisp.org>
56514
56515         * tests/test-binary-io.sh: Use temporary filenames that are not so
56516         likely to clash with those of other tests (in a parallel make).
56517         * tests/test-binary-io.c: Likewise.
56518
56519 2007-03-10  Bruno Haible  <bruno@clisp.org>
56520
56521         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
56522         fallback; use #error instead.
56523         Suggested by Simon Josefsson.
56524
56525 2007-03-10  Bruno Haible  <bruno@clisp.org>
56526
56527         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
56528         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
56529         first and the last.
56530
56531 2007-03-10  Bruno Haible  <bruno@clisp.org>
56532
56533         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
56534
56535 2007-03-10  Bruno Haible  <bruno@clisp.org>
56536
56537         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
56538         "make distcheck".
56539         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
56540         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
56541         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
56542
56543 2007-03-10  Bruno Haible  <bruno@clisp.org>
56544
56545         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
56546         variable.
56547         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
56548         variable.
56549
56550 2007-03-09  Eric Blake  <ebb9@byu.net>
56551         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
56552
56553         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
56554         types are not being provided by gnulib.
56555         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
56556         types are supported.
56557
56558 2007-03-10  Bruno Haible  <bruno@clisp.org>
56559
56560         * lib/stdio_.h (__attribute__): New macro.
56561         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
56562         vsprintf): Specify __attribute__ __format__ for GCC.
56563         Suggested by Eric Blake.
56564
56565 2007-03-09  Bruno Haible  <bruno@clisp.org>
56566
56567         * modules/printf-posix-tests: New file.
56568         * tests/test-printf-posix.sh: New file.
56569         * tests/test-printf-posix.c: New file.
56570
56571         * modules/printf-posix: New file.
56572         * lib/printf.c: New file.
56573         * m4/printf-posix-rpl.m4: New file.
56574         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
56575         REPLACE_PRINTF.
56576         * lib/stdio_.h (printf): New declaration.
56577         (format, __format__, ____printf____, ____scanf____, ____strftime____,
56578         ____strfmon____): New macros.
56579         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
56580         REPLACE_PRINTF.
56581
56582 2007-03-09  Bruno Haible  <bruno@clisp.org>
56583
56584         * tests/test-vasnprintf-posix2.sh: New file.
56585         * tests/test-vasnprintf-posix2.c: New file.
56586         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
56587         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
56588         (Makefile.am): Activate test-vasnprintf-posix2.sh.
56589
56590         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
56591         a locale dependent decimal point, rather than always '.'.
56592
56593 2007-03-09  Eric Blake  <ebb9@byu.net>
56594
56595         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
56596         spite of platforms like Tandem/NSK that define it to -1.
56597
56598 2007-03-08  Bruno Haible  <bruno@clisp.org>
56599
56600         * modules/vprintf-posix-tests: New file.
56601         * tests/test-vprintf-posix.sh: New file.
56602         * tests/test-vprintf-posix.c: New file.
56603         * tests/test-printf-posix.h: New file.
56604
56605         * modules/vprintf-posix: New file.
56606         * lib/vprintf.c: New file.
56607         * m4/vprintf-posix.m4: New file.
56608         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
56609         REPLACE_VPRINTF.
56610         * lib/stdio_.h (vprintf): New declaration.
56611         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
56612         REPLACE_VPRINTF.
56613
56614 2007-03-08  Bruno Haible  <bruno@clisp.org>
56615
56616         * modules/fprintf-posix-tests: New file.
56617         * tests/test-fprintf-posix.sh: New file.
56618         * tests/test-fprintf-posix.c: New file.
56619
56620         * modules/fprintf-posix: New file.
56621         * lib/fprintf.c: New file.
56622         * m4/fprintf-posix.m4: New file.
56623         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
56624         REPLACE_FPRINTF.
56625         * lib/stdio_.h (fprintf): New declaration.
56626         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
56627         REPLACE_FPRINTF.
56628
56629 2007-03-08  Bruno Haible  <bruno@clisp.org>
56630
56631         * modules/vfprintf-posix-tests: New file.
56632         * tests/test-vfprintf-posix.sh: New file.
56633         * tests/test-vfprintf-posix.c: New file.
56634         * tests/test-fprintf-posix.h: New file.
56635         * tests/test-fprintf-posix.out: New file.
56636
56637         * modules/vfprintf-posix: New file.
56638         * lib/vfprintf.c: New file.
56639         * m4/vfprintf-posix.m4: New file.
56640         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
56641         REPLACE_VFPRINTF.
56642         * lib/stdio_.h (vfprintf): New declaration.
56643         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
56644         REPLACE_VFPRINTF.
56645
56646 2007-03-08  Bruno Haible  <bruno@clisp.org>
56647
56648         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
56649
56650 2007-03-08  Bruno Haible  <bruno@clisp.org>
56651
56652         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
56653         instead of 'expr' invocations.
56654         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56655         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56656         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56657         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56658         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56659         Suggested by Paul Eggert.
56660
56661 2007-03-08  Bruno Haible  <bruno@clisp.org>
56662
56663         * modules/fseterr-tests: New file.
56664         * tests/test-fseterr.c: New file.
56665
56666         * modules/fseterr: New file.
56667         * lib/fseterr.h: New file.
56668         * lib/fseterr.c: New file.
56669
56670 2007-03-08  Bruno Haible  <bruno@clisp.org>
56671
56672         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
56673         * lib/getopt_.h: Likewise.
56674         * lib/mbswidth.h: Likewise.
56675         * lib/setenv.h: Likewise.
56676         * lib/vasnprintf.h: Likewise.
56677         * lib/vasprintf.h: Likewise.
56678         * lib/verror.h: Likewise.
56679         * lib/xsetenv.h: Likewise.
56680         * lib/xvasprintf.h: Likewise.
56681
56682 2007-03-08  Jim Meyering  <jim@meyering.net>
56683
56684         * users.txt: Add parted.
56685
56686         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
56687
56688 2007-03-07  Bruno Haible  <bruno@clisp.org>
56689
56690         * m4/printf.m4: Make the shell script snippets copy&pastable.
56691
56692 2007-03-02  Bruno Haible  <bruno@clisp.org>
56693
56694         * lib/netinet_in_.h: New file.
56695         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
56696         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
56697         * modules/netinet_in (Files): Add lib/netinet_in_.h.
56698         (Depends-on): Add absolute-header.
56699         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
56700         into netinet/in.h.
56701
56702 2007-03-03  Bruno Haible  <bruno@clisp.org>
56703
56704         * lib/sys_select_.h: New file.
56705         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
56706         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
56707         * modules/sys_select (Files): Add lib/sys_select_.h.
56708         (Depends-on): Add absolute-header.
56709         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
56710         into sys/select.h.
56711
56712 2007-03-02  Bruno Haible  <bruno@clisp.org>
56713
56714         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
56715         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
56716         values.
56717         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
56718         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
56719         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
56720         * modules/sys_socket (Depends-on): Add absolute-header.
56721         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
56722         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
56723         (Include): Remove requirement of inclusion of <sys/types.h>.
56724
56725 2007-03-02  Bruno Haible  <bruno@clisp.org>
56726
56727         * lib/byteswap_.h (bswap_32): Fix formula.
56728
56729 2007-03-06  Bruno Haible  <bruno@clisp.org>
56730
56731         * modules/sprintf-posix-tests: New file.
56732         * tests/test-sprintf-posix.c: New file.
56733
56734         * modules/sprintf-posix: New file.
56735         * lib/sprintf.c: New file.
56736         * m4/sprintf-posix.m4: New file.
56737         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
56738         REPLACE_SPRINTF.
56739         * lib/stdio_.h (sprintf): New declaration.
56740         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
56741         REPLACE_SPRINTF.
56742
56743 2007-03-06  Bruno Haible  <bruno@clisp.org>
56744
56745         * modules/vsprintf-posix-tests: New file.
56746         * tests/test-vsprintf-posix.c: New file.
56747         * tests/test-sprintf-posix.h: New file.
56748
56749         * modules/vsprintf-posix: New file.
56750         * lib/vsprintf.c: New file.
56751         * m4/vsprintf-posix.m4: New file.
56752         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
56753         REPLACE_VSPRINTF.
56754         * lib/stdio_.h (vsprintf): New declaration.
56755         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
56756         REPLACE_VSPRINTF.
56757
56758 2007-03-06  Bruno Haible  <bruno@clisp.org>
56759
56760         * modules/vsnprintf (Depend-on): Remove minmax.
56761
56762 2007-03-06  Bruno Haible  <bruno@clisp.org>
56763
56764         * modules/snprintf-posix-tests: New file.
56765         * tests/test-snprintf-posix.c: New file.
56766
56767         * modules/snprintf-posix: New file.
56768         * m4/snprintf-posix.m4: New file.
56769         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
56770         gl_FUNC_SNPRINTF.
56771         (gl_FUNC_SNPRINTF): Invoke it.
56772         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
56773         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
56774         is set.
56775         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
56776
56777 2007-03-06  Bruno Haible  <bruno@clisp.org>
56778
56779         * modules/vsnprintf-posix-tests: New file.
56780         * tests/test-vsnprintf-posix.c: New file.
56781         * tests/test-snprintf-posix.h: New file.
56782
56783         * modules/vsnprintf-posix: New file.
56784         * m4/vsnprintf-posix.m4: New file.
56785         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
56786         gl_FUNC_VSNPRINTF.
56787         (gl_FUNC_VSNPRINTF): Invoke it.
56788         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
56789         * lib/stdio_.h (vsnprintf): Define as a replacement if
56790         REPLACE_VSNPRINTF is set.
56791         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
56792
56793 2007-03-06  Bruno Haible  <bruno@clisp.org>
56794
56795         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
56796         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
56797
56798 2007-03-06  Bruno Haible  <bruno@clisp.org>
56799
56800         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
56801         (asinl): Declare also if HAVE_DECL_ASINL is set.
56802         (atanl): Declare also if HAVE_DECL_ATANL is set.
56803         (ceill): Declare also if HAVE_DECL_CEILL is set.
56804         (cosl): Declare also if HAVE_DECL_COSL is set.
56805         (expl): Declare also if HAVE_DECL_EXPL is set.
56806         (floorl): Declare also if HAVE_DECL_FLOORL is set.
56807         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
56808         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
56809         (logl): Declare also if HAVE_DECL_LOGL is set.
56810         (sinl): Declare also if HAVE_DECL_SINL is set.
56811         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
56812         (tanl): Declare also if HAVE_DECL_TANL is set.
56813         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
56814         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
56815         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
56816         declaration of frexpl, ldexpl.
56817         * modules/printf-frexpl (Depends-on): Add math.
56818         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
56819
56820 2007-03-05  Bruno Haible  <bruno@clisp.org>
56821
56822         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
56823         frexpl and ldexpl are declared.
56824         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
56825
56826 2007-03-05  Bruno Haible  <bruno@clisp.org>
56827
56828         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
56829         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
56830
56831 2007-03-05  Bruno Haible  <bruno@clisp.org>
56832
56833         * lib/stdio_.h: Include <stddef.h>.
56834
56835 2007-03-05  Bruno Haible  <bruno@clisp.org>
56836
56837         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
56838
56839 2007-03-05  Bruno Haible  <bruno@clisp.org>
56840
56841         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
56842         NetBSD 4, from Ralf Wildenhues.
56843
56844 2007-03-04  Bruno Haible  <bruno@clisp.org>
56845
56846         * lib/vasprintf.h: Update #if logic for the case when the functions
56847         exist but are overridden.
56848
56849 2007-03-04  Bruno Haible  <bruno@clisp.org>
56850
56851         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
56852         implementations: glibc-2.4 and MacOS X 10.3.
56853         * tests/test-vasnprintf-posix.c (test_function): Test also the case
56854         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
56855         * tests/test-vasprintf-posix.c (test_function): Likewise.
56856
56857 2007-03-04  Bruno Haible  <bruno@clisp.org>
56858
56859         * modules/vasprintf-posix-tests: New file.
56860         * tests/test-vasprintf-posix.c: New file.
56861
56862         * modules/vasprintf-posix: New file.
56863         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
56864         defined.
56865         * m4/vasprintf-posix.m4: New file.
56866         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
56867         gl_FUNC_VASPRINTF.
56868         (gl_FUNC_VASPRINTF): Invoke it.
56869         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
56870         here.
56871         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
56872
56873 2007-03-04  Bruno Haible  <bruno@clisp.org>
56874
56875         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
56876         REPLACE_GETTIMEOFDAY.
56877         * modules/sys_time (Makefile.am): Likewise.
56878         * m4/sys_time_h.m4: Likewise.
56879         * m4/gettimeofday.m4: Likewise.
56880
56881 2007-03-04  Bruno Haible  <bruno@clisp.org>
56882
56883         * modules/vasnprintf-posix-tests: New file.
56884         * tests/test-vasnprintf-posix.c: New file.
56885
56886         * modules/vasnprintf-posix: New file.
56887         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
56888         printf-frexpl.h.
56889         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
56890         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
56891         REPLACE_VASNPRINTF is defined.
56892         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
56893         gl_FUNC_VASNPRINTF.
56894         (gl_FUNC_VASNPRINTF): Invoke it.
56895         * m4/vasnprintf-posix.m4: New file.
56896         * m4/printf.m4: New file.
56897
56898 2007-03-04  Bruno Haible  <bruno@clisp.org>
56899
56900         Compile progreloc.c only if --enable-relocatable is specified.
56901         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
56902         if --enable-relocatable was specified.
56903         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
56904         lib_SOURCES.
56905
56906 2007-03-04  Jim Meyering  <jim@meyering.net>
56907
56908         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
56909         Use it consistently, rather than enumerating errno constants.
56910
56911 2007-03-04  Bruno Haible  <bruno@clisp.org>
56912
56913         * modules/xvasprintf-tests: New file.
56914         * tests/test-xvasprintf.c: New file.
56915
56916         * modules/vasprintf-tests: New file.
56917         * tests/test-vasprintf.c: New file.
56918
56919         * modules/vasnprintf-tests: New file.
56920         * tests/test-vasnprintf.c: New file.
56921
56922         * modules/vsnprintf-tests: New file.
56923         * tests/test-vsnprintf.c: New file.
56924
56925         * modules/snprintf-tests: New file.
56926         * tests/test-snprintf.c: New file.
56927
56928 2007-03-04  Bruno Haible  <bruno@clisp.org>
56929
56930         Compile relocatable.c only if --enable-relocatable is specified.
56931         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
56932         gl_RELOCATABLE_LIBRARY.
56933         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
56934         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
56935         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
56936         gl_RELOCATABLE_LIBRARY.
56937         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
56938         (Makefile.am): Remove lib_SOURCES.
56939         * modules/relocatable-lib-lgpl (configure.ac): Invoke
56940         gl_RELOCATABLE_LIBRARY.
56941         (Makefile.am): Remove lib_SOURCES.
56942         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
56943         always.
56944         * modules/relocatable-prog-wrapper (configure.ac): Invoke
56945         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
56946
56947 2007-03-04  Bruno Haible  <bruno@clisp.org>
56948
56949         * modules/argmatch-tests: New file.
56950         * tests/test-argmatch.c: New file.
56951
56952         * tests/test-allocsa.c (main): Halve the number of loop runs.
56953
56954         * modules/alloca-opt-tests: New file.
56955         * tests/test-alloca-opt.c: New file.
56956
56957 2007-03-04  Jim Meyering  <jim@meyering.net>
56958
56959         Work around difference between Linux ACLs and Solaris 10 ZFS.
56960         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
56961         for EINVAL.
56962
56963 2007-03-03  Bruno Haible  <bruno@clisp.org>
56964
56965         * modules/relocatable-prog (Depends-on): Add back progreloc's
56966         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
56967
56968 2007-03-03  Bruno Haible  <bruno@clisp.org>
56969
56970         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
56971         * modules/relocatable-lib: New file.
56972
56973 2007-03-03  Bruno Haible  <bruno@clisp.org>
56974
56975         * modules/relocatable-prog: Renamed from modules/relocatable.
56976         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
56977
56978 2007-03-03  Bruno Haible  <bruno@clisp.org>
56979
56980         * modules/relocatable-script (Files): Add doc/relocatable.texi,
56981         m4/relocatable-lib.m4.
56982         (Depends-on): Remove 'relocatable'.
56983         (configure.ac): Add gl_RELOCATABLE_NOP.
56984
56985 2007-03-03  Bruno Haible  <bruno@clisp.org>
56986
56987         * modules/relocatable-prog-wrapper: New file.
56988         * modules/relocatable (Depends-on): Add it. Remove all other
56989         dependencies except progname.
56990         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
56991
56992         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
56993         (gl_FUNC_STRERROR): Nop.
56994         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
56995
56996         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
56997         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
56998
56999         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
57000         (gl_FUNC_READLINK): Update.
57001
57002         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
57003
57004 2007-03-03  Bruno Haible  <bruno@clisp.org>
57005
57006         * lib/xreadlink.c: Include <unistd.h> unconditionally.
57007         * modules/xreadlink (Depends-on): Add unistd.
57008         * modules/xreadlink-with-size (Depends-on): Likewise.
57009
57010 2007-03-03  Bruno Haible  <bruno@clisp.org>
57011
57012         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
57013         extracted from gt_FUNC_SETENV.
57014         (gt_FUNC_SETENV): Remove macro.
57015         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
57016         remove gt_FUNC_SETENV.
57017
57018 2007-03-03  Bruno Haible  <bruno@clisp.org>
57019
57020         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
57021         ENABLE_RELOCATABLE here.
57022         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
57023
57024 2007-03-03  Bruno Haible  <bruno@clisp.org>
57025
57026         * modules/rbtreehash-list-tests (Depends-on): Add progname.
57027         * tests/test-rbtreehash_list.c: Include progname.h.
57028         (main): Call set_program_name.
57029
57030         * modules/rbtree-oset-tests (Depends-on): Add progname.
57031         * tests/test-rbtree_oset.c: Include progname.h.
57032         (main): Call set_program_name.
57033
57034         * modules/rbtree-list-tests (Depends-on): Add progname.
57035         * tests/test-rbtree_list.c: Include progname.h.
57036         (main): Call set_program_name.
57037
57038         * modules/linked-list-tests (Depends-on): Add progname.
57039         * tests/test-linked_list.c: Include progname.h.
57040         (main): Call set_program_name.
57041
57042 2007-03-03  Bruno Haible  <bruno@clisp.org>
57043
57044         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
57045         All uses of __restrict changed to _Restrict_.
57046         * lib/glob_.h (__restrict): Remove macro.
57047
57048 2007-03-02  Bruno Haible  <bruno@clisp.org>
57049
57050         * modules/gettext (configure.ac): Require gettext infrastructure
57051         from version 0.16.1.
57052
57053 2007-03-02  Bruno Haible  <bruno@clisp.org>
57054
57055         * modules/linkedhash-list-tests (Depends-on): Add progname.
57056         * tests/test-linkedhash_list.c: Include progname.h.
57057         (main): Call set_program_name.
57058
57059         * modules/carray-list-tests (Depends-on): Add progname.
57060         * tests/test-carray_list.c: Include progname.h.
57061         (main): Call set_program_name.
57062
57063         * modules/avltreehash-list-tests (Depends-on): Add progname.
57064         * tests/test-avltreehash_list.c: Include progname.h.
57065         (main): Call set_program_name.
57066
57067         * modules/avltree-oset-tests (Depends-on): Add progname.
57068         * tests/test-avltree_oset.c: Include progname.h.
57069         (main): Call set_program_name.
57070
57071         * modules/avltree-list-tests (Depends-on): Add progname.
57072         * tests/test-avltree_list.c: Include progname.h.
57073         (main): Call set_program_name.
57074
57075         * modules/array-oset-tests (Depends-on): Add progname.
57076         * tests/test-array_oset.c: Include progname.h.
57077         (main): Call set_program_name.
57078
57079         * modules/array-list-tests (Depends-on): Add progname.
57080         * tests/test-array_list.c: Include progname.h.
57081         (main): Call set_program_name.
57082
57083         * modules/argp-tests (Depends-on): Add progname.
57084         * tests/test-argp.c: Include argp.h first. Include progname.h.
57085         (main): Call set_program_name.
57086
57087 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
57088
57089         * doc/gnulib-tool.texi (Initial import): Reword description of
57090         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
57091         limited effect even if defined after the first system include.
57092
57093 2007-03-01  Bruno Haible  <bruno@clisp.org>
57094
57095         * build-aux/config.libpath: Update to libtool-1.5.22.
57096         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
57097
57098 2007-03-01  Bruno Haible  <bruno@clisp.org>
57099
57100         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
57101         foo_CFLAGS.
57102         Reported by Ralf Wildenhues.
57103
57104 2007-03-01  Bruno Haible  <bruno@clisp.org>
57105
57106         * build-aux/install-reloc: Remove object files left over by some
57107         compilers.
57108         Reported by Ralf Wildenhues.
57109
57110 2007-03-01  Bruno Haible  <bruno@clisp.org>
57111
57112         * build-aux/install-reloc: Break long lines.
57113
57114 2007-03-01  Bruno Haible  <bruno@clisp.org>
57115
57116         * doc/relocatable.texi: Document that it may not work on OpenBSD.
57117         Reported by Ralf Wildenhues.
57118
57119 2007-03-01  Bruno Haible  <bruno@clisp.org>
57120
57121         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
57122         include ordering constraints.
57123
57124 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
57125
57126         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
57127         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
57128         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
57129         as another example.
57130         * lib/time_.h: Fix misspelling.
57131         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
57132         Require gl_HEADER_TIME_H_DEFAULTS.
57133         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
57134         * m4/time_r.m4 (gl_TIME_R): Likewise.
57135         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
57136
57137 2007-03-01  Bruno Haible  <bruno@clisp.org>
57138
57139         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
57140         * m4/utimens.m4 (gl_UTIMENS): Likewise.
57141
57142 2007-03-01  Jim Meyering  <jim@meyering.net>
57143
57144         * modules/xreadlink (Maintainer): Add my name.
57145         * modules/xreadlink-with-size (Depends-on): Alphabetize.
57146
57147 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
57148             Bruno Haible  <bruno@clisp.org>
57149
57150         * build-aux/install-reloc: Compile also c-ctype.c.
57151         * build-aux/relocatable.sh.in: New file.
57152         * doc/relocatable.texi: New file.
57153         * doc/relocatable-maint.texi: New file.
57154         * doc/gnulib.texi: Include relocatable-maint.texi.
57155         * lib/progreloc.c: Include unistd.h unconditionally.
57156         * lib/relocwrapper.c: Include unistd.h unconditionally.
57157         Include c-ctype.h.
57158         (add_dotbin): Use c_tolower.
57159         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
57160         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
57161         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
57162         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
57163         to m4/relocatable-lib.m4.
57164         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
57165         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
57166         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
57167         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
57168         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
57169         * modules/relocatable: New file.
57170         * modules/relocatable-lib: New file.
57171         * modules/relocatable-script: New file.
57172
57173 2007-02-28  Bruno Haible  <bruno@clisp.org>
57174
57175         Import --enable-relocatable infrastructure.
57176         * build-aux/config.libpath: New file, from GNU gettext.
57177         * build-aux/install-reloc: New file, from GNU gettext.
57178         * build-aux/reloc-ldflags: New file, from GNU gettext.
57179         * lib/relocatable.h: New file, from GNU gettext.
57180         * lib/relocatable.c: New file, from GNU gettext.
57181         * lib/relocwrapper.c: New file, from GNU gettext.
57182         * m4/relocatable.m4: New file, from GNU gettext.
57183
57184 2007-02-28  Bruno Haible  <bruno@clisp.org>
57185
57186         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
57187
57188         * modules/xreadlink: New file, from GNU gettext with modifications.
57189         * lib/xreadlink.c: New file, from GNU gettext.
57190         * lib/xreadlink.h: Add comments.
57191         (xreadlink): New declaration.
57192
57193         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
57194         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
57195         lib/xreadlink-with-size.c.
57196         (configure.ac): Remove gl_XREADLINK invocation.
57197         (Makefile.am): Augment lib_SOURCES.
57198         * m4/xreadlink.m4: Remove file.
57199         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
57200         (xreadlink_with_size): Renamed from xreadink.
57201         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
57202         * modules/canonicalize (Depends-on): Replace xreadlink with
57203         xreadlink-with-size.
57204         * lib/canonicalize.c (canonicalize_filename_mode): Update.
57205
57206 2007-02-25  Jim Meyering  <jim@meyering.net>
57207
57208         * build-aux/announce-gen: When complaining about excess arguments,
57209         list them.
57210
57211 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
57212
57213         * README: Document signed integer overflow situation more
57214         accurately.
57215
57216 2007-02-25  Bruno Haible  <bruno@clisp.org>
57217
57218         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
57219         'a' or 'A' conversion.
57220
57221 2007-02-25  Bruno Haible  <bruno@clisp.org>
57222
57223         * modules/filename: Renamed from modules/pathname.
57224         (Files): Replace lib/pathname.h with lib/filename.h. Replace
57225         lib/concatpath.c with lib/concat-filename.c.
57226         (Makefile.am): Update.
57227         (Include): Replace pathname.h with filename.h.
57228         * lib/filename.h: Renamed from lib/pathname.h.
57229         (concatenated_filename): Renamed from concatenated_pathname.
57230         * lib/concat-filename.c: Renamed from lib/concatpath.c.
57231         (concatenated_filename): Renamed from concatenated_pathname.
57232         * lib/findprog.c: Include filename.h instead of pathname.h.
57233         (find_in_path): Update.
57234         * lib/javacomp.c: Include filename.h instead of pathname.h.
57235         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
57236         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
57237         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
57238         is_oldgcj_14_13_usable, is_javac_usable): Update.
57239         * lib/javaexec.c: Include filename.h instead of pathname.h.
57240         (execute_java_class): Update.
57241         * modules/findprog: Update.
57242         * modules/javacomp: Update.
57243         * modules/javaexec: Update.
57244         * MODULES.html.sh (File system functions): Add 'filename', remove
57245         'pathname'.
57246
57247 2007-02-25  Bruno Haible  <bruno@clisp.org>
57248
57249         * modules/printf-frexpl-tests: New file.
57250         * tests/test-printf-frexpl.c: New file.
57251
57252         * modules/printf-frexpl: New file.
57253         * lib/printf-frexpl.h: New file.
57254         * lib/printf-frexpl.c: New file.
57255         * m4/printf-frexpl.m4: New file.
57256
57257 2007-02-25  Bruno Haible  <bruno@clisp.org>
57258
57259         * modules/printf-frexp-tests: New file.
57260         * tests/test-printf-frexp.c: New file.
57261
57262         * modules/printf-frexp: New file.
57263         * lib/printf-frexp.h: New file.
57264         * lib/printf-frexp.c: New file.
57265         * m4/printf-frexp.m4: New file.
57266
57267 2007-02-25  Bruno Haible  <bruno@clisp.org>
57268
57269         Assume automake >= 1.10 for the tests.
57270         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
57271         * modules/arctwo-tests: Likewise.
57272         * modules/argp-tests: Likewise.
57273         * modules/avltree-list-tests: Likewise.
57274         * modules/avltree-oset-tests: Likewise.
57275         * modules/avltreehash-list-tests: Likewise.
57276         * modules/carray-list-tests: Likewise.
57277         * modules/crc-tests: Likewise.
57278         * modules/des-tests: Likewise.
57279         * modules/gc-arcfour-tests: Likewise.
57280         * modules/gc-arctwo-tests: Likewise.
57281         * modules/gc-des-tests: Likewise.
57282         * modules/gc-hmac-md5-tests: Likewise.
57283         * modules/gc-hmac-sha1-tests: Likewise.
57284         * modules/gc-md2-tests: Likewise.
57285         * modules/gc-md4-tests: Likewise.
57286         * modules/gc-md5-tests: Likewise.
57287         * modules/gc-pbkdf2-sha1-tests: Likewise.
57288         * modules/gc-rijndael-tests: Likewise.
57289         * modules/gc-sha1-tests: Likewise.
57290         * modules/gc-tests: Likewise.
57291         * modules/getaddrinfo-tests: Likewise.
57292         * modules/hmac-md5-tests: Likewise.
57293         * modules/hmac-sha1-tests: Likewise.
57294         * modules/linked-list-tests: Likewise.
57295         * modules/linkedhash-list-tests: Likewise.
57296         * modules/lock-tests: Likewise.
57297         * modules/md2-tests: Likewise.
57298         * modules/md4-tests: Likewise.
57299         * modules/md5-tests: Likewise.
57300         * modules/rbtree-list-tests: Likewise.
57301         * modules/rbtree-oset-tests: Likewise.
57302         * modules/rbtreehash-list-tests: Likewise.
57303         * modules/read-file-tests: Likewise.
57304         * modules/rijndael-tests: Likewise.
57305         * modules/stdint-tests: Likewise.
57306         * modules/tls-tests: Likewise.
57307
57308 2007-02-24  Bruno Haible  <bruno@clisp.org>
57309
57310         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
57311         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
57312         function; instead check whether isnan with a double argument links.
57313         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
57314         function; instead check whether isnan with a 'long double' argument
57315         links.
57316         Reported by Eric Blake <ebb9@byu.net>.
57317
57318 2007-02-24  Bruno Haible  <bruno@clisp.org>
57319
57320         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
57321         defined.
57322         * lib/isnanl.c: Remove all code. Just include isnan.c.
57323         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
57324
57325 2007-02-25  Jim Meyering  <jim@meyering.net>
57326
57327         Avoid conflicting types for 'unsetenv' on FreeBSD.
57328         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
57329         conflicting with FreeBSD's (5.0 and 6.1) function declaration
57330         in stdlib.h.
57331
57332 2007-02-24  Bruno Haible  <bruno@clisp.org>
57333
57334         * modules/isnanl-nolibm-tests: New file.
57335         * tests/test-isnanl.c: New file.
57336
57337         * modules/isnanl-nolibm: New file.
57338         * lib/isnanl.h: New file.
57339         * lib/isnanl.c: New file.
57340         * m4/isnanl.m4: New file.
57341
57342 2007-02-24  Bruno Haible  <bruno@clisp.org>
57343
57344         * modules/isnan-nolibm-tests: New file.
57345         * tests/test-isnan.c: New file.
57346
57347         * modules/isnan-nolibm: New file.
57348         * lib/isnan.h: New file.
57349         * lib/isnan.c: New file.
57350         * m4/isnan.m4: New file.
57351
57352 2007-02-24  Bruno Haible  <bruno@clisp.org>
57353
57354         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
57355         assume that an exponent fits in 20 bits.
57356
57357 2007-02-24  Jim Meyering  <jim@meyering.net>
57358
57359         * m4/regex.m4: Update the description of the configure-time option,
57360         --without-included-regex, to state accurately what the defaults are,
57361         and perhaps to give people an idea why using this option is risky.
57362
57363 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
57364
57365         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
57366         loops on small arguments.  This attempts to avoid the problem
57367         Bruno Haible reported for AIX 4.3.2 in
57368         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
57369
57370 2007-02-23  Bruno Haible  <bruno@clisp.org>
57371
57372         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
57373         Needed for help2man.
57374
57375 2007-02-23  Karl Berry  <karl@gnu.org>
57376
57377         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
57378         exists, foo.h should be cvs-ignored, not committed.
57379
57380 2007-02-23  Eric Blake  <ebb9@byu.net>
57381
57382         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
57383         * lib/stat-time.h (includes): Likewise.
57384         * lib/utimecmp.c (includes): Likewise.
57385         * lib/utimens.h (includes): Likewise.
57386         * lib/getdate.y (includes): Also include "timespec.h" for use
57387         internal to the module.
57388         * modules/utimens (Depends-on): Revert yesterday's patch.
57389         * modules/nanosleep (Depends-on): Add missing dependency.
57390
57391 2007-02-22  Bruno Haible  <bruno@clisp.org>
57392
57393         * lib/glob.c: Don't include getlogin_r.h.
57394
57395 2007-02-22  Jim Meyering  <jim@meyering.net>
57396
57397         * modules/utimens (Depends-on): Add timespec, required for
57398         utimens.h's inclusion of timespec.h.
57399
57400 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
57401
57402         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
57403         long unreadable paths in GNU/Linux.  Problem reported by Andreas
57404         Schwab in
57405         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
57406         I'll try to think of a better way to fix the Solaris problem.
57407
57408         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
57409         like glibc; on Solaris 10, it fails with errno == EINVAL.
57410         POSIX says the behavior is unspecified if the first argument is NULL,
57411         so play it safe and never pass NULL to the system getcwd.
57412
57413 2007-02-21  Jim Meyering  <jim@meyering.net>
57414
57415         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
57416         of gettimeofday.  It would conflict with the one now always
57417         provided via sys_time_.h.  Reported by Matthew Woehlke, as
57418         an IRIX 6.5 build failure.
57419
57420 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
57421
57422         Minor fixups to port to Solaris 10 with Sun C 5.8.
57423         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
57424         * modules/getcwd (Depends-on): Add dirfd.
57425         * lib/putenv.c (putenv): #undef it.
57426         (rpl_putenv): New decl.
57427         (malloc, free): Include <stdlib.h> rather than prototyping separately.
57428
57429 2007-02-20  Bruno Haible  <bruno@clisp.org>
57430
57431         * modules/stdio-tests: New file.
57432         * tests/test-stdio.c: New file.
57433
57434         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
57435         (Depends-on): Add stdio.
57436         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
57437         (Include): Use <stdio.h> instead of vsnprintf.h.
57438         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
57439         HAVE_DECL_VSNPRINTF.
57440         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
57441
57442         * modules/snprintf (Files): Remove lib/snprintf.h.
57443         (Depends-on): Add stdio.
57444         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
57445         (Include): Use <stdio.h> instead of snprintf.h.
57446         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
57447         HAVE_DECL_SNPRINTF.
57448         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
57449         * lib/getaddrinfo.c: Likewise.
57450
57451         * modules/stdio: New file.
57452         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
57453         * lib/snprintf.h: Remove file.
57454         * lib/vsnprintf.h: Remove file.
57455         * lib/.cppi-disable: Remove snprintf.h.
57456         * m4/stdio_h.m4: New file.
57457         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
57458
57459 2007-02-20  Jim Meyering  <jim@meyering.net>
57460
57461         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
57462         used by e.g., mingw.  From Bruno Haible.
57463
57464 2007-02-19  Bruno Haible  <bruno@clisp.org>
57465
57466         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
57467         warnings.
57468         Reported by Ben Pfaff <blp@cs.stanford.edu>.
57469
57470 2007-02-19  Bruno Haible  <bruno@clisp.org>
57471
57472         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
57473         from mingw users.
57474
57475 2007-02-19  Bruno Haible  <bruno@clisp.org>
57476
57477         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
57478         warnings.
57479         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
57480
57481 2007-02-19  Jim Meyering  <jim@meyering.net>
57482
57483         Don't use FD after a successful "fdopendir (fd)".
57484         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
57485         Reset it by calling dirfd on the just-obtained DIR*.
57486
57487         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
57488         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
57489
57490 2007-02-18  Bruno Haible  <bruno@clisp.org>
57491
57492         * lib/readlink.c: Include <unistd.h>.
57493         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
57494         HAVE_READLINK.
57495         * modules/readlink (Depends-on): Add unistd.
57496         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57497         (Include): Add <unistd.h>.
57498
57499         * lib/getlogin_r.h: Remove file.
57500         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
57501         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
57502         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
57503         HAVE_DECL_GETLOGIN_R.
57504         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
57505         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57506         (Include): Use <unistd.h> instead of getlogin_r.h.
57507
57508         * lib/getcwd.h: Remove file.
57509         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
57510         * lib/xgetcwd.c: Likewise.
57511         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
57512         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
57513         * modules/getcwd (Files): Remove lib/getcwd.h.
57514         (Depends-on): Add unistd.
57515         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57516         (Include): Use <unistd.h> instad of getcwd.h.
57517
57518         * lib/ftruncate.c: Include <unistd.h> first.
57519         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
57520         Set HAVE_FTRUNCATE.
57521         * modules/ftruncate (Depends-on): Add unistd.
57522         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57523
57524         * lib/fchdir.c: Include <unistd.h> first.
57525         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
57526         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
57527         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
57528         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57529         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
57530
57531         * lib/dup2.c: Include <unistd.h> first.
57532         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
57533         HAVE_DUP2.
57534         * modules/dup2 (Depends-on): Add unistd.
57535         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57536
57537         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
57538         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
57539         REPLACE_CHOWN. Don't define chown as a macro here.
57540         * modules/chown (Depends-on): Add unistd.
57541         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57542
57543         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
57544         Add definition for GL_LINK_WARNING.
57545         (chown, dup2): New declarations.
57546         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
57547         link warning.
57548         (ftruncate): New declaration.
57549         (getcwd): New declaration, taken from old getcwd.h.
57550         (getlogin_r): New declaration, taken from old getlogin_r.h.
57551         (readlink): New declaration.
57552         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
57553         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
57554         (gl_PREREQ_UNISTD): Remove macro.
57555         (gl_UNISTD_MODULE_INDICATOR): New macro.
57556         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
57557         many new variables. Don't set UNISTD_H.
57558         * modules/unistd (Description): Change.
57559         (Depends-on): Add link-warning.
57560         (configure.ac): Update.
57561         (Makefile.am): Create unistd.h always. Substitute many new variables
57562         into it.
57563
57564 2007-02-18  Bruno Haible  <bruno@clisp.org>
57565
57566         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
57567         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
57568         HAVE_GETSUBOPT.
57569         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
57570         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
57571         * lib/getsubopt.h: Remove file.
57572         * modules/getsubopt (Files): Remove lib/getsubopt.h.
57573         (Depends-on): Add stdlib.
57574         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57575         (Includes): Use <stdlib.h> instead of getsubopt.h.
57576         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
57577         Set HAVE_GETSUBOPT.
57578         * lib/getsubopt.c: Don't include getsubopt.h.
57579
57580 2007-02-18  Bruno Haible  <bruno@clisp.org>
57581
57582         * modules/fchdir (Depends-on): Add dup2.
57583
57584 2007-02-18  Bruno Haible  <bruno@clisp.org>
57585
57586         * lib/stdlib_.h: Handle glibc's special invocation convention
57587         specially.
57588
57589 2007-02-18  Bruno Haible  <bruno@clisp.org>
57590
57591         * modules/stdlib-tests: New file.
57592         * tests/test-stdlib.c: New file.
57593
57594         * modules/mkstemp (Files): Remove lib/mkstemp.h.
57595         (Depends-on): Add stdlib.
57596         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57597         (Includes): Use <stdlib.h> instead of mkstemp.h.
57598         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
57599         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
57600         * lib/mkstemp.c: Don't include mkstemp.h.
57601         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
57602         * lib/stdlib--.h: Don't include mkstemp.h.
57603
57604         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
57605         (Depends-on): Add stdlib.
57606         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57607         (Includes): Use <stdlib.h> instead of mkdtemp.h.
57608         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
57609         HAVE_MKDTEMP.
57610         * lib/mkdtemp.c: Don't include mkdtemp.h.
57611         * lib/clean-temp.c: Don't include mkdtemp.h.
57612
57613         * modules/exit (Files): Remove lib/exit.h.
57614         (Depends-on): Add stdlib.
57615         (Makefile.am): Remove lib_SOURCES.
57616         (Include): Use <stdlib.h> instead of exit.h.
57617         * lib/argmatch.c: Don't include exit.h.
57618         * lib/execute.c: Likewise.
57619         * lib/pagealign_alloc.c: Likewise.
57620         * lib/pipe.c: Likewise.
57621         * lib/wait-process.c: Likewise.
57622         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
57623         * lib/exitfail.c: Likewise.
57624         * lib/savewd.c: Likewise.
57625         * lib/xsetenv.c: Likewise.
57626
57627         * modules/stdlib: New file.
57628         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
57629         and extra comments about mkstemp().
57630         * lib/exit.h: Remove file.
57631         * lib/mkdtemp.h: Remove file.
57632         * lib/mkstemp.h: Remove file.
57633         * m4/stdlib_h.m4: New file.
57634         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
57635
57636 2007-02-18  Bruno Haible  <bruno@clisp.org>
57637
57638         * modules/math-tests: New file.
57639         * tests/test-math.c: New file.
57640
57641         * modules/math: New file.
57642         * modules/mathl (Files): Remove lib/mathl.h.
57643         (Depends-on): Add math.
57644         (Makefile.am): Don't mention mathl.h.
57645         (Include): Use <math.h> instead of mathl.h.
57646         * lib/math_.h: New file.
57647         * lib/mathl.h: Remove file.
57648         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
57649         mathl.h.
57650         * lib/asinl.c: Likewise.
57651         * lib/atanl.c: Likewise.
57652         * lib/ceill.c: Likewise.
57653         * lib/cosl.c: Likewise.
57654         * lib/expl.c: Likewise.
57655         * lib/floorl.c: Likewise.
57656         * lib/frexpl.c: Likewise.
57657         * lib/ldexpl.c: Likewise.
57658         * lib/logl.c: Likewise.
57659         * lib/sincosl.c: Likewise.
57660         * lib/sinl.c: Likewise.
57661         * lib/sqrtl.c: Likewise.
57662         * lib/tanl.c: Likewise.
57663         * lib/trigl.c: Likewise.
57664         * m4/math_h.m4: New file.
57665         * MODULES.html.sh (Mathematics): Add math.
57666
57667 2007-02-17  Bruno Haible  <bruno@clisp.org>
57668
57669         * modules/wctype-tests: New file.
57670         * tests/test-wctype.c: New file.
57671
57672         * modules/wchar-tests: New file.
57673         * tests/test-wchar.c: New file.
57674
57675         * modules/unistd-tests: New file.
57676         * tests/test-unistd.c: New file.
57677
57678         * modules/time-tests: New file.
57679         * tests/test-time.c: New file.
57680
57681         * modules/sysexits-tests: New file.
57682         * tests/test-sysexits.c: New file.
57683
57684         * modules/sys_time-tests: New file.
57685         * tests/test-sys_time.c: New file.
57686
57687         * modules/sys_stat-tests: New file.
57688         * tests/test-sys_stat.c: New file.
57689
57690         * modules/sys_socket-tests: New file.
57691         * tests/test-sys_socket.c: New file.
57692
57693         * modules/sys_select-tests: New file.
57694         * tests/test-sys_select.c: New file.
57695
57696         * modules/string-tests: New file.
57697         * tests/test-string.c: New file.
57698
57699         * modules/stdbool-tests: New file.
57700         * tests/test-stdbool.c: New file.
57701
57702         * modules/netinet_in-tests: New file.
57703         * tests/test-netinet_in.c: New file.
57704
57705         * modules/inttypes-tests: New file.
57706         * tests/test-inttypes.c: New file.
57707
57708         * modules/fcntl-tests: New file.
57709         * tests/test-fcntl.c: New file.
57710
57711         * modules/byteswap-tests: New file.
57712         * tests/test-byteswap.c: New file.
57713
57714         * modules/arpa_inet-tests: New file.
57715         * tests/test-arpa_inet.c: New file.
57716
57717 2007-02-17  Bruno Haible  <bruno@clisp.org>
57718
57719         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
57720         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
57721         if the corresponding module is not enabled. Emit link warnings if
57722         the function is used nevertheless.
57723         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
57724         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
57725         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
57726         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
57727         * modules/inttypes (Depends-on): Add link-warning.
57728         (Makefile.am): Copy the contents of build-aux/link-warning.h into
57729         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
57730         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
57731         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
57732         * modules/imaxdiv (configure.ac): Likewise.
57733         * modules/strtoimax (configure.ac): Likewise.
57734         * modules/strtoumax (configure.ac): Likewise.
57735
57736 2007-02-17  Bruno Haible  <bruno@clisp.org>
57737
57738         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
57739         gl_STRING_MODULE_INDICATOR_DEFAULTS.
57740         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
57741         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
57742
57743 2007-02-17  Bruno Haible  <bruno@clisp.org>
57744
57745         * modules/link-warning: New file.
57746         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
57747         * lib/string_.h (GL_LINK_WARNING): Remove definition.
57748         * modules/string (Depends-on): Add link-warning.
57749         (Makefile.am): Copy the contents of build-aux/link-warning.h into
57750         string.h.
57751         * MODULES.html.sh (Support for building libraries and executables): Add
57752         link-warning.
57753
57754 2007-02-17  Bruno Haible  <bruno@clisp.org>
57755
57756         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
57757         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
57758         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
57759         long lines.
57760
57761 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
57762             Bruno Haible  <bruno@clisp.org>
57763
57764         * modules/tmpfile: New file.
57765         * lib/tmpfile.c: New file.
57766         * m4/tmpfile.m4: New file.
57767         * MODULES.html.sh (func_all_modules): New section "Input/output".
57768
57769 2007-02-15  Bruno Haible  <bruno@clisp.org>
57770
57771         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
57772         (supports_delete_on_close): New function.
57773         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
57774
57775 2007-02-14  Bruno Haible  <bruno@clisp.org>
57776
57777         * modules/mbspcasecmp-tests: New file.
57778         * tests/test-mbspcasecmp.sh: New file.
57779         * tests/test-mbspcasecmp.c: New file.
57780
57781         New module mbspcasecmp.
57782         * modules/mbspcasecmp: New file.
57783         * lib/mbspcasecmp.c: New file.
57784         * lib/string_.h (strncasecmp): Change warning message.
57785         (mbspcasecmp): New declaration.
57786         * m4/mbspcasecmp.m4: New file.
57787         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57788         GNULIB_MBSPCASECMP.
57789         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
57790         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
57791
57792 2007-02-14  Bruno Haible  <bruno@clisp.org>
57793
57794         * modules/mbsncasecmp-tests: New file.
57795         * tests/test-mbsncasecmp.sh: New file.
57796         * tests/test-mbsncasecmp.c: New file.
57797
57798         New module mbsncasecmp.
57799         * modules/mbsncasecmp: New file.
57800         * lib/mbsncasecmp.c: New file.
57801         * lib/string_.h (mbsncasecmp): New declaration.
57802         * m4/mbsncasecmp.m4: New file.
57803         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57804         GNULIB_MBSNCASECMP.
57805         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
57806         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
57807
57808 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
57809
57810         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
57811         Verify that it doesn't overlap with our flags.
57812         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
57813         do not have the desired effect in multibyte locales; instead, use
57814         mbscasecmp.
57815         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
57816         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
57817         we don't require GNU fnmatch ourselves (if our users require it, they
57818         should do so explicitly).
57819
57820         Fix regex code so it doesn't rely on strcasecmp.
57821         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
57822         Otherwise, include gnulib's langinfo.h.
57823         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
57824         undesirable behavior in non-C locales.  Instead, rely on localecharset.
57825         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
57826         * modules/regex (FILES): Remove m4/codeset.m4.
57827         (Depends-on): Add localcharset.  Remove strcase.
57828
57829 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57830
57831         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
57832         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
57833
57834 2007-02-13  Bruno Haible  <bruno@clisp.org>
57835
57836         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
57837         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57838
57839 2007-02-12  Bruno Haible  <bruno@clisp.org>
57840
57841         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
57842         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
57843         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
57844         time warning rather than a link error.
57845
57846 2007-02-12  Bruno Haible  <bruno@clisp.org>
57847
57848         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
57849         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
57850         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57851
57852 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
57853
57854         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
57855         args, not 2.
57856
57857 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
57858
57859         New module 'time', so that apps can include <time.h> as per
57860         POSIX and GNU instead of separate include files like time_r.h
57861         and timegm.h.  This implementation tries out a simpler approach
57862         for replacing decls in standard include files (as compared to
57863         the string module), somewhat as an experiment.
57864
57865         * config/srclist.txt: Comment out mktime.c for now.
57866         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
57867         since it doesn't apply any more.  Use generic wording instead.
57868         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
57869         'time'.
57870         * lib/time_.h, m4/time_h.m4, modules/time: New files.
57871         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
57872         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
57873         Don't include <sys/types.h>; no longer needed since we assume C89.
57874         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
57875         * lib/strftime.c: Likewise.
57876         * lib/time_r.c: Likewise.
57877         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
57878         * lib/nanosleep.c: Include <time.h> first, to check interface.
57879         * lib/strptime.c: Likewise.
57880         * lib/time_r.c: Likewise.
57881         * lib/timegm.c: Likewise.
57882         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
57883         needed.
57884         * lib/timegm.c: Don't include timegm.h; no longer needed.
57885         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
57886         time.h now handles any problems in that area.
57887         (struct timespec, nanosleep): Remove; time.h now arranges for these.
57888         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
57889         that time.h defines struct timespec.
57890         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
57891         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
57892         handles that.
57893         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
57894         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
57895         needed.  Set REPLACE_LOCALTIME.
57896         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
57897         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
57898         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
57899         nanosleep; time_h.m4 now does that.  Don't require
57900         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
57901         module handles this now.
57902         * modules/getdate (Depends-on): Remove timespec.  Add time.
57903         * modules/nanosleep (Depends-on): Likewise.
57904         * modules/stat-time (Depends-on): Likewise.
57905         * modules/nanosleep (Include): Include time.h, not timespec.h.
57906         * modules/strptime (Files): Remove lib/strptime.h.
57907         (Depends-on): Add extensions, time.
57908         (Include): Include time.h, not strptime.h.
57909         * modules/time_r (Files): Remove lib/time_r.h.
57910         (Depends-on): Add time.
57911         (Include): Include time.h, not time_r.h.
57912         * modules/timegm: Likewise.
57913         * modules/timespec (Description): Now does timespec-related decls
57914         of our own, instead of struct timespec itself.
57915         (Depends-on): Add time; remove extensions.
57916         (Maintainer): Add self.
57917         * modules/utimecmp (Depends-on): Add time; remove timespec.
57918         * modules/utimens (Depends-on): Likewise.
57919         * modules/xnanosleep (Depends-on): Likewise.
57920
57921 2007-02-11  Bruno Haible  <bruno@clisp.org>
57922
57923         * lib/c-strstr.c: Include allocsa.h.
57924         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
57925         * lib/c-strcasestr.c: Include allocsa.h.
57926         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
57927         * lib/strcasestr.c: Include allocsa.h.
57928         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
57929         * lib/mbsstr.c: Include allocsa.h.
57930         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
57931         allocsa/freesa instead of malloc/free.
57932         * lib/mbscasestr.c: Include allocsa.h.
57933         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
57934         allocsa/freesa instead of malloc/free.
57935         * modules/c-strstr (Depends-on): Add allocsa.
57936         * modules/c-strcasestr (Depends-on): Likewise.
57937         * modules/strcasestr (Depends-on): Likewise.
57938         * modules/mbsstr (Depends-on): Likewise.
57939         * modules/mbscasestr (Depends-on): Likewise.
57940
57941 2007-02-11  Bruno Haible  <bruno@clisp.org>
57942
57943         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
57944
57945         * modules/mbsspn-tests: New file.
57946         * tests/test-mbsspn.sh: New file.
57947         * tests/test-mbsspn.c: New file.
57948
57949 2007-02-11  Bruno Haible  <bruno@clisp.org>
57950
57951         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
57952
57953         * modules/mbspbrk-tests: New file.
57954         * tests/test-mbspbrk.sh: New file.
57955         * tests/test-mbspbrk.c: New file.
57956
57957 2007-02-11  Bruno Haible  <bruno@clisp.org>
57958
57959         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
57960         unneeded cast.
57961
57962         * modules/mbscspn-tests: New file.
57963         * tests/test-mbscspn.sh: New file.
57964         * tests/test-mbscspn.c: New file.
57965
57966 2007-02-11  Bruno Haible  <bruno@clisp.org>
57967
57968         * modules/mbscasecmp-tests: New file.
57969         * tests/test-mbscasecmp.sh: New file.
57970         * tests/test-mbscasecmp.c: New file.
57971
57972 2007-02-11  Bruno Haible  <bruno@clisp.org>
57973
57974         Ensure O(n) worst-case complexity of mbscasestr.
57975         * lib/mbscasestr.c: Include stdbool.h.
57976         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
57977         functions.
57978         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
57979         the bookkeeping indicates that it's worth it.
57980         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
57981
57982         * modules/mbscasestr-tests: New file.
57983         * tests/test-mbscasestr1.c: New file.
57984         * tests/test-mbscasestr2.sh: New file.
57985         * tests/test-mbscasestr2.c: New file.
57986         * tests/test-mbscasestr3.sh: New file.
57987         * tests/test-mbscasestr3.c: New file.
57988         * tests/test-mbscasestr4.sh: New file.
57989         * tests/test-mbscasestr4.c: New file.
57990         * m4/locale-tr.m4: New file.
57991
57992 2007-02-11  Bruno Haible  <bruno@clisp.org>
57993
57994         Ensure O(n) worst-case complexity of mbsstr.
57995         * lib/mbsstr.c: Include stdbool.h.
57996         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
57997         functions.
57998         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
57999         bookkeeping indicates that it's worth it.
58000         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
58001
58002         * modules/mbsstr-tests: New file.
58003         * tests/test-mbsstr1.c: New file.
58004         * tests/test-mbsstr2.sh: New file.
58005         * tests/test-mbsstr2.c: New file.
58006         * tests/test-mbsstr3.sh: New file.
58007         * tests/test-mbsstr3.c: New file.
58008         * m4/locale-fr.m4: New file.
58009
58010 2007-02-11  Bruno Haible  <bruno@clisp.org>
58011
58012         * lib/mbsrchr.c (mbsrchr): Fix bug.
58013
58014         * modules/mbsrchr-tests: New file.
58015         * tests/test-mbsrchr.sh: New file.
58016         * tests/test-mbsrchr.c: New file.
58017
58018 2007-02-11  Bruno Haible  <bruno@clisp.org>
58019
58020         * lib/mbschr.c (mbschr): Fix bug.
58021
58022         * modules/mbschr-tests: New file.
58023         * tests/test-mbschr.sh: New file.
58024         * tests/test-mbschr.c: New file.
58025         * m4/locale-zh.m4: New file.
58026
58027 2007-02-11  Bruno Haible  <bruno@clisp.org>
58028
58029         Support for copying multibyte string iterators.
58030         * lib/mbiter.h: Include <string.h>.
58031         (mbiter_multi_copy): New function.
58032         (mbi_copy): New macro.
58033         * lib/mbuiter.h: Include <string.h>.
58034         (mbuiter_multi_copy): New function.
58035         (mbui_copy): New macro.
58036
58037 2007-02-11  Bruno Haible  <bruno@clisp.org>
58038
58039         New module mbslen.
58040         * modules/mbslen: New file.
58041         * lib/mbslen.c: New file.
58042         * lib/string_.h (mbslen): New declaration.
58043         * m4/mbslen.m4: New file.
58044         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58045         GNULIB_MBSLEN.
58046         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
58047         * MODULES.html.sh (Internationalization functions): Add mbslen.
58048
58049 2007-02-11  Bruno Haible  <bruno@clisp.org>
58050
58051         Ensure O(n) worst-case complexity of strcasestr substitute.
58052         * lib/strcasestr.c: Include stdbool.h.
58053         (knuth_morris_pratt): New function.
58054         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
58055         bookkeeping indicates that it's worth it.
58056         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
58057
58058         * modules/strcasestr-tests: New file.
58059         * tests/test-strcasestr.c: New file.
58060
58061 2007-02-11  Bruno Haible  <bruno@clisp.org>
58062
58063         Ensure O(n) worst-case complexity of c_strcasestr.
58064         * lib/c-strcasestr.c: Include stdbool.h, string.h.
58065         (knuth_morris_pratt): New function.
58066         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
58067         the bookkeeping indicates that it's worth it.
58068         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
58069
58070         * modules/c-strcasestr-tests: New file.
58071         * tests/test-c-strcasestr.c: New file.
58072
58073 2007-02-11  Bruno Haible  <bruno@clisp.org>
58074
58075         Ensure O(n) worst-case complexity of c_strstr.
58076         * lib/c-strstr.c: Include stdbool.h, string.h.
58077         (knuth_morris_pratt): New function.
58078         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
58079         bookkeeping indicates that it's worth it.
58080         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
58081
58082         * lib/c-strstr.c: Complete rewrite for maintainability.
58083
58084         * modules/c-strstr-tests: New file.
58085         * tests/test-c-strstr.c: New file.
58086
58087 2007-02-11  Bruno Haible  <bruno@clisp.org>
58088
58089         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
58090         5.2.1 and earlier, whereby \055 was treated just like the range
58091         delimiter '-'.
58092         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
58093
58094 2007-02-08  Bruno Haible  <bruno@clisp.org>
58095
58096         * modules/regex (Depends-on): Add stdbool.
58097         Reported by Dalibor Topic <robilad@kaffe.org>.
58098
58099 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
58100
58101         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
58102         Prefer returning from main to exiting from it.
58103         Remove unnecessary parens after sizeof.
58104
58105 2007-02-05  Bruno Haible  <bruno@clisp.org>
58106
58107         New module mbssep.
58108         * modules/mbssep: New file.
58109         * lib/mbssep.c: New file.
58110         * lib/string_.h (strsep): Add a conditional link warning.
58111         (mbssep): New declaration.
58112         * m4/mbssep.m4: New file.
58113         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58114         GNULIB_MBSSEP.
58115         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
58116         * MODULES.html.sh (Internationalization functions): Add mbssep.
58117
58118 2007-02-05  Bruno Haible  <bruno@clisp.org>
58119
58120         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
58121         Optimize search in case of 1 delimiter.
58122
58123 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
58124
58125         * lib/acl.h: Include sys/types.h before sys/acl.h.
58126
58127 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
58128
58129         Merge upstream fix for glibc bugzilla #3957:
58130
58131         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
58132
58133         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
58134         bit for RE_HAT_LISTS_NOT_NEWLINE.
58135         (build_charclass_op): Remove bogus comment.
58136
58137 2007-02-05  Simon Josefsson  <simon@josefsson.org>
58138
58139         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
58140
58141 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
58142
58143         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
58144         * lib/memmem.c [!defined _LIBC]: Include config.h.
58145
58146 2007-02-04  Bruno Haible  <bruno@clisp.org>
58147
58148         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
58149         warning message.
58150
58151 2007-02-04  Bruno Haible  <bruno@clisp.org>
58152
58153         New module mbstok_r.
58154         * modules/mbstok_r: New file.
58155         * lib/mbstok_r.c: New file.
58156         * lib/string_.h (strtok_r): Change argument names to match the
58157         comments. Add a conditional link warning.
58158         (mbstok_r): New declaration.
58159         * m4/mbstok_r.m4: New file.
58160         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58161         GNULIB_MBSTOK_R.
58162         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
58163         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
58164
58165 2007-02-04  Bruno Haible  <bruno@clisp.org>
58166
58167         New module mbsspn.
58168         * modules/mbsspn: New file.
58169         * lib/mbsspn.c: New file.
58170         * lib/string_.h (strspn): Add a conditional link warning.
58171         (mbsspn): New declaration.
58172         * m4/mbsspn.m4: New file.
58173         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58174         GNULIB_MBSSPN.
58175         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
58176         * MODULES.html.sh (Internationalization functions): Add mbsspn.
58177
58178 2007-02-04  Bruno Haible  <bruno@clisp.org>
58179
58180         New module mbspbrk.
58181         * modules/mbspbrk: New file.
58182         * lib/mbspbrk.c: New file.
58183         * lib/string_.h (strpbrk): Add a conditional link warning.
58184         (mbspbrk): New declaration.
58185         * m4/mbspbrk.m4: New file.
58186         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58187         GNULIB_MBSPBRK.
58188         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
58189         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
58190
58191 2007-02-04  Bruno Haible  <bruno@clisp.org>
58192
58193         New module mbscspn.
58194         * modules/mbscspn: New file.
58195         * lib/mbscspn.c: New file.
58196         * lib/string_.h (strcspn): Add a conditional link warning.
58197         (mbscspn): New declaration.
58198         * m4/mbscspn.m4: New file.
58199         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58200         GNULIB_MBSCSPN.
58201         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
58202         * MODULES.html.sh (Internationalization functions): Add mbscspn.
58203
58204 2007-02-04  Bruno Haible  <bruno@clisp.org>
58205
58206         New module mbscasestr, reduced goal of strcasestr.
58207         * modules/mbscasestr: New file.
58208         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
58209         (mbscasestr): Renamed from strcasestr.
58210         * lib/strcasestr.c: Don't include mbuiter.h.
58211         (strcasestr): Remove support for multibyte locales.
58212         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
58213         Change the conditional link warning.
58214         (mbscasestr): New declaration.
58215         * m4/mbscasestr.m4: New file.
58216         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
58217         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
58218         REPLACE_STRCASESTR.
58219         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
58220         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58221         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
58222         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
58223         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
58224         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
58225         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
58226         (Depends-on): Remove mbuiter.
58227         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
58228
58229 2007-02-04  Bruno Haible  <bruno@clisp.org>
58230
58231         Simplify handling of strncasecmp.
58232         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
58233         the conditional link warning.
58234         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58235         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
58236         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
58237         * modules/strcase (configure.ac): Don't invoke
58238         gl_STRING_MODULE_INDICATOR.
58239         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
58240
58241 2007-02-04  Bruno Haible  <bruno@clisp.org>
58242
58243         New module mbscasecmp, reduced goal of strcasecmp.
58244         * modules/mbscasecmp: New file.
58245         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
58246         (mbscasecmp): Renamed from strcasecmp.
58247         * lib/strcasecmp.c: Don't include mbuiter.h.
58248         (strcasecmp): Remove support for multibyte locales.
58249         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
58250         Change the conditional link warning.
58251         (mbscasecmp): New declaration.
58252         * m4/mbscasecmp.m4: New file.
58253         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
58254         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
58255         REPLACE_STRCASECMP.
58256         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
58257         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58258         GNULIB_MBSCASECMP.
58259         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
58260         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
58261         * modules/strcase (Files): Remove m4/mbrtowc.m4.
58262         (Depends-on): Remove mbuiter.
58263         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
58264
58265 2007-02-04  Bruno Haible  <bruno@clisp.org>
58266
58267         New module mbsstr. Remove module strstr.
58268         * modules/mbsstr: New file.
58269         * modules/strstr: Remove file.
58270         * lib/mbsstr.c: Renamed from lib/strstr.c.
58271         (mbsstr): Renamed from strstr.
58272         * lib/string_.h (strstr): Remove declaration. Change the conditional
58273         link warning.
58274         (mbsstr): New declaration.
58275         * m4/mbsstr.m4: New file.
58276         * m4/strstr.m4: Remove file.
58277         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
58278         REPLACE_STRSTR.
58279         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
58280         Don't initialize GNULIB_STRSTR.
58281         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
58282         substitute GNULIB_STRSTR and REPLACE_STRSTR.
58283         * MODULES.html.sh (Internationalization functions): Add mbsstr.
58284         (Support for systems lacking ANSI C 89): Remove strstr.
58285
58286 2007-02-04  Bruno Haible  <bruno@clisp.org>
58287
58288         New module mbsrchr.
58289         * modules/mbsrchr: New file.
58290         * lib/mbsrchr.c: New file.
58291         * lib/string_.h (strrchr): Add a conditional link warning.
58292         (mbsrchr): New declaration.
58293         * m4/mbsrchr.m4: New file.
58294         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58295         GNULIB_MBSRCHR.
58296         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
58297         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
58298
58299 2007-02-04  Bruno Haible  <bruno@clisp.org>
58300
58301         New module mbschr.
58302         * modules/mbschr: New file.
58303         * lib/mbschr.c: New file.
58304         * lib/string_.h (strchr): Add a conditional link warning.
58305         (mbschr): New declaration.
58306         * m4/mbschr.m4: New file.
58307         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58308         GNULIB_MBSCHR.
58309         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
58310         * MODULES.html.sh (Internationalization functions): Add mbschr.
58311
58312 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
58313
58314         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
58315
58316         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
58317
58318 2007-02-04  Bruno Haible  <bruno@clisp.org>
58319
58320         New module description section 'configure.ac-early'.
58321         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
58322         (func_get_autoconf_early_snippet): New function.
58323         (func_import, func_create_testdir): Use it. Remove special cases for
58324         modules 'extensions' and 'lock'.
58325         * modules/extensions (configure.ac-early): Require
58326         gl_USE_SYSTEM_EXTENSIONS.
58327         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
58328
58329 2007-02-04  Bruno Haible  <bruno@clisp.org>
58330
58331         Make use of gcj-4.3's -fsource and -ftarget option.
58332         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
58333         and if so try the options -fsource and -ftarget.
58334         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
58335         source_version, ftarget_option, target_version arguments.
58336         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
58337         (is_envjavac_oldgcj_14_14_usable): Renamed from
58338         is_envjavac_gcj_14_14_usable.
58339         (is_envjavac_oldgcj_14_13_usable): Renamed from
58340         is_envjavac_gcj_14_13_usable.
58341         (is_gcj_present): Update.
58342         (is_gcj_43, is_gcj43_usable): New functions.
58343         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
58344         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
58345         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
58346         try the options -fsource and -ftarget.
58347
58348 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
58349
58350         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
58351         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
58352         larger value.
58353
58354 2007-02-03  Jim Meyering  <jim@meyering.net>
58355
58356         Give tools a better chance to allocate space for very large buffers.
58357         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
58358
58359         Make pwd and readlink work also when run with an unreadable parent dir
58360         on systems with openat support.
58361         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
58362         provided getcwd function, even when we have openat support.
58363         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
58364
58365 2007-02-02  Bruno Haible  <bruno@clisp.org>
58366
58367         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
58368         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
58369         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
58370         portability problems if one of these functions is only used on specific
58371         platforms.
58372         Reported by Paul Eggert.
58373
58374 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
58375
58376         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
58377         is causing more trouble than it's curing.
58378         * lib/regex_internal.h (__mempcpy): Remove.
58379         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
58380         (and make the code a tad smaller to boot).
58381         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
58382
58383 2007-02-02  Jim Meyering  <jim@meyering.net>
58384
58385         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
58386         section, not in the Makefile.am: one.
58387
58388 2007-02-02  Eric Blake  <ebb9@byu.net>
58389
58390         * lib/strchrnul.c: Always include config.h first.
58391
58392         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
58393         gnulib strstr is not necessary here.
58394
58395 2007-02-02  Simon Josefsson  <simon@josefsson.org>
58396
58397         * m4/socklen.m4: Fix typo.
58398
58399 2007-02-02  Eric Blake  <ebb9@byu.net>
58400
58401         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
58402         * modules/netinet_in (Makefile.am): Likewise.
58403
58404 2007-02-01  Bruno Haible  <bruno@clisp.org>
58405
58406         * lib/string_.h (GL_LINK_WARNING): New macro.
58407         (strcasecmp, strstr, strcasestr): If provided by the system,
58408         conditionally define as a macro that leads to a warning instead of to
58409         an error.
58410         (strncasecmp): Conditionally define as a macro that leads to a warning.
58411
58412 2007-02-01  Karl Berry  <karl@gnu.org>
58413
58414         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
58415
58416 2007-02-01  Bruno Haible  <bruno@clisp.org>
58417
58418         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
58419         renamings.
58420
58421 2007-02-01  Eric Blake  <ebb9@byu.net>
58422
58423         * modules/regex (Depends-on): Revert dependence on mempcpy.
58424         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
58425         module's definition of mempcpy.
58426         Reported by Paul Eggert.
58427
58428 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
58429
58430         * lib/string_.h: If the gnulib module XYZ is not present, undefine
58431         the symbol XYZ before redefining it.  This fixes a problem with
58432         programs that don't use XYZ, when compiled on systems that define
58433         XYZ to something else.
58434
58435 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
58436
58437         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
58438         occurs when "mkdir -m foo" creates a setgid directory that is (1)
58439         writeable to group or other and (2) is intended to have a special
58440         mode bit that is set or cleared.  In such a case, the directory
58441         should be neither group- nor other-writeable until the special
58442         mode bits are right.
58443
58444 2007-01-31  Eric Blake  <ebb9@byu.net>
58445
58446         * modules/mountlist (Depends-on): Add strstr.
58447
58448         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
58449         bug.
58450         * modules/string (Makefile.am): Remove redundant replacement.
58451         * modules/regex (Depends-on): Add mempcpy.
58452
58453 2007-01-31  Bruno Haible  <bruno@clisp.org>
58454
58455         New module description field 'Link'.
58456         * gnulib-tool (func_usage): Document --extract-link-directive.
58457         (sed_extract_prog): Recognize 'Link' directive.
58458         (func_get_link_directive): New function.
58459         (func_import): Show summary of link directives.
58460         Handle --extract-link-directive option.
58461         * modules/acl (Link): New section.
58462         * modules/clock-time (Link): New section.
58463         * modules/euidaccess (Link): New section.
58464         * modules/gettext (Link): New section.
58465         * modules/iconv (Link): New section.
58466         * modules/lock (Link): New section.
58467         * modules/nanosleep (Link): New section.
58468         * modules/readline (Link): New section.
58469
58470 2007-01-27  Bruno Haible  <bruno@clisp.org>
58471
58472         Enforce the use of gnulib modules for unportable <string.h> functions.
58473         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
58474         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
58475         (gl_HEADER_STRING_H_BODY): Require it.
58476         * lib/string_.h: If the gnulib module XYZ is not present, redefine
58477         the symbol XYZ to one that gives a link error.
58478         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
58479         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
58480         * modules/mempcpy (configure.ac): Likewise.
58481         * modules/memrchr (configure.ac): Likewise.
58482         * modules/stpcpy (configure.ac): Likewise.
58483         * modules/stpncpy (configure.ac): Likewise.
58484         * modules/strcase (configure.ac): Likewise.
58485         * modules/strcasestr (configure.ac): Likewise.
58486         * modules/strchrnul (configure.ac): Likewise.
58487         * modules/strdup (configure.ac): Likewise.
58488         * modules/strndup (configure.ac): Likewise.
58489         * modules/strnlen (configure.ac): Likewise.
58490         * modules/strpbrk (configure.ac): Likewise.
58491         * modules/strsep (configure.ac): Likewise.
58492         * modules/strstr (configure.ac): Likewise.
58493         * modules/strtok_r (configure.ac): Likewise.
58494
58495 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
58496
58497         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
58498
58499 2007-01-30  Jim Meyering  <jim@meyering.net>
58500
58501         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
58502
58503 2007-01-29  Bruno Haible  <bruno@clisp.org>
58504
58505         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
58506         * lib/execute.c: Likewise.
58507         * lib/pipe.c: Likewise.
58508         * lib/printf-args.h: Likewise.
58509         * lib/printf-args.c: Likewise.
58510         * lib/printf-parse.c: Likewise.
58511         * lib/vasnprintf.c: Likewise.
58512
58513 2007-01-29  Eric Blake  <ebb9@byu.net>
58514
58515         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
58516         declaration.
58517
58518 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
58519
58520         * lib/strptime.h (strptime): Use 'restrict' for args where
58521         POSIX requires this.
58522         * lib/strptime.c (strptime): Likewise.
58523         Change license notice from LGPL to GPL, since gnulib-tool will
58524         change this as needed.
58525         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
58526         defined.
58527         Include "strptime.h" first, to check interface.
58528         Do not #undef _LIBC and _NL_CURRENT.
58529         Do not include <stdlib.h>; no longer needed.
58530         Include "time_r.h" and declare ptime_locale_status
58531         only if _LIBC is not defined.
58532         (__P): Remove unused macro.
58533         (match_string): Bring back glibc version, but use it only if _LIBC
58534         is defined.
58535         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
58536         Remove unnecessary assertion and abort() call.
58537         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
58538         * m4/strptime.m4: Fix serial number comment.
58539         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
58540         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
58541         (Depends-on): Add time_r.
58542
58543 2007-01-29  Bruno Haible  <bruno@clisp.org>
58544
58545         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58546         strptime.
58547         * modules/strptime (Depends-on): Add stdbool.
58548         * lib/strptime.h: Include <time.h> always. Add comments.
58549
58550 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
58551
58552         * modules/strptime: New file.
58553         * lib/strptime.h: New file.
58554         * lib/strptime.c: New file.
58555         * m4/strptime.m4: New file.
58556
58557 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
58558
58559         * MODULES.html.sh: New module mpsort.
58560         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
58561
58562         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
58563         a circularity problem with HP-UX ia64 reported by Bob Proulx in
58564         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
58565         All uses changed.
58566         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
58567         All uses changed.
58568         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
58569         to _Restrict_.
58570         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
58571         the parameter matches the prototype.
58572
58573 2007-01-28  Jim Meyering  <jim@meyering.net>
58574
58575         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
58576         sys/time.h here, reverting that part of the previous patch:
58577         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
58578
58579 2007-01-28  Bruno Haible  <bruno@clisp.org>
58580
58581         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
58582         value of $(SYS_TIME_H).
58583         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
58584         remove it conditionally, too. [added by Jim Meyering]
58585         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
58586         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
58587         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
58588         GETTIMEOFDAY_REPLACEMENT to 1.
58589
58590 2007-01-28  Bruno Haible  <bruno@clisp.org>
58591
58592         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
58593         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
58594         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
58595         Set UNISTD_H instead of UNISTD_H2.
58596         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
58597
58598 2007-01-28  Bruno Haible  <bruno@clisp.org>
58599
58600         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
58601         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
58602
58603 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58604
58605         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
58606         (func_create_testdir): Ensure C locale for `grep' and `tr'
58607         character ranges.
58608         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
58609         ACLOCAL_AMFLAGS parsing state machine.
58610
58611 2007-01-27  Bruno Haible  <bruno@clisp.org>
58612
58613         * modules/unistr/base: Update.
58614
58615 2007-01-27  Bruno Haible  <bruno@clisp.org>
58616
58617         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
58618         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
58619         * modules/unistr/u32-mbtouc-unsafe: Renamed from
58620         modules/unistr/u32-mbtouc.
58621         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
58622         * lib/unistr.h: Update.
58623         * lib/linebreak.c: Update.
58624         * modules/unistr/u32-mbtouc: Renamed from
58625         modules/unistr/u32-mbtouc-safe.
58626         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
58627         * lib/unistr.h: Update.
58628         * lib/unistr/u32-to-u8.c: Update.
58629         * lib/unistr/u32-to-u16.c: Update.
58630
58631 2007-01-27  Bruno Haible  <bruno@clisp.org>
58632
58633         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
58634         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
58635         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
58636         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
58637         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
58638         * modules/unistr/u16-mbtouc-unsafe: Renamed from
58639         modules/unistr/u16-mbtouc.
58640         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
58641         * lib/unistr.h: Update.
58642         * lib/linebreak.c: Update.
58643         * modules/linebreak: Update.
58644         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
58645         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
58646         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
58647         * modules/unistr/u16-mbtouc: Renamed from
58648         modules/unistr/u16-mbtouc-safe.
58649         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
58650         * lib/unistr.h: Update.
58651         * lib/unistr/u16-to-u8.c: Update.
58652         * modules/unistr/u16-to-u8: Update.
58653         * lib/unistr/u16-to-u32.c: Update.
58654         * modules/unistr/u16-to-u32: Update.
58655
58656 2007-01-27  Bruno Haible  <bruno@clisp.org>
58657
58658         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
58659         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
58660         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
58661         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
58662         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
58663         * modules/unistr/u8-mbtouc-unsafe: Renamed from
58664         modules/unistr/u8-mbtouc.
58665         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
58666         * lib/unistr.h: Update.
58667         * lib/striconveh.c: Update.
58668         * modules/striconveh: Update.
58669         * lib/linebreak.c: Update.
58670         * modules/linebreak: Update.
58671         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
58672         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
58673         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
58674         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
58675         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
58676         * lib/unistr.h: Update.
58677         * lib/striconveh.c: Update.
58678         * modules/striconveh: Update.
58679         * lib/unistr/u8-to-u16.c: Update.
58680         * modules/unistr/u8-to-u16: Update.
58681         * lib/unistr/u8-to-u32.c: Update.
58682         * modules/unistr/u8-to-u32: Update.
58683
58684 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58685
58686         Sync from Libtool.
58687         * lib/argz.c: Do not include strings.h nor memory.h, include
58688         string.h unconditionally.  Patch by Simon Josefsson.
58689
58690 2007-01-27  Bruno Haible  <bruno@clisp.org>
58691
58692         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
58693         from gl_HEADER_STRING_H_BODY.
58694         (gl_HEADER_STRING_H_BODY): Require it.
58695         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
58696         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
58697         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
58698         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
58699         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
58700         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
58701         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58702         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
58703         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
58704         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
58705         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
58706         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
58707         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
58708         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
58709         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
58710
58711 2007-01-27  Bruno Haible  <bruno@clisp.org>
58712
58713         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
58714         check_PROGRAMS into noinst_PROGRAMS.
58715         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
58716         check_PROGRAMS in this case.
58717         (func_import): Set for_test to false.
58718         (func_create_testdir): Set for_test to true.
58719
58720 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
58721             Bruno Haible  <bruno@clisp.org>
58722
58723         * modules/strcasestr (Files): Remove lib/strcasestr.h.
58724         (Depends-on): Add string.
58725         (Includes): Use <string.h> instead of strcasestr.h.
58726         * modules/string (Makefile.am): Also substitute the value of
58727         REPLACE_STRCASESTR.
58728         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
58729         assume strcasestr is declared in <string.h> not <strings.h>. Also
58730         set REPLACE_STRCASESTR.
58731         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
58732         REPLACE_STRCASESTR.
58733         * lib/strcasestr.h: Remove file.
58734         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
58735         * lib/string_.h (strcasestr): New declaration.
58736
58737 2007-01-27  Bruno Haible  <bruno@clisp.org>
58738
58739         * lib/string_.h: Use 'extern'.
58740
58741 2007-01-27  Jim Meyering  <jim@meyering.net>
58742
58743         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
58744         of set-but-not-used local, "q".
58745
58746         * lib/mempcpy.c: Include <config.h> before <string.h>.
58747         This fixes a compilation error on HP-UX, due to the system's
58748         "restrict"-using mempcpy prototype.
58749
58750 2007-01-26  Bruno Haible  <bruno@clisp.org>
58751
58752         Small optimization.
58753         * lib/javacomp.c: Include c-strstr.h.
58754          (is_envjavac_gcj): Use c_strstr instead of strstr.
58755         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
58756
58757 2007-01-26  Bruno Haible  <bruno@clisp.org>
58758
58759         * MODULES.html.sh (Unicode string functions): Add the new modules.
58760
58761         * modules/uniconv/u32-strconv-to-locale: New file.
58762         * lib/uniconv/u32-strconv-to-locale.c: New file.
58763
58764         * modules/uniconv/u16-strconv-to-locale: New file.
58765         * lib/uniconv/u16-strconv-to-locale.c: New file.
58766
58767         * modules/uniconv/u8-strconv-to-locale: New file.
58768         * lib/uniconv/u8-strconv-to-locale.c: New file.
58769
58770         * modules/uniconv/u32-strconv-from-locale: New file.
58771         * lib/uniconv/u32-strconv-from-locale.c: New file.
58772
58773         * modules/uniconv/u16-strconv-from-locale: New file.
58774         * lib/uniconv/u16-strconv-from-locale.c: New file.
58775
58776         * modules/uniconv/u8-strconv-from-locale: New file.
58777         * lib/uniconv/u8-strconv-from-locale.c: New file.
58778
58779         * modules/uniconv/u32-strconv-to-enc: New file.
58780         * lib/uniconv/u32-strconv-to-enc.c: New file.
58781         * modules/uniconv/u32-strconv-to-enc-tests: New file.
58782         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
58783
58784         * modules/uniconv/u16-strconv-to-enc: New file.
58785         * lib/uniconv/u16-strconv-to-enc.c: New file.
58786         * lib/uniconv/u-strconv-to-enc.h: New file.
58787         * modules/uniconv/u16-strconv-to-enc-tests: New file.
58788         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
58789
58790         * modules/uniconv/u8-strconv-to-enc: New file.
58791         * lib/uniconv/u8-strconv-to-enc.c: New file.
58792         * modules/uniconv/u8-strconv-to-enc-tests: New file.
58793         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
58794
58795         * modules/uniconv/u32-strconv-from-enc: New file.
58796         * lib/uniconv/u32-strconv-from-enc.c: New file.
58797         * modules/uniconv/u32-strconv-from-enc-tests: New file.
58798         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
58799
58800         * modules/uniconv/u16-strconv-from-enc: New file.
58801         * lib/uniconv/u16-strconv-from-enc.c: New file.
58802         * modules/uniconv/u16-strconv-from-enc-tests: New file.
58803         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
58804
58805         * modules/uniconv/u8-strconv-from-enc: New file.
58806         * lib/uniconv/u8-strconv-from-enc.c: New file.
58807         * lib/uniconv/u-strconv-from-enc.h: New file.
58808         * modules/uniconv/u8-strconv-from-enc-tests: New file.
58809         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
58810
58811         * modules/uniconv/u32-conv-from-enc: New file.
58812         * lib/uniconv/u32-conv-from-enc.c: New file.
58813         * modules/uniconv/u32-conv-from-enc-tests: New file.
58814         * tests/uniconv/test-u32-conv-from-enc.c: New file.
58815
58816         * modules/uniconv/u16-conv-from-enc: New file.
58817         * lib/uniconv/u16-conv-from-enc.c: New file.
58818         * lib/uniconv/u-conv-from-enc.h: New file.
58819         * modules/uniconv/u16-conv-from-enc-tests: New file.
58820         * tests/uniconv/test-u16-conv-from-enc.c: New file.
58821
58822         * modules/uniconv/u8-conv-from-enc: New file.
58823         * lib/uniconv/u8-conv-from-enc.c: New file.
58824         * modules/uniconv/u8-conv-from-enc-tests: New file.
58825         * tests/uniconv/test-u8-conv-from-enc.c: New file.
58826
58827         * modules/uniconv/base: New file.
58828         * lib/uniconv.h: New file.
58829
58830 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
58831
58832         * doc/gnulib-tool.texi (Initial import): Update to match current
58833         behavior with strdup module.
58834         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
58835         * lib/memmem.h: Remove; all uses removed.  This is now done
58836         by <string.h>.
58837         * lib/mempcpy.h: Likewise.
58838         * lib/memrchr.h: Likewise.
58839         * lib/stpcpy.h: Likewise.
58840         * lib/stpncpy.h: Likewise.
58841         * lib/strcase.h: Likewise.
58842         * lib/strchrnul.h: Likewise.
58843         * lib/strdup.h: Likewise.
58844         * lib/strndup.h: Likewise.
58845         * lib/strnlen.h: Likewise.
58846         * lib/strpbrk.h: Likewise.
58847         * lib/strsep.h: Likewise.
58848         * lib/strstr.h: Likewise.
58849         * lib/strtok_r.h: Likewise.
58850         * lib/string_.h: New file.
58851         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
58852         Rely on <string.h> instead.
58853         * lib/canon-host.c: Likewise.
58854         * lib/chdir-long.c: Likewise.
58855         * lib/concatpath.c: Likewise.
58856         * lib/exclude.c: Likewise.
58857         * lib/fchdir.c: Likewise.
58858         * lib/getaddrinfo.c: Likewise.
58859         * lib/getcwd.c: Likewise.
58860         * lib/getsubopt.c: Likewise.
58861         * lib/glob.c: Likewise.
58862         * lib/hard-locale.c: Likewise.
58863         * lib/iconvme.c: Likewise.
58864         * lib/javacomp.c: Likewise.
58865         * lib/mempcpy.c: Likewise.
58866         * lib/memrchr.c: Likewise.
58867         * lib/regex_internal.h: Likewise.
58868         * lib/stpncpy.c: Likewise.
58869         * lib/strcasecmp.c: Likewise.
58870         * lib/strchrnul.c: Likewise.
58871         * lib/strdup.c: Likewise.
58872         * lib/striconv.c: Likewise.
58873         * lib/striconveh.c: Likewise.
58874         * lib/striconveha.c: Likewise.
58875         * lib/strncasecmp.c: Likewise.
58876         * lib/strndup.c: Likewise.
58877         * lib/strnlen.c: Likewise.
58878         * lib/strsep.c: Likewise.
58879         * lib/strstr.c: Likewise.
58880         * lib/strtok_r.c: Likewise.
58881         * lib/userspec.c: Likewise.
58882         * lib/w32spawn.h: Likewise.
58883         * lib/xstrndup.c: Likewise.
58884         * lib/mountlist.c (strstr): Remove decl.
58885         * m4/string_h.m4: New file.
58886         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
58887         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
58888         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
58889         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
58890         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
58891         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
58892         Set REPLACE_STRCASECMP if necessary.
58893         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
58894         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
58895         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
58896         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
58897         HAVE_DECL_STRDUP if necessary.
58898         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
58899         since gl_FUNC_STRNDUP does that now.
58900         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
58901         Check for decl here...
58902         (gl_PREREQ_STRNLEN): ... not here.
58903         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
58904         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
58905         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
58906         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
58907         necessary.
58908         * modules/string: New file.
58909         * modules/memmem (Files): Remove special-purpose include file.
58910         (Depends-on): Add string.
58911         (Include): Include <string.h>, not the removed file.
58912         * modules/mempcpy: Likewise.
58913         * modules/memrchr: Likewise.
58914         * modules/stpcpy: Likewise.
58915         * modules/stpncpy: Likewise.
58916         * modules/strcase: Likewise.
58917         * modules/strchrnul: Likewise.
58918         * modules/strdup: Likewise.
58919         * modules/strndup: Likewise.
58920         * modules/strnlen: Likewise.
58921         * modules/strpbrk: Likewise.
58922         * modules/strsep: Likewise.
58923         * modules/strstr: Likewise.
58924         * modules/strtok_r: Likewise.
58925         * tests/test-dirname.c: Don't include "strdup.h", since
58926         <string.h> now suffices.
58927         * tests/test-memmem.c: Don't include "memmem.h", since
58928         <string.h> now suffices.
58929
58930 2007-01-25  Bruno Haible  <bruno@clisp.org>
58931
58932         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
58933         *resultp is 0.
58934
58935         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
58936         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
58937         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
58938         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
58939
58940         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
58941         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
58942         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
58943         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
58944         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
58945         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
58946
58947 2007-01-24  Bruno Haible  <bruno@clisp.org>
58948
58949         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
58950         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
58951         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
58952         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
58953         gl_FUNC_FTS_CORE.
58954         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
58955         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
58956         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
58957         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
58958         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
58959         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
58960         gl_FUNC_FCHOWNAT.
58961         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
58962         gl_FUNC_STRFTIME.
58963         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
58964         Reported by Ralf Wildenhues.
58965
58966 2007-01-24  Bruno Haible  <bruno@clisp.org>
58967
58968         Drop AC_REQUIRE calls that are redundant with the module dependencies.
58969         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
58970         gl_GETADDRINFO.
58971         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
58972         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
58973         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
58974
58975 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
58976
58977         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
58978         Don't use 'exit'; just return from 'main'.
58979         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
58980
58981         * lib/fnmatch_.h: Readjust white space and comments to match
58982         glibc, to avoid spurious diffs.
58983
58984 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
58985
58986         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
58987         2004-12-01 change by Jakub Jelinek, since this code won't compile
58988         if !LIBC.  Problem reported by Bob Proulx.
58989
58990 2007-01-23  Bruno Haible  <bruno@clisp.org>
58991
58992         * lib/striconveh.c: Include c-strcaseeq.h.
58993         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
58994         * modules/striconveh (Depends-on): Add c-strcaseeq.
58995
58996 2007-01-23  Bruno Haible  <bruno@clisp.org>
58997
58998         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
58999
59000         * modules/c-strcaseeq: New file.
59001         * lib/c-strcaseeq.h: New file.
59002
59003         * modules/streq: New file.
59004         * lib/streq.h: New file.
59005
59006 2007-01-23  Bruno Haible  <bruno@clisp.org>
59007
59008         * modules/striconveha-tests: New file.
59009         * tests/test-striconveha.c: New file.
59010
59011         * lib/striconveha.h: Include <stdbool.h>.
59012         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
59013         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
59014         (mem_iconveha_notranslit): Renamed from mem_iconveha.
59015         (mem_iconveha): New function.
59016         (str_iconveha_notranslit): Renamed from str_iconveha.
59017         (str_iconveha): New function.
59018         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
59019         c-strcase.
59020
59021 2007-01-23  Bruno Haible  <bruno@clisp.org>
59022
59023         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
59024         encodings without forgiving before trying any encoding with handler.
59025         (str_iconveha): Try all encodings without forgiving before trying any
59026         encoding with handler.
59027
59028 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
59029
59030         Import the following changes from libc.
59031
59032         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
59033
59034         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
59035
59036         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
59037
59038         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
59039         normal_bracket label.
59040
59041         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
59042
59043         [BZ #361]
59044         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
59045         to normal_bracket after fetching the next character.
59046
59047 2007-01-22  Bruno Haible  <bruno@clisp.org>
59048
59049         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
59050         argument.
59051         * lib/striconveh.c (iconv_carefully_1): New function.
59052         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
59053         argument.
59054         (str_cd_iconveh): Update.
59055         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
59056         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
59057         * tests/test-striconveh.c (MAGIC): New macro.
59058         (new_offsets): New function.
59059         (main): Test call with and without offsets.
59060
59061 2007-01-22  Bruno Haible  <bruno@clisp.org>
59062
59063         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
59064         * modules/sys_select (Makefile.am): Likewise.
59065         * modules/sys_socket (Makefile.am): Likewise.
59066         * modules/sys_time (Makefile.am): Likewise.
59067
59068 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
59069
59070         * modules/gettimeofday (License): Change from GPL to LGPL, since
59071         gettimeofday is a library function.
59072
59073 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59074
59075         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
59076
59077 2007-01-21  Bruno Haible  <bruno@clisp.org>
59078
59079         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
59080
59081 2007-01-21  Bruno Haible  <bruno@clisp.org>
59082
59083         * modules/striconveha: New file.
59084         * lib/striconveha.h: New file.
59085         * lib/striconveha.c: New file.
59086         * MODULES.html.sh (Internationalization functions): Add striconveha.
59087         * lib/striconv.c (str_iconv): Optimize the case of an empty input
59088         string.
59089         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
59090
59091 2007-01-21  Bruno Haible  <bruno@clisp.org>
59092
59093         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
59094         * lib/striconveh.c (str_iconveh): Likewise.
59095
59096 2007-01-21  Bruno Haible  <bruno@clisp.org>
59097
59098         * lib/striconveh.h (mem_iconveh): New declaration.
59099         * lib/striconveh.c (mem_iconveh): New function.
59100         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
59101
59102 2007-01-21  Bruno Haible  <bruno@clisp.org>
59103
59104         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
59105
59106         * lib/striconveh.h (mem_cd_iconveh): Change specification.
59107         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
59108         original result buffer.
59109         (str_cd_iconveh): Update.
59110         * tests/test-striconveh.c (main): Update.
59111
59112         * lib/striconv.h (mem_cd_iconv): Change specification.
59113         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
59114         result buffer.
59115         (str_cd_iconv): Update.
59116         * tests/test-striconv.c (main): Update.
59117
59118 2007-01-21  Bruno Haible  <bruno@clisp.org>
59119
59120         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
59121
59122 2007-01-20  Jim Meyering  <jim@meyering.net>
59123
59124         * lib/userspec.c (parse_with_separator): If a user or group string
59125         starts with "+", skip the corresponding name-to-ID look-up, since
59126         such a look-up must fail: user and group names may not include "+".
59127
59128 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
59129
59130         * lib/poll.c: Include sys/time.h and time.h unconditionally,
59131         since we now assume the sys_time module.
59132         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
59133         check for sys/time.h; no longer needed.
59134         * modules/poll (Depends-on): Depend on sys_time.
59135
59136 2007-01-18  Bruno Haible  <bruno@clisp.org>
59137
59138         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
59139         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
59140
59141         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
59142         gettimeofday.
59143
59144         * tests/test-gettimeofday.c: Include <time.h>.
59145         (dummy): Remove variable.
59146
59147         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
59148         gl_HEADER_SYS_TIME_H.
59149         (gl_HEADER_SYS_TIME_H): New macro.
59150
59151         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
59152         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
59153         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
59154         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
59155         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
59156         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
59157         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
59158         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
59159         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
59160         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
59161         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
59162
59163         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
59164         last change; it caused a compilation error when cross-compiling to
59165         Cygwin.
59166
59167 2007-01-18  Jim Meyering  <jim@meyering.net>
59168
59169         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
59170         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
59171         than the race-prone "test -d sys || mkdir sys".
59172         (configure.ac): Use AC_PROG_MKDIR_P.
59173         * modules/sys_select: Likewise.
59174         * modules/sys_socket: Likewise.
59175         * modules/sys_time: Likewise.
59176
59177 2007-01-18  Eric Blake  <ebb9@byu.net>
59178
59179         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
59180         replace gettimeofday.
59181         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
59182         name, to avoid infinite recursion.
59183
59184 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
59185
59186         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
59187         module sys_time.
59188         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
59189         assume timespec.h defines struct timeval.
59190         * lib/settime.c: Likewise.
59191         * lib/utimens.c: Likewise.
59192         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
59193         since we now assume the gettimeofday module.
59194         * lib/tempname.c (__gen_tempname): Likewise.
59195         * lib/gettimeofday.h: Remove.
59196         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
59197         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
59198         Include <time.h>, for 'time()'.
59199         (localtime_buffer_addr): Also use this workaround if
59200         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
59201         to simplify the uses.  All uses changed.
59202         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
59203         that #undef is inside {}, and 'const' follows type name consistently.
59204         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
59205         (gettimeofday): Do not use the maximum possible value for
59206         tv->tv_usec, since that might break usages other than ls.c.
59207         Instead, we'll leave ls.c alone.  This undoes today's patch
59208         by Bruno.  Add a compile-time warning for 1s-clock resolution;
59209         we've never observed the problem but might as well keep the
59210         canary.
59211         * lib/nanosleep.c: Include timespec.h first, for interface check.
59212         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
59213         now assume the sys_time module.
59214         * lib/tempname.c: Likewise.
59215         * lib/timespec.h: Likewise.
59216         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
59217         needed.
59218         * lib/strftime.c: Likewise.
59219         * lib/timespec.h: Likewise.
59220         * lib/posixtm.c: Include posixtm.h first, for interface check.
59221         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
59222         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
59223         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
59224         * lib/sys_time_.h: New file.
59225         * lib/timespec.h (struct timespec): Use long int, not long.
59226         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
59227         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
59228         Remove obsolescent call to AC_HEADER_TIME.
59229         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
59230         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
59231         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
59232         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
59233         Likewise.
59234         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
59235         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
59236         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
59237         into the sys_time module.  Check for gettimeofday just once.
59238         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
59239         for gettimeofday signature to just check the signature.  Merely
59240         compile it, since linking doesn't test signature.  Improve test for
59241         whether gettimeofday.o is actually needed.
59242         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
59243         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
59244         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
59245         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
59246         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
59247         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
59248         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
59249         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
59250         than worrying about sys/time.h.
59251         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
59252         Don't bother worrying about TIME_WITH_SYS_TIME.
59253         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
59254         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
59255         * m4/sys_time_h.m4: New file.
59256         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
59257         Don't include sys/time.h.  Return from main rather than exiting.
59258         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
59259         all uses changed.
59260         * modules/gethrxtime (Depends-on): Add sys_time.
59261         * modules/gettime (Depends-on): Likewise.
59262         * modules/gettimeofday (Depends-on): Likewise.
59263         * modules/nanosleep (Depends-on): Likewise.
59264         * modules/settime (Depends-on): Likewise.
59265         * modules/tempname (Depends-on): Likewise.
59266         * modules/utimens (Depends-on): Likewise.
59267         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
59268         (Include): Change back to <sys/time.h>.
59269         (Maintainer): Add self.
59270         * modules/sys_time: New file.
59271         * modules/tempname (Depends-on): Add gettimeofday.
59272         * tests/test-gettimeofday.c: Include <sys/time.h>
59273         rather than gettimeofday.h.
59274
59275 2007-01-17  Bruno Haible  <bruno@clisp.org>
59276
59277         * gnulib-tool (func_get_license): Revert last patch. Instead, let
59278         the license default to GPL.
59279         (func_create_testdir): Don't complain if a module is LGPL and its
59280         tests module depends on GPLed modules.
59281
59282 2007-01-17  Bruno Haible  <bruno@clisp.org>
59283
59284         * lib/gettimeofday.c (gettimeofday): Add code for the case
59285         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
59286         maximum possible value for tv->tv_usec, rather than the minimum one.
59287
59288 2005-10-08  Martin Lambers  <marlam@marlam.de>
59289 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
59290 2007-01-16  Bruno Haible  <bruno@clisp.org>
59291
59292         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
59293         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
59294         gl_FUNC_GETTIMEOFDAY.
59295         (Include): Add gettimeofday.h.
59296         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
59297         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
59298         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
59299         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
59300         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
59301         * lib/gettimeofday.h: New file.
59302         * lib/gettimeofday.c: Include <sys/timeb.h>.
59303         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
59304         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
59305         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
59306         fall back on time().
59307
59308         * tests/test-gettimeofday.c: New file.
59309         * modules/gettimeofday-tests: New file.
59310
59311 2007-01-16  Eric Blake  <ebb9@byu.net>
59312
59313         * modules/fnmatch (Depends-on): Depend on wchar.
59314         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
59315         * m4/fnmatch.m4: Likewise.
59316         * modules/mbchar (Makefile.am): Assume <wchar.h>.
59317         * m4/mbchar.m4: Likewise.
59318         * modules/mbswidth (Depends-on): Depend on wchar.
59319         * lib/mbswidth.c: Assume <wchar.h>.
59320         * m4/mbswidth.m4: Likewise.
59321         * modules/quotearg (Depends-on): Depend on wchar.
59322         * lib/quotearg.c: Assume <wchar.h>.
59323         * m4/quotearg.m4: Likewise.
59324         * modules/regex (Depends-on): Depend on wchar.
59325         * lib/regex_internal.h: Assume <wchar.h>.
59326         * m4/regex.m4: Likewise.
59327         * modules/stdint (Depends-on): Depend on wchar.
59328         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
59329         * m4/stdint.m4: Likewise.
59330         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
59331         * modules/strftime (Depends-on): Depend on wchar.
59332         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
59333         * modules/strtol (Depends-on): Depend on wchar.
59334         * lib/strtol.c: Assume <wchar.h>.
59335         * modules/wcwidth (Depends-on): Depend on wchar.
59336         * lib/wcwidth.h: Assume <wchar.h>.
59337         * m4/wcwidth.m4: Likewise.
59338
59339 2007-01-16  Bruno Haible  <bruno@clisp.org>
59340
59341         * modules/csharpexec-script: New, created from...
59342         * modules/csharpexec: ... this.
59343
59344 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
59345
59346         * modules/javaexec-script: New, created from...
59347         * modules/javaexec: ... this.
59348
59349 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59350
59351         * modules/poll (Dependencies): Add sys_select.
59352
59353 2007-01-15  Jim Meyering  <jim@meyering.net>
59354
59355         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
59356         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
59357         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
59358         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
59359
59360 2007-01-15  Bruno Haible  <bruno@clisp.org>
59361
59362         * modules/striconveh: New file.
59363         * lib/striconveh.h: New file.
59364         * lib/striconveh.c: New file.
59365         * MODULES.html.sh (Internationalization functions): Add striconveh.
59366
59367         * modules/striconveh-tests: New file.
59368         * tests/test-striconveh.c: New file.
59369
59370 2007-01-15  Bruno Haible  <bruno@clisp.org>
59371
59372         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
59373         not from GNU libiconv or GNU libc.
59374
59375 2007-01-15  Bruno Haible  <bruno@clisp.org>
59376
59377         * doc/gnulib-intro.texi (Copyright): Explain the different license
59378         terms for module descriptions, autoconf macros, tests, documentation.
59379
59380 2007-01-14  Bruno Haible  <bruno@clisp.org>
59381
59382         * modules/striconv-tests: New file.
59383         * tests/test-striconv.c: New file.
59384
59385 2007-01-14  Bruno Haible  <bruno@clisp.org>
59386
59387         * modules/iconv-tests: New file.
59388         * tests/test-iconv.c: New file.
59389
59390 2007-01-14  Bruno Haible  <bruno@clisp.org>
59391
59392         * gnulib-tool (func_get_license): For test modules, use the license of
59393         the main module.
59394
59395 2007-01-14  Bruno Haible  <bruno@clisp.org>
59396
59397         * modules/iconv (Include): Clarify that <iconv.h> can only be included
59398         if iconv is found to exist.
59399
59400 2007-01-14  Bruno Haible  <bruno@clisp.org>
59401
59402         * modules/c-ctype-tests: New file.
59403         * tests/test-c-ctype.c: New file.
59404
59405 2007-01-14  Bruno Haible  <bruno@clisp.org>
59406
59407         * modules/binary-io-tests: New file.
59408         * tests/test-binary-io.sh: New file.
59409         * tests/test-binary-io.c: New file.
59410
59411 2007-01-14  Bruno Haible  <bruno@clisp.org>
59412
59413         * modules/array-oset-tests: New file.
59414         * tests/test-array_oset.c: New file.
59415
59416 2007-01-14  Bruno Haible  <bruno@clisp.org>
59417
59418         * modules/array-list-tests: New file.
59419         * tests/test-array_list.c: New file.
59420
59421 2007-01-14  Bruno Haible  <bruno@clisp.org>
59422
59423         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
59424         and make.
59425         Reported by Simon Josefsson in
59426         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
59427
59428 2007-01-14  Bruno Haible  <bruno@clisp.org>
59429
59430         * modules/allocsa-tests: New file.
59431         * tests/test-allocsa.c: New file.
59432
59433 2007-01-14  Bruno Haible  <bruno@clisp.org>
59434
59435         * modules/fchdir (Depends-on): Add absolute-header.
59436         * modules/unistd (Depends-on): Likewise.
59437
59438 2006-12-30  Bruno Haible  <bruno@clisp.org>
59439
59440         * modules/fchdir: New file.
59441         * modules/unistd (Files): Add lib/unistd_.h.
59442         (Makefile.am): Generate unistd.h from unistd_.h.
59443         * lib/fchdir.c: New file.
59444         * lib/dirent_.h: New file.
59445         * lib/unistd_.h: New file.
59446         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
59447         * m4/fchdir.m4: New file.
59448         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
59449         (gl_HEADER_UNISTD): Invoke it.
59450         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
59451         function.
59452         * lib/backupfile.c (opendir, closedir): Undefine.
59453         * lib/chown.c (open, close): Undefine.
59454         * lib/clean-temp.c (open, close): Undefine.
59455         * lib/copy-file.c (open, close): Undefine.
59456         * lib/execute.c (open, close): Undefine.
59457         * lib/fsusage.c (open, close): Undefine.
59458         * lib/gc-gnulib.c (open, close): Undefine.
59459         * lib/getcwd.c (opendir, closedir): Undefine.
59460         * lib/glob.c (opendir, closedir): Undefine.
59461         * lib/javacomp.c (open, close): Undefine.
59462         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
59463         * lib/openat-proc.c (open, close): Undefine.
59464         * lib/pagealign_alloc.c (open, close): Undefine.
59465         * lib/pipe.c (open, close): Undefine.
59466         * lib/progreloc.c (open, close): Undefine.
59467         * lib/savedir.c (opendir, closedir): Undefine.
59468         * lib/utime.c (open, close): Undefine.
59469         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
59470
59471 2007-01-10  Bruno Haible  <bruno@clisp.org>
59472
59473         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
59474
59475 2007-01-12  Eric Blake  <ebb9@byu.net>
59476
59477         Provide a robust <wchar.h>.  Further simplifications are now
59478         possible in other modules, but not included here.
59479         * modules/wchar: New module.
59480         * m4/wchar.m4: New file.
59481         * lib/wchar_.h: Likewise.
59482         * modules/mbchar (Depends-on): Depend on wchar, as the first use
59483         of the new module.
59484         * MODULES.html.sh (Extended multibyte and wide character utilities):
59485         New section.
59486
59487 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
59488
59489         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
59490         to a reasonable default for memory allocation.
59491         (xreadlink): Don't allocate a huge buffer, to work around a buggy
59492         file system that reports garbage st_size values for symlinks.
59493         Problem reported by Liyang Hu.
59494
59495 2007-01-11  Simon Josefsson  <simon@josefsson.org>
59496
59497         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
59498         Emacs .#* auto-save files).
59499
59500 2007-01-11  Bruno Haible  <bruno@clisp.org>
59501
59502         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
59503         directory.
59504
59505 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
59506
59507         Use @...@ consistently in lib/wctype_.h.
59508         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
59509         on it being set to 1 or 0.
59510         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
59511         go back to AC_SUBSTing it.
59512         * modules/wctype (Makefile.am): Undo previous change.
59513
59514 2007-01-10  Eric Blake  <ebb9@byu.net>
59515
59516         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
59517         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
59518         * modules/wctype (Makefile.am): Likewise.
59519         Reported by Chris McGuire.
59520
59521 2007-01-10  Jim Meyering  <jim@meyering.net>
59522
59523         fts.c: a small readability/maintainability improvement
59524         * lib/fts.c (fts_read): Make this code slightly more readable and
59525         maintainable by hoisting the "sp->fts_cur = p" assignments to
59526         immediately follow the statements that set P.  Derived from
59527         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
59528
59529 2007-01-10  Eric Blake  <ebb9@byu.net>
59530
59531         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
59532         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
59533         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
59534         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
59535         Reported by Chris McGuire.
59536
59537 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59538
59539         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
59540         in sed script.
59541
59542 2007-01-09  Bruno Haible  <bruno@clisp.org>
59543
59544         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
59545         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
59546         variables.
59547         (func_module): Use them.
59548
59549 2007-01-09  Bruno Haible  <bruno@clisp.org>
59550
59551         * modules/unistr/base: New file.
59552         * lib/unistr.h: New file.
59553
59554         * modules/unistr/u8-to-u16: New file.
59555         * lib/unistr/u8-to-u16.c: New file.
59556
59557         * modules/unistr/u8-to-u32: New file.
59558         * lib/unistr/u8-to-u32.c: New file.
59559
59560         * modules/unistr/u16-to-u8: New file.
59561         * lib/unistr/u16-to-u8.c: New file.
59562
59563         * modules/unistr/u16-to-u32: New file.
59564         * lib/unistr/u16-to-u32.c: New file.
59565
59566         * modules/unistr/u32-to-u8: New file.
59567         * lib/unistr/u32-to-u8.c: New file.
59568
59569         * modules/unistr/u32-to-u16: New file.
59570         * lib/unistr/u32-to-u16.c: New file.
59571
59572         * modules/unistr/u8-check: New file.
59573         * modules/unistr/u16-check: New file.
59574         * modules/unistr/u32-check: New file.
59575         * lib/unistr/u8-check.c: New file.
59576         * lib/unistr/u16-check.c: New file.
59577         * lib/unistr/u32-check.c: New file.
59578
59579         * modules/unistr/u8-chr: New file.
59580         * modules/unistr/u16-chr: New file.
59581         * modules/unistr/u32-chr: New file.
59582         * lib/unistr/u8-chr.c: New file.
59583         * lib/unistr/u16-chr.c: New file.
59584         * lib/unistr/u32-chr.c: New file.
59585
59586         * modules/unistr/u8-cmp: New file.
59587         * modules/unistr/u16-cmp: New file.
59588         * modules/unistr/u32-cmp: New file.
59589         * lib/unistr/u8-cmp.c: New file.
59590         * lib/unistr/u16-cmp.c: New file.
59591         * lib/unistr/u32-cmp.c: New file.
59592
59593         * modules/unistr/u8-cpy: New file.
59594         * modules/unistr/u16-cpy: New file.
59595         * modules/unistr/u32-cpy: New file.
59596         * lib/unistr/u8-cpy.c: New file.
59597         * lib/unistr/u16-cpy.c: New file.
59598         * lib/unistr/u32-cpy.c: New file.
59599         * lib/unistr/u-cpy.h: New file.
59600
59601         * modules/unistr/u8-cpy-alloc: New file.
59602         * modules/unistr/u16-cpy-alloc: New file.
59603         * modules/unistr/u32-cpy-alloc: New file.
59604         * lib/unistr/u8-cpy-alloc.c: New file.
59605         * lib/unistr/u16-cpy-alloc.c: New file.
59606         * lib/unistr/u32-cpy-alloc.c: New file.
59607         * lib/unistr/u-cpy-alloc.h: New file.
59608
59609         * modules/unistr/u8-endswith: New file.
59610         * modules/unistr/u16-endswith: New file.
59611         * modules/unistr/u32-endswith: New file.
59612         * lib/unistr/u8-endswith.c: New file.
59613         * lib/unistr/u16-endswith.c: New file.
59614         * lib/unistr/u32-endswith.c: New file.
59615         * lib/unistr/u-endswith.h: New file.
59616
59617         * modules/unistr/u8-mblen: New file.
59618         * modules/unistr/u16-mblen: New file.
59619         * modules/unistr/u32-mblen: New file.
59620         * lib/unistr/u8-mblen.c: New file.
59621         * lib/unistr/u16-mblen.c: New file.
59622         * lib/unistr/u32-mblen.c: New file.
59623
59624         * modules/unistr/u8-mbtouc: New file.
59625         * modules/unistr/u16-mbtouc: New file.
59626         * modules/unistr/u32-mbtouc: New file.
59627         * lib/unistr/u8-mbtouc.c: New file.
59628         * lib/unistr/u16-mbtouc.c: New file.
59629         * lib/unistr/u32-mbtouc.c: New file.
59630
59631         * modules/unistr/u8-mbtouc-safe: New file.
59632         * modules/unistr/u16-mbtouc-safe: New file.
59633         * modules/unistr/u32-mbtouc-safe: New file.
59634         * lib/unistr/u8-mbtouc-safe.c: New file.
59635         * lib/unistr/u16-mbtouc-safe.c: New file.
59636         * lib/unistr/u32-mbtouc-safe.c: New file.
59637
59638         * modules/unistr/u8-move: New file.
59639         * modules/unistr/u16-move: New file.
59640         * modules/unistr/u32-move: New file.
59641         * lib/unistr/u8-move.c: New file.
59642         * lib/unistr/u16-move.c: New file.
59643         * lib/unistr/u32-move.c: New file.
59644         * lib/unistr/u-move.h: New file.
59645
59646         * modules/unistr/u8-next: New file.
59647         * modules/unistr/u16-next: New file.
59648         * modules/unistr/u32-next: New file.
59649         * lib/unistr/u8-next.c: New file.
59650         * lib/unistr/u16-next.c: New file.
59651         * lib/unistr/u32-next.c: New file.
59652
59653         * modules/unistr/u8-prev: New file.
59654         * modules/unistr/u16-prev: New file.
59655         * modules/unistr/u32-prev: New file.
59656         * lib/unistr/u8-prev.c: New file.
59657         * lib/unistr/u16-prev.c: New file.
59658         * lib/unistr/u32-prev.c: New file.
59659
59660         * modules/unistr/u8-set: New file.
59661         * modules/unistr/u16-set: New file.
59662         * modules/unistr/u32-set: New file.
59663         * lib/unistr/u8-set.c: New file.
59664         * lib/unistr/u16-set.c: New file.
59665         * lib/unistr/u32-set.c: New file.
59666         * lib/unistr/u-set.h: New file.
59667
59668         * modules/unistr/u8-startswith: New file.
59669         * modules/unistr/u16-startswith: New file.
59670         * modules/unistr/u32-startswith: New file.
59671         * lib/unistr/u8-startswith.c: New file.
59672         * lib/unistr/u16-startswith.c: New file.
59673         * lib/unistr/u32-startswith.c: New file.
59674         * lib/unistr/u-startswith.h: New file.
59675
59676         * modules/unistr/u8-stpcpy: New file.
59677         * modules/unistr/u16-stpcpy: New file.
59678         * modules/unistr/u32-stpcpy: New file.
59679         * lib/unistr/u8-stpcpy.c: New file.
59680         * lib/unistr/u16-stpcpy.c: New file.
59681         * lib/unistr/u32-stpcpy.c: New file.
59682         * lib/unistr/u-stpcpy.h: New file.
59683
59684         * modules/unistr/u8-stpncpy: New file.
59685         * modules/unistr/u16-stpncpy: New file.
59686         * modules/unistr/u32-stpncpy: New file.
59687         * lib/unistr/u8-stpncpy.c: New file.
59688         * lib/unistr/u16-stpncpy.c: New file.
59689         * lib/unistr/u32-stpncpy.c: New file.
59690         * lib/unistr/u-stpncpy.h: New file.
59691
59692         * modules/unistr/u8-strcat: New file.
59693         * modules/unistr/u16-strcat: New file.
59694         * modules/unistr/u32-strcat: New file.
59695         * lib/unistr/u8-strcat.c: New file.
59696         * lib/unistr/u16-strcat.c: New file.
59697         * lib/unistr/u32-strcat.c: New file.
59698         * lib/unistr/u-strcat.h: New file.
59699
59700         * modules/unistr/u8-strchr: New file.
59701         * modules/unistr/u16-strchr: New file.
59702         * modules/unistr/u32-strchr: New file.
59703         * lib/unistr/u8-strchr.c: New file.
59704         * lib/unistr/u16-strchr.c: New file.
59705         * lib/unistr/u32-strchr.c: New file.
59706
59707         * modules/unistr/u8-strcmp: New file.
59708         * modules/unistr/u16-strcmp: New file.
59709         * modules/unistr/u32-strcmp: New file.
59710         * lib/unistr/u8-strcmp.c: New file.
59711         * lib/unistr/u16-strcmp.c: New file.
59712         * lib/unistr/u32-strcmp.c: New file.
59713
59714         * modules/unistr/u8-strcpy: New file.
59715         * modules/unistr/u16-strcpy: New file.
59716         * modules/unistr/u32-strcpy: New file.
59717         * lib/unistr/u8-strcpy.c: New file.
59718         * lib/unistr/u16-strcpy.c: New file.
59719         * lib/unistr/u32-strcpy.c: New file.
59720         * lib/unistr/u-strcpy.h: New file.
59721
59722         * modules/unistr/u8-strcspn: New file.
59723         * modules/unistr/u16-strcspn: New file.
59724         * modules/unistr/u32-strcspn: New file.
59725         * lib/unistr/u8-strcspn.c: New file.
59726         * lib/unistr/u16-strcspn.c: New file.
59727         * lib/unistr/u32-strcspn.c: New file.
59728         * lib/unistr/u-strcspn.h: New file.
59729
59730         * modules/unistr/u8-strdup: New file.
59731         * modules/unistr/u16-strdup: New file.
59732         * modules/unistr/u32-strdup: New file.
59733         * lib/unistr/u8-strdup.c: New file.
59734         * lib/unistr/u16-strdup.c: New file.
59735         * lib/unistr/u32-strdup.c: New file.
59736         * lib/unistr/u-strdup.h: New file.
59737
59738         * modules/unistr/u8-strlen: New file.
59739         * modules/unistr/u16-strlen: New file.
59740         * modules/unistr/u32-strlen: New file.
59741         * lib/unistr/u8-strlen.c: New file.
59742         * lib/unistr/u16-strlen.c: New file.
59743         * lib/unistr/u32-strlen.c: New file.
59744         * lib/unistr/u-strlen.h: New file.
59745
59746         * modules/unistr/u8-strmblen: New file.
59747         * modules/unistr/u16-strmblen: New file.
59748         * modules/unistr/u32-strmblen: New file.
59749         * lib/unistr/u8-strmblen.c: New file.
59750         * lib/unistr/u16-strmblen.c: New file.
59751         * lib/unistr/u32-strmblen.c: New file.
59752
59753         * modules/unistr/u8-strmbtouc: New file.
59754         * modules/unistr/u16-strmbtouc: New file.
59755         * modules/unistr/u32-strmbtouc: New file.
59756         * lib/unistr/u8-strmbtouc.c: New file.
59757         * lib/unistr/u16-strmbtouc.c: New file.
59758         * lib/unistr/u32-strmbtouc.c: New file.
59759
59760         * modules/unistr/u8-strncat: New file.
59761         * modules/unistr/u16-strncat: New file.
59762         * modules/unistr/u32-strncat: New file.
59763         * lib/unistr/u8-strncat.c: New file.
59764         * lib/unistr/u16-strncat.c: New file.
59765         * lib/unistr/u32-strncat.c: New file.
59766         * lib/unistr/u-strncat.h: New file.
59767
59768         * modules/unistr/u8-strncmp: New file.
59769         * modules/unistr/u16-strncmp: New file.
59770         * modules/unistr/u32-strncmp: New file.
59771         * lib/unistr/u8-strncmp.c: New file.
59772         * lib/unistr/u16-strncmp.c: New file.
59773         * lib/unistr/u32-strncmp.c: New file.
59774
59775         * modules/unistr/u8-strncpy: New file.
59776         * modules/unistr/u16-strncpy: New file.
59777         * modules/unistr/u32-strncpy: New file.
59778         * lib/unistr/u8-strncpy.c: New file.
59779         * lib/unistr/u16-strncpy.c: New file.
59780         * lib/unistr/u32-strncpy.c: New file.
59781         * lib/unistr/u-strncpy.h: New file.
59782
59783         * modules/unistr/u8-strnlen: New file.
59784         * modules/unistr/u16-strnlen: New file.
59785         * modules/unistr/u32-strnlen: New file.
59786         * lib/unistr/u8-strnlen.c: New file.
59787         * lib/unistr/u16-strnlen.c: New file.
59788         * lib/unistr/u32-strnlen.c: New file.
59789         * lib/unistr/u-strnlen.h: New file.
59790
59791         * modules/unistr/u8-strpbrk: New file.
59792         * modules/unistr/u16-strpbrk: New file.
59793         * modules/unistr/u32-strpbrk: New file.
59794         * lib/unistr/u8-strpbrk.c: New file.
59795         * lib/unistr/u16-strpbrk.c: New file.
59796         * lib/unistr/u32-strpbrk.c: New file.
59797         * lib/unistr/u-strpbrk.h: New file.
59798
59799         * modules/unistr/u8-strrchr: New file.
59800         * modules/unistr/u16-strrchr: New file.
59801         * modules/unistr/u32-strrchr: New file.
59802         * lib/unistr/u8-strrchr.c: New file.
59803         * lib/unistr/u16-strrchr.c: New file.
59804         * lib/unistr/u32-strrchr.c: New file.
59805
59806         * modules/unistr/u8-strspn: New file.
59807         * modules/unistr/u16-strspn: New file.
59808         * modules/unistr/u32-strspn: New file.
59809         * lib/unistr/u8-strspn.c: New file.
59810         * lib/unistr/u16-strspn.c: New file.
59811         * lib/unistr/u32-strspn.c: New file.
59812         * lib/unistr/u-strspn.h: New file.
59813
59814         * modules/unistr/u8-strstr: New file.
59815         * modules/unistr/u16-strstr: New file.
59816         * modules/unistr/u32-strstr: New file.
59817         * lib/unistr/u8-strstr.c: New file.
59818         * lib/unistr/u16-strstr.c: New file.
59819         * lib/unistr/u32-strstr.c: New file.
59820         * lib/unistr/u-strstr.h: New file.
59821
59822         * modules/unistr/u8-strtok: New file.
59823         * modules/unistr/u16-strtok: New file.
59824         * modules/unistr/u32-strtok: New file.
59825         * lib/unistr/u8-strtok.c: New file.
59826         * lib/unistr/u16-strtok.c: New file.
59827         * lib/unistr/u32-strtok.c: New file.
59828         * lib/unistr/u-strtok.h: New file.
59829
59830         * modules/unistr/u8-uctomb: New file.
59831         * modules/unistr/u16-uctomb: New file.
59832         * modules/unistr/u32-uctomb: New file.
59833         * lib/unistr/u8-uctomb.c: New file.
59834         * lib/unistr/u16-uctomb.c: New file.
59835         * lib/unistr/u32-uctomb.c: New file.
59836
59837         * MODULES.html.sh (Unicode string functions): Add the new modules.
59838
59839 2007-01-08  Bruno Haible  <bruno@clisp.org>
59840
59841         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
59842         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
59843         subdirectories.
59844
59845 2007-01-08  Karl Berry  <karl@gnu.org>
59846
59847         * doc/error.texi: mention that main() fns must set program_name
59848         when progname is used.
59849
59850 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
59851
59852         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
59853         WCTYPE_H is empty, for the benefit of builds from non-distclean
59854         directories.  Problem reported by Eric Blake in
59855         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
59856
59857 2007-01-08  Bruno Haible  <bruno@clisp.org>
59858
59859         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
59860         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
59861         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
59862         PROVIDE_CANONICALIZE_FILENAME_MODE.
59863         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
59864
59865 2007-01-08  Bruno Haible  <bruno@clisp.org>
59866
59867         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
59868         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
59869         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
59870         * lib/fts.c: Likewise.
59871         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
59872
59873 2006-12-25  Bruno Haible  <bruno@clisp.org>
59874
59875         * modules/utf8-ucs4-safe: New file.
59876         * lib/utf8-ucs4-safe.h: New file.
59877         * lib/unistr/utf8-ucs4-safe.c: New file.
59878
59879         * modules/utf16-ucs4-safe: New file.
59880         * lib/utf16-ucs4-safe.h: New file.
59881         * lib/unistr/utf16-ucs4-safe.c: New file.
59882
59883         * MODULES.html.sh (Unicode string functions): Add the new modules.
59884
59885 2007-01-08  Bruno Haible  <bruno@clisp.org>
59886
59887         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
59888         (Depends-on): Add unitypes.
59889         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
59890         (u8_mbtouc_aux): Move out to separate file.
59891         (u8_mbtouc): Use ucs4_t, uint8_t types.
59892         * lib/unistr/utf8-ucs4.c: New file.
59893
59894         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
59895         (Depends-on): Add unitypes.
59896         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
59897         (u16_mbtouc_aux): Move out to separate file.
59898         (u16_mbtouc): Use ucs4_t, uint16_t types.
59899         * lib/unistr/utf16-ucs4.c: New file.
59900
59901         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
59902         (Depends-on): Add unitypes.
59903         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
59904         (u8_uctomb_aux): Move out to separate file.
59905         (u8_uctomb): Use ucs4_t, uint8_t types.
59906         * lib/unistr/ucs4-utf8.c: New file.
59907
59908         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
59909         (Depends-on): Add unitypes.
59910         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
59911         (u16_uctomb_aux): Move out to separate file.
59912         (u16_uctomb): Use ucs4_t, uint16_t types.
59913         * lib/unistr/ucs4-utf16.c: New file.
59914
59915 2006-12-25  Bruno Haible  <bruno@clisp.org>
59916
59917         * modules/unitypes: New file.
59918         * lib/unitypes.h: New file.
59919         * MODULES.html.sh (func_all_modules): New section "Unicode string
59920         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
59921         this section. Add unitypes.
59922
59923 2007-01-08  Bruno Haible  <bruno@clisp.org>
59924
59925         Avoid variable names that conflict with those from libtool.
59926         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
59927         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
59928         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
59929         library_names_spec to acl_library_names_spec, hardcode_* to
59930         acl_hardcode_*.
59931         Reported by Ralf Wildenhues.
59932
59933 2007-01-08  Bruno Haible  <bruno@clisp.org>
59934
59935         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
59936         definition.
59937         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
59938         definition.
59939         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
59940         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
59941         definition.
59942         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
59943         definition.
59944         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
59945         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
59946         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
59947         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
59948         definition.
59949         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
59950         definition.
59951         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
59952         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
59953         GC_USE_<algorithm>.
59954         * lib/gc-libgcrypt.c: Likewise.
59955         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
59956         * modules/gc-arctwo (configure.ac): Likewise.
59957         * modules/gc-des (configure.ac): Likewise.
59958         * modules/gc-hmac-md5 (configure.ac): Likewise.
59959         * modules/gc-hmac-sha1 (configure.ac): Likewise.
59960         * modules/gc-md2 (configure.ac): Likewise.
59961         * modules/gc-md4 (configure.ac): Likewise.
59962         * modules/gc-md5 (configure.ac): Likewise.
59963         * modules/gc-random (configure.ac): Likewise.
59964         * modules/gc-rijndael (configure.ac): Likewise.
59965         * modules/gc-sha1 (configure.ac): Likewise.
59966
59967 2007-01-08  Bruno Haible  <bruno@clisp.org>
59968
59969         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
59970         macro definition.
59971         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
59972         definition.
59973         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
59974         definition.
59975         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
59976         * modules/fcntl-safer (configure.ac): Likewise.
59977         * modules/fopen-safer (configure.ac): Likewise.
59978         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
59979         GNULIB_FWRITEERROR macro definition.
59980
59981 2007-01-08  Bruno Haible  <bruno@clisp.org>
59982
59983         * m4/gnulib-common.m4: New file.
59984         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
59985         (func_get_filelist): Add m4/gnulib-common.m4.
59986
59987 2007-01-08  Bruno Haible  <bruno@clisp.org>
59988
59989         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
59990         command.
59991
59992 2007-01-08  Jim Meyering  <jim@meyering.net>
59993
59994         Use a more robust test for a "can't happen" condition.
59995         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
59996         narrowed the st_size value.  Presuming the "can't happen" condition
59997         is true, that narrowing could conceivably convert an invalid st_size
59998         value into a valid one.  Instead, use a change based on Matthew
59999         Woehlke's original patch.
60000
60001         Slight readability improvement: use an assert-like macro
60002         in place of literal "abort ()" uses.
60003         * lib/fts.c (fts_assert): Define.
60004         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
60005         Use this macro instead of a bare 'abort'.
60006
60007 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
60008
60009         Don't worry about using IRIX 5.3's wctype.h broken definitions;
60010         simply work around them.
60011         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
60012         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
60013         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
60014         declaring.
60015         Don't bother to define as macros, since the standard doesn't require it.
60016         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
60017         longer worry about IRIX 5.3.
60018         (HAVE_WCTYPE_CTMP_BUG): Remove.
60019
60020 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
60021
60022         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
60023         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
60024         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
60025         Problems reported by Georg Schwarz for IRIX 5.3.
60026
60027         * gnulib-tool (autoconf_minversion): Take the maximum version number
60028         found, not the minimum.  Problem reported by James Youngman.
60029
60030 2007-01-03  Karl Berry  <karl@gnu.org>
60031
60032         * doc/error.texi: new file, explaining interaction with progname.
60033         * doc/gnulib.texi: include it.  Update copyright.
60034
60035 2007-01-03  Simon Josefsson  <simon@josefsson.org>
60036
60037         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
60038         AC_CANONICAL_HOST, to improve autobuild outputs.
60039
60040 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
60041             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
60042
60043         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
60044         sockets, server sockets, and other file descriptors.  Count errors
60045         to compute the return value.  Reorder the code a bit to be easier
60046         to follow.  Don't set event bits that were not requested (except
60047         POLLERR and POLLHUP).
60048
60049 2007-01-01  Bruno Haible  <bruno@clisp.org>
60050
60051         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
60052
60053 2007-01-03  Jim Meyering  <jim@meyering.net>
60054
60055         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
60056
60057 2007-01-02  Bruno Haible  <bruno@clisp.org>
60058
60059         * modules/settime (Include): Require timespec.h.
60060         * modules/nanosleep (Include): Likewise.
60061
60062 2007-01-01  Bruno Haible  <bruno@clisp.org>
60063
60064         * gnulib-tool (func_emit_copyright_notice): Bump year.
60065         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
60066
60067 2007-01-01  Bruno Haible  <bruno@clisp.org>
60068
60069         Improve support for OpenBSD.
60070         * build-aux/config.rpath (libname_spec): Export.
60071         (library_names_spec): New variable. Export.
60072         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
60073         library_names_spec from the config.rpath output. Locate shared library
60074         through the name pattern in library_names_spec.
60075
60076 2007-01-01  Eric Blake  <ebb9@byu.net>
60077
60078         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
60079
60080 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
60081
60082         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
60083         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
60084         assume the C locale, and avoid an "eval" that could cause trouble.
60085         Problem with SORT reported by Bob Proulx.
60086
60087         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
60088         Define.  Trivial patch from Henning Nielsen Lund, originally
60089         sent to bug-grep@gnu.org today.
60090
60091 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
60092
60093         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
60094         struct stat.  Problem reported by Henning Nielsen Lund.
60095         * lib/acl.c: Include acl.h first, to check interface.  Don't
60096         bother to include sys/types.h and sys/stat.h again.
60097
60098 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
60099
60100         Import the following change from libc; problem reported by
60101         Sven Verdoolaege.
60102
60103         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
60104
60105         [BZ #1373]
60106         * lib/argp.h: Remove __NTH for __argp_usage inline function.
60107
60108 2006-12-28  Jim Meyering  <jim@meyering.net>
60109
60110         * build-aux/announce-gen: Do not assume that the package
60111         builds any of tar.gz, tar.bz2, and .xdelta files.
60112         Suggestion from Simon Josefsson.
60113
60114 2006-12-28  Simon Josefsson  <simon@josefsson.org>
60115
60116         * modules/announce-gen: New file.
60117
60118 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
60119
60120         * lib/mbchar.h: Just include <wctype.h>; the wctype module
60121         handles its gotchas now.
60122         * lib/mbswidth.c: Likewise.
60123         * lib/wcwidth.h: Likewise.
60124         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
60125         and iswcntrl; the wctype module does this stuff now.
60126         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
60127         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
60128         * modules/mbchar (Depends-on): Add wctype.
60129         * modules/mbswidth (Depends-on): Likewise.
60130         * modules/wcwidth (Depends-on): Likewise.
60131
60132 2006-12-27  Eric Blake  <ebb9@byu.net>
60133
60134         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
60135         module uses more than what <wctype.h> is required to provide.
60136
60137 2006-12-26  Eric Blake  <ebb9@byu.net>
60138
60139         * gnulib-tool (sed_extract_prog): Avoid space-tab.
60140
60141 2006-12-26  Eric Blake  <ebb9@byu.net>
60142
60143         * modules/absolute-header: New module.
60144         * modules/fcntl (Depends-on): Depend on it.
60145         * modules/inttypes (Depends-on): Likewise.
60146         * modules/stdint (Depends-on): Likewise.
60147         * modules/sys_stat (Depends-on): Likewise.
60148         * modules/wctype (Depends-on): Likewise.
60149         * MODULES.html.sh (Support for building libraries and
60150         executables): Document it.
60151
60152 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
60153
60154         * gnulib-tool (SED): Remove, undoing previous change.
60155         The problem was that it broke coreutils on Solaris, because
60156         "sed --posix" leaked into a makefile.
60157         (sed): New alias, if 'alias' and GNU sed.
60158
60159 2006-12-24  Jim Meyering  <jim@meyering.net>
60160
60161         Work around an fchownat bug in glibc-2.4:
60162         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
60163         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
60164         in spite of the -P option.
60165         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
60166         New macros.
60167         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
60168         * modules/openat (Files): Add lib/fchownat.c.
60169         * lib/openat.c (fchownat): Don't define here.  Move to...
60170         * lib/fchownat.c: ...this new file.
60171
60172 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
60173
60174         Fix bug reported by Bruno Haible in
60175         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
60176         where quotearg.c didn't compile on Mac OS X 10.2 because it
60177         lacks <wchar.h> and wint_t.
60178         * lib/wctype_.h (__wctype_wint_t): New type.
60179         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
60180         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
60181         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
60182         Arg is now of type __wctype_wint_t, not wint_t.
60183         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
60184         substitute HAVE_WINT_T.
60185         * modules/wctype (Files): Add m4/wint_t.m4.
60186         (wctype.h): Substitute HAVE_WINT_T.
60187
60188 2006-12-23  Bruno Haible  <bruno@clisp.org>
60189
60190         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
60191
60192 2006-12-23  Bruno Haible  <bruno@clisp.org>
60193
60194         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
60195         S_ISLNK.
60196         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
60197         mingw.
60198
60199 2006-12-22  Bruno Haible  <bruno@clisp.org>
60200
60201         * lib/copy-file.c: Include acl.h.
60202         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
60203         Close the file descriptors only after being done with copy_acl.
60204         * modules/copy-file (Depends-on): Add acl.
60205
60206 2006-12-22  Bruno Haible  <bruno@clisp.org>
60207
60208         * gnulib-tool (SED): New variable.
60209         Use $SED instead of sed everywhere.
60210
60211 2006-12-22  Bruno Haible  <bruno@clisp.org>
60212
60213         * modules/no-c++: New file.
60214         * m4/no-c++.m4: New file.
60215         * MODULES.html.sh (Support for building libraries and executables):
60216         Add no-c++.
60217
60218 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
60219
60220         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
60221         Include <limits.h>, and use its INT_MAX to rewrite the
60222         j loop so that it does not overflow 'int'.  Problem reported by
60223         Ralf Wildenhues in
60224         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
60225         Play it safe by shifting left by 1 rather than multiplying by 2,
60226         as GCC is less likely to optimize this away when the value
60227         is signed (when it assumes overflow leads to undefined behavior).
60228         Also, don't assume time_t uses two's complement.
60229
60230 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
60231
60232         * MODULES.html.sh: New module wctype.
60233         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
60234         * lib/fnmatch.c: Don't bother to include <wchar.h> before
60235         <wctype.h>, since the new wctype module should fix this.
60236         * lib/quotearg.c: Include <wctype.h> unconditionally, since
60237         the wctype module should arrange for it.
60238         * lib/regex_internal.h: Likewise.
60239         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
60240         since the wctype module should handle this now.
60241         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
60242         * modules/fnmatch (Depends-on): Add wctype.
60243         * modules/quotearg (Depends-on): Likewise.
60244         * modules/regex (Depends-on): Likewise.
60245
60246 2006-12-19  Bruno Haible  <bruno@clisp.org>
60247
60248         * lib/strdup.h [C++]: Wrap definitions in extern "C".
60249         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
60250
60251 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60252
60253         * modules/savewd (Depends-on): Fix dependency on fcntl.
60254
60255 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
60256
60257         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
60258         conforms to C99, rather than relying on the user's environment
60259         setting of STDINT_H.
60260
60261 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
60262         and Eric Blake  <ebb9@byu.net>
60263
60264         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
60265         This is more consistent with the other defines here.
60266         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
60267         Port to z/OS.  Problem reported by Paul Gilmartin.
60268         Change local vars to use gl_ prefix rather than ac_.
60269         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
60270         with other defines.
60271         * modules/double-slash-root: New module.
60272         * modules/dirname (Files): Remove m4/double-slash-root.m4.
60273         (Depends-on): Add double-slash-root.
60274         * MODULES.html.sh (File system functions): Mention new module.
60275
60276 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
60277
60278         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
60279         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
60280         This is for the benefit of gzip, which doesn't do i18n.
60281
60282 2006-12-12  Jim Meyering  <jim@meyering.net>
60283
60284         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
60285         Reported by Andreas Schwab <schwab@suse.de>.
60286
60287 2006-12-12  Bruno Haible  <bruno@clisp.org>
60288
60289         Merge these changes.
60290         2006-09-05  Bruno Haible  <bruno@clisp.org>
60291         * lib/iconvme.c (iconv_string): No need to save and restore errno when
60292         iconv_alloc succeeded.
60293         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
60294         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
60295         test for " && dest " at the end - dest is always != NULL there. Call
60296         iconv with 4xNULL arguments initially, to reset the state. Call iconv
60297         with 2xNULL arguments, also to flush the state storage. Handle the
60298         IRIX iconv behaviour. Realloc the final result, to throw away unused
60299         memory.
60300
60301 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
60302
60303         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
60304         and fchmodat unconditionally, since glibc 2.4 has them.
60305         Problem reported by Arkadiusz Miskiewicz.
60306
60307 2006-12-10  Bruno Haible  <bruno@clisp.org>
60308
60309         * gnulib-tool (func_import): Show the include files only for those
60310         modules that are copied and specified.
60311         Reported by Karl Berry.
60312
60313 2006-12-08  Jim Meyering  <jim@meyering.net>
60314
60315         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
60316         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
60317
60318         * build-aux/announce-gen: Add two new options, both optional:
60319         --bootstrap-tools=TOOL_LIST
60320               a comma-separated list of tools, e.g.,
60321               autoconf,automake,bison,gnulib
60322         --gnulib-snapshot-date=DATE
60323               if gnulib is in the bootstrap tool list,
60324               then report this as the snapshot date.
60325               If not specified, use the current date/time.
60326               If you specify a date here, be sure it's UTC.
60327
60328 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60329
60330         * tests/test-argp-2.sh: Fix test to match actual output.
60331         (func_compare): Fix sed script to be portable.
60332
60333 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
60334
60335         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
60336         workaround for this case.  It is not autoconfigured now; offhand
60337         it's hard to see how to autoconfigure it.
60338
60339 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
60340
60341         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
60342         a directory that is about to be chowned.  Such a directory's
60343         initial file permissions should permit the owner only and this
60344         should not be changed until after the chown, since the group and
60345         other bits would be incorrect if they granted permission before
60346         the chown.
60347
60348         Fix porting problem for iswctype reported by Georg Schwarz in:
60349         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
60350         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
60351         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
60352         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
60353         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
60354
60355 2006-12-03  Jim Meyering  <jim@meyering.net>
60356
60357         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
60358         p->fts_statp may not yet be defined.
60359         (fts_read): Instead, set it in the caller, once p->fts_statp is
60360         sure to be defined, and corresponds to a top-level directory.
60361         This bug made du -x fail.  Here's the coreutils test case:
60362         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
60363         Reported by Mike Frysinger.
60364
60365 2006-12-01  Jim Meyering  <jim@meyering.net>
60366
60367         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
60368         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
60369         Reported by Simon Josefsson.
60370
60371 2006-11-30  Jim Meyering  <jim@meyering.net>
60372
60373         * m4/warning.m4: Use the all-permissive copyright notice
60374         recommended by RMS (rather than LGPL).
60375         * m4/vararrays.m4: Likewise.
60376         * m4/flexmember.m4: Likewise.
60377
60378 2006-11-29  Bruno Haible  <bruno@clisp.org>
60379
60380         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
60381         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
60382         using +=.
60383         Reported by Simon Josefsson <simon@josefsson.org>.
60384
60385 2006-11-28  James Youngman <jay@gnu.org>
60386
60387         * README: Advise users that they might find the bug-gnulib@gnu.org
60388         and autotools-announce@gnu.org mailing lists useful.
60389
60390 2006-11-28  Bruno Haible  <bruno@clisp.org>
60391
60392         * m4/ptrdiff_max.m4: Remove file.
60393
60394 2006-11-21  Bruno Haible  <bruno@clisp.org>
60395
60396         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
60397         _AC_COMPUTE_INT.
60398         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
60399         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
60400         _AC_COMPUTE_INT.
60401         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
60402         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
60403         _AC_COMPUTE_INT.
60404         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
60405
60406 2006-11-28  Jim Meyering  <jim@meyering.net>
60407
60408         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
60409         warning from "gcc -Wshadow" about shadowing the builtin.
60410
60411 2006-11-27  Bruno Haible  <bruno@clisp.org>
60412
60413         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
60414         _AC_COMPUTE_INT.
60415         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
60416
60417 2006-11-27  Bruno Haible  <bruno@clisp.org>
60418             Paul Eggert  <eggert@cs.ucla.edu>
60419
60420         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
60421
60422 2006-11-26  Bruno Haible  <bruno@clisp.org>
60423
60424         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
60425         noinst_LTLIBRARIES.
60426
60427 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
60428             Bruno Haible  <bruno@clisp.org>
60429
60430         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
60431         if compiling with "gcc -ansi".
60432
60433 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
60434
60435         Fix some incompatibilities with gcc -ansi -pedantic.
60436         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
60437         if compiling pedantically with GCC, unless it's C99 or later.
60438         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
60439         it mishandles gcc -ansi -pedantic as well.
60440         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
60441         if gcc -pedantic.
60442         * lib/regexec.c (check_node_accept_bytes): Don't use auto
60443         initializers for struct if -pedantic, unless it's C99 or later.
60444
60445 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
60446
60447         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
60448         Don't close an fd more than once. Identical atimes indicate
60449         success, not failure.
60450
60451 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
60452
60453         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
60454
60455 2006-11-23  Jim Meyering  <jim@meyering.net>
60456
60457         * build-aux/announce-gen: New file.  From coreutils.
60458
60459 2006-11-22  Jim Meyering  <jim@meyering.net>
60460
60461         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
60462         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
60463         (fts_read): Use a temporary to narrow the overused st_size member
60464         before using it in a switch statement.  Reported by Matthew Woehlke.
60465
60466         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
60467         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
60468
60469 2006-11-20  Bruno Haible  <bruno@clisp.org>
60470
60471         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
60472         changequote instead of pairs of brackets.
60473         Reported by Andreas Schwab <schwab@suse.de>.
60474
60475 2006-11-21  Jim Meyering  <jim@meyering.net>
60476
60477         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
60478         so as to remain compatible with older compilers.
60479         Patch from Michael Deutschmann.
60480
60481 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
60482
60483         * MODULES.html.sh (File system functions): Add openat.
60484
60485         * lib/openat.h (rpl_fstatat): New macro, if
60486         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
60487         (fstatat): Define to rpl_fstatat under the same conditions,
60488         unless COMPILING_FSTATAT.
60489         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
60490         seems to have the bug.
60491         * lib/fstatat.c: New file.
60492         * modules/openat (Files): Add it.
60493
60494 2006-11-20  Bruno Haible  <bruno@clisp.org>
60495
60496         * Makefile: New file.
60497
60498 2006-11-20  Jim Meyering  <jim@meyering.net>
60499
60500         The beginnings of syntax-related checks for gnulib.
60501         * lib/Makefile: New file.
60502         * lib/t-idcache: New script.  Ensure that the two halves of
60503         idcache.c stay in sync.
60504
60505         * lib/idcache.c: Adjust comments in user- and group- portions to
60506         be more accurate, and to be consistent with one another.
60507
60508 2006-11-20  Jim Meyering  <jim@meyering.net>
60509
60510         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
60511         continue using the flexible array member (thus, this module performs
60512         half as many malloc calls), with the addition that...
60513         (getgroup, getuser): Consistently record a non-match via an empty
60514         "name" string, and map an empty string match to a NULL return value.
60515         * modules/idcache (Depends-on): Re-add flexmember.
60516
60517         * lib/idcache.c (getuser): Remove all uses of the register keyword.
60518         (getuidbyname, getgroup, getgidbyname): Likewise.
60519
60520         Use cleaner syntax: NULL rather than 0.
60521         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
60522
60523 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
60524
60525         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
60526         It mishandled the case where the group was missing.
60527         Problem reported by Greg Schafer.
60528         * modules/idcache: Likewise.
60529
60530 2006-11-18  Jim Meyering  <jim@meyering.net>
60531
60532         * check-module (%exempt_header): Add exception for some
60533         conditionally-included headers.
60534
60535         * modules/i-ring (Depends-on): Add verify.
60536         (License): Change to LGPL.
60537
60538 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60539
60540         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
60541         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
60542         and inttostr.h.  Use snprintf rather than uinttostr, so that
60543         LGPLed code doesn't depend on GPLed.
60544
60545 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
60546
60547         * modules/inline (License): Change from GPL to LGPL.
60548
60549 2006-11-17  Jim Meyering  <jim@meyering.net>
60550
60551         * modules/d-type (License): Switch to LGPL.
60552
60553 2006-11-15  Bruno Haible  <bruno@clisp.org>
60554
60555         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
60556
60557 2006-11-15  Eric Blake  <ebb9@byu.net>
60558
60559         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
60560         the module dependency.
60561
60562 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60563             Bruno Haible  <bruno@clisp.org>
60564
60565         * gnulib-tool (func_create_testdir): Add license consistency check.
60566
60567 2006-11-15  Eric Blake  <ebb9@byu.net>
60568
60569         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
60570         random "(cached)" in configure output.
60571
60572 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60573
60574         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
60575         test for conforming inttypes.h is both announced and cached.
60576
60577         * MODULES.html.sh (seen_modules, seen_files): New variables.
60578         (func_module): Rewrite to use a few less gnulib-tool and sed
60579         invocations.  Avoid a couple of quadratic algorithms for ...
60580         (missed_modules, missed_files): ... these, with ...
60581         (func_append, func_tmpdir): ... these new functions, from
60582         gnulib-tool.  Analogously, install traps for cleanup.
60583
60584         * tests/test-gc.c (main): Remove unused variables.
60585         * tests/test-read-file.c: Include stdlib.h, for 'free'.
60586
60587 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
60588
60589         * modules/inttostr (License): Change to LGPL.
60590
60591 2006-11-14  Eric Blake  <ebb9@byu.net>
60592
60593         * modules/tempname (License): Change to LGPL.
60594
60595 2006-11-14  Eric Blake  <ebb9@byu.net>
60596
60597         * doc/functions.texi (Function Portability): *printf functions on
60598         Cygwin now understand all POSIX size specifiers.
60599
60600 2006-11-14  Bruno Haible  <bruno@clisp.org>
60601
60602         * modules/c-ctype (License): Change to LGPL.
60603
60604 2006-11-12  Bruno Haible  <bruno@clisp.org>
60605
60606         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
60607         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
60608         for GNOME libraries, for which the include files are installed in
60609         subdirectories of $prefix/include.
60610
60611 2006-11-12  Bruno Haible  <bruno@clisp.org>
60612
60613         * m4/lib-link.m4: Require at least autoconf-2.54.
60614         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
60615         name to underscores for the --with option.
60616
60617 2006-11-13  Bruno Haible  <bruno@clisp.org>
60618
60619         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
60620         the tests directory.
60621         Reported by Ralf Wildenhues.
60622
60623 2006-11-13  Bruno Haible  <bruno@clisp.org>
60624
60625         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
60626         (func_emit_initmacro_end): Undo the override here.
60627         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
60628         Works around the famous automake error in coreutils.
60629
60630 2006-11-13  Eric Blake  <ebb9@byu.net>
60631
60632         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
60633         element, not its node.
60634
60635 2006-11-12  Bruno Haible  <bruno@clisp.org>
60636
60637         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
60638         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
60639
60640 2006-11-12  Bruno Haible  <bruno@clisp.org>
60641
60642         * gnulib-tool: New option --local-symlink.
60643         (func_usage): Document it.
60644         (lsymbolic): New variable.
60645         (func_import, func_create_testdir): If --symlink was not specified,
60646         test whether --local-symlink was specified and the file comes from
60647         the local_gnulib_dir.
60648
60649 2006-11-12  Bruno Haible  <bruno@clisp.org>
60650
60651         * gnulib-tool (func_ln): New function.
60652         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
60653
60654 2006-11-12  Bruno Haible  <bruno@clisp.org>
60655
60656         Finish support for source files in subdirectories.
60657         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
60658         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
60659         AUTOMAKE_OPTIONS.
60660         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
60661
60662 2006-11-12  Bruno Haible  <bruno@clisp.org>
60663
60664         * gnulib-tool (func_get_automake_snippet): Synthesize also an
60665         EXTRA_lib_SOURCES augmentation.
60666         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
60667
60668 2006-11-12  Jim Meyering  <jim@meyering.net>
60669
60670         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
60671         file descriptors.  This also averts a failure on systems with
60672         native openat support when a traversed directory lacks "x" access.
60673         * lib/fts_.h: Include "i-ring.h"
60674         (struct FTS) [fts_fd_ring]: New member.
60675         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
60676         (FCHDIR): Add parentheses.
60677         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
60678         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
60679         When descending, rather than simply closing the previous
60680         fts_cwd_fd value, push that file descriptor onto the ring.
60681         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
60682         (fts_open): Initialize the new fd_ring member.
60683         (fts_close): Clear the ring.
60684         (fts_safe_changedir): When possible, use our new fd_ring to skip
60685         the diropen and fstat and dev/ino comparison that would normally
60686         accompany a virtual `chdir ("..")'.
60687
60688         * modules/fts (Depends-on): Add i-ring.
60689         * modules/i-ring: New module.
60690         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
60691         * m4/i-ring.m4: New file.
60692
60693 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60694
60695         * gnulib-tool (func_create_testdir): Fix replacement of
60696         `build-aux' in configure.ac.  Run autotools in gltests
60697         subdirectory.
60698         (func_create_testdir, func_create_megatestdir, test): There is
60699         no need for '--force' in most autotool invocations in a new
60700         tree.  Actually fail the whole test if any of the tools, or the
60701         configure or make stages fail.
60702
60703         Sync from Automake.
60704         * build-aux/gnupload: Revert last change.  Add pointer to upload
60705         instructions of the GNU Maintenance Instructions.
60706         Suggestion by Karl Berry.
60707
60708 2006-11-10  Jim Meyering  <jim@meyering.net>
60709
60710         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
60711
60712 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
60713
60714         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
60715         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
60716         (bind_textdomain_codeset) [! ENABLE_NLS]:
60717         Evaluate all the arguments.  That way, callers get compatible behavior
60718         if the arguments have side effects.  Also, it avoids some GCC
60719         diagnostics in some cases; Joel E. Denny reported problems when Bison
60720         was configured with --enable-gcc-warnigs.
60721
60722 2006-11-10  Jim Meyering  <jim@meyering.net>
60723
60724         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
60725         relevant options in CFLAGS (like -O, -fno-inline) are taken into
60726         account.
60727
60728 2006-11-10  Jim Meyering  <jim@meyering.net>
60729
60730         * modules/inline: New file/module.
60731         * modules/xalloc (Files): Remove m4/inline.m4.
60732         (Depends-on): Add inline, instead.
60733         * modules/oset: Likewise.
60734         * modules/list: Likewise.
60735
60736 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
60737
60738         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
60739         Problem reported by Matthew Woehlke.
60740
60741 2006-11-09  Bruno Haible  <bruno@clisp.org>
60742
60743         * lib/tempname.c (gen_tempname): Remove variant that invokes
60744         __gen_tempname.
60745         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
60746         __gen_tempname.
60747
60748 2006-11-08  Bruno Haible  <bruno@clisp.org>
60749
60750         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
60751         to 'yes' instead of 'cross-compiling'.
60752
60753 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
60754
60755         * lib/quotearg.h (quotearg_free): New decl.
60756         * lib/quotearg.c (quotearg_free): New function.
60757         (slot0, nslots, slotvec0, slotvec):
60758         Now file-scope so that quotearg_free can get at them.
60759
60760 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60761
60762         Sync from Automake.
60763         * build-aux/gnupload: Add missing 'gnu' to example URL.
60764         Report by Karl Berry.
60765
60766 2006-11-08  Bruno Haible  <bruno@clisp.org>
60767
60768         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
60769         Suggested by Paul Eggert.
60770
60771 2006-11-08  Jim Meyering  <jim@meyering.net>
60772
60773         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
60774         It's already included if !_LIBC.
60775         (fts_safe_changedir): Add a comment.
60776
60777 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
60778
60779         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
60780         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
60781         Matthew Woehlke.
60782
60783         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
60784         definitions up, to avoid colliding with change below.
60785         (static_inline) [HAVE_INLINE]: New macro.
60786         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
60787         Provide extern decls when !HAVE_INLINE.  Do not define unless
60788         static_inline is defined, either by us or by xmalloc.c.  Use
60789         static_inline rather than static inline.
60790         (XCALLOC): Optimize sizeof(T) = 1 case.
60791         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
60792
60793 2006-11-07  Bruno Haible  <bruno@clisp.org>
60794
60795         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
60796         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
60797         AC_C_INLINE.
60798         * modules/xalloc (Files): Add m4/inline.m4.
60799
60800 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60801
60802         * README: Fix typo.
60803         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
60804         (Miscellanous Notes): ...from this.
60805
60806 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
60807
60808         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
60809         Mention that offsetof should be used instead of sizeof.
60810         From Bruno Haible.
60811
60812 2006-11-07  Bruno Haible  <bruno@clisp.org>
60813
60814         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
60815
60816 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
60817
60818         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
60819         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
60820         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
60821         (gl_tree_add_before, gl_tree_add_after):
60822         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
60823         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
60824         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
60825         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
60826         (gl_linked_add_after, gl_linked_add_at): Likewise.
60827         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
60828         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
60829         (gl_tree_add_before, gl_tree_add_after): Likewise.
60830         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
60831         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
60832         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
60833
60834 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60835
60836         * lib/gl_oset.h: Use C comment style, not C++ comment style.
60837
60838 2006-11-06  Bruno Haible  <bruno@clisp.org>
60839
60840         * m4/inline.m4: New file.
60841         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
60842         * modules/list (Files): Add m4/inline.m4.
60843         * modules/oset (Files): Likewise.
60844
60845 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
60846
60847         * lib/idcache.c: Include <stddef.h>, for offsetof.
60848         (struct userid.name): Change from char * to a flexible array member.
60849         All uses changed.
60850         * modules/idcache (Depends-on): Add flexmember.
60851
60852         * MODULES.html.sh (Core language properties): New module flexmember.
60853         * modules/flexmember, m4/flexmember.m4: New files.
60854
60855         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
60856         inline functions that are identical with the old xnmalloc_inline,
60857         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
60858         that we can avoid some unnecessary integer multiplications and
60859         divisions in the common case where the element size is known at
60860         compile time.
60861         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
60862         needed.
60863         (xnboundedmalloc): Remove.
60864         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
60865         arguments, for consistency with rest of this header.
60866         (xcharalloc): Rewrite using XNMALLOC.
60867         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
60868         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
60869         versions have been moved to lib/xalloc.h and renamed to be the
60870         non-*_inline versions.
60871         (xmalloc, xrealloc): Implement without reference to the xnmalloc
60872         and xnrealloc functions, since those functions are now inline and
60873         now call us.
60874         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
60875         renaming described above.
60876         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
60877         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
60878         captures the dependency in AC_C_INLINE.
60879
60880         New module canonicalize-lgpl, proposed by Charles Wilson in
60881         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
60882         with a few small changes afterwards.
60883         * MODULES.html.sh (File system functions): New module
60884         canonicalize-lgpl.
60885         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
60886         and canonicalize_file_name.
60887         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
60888         * modules/canonicalize-lgpl: New files.
60889
60890 2006-11-05  Bruno Haible  <bruno@clisp.org>
60891
60892         * gnulib-tool (func_import, func_create_testdir): Create directories
60893         also for files in subdirectories of lib/.
60894
60895 2006-11-05  Bruno Haible  <bruno@clisp.org>
60896
60897         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
60898         ANSI C compliant.
60899
60900 2006-11-03  Bruno Haible  <bruno@clisp.org>
60901
60902         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
60903         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
60904         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
60905         (xnboundedmalloc): New inline function.
60906         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
60907         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
60908         xmalloc.
60909         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
60910         xmalloc.
60911         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
60912         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
60913         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
60914         xmalloc.
60915         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
60916         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
60917         xmalloc.
60918         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
60919         gl_tree_add_after): Use XMALLOC instead of xmalloc.
60920         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
60921         xmalloc.
60922         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
60923         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
60924         gl_tree_add_after): Use XMALLOC instead of xmalloc.
60925         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
60926         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
60927         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
60928         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
60929
60930 2006-11-03  Bruno Haible  <bruno@clisp.org>
60931
60932         * lib/c-ctype.h [C++]: Define functions without name mangling.
60933         * lib/fwriteerror.h [C++]: Likewise.
60934         * lib/gcd.h [C++]: Likewise.
60935         * lib/linebreak.h [C++]: Likewise.
60936
60937 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
60938
60939         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
60940         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
60941         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
60942         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
60943         Check for functions and headers just once.
60944         Check for declaration of canonicalize_file_name.
60945         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
60946
60947 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
60948
60949         * gnulib-tool (func_import): Fix typo in actioncmd.
60950
60951 2006-11-02  Bruno Haible  <bruno@clisp.org>
60952
60953         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
60954         newline sequence in the Makefile.am snippet as a space, like "make"
60955         does.
60956         Reported by Roger Persson <perrog@gmail.com>.
60957
60958 2006-11-01  Bruno Haible  <bruno@clisp.org>
60959
60960         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
60961         already declared in <string.h>.
60962         * lib/strcase.h (strncasecmp): Don't declare it if yes.
60963
60964 2006-11-01  Bruno Haible  <bruno@clisp.org>
60965
60966         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
60967         * lib/strcase.h: Include <string.h>.
60968         (strcasecmp): Define to rpl_strcasecmp here.
60969
60970 2006-11-01  Bruno Haible  <bruno@clisp.org>
60971
60972         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
60973
60974 2006-11-01  Eric Blake  <ebb9@byu.net>
60975
60976         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
60977
60978         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
60979
60980 2006-10-29  Bruno Haible  <bruno@clisp.org>
60981
60982         Make it compile in C++ mode.
60983         * lib/full-write.c (full_rw): Add a cast.
60984
60985 2006-11-01  Bruno Haible  <bruno@clisp.org>
60986
60987         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
60988         be POSIX compliant.
60989         Reported by Roger Persson <perrog@gmail.com>.
60990
60991 2006-11-01  Eric Blake  <ebb9@byu.net>
60992
60993         * lib/getopt_.h: Fix comments.
60994
60995 2006-10-31  Eric Blake  <ebb9@byu.net>
60996
60997         * modules/tmpdir (Depends-on): Add sys_stat.
60998         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
60999         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
61000         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
61001         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
61002         tempname.
61003
61004 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
61005
61006         Avoid some C++ diagnostics reported by Bruno Haible.
61007         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
61008         xmalloc.
61009         (quotearg_alloc): Use xcharalloc rather than xmalloc.
61010         (struct slotvec): Move to top level.
61011         (quotearg_n_options): Rewrite to avoid xmalloc.
61012         * lib/xalloc.h (xcharalloc): New function.
61013         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
61014         [defined __cplusplus]: Add function template that provides result
61015         type propagation.  This part of the change is from Bruno Haible.
61016
61017 2006-10-29  Bruno Haible  <bruno@clisp.org>
61018
61019         Make it compile in C++ mode.
61020         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
61021         * lib/strnlen1.c (strnlen1): Cast memchr result.
61022         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
61023         * lib/clean-temp.c (string_equals, string_hash): Add casts.
61024         (create_temp_dir): Rename local variable 'template'.
61025         (compile_csharp_using_sscli): Add cast.
61026         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
61027         * lib/findprog.c (find_in_path): Likewise.
61028         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
61029         * lib/wait-process.c (register_slave_subprocess): Likewise.
61030
61031 2006-10-22  Bruno Haible  <bruno@clisp.org>
61032
61033         * modules/tsearch: New file.
61034         * lib/tsearch.h: New file.
61035         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
61036         * m4/tsearch.m4: New file.
61037         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
61038
61039 2006-10-29  Eric Blake  <ebb9@byu.net>
61040
61041         * lib/arcfour.c: Assume config.h.
61042         * lib/arctwo.c: Likewise.
61043         * lib/base64.c: Likewise.
61044         * lib/check-version.c: Likewise.
61045         * lib/crc.c: Likewise.
61046         * lib/des.c: Likewise.
61047         * lib/gc-gnulib.c: Likewise.
61048         * lib/gc-libgcrypt.c: Likewise.
61049         * lib/gc-pbkdf2-sha1.c: Likewise.
61050         * lib/getaddrinfo.c: Likewise.
61051         * lib/getdelim.c: Likewise.
61052         * lib/getline.c: Likewise.
61053         * lib/hmac-md5.c: Likewise.
61054         * lib/hmac-sha1.c: Likewise.
61055         * lib/iconvme.c: Likewise.
61056         * lib/md2.c: Likewise.
61057         * lib/md4.c: Likewise.
61058         * lib/memxor.c: Likewise.
61059         * lib/read-file.c: Likewise.
61060         * lib/readline.c: Likewise.
61061         * lib/rijndael-alg-fst.c: Likewise.
61062         * lib/rijndael-api-fst.c: Likewise.
61063         * lib/xgetdomainname.c: Likewise.
61064
61065 2006-10-28  Eric Blake  <ebb9@byu.net>
61066
61067         * lib/xstrndup.c: Assume config.h.
61068
61069 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
61070
61071         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
61072         stat-macros.h is now for our own macros, whereas stat_h is for
61073         macros in the <sys/stat.h> name space.
61074         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
61075         (STAT_MACROS_H): Remove.
61076         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
61077         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
61078         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
61079         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
61080         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
61081         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
61082         Move these macros to ...
61083         * lib/stat_.h: here.  Don't include stat-macros.h.
61084         * lib/canonicalize.c: Don't include stat-macros.h.
61085         * lib/chown.c: Likewise.
61086         * lib/euidaccess.c: Likewise.
61087         * lib/file-type.c: Likewise.
61088         * lib/filemode.c: Likewise.
61089         * lib/glob.c: Likewise.
61090         * lib/isapipe.c: Likewise.
61091         * lib/lchown.c: Likewise.
61092         * lib/lstat.c: Likewise.
61093         * lib/mkdir-p.c: Likewise.
61094         * lib/rmdir.c: Likewise.
61095         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
61096         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
61097         unless mkdir isn't declared, to speed up 'configure'.
61098         Always create sys/stat.h, since it's unlikely any real sys/stat.h
61099         would define all the S_* symbols.
61100         * modules/canonicalize (Depends-on):
61101         Depend on sys_stat, not stat-macros.
61102         * modules/chown: Likewise.
61103         * modules/euidaccess: Likewise.
61104         * modules/filemode: Likewise.
61105         * modules/file-type: Likewise.
61106         * modules/glob: Likewise.
61107         * modules/isapipe: Likewise.
61108         * modules/lchown: Likewise.
61109         * modules/lstat: Likewise.
61110         * modules/mkancesdirs: Likewise.
61111         * modules/rmdir: Likewise.
61112         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
61113         * modules/modechange: Likewise.
61114         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
61115         (configure.ac): Remove gl_STAT_MACROS.
61116         * modules/sys_stat (Depends-on): Remove stat-macros.
61117
61118 2006-10-27  Bruno Haible  <bruno@clisp.org>
61119
61120         * m4/signed.m4: Remove file.
61121         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
61122         invocation.
61123         * modules/vasnprintf (Files): Remove m4/signed.m4.
61124
61125 2006-10-27  Bruno Haible  <bruno@clisp.org>
61126
61127         Update to GNU gettext 0.16.
61128         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
61129         m4/inttypes-h.m4, m4/signed.m4.
61130         * m4/gettext.m4: Update to GNU gettext 0.16.
61131         * m4/intl.m4: New file, from GNU gettext.
61132         * m4/intldir.m4: New file, from GNU gettext.
61133         * config/srclist.txt: Update
61134
61135 2006-10-27  Eric Blake  <ebb9@byu.net>
61136
61137         * MODULES.html.sh: Document tempname.
61138         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
61139         dependencies.
61140         (Files): Move lib/tempname.c...
61141         * modules/tempname: ...to this new module.
61142         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
61143         (gl_PREREQ_TEMPNAME): Move...
61144         * m4/tempname.m4: ...to this new file.
61145         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
61146         * modules/sys_stat (Depends-on): Add stat-macros.
61147         * lib/stat_.h (includes): Pick up stat macros.
61148         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
61149         if stat macros are broken.
61150         * lib/tempname.c (includes): No need to include "stat-macros.h".
61151         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
61152         (direxists, __path_search) [!_LIBC]: Don't compile these in
61153         gnulib; the tmpdir module covers that.
61154         * lib/tempname.h: New file.
61155
61156 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
61157
61158         * COPYING: Explain how gnulib-tool converts licence headers.
61159         Almost all wording by Eric Blake.
61160
61161 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
61162
61163         * lib/mbchar.h (is_basic_table): Make read-only.
61164         * lib/mbchar.c (is_basic_table): Likewise.
61165         Reported by John Darrington.
61166
61167 2006-10-25  Bruno Haible  <bruno@clisp.org>
61168
61169         * lib/progname.h (set_program_name): Undefine before defining.
61170
61171 2006-10-25  Bruno Haible  <bruno@clisp.org>
61172
61173         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
61174         false for non-gcc C++ compilers.
61175         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
61176
61177 2006-10-24  Bruno Haible  <bruno@clisp.org>
61178
61179         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
61180         iconv implementations like Irix iconv.
61181
61182 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
61183
61184         * modules/vararrays: New file.
61185         * m4/vararrays.m4: New file, taken from diffutils.
61186         * MODULES.html.sh: New module vararrays.
61187
61188 2006-10-24  Karl Berry  <karl@gnu.org>
61189
61190         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
61191         Don't call GNU Unix.
61192
61193 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61194
61195         * users.txt: Add Libtool.
61196
61197         Sync from Libtool:
61198
61199         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
61200
61201         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
61202         to gnulib's policy of including config.h unconditionally.
61203
61204 2006-10-24  Bruno Haible  <bruno@clisp.org>
61205
61206         * modules/wcwidth (Files): Add m4/wint_t.m4.
61207         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
61208         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
61209
61210 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
61211
61212         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
61213         to pacify GCC with some -W flags enabled.  Problem reported by
61214         Bruno Haible.
61215
61216 2006-10-24  Jim Meyering  <jim@meyering.net>
61217
61218         * MODULES.html.sh: Remove uinttostr.  It's not a module.
61219         Reported by Karl Berry.
61220
61221 2006-10-23  Bruno Haible  <bruno@clisp.org>
61222
61223         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
61224
61225 2006-10-24  Bruno Haible  <bruno@clisp.org>
61226
61227         * lib/gl_list.h: Use C comment style, not C++ comment style.
61228
61229 2006-10-23  Eric Blake  <ebb9@byu.net>
61230
61231         * lib/getaddrinfo.c (includes): Add missing include.
61232
61233 2006-10-23  Bruno Haible  <bruno@clisp.org>
61234             Paul Eggert  <eggert@cs.ucla.edu>
61235
61236         Ability to rename obstack_free.
61237         * lib/obstack.h (__obstack_free): New macro. Declare instead of
61238         obstack_free.
61239         (obstack_free): Invoke the __obstack_free macro.
61240         * lib/obstack.c (obstack_free): Use __obstack_free macro.
61241
61242 2006-10-23  Bruno Haible  <bruno@clisp.org>
61243             Paul Eggert  <eggert@cs.ucla.edu>
61244
61245         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
61246         __argc, __argv from the declaration. (They are defined as macros on
61247         mingw.)
61248
61249 2006-10-22  Bruno Haible  <bruno@clisp.org>
61250
61251         * doc/gnulib-intro.texi: New file.
61252         * doc/gnulib.texi: Include it.
61253
61254 2006-10-21  Bruno Haible  <bruno@clisp.org>
61255
61256         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
61257         "Introduction", "Miscellanous Notes", "Particular Modules".
61258
61259 2006-10-21  Bruno Haible  <bruno@clisp.org>
61260
61261         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61262         Change mostlyclean-local rule to avoid sh syntax error from bash
61263         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
61264
61265 2006-10-23  Jim Meyering  <jim@meyering.net>
61266
61267         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
61268         in place of snprintf.
61269
61270         * modules/inttostr (Files): Add lib/uinttostr.c.
61271         * lib/uinttostr.c (inttostr): New file/function.
61272         * lib/inttostr.h (uinttostr): Declare.
61273         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
61274         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
61275         Add uinttostr.
61276         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
61277
61278 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
61279
61280         * lib/canonicalize.c (ELOOP): Define if not already defined.
61281         Problem reported by Bruno Haible in
61282         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
61283
61284 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
61285
61286         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
61287         Problem reported by Perry Smith and Ville Laurikari.
61288
61289         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
61290         uses.
61291
61292 2006-10-19  Bruno Haible  <bruno@clisp.org>
61293
61294         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
61295         for mingw.
61296
61297 2006-10-19  Bruno Haible  <bruno@clisp.org>
61298
61299         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
61300         Needed for mingw.
61301
61302 2006-10-19  Bruno Haible  <bruno@clisp.org>
61303
61304         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
61305
61306 2006-10-19  Bruno Haible  <bruno@clisp.org>
61307
61308         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
61309         it.
61310
61311 2006-10-19  Bruno Haible  <bruno@clisp.org>
61312
61313         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
61314         invocation.
61315
61316 2006-10-19  Bruno Haible  <bruno@clisp.org>
61317
61318         * gnulib-tool (func_create_testdir): Don't include ftruncate and
61319         mountlist by default.
61320
61321 2006-10-16  Bruno Haible  <bruno@clisp.org>
61322
61323         * lib/c-strstr.c: Include c-strstr.h.
61324
61325 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
61326
61327         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
61328         in a slash.
61329
61330 2006-10-18  Bruno Haible  <bruno@clisp.org>
61331
61332         * lib/lock.h [C++]: Wrap definitions in extern "C".
61333
61334 2006-10-18  Bruno Haible  <bruno@clisp.org>
61335
61336         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
61337         gl_LIBOBJS list.
61338
61339 2006-10-18  Bruno Haible  <bruno@clisp.org>
61340
61341         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
61342
61343 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
61344
61345         * lib/xstrtol.h: Include gettext.h.
61346         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
61347         Problem reported by Eric Blake.
61348         * modules/xstrtol (Depends-on): Add gettext-h.
61349
61350 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
61351
61352         * lib/strftime.c (advance): New macro.
61353         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
61354         incomplete type, so you can't add 0 to it.  Problem and patch
61355         reported by Eelco Dolstra for dietlibc.
61356
61357 2006-10-18  Jim Meyering  <jim@meyering.net>
61358
61359         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
61360         type for a local, and rename it: s/up/user_proc/.
61361
61362 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
61363
61364         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
61365         READ_UTMP_USER_PROCESS.
61366         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
61367
61368 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
61369
61370         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
61371         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
61372
61373 2006-10-17  Eric Blake  <ebb9@byu.net>
61374
61375         * lib/sigprocmask.c (sigprocmask): Fix typo.
61376
61377         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
61378
61379         * modules/clean-temp (Makefile.am): Don't add to make output...
61380         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
61381         config.h.
61382
61383 2006-10-17  Bruno Haible  <bruno@clisp.org>
61384
61385         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
61386         differently if DEFAULT_TEXT_DOMAIN is set.
61387
61388 2006-10-16  Bruno Haible  <bruno@clisp.org>
61389
61390         * lib/clean-temp.c: Include fwriteerror.h.
61391
61392 2006-10-16  Bruno Haible  <bruno@clisp.org>
61393
61394         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
61395
61396 2006-10-16  Bruno Haible  <bruno@clisp.org>
61397
61398         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
61399         * lib/sigprocmask.h: Include <sys/types.h>.
61400         (sigset_t): Use the system's definition if present.
61401
61402 2006-10-17  Eric Blake  <ebb9@byu.net>
61403
61404         * lib/xvasprintf.c (includes): Assume config.h.
61405         * lib/xasprintf.c (includes): Likewise.
61406
61407 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
61408
61409         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
61410         at least as wide as intmax_t.
61411
61412 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
61413
61414         (Imported from Automake.)
61415         * build-aux/gnupload: Update to version 1.1 of directive file.
61416
61417 2006-10-16  Eric Blake  <ebb9@byu.net>
61418
61419         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
61420         match Automake 1.10a.
61421
61422 2006-10-14  Bruno Haible  <bruno@clisp.org>
61423
61424         * modules/sigprocmask: New file.
61425         * lib/sigprocmask.h: New file.
61426         * lib/sigprocmask.c: New file.
61427         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
61428         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
61429         request sigprocmask.o.
61430         (gl_PREREQ_SIGPROCMASK): New macro.
61431         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
61432         (Depends-on): Add sigprocmask.
61433         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
61434         gt_SIGNALBLOCKING. Test for 'raise' only once.
61435         * lib/fatal-signal.c: Include sigprocmask.h.
61436         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
61437         unblock_fatal_signals): Define always.
61438         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
61439         sigprocmask.
61440
61441 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
61442
61443         Sync from Automake.
61444         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
61445         which incorrectly sets the mode of an existing destination
61446         directory.  In some cases the unpatched install-sh could do the
61447         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
61448         system.  We hope this is rare in practice, but it's clearly worth
61449         fixing.  Problem reported by Alex Unleashed in
61450         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
61451         Also, don't bother to check for -m bugs unless we're using -m;
61452         suggested by Stepan Kasal.
61453
61454 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61455
61456         Sync from Automake.
61457         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
61458         `-c' flag, so they appear at the same position as in %FASTDEP%
61459         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
61460         which ignores unknown options only after the first non-option.
61461         Bug report against M4 by Nelson H. F. Beebe.
61462
61463 2006-10-13  Jim Meyering  <jim@meyering.net>
61464
61465         Fix a bug in yesterday's change.
61466         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
61467         p->fts_statp->st_dev would be used uninitialized.
61468         Ensures that we always call fts_stat on the very first entry.
61469         Miklos Szeredi reported that find -xdev stopped working.
61470
61471 2006-10-12  Bruno Haible  <bruno@clisp.org>
61472
61473         * gnulib-tool (func_get_automake_snippet): Append an automatically
61474         computed EXTRA_DIST augmentation.
61475         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
61476         * modules/alloca-opt (Makefile.am): Likewise.
61477         * modules/allocsa (Makefile.am): Likewise.
61478         * modules/arcfour (Makefile.am): Likewise.
61479         * modules/arctwo (Makefile.am): Likewise.
61480         * modules/argmatch (Makefile.am): Likewise.
61481         * modules/argz (Makefile.am): Likewise.
61482         * modules/atexit (Makefile.am): Likewise.
61483         * modules/backupfile (Makefile.am): Likewise.
61484         * modules/byteswap (Makefile.am): Likewise.
61485         * modules/c-strtod (Makefile.am): Likewise.
61486         * modules/c-strtold (Makefile.am): Likewise.
61487         * modules/calloc (Makefile.am): Likewise.
61488         * modules/canon-host (Makefile.am): Likewise.
61489         * modules/canonicalize (Makefile.am): Likewise.
61490         * modules/chdir-long (Makefile.am): Likewise.
61491         * modules/chdir-safer (Makefile.am): Likewise.
61492         * modules/check-version (Makefile.am): Likewise.
61493         * modules/chown (Makefile.am): Likewise.
61494         * modules/cloexec (Makefile.am): Likewise.
61495         * modules/close-stream (Makefile.am): Likewise.
61496         * modules/closeout (Makefile.am): Likewise.
61497         * modules/crc (Makefile.am): Likewise.
61498         * modules/csharpexec (Makefile.am): Likewise.
61499         * modules/cycle-check (Makefile.am): Likewise.
61500         * modules/des (Makefile.am): Likewise.
61501         * modules/dev-ino (Makefile.am): Likewise.
61502         * modules/dirfd (Makefile.am): Likewise.
61503         * modules/dirname (Makefile.am): Likewise.
61504         * modules/dup2 (Makefile.am): Likewise.
61505         * modules/eealloc (Makefile.am): Likewise.
61506         * modules/error (Makefile.am): Likewise.
61507         * modules/euidaccess (Makefile.am): Likewise.
61508         * modules/exclude (Makefile.am): Likewise.
61509         * modules/exitfail (Makefile.am): Likewise.
61510         * modules/fcntl-safer (Makefile.am): Likewise.
61511         * modules/fcntl (Makefile.am): Likewise.
61512         * modules/file-type (Makefile.am): Likewise.
61513         * modules/fileblocks (Makefile.am): Likewise.
61514         * modules/filemode (Makefile.am): Likewise.
61515         * modules/filenamecat (Makefile.am): Likewise.
61516         * modules/fnmatch (Makefile.am): Likewise.
61517         * modules/fopen-safer (Makefile.am): Likewise.
61518         * modules/fpending (Makefile.am): Likewise.
61519         * modules/fprintftime (Makefile.am): Likewise.
61520         * modules/free (Makefile.am): Likewise.
61521         * modules/fsusage (Makefile.am): Likewise.
61522         * modules/ftruncate (Makefile.am): Likewise.
61523         * modules/fts (Makefile.am): Likewise.
61524         * modules/gc-arcfour (Makefile.am): Likewise.
61525         * modules/gc-des (Makefile.am): Likewise.
61526         * modules/gc-hmac-md5 (Makefile.am): Likewise.
61527         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
61528         * modules/gc-md4 (Makefile.am): Likewise.
61529         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
61530         * modules/gc-sha1 (Makefile.am): Likewise.
61531         * modules/gc (Makefile.am): Likewise.
61532         * modules/getaddrinfo (Makefile.am): Likewise.
61533         * modules/getcwd (Makefile.am): Likewise.
61534         * modules/getdelim (Makefile.am): Likewise.
61535         * modules/getdomainname (Makefile.am): Likewise.
61536         * modules/getgroups (Makefile.am): Likewise.
61537         * modules/gethostname (Makefile.am): Likewise.
61538         * modules/gethrxtime (Makefile.am): Likewise.
61539         * modules/getline (Makefile.am): Likewise.
61540         * modules/getloadavg (Makefile.am): Likewise.
61541         * modules/getlogin_r (Makefile.am): Likewise.
61542         * modules/getndelim2 (Makefile.am): Likewise.
61543         * modules/getopt (Makefile.am): Likewise.
61544         * modules/getpagesize (Makefile.am): Likewise.
61545         * modules/getpass-gnu (Makefile.am): Likewise.
61546         * modules/getpass (Makefile.am): Likewise.
61547         * modules/getsubopt (Makefile.am): Likewise.
61548         * modules/gettime (Makefile.am): Likewise.
61549         * modules/gettimeofday (Makefile.am): Likewise.
61550         * modules/getugroups (Makefile.am): Likewise.
61551         * modules/getusershell (Makefile.am): Likewise.
61552         * modules/glob (Makefile.am): Likewise.
61553         * modules/group-member (Makefile.am): Likewise.
61554         * modules/hard-locale (Makefile.am): Likewise.
61555         * modules/hash (Makefile.am): Likewise.
61556         * modules/hmac-md5 (Makefile.am): Likewise.
61557         * modules/hmac-sha1 (Makefile.am): Likewise.
61558         * modules/human (Makefile.am): Likewise.
61559         * modules/idcache (Makefile.am): Likewise.
61560         * modules/imaxabs (Makefile.am): Likewise.
61561         * modules/imaxdiv (Makefile.am): Likewise.
61562         * modules/inet_ntop (Makefile.am): Likewise.
61563         * modules/inet_pton (Makefile.am): Likewise.
61564         * modules/intprops (Makefile.am): Likewise.
61565         * modules/inttostr (Makefile.am): Likewise.
61566         * modules/inttypes (Makefile.am): Likewise.
61567         * modules/isapipe (Makefile.am): Likewise.
61568         * modules/javaversion (Makefile.am): Likewise.
61569         * modules/lchmod (Makefile.am): Likewise.
61570         * modules/lchown (Makefile.am): Likewise.
61571         * modules/localcharset (Makefile.am): Likewise.
61572         * modules/long-options (Makefile.am): Likewise.
61573         * modules/lstat (Makefile.am): Likewise.
61574         * modules/malloc (Makefile.am): Likewise.
61575         * modules/mathl (Makefile.am): Likewise.
61576         * modules/mbchar (Makefile.am): Likewise.
61577         * modules/md2 (Makefile.am): Likewise.
61578         * modules/md4 (Makefile.am): Likewise.
61579         * modules/md5 (Makefile.am): Likewise.
61580         * modules/memcasecmp (Makefile.am): Likewise.
61581         * modules/memchr (Makefile.am): Likewise.
61582         * modules/memcmp (Makefile.am): Likewise.
61583         * modules/memcoll (Makefile.am): Likewise.
61584         * modules/memcpy (Makefile.am): Likewise.
61585         * modules/memmem (Makefile.am): Likewise.
61586         * modules/memmove (Makefile.am): Likewise.
61587         * modules/mempcpy (Makefile.am): Likewise.
61588         * modules/memrchr (Makefile.am): Likewise.
61589         * modules/memset (Makefile.am): Likewise.
61590         * modules/memxor (Makefile.am): Likewise.
61591         * modules/mkancesdirs (Makefile.am): Likewise.
61592         * modules/mkdir-p (Makefile.am): Likewise.
61593         * modules/mkdir (Makefile.am): Likewise.
61594         * modules/mkdtemp (Makefile.am): Likewise.
61595         * modules/mkstemp (Makefile.am): Likewise.
61596         * modules/mktime (Makefile.am): Likewise.
61597         * modules/modechange (Makefile.am): Likewise.
61598         * modules/mountlist (Makefile.am): Likewise.
61599         * modules/nanosleep (Makefile.am): Likewise.
61600         * modules/obstack (Makefile.am): Likewise.
61601         * modules/openat (Makefile.am): Likewise.
61602         * modules/pagealign_alloc (Makefile.am): Likewise.
61603         * modules/pathmax (Makefile.am): Likewise.
61604         * modules/physmem (Makefile.am): Likewise.
61605         * modules/poll (Makefile.am): Likewise.
61606         * modules/posixtm (Makefile.am): Likewise.
61607         * modules/posixver (Makefile.am): Likewise.
61608         * modules/putenv (Makefile.am): Likewise.
61609         * modules/quote (Makefile.am): Likewise.
61610         * modules/quotearg (Makefile.am): Likewise.
61611         * modules/raise (Makefile.am): Likewise.
61612         * modules/read-file (Makefile.am): Likewise.
61613         * modules/readline (Makefile.am): Likewise.
61614         * modules/readlink (Makefile.am): Likewise.
61615         * modules/readtokens (Makefile.am): Likewise.
61616         * modules/readutmp (Makefile.am): Likewise.
61617         * modules/realloc (Makefile.am): Likewise.
61618         * modules/regex (Makefile.am): Likewise.
61619         * modules/rename-dest-slash (Makefile.am): Likewise.
61620         * modules/rename (Makefile.am): Likewise.
61621         * modules/rijndael (Makefile.am): Likewise.
61622         * modules/rmdir (Makefile.am): Likewise.
61623         * modules/rpmatch (Makefile.am): Likewise.
61624         * modules/safe-read (Makefile.am): Likewise.
61625         * modules/safe-write (Makefile.am): Likewise.
61626         * modules/same-inode (Makefile.am): Likewise.
61627         * modules/same (Makefile.am): Likewise.
61628         * modules/save-cwd (Makefile.am): Likewise.
61629         * modules/savedir (Makefile.am): Likewise.
61630         * modules/setenv (Makefile.am): Likewise.
61631         * modules/settime (Makefile.am): Likewise.
61632         * modules/sha1 (Makefile.am): Likewise.
61633         * modules/sig2str (Makefile.am): Likewise.
61634         * modules/snprintf (Makefile.am): Likewise.
61635         * modules/stat-macros (Makefile.am): Likewise.
61636         * modules/stat-time (Makefile.am): Likewise.
61637         * modules/stdbool (Makefile.am): Likewise.
61638         * modules/stdint (Makefile.am): Likewise.
61639         * modules/stdlib-safer (Makefile.am): Likewise.
61640         * modules/stpcpy (Makefile.am): Likewise.
61641         * modules/stpncpy (Makefile.am): Likewise.
61642         * modules/strcase (Makefile.am): Likewise.
61643         * modules/strcasestr (Makefile.am): Likewise.
61644         * modules/strchrnul (Makefile.am): Likewise.
61645         * modules/strcspn (Makefile.am): Likewise.
61646         * modules/strdup (Makefile.am): Likewise.
61647         * modules/strerror (Makefile.am): Likewise.
61648         * modules/strftime (Makefile.am): Likewise.
61649         * modules/strndup (Makefile.am): Likewise.
61650         * modules/strnlen (Makefile.am): Likewise.
61651         * modules/strpbrk (Makefile.am): Likewise.
61652         * modules/strsep (Makefile.am): Likewise.
61653         * modules/strstr (Makefile.am): Likewise.
61654         * modules/strtod (Makefile.am): Likewise.
61655         * modules/strtoimax (Makefile.am): Likewise.
61656         * modules/strtok_r (Makefile.am): Likewise.
61657         * modules/strtol (Makefile.am): Likewise.
61658         * modules/strtoll (Makefile.am): Likewise.
61659         * modules/strtoul (Makefile.am): Likewise.
61660         * modules/strtoull (Makefile.am): Likewise.
61661         * modules/strtoumax (Makefile.am): Likewise.
61662         * modules/strverscmp (Makefile.am): Likewise.
61663         * modules/sys_socket (Makefile.am): Likewise.
61664         * modules/sys_stat (Makefile.am): Likewise.
61665         * modules/sysexits (Makefile.am): Likewise.
61666         * modules/time_r (Makefile.am): Likewise.
61667         * modules/timegm (Makefile.am): Likewise.
61668         * modules/timespec (Makefile.am): Likewise.
61669         * modules/tmpfile-safer (Makefile.am): Likewise.
61670         * modules/trim (Makefile.am): Likewise.
61671         * modules/unistd-safer (Makefile.am): Likewise.
61672         * modules/unlinkdir (Makefile.am): Likewise.
61673         * modules/unlocked-io (Makefile.am): Likewise.
61674         * modules/userspec (Makefile.am): Likewise.
61675         * modules/utime (Makefile.am): Likewise.
61676         * modules/utimecmp (Makefile.am): Likewise.
61677         * modules/utimens (Makefile.am): Likewise.
61678         * modules/vasnprintf (Makefile.am): Likewise.
61679         * modules/vasprintf (Makefile.am): Likewise.
61680         * modules/vsnprintf (Makefile.am): Likewise.
61681         * modules/xalloc (Makefile.am): Likewise.
61682         * modules/xgetcwd (Makefile.am): Likewise.
61683         * modules/xnanosleep (Makefile.am): Likewise.
61684         * modules/xreadlink (Makefile.am): Likewise.
61685         * modules/xstrtod (Makefile.am): Likewise.
61686         * modules/xstrtol (Makefile.am): Likewise.
61687         * modules/xstrtold (Makefile.am): Likewise.
61688         * modules/yesno (Makefile.am): Likewise.
61689         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
61690
61691 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
61692
61693         * modules/error (Makefile.am): Distribute files through
61694         EXTRA_DIST, not lib_SOURCES.
61695
61696 2006-10-12  Eric Blake  <ebb9@byu.net>
61697
61698         * modules/error (Makefile.am): Distribute files in /lib.
61699         * modules/obstack (Makefile.am): Likewise.
61700
61701 2006-10-12  Bruno Haible  <bruno@clisp.org>
61702
61703         * modules/acl (Makefile.am): Distribute all files in lib/ through
61704         EXTRA_DIST.
61705         * modules/arcfour (Makefile.am): Likewise.
61706         * modules/arctwo (Makefile.am): Likewise.
61707         * modules/argmatch (Makefile.am): Likewise.
61708         * modules/argz (Makefile.am): Likewise.
61709         * modules/atexit (Makefile.am): Likewise.
61710         * modules/backupfile (Makefile.am): Likewise.
61711         * modules/c-strtod (Makefile.am): Likewise.
61712         * modules/c-strtold (Makefile.am): Likewise.
61713         * modules/calloc (Makefile.am): Likewise.
61714         * modules/canon-host (Makefile.am): Likewise.
61715         * modules/canonicalize (Makefile.am): Likewise.
61716         * modules/chdir-long (Makefile.am): Likewise.
61717         * modules/chdir-safer (Makefile.am): Likewise.
61718         * modules/check-version (Makefile.am): Likewise.
61719         * modules/chown (Makefile.am): Likewise.
61720         * modules/cloexec (Makefile.am): Likewise.
61721         * modules/close-stream (Makefile.am): Likewise.
61722         * modules/closeout (Makefile.am): Likewise.
61723         * modules/crc (Makefile.am): Likewise.
61724         * modules/cycle-check (Makefile.am): Likewise.
61725         * modules/des (Makefile.am): Likewise.
61726         * modules/dirfd (Makefile.am): Likewise.
61727         * modules/dirname (Makefile.am): Likewise.
61728         * modules/dup2 (Makefile.am): Likewise.
61729         * modules/euidaccess (Makefile.am): Likewise.
61730         * modules/exclude (Makefile.am): Likewise.
61731         * modules/exitfail (Makefile.am): Likewise.
61732         * modules/fcntl-safer (Makefile.am): Likewise.
61733         * modules/file-type (Makefile.am): Likewise.
61734         * modules/fileblocks (Makefile.am): Likewise.
61735         * modules/filemode (Makefile.am): Likewise.
61736         * modules/filenamecat (Makefile.am): Likewise.
61737         * modules/fnmatch (Makefile.am): Likewise.
61738         * modules/fopen-safer (Makefile.am): Likewise.
61739         * modules/fpending (Makefile.am): Likewise.
61740         * modules/fprintftime (Makefile.am): Likewise.
61741         * modules/free (Makefile.am): Likewise.
61742         * modules/fsusage (Makefile.am): Likewise.
61743         * modules/ftruncate (Makefile.am): Likewise.
61744         * modules/fts (Makefile.am): Likewise.
61745         * modules/gc (Makefile.am): Likewise.
61746         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
61747         * modules/getaddrinfo (Makefile.am): Likewise.
61748         * modules/getcwd (Makefile.am): Likewise.
61749         * modules/getdelim (Makefile.am): Likewise.
61750         * modules/getdomainname (Makefile.am): Likewise.
61751         * modules/getgroups (Makefile.am): Likewise.
61752         * modules/gethostname (Makefile.am): Likewise.
61753         * modules/gethrxtime (Makefile.am): Likewise.
61754         * modules/getline (Makefile.am): Likewise.
61755         * modules/getloadavg (Makefile.am): Likewise.
61756         * modules/getlogin_r (Makefile.am): Likewise.
61757         * modules/getopt (Makefile.am): Likewise.
61758         * modules/getpass (Makefile.am): Likewise.
61759         * modules/getpass-gnu (Makefile.am): Likewise.
61760         * modules/getsubopt (Makefile.am): Likewise.
61761         * modules/gettime (Makefile.am): Likewise.
61762         * modules/gettimeofday (Makefile.am): Likewise.
61763         * modules/getugroups (Makefile.am): Likewise.
61764         * modules/getusershell (Makefile.am): Likewise.
61765         * modules/glob (Makefile.am): Likewise.
61766         * modules/group-member (Makefile.am): Likewise.
61767         * modules/hard-locale (Makefile.am): Likewise.
61768         * modules/hash (Makefile.am): Likewise.
61769         * modules/hmac-md5 (Makefile.am): Likewise.
61770         * modules/hmac-sha1 (Makefile.am): Likewise.
61771         * modules/human (Makefile.am): Likewise.
61772         * modules/idcache (Makefile.am): Likewise.
61773         * modules/imaxabs (Makefile.am): Likewise.
61774         * modules/imaxdiv (Makefile.am): Likewise.
61775         * modules/inet_ntop (Makefile.am): Likewise.
61776         * modules/inet_pton (Makefile.am): Likewise.
61777         * modules/inttostr (Makefile.am): Likewise.
61778         * modules/isapipe (Makefile.am): Likewise.
61779         * modules/lchown (Makefile.am): Likewise.
61780         * modules/long-options (Makefile.am): Likewise.
61781         * modules/lstat (Makefile.am): Likewise.
61782         * modules/malloc (Makefile.am): Likewise.
61783         * modules/mathl (Makefile.am): Likewise.
61784         * modules/mbchar (Makefile.am): Likewise.
61785         * modules/md2 (Makefile.am): Likewise.
61786         * modules/md4 (Makefile.am): Likewise.
61787         * modules/md5 (Makefile.am): Likewise.
61788         * modules/memcasecmp (Makefile.am): Likewise.
61789         * modules/memchr (Makefile.am): Likewise.
61790         * modules/memcmp (Makefile.am): Likewise.
61791         * modules/memcoll (Makefile.am): Likewise.
61792         * modules/memcpy (Makefile.am): Likewise.
61793         * modules/memmem (Makefile.am): Likewise.
61794         * modules/memmove (Makefile.am): Likewise.
61795         * modules/mempcpy (Makefile.am): Likewise.
61796         * modules/memrchr (Makefile.am): Likewise.
61797         * modules/memset (Makefile.am): Likewise.
61798         * modules/memxor (Makefile.am): Likewise.
61799         * modules/mkancesdirs (Makefile.am): Likewise.
61800         * modules/mkdir (Makefile.am): Likewise.
61801         * modules/mkdir-p (Makefile.am): Likewise.
61802         * modules/mkdtemp (Makefile.am): Likewise.
61803         * modules/mkstemp (Makefile.am): Likewise.
61804         * modules/mktime (Makefile.am): Likewise.
61805         * modules/modechange (Makefile.am): Likewise.
61806         * modules/mountlist (Makefile.am): Likewise.
61807         * modules/nanosleep (Makefile.am): Likewise.
61808         * modules/openat (Makefile.am): Likewise.
61809         * modules/pagealign_alloc (Makefile.am): Likewise.
61810         * modules/physmem (Makefile.am): Likewise.
61811         * modules/poll (Makefile.am): Likewise.
61812         * modules/posixtm (Makefile.am): Likewise.
61813         * modules/posixver (Makefile.am): Likewise.
61814         * modules/putenv (Makefile.am): Likewise.
61815         * modules/quote (Makefile.am): Likewise.
61816         * modules/quotearg (Makefile.am): Likewise.
61817         * modules/raise (Makefile.am): Likewise.
61818         * modules/read-file (Makefile.am): Likewise.
61819         * modules/readline (Makefile.am): Likewise.
61820         * modules/readlink (Makefile.am): Likewise.
61821         * modules/readtokens (Makefile.am): Likewise.
61822         * modules/readutmp (Makefile.am): Likewise.
61823         * modules/realloc (Makefile.am): Likewise.
61824         * modules/regex (Makefile.am): Likewise.
61825         * modules/rename (Makefile.am): Likewise.
61826         * modules/rename-dest-slash (Makefile.am): Likewise.
61827         * modules/rijndael (Makefile.am): Likewise.
61828         * modules/rmdir (Makefile.am): Likewise.
61829         * modules/rpmatch (Makefile.am): Likewise.
61830         * modules/safe-read (Makefile.am): Likewise.
61831         * modules/safe-write (Makefile.am): Likewise.
61832         * modules/same (Makefile.am): Likewise.
61833         * modules/save-cwd (Makefile.am): Likewise.
61834         * modules/savedir (Makefile.am): Likewise.
61835         * modules/setenv (Makefile.am): Likewise.
61836         * modules/settime (Makefile.am): Likewise.
61837         * modules/sha1 (Makefile.am): Likewise.
61838         * modules/sig2str (Makefile.am): Likewise.
61839         * modules/snprintf (Makefile.am): Likewise.
61840         * modules/stdlib-safer (Makefile.am): Likewise.
61841         * modules/stpcpy (Makefile.am): Likewise.
61842         * modules/stpncpy (Makefile.am): Likewise.
61843         * modules/strcase (Makefile.am): Likewise.
61844         * modules/strcasestr (Makefile.am): Likewise.
61845         * modules/strchrnul (Makefile.am): Likewise.
61846         * modules/strcspn (Makefile.am): Likewise.
61847         * modules/strdup (Makefile.am): Likewise.
61848         * modules/strerror (Makefile.am): Likewise.
61849         * modules/strftime (Makefile.am): Likewise.
61850         * modules/strndup (Makefile.am): Likewise.
61851         * modules/strnlen (Makefile.am): Likewise.
61852         * modules/strpbrk (Makefile.am): Likewise.
61853         * modules/strsep (Makefile.am): Likewise.
61854         * modules/strstr (Makefile.am): Likewise.
61855         * modules/strtod (Makefile.am): Likewise.
61856         * modules/strtoimax (Makefile.am): Likewise.
61857         * modules/strtok_r (Makefile.am): Likewise.
61858         * modules/strtol (Makefile.am): Likewise.
61859         * modules/strtoll (Makefile.am): Likewise.
61860         * modules/strtoul (Makefile.am): Likewise.
61861         * modules/strtoull (Makefile.am): Likewise.
61862         * modules/strtoumax (Makefile.am): Likewise.
61863         * modules/strverscmp (Makefile.am): Likewise.
61864         * modules/time_r (Makefile.am): Likewise.
61865         * modules/timegm (Makefile.am): Likewise.
61866         * modules/tmpfile-safer (Makefile.am): Likewise.
61867         * modules/unistd-safer (Makefile.am): Likewise.
61868         * modules/unlinkdir (Makefile.am): Likewise.
61869         * modules/userspec (Makefile.am): Likewise.
61870         * modules/utime (Makefile.am): Likewise.
61871         * modules/utimecmp (Makefile.am): Likewise.
61872         * modules/utimens (Makefile.am): Likewise.
61873         * modules/vasnprintf (Makefile.am): Likewise.
61874         * modules/vasprintf (Makefile.am): Likewise.
61875         * modules/vsnprintf (Makefile.am): Likewise.
61876         * modules/xalloc (Makefile.am): Likewise.
61877         * modules/xgetcwd (Makefile.am): Likewise.
61878         * modules/xnanosleep (Makefile.am): Likewise.
61879         * modules/xreadlink (Makefile.am): Likewise.
61880         * modules/xstrtod (Makefile.am): Likewise.
61881         * modules/xstrtol (Makefile.am): Likewise.
61882         * modules/xstrtold (Makefile.am): Likewise.
61883         * modules/yesno (Makefile.am): Likewise.
61884
61885 2006-10-12  Jim Meyering  <jim@meyering.net>
61886
61887         * m4/getloadavg.m4: Revert the change below.
61888
61889         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
61890         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
61891         fail with a symlink, which is what coreutils' ./bootstrap now
61892         creates by default.
61893
61894 2006-10-12  Bruno Haible  <bruno@clisp.org>
61895
61896         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
61897         mingw.
61898         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
61899         MSVC and mingw explicitly.
61900
61901 2006-10-11  Simon Josefsson  <jas@extundo.com>
61902             Bruno Haible  <bruno@clisp.org>
61903
61904         Add support for multiple gnulib-tool invocations in the scope of a
61905         single configure.ac file.
61906         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
61907         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
61908         with the same contents as the _LIBADD variable.
61909         (func_emit_initmacro_start, func_emit_initmacro_end,
61910         func_emit_initmacro_done): New functions.
61911         (func_import, func_create_testdir): Invoke them. Allow the identifiers
61912         gl_LIBOBJS and gl_LTLIBOBJS.
61913
61914 2006-10-11  Bruno Haible  <bruno@clisp.org>
61915
61916         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
61917         (func_create_testdir): Don't create po/Makefile.am, don't invoke
61918         autoreconf. Instead, invoke autopoint explicitly but move back the
61919         *.m4 files from gnulib.
61920
61921 2006-10-11  Bruno Haible  <bruno@clisp.org>
61922
61923         * gnulib-tool (func_usage): Make module names after --create-testdir
61924         optional.
61925         (func_create_testdir): If no module was specified, use nearly all
61926         modules.
61927
61928 2006-10-12  Jim Meyering  <jim@meyering.net>
61929
61930         Big performance improvement for fts-based tools that use FTS_NOSTAT.
61931         Avoid spurious inode-mismatch problems on non-POSIX file systems.
61932         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
61933         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
61934         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
61935         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
61936         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
61937         (fts_set_stat_required): New function.
61938         (fts_open): Defer the calls to fts_stat, if possible or requested.
61939         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
61940         into fts_stat itself.
61941         (fts_read): Perform any required (deferred) fts_stat call.
61942         (fts_build): Likewise, for the directory we're about to open and read.
61943         In the readdir loop, carefully decide whether each entry will require
61944         an eventual call to fts_stat, using dirent.d_type info if available.
61945         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
61946         a command line argument into this function.  Update all callers.
61947         Map a return value of FTS_DOT to FTS_D for a command line argument.
61948         * modules/fts (Depends-on): Add d-type.  Alphabetize.
61949         Thanks to Miklos Szeredi for his tenacity and for the initial
61950         bug report about "find" failing on a FUSE-based file system.
61951
61952         * lib/fts.c (fts_open): Use consistent indentation.
61953
61954 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
61955
61956         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
61957         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
61958         reported by Jim Meyering.  All uses of cache variables renamed
61959         to match Autoconf's.
61960         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
61961         the other one.
61962
61963         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
61964         Fix misspelling in diagnostic.
61965
61966 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
61967
61968         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
61969         defined.  Problem reported by Matthew Woehlke.
61970
61971         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
61972         Add support for Tandem NonStop R series.
61973         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
61974         Use new macro.
61975
61976         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
61977         (has_trailing_slash): Omit size arg; all callers changed.
61978         Omit 'inline', since it doesn't help performance and we'd
61979         need to configure it.
61980         Don't count //, ///, etc. as having a trailing slash.
61981         As a side effect, this removes a C99ism reported by Matthew Woehlke.
61982         (rpl_rename_dest_slash): On failure, use rename's errno rather
61983         than (in some cases) an incorrect or junk errno.
61984         Simplify code by removing need to compute length; this does
61985         cause it to make two passes instead of one over the file name,
61986         but it's worth it.
61987
61988         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
61989         change, since Autoconf's version may no longer be appropriate now
61990         that we are using CVS Autoconf's version.  Add support for Tandem.
61991
61992 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
61993             Bruno Haible  <bruno@clisp.org>
61994
61995         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
61996         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
61997         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
61998         gl_AC_TYPE_LONG_LONG.
61999
62000         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
62001         instead of HAVE_LONG_LONG.
62002         * lib/printf-args.c (printf_fetchargs): Likewise.
62003         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
62004         * lib/vasnprintf.c (VASNPRINTF): Likewise.
62005         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
62006         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
62007         gl_AC_TYPE_LONG_LONG.
62008
62009 2006-10-11  Bruno Haible  <bruno@clisp.org>
62010
62011         * m4/longlong.m4: Add comments.
62012         * m4/ulonglong.m4: Likewise.
62013
62014 2006-10-10  Bruno Haible  <bruno@clisp.org>
62015
62016         Make it possible to #define stpcpy, strdup to aliases.
62017         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
62018         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
62019
62020 2006-10-10  Bruno Haible  <bruno@clisp.org>
62021
62022         Make it possible to #define gcd to an alias.
62023         * lib/gcd.c: Include config.h.
62024
62025 2006-10-10  Bruno Haible  <bruno@clisp.org>
62026
62027         Make it possible to #define c_isascii to an alias.
62028         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
62029         defined. Undefine the macros before defining them, to avoid gcc
62030         warnings.
62031         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
62032         define NO_C_CTYPE_MACROS early.
62033
62034 2006-10-10  Bruno Haible  <bruno@clisp.org>
62035
62036         Make it possible to #define set_program_name to an alias.
62037         * lib/progname.c: Don't undefine set_program_name; instead, undefine
62038         ENABLE_RELOCATABLE early.
62039
62040 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
62041
62042         Port to Tandem NSK OSS, which has 64-bit signed int but at most
62043         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
62044         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
62045         More generally, don't assume that 64-bit signed int is available
62046         if unsigned int is, and vice versa.
62047         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
62048         unsigned symbols, not on their signed counterparts.
62049         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
62050         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
62051         (UINT64_C, UINTMAX_C):
62052         Likewise.
62053         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
62054         unsigned counterparts.
62055         (Have_long_long, Unsigned): New macros.
62056         (Int): Renamed from INT.
62057         (strtoimax): Use the new macros.
62058         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
62059         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
62060         * modules/inttypes (inttypes.h): Substitute
62061         HAVE_UNSIGNED_LONG_LONG_INT.
62062         * modules/stdint (stdint.h): Likewise.
62063         (Files): Add m4/ulonglong.m4.
62064
62065 2006-10-10  Bruno Haible  <bruno@clisp.org>
62066
62067         Fix a gcc -Wshadow warning.
62068         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
62069         to 'bucket'.
62070         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
62071         gl_linked_indexof_from_to): Likewise.
62072         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
62073         Likewise.
62074         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
62075         Likewise.
62076         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
62077         Reported by Eric Blake.
62078
62079 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
62080
62081         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
62082         for NetBSD.  Problem reported by Bruno Haible.
62083
62084 2006-10-09  Jim Meyering  <jim@meyering.net>
62085
62086         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
62087         Patch from Bruno Haible.
62088
62089 2006-10-09  Jim Meyering  <jim@meyering.net>
62090
62091         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
62092         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
62093         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
62094
62095 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
62096
62097         Don't include <config.h> twice; this doesn't work in some cases,
62098         e.g., when config.h has "#define intmax_t long long int" and
62099         we include <config.h>, <inttypes.h>, <config.h> in that order.
62100         Problem reported by Matthew Woehlke in:
62101         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
62102         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
62103         * lib/fts-cycle.c: Don't include config.h.
62104         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
62105         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
62106         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
62107         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
62108         inttypes.h.
62109         * lib/xstrtoumax.c: Likewise.
62110         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
62111         __strtol and the like, so that this module is more like its siblings.
62112         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
62113         Remove; no longer needed now that we assume gnulib inttypes.h.
62114
62115 2006-10-08  Bruno Haible  <bruno@clisp.org>
62116
62117         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
62118         option.
62119
62120 2006-10-07  Jim Meyering  <jim@meyering.net>
62121
62122         * modules/inttypes (inttypes.h): Revert what seems to have been
62123         an inadvertent part of today's change: use "|", not "/" in the
62124         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
62125
62126 2006-10-07  Bruno Haible  <bruno@clisp.org>
62127
62128         * modules/sublist: New file.
62129
62130 2006-10-07  Bruno Haible  <bruno@clisp.org>
62131
62132         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
62133         * modules/argz (argz.h): Likewise.
62134         * modules/arpa_inet (arpa/inet.h): Likewise.
62135         * modules/byteswap (byteswap.h): Likewise.
62136         * modules/configmake (configmake.h): Likewise.
62137         * modules/fcntl (fcntl.h): Likewise.
62138         * modules/fnmatch (fnmatch.h): Likewise.
62139         * modules/getopt (getopt.h): Likewise.
62140         * modules/glob (glob.h): Likewise.
62141         * modules/inttypes (inttypes.h): Likewise.
62142         * modules/netinet_in (netinet/in.h): Likewise.
62143         * modules/poll (poll.h): Likewise.
62144         * modules/stdbool (stdbool.h): Likewise.
62145         * modules/stdint (stdint.h): Likewise.
62146         * modules/sys_select (sys/select.h): Likewise.
62147         * modules/sys_socket (sys/socket.h): Likewise.
62148         * modules/sys_stat (sys/stat.h): Likewise.
62149         * modules/sysexits (sysexits.h): Likewise.
62150         * modules/unistd (unistd.h): Likewise.
62151         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62152         Add a "DO NOT EDIT" comment to the generated file.
62153         (func_import): Likewise for gnulib-comp.m4.
62154
62155 2006-10-07  Bruno Haible  <bruno@clisp.org>
62156
62157         * lib/gl_sublist.h: New file.
62158         * lib/gl_sublist.c: New file.
62159
62160 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
62161
62162         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
62163         name (relative to the original working directory) and the file
62164         name component (relative to the temporary working directory).  All
62165         callers changed.
62166         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
62167         * lib/mkdir-p.c (make_dir_parents): Likewise.
62168         * lib/mkdir-p.h (make_dir_parents): Likewise.
62169
62170 2006-10-06  Eric Blake  <ebb9@byu.net>
62171
62172         Define several macros for use by the clean-temp module.
62173         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
62174         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
62175         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
62176
62177         * lib/clean-temp.h (close_stream_temp): New declaration.
62178         * lib/clean-temp.c (includes): Pull in headers according to what
62179         other modules are in use.
62180         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
62181
62182 2006-10-06  Bruno Haible  <bruno@clisp.org>
62183
62184         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
62185         instead of fopen, fwriteerror.
62186
62187 2006-10-06  Bruno Haible  <bruno@clisp.org>
62188
62189         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
62190         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
62191         int.
62192         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
62193         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
62194         Return an error indicator.
62195         Suggested by Eric Blake.
62196
62197 2006-10-06  Bruno Haible  <bruno@clisp.org>
62198
62199         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
62200         Reported by Eric Blake.
62201
62202 2006-10-06  Bruno Haible  <bruno@clisp.org>
62203
62204         * modules/closeout (Description): Mention stderr too.
62205
62206 2006-10-06  Bruno Haible  <bruno@clisp.org>
62207         and Paul Eggert  <eggert@cs.ucla.edu>
62208
62209         * lib/closeout.c (close_stdout): Also close stderr.
62210         * lib/closeout.h: Update comment.
62211
62212 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
62213
62214         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
62215         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
62216         * lib/dirchownmod.c: Include lchown.h.
62217         * lib/lchown.c: Don't include files that lchown.h now includes.
62218         Don't declare chown, since lchown.h now does that.
62219         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
62220         (lchown): Define to rpl_chown if lchown is declared but
62221         does not exist.  Declare using a prototype if lchown is not
62222         declared.  Add a copyright notice.
62223         * lib/mkstemp.h: Include <unistd.h>.
62224         * lib/openat.c: Include lchown.h.
62225
62226         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
62227         we now test for that separately.
62228         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
62229         rather than O_NOFOLLOW, when testing whether it's possible to
62230         avoid a race condition reliably.
62231         * lib/savewd.c (savewd_chdir): Likewise.
62232
62233         Remove macros that are no longer needed now that stdint.h is
62234         reliable.
62235         * lib/fsusage.c (UINTMAX_MAX): Remove.
62236         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
62237         * lib/utimecmp.c (SIZE_MAX): Remove.
62238
62239         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
62240
62241         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
62242         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
62243         O_NOATIME works.
62244
62245 2006-10-05  Bruno Haible  <bruno@clisp.org>
62246
62247         * lib/gl_list.h (gl_sortedlist_search_from_to,
62248         gl_sortedlist_indexof_from_to): New declarations.
62249         (gl_list_implementation): New fields sortedlist_search_from_to,
62250         sortedlist_indexof_from_to.
62251         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
62252         inline functions.
62253         * lib/gl_list.c (gl_sortedlist_search_from_to,
62254         gl_sortedlist_indexof_from_to): New functions.
62255         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
62256         function.
62257         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
62258         (gl_array_sortedlist_search_from_to): New function.
62259         (gl_array_list_implementation): Update.
62260         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
62261         function.
62262         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
62263         (gl_carray_sortedlist_search_from_to): New function.
62264         (gl_carray_list_implementation): Update.
62265         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
62266         gl_linked_sortedlist_indexof_from_to): New functions.
62267         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
62268         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
62269         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
62270         gl_tree_sortedlist_indexof_from_to): New functions.
62271         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
62272         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
62273         Update.
62274         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
62275         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
62276         Update.
62277
62278 2006-10-05  Bruno Haible  <bruno@clisp.org>
62279
62280         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
62281         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
62282         (struct gl_list_implementation): Add fields search_from_to,
62283         indexof_from_to. Remove fields search, indexof.
62284         (gl_list_search): Use the search_from_to method.
62285         (gl_list_search_from, gl_list_search_from_to): New functions.
62286         (gl_list_indexof): Use the indexof_from_to method.
62287         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
62288         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
62289         (gl_list_search_from, gl_list_search_from_to): New functions.
62290         (gl_list_indexof): Use the indexof_from_to method.
62291         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
62292         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
62293         gl_array_indexof. Add start_index, end_index arguments.
62294         (gl_array_search_from_to): Renamed from gl_array_search. Add
62295         start_index, end_index arguments.
62296         (gl_array_remove, gl_array_list_implementation): Update.
62297         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
62298         gl_carray_indexof. Add start_index, end_index arguments.
62299         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
62300         start_index, end_index arguments.
62301         (gl_carray_remove, gl_carray_list_implementation): Update.
62302         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
62303         gl_linked_search. Add start_index, end_index arguments.
62304         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
62305         start_index, end_index arguments.
62306         (gl_linked_remove): Update.
62307         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
62308         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
62309         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
62310         field to 'size_t'.
62311         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
62312         gl_tree_search. Add start_index, end_index arguments.
62313         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
62314         start_index, end_index arguments.
62315         (gl_tree_remove): Update.
62316         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
62317         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
62318         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
62319         function.
62320         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
62321         gl_tree_search. Add start_index, end_index arguments.
62322         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
62323         start_index, end_index arguments.
62324         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
62325         Update.
62326         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
62327
62328 2006-10-05  Bruno Haible  <bruno@clisp.org>
62329
62330         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
62331
62332         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
62333         fwriteerror_temp): New declarations.
62334         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
62335         (descriptors): New variable.
62336         (cleanup): First, close the descriptors.
62337         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
62338         fclose_temp, fwriteerror_temp): New functions.
62339
62340 2006-10-04  Jim Meyering  <jim@meyering.net>
62341
62342         * lib/fts.c (fts_open): Tiny comment change.
62343
62344 2006-10-04  Bruno Haible  <bruno@clisp.org>
62345
62346         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
62347         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
62348         gl_LOCK_BODY.
62349         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
62350         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
62351         gl_LOCK_EARLY_BODY.
62352         (gl_LOCK): Require gl_LOCK_BODY.
62353
62354 2006-10-04  Bruno Haible  <bruno@clisp.org>
62355
62356         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
62357         (gl_oset_search_atleast): New declaration.
62358         (struct gl_oset_implementation): Add field 'search_atleast'.
62359         (gl_oset_search_atleast): New inline function.
62360         * lib/gl_oset.c (gl_oset_search_atleast): New function.
62361         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
62362         (gl_array_oset_implementation): Update.
62363         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
62364         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
62365         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
62366
62367 2006-10-04  Bruno Haible  <bruno@clisp.org>
62368
62369         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
62370
62371 2006-10-03  Bruno Haible  <bruno@clisp.org>
62372
62373         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
62374         from gl_avltreehash_list_implementation.
62375
62376 2006-10-03  Bruno Haible  <bruno@clisp.org>
62377
62378         * lib/gl_oset.c (gl_oset_add): Fix return type.
62379
62380 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
62381
62382         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
62383
62384 2006-10-02  Eric Blake  <ebb9@byu.net>
62385
62386         * modules/strnlen (Depends-on): Add extensions.
62387
62388 2006-10-02  Eric Blake  <ebb9@byu.net>
62389
62390         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
62391         definition in 2.60+.
62392
62393 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
62394
62395         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
62396         checks.
62397
62398 2006-10-02  Bruno Haible  <bruno@clisp.org>
62399
62400         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
62401         to the AUTOMAKE_OPTIONS.
62402         Reported by Jim Meyering.
62403
62404 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
62405
62406         Work around bug in Solaris 10 /proc file system:
62407         /proc/self/fd/NNN/.. isn't the parent directory of
62408         the directory whose file descriptor is NNN.  This needs to
62409         be worked around at run time, not compile time, since a
62410         program might be built on Solaris 8, where things work, and
62411         run on Solaris 10.
62412         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
62413         to use the following interface instead:
62414         (OPENAT_BUFFER_SIZE): New macro.
62415         (openat_proc_name): New function.
62416         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
62417         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
62418         Likewise.
62419         * lib/openat-proc.c: New file.
62420         * modules/openat (Files): Add lib/openat-proc.c.
62421         (Depends-on): Add same-inode, stdbool.
62422         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
62423
62424 2006-09-29  Bruno Haible  <bruno@clisp.org>
62425
62426         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
62427         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
62428         argument. Set stdout_closed before testing for ferror, not after.
62429         (fwriteerror, fwriteerror_no_ebadf): New functions.
62430
62431 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62432
62433         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
62434
62435 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
62436
62437         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
62438         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
62439
62440 2006-09-28  Jim Meyering  <jim@meyering.net>
62441
62442         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
62443         Include <unistd.h>.
62444
62445 2006-09-28  Bruno Haible  <bruno@clisp.org>
62446
62447         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
62448         * modules/linkedhash-list (Depends-on): Likewise.
62449         * modules/rbtreehash-list (Depends-on): Likewise.
62450
62451 2006-09-28  Bruno Haible  <bruno@clisp.org>
62452
62453         * lib/strndup.h: Simplify the redefinition of strndup.
62454         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
62455         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
62456
62457 2006-09-28  Bruno Haible  <bruno@clisp.org>
62458
62459         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
62460         * lib/gl_linkedhash_list.c: Likewise.
62461         * lib/gl_rbtreehash_list.c: Likewise.
62462
62463 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
62464
62465         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
62466         getaddrinfo.
62467
62468         * lib/__fpending.h: Don't include <stdio_ext.h> unless
62469         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
62470         it causes <stdio_ext.h> to cause a compile-time error.
62471         Problem reported by Nelson H. F. Beebe.
62472         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
62473         of HAVE_DECL___PENDING.
62474
62475         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
62476         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
62477         declaration.
62478
62479 2006-09-27  Jim Meyering  <jim@meyering.net>
62480
62481         This file could end up with a definition for a function
62482         named __strndup, rather than rpl_strndup on a system with
62483         incomplete weak_alias support.
62484         * lib/strndup.c (strndup): Rename from __strndup.
62485         Remove #defines that used to map __strndup to strndup.
62486         Don't use K&R prototypes.
62487         Remove LIBC-related code, since this file is not sync'd with glibc.
62488         * lib/strndup.h: Revamp, accordingly.
62489         * m4/strndup.m4: Modernize.
62490
62491 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
62492
62493         * modules/savewd (Depends-on): Add 'raise'.
62494         * lib/savewd.c: Include <signal.h>, for 'raise'.
62495
62496 2006-09-26  Jim Meyering  <jim@meyering.net>
62497
62498         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
62499         when we detect Darwin 8.7.0's acl_get_file bug.
62500         Rearrange to perform the new (below) run-test while $LIBS
62501         contains any acl-related library.  Set USE_ACL at the end.
62502         (gl_ACL_GET_FILE): New function.
62503
62504 2006-09-26  Eric Blake  <ebb9@byu.net>
62505
62506         * lib/verror.c: Include <config.h> unconditionally.
62507
62508 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
62509
62510         * modules/clock-time (Maintainer): Add self.
62511         * modules/getlogin_r (Depends-on): Add extensions.
62512
62513 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62514
62515         * modules/clock-time: New module.
62516         * modules/nanosleep (Depends-on): Add clock-time.
62517         * modules/gethrxtime (Depends-on): Likewise.
62518         * modules/gettime (Depends-on): Likewise.
62519         * modules/settime (Depends-on): Likewise.
62520
62521         * modules/fts-lgpl: Depend on openat.
62522         * modules/mkancesdirs: Depend on savewd.
62523         * modules/mkdir-p: Likewise.
62524
62525 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62526
62527         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
62528
62529         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
62530         `gl_have_arbitrary_file_name_length_limit' to
62531         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
62532         actually works between configure runs.
62533
62534 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62535             Bruno Haible  <bruno@clisp.org>
62536
62537         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
62538
62539 2006-09-25  Jim Meyering  <jim@meyering.net>
62540
62541         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
62542         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
62543
62544 2006-09-25  Eric Blake  <ebb9@byu.net>
62545
62546         * gnulib-tool (func_import, func_create_testdir): Fix typos in
62547         exec's in 2006-09-18 patch when shuffling fds.
62548
62549 2006-09-25  Bruno Haible  <bruno@clisp.org>
62550
62551         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
62552         Reported by Jim Meyering.
62553
62554 2006-09-24  Jim Meyering  <jim@meyering.net>
62555
62556         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
62557         compare a pointer against a literal "0".  That caused failures with
62558         at least HP-UX's hpcc.
62559
62560 2006-09-22  Simon Josefsson  <jas@extundo.com>
62561
62562         * modules/gc-sha1:
62563         * modules/gc-md4:
62564         * modules/gc-hmac-sha1:
62565         * modules/gc-hmac-md5:
62566         * modules/gc-des:
62567         * modules/gc-arcfour: Distribute more files.
62568
62569 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62570
62571         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
62572         (gl_linked_iterator_from_to): Initialize struct completely.
62573         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
62574         (gl_tree_iterator_from_to): Likewise
62575         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
62576         * lib/gl_array_list.c [lint] (gl_array_iterator)
62577         (gl_array_iterator_from_to): Likewise.
62578         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
62579         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
62580         (gl_carray_iterator_from_to): Likewise.
62581
62582         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
62583         * lib/md4.c (md4_process_block): Remove unused variable.
62584         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
62585         parentheses for clarity.
62586
62587 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62588
62589         * modules/bison-i18n (Depends-on): Add gettext.
62590
62591 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62592
62593         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
62594         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
62595         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
62596         also add missing comma that caused broken test.
62597         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
62598         stdlib.h, for `abort'.
62599         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
62600         variables.
62601         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
62602         include unistd.h if present, for `rmdir'.
62603         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
62604         variables.
62605         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
62606         in the process include standard headers for prototypes.
62607         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
62608         gets declared on GNU/Linux.
62609         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
62610         unistd.h, for `rmdir'.
62611         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
62612
62613         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
62614         always true.
62615         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
62616
62617         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
62618
62619 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62620
62621         * gnulib-tool (func_version): Create output all at once.  This
62622         may help avoid triggering unnecessary SIGPIPEs, and at any
62623         rate it doesn't hurt.
62624
62625 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62626             Bruno Haible  <bruno@clisp.org>
62627
62628         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
62629         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
62630         * m4/signed.m4 (bh_C_SIGNED): Likewise.
62631
62632         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
62633         (gl_FUNC_VASPRINTF): Invoke it.
62634
62635 2006-09-22  Bruno Haible  <bruno@clisp.org>
62636
62637         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
62638         getloadavg.c as first argument.
62639
62640 2006-09-22  Bruno Haible  <bruno@clisp.org>
62641
62642         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
62643         at the beginning of the gl_INIT macro.
62644         * modules/getloadavg (configure.ac): Pass $gl_source_base to
62645         gl_GETLOADAVG.
62646
62647 2006-09-22  Bruno Haible  <bruno@clisp.org>
62648
62649         * gnulib-tool (func_create_megatestdir): Don't include the config-h
62650         module.
62651         Suggested by Ralf Wildenhues.
62652
62653 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
62654
62655         Import this patch from libc:
62656
62657         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
62658
62659         * lib/regex_internal.c (re_string_reconstruct): Handle
62660         offset < pstr->valid_raw_len && pstr->offsets_needed case.
62661         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
62662         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
62663         re_string_context_at.
62664
62665         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
62666         now requires it.
62667         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
62668         gl_REGEX now does it for us.
62669         (gl_REGEX): Add test taken from
62670         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
62671
62672         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
62673         Check that large offsets work.  Modernize Autoconf usages.
62674         Prefer "yes" to mean a good thing rather than a bad.
62675         Don't put "#define mkstemp" in config.h, as this might interfere
62676         with standard system headers that "#define mkstemp mkstemp64".
62677
62678         * modules/mkstemp (Depends-on): Add extensions, so that
62679         mkstemp is visible on some platforms.
62680         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
62681         (Include): Change to "mkstemp.h" from <stdlib.h>.
62682         (Files): Add mkstemp.h.
62683
62684         * lib/mkstemp.h: New file, since some standard headers
62685         #define mkstemp.
62686         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
62687         Include "mkstemp.h".
62688         Make the _LIBC code resemble glibc original more,
62689         e.g., use K&R style.
62690         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
62691         (mkstemp): Remove, since mkstemp.h does this for us.
62692         * lib/stdlib--.h: Include mkstemp.h.
62693
62694         Import this patch from libc:
62695
62696         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
62697
62698         * lib/tempname.c (__gen_tempname): Change attempts_min
62699         into a macro.  Use preprocessor to decide how to initialize
62700         attempts [Coverity CID 67].
62701
62702 2006-09-20  Bruno Haible  <bruno@clisp.org>
62703
62704         * lib/mkdtemp.c: Import from libc.
62705         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
62706                 * sysdeps/posix/tempname.c (__gen_tempname): Change
62707                 attempts_min into a macro.  Use preprocessor to decide how to
62708                 initialize attempts [Coverity CID 67].
62709         2001-11-27  Paul Eggert  <eggert@twinsun.com>
62710                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
62711                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
62712
62713 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62714
62715         * gnulib-tool (func_exit): New function, to allow to pass the
62716         exit status portably through the trap.  Use everywhere.
62717         (--help, --version): Signal a write error.
62718         (trap): catch SIGPIPE, for write errors.
62719         Exit at the end of the trap, with the correct exit status.
62720
62721 2006-09-19  Karl Berry  <karl@gnu.org>
62722
62723         * doc/gnulib.texi: note about the license texinfo files.
62724
62725 2006-09-19  Eric Blake  <ebb9@byu.net>
62726
62727         * gnulib-tool: Avoid space-tab.
62728
62729 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
62730
62731         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
62732         that prevented coreutils 6.1 from building.  Problem reported
62733         by Petter Reinholdtsen.
62734
62735 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
62736
62737         * gnulib-tool (avoidlist): Fix typo that broke options like
62738         --avoid=lock that are used by coreutils bootstrap.
62739
62740 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
62741
62742         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
62743         more systematically.
62744
62745 2006-09-18  Jim Meyering  <jim@meyering.net>
62746
62747         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
62748
62749 2006-09-18  Bruno Haible  <bruno@clisp.org>
62750
62751         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
62752
62753 2006-09-18  Bruno Haible  <bruno@clisp.org>
62754
62755         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
62756         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
62757         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
62758         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
62759         * m4/gettext.m4: Require autoconf >= 2.52.
62760         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
62761         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
62762         of gl_cv_header_inttypes_h.
62763
62764 2006-09-18  Bruno Haible  <bruno@clisp.org>
62765
62766         * lib/javaversion.c: Include configmake.h.
62767
62768 2006-09-18  Bruno Haible  <bruno@clisp.org>
62769
62770         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
62771         avoid that the while loops be executed in a subshell.
62772
62773 2006-09-18  Bruno Haible  <bruno@clisp.org>
62774
62775         * MODULES.html.sh (func_module): Break long lines.
62776         Suggested by Bruce Korb <bkorb@gnu.org>.
62777
62778 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62779
62780         Speed up by a factor of 1.12.
62781         * gnulib-tool (nl): New variable.
62782         (func_import): Rewrite include directive extraction to only read each
62783         directive once.
62784
62785 2006-09-17  Bruno Haible  <bruno@clisp.org>
62786
62787         * modules/javaversion (Makefile.am): Remove DEFS setting.
62788         (Depends-on): Add configmake, for PKGDATADIR definition.
62789
62790 2006-09-17  Bruno Haible  <bruno@clisp.org>
62791
62792         * gnulib-tool (func_create_testdir): Rewrite all files at once.
62793
62794 2006-09-17  Bruno Haible  <bruno@clisp.org>
62795
62796         * gnulib-tool (func_append): New function, stolen from libtool.m4.
62797         (func_modules_transitive_closure, func_modules_add_dummy,
62798         func_modules_to_filelist, func_import, func_create_testdir,
62799         func_create_megatestdir, ...): Use it wherever possible.
62800         Suggested by Ralf Wildenhues.
62801
62802 2006-09-16  Karl Berry  <karl@gnu.org>
62803
62804         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
62805         to avoid sectioning errors.
62806         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
62807         [ifinfo]: blank line after @center-ed titles.
62808         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
62809         Spell FSF address consistently with others.
62810         (These changes approved by rms.)
62811
62812 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62813
62814         Speed up by a factor of 1.61.
62815         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
62816         already checked module names again.
62817
62818 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62819
62820         Speed up by a factor of 1.13.
62821         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
62822         for new_files, and the input to func_add_or_update.
62823
62824 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62825
62826         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
62827         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
62828
62829 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
62830
62831         * modules/mkancesdirs (Depends-on): Add fcntl.
62832         * modules/savewd: New file.
62833         * MODULES.html.sh (File system functions): Add savewd.
62834
62835         * modules/configmake (Makefile.am): Add support for the
62836         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
62837
62838 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
62839
62840         * m4/savewd.m4: New file.
62841
62842 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
62843
62844         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
62845         (dirchownmod): New arg FD.  All callers changed.
62846         Use FD rather than opening the directory ourself, as opening is
62847         now the caller's responsibility.
62848         * lib/dirchownmod.h: Likewise.
62849         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
62850         hosts that require <sys/types.h> before <sys/stat.h>.  Include
62851         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
62852         (test_dir): Remove.
62853         (mkancesdirs): Return length of prefix of FILE that has already
62854         been made, or -2 if there is a child doing the work.  Redo
62855         algorithm so that it is O(N) rather than O(N**2).  Optimize away
62856         ".", and treat ".." specially since it might stray back into
62857         already-created areas.  Use a subprocess if necessary.  New arg
62858         WD; all users changed.  MAKE_DIR function should now return 1
62859         if it creates a directory that is not readable.  Return -2 if
62860         a child process is spun off.
62861         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
62862         Adjust signature to match code.
62863         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
62864         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
62865         all users changed.
62866         * lib/savewd.c, lib/savewd.h: New files.
62867
62868 2006-09-15  Jim Meyering  <jim@meyering.net>
62869
62870         * modules/rename-dest-slash: New module.
62871         * MODULES.html.sh (posix_compat): Add it here.
62872
62873         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
62874
62875 2006-09-15  Jim Meyering  <jim@meyering.net>
62876
62877         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
62878         file.
62879
62880         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
62881
62882 2006-09-15  Jim Meyering  <jim@meyering.net>
62883
62884         * lib/rename-dest-slash.c (has_trailing_slash): Use
62885         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
62886         (rpl_rename_dest_slash): Perform the cheaper trailing slash
62887         test before testing whether SRC is a directory.
62888         Suggestions from Bruno Haible.
62889
62890         Avoid a warning about an unused variable.
62891         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
62892         into the #ifdef block where it's used.
62893
62894         * lib/rename-dest-slash.c: New file.
62895
62896 2006-09-14  Bruno Haible  <bruno@clisp.org>
62897
62898         * lib/allocsa.c: Include <config.h> unconditionally.
62899         * lib/asnprintf.c: Likewise.
62900         * lib/asprintf.c: Likewise.
62901         * lib/c-strcasecmp.c: Likewise.
62902         * lib/c-strcasestr.c: Likewise.
62903         * lib/c-strncasecmp.c: Likewise.
62904         * lib/c-strstr.c: Likewise.
62905         * lib/classpath.c: Likewise.
62906         * lib/clean-temp.c: Likewise.
62907         * lib/concatpath.c: Likewise.
62908         * lib/copy-file.c: Likewise.
62909         * lib/csharpcomp.c: Likewise.
62910         * lib/csharpexec.c: Likewise.
62911         * lib/execute.c: Likewise.
62912         * lib/fatal-signal.c: Likewise.
62913         * lib/findprog.c: Likewise.
62914         * lib/fwriteerror.c: Likewise.
62915         * lib/gl_array_list.c: Likewise.
62916         * lib/gl_array_oset.c: Likewise.
62917         * lib/gl_avltree_list.c: Likewise.
62918         * lib/gl_avltree_oset.c: Likewise.
62919         * lib/gl_avltreehash_list.c: Likewise.
62920         * lib/gl_carray_list.c: Likewise.
62921         * lib/gl_linked_list.c: Likewise.
62922         * lib/gl_linkedhash_list.c: Likewise.
62923         * lib/gl_list.c: Likewise.
62924         * lib/gl_oset.c: Likewise.
62925         * lib/gl_rbtree_list.c: Likewise.
62926         * lib/gl_rbtree_oset.c: Likewise.
62927         * lib/gl_rbtreehash_list.c: Likewise.
62928         * lib/imaxabs.c: Likewise.
62929         * lib/imaxdiv.c: Likewise.
62930         * lib/javacomp.c: Likewise.
62931         * lib/javaexec.c: Likewise.
62932         * lib/javaversion.c: Likewise.
62933         * lib/linebreak.c: Likewise.
62934         * lib/localcharset.c: Likewise.
62935         * lib/lock.c: Likewise.
62936         * lib/mbchar.c: Likewise.
62937         * lib/mbswidth.c: Likewise.
62938         * lib/mkdtemp.c: Likewise.
62939         * lib/pipe.c: Likewise.
62940         * lib/printf-args.c: Likewise.
62941         * lib/printf-parse.c: Likewise.
62942         * lib/progname.c: Likewise.
62943         * lib/progreloc.c: Likewise.
62944         * lib/readlink.c: Likewise.
62945         * lib/sh-quote.c: Likewise.
62946         * lib/stpcpy.c: Likewise.
62947         * lib/stpncpy.c: Likewise.
62948         * lib/strcasecmp.c: Likewise.
62949         * lib/strcasestr.c: Likewise.
62950         * lib/strcspn.c: Likewise.
62951         * lib/striconv.c: Likewise.
62952         * lib/strncasecmp.c: Likewise.
62953         * lib/strnlen1.c: Likewise.
62954         * lib/strstr.c: Likewise.
62955         * lib/strtok_r.c: Likewise.
62956         * lib/tls.c: Likewise.
62957         * lib/tmpdir.c: Likewise.
62958         * lib/unicodeio.c: Likewise.
62959         * lib/unsetenv.c: Likewise.
62960         * lib/vasnprintf.c: Likewise.
62961         * lib/vasprintf.c: Likewise.
62962         * lib/wait-process.c: Likewise.
62963         * lib/xallocsa.c: Likewise.
62964         * lib/xsetenv.c: Likewise.
62965         * lib/xstriconv.c: Likewise.
62966
62967 2006-09-13  Simon Josefsson  <jas@extundo.com>
62968
62969         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
62970         that internally, suggested by Ralf Wildenhues
62971         <Ralf.Wildenhues@gmx.de>.
62972
62973 2006-09-13  Simon Josefsson  <jas@extundo.com>
62974
62975         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
62976         @LIBOBJS@.
62977         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62978
62979 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
62980
62981         * lib/_fpending.c: Include <config.h> unconditionally, since we no
62982         longer worry about uses that don't define HAVE_CONFIG_H.
62983         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
62984         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
62985         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
62986         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
62987         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
62988         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
62989         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
62990         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
62991         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
62992         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
62993         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
62994         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
62995         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
62996         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
62997         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
62998         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
62999         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
63000         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
63001         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
63002         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
63003         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
63004         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
63005         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
63006         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
63007         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
63008         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
63009         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
63010         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
63011         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
63012         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
63013         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
63014         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
63015         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
63016         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
63017         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
63018         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
63019         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
63020         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
63021         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
63022         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
63023         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
63024         Likewise.
63025
63026 2006-09-13  Eric Blake  <ebb9@byu.net>
63027
63028         * lib/getopt.c: Fix typo in last commit.
63029
63030 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
63031
63032         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
63033         dgettext.
63034
63035 2006-09-12  Jim Meyering  <jim@meyering.net>
63036
63037         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
63038         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
63039         Reported by Nelson H. F. Beebe.
63040
63041 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
63042
63043         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
63044         program_invocation_name and program_invocation_short_name are
63045         initialized.
63046         * lib/argp-namefrob.h: Move declarations of program_invocation_name
63047         and program_invocation_short_name to argp.h, so they are visible
63048         to user programs.
63049         * lib/argp.h: Likewise
63050
63051 2006-09-10  Bruno Haible  <bruno@clisp.org>
63052
63053         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
63054         m4/inttypes_h.m4, m4/uintmax_t.m4.
63055
63056 2006-09-10  Bruno Haible  <bruno@clisp.org>
63057
63058         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
63059         gl_AC_TYPE_UINTMAX_T.
63060
63061 2006-09-10  Bruno Haible  <bruno@clisp.org>
63062
63063         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
63064
63065 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
63066
63067         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
63068         convention.  Text proposed by Bruno Haible.
63069         (struct argp_option): Document the use of N_() wrappers.
63070
63071         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
63072         '\v', and translate the two parts separately, instead of feeding
63073         the whole string to gettext.  This allows to exclude
63074         '\v' from the strings visible to the translator by writing doc
63075         strings as N_("..") "\v" N_("..").
63076
63077 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
63078
63079         * config/srclist.txt: Undo latest change; the bug was fixed.
63080
63081 2006-09-09  Bruno Haible  <bruno@clisp.org>
63082
63083         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
63084         assignments if building a library without libtool.
63085         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
63086         in func_emit_lib_Makefile_am.
63087         (func_import): When building a static library libfoo.a, arrange to
63088         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
63089         (func_create_testdir): Likewise.
63090         * modules/gc (configure.ac, Makefile.am): If building statically,
63091         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
63092         * modules/iconvme (configure.ac, Makefile.am): Likewise.
63093         * modules/striconv (configure.ac, Makefile.am): Likewise.
63094         Based on a suggestion by Ralf Wildenhues.
63095
63096 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
63097
63098         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
63099         Check for unistd.h too, since Autoconf doesn't assume POSIX.
63100         Also:
63101
63102         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
63103         Add year_2050_test to catch glibc bug 2821
63104         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
63105
63106         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
63107         Prefer #ifdef to #if.
63108
63109         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
63110         Return from 'main' instead of calling 'exit'.
63111
63112 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
63113
63114         * lib/mktime.c (guess_time_tm): Fix bug where mktime
63115         returned the maximum time_t value rather than (time_t) -1.
63116         Problem originally reported by William Bardwell
63117         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
63118
63119         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
63120         Moved to here ...
63121         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
63122         ... from here.
63123
63124 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
63125
63126         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
63127         2821 is fixed.
63128
63129 2006-09-08  Jim Meyering  <jim@meyering.net>
63130
63131         Don't make generated files read-only.  That would bother too many
63132         people.  However, do retain the ability to work when targets are
63133         read-only: remove the destination and temporary files before writing
63134         them (when generated via sed or echo), or by using the -f option for
63135         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
63136         * modules/alloca-opt, modules/argz, modules/arpa_inet:
63137         * modules/byteswap, modules/configmake, modules/fcntl:
63138         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
63139         * modules/localcharset, modules/netinet_in, modules/poll:
63140         * modules/stdbool, modules/stdint, modules/sys_select:
63141         * modules/sys_socket, modules/sys_stat, modules/sysexits:
63142
63143 2006-09-08  Jim Meyering  <jim@meyering.net>
63144
63145         Avoid new build failure on FreeBSD 6.0.
63146         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
63147         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
63148         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
63149
63150 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63151
63152         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
63153
63154 2006-09-07  Jim Meyering  <jim@meyering.net>
63155
63156         Fix global typo in last change: use chmod u-w, not chmod u-x.
63157         Spotted by Paul Eggert and Bruce Korb.
63158         * modules/alloca-opt, modules/argz, modules/arpa_inet:
63159         * modules/byteswap, modules/configmake, modules/fcntl:
63160         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
63161         * modules/localcharset, modules/netinet_in, modules/poll:
63162         * modules/stdbool, modules/stdint, modules/sys_select:
63163         * modules/sys_socket, modules/sys_stat, modules/sysexits:
63164
63165 2006-09-06  Jim Meyering  <jim@meyering.net>
63166
63167         Make generated files be read-only.
63168         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
63169         Ensure that each generated file is now read-only.
63170         * modules/argz: Likewise.
63171         * modules/arpa_inet: Likewise.
63172         * modules/byteswap: Likewise.
63173         * modules/configmake: Likewise.
63174         * modules/fcntl: Likewise.
63175         * modules/fnmatch: Likewise.
63176         * modules/getopt: Likewise.
63177         * modules/glob: Likewise.
63178         * modules/inttypes: Likewise.
63179         * modules/netinet_in: Likewise.
63180         * modules/poll: Likewise.
63181         * modules/stdbool: Likewise.
63182         * modules/stdint: Likewise.
63183         * modules/sys_select: Likewise.
63184         * modules/sys_socket: Likewise.
63185         * modules/sys_stat: Likewise.
63186         * modules/sysexits: Likewise.
63187         * modules/localcharset: Same as above, but continue using temporary
63188         file named "t-$@" (why different?) rather than the "$@-t" used
63189         everywhere else.
63190
63191         * modules/sysexits (Makefile.am): Replace literal occurrences
63192         of "sysexit.h" more readable, and more consistent, "$@".
63193
63194 2006-09-06  Bruno Haible  <bruno@clisp.org>
63195
63196         * modules/striconv: New file.
63197         * modules/xstriconv: New file.
63198         * MODULES.html.sh (Internationalization functions): Add striconv,
63199         xstriconv.
63200
63201 2006-09-06  Bruno Haible  <bruno@clisp.org>
63202
63203         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
63204         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
63205         not using libtool correctly.
63206
63207 2006-09-06  Bruno Haible  <bruno@clisp.org>
63208
63209         * lib/striconv.h: New file.
63210         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
63211         iconvstring.c.
63212         * lib/xstriconv.h: New file.
63213         * lib/xstriconv.c: New file.
63214
63215 2006-09-06  Bruno Haible  <bruno@clisp.org>
63216
63217         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
63218         lib_..._LDFLAGS.
63219
63220 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63221
63222         * lib/argz_.h: Sync from Libtool.
63223
63224         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
63225                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
63226
63227         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
63228
63229 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
63230
63231         * modules/trim: New file.
63232
63233 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
63234
63235         * lib/trim.h: New file.
63236         * lib/trim.c: New file.
63237
63238 2006-09-05  Bruno Haible  <bruno@clisp.org>
63239
63240         * MODULES.html.sh (String handling): Add trim.
63241
63242 2006-09-04  Karl Berry  <karl@gnu.org>
63243
63244         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
63245         until next release.
63246
63247 2006-09-03  Bruno Haible  <bruno@clisp.org>
63248
63249         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
63250         correctly.
63251
63252 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
63253
63254         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
63255         not gl_GETLOADAVG.  Omit unneeded semicolons.
63256         Problems reported by Ralf Wildenhues in
63257         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
63258         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
63259         at the end, which is the usual gnulib style.
63260
63261         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
63262         of doing all the work ourselves.
63263         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
63264         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
63265
63266 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
63267
63268         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
63269         Problem reported by Ralf Wildenhues in
63270         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
63271
63272         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
63273         HAVE_STRUCT_STATFS_F_FSTYPENAME.
63274
63275 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
63276
63277         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
63278         yesterday's patch by changing test -n to test -z.
63279
63280 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63281
63282         * modules/getloadavg (Files): Add m4/getloadavg.m4.
63283         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
63284         the former is now obsolescent.
63285
63286         * modules/chdir-long (Depends-on): Add fcntl.
63287
63288 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63289
63290         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
63291         obsolescent, and programs should use gnulib instead.
63292         * m4/getloadavg.m4: New file, with contents taken from Autoconf
63293         but with prefixes changed.
63294
63295 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63296
63297         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
63298         or stdbool.h, because they might not exist while configuring.
63299
63300         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
63301         Don't include unistd.h or limits.h; not needed, since chdir-long.h
63302         does that for us.
63303         (O_DIRECTORY): Remove.
63304
63305 2006-08-31  Eric Blake  <ebb9@byu.net>
63306
63307         * gnulib-tool: Don't let emacs change spaces to TAB.
63308
63309 2006-08-31  Bruno Haible  <bruno@clisp.org>
63310
63311         * gnulib-tool: When calling func_import more than once, do it in a
63312         subshell.
63313         Reported by Eric Blake <ebb9@byu.net>.
63314
63315 2006-08-31  Bruno Haible  <bruno@clisp.org>
63316
63317         * gnulib-tool (nl): Remove variable.
63318         (sed_transform_lib_file): Use more robust test for config-h module.
63319         (func_import): Fix typo in 2006-08-25 patch.
63320
63321 2006-08-31  Bruno Haible  <bruno@clisp.org>
63322
63323         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
63324         specified, augment Makefile.am variables instead of assigning them.
63325
63326 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
63327
63328         Work around a bug in both the Linux and SunOS 64-bit kernels:
63329         nanosleep mishandles sleeps for longer than 2**31 seconds.
63330         Problem reported by Frank v Waveren in
63331         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
63332         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
63333         Check for nanosleep bug.
63334         (LIB_NANOSLEEP): Append clock_gettime library if needed.
63335
63336 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
63337
63338         Work around a bug in both the Linux and SunOS 64-bit kernels:
63339         nanosleep mishandles sleeps for longer than 2**31 seconds.
63340         Problem reported by Frank v Waveren in
63341         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
63342         * lib/nanosleep.c (BILLION): New constant.
63343         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
63344         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
63345         implementation.
63346
63347 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
63348
63349         * modules/nanosleep (Depends-on): Add gettime.
63350
63351 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
63352         and Simon Josefsson  <jas@extundo.com>
63353         and Oskar Liljeblad  <oskar@osk.mine.nu>
63354
63355         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
63356         * gnulib-tool (func_import): New license type 'unmodifiable license
63357         text'.
63358         * modules/fdl: Use it.  Longer description.
63359         * module/gpl, module/lgpl: New files.
63360
63361 2006-08-30  Jim Meyering  <jim@meyering.net>
63362
63363         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
63364         shadowing the parameter.
63365
63366 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63367
63368         Sync from Libtool:
63369
63370         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63371
63372         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
63373         sharing with gnulib.  Report by Eric Blake.
63374
63375 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
63376
63377         * modules/isapipe: New file.
63378         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
63379
63380 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
63381
63382         * modules/configmake (Makefile.am): Add a comment, and omit
63383         the CONFIGMAKE_ prefix from generated macro names.  Suggested
63384         by Bruno Haible.
63385
63386 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
63387
63388         * m4/isapipe.m4: New file.
63389
63390 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
63391
63392         * lib/isapipe.c, lib/isapipe.h: New files.
63393
63394 2006-08-29  Jim Meyering  <jim@meyering.net>
63395
63396         * modules/configmake (Makefile.am): Make configmake.h depend on
63397         Makefile.  Otherwise, a stale configmake.h could hang around.
63398
63399 2006-08-29  Eric Blake  <ebb9@byu.net>
63400
63401         * lib/error.c (error_at_line, print_errno_message): Match libc, after
63402         resolution of upstream bug 3044.
63403
63404 2006-08-29  Bruno Haible  <bruno@clisp.org>
63405
63406         * modules/localcharset (Depends-on): Add configmake.
63407         (Makefile.am): Remove setting of LIBDIR through DEFS.
63408
63409 2006-08-29  Bruno Haible  <bruno@clisp.org>
63410
63411         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
63412         defined.
63413
63414 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
63415
63416         * modules/fcntl: New file.
63417         * modules/chdir-safer (Depends-on): Add fcntl.
63418         * modules/fts: Likewise.
63419         * modules/mkdir-p: Likewise.
63420
63421         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
63422         This undoes the most recent change, since we're now addressing the
63423         problem in a different way.
63424
63425         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
63426         into output, since the output might be called Makefile.am even
63427         if $makefile_name is something different.
63428         (func_import): Use $makefile_am rather than
63429         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
63430         empty.
63431
63432         * modules/inttypes (Files): Add m4/inttypes-h.m4.
63433
63434 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
63435
63436         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
63437         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
63438         recent change to stdint.m4, since we're now addressing the problem in a
63439         different way.
63440
63441 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
63442
63443         * m4/fcntl_h.m4: New file.
63444
63445 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
63446
63447         * lib/fcntl_.h: New file.
63448         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
63449         the fcntl module.
63450         * lib/dirchownmod.c: Likewise.
63451         * lib/fts.c: Likewise.
63452
63453         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
63454         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
63455         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
63456         just before including <inttypes.h>, to avoid circular inclusion.
63457
63458 2006-08-28  Jim Meyering  <jim@meyering.net>
63459
63460         * doc/visibility.texi: Actually read and correct the grammar of the
63461         sentence affected by yesterday's change.
63462
63463 2006-08-28  Eric Blake  <ebb9@byu.net>
63464
63465         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
63466         needs wrapper.
63467
63468 2006-08-28  Eric Blake  <ebb9@byu.net>
63469
63470         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
63471
63472 2006-08-28  Eric Blake  <ebb9@byu.net>
63473
63474         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
63475
63476 2006-08-28  Bruno Haible  <bruno@clisp.org>
63477
63478         * modules/c-strstr: New file, from GNU gettext.
63479         * MODULES.html.sh (String handling): Add c-strstr.
63480
63481 2006-08-28  Bruno Haible  <bruno@clisp.org>
63482
63483         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
63484         macros.
63485         Reported by Eric Blake.
63486
63487 2006-08-28  Bruno Haible  <bruno@clisp.org>
63488
63489         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
63490         (VASNPRINTF): Return a string of length > INT_MAX without failing.
63491         * lib/vasprintf.c: Include errno.h, limits.h.
63492         (EOVERFLOW): New fallback definition.
63493         (vasprintf): Test here whether the string length is > INT_MAX.
63494         * lib/vsnprintf.c: Include errno.h, limits.h.
63495         (EOVERFLOW): New fallback definition.
63496         (vsnprintf): Fix bug when generated string was too long for the buffer.
63497         Test here whether the string length is > INT_MAX.
63498
63499 2006-08-28  Bruno Haible  <bruno@clisp.org>
63500
63501         * lib/inttypes_.h (SCNX*): Remove definitions.
63502         Reported by Eric Blake.
63503
63504 2006-08-28  Bruno Haible  <bruno@clisp.org>
63505
63506         * lib/c-strstr.h: New file, from GNU gettext.
63507         * lib/c-strstr.c: New file, from GNU gettext.
63508
63509 2006-08-28  Bruno Haible  <bruno@clisp.org>
63510
63511         * gnulib-tool: Reorder some statements.
63512
63513 2006-08-28  Bruno Haible  <bruno@clisp.org>
63514
63515         * gnulib-tool: New option --makefile-name.
63516         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
63517         $makefile_name.
63518         (func_import): Write $makefile_name to the cache file, and read it from
63519         there unless explicitly specified. Use $makefile_name as file name
63520         instead of Makefile.am. Adjust the recommendations accordingly.
63521
63522 2006-08-28  Bruno Haible  <bruno@clisp.org>
63523
63524         * gnulib-tool (func_verify_module): Check against misapplying patch.
63525
63526 2006-08-28  Bruno Haible  <bruno@clisp.org>
63527
63528         * gnulib-tool (func_relativize, func_relconcat): New functions.
63529         Give an error if --local-dir is given with --update.
63530         Remove trailing slashes from $local_gnulib_dir.
63531         (func_import): Store the relativized $local_gnulib_dir in
63532         gnulib-cache.m4, and read it from there if not specified explicitly.
63533
63534 2006-08-28  Bruno Haible  <bruno@clisp.org>
63535
63536         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
63537         is the current directory. Respect also $local_gnulib_dir.
63538
63539 2006-08-28  Bruno Haible  <bruno@clisp.org>
63540             Simon Josefsson  <jas@extundo.com>
63541
63542         BeOS portability.
63543         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
63544
63545 2006-08-27  Jim Meyering  <jim@meyering.net>
63546
63547         * doc/visibility.texi: Remove duplicate word: "pointer".
63548
63549 2006-08-26  Bruno Haible  <bruno@clisp.org>
63550
63551         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
63552         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
63553         (Makefile.am): Create inttypes.h from inttypes_.h.
63554         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
63555
63556         * modules/imaxabs: New file.
63557
63558         * modules/imaxdiv: New file.
63559
63560 2006-08-26  Bruno Haible  <bruno@clisp.org>
63561
63562         * m4/inttypes.m4: New file.
63563         * m4/_inttypes_h.m4: Remove file.
63564         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
63565         PRI_MACROS_BROKEN.
63566         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
63567
63568         * m4/imaxabs.m4: New file.
63569
63570         * m4/imaxdiv.m4: New file.
63571
63572 2006-08-26  Bruno Haible  <bruno@clisp.org>
63573
63574         * lib/inttypes_.h: New file.
63575         * lib/inttypes.h: Remove file.
63576         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
63577
63578         * lib/imaxabs.c: New file.
63579
63580         * lib/imaxdiv.c: New file.
63581
63582 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
63583
63584         New config-h module, so that "make" output needn't be cluttered
63585         by -DHAVE_CONFIG_H.
63586         * MODULES.html.sh (Support for building libraries and executables):
63587         Add config-h.
63588         * modules/config-h: New file.
63589         * gnulib-tool (nl, sed_transform_lib_file): New vars.
63590         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
63591         the config-h module is used.
63592
63593         New configmake module, so that "make" output needn't be cluttered
63594         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
63595         * MODULES.html.sh (Support for building libraries and executables):
63596         Add configmake.
63597         * modules/configmake: New file.
63598
63599 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
63600
63601         * m4/config-h.m4: New file.
63602
63603 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
63604
63605         * config/srclist.txt: Add elisp-comp.
63606
63607 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
63608
63609         * MODULES.html.sh (Support for building libraries and executables):
63610         Add elisp-comp.
63611         * build-aux/elisp-comp: New file.
63612         * modules/elisp-comp: New file.
63613
63614 2006-08-24  Bruno Haible  <bruno@clisp.org>
63615
63616         * gnulib-tool (func_create_testdir): Use non-default values of
63617         sourcebase and m4base.
63618
63619 2006-08-24  Bruno Haible  <bruno@clisp.org>
63620
63621         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
63622         HTML structure.
63623
63624 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
63625
63626         * modules/openat (Depends-on): Add lchown.
63627
63628 2006-08-23  Bruno Haible  <bruno@clisp.org>
63629
63630         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
63631         of gl_LOCK_EARLY instead of gl_LOCK.
63632
63633 2006-08-23  Bruno Haible  <bruno@clisp.org>
63634
63635         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
63636         on OSF/1 to no.
63637         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
63638
63639 2006-08-23  Bruno Haible  <bruno@clisp.org>
63640
63641         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
63642         as unusable.
63643
63644         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
63645         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
63646         (gl_LOCK): New macro.
63647
63648 2006-08-22  Simon Josefsson  <jas@extundo.com>
63649
63650         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
63651         to md5 module.
63652
63653 2006-08-22  Simon Josefsson  <jas@extundo.com>
63654
63655         * MODULES.html.sh: Add "Support for maintaining and release
63656         projects".
63657
63658         * build-aux/gnupload: New file, from coreutils.
63659
63660 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
63661
63662         Avoid the need for AC_LIBSOURCES in m4 macros.
63663         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
63664         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
63665         * modules/check-version (EXTRA_DIST): Add check-version.h.
63666         * modules/crc (EXTRA_DIST): Add crc.h.
63667         * modules/des (EXTRA_DIST): Add des.h.
63668         * modules/gc (EXTRA_DIST): Add gc.h.
63669         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
63670         * modules/getline (EXTRA_DIST): Add getline.h.
63671         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
63672         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
63673         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
63674         * modules/md2 (EXTRA_DIST): Add md2.h.
63675         * modules/md4 (EXTRA_DIST): Add md4.h.
63676         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
63677         * modules/read-file (EXTRA_DIST): Add read-file.h.
63678         * modules/readline (EXTRA_DIST): Add readline.h.
63679         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
63680         rijndael-api-fst.h.
63681
63682 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
63683
63684         * m4/rijndael.m4 (gl_ARCFOUR):
63685         * m4/arctwo.m4 (gl_ARCTWO):
63686         * m4/check-version.m4 (gl_CHECK_VERSION):
63687         * m4/crc.m4 (gl_CRC):
63688         * m4/des.m4 (gl_DES):
63689         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
63690         * m4/gc.m4 (gl_GC):
63691         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
63692         * m4/getline.m4 (gl_FUNC_GETLINE):
63693         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
63694         * m4/hmac-md5.m4 (gl_HMAC_MD5):
63695         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
63696         * m4/md2.m4 (gl_MD2):
63697         * m4/md4.m4 (gl_MD4):
63698         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
63699         * m4/read-file.m4 (gl_FUNC_READ_FILE):
63700         * m4/readline.m4 (gl_FUNC_READLINE):
63701         * m4/rijndael.m4 (gl_RIJNDAEL):
63702         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
63703         to get the necessary .h files and whatnot.
63704
63705 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
63706
63707         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
63708         gnulib rather than the other way around.
63709         * config/srclistvars.sh (COREUTILS): Remove.
63710
63711 2006-08-22  Jim Meyering  <jim@meyering.net>
63712
63713         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
63714
63715         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
63716
63717 2006-08-22  Eric Blake  <ebb9@byu.net>
63718
63719         * modules/regexprops-generic: New file.
63720         * MODULES.html.sh (Support for building documentation): List it.
63721
63722 2006-08-22  Eric Blake  <ebb9@byu.net>
63723
63724         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
63725         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
63726         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
63727         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
63728
63729 2006-08-22  Bruno Haible  <bruno@clisp.org>
63730
63731         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
63732         and lib_LTLIBRARIES like the other lib_* variables.
63733
63734 2006-08-22  Bruno Haible  <bruno@clisp.org>
63735
63736         * build-aux/x-to-1.in: New file, from GNU gettext.
63737
63738 2006-08-22  Bruno Haible  <bruno@clisp.org>
63739
63740         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
63741         <utmpx.h> exists.
63742
63743 2006-08-22  Bruno Haible  <bruno@clisp.org>
63744
63745         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
63746         <utmpx.h> exists.
63747
63748 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
63749
63750         BeOS portability.
63751         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
63752         exist.
63753         Problem reported by Bruno Haible.
63754
63755 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
63756
63757         Avoid the need for AC_LIBSOURCES in m4 macros.
63758         * modules/acl (EXTRA_DIST): Add acl.h.
63759         * modules/argmatch (Files): Add m4/argmatch.m4.
63760         (configure.ac): Add gl_ARGMATCH.
63761         (EXTRA_DIST): Renamed from lib_SOURCES, for
63762         consistency with the other modules.  Remove argmatch.c.
63763         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
63764         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
63765         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
63766         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
63767         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
63768         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
63769         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
63770         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
63771         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
63772         * modules/closeout (EXTRA_DIST): Add closeout.h.
63773         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
63774         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
63775         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
63776         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
63777         dirname.h; remove basename.c and stripslash.c.
63778         * modules/exclude (EXTRA_DIST): Add exclude.h.
63779         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
63780         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
63781         * modules/file-type (EXTRA_DIST): Add file-type.h.
63782         * modules/filemode (EXTRA_DIST): Add filemode.h.
63783         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
63784         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
63785         * modules/fpending (EXTRA_DIST): Add __fpending.h.
63786         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
63787         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
63788         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
63789         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
63790         * modules/getdate (EXTRA_DIST): Add getdate.c.
63791         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
63792         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
63793         * modules/getpass (EXTRA_DIST): Add getpass.h.
63794         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
63795         * modules/group-member (EXTRA_DIST): Add group-member.h.
63796         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
63797         * modules/hash (EXTRA_DIST): Add hash.h.
63798         * modules/human (EXTRA_DIST): Add human.h.
63799         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
63800         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
63801         * modules/lchown (EXTRA_DIST): Add lchown.h.
63802         * modules/long-options (EXTRA_DIST): Add long-options.h.
63803         * modules/lstat (EXTRA_DIST): Add lstat.h.
63804         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
63805         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
63806         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
63807         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
63808         * modules/memxor (EXTRA_DIST): Add memxor.h.
63809         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
63810         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
63811         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
63812         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
63813         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
63814         * modules/physmem (EXTRA_DIST): Add physmem.h.
63815         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
63816         * modules/posixver (EXTRA_DIST): Add posixver.h.
63817         * modules/quote (EXTRA_DIST): Add quote.h.
63818         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
63819         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
63820         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
63821         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
63822         regex_internal.h regexec.c.
63823         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
63824         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
63825         * modules/same (EXTRA_DIST): Add same.h.
63826         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
63827         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
63828         * modules/savedir (EXTRA_DIST): Add savedir.h.
63829         * modules/sha1 (EXTRA_DIST): Add sha1.h.
63830         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
63831         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
63832         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
63833         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
63834         * modules/strdup (EXTRA_DIST): Add strdup.h.
63835         * modules/strftime (EXTRA_DIST): Add strftime.h.
63836         * modules/strndup (EXTRA_DIST): Add strndup.h.
63837         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
63838         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
63839         * modules/time_r (EXTRA_DIST): Add time_r.h.
63840         * modules/timespec (EXTRA_DIST): Add timespec.h.
63841         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
63842         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
63843         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
63844         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
63845         * modules/userspec (EXTRA_DIST): Add userspec.h.
63846         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
63847         * modules/utimens (EXTRA_DIST): Add utimens.h.
63848         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
63849         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
63850         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
63851         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
63852         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
63853         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
63854         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
63855         * modules/yesno (EXTRA_DIST): Add yesno.h.
63856
63857 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
63858
63859         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
63860
63861         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
63862         * m4/dev-ino.m4, same-inode.m4: Remove.
63863
63864         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
63865         * m4/acl.m4 (AC_FUNC_ACL):
63866         * m4/backupfile.m4 (gl_BACKUPFILE):
63867         * m4/c-strtod.m4 (gl_C99_STRTOLD):
63868         * m4/canon-host.m4 (gl_CANON_HOST):
63869         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
63870         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
63871         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
63872         * m4/cloexec.m4 (gl_CLOEXEC):
63873         * m4/close-stream.m4 (gl_CLOSE_STREAM):
63874         * m4/closeout.m4 (gl_CLOSEOUT):
63875         * m4/dirfd.m4 (gl_FUNC_DIRFD):
63876         * m4/dirname.m4 (gl_DIRNAME):
63877         * m4/exclude.m4 (gl_EXCLUDE):
63878         * m4/exitfail.m4 (gl_EXITFAIL):
63879         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
63880         * m4/file-type.m4 (gl_FILE_TYPE):
63881         * m4/filemode.m4 (gl_FILEMODE):
63882         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
63883         * m4/fpending.m4 (gl_FUNC_FPENDING):
63884         * m4/fprintftime.m4 (gl_FPRINTFTIME):
63885         * m4/fts.m4 (gl_FUNC_FTS):
63886         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
63887         * m4/getdate.m4 (gl_GETDATE):
63888         * m4/gethrxtime.m4 (gl_GETHRXTIME):
63889         * m4/getpagesize.m4 (gl_GETPAGESIZE):
63890         * m4/getpass.m4 (gl_FUNC_GETPASS):
63891         * m4/gettime.m4 (gl_GETTIME):
63892         * m4/getugroups.m4 (gl_GETUGROUPS):
63893         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
63894         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
63895         * m4/hard-locale.m4 (gl_HARD_LOCALE):
63896         * m4/hash.m4 (gl_HASH):
63897         * m4/idcache.m4 (gl_IDCACHE):
63898         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
63899         * m4/lchown.m4 (gl_FUNC_LCHOWN):
63900         * m4/long-options.m4 (gl_LONG_OPTIONS):
63901         * m4/lstat.m4 (gl_FUNC_LSTAT):
63902         * m4/md5.m4 (gl_MD5):
63903         * m4/memcasecmp.m4 (gl_MEMCASECMP):
63904         * m4/memcoll.m4 (gl_MEMCOLL):
63905         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
63906         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
63907         * m4/memxor.m4 (gl_MEMXOR):
63908         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
63909         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
63910         * m4/modechange.m4 (gl_MODECHANGE):
63911         * m4/mountlist.m4 (gl_MOUNTLIST):
63912         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
63913         * m4/openat.m4 (gl_FUNC_OPENAT):
63914         * m4/pathmax.m4 (gl_PATHMAX):
63915         * m4/physmem.m4 (gl_PHYSMEM):
63916         * m4/posixtm.m4 (gl_POSIXTM):
63917         * m4/posixver.m4 (gl_POSIXVER):
63918         * m4/quote.m4 (gl_QUOTE):
63919         * m4/quotearg.m4 (gl_QUOTEARG):
63920         * m4/readtokens.m4 (gl_READTOKENS):
63921         * m4/readutmp.m4 (gl_READUTMP):
63922         * m4/regex.m4 (gl_REGEX):
63923         * m4/safe-read.m4 (gl_SAFE_READ):
63924         * m4/safe-write.m4 (gl_SAFE_WRITE):
63925         * m4/same.m4 (gl_SAME):
63926         * m4/save-cwd.m4 (gl_SAVE_CWD):
63927         * m4/savedir.m4 (gl_SAVEDIR):
63928         * m4/settime.m4 (gl_SETTIME):
63929         * m4/sha1.m4 (gl_SHA1):
63930         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
63931         * m4/stat-macros.m4 (gl_STAT_MACROS):
63932         * m4/stat-time.m4 (gl_STAT_TIME):
63933         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
63934         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
63935         * m4/strdup.m4 (gl_FUNC_STRDUP):
63936         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
63937         * m4/strndup.m4 (gl_FUNC_STRNDUP):
63938         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
63939         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
63940         * m4/time_r.m4 (gl_TIME_R):
63941         * m4/timespec.m4 (gl_TIMESPEC):
63942         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
63943         * m4/unlinkdir.m4 (gl_UNLINKDIR):
63944         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
63945         * m4/userspec.m4 (gl_USERSPEC):
63946         * m4/utimecmp.m4 (gl_UTIMECMP):
63947         * m4/utimens.m4 (gl_UTIMENS):
63948         * m4/xalloc.m4 (gl_XALLOC):
63949         * m4/xgetcwd.m4 (gl_XGETCWD):
63950         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
63951         * m4/xreadlink.m4 (gl_XREADLINK):
63952         * m4/xstrtod.m4 (gl_XSTRTOD):
63953         * m4/yesno.m4 (gl_YESNO):
63954         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
63955         to get the necessary .h files and whatnot.
63956
63957 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
63958             Bruno Haible  <bruno@clisp.org>
63959
63960         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
63961         /bin/sh understanding of '!' conditional negation.
63962
63963 2006-08-21  Jim Meyering  <jim@meyering.net>
63964
63965         * modules/openat (Depends-on): Really alphabetize.
63966
63967         * modules/acl (Depends-on): Add error and quote.
63968
63969         * check-module (find_included_lib_files): Add at-func.c to the
63970         ok-to-include-more-than-once white list.
63971
63972         * modules/openat (Depends-on): Add lstat.  Alphabetize.
63973
63974 2006-08-21  Bruno Haible  <bruno@clisp.org>
63975
63976         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63977         Emit a pkgdata_DATA variable only if some snippets add contents to it.
63978         Reported by Martin Lambers <marlam@marlam.de>.
63979
63980 2006-08-21  Bruno Haible  <bruno@clisp.org>
63981
63982         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
63983         specify an installation location, don't emit a noinst_LIBRARIES or
63984         noinst_LTLIBRARIES assignment.
63985
63986 2006-08-21  Bruno Haible  <bruno@clisp.org>
63987
63988         BeOS portability.
63989         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
63990         BeOS has mbrtowc() but no <wctype.h>.
63991
63992 2006-08-21  Bruno Haible  <bruno@clisp.org>
63993
63994         BeOS portability.
63995         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
63996         exist.
63997
63998 2006-08-21  Bruno Haible  <bruno@clisp.org>
63999
64000         BeOS portability.
64001         * lib/mbchar.h: Include <wctype.h> only if it exists.
64002
64003 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
64004
64005         Remove files that are no longer needed by their respective modules.
64006         * m4/obstack.m4: Remove.
64007         * m4/strerror_r.m4: Remove.
64008         * m4/uint32_t.m4: Remove.
64009         * m4/uintptr_t.m4: Remove.
64010         * m4/ullong_max.m4: Remove.
64011         * m4/xstrtoimax.m4: Remove.
64012         * m4/xstrtoumax.m4: Remove.
64013
64014         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
64015         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
64016         dependencies now capture this.
64017
64018         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
64019         Do not use AC_LIBSOURCES, since gnulib modules now do this.
64020         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
64021         * m4/human.m4 (gl_HUMAN): Likewise.
64022         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
64023         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
64024
64025         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
64026
64027         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
64028         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
64029         stdint.
64030         * m4/human.m4 (gl_HUMAN): Likewise.
64031         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
64032         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
64033         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
64034         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
64035         * m4/xstrtol (gl_XSTRTOL): Likewise.
64036
64037         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
64038         AC_TYPE_LONG_LONG_INT.
64039         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
64040         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
64041         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
64042         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
64043
64044         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
64045         on stdbool.
64046
64047         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
64048         (gl_PREREQ_XSTRTOUL): Remove.
64049
64050         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
64051
64052         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
64053         mode.
64054
64055 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
64056
64057         Add and change modules to make it easier for coreutils to use
64058         gnulib-tool.
64059         * modules/backupfile (Files): Remove m4/d-ino.m4.
64060         (Depends-on): Add d-ino.
64061         * modules/cycle-check (Depends-on): Add stdint.
64062         (lib_SOURCES): Add cycle-check.h.
64063         * modules/d-ino: New module.
64064         * modules/d-type: New module.
64065         * modules/error (Files): Remove m4/strerror_r.m4.
64066         * modules/filemode (Files): Add m4/st_dm_mode.m4.
64067         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
64068         m4/inttypes_h.m4, m4/uintmax_t.m4.
64069         (Depends-on): Add stdint.
64070         (lib_SOURCES): Add fsusage.h.
64071         * modules/getcwd (Files): Remove d-ino.m4.
64072         (Depends-on): Add d-ino.
64073         * modules/getndelim2 (Depends-on): Add stdint.
64074         * modules/glob (Files): Remove m4/d-type.m4.
64075         (Depends-on): Add d-type.
64076         * modules/host-os: New module.
64077         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
64078         m4/inttypes_h.m4, m4/uintmax_t.m4.
64079         * Depends-on: Add stdint.
64080         (lib_SOURCES): Add human.h.
64081         * modules/inttostr (Files): Remove m4/intmax_t.m4,
64082         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
64083         m4/uintmax_t.m4, m4/ulonglong.m4.
64084         (Depends-on): Add stdint.
64085         (EXTRA_DIST): Add inttostr.h.
64086         * modules/lchmod: New module.
64087         * modules/link-follow: New module.
64088         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
64089         (Depends-on): Add lchmod.
64090         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
64091         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
64092         (Depends-on): Add stdint.
64093         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
64094         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
64095         (Depends-on): Add stdint.
64096         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
64097         * modules/perl: New module.
64098         * modules/regex (Depends-on): Add stdint.
64099         * modules/rmdir-errno: New module.
64100         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
64101         m4/intmax_t.m4.
64102         (Depends-on): Add stdint.
64103         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
64104         m4/uintmax_t.m4.
64105         (Depends-on): Add stdint.
64106         * modules/unlink-busy: New module.
64107         * modules/utimecmp (Depends-on): Add stdint.
64108         * modules/uptime: New module.
64109         * modules/winsz-ioctl: New module.
64110         * modules/winsz-termios: New module.
64111         * modules/xnanosleep (Depends-on): Add nanosleep.
64112         * modules/ullong_max: Remove.
64113         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
64114         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
64115         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
64116         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
64117         (Depends-on): Add inttypes.
64118         (lib_SOURCES): Add xstrtol.h.
64119         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
64120         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
64121         * MODULES.html.sh: Move 'assert' into the assert section.
64122         Move 'dummy' into the linking section.
64123         Remove ullong_max.
64124         Add section for compatibility checks for POSIX:2001 functions,
64125         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
64126         winsz-ioctl, and winsz-termios into it.
64127         Add lchmod.
64128         Add top-level Misc section and put host-os, perl, and uptime
64129         into it.
64130
64131 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
64132
64133         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
64134         now assume the stdint module.  Do not include inttypes.h.
64135         * lib/fsusage.h: Likewise.
64136         * lib/getndelim2.c: Likewise.
64137         * lib/human.h: Likewise.
64138         * lib/inttostr.h: Likewise.
64139         * lib/obstack.c: Likewise.
64140         * lib/regex_internal.h: Likewise.
64141         * lib/tempname.c: Likewise.
64142         * lib/utimecmp.c: Likewise.
64143         * lib/xstrtol.h: Likewise.
64144
64145         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
64146
64147         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
64148         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
64149         * lib/xtime.h: Likewise.
64150
64151 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64152
64153         * modules/openat (Files): Add lib/fchmodat.c.
64154         Fixes problem reported by Jay Youngman.
64155
64156 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64157
64158         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
64159         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
64160
64161 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
64162             Bruno Haible  <bruno@clisp.org>
64163
64164         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
64165         and is a script that invokes bison. Tighten the code. Add comments.
64166
64167 2006-08-18  Jim Meyering  <jim@meyering.net>
64168
64169         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
64170         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
64171         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
64172         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
64173
64174 2006-08-18  Bruno Haible  <bruno@clisp.org>
64175
64176         * modules/bison-i18n: New file.
64177         * MODULES.html.sh (Internationalization functions): Add it.
64178
64179 2006-08-18  Bruno Haible  <bruno@clisp.org>
64180
64181         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
64182         sys/statvfs.h. When getmntinfo was found, check its declaration and
64183         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
64184
64185 2006-08-18  Bruno Haible  <bruno@clisp.org>
64186
64187         * m4/bison-i18n.m4: New file, from bison.
64188
64189 2006-08-18  Bruno Haible  <bruno@clisp.org>
64190
64191         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
64192         (ME_DUMMY): Treat "kernfs" as a dummy.
64193         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
64194
64195 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
64196
64197         Update from coreutils.
64198
64199         2006-08-15  Jim Meyering  <jim@meyering.net>
64200
64201         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
64202
64203         2006-01-17  Jim Meyering  <jim@meyering.net>
64204
64205         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
64206
64207         2006-01-11  Jim Meyering  <jim@meyering.net>
64208
64209         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
64210         Check for the lchmod function.
64211
64212 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
64213
64214         Update from coreutils.
64215
64216         * lib/__fpending.h: Add copyright notice.
64217         * lib/fprintftime.h: Likewise.
64218         * lib/savedir.c: Use (C) in copyright notice.
64219         * lib/savedir.h: Likewise.
64220
64221         2006-08-15  Jim Meyering  <jim@meyering.net>
64222
64223         * lib/at-func.c: New file, with the logic of all emulated at-functions.
64224         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
64225         in support of the EXPECTED_ERRNO macro.
64226         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
64227         definitions.  Instead, define the appropriate symbols and include
64228         "at-func.c".
64229         * lib/mkdirat.c (mkdirat): Likewise.
64230         * lib/fchmodat.c (fchmodat): Likewise.
64231         (ENOSYS): Remove definition.
64232         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
64233         it.  Don't include "unistd--.h" -- it wasn't ever used.
64234
64235         2006-01-17  Jim Meyering  <jim@meyering.net>
64236
64237         Rewrite fts.c not to change the current working directory,
64238         by using openat, fstatat, fdopendir, etc..
64239
64240         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
64241         (HAVE_OPENAT_SUPPORT): Define.
64242         [_LIBC] (fchdir): Don't undef or define; no longer used.
64243         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
64244         Now, this `function' always succeeds, and consumes its file descriptor
64245         parameter -- so callers must not close such FDs.  Update callers.
64246         (diropen_fd, opendirat, cwd_advance_fd): New functions.
64247         (diropen): Add parameter, SP.  Adjust all callers.
64248         Implement using diropen_fd, rather than open.
64249         (fts_open): Initialize new member, fts_cwd_fd.
64250         Remove fts_rft-setting code.
64251         (fts_close): Close fts_cwd_fd, if necessary.
64252         (__opendir2): Define in terms of opendir or opendirat,
64253         depending on whether the FST_NOCHDIR flag is set.
64254         (fts_build): Since fts_safe_changedir consumes its FD, and since
64255         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
64256         and close the dup'd file descriptor upon failure.
64257         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
64258         (fts_safe_changedir): Tweak semantics to reflect that this function
64259         now calls cwd_advance_fd and hence consumes its FD argument.
64260         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
64261         [struct FTS] (fts_rft): Remove now-unused member.
64262         [struct FTS] (fts_cycle.state): Improve comment.
64263
64264         * lib/openat.c (openat_needs_fchdir): New function.
64265         * lib/openat.h (openat_needs_fchdir): Declare it.
64266
64267 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
64268
64269         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
64270         Problem and fix reported by Pádraig Brady in
64271         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
64272
64273 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64274
64275         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
64276
64277 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64278
64279         * lib/memcoll.c (memcoll): Optimize for the common case where the
64280         arguments are bytewise equal.
64281
64282 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64283
64284         * doc/regexprops-generic.texi: Add a copyright notice.
64285
64286 2006-08-15  Bruno Haible  <bruno@clisp.org>
64287
64288         * modules/tmpdir (License): Change to LGPL.
64289
64290 2006-08-15  Bruno Haible  <bruno@clisp.org>
64291
64292         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
64293         module.
64294
64295 2006-08-14  Simon Josefsson  <jas@extundo.com>
64296
64297         * config/srclist.txt: Add gnupload.
64298
64299 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
64300
64301         Change copyright notice from LGPL 2 to GPL 2, since that's the
64302         standard form used in the gnulib repository.
64303         * tests/test-lock.c: Likewise.
64304         * tests/test-stdint.c: Likewise.
64305         * tests/test-tls.c: Likewise.
64306
64307         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
64308         prelude-manager.  User shorter URLs for GNU projects, without '?'.
64309         Add copyright notice.
64310
64311         * check-module: Add copyright notice.  Output a copyright
64312         notice if "--version" is specified.
64313         * modules/COPYING: New file.
64314         * tests/test-getaddrinfo.c: Add copyright notice.
64315         * tests/test-verify.c: Likewise.
64316
64317 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
64318
64319         Change copyright notice from LGPL 2 to GPL 2, since that's the
64320         standard form used in the gnulib repository.
64321         * lib/lock.c: LGPL -> GPL.
64322         * lib/lock.h: Likewise.
64323         * lib/strnlen1.c: Likewise.
64324         * lib/strnlen1.h: Likewise.
64325         * lib/tls.c: Likewise.
64326         * lib/tls.h: Likewise.
64327         * lib/tmpdir.c: Likewise.
64328
64329         * lib/TODO: Remove; this belongs only in coreutils.
64330
64331 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
64332
64333         Add copyright notices to long-enough files that lack them, since
64334         otherwise the files aren't clearly free.  Use the same notice that
64335         getdate.texi already uses.
64336         * doc/alloca-opt.texi: Add copyright notice.
64337         * doc/alloca.texi: Likewise.
64338         * doc/ctime.texi: Likewise.
64339         * doc/functions.texi: Likewise.
64340         * doc/gcd.texi: Likewise.
64341         * doc/gnulib-tool.texi: Likewise.
64342         * doc/inet_ntoa.texi: Likewise.
64343         * doc/visibility.texi: Likewise.
64344
64345         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
64346         * doc/quote.texi: Add copyright notice.
64347
64348         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
64349         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
64350         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
64351         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
64352         is now obsolete, and give a pointer to the Sun list.
64353         Add copyright notice.
64354
64355 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
64356
64357         * config/srclistvars.sh: Add copyright notice.
64358
64359 2006-08-14  Eric Blake  <ebb9@byu.net>
64360
64361         Import the following change from libc:
64362
64363         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
64364
64365         Upstream bug 2997.
64366         * lib/misc/error.c: Add space between program name and message if file
64367         name is missing.
64368
64369 2006-08-12  Karl Berry  <karl@gnu.org>
64370
64371         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
64372         remove, these originate in gnulib now.
64373
64374 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64375
64376         * doc/Makefile (standards.info standards.html standards.dvi):
64377         Also depend on make-stds.texi.
64378
64379 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
64380
64381         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
64382         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
64383
64384         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
64385         in wchar_t.  Problem reported by Eric Blake.
64386
64387         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
64388         LEN is smaller than SIZE.  Suggested by Bruno Haible.
64389         Also, help the compiler to keep LEN in a register.
64390
64391 2006-08-11  Eric Blake  <ebb9@byu.net>
64392
64393         * users.txt: Sort.  Add tar.
64394
64395 2006-08-11  Bruno Haible  <bruno@clisp.org>
64396
64397         * users.txt: New file.
64398
64399 2006-08-11  Bruno Haible  <bruno@clisp.org>
64400
64401         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
64402         before <wchar.h>. Needed for OSF/1 and BSD/OS.
64403
64404 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
64405
64406         * modules/snprintf (Depends-on): Remove minmax.
64407         (Maintainer): Add self and Bruno.
64408
64409 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
64410
64411         * lib/.cppi-disable: Add snprintf.h, socket_.h.
64412         * lib/snprintf.c: Include <errno.h> and <limits.h>.
64413         (EOVERFLOW): Define if the system does not.
64414         Do not include "minmax.h"; it wasn't used.
64415         (snprintf): Don't assume size_t promotes to an unsigned type.
64416         Fix bug when generated string was too long for the buffer: the
64417         buffer's contents are supposed to be the initial prefix of the
64418         output.  Don't assume vasnprintf returns EOVERFLOW if the size
64419         exceeds INT_MAX; do the check ourselves.
64420
64421         Import the following changes from libc:
64422
64423         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
64424
64425         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
64426         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
64427         set wc to the byte which couldn't be converted.
64428         (re_string_reconstruct): Don't clear valid_raw_len before calling
64429         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
64430         tip_context using re_string_context_at.
64431
64432         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
64433
64434         * lib/posix/regex.h: g++ still cannot handled [restrict].
64435
64436         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
64437
64438         * lib/posix/regex.h: Remove special handling for VMS.
64439
64440 2006-08-10  Jim Meyering  <jim@meyering.net>
64441
64442         * modules/same-inode: New module.
64443         * modules/dev-ino: New module.
64444         * modules/cycle-check: Depend on these modules, rather than simply
64445         including their .h files.
64446         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
64447         required via m4/cycle-check.m4.
64448         * modules/same: Depend on new same-inode module, rather than
64449         including same-inode.h.
64450         * modules/chdir-safer: New file.
64451
64452         * modules/chown (Depends-on): Add stat-macros.
64453
64454 2006-08-10  Jim Meyering  <jim@meyering.net>
64455
64456         * m4/cycle-check.m4: New file.
64457         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
64458         * m4/dev-ino.m4, m4/same-inode.m4: New files.
64459
64460 2006-08-10  Eric Blake  <ebb9@byu.net>
64461
64462         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
64463         in from original proposal.
64464
64465 2006-08-10  Eric Blake  <ebb9@byu.net>
64466         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
64467
64468         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
64469         namespace.
64470
64471 2006-08-10  Bruno Haible  <bruno@clisp.org>
64472
64473         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
64474         as well.
64475
64476 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64477
64478         Sync from coreutils.
64479
64480         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
64481
64482         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
64483         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
64484
64485 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64486
64487         * modules/restrict: Remove; no longer needed now that we assume
64488         Autoconf 2.59 or later.
64489         * MODULES.html.sh: Remove 'restrict'.
64490         * modules/argp (Depends-on): Remove 'restrict'.
64491         * modules/base64 (Depends-on): Likewise.
64492         * modules/gc (Depends-on): Likewise.
64493         * modules/getaddrinfo (Depends-on): Likewise.
64494         * modules/glob (Depends-on): Likewise.
64495         * modules/inet_ntop (Depends-on): Likewise.
64496         * modules/inet_pton (Depends-on): Likewise.
64497         * modules/memxor (Depends-on): Likewise.
64498         * modules/regex (Depends-on): Likewise.
64499         * modules/strtok_r (Depends-on): Likewise.
64500         * modules/time_r (Depends-on): Likewise.
64501
64502 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64503
64504         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
64505         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
64506         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
64507         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
64508         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
64509         * m4/memxor.m4 (gl_MEMXOR): Likewise.
64510         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
64511         gl_C_RESTRICT replaced by AC_C_RESTRICT.
64512
64513         Merge from coreutils.
64514         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
64515         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
64516         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
64517         * m4/time_r.m4 (gl_TIME_R): Likewise.
64518
64519 2006-08-09  Karl Berry  <karl@gnu.org>
64520
64521         * config/srclist.txt: no more gettext-tools, per Bruno.
64522
64523 2006-08-08  Eric Blake  <ebb9@byu.net>
64524
64525         * modules/verror: New module.
64526         * MODULES.html.sh: Document it.
64527
64528 2006-08-08  Eric Blake  <ebb9@byu.net>
64529
64530         * lib/verror.h, lib/verror.c: New files.
64531
64532 2006-08-08  Eric Blake  <ebb9@byu.net>
64533
64534         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
64535         verror_at_line output complies with GNU Coding Standards even when
64536         file is NULL.
64537
64538 2006-08-07  Bruno Haible  <bruno@clisp.org>
64539
64540         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
64541         versions of AIX.
64542         Reported by Ralf Wildenhues.
64543
64544 2006-08-07  Bruno Haible  <bruno@clisp.org>
64545
64546         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
64547         in an AC_DEFUN. Needed so that the autoconf snippets can use
64548         AC_REQUIRE.
64549
64550 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64551
64552         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64553         Initialize pkgdata_DATA.
64554         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
64555         overriding it.
64556
64557 2006-08-06  Eric Blake  <ebb9@byu.net>
64558
64559         * lib/error.h: Fold in some upstream changes from glibc.
64560         * lib/error.c: Likewise.
64561
64562 2006-08-04  Bruno Haible  <bruno@clisp.org>
64563
64564         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64565         Make the mostlyclean-local rule depend on mostlyclean-generic.
64566         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
64567
64568 2006-07-31  Bruno Haible  <bruno@clisp.org>
64569
64570         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
64571         <stdlib.h>, <string.h>.
64572
64573 2006-07-30  Bruno Haible  <bruno@clisp.org>
64574
64575         * modules/readlink (License): Change to LGPL.
64576
64577 2006-07-30  Bruno Haible  <bruno@clisp.org>
64578
64579         * modules/javaversion (Makefile.am): Distribute javaversion.java and
64580         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
64581         set PKGDATADIR to point to it.
64582
64583 2006-07-30  Bruno Haible  <bruno@clisp.org>
64584
64585         * modules/csharpexec (configure.ac): Comment out macro invocation.
64586         * modules/javaexec (configure.ac): Likewise.
64587         * modules/javacomp-script (configure.ac): Likewise.
64588
64589         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
64590
64591 2006-07-30  Bruno Haible  <bruno@clisp.org>
64592
64593         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
64594         linked-list.
64595
64596 2006-07-30  Bruno Haible  <bruno@clisp.org>
64597
64598         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
64599
64600 2006-07-30  Bruno Haible  <bruno@clisp.org>
64601
64602         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64603         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
64604         get removed.
64605
64606 2006-07-29  Bruno Haible  <bruno@clisp.org>
64607
64608         Make it possible for gnulib-tool to work with locally modified or
64609         augmented gnulib repositories.
64610         * gnulib-tool (func_usage): Document --local-dir option.
64611         (local_gnulib_dir): New variable.
64612         Handle --local-dir option.
64613         (func_lookup_file): New function.
64614         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
64615         (func_get_description, func_get_filelist, func_get_description,
64616         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
64617         func_get_automake_snippet, func_get_include_directive,
64618         func_get_license, func_get_maintainer): Use func_lookup_file.
64619         (func_import, func_create_testdir): Use func_lookup_file.
64620
64621 2006-07-29  Bruno Haible  <bruno@clisp.org>
64622
64623         * modules/setenv (Depends-on): Add unistd.
64624
64625 2006-07-29  Bruno Haible  <bruno@clisp.org>
64626
64627         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
64628
64629 2006-07-29  Bruno Haible  <bruno@clisp.org>
64630
64631         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
64632
64633 2006-07-29  Bruno Haible  <bruno@clisp.org>
64634
64635         * gnulib-tool (import, update): If there is no Makefile.am, look at
64636         aclocal.m4, instead of bailing out.
64637
64638 2006-07-29  Bruno Haible  <bruno@clisp.org>
64639
64640         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
64641         Categorize the options by when they are useful.
64642
64643 2006-07-29  Bruno Haible  <bruno@clisp.org>
64644
64645         * gnulib-tool (func_usage): Document option --no-libtool.
64646         Handle option --no-libtool.
64647         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
64648         for changed semantics of $libtool variable.
64649         (func_import): Likewise. If libtool is not used, show this through
64650         an option --no-libtool.
64651         (func_create_testdir): Update.
64652
64653 2006-07-29  Bruno Haible  <bruno@clisp.org>
64654
64655         * gnulib-tool (func_import): Extend error message about missing
64656         --doc-base.
64657
64658 2006-07-29  Bruno Haible  <bruno@clisp.org>
64659
64660         * gnulib-tool (func_import): Don't create the $docbase directory if
64661         there is no file to store there.
64662
64663 2006-07-29  Bruno Haible  <bruno@clisp.org>
64664
64665         * gnulib-tool (autoconf_minversion): If a --dir option is given and
64666         relevant, look for configure.ac there, not in the current directory.
64667         Also use a simple search for AC_PREREQ, not "autoconf --trace".
64668
64669 2006-07-29  Bruno Haible  <bruno@clisp.org>
64670
64671         * gnulib-tool (SORT): New variable.
64672         (func_usage): Undocument --assume-autoconf option.
64673         Remove --assume-autoconf option handling.
64674         (autoconf_minversion): Determine from the contents of configure.ac.
64675         (func_import): Remove autoconf_minversion handling.
64676         Suggested by Eric Blake.
64677
64678 2006-07-29  Bruno Haible  <bruno@clisp.org>
64679
64680         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
64681
64682 2006-07-29  Bruno Haible  <bruno@clisp.org>
64683
64684         * config/srclist.txt (*setenv.[ch]): Remove rules.
64685
64686 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64687
64688         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
64689
64690 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64691
64692         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
64693         arpa/inet.h.
64694
64695 2006-07-28  Simon Josefsson  <jas@extundo.com>
64696
64697         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
64698         * modules/inet_pton (Depends-on): Likewise.
64699
64700 2006-07-28  Simon Josefsson  <jas@extundo.com>
64701
64702         * m4/netinet_in_h.m4: New file.
64703
64704 2006-07-28  Simon Josefsson  <jas@extundo.com>
64705
64706         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
64707         #include's.
64708
64709 2006-07-28  Simon Josefsson  <jas@extundo.com>
64710
64711         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
64712         #include's.
64713
64714 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
64715
64716         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
64717         setgid on directories only if they set these bits.
64718         * lib/modechange.h: Remove obsolete comment about masks.
64719
64720 2006-07-28  Eric Blake  <ebb9@byu.net>
64721
64722         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
64723         macro expansion.
64724
64725 2006-07-28  Bruno Haible  <bruno@clisp.org>
64726
64727         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
64728
64729 2006-07-28  Bruno Haible  <bruno@clisp.org>
64730
64731         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
64732
64733 2006-07-28  Bruno Haible  <bruno@clisp.org>
64734
64735         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
64736         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
64737         Define fallbacks.
64738         Avoids link error on FreeBSD 4.x.
64739         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
64740
64741         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
64742         encoding.
64743         * lib/mbswidth.c (iswcntrl): Likewise.
64744
64745 2006-07-27  Bruno Haible  <bruno@clisp.org>
64746
64747         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
64748         test.
64749
64750 2006-07-27  Bruno Haible  <bruno@clisp.org>
64751
64752         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
64753         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
64754         defined.
64755
64756 2006-07-26  Eric Blake  <ebb9@byu.net>
64757
64758         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
64759
64760 2006-07-26  Eric Blake  <ebb9@byu.net>
64761
64762         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
64763         like mingw that lack mkstemp.
64764         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
64765         avoid compilation warning on mingw.
64766
64767 2006-07-26  Bruno Haible  <bruno@clisp.org>
64768
64769         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
64770         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
64771         INT_FAST*_MIN, INTPTR_MIN.
64772
64773 2006-07-25  Bruno Haible  <bruno@clisp.org>
64774
64775         * modules/version-etc (Depends-on): Add stdarg.
64776
64777 2006-07-25  Bruno Haible  <bruno@clisp.org>
64778
64779         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
64780         complex commands.
64781
64782 2006-07-25  Bruno Haible  <bruno@clisp.org>
64783
64784         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
64785         defined in <stdarg.h> or config.h.
64786
64787 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
64788
64789         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
64790         (gl_STDIO_SAFER): Remove.
64791
64792 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
64793
64794         * MODULES.html.sh (File stream based Input/Output):
64795         Add fopen-safer, tmpfile-safer; remove stdio-safer.
64796         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
64797         * modules/fopen-safer, modules/tmpfile-safer: New files.
64798         * modules/stdio-safer: Remove.
64799
64800 2006-07-24  Bruno Haible  <bruno@clisp.org>
64801
64802         * modules/tmpdir: New file.
64803         * MODULES.html.sh (File system functions): Add it.
64804
64805 2006-07-24  Bruno Haible  <bruno@clisp.org>
64806
64807         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
64808         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
64809
64810 2006-07-24  Bruno Haible  <bruno@clisp.org>
64811
64812         * modules/clean-temp: New file.
64813
64814 2006-07-24  Bruno Haible  <bruno@clisp.org>
64815
64816         * m4/tmpdir.m4: New file, from GNU gettext.
64817
64818 2006-07-24  Bruno Haible  <bruno@clisp.org>
64819
64820         * lib/tmpdir.h: New file, from GNU gettext.
64821         * lib/tmpdir.c: New file, from GNU gettext.
64822
64823 2006-07-24  Bruno Haible  <bruno@clisp.org>
64824
64825         * lib/clean-temp.h: New file, from GNU gettext.
64826         * lib/clean-temp.c: New file, from GNU gettext.
64827
64828 2006-07-23  Eric Blake  <ebb9@byu.net>
64829
64830         * modules/stdio-safer (Files): Add tmpfile-safer.c.
64831         (Depends-on): Add binary-io.
64832
64833 2006-07-23  Eric Blake  <ebb9@byu.net>
64834
64835         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
64836
64837 2006-07-23  Eric Blake  <ebb9@byu.net>
64838
64839         * lib/tmpfile-safer.c: New file.
64840         * lib/stdio-safer.h (fopen_safer): Add prototype.
64841         * lib/stdio--.h (tmpfile): Make safer.
64842
64843 2006-07-23  Bruno Haible  <bruno@clisp.org>
64844
64845         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
64846         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
64847         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
64848         gl_linked_remove_at): Use it.
64849
64850 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64851         and Simon Josefsson <jas@extundo.com>
64852
64853         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
64854
64855         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
64856
64857 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
64858
64859         * modules/close-stream: New file.
64860         * modules/closeout (Description): Make it clear that it exits
64861         with a diagnostic on error.
64862         (Depends-on): Add close-stream.  Remove fpending, stdbool.
64863         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
64864
64865 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
64866
64867         * m4/close-stream.m4: New file.
64868
64869 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
64870
64871         * lib/close-stream.c, lib/close-stream.h: New files.
64872
64873 2006-07-22  Bruno Haible  <bruno@clisp.org>
64874
64875         Merge from GNU gettext 0.15.
64876
64877         2006-05-01  Bruno Haible  <bruno@clisp.org>
64878
64879                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
64880
64881         2006-07-22  Bruno Haible  <bruno@clisp.org>
64882
64883                 * modules/javaversion: New file.
64884                 * MODULES.html.sh (Java): Add javaversion.
64885
64886         2006-03-12  Bruno Haible  <bruno@clisp.org>
64887
64888                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
64889
64890         2005-12-04  Bruno Haible  <bruno@clisp.org>
64891
64892                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
64893                 (untested).
64894
64895         2006-06-21  Bruno Haible  <bruno@clisp.org>
64896
64897                 Avoid warnings from recent versions of mcs.
64898                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
64899                 -o, -L, -r any more. Use options documented since mcs-1.0
64900                 instead. Similarly for -g.
64901
64902         2005-12-04  Bruno Haible  <bruno@clisp.org>
64903
64904                 * build-aux/csharpcomp.sh.in: Suffix for resources is
64905                 .resources, not .resource.
64906
64907         2005-07-09  Bruno Haible  <bruno@clisp.org>
64908
64909                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
64910                 add a .dll suffix.
64911                 Reported by Mark Junker <mjscod@gmx.de>.
64912
64913         2006-07-22  Bruno Haible  <bruno@clisp.org>
64914
64915                 * modules/gettext: Upgrade to gettext-0.15.
64916                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
64917                 m4/visibility.m4.
64918                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
64919
64920 2006-07-22  Bruno Haible  <bruno@clisp.org>
64921
64922         Merge from GNU gettext 0.15.
64923
64924         2006-03-25  Bruno Haible  <bruno@clisp.org>
64925
64926                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
64927
64928         2006-07-21  Bruno Haible  <bruno@clisp.org>
64929
64930                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
64931                 "1.1".
64932
64933         2006-05-09  Bruno Haible  <bruno@clisp.org>
64934
64935                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
64936                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
64937                 for the conftestver execution.
64938
64939         2006-05-01  Bruno Haible  <bruno@clisp.org>
64940
64941                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
64942                 optional target-version argument. Verify that the compiler
64943                 groks source of the specified source-version, or add -source
64944                 option as necessary. Verify that the compiler produces
64945                 bytecode in the specified target-version, or add -target and
64946                 -source options as necessary. Make the result of the test
64947                 available as variable CONF_JAVAC. Also log error output in
64948                 config.log.
64949
64950         2006-03-11  Bruno Haible  <bruno@clisp.org>
64951
64952                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
64953
64954         2006-05-09  Bruno Haible  <bruno@clisp.org>
64955
64956                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
64957                 CLASSPATH_SEPARATOR to a semicolon.
64958
64959         2006-03-12  Bruno Haible  <bruno@clisp.org>
64960
64961                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
64962                 available as variable CONF_JAVA, for subsequent autoconf
64963                 tests. Also log error output in config.log.
64964
64965         2006-07-19  Bruno Haible  <bruno@clisp.org>
64966
64967                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
64968                 that getline works on glibc2 systems. Needed to avoid trouble
64969                 in relocatable.c.
64970                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
64971
64972         2005-12-04  Bruno Haible  <bruno@clisp.org>
64973
64974                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
64975                 launcher (untested).
64976
64977         2005-12-04  Bruno Haible  <bruno@clisp.org>
64978
64979                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
64980
64981         2006-07-22  Bruno Haible  <bruno@clisp.org>
64982
64983                 * gettext.m4: Update from GNU gettext-0.15.
64984                 * nls.m4: Likewise.
64985                 * po.m4: Likewise.
64986                 * inttypes-pri.m4: Likewise.
64987                 * inttypes-h.m4: Renamed from inttypes.m4.
64988                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
64989
64990 2006-07-22  Bruno Haible  <bruno@clisp.org>
64991
64992         Merge from GNU gettext 0.15.
64993
64994         2005-07-05  Bruno Haible  <bruno@clisp.org>
64995
64996                 * printf-args.c (printf_fetchargs): Work around broken
64997                 definition of wint_t on mingw.
64998
64999         2005-02-12  Bruno Haible  <bruno@clisp.org>
65000
65001                 * xallocsa.h: Add extern "C" for C++.
65002
65003         2006-05-17  Bruno Haible  <bruno@clisp.org>
65004
65005                 Cygwin portability.
65006                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
65007
65008         2006-04-30  Bruno Haible  <bruno@clisp.org>
65009
65010                 * progreloc.c: Include <mach-o/dyld.h> if available.
65011                 (find_executable): Use _NSGetExecutablePath when possible.
65012
65013         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
65014
65015                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
65016                 function.
65017
65018         2005-12-29  Bruno Haible  <bruno@clisp.org>
65019
65020                 * progreloc.c (set_program_name_and_installdir): Fix
65021                 compilation error.
65022
65023         2005-12-04  Bruno Haible  <bruno@clisp.org>
65024
65025                 Cygwin portability.
65026                 * progreloc.c: Include <windows.h> also on Cygwin.
65027                 (find_executable): Add support for Cygwin.
65028                 (set_program_name_and_installdir): Handle also platforms with
65029                 nonempty EXEEXT.
65030
65031         2006-07-11  Bruno Haible  <bruno@clisp.org>
65032
65033                 * javacomp.c: Fix a comment.
65034                 Reported by Jim Meyering.
65035
65036         2006-04-30  Bruno Haible  <bruno@clisp.org>
65037
65038                 * javacomp.h (compile_java_class): Add source_version,
65039                 target_version arguments.
65040                 * javacomp.c: Rewritten to choose only a compiler that
65041                 respects the specified source_version and target_version.
65042
65043         2006-06-27  Bruno Haible  <bruno@clisp.org>
65044
65045                 Assume correct S_ISDIR macro.
65046                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
65047
65048         2006-07-22  Bruno Haible  <bruno@clisp.org>
65049
65050                 * javaversion.h: New file, from GNU gettext.
65051                 * javaversion.c: New file, from GNU gettext.
65052                 * javaversion.java: New file, from GNU gettext.
65053                 * javaversion.class: New file, from GNU gettext.
65054
65055         2006-05-17  Bruno Haible  <bruno@clisp.org>
65056
65057                 Cygwin portability.
65058                 * javaexec.c (execute_java_class): Test for jview program
65059                 also on Cygwin.
65060
65061         2006-04-09  Bruno Haible  <bruno@clisp.org>
65062
65063                 * fatal-signal.c: Don't include string.h.
65064                 (at_fatal_signal): Use a copying loop instead of memcpy.
65065
65066         2005-12-04  Bruno Haible  <bruno@clisp.org>
65067
65068                 * csharpexec.c: Add support for 'clix' launcher (untested).
65069                 (execute_csharp_using_sscli): New function.
65070                 (execute_csharp_program): Call it.
65071
65072         2006-06-21  Bruno Haible  <bruno@clisp.org>
65073
65074                 Avoid warnings from recent versions of mcs.
65075                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
65076                 -o, -L, -r any more. Use options documented since mcs-1.0
65077                 instead. Similarly for -g.
65078
65079         2005-07-09  Bruno Haible  <bruno@clisp.org>
65080
65081                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
65082                 add a .dll suffix.
65083                 Reported by Mark Junker <mjscod@gmx.de>.
65084
65085         2006-06-17  Bruno Haible  <bruno@clisp.org>
65086
65087                 * config.charset: Update for NetBSD 3.0.
65088
65089         2006-05-17  Bruno Haible  <bruno@clisp.org>
65090
65091                 Cygwin portability.
65092                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
65093
65094         2006-05-16  Bruno Haible  <bruno@clisp.org>
65095
65096                 * localcharset.c [CYGWIN]: Include <windows.h>.
65097                 (get_charset_aliases): For Cygwin, return the same CPxxx
65098                 aliases list as under WIN32.
65099                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
65100                 the environment variables. Fall back to GetACP().
65101
65102         2006-04-05  Bruno Haible  <bruno@clisp.org>
65103
65104                 * config.charset: Update Juan Manuel Guerrero's address.
65105
65106         2005-02-12  Bruno Haible  <bruno@clisp.org>
65107
65108                 * allocsa.h: Add extern "C" for C++.
65109
65110         2005-02-10  Bruno Haible  <bruno@clisp.org>
65111
65112                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
65113                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
65114
65115         2006-07-22  Bruno Haible  <bruno@clisp.org>
65116
65117                 * gettext.h: Update to GNU gettext-0.15.
65118
65119 2006-07-22  Bruno Haible  <bruno@clisp.org>
65120
65121         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
65122         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
65123         lib-prefix.m4, longdouble.m4, ssize_t.m4.
65124
65125 2006-07-21  Eric Blake  <ebb9@byu.net>
65126
65127         * modules/stdlib-safer: New file.
65128         * MODULES.html.sh (File stream based Input/Output): Add
65129         stdlib-safer.
65130
65131 2006-07-21  Eric Blake  <ebb9@byu.net>
65132
65133         * lib/stdlib-safer.h: New file from coreutils, required by
65134         stdlib--.h.
65135
65136 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
65137
65138         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
65139
65140 2006-07-20  Bruno Haible  <bruno@clisp.org>
65141
65142         * gnulib-tool: Recognize new option --assume-autoconf.
65143         (autoconf_minversion): New variable.
65144         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
65145
65146 2006-07-20  Bruno Haible  <bruno@clisp.org>
65147
65148         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
65149
65150 2006-07-19  Derek R. Price  <derek@ximbiot.com>
65151
65152         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
65153         Reindent and repaginate.
65154
65155 2006-07-19  Derek Price  <derek@ximbiot.com>
65156
65157         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
65158         Correct grammar.
65159
65160 2006-07-17  Bruno Haible  <bruno@clisp.org>
65161
65162         * modules/list: New file.
65163         * modules/array-list: New file.
65164         * modules/carray-list, modules/carray-list-tests: New files.
65165         * modules/linked-list, modules/linked-list-tests: New files.
65166         * modules/avltree-list, modules/avltree-list-tests: New files.
65167         * modules/rbtree-list, modules/rbtree-list-tests: New files.
65168         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
65169         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
65170         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
65171         * modules/oset: New file.
65172         * modules/array-oset: New file.
65173         * modules/avltree-oset, modules/avltree-oset-tests: New files.
65174         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
65175         * tests/test-carray_list.c: New file.
65176         * tests/test-linked_list.c: New file.
65177         * tests/test-avltree_list.c: New file.
65178         * tests/test-rbtree_list.c: New file.
65179         * tests/test-linkedhash_list.c: New file.
65180         * tests/test-avltreehash_list.c: New file.
65181         * tests/test-rbtreehash_list.c: New file.
65182         * tests/test-avltree_oset.c: New file.
65183         * tests/test-rbtree_oset.c: New file.
65184         * MODULES.html.sh (Container data structures): New section.
65185
65186 2006-07-17  Bruno Haible  <bruno@clisp.org>
65187
65188         * m4/gl_list.m4: New file.
65189
65190 2006-07-17  Bruno Haible  <bruno@clisp.org>
65191
65192         * lib/gl_list.h: New file.
65193         * lib/gl_list.c: New file.
65194         * lib/gl_array_list.h: New file.
65195         * lib/gl_array_list.c: New file.
65196         * lib/gl_carray_list.h: New file.
65197         * lib/gl_carray_list.c: New file.
65198         * lib/gl_linked_list.h: New file.
65199         * lib/gl_linked_list.c: New file.
65200         * lib/gl_anylinked_list1.h: New file.
65201         * lib/gl_anylinked_list2.h: New file.
65202         * lib/gl_avltree_list.h: New file.
65203         * lib/gl_avltree_list.c: New file.
65204         * lib/gl_anyavltree_list1.h: New file.
65205         * lib/gl_anyavltree_list2.h: New file.
65206         * lib/gl_rbtree_list.h: New file.
65207         * lib/gl_rbtree_list.c: New file.
65208         * lib/gl_anyrbtree_list1.h: New file.
65209         * lib/gl_anyrbtree_list2.h: New file.
65210         * lib/gl_anytree_list1.h: New file.
65211         * lib/gl_anytree_list2.h: New file.
65212         * lib/gl_linkedhash_list.h: New file.
65213         * lib/gl_linkedhash_list.c: New file.
65214         * lib/gl_anyhash_list1.h: New file.
65215         * lib/gl_anyhash_list2.h: New file.
65216         * lib/gl_avltreehash_list.h: New file.
65217         * lib/gl_avltreehash_list.c: New file.
65218         * lib/gl_rbtreehash_list.h: New file.
65219         * lib/gl_rbtreehash_list.c: New file.
65220         * lib/gl_anytreehash_list1.h: New file.
65221         * lib/gl_anytreehash_list2.h: New file.
65222
65223         * lib/gl_oset.h: New file.
65224         * lib/gl_oset.c: New file.
65225         * lib/gl_array_oset.h: New file.
65226         * lib/gl_array_oset.c: New file.
65227         * lib/gl_avltree_oset.h: New file.
65228         * lib/gl_avltree_oset.c: New file.
65229         * lib/gl_rbtree_oset.h: New file.
65230         * lib/gl_rbtree_oset.c: New file.
65231         * lib/gl_anytree_oset.h: New file.
65232
65233 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
65234
65235         * m4/mkancesdirs.m4: New file.
65236         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
65237         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
65238         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
65239         it.
65240
65241 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
65242
65243         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
65244         * lib/mkancesdirs.h: New files.
65245         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
65246         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
65247         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
65248         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
65249         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
65250         callers changed.  Revamp internals significantly, by not
65251         attempting to create directories that are temporarily more
65252         permissive than the final results.  Do not attempt to use
65253         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
65254         This removes some race conditions, fixes some bugs, and simplifies
65255         things.  Use new dirchownmod function to do owner and mode changes.
65256         * lib/mkdir-p.h: Likewise.
65257         * lib/modechange.c (octal_to_mode): New function.
65258         (struct mode_change): New member mentioned.
65259         (make_node_op_equals): New arg mentioned.  All callers changed.
65260         (mode_compile): Keep track of which mode bits the user has explicitly
65261         mentioned.
65262         (mode_adjust): New arg DIR, so that we implement the X op correctly.
65263         New arg PMODE_BITS, to keep track of which mode bits the user
65264         mentioned; it treats S_ISUID and S_ISGID speciall.
65265         All callers changed.
65266         * lib/modechange.h: Likewise.
65267
65268 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
65269
65270         * MODULES.html.sh: Add mkancestors.
65271         * modules/mkancesdirs: New module.
65272         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
65273         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
65274         The chdir-safer and afs files are now orphans; I'll remove them
65275         unless someone speaks up.
65276         Add lib/dirchownmod.c, lib/dirchownmod.h.
65277         (Depends-on): Remove alloca, chown, save-cwd, dirname.
65278         Add lchown, mkancesdirs.
65279         (Maintainer): Add self.
65280
65281 2006-07-15  Karl Berry  <karl@gnu.org>
65282
65283         * gnulib-tool: help message wording/arrangement.
65284
65285 2006-07-14  Simon Josefsson  <jas@extundo.com>
65286
65287         * doc/gnulib.texi (Libtool and Windows): New section.
65288
65289 2006-07-12  Simon Josefsson  <jas@extundo.com>
65290
65291         * modules/gendocs (License): Fix license, approved by Karl.
65292
65293 2006-07-12  Eric Blake  <ebb9@byu.net>
65294
65295         * MODULES.html.sh: Add gendocs.
65296
65297 2006-07-11  Eric Blake  <ebb9@byu.net>
65298
65299         * modules/fdl: New module, to install doc/fdl.texi.
65300         * MODULES.html.sh: Add new section for documentation modules.
65301         * gnulib-tool: Avoid space-tab.
65302         (--doc-base): New option, to manage files from doc.
65303
65304 2006-07-11  Eric Blake  <ebb9@byu.net>
65305
65306         * m4/absolute-header.m4: Fix comments to match recent change.
65307
65308 2006-07-11  Eric Blake  <ebb9@byu.net>
65309
65310         * gnulib-tool: List --doc-base before --tests-base.
65311
65312 2006-07-11  Derek R. Price  <derek@ximbiot.com>
65313
65314         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
65315
65316 2006-07-11  Bruno Haible  <bruno@clisp.org>
65317
65318         * README: Mention where to put documentation.
65319
65320 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65321
65322         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
65323
65324 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
65325
65326         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
65327         to stdint.m4.
65328
65329 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
65330
65331         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
65332         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
65333         "no/such/file/stdint.h" when there is no such file, so that
65334         the resulting C code can be parsed by dodgy compilers.
65335         Problems reported by Bob Proulx.
65336
65337 2006-07-10  Derek R. Price  <derek@ximbiot.com>
65338
65339         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
65340         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
65341         macros into the GNU _D_EXACT_NAMLEN.
65342         * lib/savedir.c:  Likewise.
65343         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
65344
65345 2006-07-10  Derek R. Price  <derek@ximbiot.com>
65346         and Paul Eggert  <eggert@cs.ucla.edu>
65347
65348         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
65349         * m4/savedir.m4:
65350         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
65351         macros into the GNU _D_EXACT_NAMLEN.
65352
65353 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
65354
65355         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
65356         around the absolute name, to work around a problem with the HP-UX
65357         11.23 native C compiler, reported by Bob Proulx.
65358
65359 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
65360
65361         * doc/maintain.texi, make-stds.texi: Sync from
65362         <http://savannah.gnu.org/projects/gnustandards>.
65363
65364 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
65365
65366         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
65367
65368 2006-07-09  Jim Meyering  <jim@meyering.net>
65369
65370         * m4/glob.m4: Remove a doubled word in a comment.
65371
65372 2006-07-09  Jim Meyering  <jim@meyering.net>
65373
65374         * lib/argp-pv.c: Remove a doubled word in a comment.
65375         * lib/check-version.c (check_version): Likewise.
65376         * lib/javacomp.c (compile_java_class): Likewise.
65377
65378 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
65379
65380         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
65381         for the benefit of people using Autoconf 2.60.  If you want to
65382         support older Autoconf versions you can copy m4/onceonly_2_57.m4
65383         (or m4/onceonly.m4, if pre-2.57) manually.
65384
65385 2006-07-08  Jim Meyering  <jim@meyering.net>
65386
65387         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
65388         comment.
65389         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
65390         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
65391         comment.
65392
65393 2006-07-08  Jim Meyering  <jim@meyering.net>
65394
65395         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
65396
65397 2006-07-07  Simon Josefsson  <jas@extundo.com>
65398
65399         * tests/test-crc.c: Change expected crc value, the test vector
65400         were probably computed using the old broken crc.c?
65401
65402 2006-07-06  Simon Josefsson  <jas@extundo.com>
65403
65404         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
65405         now the canonical place for the M4 file).
65406
65407         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
65408         from the sys_socket dependency now.
65409
65410         * modules/inet_pton (Files): Ditto.
65411
65412         * modules/inet_ntop (Files): Ditto.
65413
65414 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
65415
65416         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
65417         not gl_PREREQ_GETUSERSHELL.
65418
65419 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65420
65421         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
65422         with only one argument, for Autoconf 2.60.
65423         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
65424         expand to nothing, so add a shell command to avoid syntax error.
65425         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
65426
65427 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65428
65429         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
65430
65431 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
65432
65433         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
65434         no longer needed.  Check for isblank decl.
65435         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
65436         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
65437         of existence.
65438
65439 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
65440
65441         * lib/getloadavg.c: Use __VMS, not VMS.
65442         * lib/getopt.c: Likewise.
65443         * lib/getpagesize.h: Likewise.
65444         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
65445         and probably does not work.
65446
65447 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
65448
65449         * lib/.cppi-disable: Add wcwidth.
65450         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
65451         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
65452         (ISGRAPH): Remove.  All uses changed to isgraph.
65453         (FOLD) [!defined _LIBC]: Remove special case.
65454         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
65455         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
65456         HAVE_ISBLANK.
65457         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
65458         case.
65459
65460 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
65461
65462         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
65463         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
65464         brackets.  Other minor changes to suppress some compiler
65465         warnings.
65466
65467 2006-07-06  Derek R. Price  <derek@ximbiot.com>
65468         and Paul Eggert  <eggert@cs.ucla.edu>
65469
65470         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
65471         of invoking obsolescent AC_HEADER_DIRENT macro.
65472         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
65473         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
65474         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
65475         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
65476         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
65477         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
65478         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
65479         * m4/readdir.m4: Remove; no longer needed.
65480
65481 2006-07-06  Derek R. Price  <derek@ximbiot.com>
65482         and Paul Eggert  <eggert@cs.ucla.edu>
65483
65484         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
65485         Don't worry about this obsolete case any more.
65486         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
65487         directories.
65488         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
65489         worry about this obsolete case any more.
65490         * lib/fts.c: Likewise.
65491         * lib/getcwd.c: Likewise.
65492         * lib/glob.h: Likewise.
65493         * lib/savedir.c: Likewise.
65494
65495 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
65496
65497         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
65498         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
65499         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
65500         needed.
65501         All uses removed.
65502         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
65503         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
65504         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
65505         needed.
65506         * m4/getdate.m4 (gl_GETDATE): Likewise.
65507         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
65508         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
65509         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
65510         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
65511         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
65512         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
65513         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
65514         needed.
65515
65516 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
65517
65518         * lib/memcasecmp.c: Include <limits.h>.
65519         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
65520         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
65521         Don't assume isdigit succeeds only on '0' through '9'.
65522
65523 2006-07-05  Eric Blake  <ebb9@byu.net>
65524
65525         * modules/getaddrinfo (Depends-on): Add snprintf.
65526
65527 2006-07-05  Eric Blake  <ebb9@byu.net>
65528
65529         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
65530         to avoid 'header present but could not be compiled' on cygwin.
65531
65532 2006-07-05  Eric Blake  <ebb9@byu.net>
65533
65534         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
65535         missing from netdb.h.
65536         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
65537
65538 2006-07-05  Derek R. Price  <derek@ximbiot.com>
65539
65540         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
65541         no longer needed.
65542         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
65543         * m4/getdate.m4 (gl_GETDATE): Likewise.
65544         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
65545         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
65546         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
65547         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
65548         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
65549
65550 2006-07-05  Derek R. Price  <derek@ximbiot.com>
65551
65552         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
65553         All uses of is_space replaced by isspace.
65554         * lib/exit.h: Don't talk about STDC_HEADERS.
65555         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
65556         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
65557         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
65558         replaced by isprint etc.
65559         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
65560         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
65561         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
65562         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
65563         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
65564         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
65565
65566 2006-07-05  Bruno Haible  <bruno@clisp.org>
65567
65568         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
65569         the function exists, before testing against AIX.
65570         Reported by Martin Lambers <marlam@marlam.de>.
65571
65572 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
65573
65574         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
65575         From Mark D. Baushke.
65576
65577 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
65578
65579         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
65580         to the absolute name, not just one, to bypass Sun C 5.8's
65581         "warning: #include of /usr/include/... may be non-portable".
65582
65583 2006-07-04  Eric Blake  <ebb9@byu.net>
65584
65585         * modules/dirname-tests: New test module.
65586         * tests/test-dirname.c: New file, replacing dirname.c
65587         TEST_DIRNAME section that was recently deleted.
65588
65589 2006-07-04  Bruno Haible  <bruno@clisp.org>
65590
65591         Assume ANSI C header files and <ctype.h> functions.
65592         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
65593         (mbsnwidth): Use isprint, iscntrl instead.
65594
65595 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65596
65597         Merge from coreutils.
65598         * MODULES.html.sh: Add xstrtold.
65599         * modules/xstrtold: New file.
65600         * modules/cycle-check (Files): Add lib/same-inode.h.
65601         * modules/dirname (Files): Add m4/double-slash-root.m4.
65602         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
65603         * modules/mkdir-p (Files): Add lib/same-inode.h.
65604         * modules/same (Files): Add lib/same-inode.h.
65605
65606 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65607
65608         * m4/absolute-header.m4: Renamed from full-header-path.m4.
65609         This is to keep the terminology clean; POSIX talks about
65610         "absolute pathnames", not "full pathnames", but the GNU
65611         Coding Standards say to use "path" for something else;
65612         so use "absolute" to keep both sides happy.
65613         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
65614         Set gl_absolute_header, not gl_full_header_path.
65615         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
65616         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
65617         All uses changed.
65618
65619         Merge from coreutils.
65620
65621         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
65622
65623         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
65624         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
65625         want to require the building of c-strtod.o.
65626         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
65627         needs -lm directly.
65628         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
65629
65630         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
65631
65632         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
65633         --as-needed option if available.  Problem reported by Albert Chin in
65634         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
65635         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
65636         cc merely issues a bunch of annoying warnings for --as-needed
65637         (this problem was reported by Bob Proulx).  Also, try linking with
65638         -lm to detect a bug in binutils 2.16 (this problem was reported
65639         by Ralf Wildenhues).
65640
65641         2006-06-18  Jim Meyering  <jim@meyering.net>
65642
65643         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
65644         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
65645         macro.
65646         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
65647         also check for glibc-2.4's abort-inducing bug.
65648
65649         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
65650         Low-probability clean-up should be to use rmdir to get rid of
65651         the just-created directory, not unlink.
65652
65653         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
65654         configure fail, and request a bug report to inform us about it.
65655         Add a comment that, barring reports to the contrary, in 2007 we'll
65656         assume ftruncate is universally available.
65657
65658         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
65659
65660         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
65661
65662         2006-03-12  Jim Meyering  <jim@meyering.net>
65663
65664         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
65665         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
65666         * m4/same.m4 (gl_SAME): Likewise.
65667         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
65668
65669         2006-03-11  Eric Blake  <ebb9@byu.net>
65670
65671         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
65672         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
65673         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
65674         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
65675
65676 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65677
65678         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
65679         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
65680         reported by Mark D. Baushke, one in
65681         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
65682
65683         Merge from coreutils.
65684
65685         * lib/.cppi-disable: Add stdint_.h.
65686         * lib/.cvsignore: Add stdint.h.
65687
65688         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
65689
65690         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
65691         both double and long double versions.
65692         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
65693         * lib/xstrtold.c: New file.
65694         * lib/xstrtod.h (xstrtold): New decl.
65695
65696         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
65697
65698         * lib/filemode.c (setst): Remove.
65699         (strmode): Rewrite to avoid setst.  This makes the code shorter,
65700         (arguably) clearer, and the generated code is a bit smaller on my
65701         Debian GNU/Linux stable x86 host.
65702
65703         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
65704
65705         * lib/filemode.c: Include "filemode.h" first, to test the interface.
65706         Assume that filemode.h includes sys/types.h and sys/stat.h.
65707         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
65708         (ftypelet): Reorder to put common cases first, for efficiency.
65709         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
65710         to do 'M'.
65711         (strmode): Renamed from mode_string, and now stores 12 bytes instead
65712         of 10, for compatibility with FreeBSD.  All callers changed.
65713         (filemodestring): Now stores 12 bytes instead of 10, and sets file
65714         types that can't be deduced solely from st_mode.  First arg is now a
65715         const pointer.
65716         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
65717         (strmode): Renamed from mode_string.
65718         (filemodestring): New decl.
65719         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
65720         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
65721         needed.
65722         (S_ISPORT, S_ISWHT): New macros, if not already defined.
65723
65724         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
65725
65726         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
65727         fsusage.h now does that.  Include fsusage.h first, to test interface.
65728         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
65729         at most one method (the old code could have generated decls that
65730         didn't conform to C89, not that this was ever exercised).
65731         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
65732
65733         2006-03-19  Jim Meyering  <jim@meyering.net>
65734
65735         Work even in a chroot where d_ino values for entries in "/"
65736         don't match the stat.st_ino values for the same names.
65737         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
65738         number, iterate through all entries again, using lstat instead.
65739         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
65740         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
65741
65742         * lib/getcwd.c (__getcwd): Clarify a comment.
65743         Use memcpy in place of a call to strcpy.
65744
65745         2006-03-12  Jim Meyering  <jim@meyering.net>
65746
65747         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
65748         matches that of the current directory (which we're about to chdir ".."
65749         out of), then save the dev-ino of the parent, instead.
65750
65751         * lib/same-inode.h (SAME_INODE): New file/macro.
65752         * lib/chdir-safer.c (SAME_INODE): Remove definition.
65753         Include "same-inode.h", instead.
65754         * lib/same.c: Likewise.
65755         * lib/cycle-check.h: Include "same-inode.h".
65756         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
65757         * lib/cycle-check.c (SAME_INODE): Remove definition.
65758         * lib/root-dev-ino.h: Include "same-inode.h".
65759
65760         2006-03-11  Eric Blake  <ebb9@byu.net>
65761
65762         * lib/same.c (same_name): s/base_name/last_component/
65763         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
65764         * lib/filenamecat.c (file_name_concat): Likewise.
65765
65766         2006-03-11  Eric Blake  <ebb9@byu.net>,
65767                     Paul Eggert  <eggert@cs.ucla.edu>
65768
65769         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
65770         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
65771         drive prefix.
65772         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
65773         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
65774         (last_component): New method.
65775         * lib/dirname.c (dir_len): Determine when drive letters need a
65776         subsequent slash.  Preserve // when it is special.
65777         (dir_name): Don't append dot when drive letter is absolute.
65778         [TEST_DIRNAME]: Move into a full-blown gnulib test.
65779         * lib/basename.c (base_name): New semantics - malloc the result.
65780         Preserve // when it is special.  Preserve relative files that look
65781         like drive letters.
65782         (base_len): Preserve // when it is special.
65783         (last_component): New method, similar to old base_name semantics.
65784         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
65785         base_name.  Strip redundant slashes from ///.
65786
65787 2006-07-03  Jim Meyering  <jim@meyering.net>
65788
65789         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
65790         macro is used before the first cycle_check call.
65791
65792 2006-07-03  Eric Blake  <ebb9@byu.net>
65793
65794         * modules/dirname (Depends-on): Add xstrndup.
65795
65796 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
65797
65798         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
65799         test cases, so that config.log is a bit easier to follow.
65800
65801 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
65802
65803         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
65804         both are 64 bits, since this seems to be the tradition, and this
65805         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
65806         we ever run into a host that prefers long long to long in this
65807         case, we'll need another configure-time test.  Problem reported by
65808         Jim Meyering.
65809
65810 2006-07-02  Eric Blake  <ebb9@byu.net>
65811
65812         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
65813
65814 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
65815
65816         * modules/inttypes (Depends-on): No longer depends on stdint.
65817         * modules/stdint (Description): Say more about assumptions.
65818         Say that the fast types might differ.  Say macros are used.
65819         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
65820         (Makefile.am): Revise list of substituted symbols to match
65821         new stdint.m4.
65822         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
65823         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
65824         * tests/test-stdint.c (verify_same_types)
65825         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
65826         the code conforms to C99/C89.
65827         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
65828         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
65829
65830 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
65831
65832         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
65833         but fix a bug, by requiring at least 64 bits.
65834         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
65835         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
65836         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
65837         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
65838
65839         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
65840         changes.  Make 2.59 a prerequisite.  Check and substitute for
65841         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
65842         inttypes.h.  Do not use special include files; just use the
65843         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
65844         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
65845         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
65846         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
65847         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
65848         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
65849         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
65850         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
65851         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
65852         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
65853         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
65854         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
65855         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
65856         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
65857         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
65858         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
65859         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
65860         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
65861         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
65862         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
65863         WINT_MAX.  Check for C99 conformance more strictly, by detecting
65864         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
65865         not check for things that C99 does not require, e.g., int8_t.  If
65866         a test isn't needed unless <stdint.h> isn't working, and is
65867         unlikely to be needed for any other reason, then don't do it
65868         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
65869         size_t, since we assume C89 freestanding at least.  Do not check
65870         for sig_atomic_t, wchar_t, or wint_t, since the code now does
65871         the right thing even if the types are not defined.  Instead use:
65872         (gl_STDINT_TYPE_PROPERTIES): New macro.
65873         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
65874         testing whether <sys/types.h> clashes, as Autoconf does this for
65875         us now.  All uses removed.
65876         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
65877         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
65878         (gl_CHECK_TYPE_SAME):
65879         Remove; no longer needed.
65880         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
65881         exists, since we'll return 0 anyway in that case.
65882         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
65883
65884 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
65885
65886         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
65887         possible collision with system files.
65888         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
65889         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
65890         WCHAR_MIN and WCHAR_MAX in this case.
65891         (<stddef.h>): Do not include; no longer needed.
65892         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
65893         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
65894         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
65895         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
65896         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
65897         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
65898         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
65899         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
65900         !defined(__c99))]: Include in this case too, since it's harmless
65901         now.
65902         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
65903         dangerous to do so.
65904         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
65905         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
65906         (_STDINT_MIN, _STDINT_MAX): New macros.
65907         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
65908         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
65909         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
65910         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
65911         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
65912         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
65913         macros, not typedefs; this simplifies things quite a bit.
65914         Use long int for all types narrower than int64_t.
65915         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
65916         Define in terms of long long int or int64_t or long int,
65917         not int64_t or int32_t.  This saves some compile-time testing.
65918         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
65919         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
65920         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
65921         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
65922         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
65923         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
65924         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
65925         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
65926         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
65927         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
65928         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
65929         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
65930         undef any previous version and define our own version, for
65931         simplicity and consistency with the new macros for types.
65932         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
65933         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
65934         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
65935         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
65936         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
65937         @WINT_T_SUFFIX@ to keep things simple here.
65938         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
65939         Simplify by assuming typical 8/16/32/64 host, since we're
65940         already doing that elsewhere anyway.
65941         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
65942         and assume long long int is 64 bits if available.  This
65943         speeds up 'configure'.
65944
65945 2006-07-01  Eric Blake  <ebb9@byu.net>
65946
65947         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
65948         Reported by Andreas Buening.
65949
65950 2006-07-01  Eric Blake  <ebb9@byu.net>
65951
65952         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
65953
65954 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
65955
65956         * lib/getaddrinfo.c: fixed typo
65957
65958 2006-06-29  Jim Meyering  <jim@meyering.net>
65959
65960         * modules/strftime (Maintainer): Add my name, since with the
65961         FPRINTFTIME changes strftime.c has forked from glibc.
65962
65963 2006-06-29  Eric Blake  <ebb9@byu.net>
65964
65965         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
65966
65967 2006-06-29  Eric Blake  <ebb9@byu.net>
65968
65969         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
65970
65971 2006-06-29  Eric Blake  <ebb9@byu.net>
65972
65973         * lib/stat_.h: New file.
65974
65975 2006-06-29  Eric Blake  <ebb9@byu.net>
65976
65977         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
65978         unused static function.
65979
65980 2006-06-29  Eric Blake  <ebb9@byu.net>
65981
65982         * doc/functions.texi (Function Portability): Document missing lstat
65983         on mingw.
65984
65985 2006-06-29  Eric Blake  <ebb9@byu.net>
65986
65987         * MODULES.html.sh: Add sys_stat.
65988         * modules/sys_stat: New module.
65989         * modules/mkstemp (Depends-on): Add sys_stat.
65990
65991 2006-06-29  Derek R. Price  <derek@ximbiot.com>
65992
65993         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
65994
65995 2006-06-29  Derek R. Price  <derek@ximbiot.com>
65996
65997         * m4/c-bs-a.m4: Removed.
65998
65999 2006-06-29  Derek R. Price  <derek@ximbiot.com>
66000
66001         * lib/strftime.c: Assume strftime() exists.
66002
66003 2006-06-29  Derek Price  <derek@ximbiot.com>
66004
66005         * modules/c-bs-a: Removed - \a is C89.
66006         * MODULES.html.sh: Remove c-bs-a.
66007
66008 2006-06-29  Bruno Haible  <bruno@clisp.org>
66009
66010         * modules/wcwidth (License): Change to LGPL.
66011
66012 2006-06-28  Simon Josefsson  <jas@extundo.com>
66013
66014         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
66015         on _WIN32.
66016
66017         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
66018         getnameinfo.
66019
66020 2006-06-28  Simon Josefsson  <jas@extundo.com>
66021
66022         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
66023
66024 2006-06-28  Simon Josefsson  <jas@extundo.com>
66025
66026         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
66027         functions there.  It will succeed on Windows XP, but on Windows
66028         2000 and (presumably) earlier, it will fail, and use the internal
66029         re-implementation.
66030         (use_win32_p): New function.
66031         (getaddrinfo): Use strtoul on servname, to support numeric ports.
66032         Support AI_NUMERICSERV to disable getservbyname.
66033         (getnameinfo): New function, only supports
66034         NI_NUMERICHOST|NI_NUMERICSERV for now.
66035
66036         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
66037         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
66038         getnameinfo.
66039
66040 2006-06-28  Eric Blake  <ebb9@byu.net>
66041
66042         * modules/wcwidth: New file.
66043         * modules/mbchar (Depends-on): Add wcwidth.
66044         * modules/mbswidth (Depends-on): Add wcwidth.
66045         * MODULES.html.sh: Add wcwidth.
66046
66047 2006-06-28  Eric Blake  <ebb9@byu.net>
66048
66049         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
66050         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
66051
66052 2006-06-28  Eric Blake  <ebb9@byu.net>
66053
66054         * lib/xvasprintf.h: Fix comments.
66055
66056 2006-06-28  Eric Blake  <ebb9@byu.net>
66057
66058         * lib/mbchar.h (wcwidth): Include wcwidth.h.
66059         * lib/mbswidth.c (wcwidth): Move from here...
66060         * lib/wcwidth.h: ...to this new file.
66061
66062 2006-06-28  Derek R. Price  <derek@ximbiot.com>
66063
66064         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
66065
66066         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
66067         it's obsolete.
66068         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
66069
66070 2006-06-28  Derek R. Price  <derek@ximbiot.com>
66071
66072         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
66073         Autoconf 2.60 says this stuff was obsolete.
66074
66075 2006-06-28  Bruno Haible  <bruno@clisp.org>
66076
66077         * modules/wcwidth (Files): Add m4/wchar_t.m4.
66078
66079 2006-06-28  Bruno Haible  <bruno@clisp.org>
66080
66081         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
66082         gt_TYPE_WCHAR_T.
66083
66084 2006-06-28  Bruno Haible  <bruno@clisp.org>
66085
66086         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
66087         declaration for wcwidth.
66088         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
66089
66090 2006-06-28  Bruno Haible  <bruno@clisp.org>
66091
66092         * lib/mkdtemp.c [MINGW]: Include <io.h>.
66093         (mkdir): Define using _mkdir.
66094
66095 2006-06-28  Bruno Haible  <bruno@clisp.org>
66096
66097         * lib/getaddrinfo.h: Fix POSIX URL.
66098         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
66099         _WIN32.
66100         (use_win32_p): Make static.
66101         (getaddrinfo): Reject service name if it is empty or does not consist
66102         solely of decimal digits, or if its value is > 65535.
66103         (getnameinfo): Remove useless casts.
66104
66105 2006-06-27  Simon Josefsson  <jas@extundo.com>
66106
66107         * modules/sys_select: New file, suggested by Bruno Haible, Paul
66108         Eggert and Martin Lambers.
66109
66110 2006-06-27  Simon Josefsson  <jas@extundo.com>
66111
66112         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
66113         Eggert and Martin Lambers.
66114
66115 2006-06-27  Bruno Haible  <bruno@clisp.org>
66116
66117         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
66118         result to 0, not to empty.
66119         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
66120
66121 2006-06-27  Bruno Haible  <bruno@clisp.org>
66122
66123         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
66124
66125 2006-06-26  Simon Josefsson  <jas@extundo.com>
66126
66127         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
66128         present.
66129
66130 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
66131
66132         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
66133         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
66134         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
66135
66136 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
66137
66138         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
66139
66140 2006-06-26  Bruno Haible  <bruno@clisp.org>
66141
66142         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
66143
66144 2006-06-26  Bruno Haible  <bruno@clisp.org>
66145
66146         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
66147
66148 2006-06-26  Bruno Haible  <bruno@clisp.org>
66149
66150         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
66151         SGI C compiler in pre-C99 mode.
66152         Suggested by Mark D. Baushke and Larry Jones.
66153
66154 2006-06-26  Bruno Haible  <bruno@clisp.org>
66155
66156         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
66157         WCHAR_MAX.
66158         Reported by Mark D. Baushke and Larry Jones.
66159
66160 2006-06-26  Bruno Haible  <bruno@clisp.org>
66161
66162         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
66163         in pre-C99 mode.
66164         Suggested by Mark D. Baushke and Larry Jones.
66165
66166 2006-06-23  Simon Josefsson  <jas@extundo.com>
66167             Bruno Haible  <bruno@clisp.org>
66168
66169         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
66170         Emit mostlyclean-local rule.
66171         (func_emit_tests_Makefile_am): Likewise.
66172         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
66173
66174 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
66175
66176         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
66177
66178 2006-06-23  Bruno Haible  <bruno@clisp.org>
66179
66180         * tests/test-stdint.c: Update to match ISO C 99 Technical
66181         Corrigendum 1.
66182
66183 2006-06-23  Bruno Haible  <bruno@clisp.org>
66184
66185         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
66186
66187 2006-06-23  Bruno Haible  <bruno@clisp.org>
66188
66189         * lib/stdint_.h: Treat IRIX like OpenBSD.
66190
66191 2006-06-23  Bruno Haible  <bruno@clisp.org>
66192
66193         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
66194         ISO C 99 Technical Corrigendum 1.
66195
66196 2006-06-22  Simon Josefsson  <jas@extundo.com>
66197
66198         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
66199         MinGW.
66200
66201 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
66202
66203         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
66204         needed.  Some compiler complained about some of them.  Problem reported
66205         by Larry Jones in
66206         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
66207
66208 2006-06-21  Simon Josefsson  <jas@extundo.com>
66209
66210         * tests/test-getaddrinfo.c: New file.
66211
66212         * modules/getaddrinfo-tests: New file.
66213
66214         * MODULES.html.sh: Add inet_pton.
66215
66216         * modules/inet_pton: New file.
66217
66218 2006-06-21  Simon Josefsson  <jas@extundo.com>
66219
66220         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
66221         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
66222         of using the (limited) gnulib implementation on Windows XP.
66223
66224         * m4/inet_pton.m4: New file.
66225
66226 2006-06-21  Simon Josefsson  <jas@extundo.com>
66227
66228         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
66229         variable.
66230
66231         * lib/socket_.h: Don't define WINVER.
66232
66233         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
66234         slightly modified to work in gnulib.
66235
66236 2006-06-21  Simon Josefsson  <jas@extundo.com>
66237
66238         * doc/gnulib.texi (Windows sockets): Add.
66239
66240 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
66241
66242         * lib/read-file.c (fread_file): Start with buffer allocation of
66243         0 bytes rather than 1 byte; this simplifies the code.
66244         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
66245         code to free buffer and save/restore errno.
66246         (internal_read_file): Remove unused local.
66247
66248 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
66249
66250         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
66251         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
66252         Problem reported by Denis Excoffier in
66253         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
66254
66255 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66256
66257         * modules/sys_socket, modules/socklen: Include sys/types since
66258         FreeBSD 4.x's sys/socket.h needs it.
66259
66260 2006-06-19  Simon Josefsson  <jas@extundo.com>
66261
66262         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
66263
66264 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
66265
66266         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
66267
66268 2006-06-19  Bruno Haible  <bruno@clisp.org>
66269
66270         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
66271         and FULL_PATH_INTTYPES_H in angle brackets.
66272         Reported by Mark D. Baushke <mdb@gnu.org>.
66273
66274 2006-06-17  Eric Blake  <ebb9@byu.net>
66275
66276         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
66277         errno.
66278
66279 2006-06-17  Bruno Haible  <bruno@clisp.org>
66280
66281         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
66282         <sys/inttypes.h>.
66283
66284 2006-06-17  Bruno Haible  <bruno@clisp.org>
66285
66286         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
66287         whether errno is declared. Assume <errno.h> declares errno.
66288
66289 2006-06-17  Bruno Haible  <bruno@clisp.org>
66290
66291         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
66292
66293 2006-06-17  Bruno Haible  <bruno@clisp.org>
66294
66295         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
66296         problem on Solaris 2.5.1.
66297
66298 2006-06-16  Eric Blake  <ebb9@byu.net>
66299
66300         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
66301         * lib/unicodeio.c [!defined errno]: Likewise.
66302         * lib/strtol.c [!defined errno]: Likewise.
66303         * lib/strtod.c [!defined errno]: Likewise.
66304
66305 2006-06-15  Eric Blake  <ebb9@byu.net>
66306
66307         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
66308
66309 2006-06-15  Eric Blake  <ebb9@byu.net>
66310
66311         * config/srclist.txt (ssize_t.m4): Lose sync.
66312
66313 2006-06-15  Bruno Haible  <bruno@clisp.org>
66314
66315         * modules/stdint (Files): Include m4/full-header-path.m4,
66316         m4/size_max.m4, m4/wchar_t.m4.
66317         (Makefile.am): Many more substitutions.
66318         * modules/stdint-tests: New file.
66319         * tests/test-stdint.c: New file.
66320
66321 2006-06-15  Bruno Haible  <bruno@clisp.org>
66322
66323         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
66324         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
66325         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
66326         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
66327         gl_CHECK_TYPE_SAME): New macros.
66328
66329 2006-06-15  Bruno Haible  <bruno@clisp.org>
66330
66331         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
66332
66333 2006-06-15  Bruno Haible  <bruno@clisp.org>
66334
66335         * lib/stdint_.h: Rewritten to be fully auto-configured.
66336         Fixes bug on HP-UX/IA64.
66337
66338 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
66339
66340         * lib/getdate.y (__attribute__): Don't define if already defined.
66341         Problem reported by Larry Jones.
66342         * lib/utimens.c (__attribute__): Likewise.
66343
66344 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
66345
66346         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
66347         reported by Andreas Schwab.
66348
66349 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66350             Bruno Haible  <bruno@clisp.org>
66351
66352         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
66353         check for the declaration of strnlen and a run test that exposes the
66354         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
66355         rpl_strndup.
66356
66357 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66358             Bruno Haible  <bruno@clisp.org>
66359
66360         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
66361
66362 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66363
66364         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
66365         compile test, for Tru64 4.0D.
66366
66367 2006-05-28  Karl Berry  <karl@gnu.org>
66368
66369         * config/srclist.txt (printf-args.c): lose sync.
66370
66371 2006-05-26  Martin Lambers  <marlam@marlam.de>
66372
66373         * lib/getpass.c: Updates the test for the native W32 API, and adds
66374         missing includes, thus fixing compilation warnings.
66375
66376 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
66377
66378         * lib/exclude.c (exclude_fnmatch): New function.
66379         (excluded_file_name): Call exclude_fnmatch.
66380         * lib/exclude.h (excluded_file_name): New prototype
66381
66382 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
66383
66384         * lib/tempname.c (small_open, large_open): New macros.
66385         (__open, __open64) [!_LIBC]: Remove.
66386         (__gen_tempname): Use small_open and large_open instead of __open
66387         and __open64.  This fixes a portability bug on HP-UX 11.11i
66388         reported by Simon Wing-Tang in
66389         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
66390
66391 2006-05-24  Bruno Haible  <bruno@clisp.org>
66392
66393         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
66394         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
66395         Reported by Thorsten Maerz <torte@netztorte.de> via
66396         Aaron Stone <aaron@serendipity.cx>.
66397
66398 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
66399
66400         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
66401         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
66402         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
66403         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
66404         not really conditional on the cache.
66405         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
66406
66407 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
66408
66409         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
66410         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
66411         (my_usleep): Don't mishandle maximum value.
66412
66413 2006-05-19  Jim Meyering  <jim@meyering.net>
66414
66415         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
66416
66417 2006-05-17  Bruno Haible  <bruno@clisp.org>
66418
66419         Cygwin portability.
66420         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
66421
66422 2006-05-17  Bruno Haible  <bruno@clisp.org>
66423
66424         * lib/stdint_.h: Fix recognition of Cygwin.
66425
66426 2006-05-15  Bruno Haible  <bruno@clisp.org>
66427
66428         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
66429         on libtool patch by Ralf Wildenhues.
66430
66431 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
66432
66433         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
66434         test for C99 conformance; (bool) 0.5 is an integer constant
66435         expression, but (bool) -0.5 is not.  Problem reported by Fedor
66436         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
66437
66438 2006-05-11  Simon Josefsson  <jas@extundo.com>
66439
66440         * m4/xvasprintf.m4: Fix obvious typo.
66441
66442 2006-05-11  Jim Meyering  <jim@meyering.net>
66443
66444         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
66445         James Lemley.
66446
66447 2006-05-10  Simon Josefsson  <jas@extundo.com>
66448
66449         * lib/md4.c: Typo fix, update copyright years.
66450         (K1, K2): Don't use L because it turn computations into 64-bit on
66451         64-bit platforms.
66452
66453 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
66454
66455         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
66456         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
66457         unwanted sign propagation, e.g., on hosts with 64-bit int.
66458         There still are some problems with reeelly weird theoretical hosts
66459         (e.g., 33-bit int) but it's not worth worrying about now.
66460         * lib/sha1.c (rol): Likewise.
66461         (K1, K2, K3, K4): Remove unnecessary L suffix.
66462
66463 2006-05-10  Bruno Haible  <bruno@clisp.org>
66464
66465         * lib/des.c: Cast to avoid warnings.
66466
66467 2006-05-09  Bruno Haible  <bruno@clisp.org>
66468
66469         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
66470         (Depends-on): Depend also on xsize, stdarg.
66471         (configure.ac): Add gl_XVASPRINTF.
66472
66473 2006-05-09  Bruno Haible  <bruno@clisp.org>
66474
66475         * m4/xvasprintf.m4: New file.
66476
66477 2006-05-09  Bruno Haible  <bruno@clisp.org>
66478
66479         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
66480         (EOVERFLOW): Define fallback value.
66481         (xstrcat): New function.
66482         (xvasprintf): Recognize the special case of a string concatenation.
66483
66484 2006-05-08  Eric Blake  <ebb9@byu.net>
66485
66486         * gnulib-tool (func_version): Base copyright year on CVS date.
66487         (func_emit_copyright_notice): New function.
66488         (func_emit_lib_Makefile_am): Use it.
66489         (func_emit_tests_Makefile_am): Likewise.
66490         (func_import): Likewise.
66491
66492 2006-05-08  Bruno Haible  <bruno@clisp.org>
66493
66494         * modules/stdarg: New file.
66495         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
66496
66497 2006-05-08  Bruno Haible  <bruno@clisp.org>
66498
66499         * m4/stdarg.m4: New file, from GNU gettext.
66500
66501 2006-05-08  Bruno Haible  <bruno@clisp.org>
66502
66503         * config/srclist.txt (build-aux/config.rpath): different from latest
66504         release.
66505
66506 2006-05-08  Bruno Haible  <bruno@clisp.org>
66507
66508         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
66509
66510 2006-05-05  Jim Meyering  <jim@meyering.net>
66511
66512         * m4/warning.m4: New file, derived from bison's file by the same name.
66513
66514 2006-05-03  Bruno Haible  <bruno@clisp.org>
66515
66516         * lib/stdint_.h: Shorter URL.
66517         * lib/inttypes.h: Likewise.
66518
66519 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
66520
66521         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
66522
66523 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
66524
66525         * lib/verify.h: Document the internals better.  Most of this change
66526         was written by Bruno Haible.
66527
66528 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
66529
66530         * doc/verify.texi: New file, partly based on a proposal by
66531         Bruno Haible.
66532
66533 2006-05-02  Bruno Haible  <bruno@clisp.org>
66534
66535         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
66536         test from here...
66537         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
66538
66539 2006-04-29  Bruno Haible  <bruno@clisp.org>
66540
66541         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
66542         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
66543
66544 2006-04-29  Bruno Haible  <bruno@clisp.org>
66545
66546         * gnulib-tool: Make --update option actually work.
66547
66548 2006-04-29  Bruno Haible  <bruno@clisp.org>
66549
66550         * doc/gcd.texi: New file.
66551         * doc/gnulib.texi: Include it.
66552
66553 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
66554
66555         * lib/getdate.y (get_date): When adding relative date, start with the
66556         initial time, not with the result of the first mktime call.
66557
66558 2006-04-25  Bruno Haible  <bruno@clisp.org>
66559
66560         * gnulib-tool (func_import): Output the include directives in three
66561         blocks, sorted separately.
66562         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66563
66564 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
66565
66566         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
66567         to define main with arguments, for C++.  Reported by Eric Blake.
66568         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
66569         Prefer 'int main ()' to 'int main (void)', for C++.
66570         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
66571         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
66572         for 'main', for C99 and C++.
66573
66574 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
66575
66576         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
66577         Don't assume that exit status -1 is valid.
66578         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
66579         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
66580         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
66581         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
66582         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
66583         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
66584         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
66585         functions can be used without declaring them, or that you can
66586         exit with status -1.
66587         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
66588
66589 2006-04-24  Karl Berry  <karl@gnu.org>
66590
66591         * config/srclist.txt (longdouble.m4): sync lost.
66592
66593 2006-04-24  Eric Blake  <ebb9@byu.net>
66594
66595         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
66596
66597 2006-04-24  Bruno Haible  <bruno@clisp.org>
66598
66599         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
66600         poll() implementation in AIX.
66601         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66602
66603 2006-04-24  Bruno Haible  <bruno@clisp.org>
66604
66605         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
66606         assigned exactly once.
66607
66608 2006-04-23  Claudio Fontana  <claudio@gnu.org>
66609             Bruno Haible  <bruno@clisp.org>
66610
66611         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
66612         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
66613         for AM_CPPFLAGS.
66614
66615 2006-04-23  Bruno Haible  <bruno@clisp.org>
66616
66617         * modules/copy-file: Depend on unistd.
66618         * modules/execute: Likewise.
66619         * modules/fatal-signal: Likewise.
66620         * modules/findprog: Likewise.
66621         * modules/mkdtemp : Likewise.
66622         * modules/pipe: Likewise.
66623         * modules/wait-process: Likewise.
66624
66625 2006-04-23  Bruno Haible  <bruno@clisp.org>
66626
66627         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
66628         condition was already detected.
66629         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66630
66631 2006-04-23  Bruno Haible  <bruno@clisp.org>
66632
66633         * lib/copy-file.c: Include <unistd.h> unconditionally.
66634         * lib/execute.c: Likewise.
66635         * lib/fatal-signal.c: Likewise.
66636         * lib/findprog.c: Likewise.
66637         * lib/mkdtemp.c: Likewise.
66638         * lib/pipe.h: Likewise.
66639         * lib/pipe.c: Likewise.
66640         * lib/wait-process.h: Likewise.
66641
66642 2006-04-23  Bruno Haible  <bruno@clisp.org>
66643
66644         * gnulib-tool (func_usage): Fix --import description. Document
66645         --update.
66646         (func_import): Create temporary file in a temporary directory, if
66647         --dry-run is specified. Silence errors from 'grep' when there are no
66648         m4 files in $m4dir.
66649         (func_create_testdir): Silence errors from 'grep' when there are no
66650         m4 files in $m4dir.
66651         Reported by Karl Berry <karl@freefriends.org>.
66652
66653 2006-04-20  Bruno Haible  <bruno@clisp.org>
66654
66655         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
66656         one argument, so that the code will be portable to Autoconf 2.60.
66657         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
66658         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
66659         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
66660
66661 2006-04-19  Derek Price  <derek@ximbiot.com>
66662             Eric Blake  <ebb9@byu.net>
66663
66664         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
66665         rather than "/full/path.h".  Update comment to match.  Shorten &
66666         generalize m4_translit call via AS_TR_CPP.
66667
66668 2006-04-19  Derek Price  <derek@ximbiot.com>
66669             Eric Blake  <ebb9@byu.net>
66670
66671         * lib/inttypes.h: Correct grammar in comment.
66672
66673 2006-04-18  Derek Price  <derek@ximbiot.com>
66674             Paul Eggert  <eggert@cs.ucla.edu>
66675
66676         * modules/inttypes: New file.
66677         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
66678
66679 2006-04-18  Derek Price  <derek@ximbiot.com>
66680             Paul Eggert  <eggert@cs.ucla.edu>
66681
66682         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
66683         New files.
66684
66685 2006-04-18  Derek Price  <derek@ximbiot.com>
66686             Paul Eggert  <eggert@cs.ucla.edu>
66687
66688         * lib/inttypes.h: New file.
66689         * lib/strtoimax.c: Assume <inttypes.h>.
66690
66691 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
66692
66693         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
66694         isn't mounted.  Problem reported by Kir Kolyshkin.
66695
66696 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
66697
66698         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
66699         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
66700         Derek R. Price.
66701         * lib/regex.h (RE_DUP_MAX): Update comment to match current
66702         implementation.
66703
66704 2006-04-12  Eric Blake  <ebb9@byu.net>
66705
66706         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
66707         is now done automatically by the corresponding Autoconf macro.
66708
66709 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
66710
66711         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
66712         time_r.h.
66713
66714 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
66715
66716         Merge regex changes from libc, removing some of our
66717         POSIX-conformance changes that were rejected and redoing them in a
66718         less-intrusive way.
66719
66720         * lib/regcomp.c (re_compile_internal, init_dfa):
66721         Length arg is now size_t, not Idx.  All uses changed.
66722         (peek_token): Forward decl now says internal_function.
66723         (__re_error_msgid, __re_error_msgid_idx):
66724         Now static rather than extern with attribute_hidden.
66725         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
66726         For some reason libc prefers K&R style defns for external functions.
66727         (regerror) [!defined _LIBC]: Likewise.
66728         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
66729         (seek_collating_symbol_entry, lookup_collation_sequence_value):
66730         (build_range_exp, build_collating_symbol):
66731         Use K&R-style defn.
66732         (re_compile_fastmap): Use '\0' to memset, not 0.
66733         (utf8_sb_map): Make the calculations more obvious.
66734         (init_dfa, parse_bracket_exp, build_charclass_op):
66735         Call calloc and cast result, as glibc does.
66736         (init_word_char, fetch_token, peek_token, peek_token_bracket):
66737         (build_range_exp, build_collating_symbol):
66738         Now internal functions.
66739
66740         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
66741
66742         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
66743         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
66744         Don't depend on VMS; depend on __VMS instead, for POSIX
66745         namespace cleanness.
66746         (regoff_t): Define to ssize_t, not long int.
66747
66748         Remove the REG_ macros named below.  Instead, make the old names
66749         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
66750         __USE_GNU_REGEX.
66751         (REG_BACKSLASH_ESCAPE_IN_LISTS):
66752         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
66753         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
66754         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
66755         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
66756         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
66757         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
66758         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
66759         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
66760         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
66761         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
66762         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
66763         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
66764         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
66765         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
66766         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
66767         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
66768         (REG_NREGS):
66769         Remove.  All uses replaced by the old RE_* names.
66770         (RE_BACKSLASH_ESCAPE_IN_LISTS):
66771         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
66772         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
66773         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
66774         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
66775         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
66776         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
66777         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
66778         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
66779         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
66780         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
66781         Don't bother having these macros be independent of each others'
66782         values, since they no longer exist in the POSIX name space.
66783
66784         Rename the following member names back to their old names,
66785         unless !__USE_GNU_REGEX.  All uses changed back.
66786         (buffer): Renamed from re_buffer.
66787         (allocated): Renamed from re_allocated.
66788         (used): Renamed from re_used.
66789         (syntax): Renamed from re_syntax.
66790         (fastmap): Renamed from re_fastmap.
66791         (translate): Renamed from re_translate.
66792         (can_be_null): Renamed from re_can_be_null.
66793         (regs_allocated): Renamed from re_regs_allocated.
66794         (fastmap_accurate): Renamed from re_fastmap_accurate.
66795         (no_sub): Renamed from re_no_sub.
66796         (not_bol): Renamed from re_not_bol.
66797         (not_eol): Renamed from re_not_eol.
66798         (newline_anchor): Renamed from re_newline_anchor.
66799         (num_regs): Renamed from rm_num_regs.
66800         (start): Renamed from rm_start.
66801         (end): Renamed from rm_end.
66802
66803         (free_state): Move up a bit.
66804
66805         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
66806         #define to be empty.
66807         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
66808         when that is what is intended.
66809         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
66810         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
66811         (MAX): New macro.
66812         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
66813         All uses changed back to re_malloc, etc.  It's now the caller's
66814         responsibility to check for overflow; all callers changed.
66815         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
66816         (re_x2nrealloc): Remove.
66817         (free_state): Remove decl.
66818
66819         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
66820         (re_set_registers, re_exec):
66821         Use K&R-style defn.
66822
66823         2006-01-31  Roland McGrath  <roland@redhat.com>
66824
66825         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
66826         Reported by Mike Frysinger <vapier@gentoo.org>.
66827
66828         2006-01-15  Andreas Jaeger  <aj@suse.de>
66829
66830         [BZ #1950]
66831         * lib/regex_internal.c (re_string_reconstruct): Adjust for
66832         build_wcs_upper_buffer change.
66833         (build_wcs_upper_buffer): Change return type.
66834
66835         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
66836
66837         * lib/regex_internal.h: Include <stdint.h> if available.
66838
66839         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
66840
66841         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
66842
66843         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
66844
66845         * lib/regcomp.c: Adjust for changed secondary hash function.
66846
66847         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
66848
66849         * lib/regex.h: Pretty printing.
66850         Clean up namespace a bit.
66851
66852         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
66853
66854         * lib/regexec.c (update_cur_sifted_state, check_arrival,
66855         check_arrival_add_next_nodes): Avoid using uninitialized variable.
66856
66857         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
66858                     Ulrich Drepper  <drepper@redhat.com>
66859
66860         [BZ #1302]
66861         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
66862         changed.
66863         (bitset_word_t): Renamed from bitset_word.  All uses changed.
66864
66865         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
66866
66867         [BZ #281]
66868         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
66869         * lib/regcomp.c: Remove unnecessary uses of
66870         unsigned RE_TRANSLATE_TYPE.
66871         * lib/regex_internal.h: Likewise.
66872         * lib/regex_internal.c: Likewise.
66873         * lib/regexec.c: Likewise.
66874         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
66875
66876         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
66877
66878         * lib/regexec.c (find_recover_state): Remove unnecessary
66879         initialization.
66880         (transit_state_bkref): Make DFA a const pointer.
66881         (get_subexp): Likewise.
66882         (check_arrival): Likewise.
66883         (update_cur_sifted_state): Likewise.
66884         (re_search_internal): Likewise.
66885         (prune_impossible_nodes): Likewise.
66886         (acquire_init_state_context): Likewise.
66887         (proceed_next_node): Likewise.
66888         (set_regs): Likewise.
66889         (free_fail_stack_return): Likewise.
66890         (check_arrival_expand_ecl): Mark DFA parameter as const.
66891         (check_arrival_expand_ecl_sub): Likewise.
66892         (check_subexp_limits): Likewise.
66893         (sub_epsilon_src_nodes):  Likewise.
66894         (add_epsilon_src_nodes):  Likewise.
66895         (merge_state_array): Likewise.
66896         (update_regs): Likewise.
66897         (build_trtable): Likewise.
66898         (sift_states_backward): Mark MCTX parameter as const.
66899         (build_sifted_states): Likewise.
66900         (update_cur_sifted_state): Likewise.
66901         (sift_states_mkref): Likewise.
66902         (check_arrival_expand_ecl): Mark eclosure as const.
66903         (check_dst_limits_calc_pos_1): Likewise.
66904         * lib/regex_internal.h (re_match_context_t): Make dfa a const
66905         pointer.
66906
66907         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
66908
66909         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
66910         (transit_state_sb): Likewise.
66911         (transit_state_mb): Likewise.
66912         (sift_states_iter_mb): Likewise.
66913         (check_arrival_add_next_nodes): Likewise.
66914         (check_node_accept_bytes): Change first parameter to pointer-to-const.
66915         [_LIBC] (re_search_2_stub): Use mempcpy.
66916
66917         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
66918         mbrtowc for very simple UTF-8 case.
66919
66920         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
66921         a pointer-to-const.
66922         (re_acquire_state_context): Likewise.
66923         * lib/regex_internal.h: Adjust prototypes.
66924
66925         * lib/regex.c: Prevent using C++ compilers.
66926
66927         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
66928         (re_acquire_state_context): Likewise.
66929
66930 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
66931
66932         * modules/regex (Depends-on): Add ssize_t.
66933
66934 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
66935
66936         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
66937         translation table.
66938
66939 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
66940
66941         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
66942
66943 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
66944             Bruno Haible  <bruno@clisp.org>
66945
66946         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
66947         <sys/types.h> and <inttypes.h>.
66948
66949 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66950
66951         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
66952         `__error_t_defined', so argp.h will not typedef the former.
66953
66954 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
66955
66956         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
66957         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
66958         glibc names.  Even if glibc is changed to conform to POSIX, the
66959         traditional names will be available anyway, since regex depends on
66960         the extensions module.  Also, fix a longstanding typo in the
66961         implementation of Spencer ERE test #75 from grep 2.3.  Problems
66962         reported by Emanuele Giaquinta.  Also, change sense of cached
66963         variable, so that the message makes sense.
66964
66965 2006-03-24  Simon Josefsson  <jas@extundo.com>
66966
66967         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
66968         including some doc fixes.
66969         (base64_encode_alloc): Fix +1 bug on allocation failures.
66970
66971 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66972
66973         * lib/base64.c (base64_encode): Do not read past end of array with
66974         unsanitized input on systems with CHAR_BIT > 8.
66975
66976 2006-03-24  Eric Blake  <ebb9@byu.net>
66977
66978         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
66979
66980 2006-03-22  Karl Berry  <karl@gnu.org>
66981
66982         * config/srclist.txt (*setenv.[ch]): get from coreutils.
66983         * config/srclistvars.sh (COREUTILS): new var.
66984
66985 2006-03-17  Jim Meyering  <jim@meyering.net>
66986
66987         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
66988         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
66989
66990 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
66991
66992         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
66993         no longer needs it.  Instead, check that regoff_t is as least
66994         as wide as ptrdiff_t.
66995
66996         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
66997         so that our regex.h stays compatible with the installed regex.
66998         This is helpful for installers who configure --without-included-regex.
66999         Problem reported by Emanuele Giaquinta.
67000
67001 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
67002
67003         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
67004         Typedef to long int, not to off_, as POSIX will likely change
67005         in that direction.
67006
67007 2006-03-15  Eric Blake  <ebb9@byu.net>
67008
67009         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
67010
67011 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
67012
67013         * lib/argp-help.c (validate_uparams): Fix typo
67014         * lib/argp-parse.c (argp_default_options): Consistently begin help
67015         messages with a lowercase letter.
67016
67017 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
67018
67019         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
67020         overrun buffers and shouldn't be used (much as gets shouldn't be
67021         used).
67022         * lib/time_r.c (asctime_r, ctime_r): Likewise.
67023
67024 2006-03-08  Simon Josefsson  <jas@extundo.com>
67025
67026         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
67027         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67028
67029 2006-03-08  Simon Josefsson  <jas@extundo.com>
67030
67031         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
67032         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67033
67034 2006-03-08  Simon Josefsson  <jas@extundo.com>
67035
67036         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
67037         signal that configure disabled the device.
67038
67039 2006-03-08  Simon Josefsson  <jas@extundo.com>
67040
67041         * build-aux/maint.mk: Fix refresh-po, to handle no translated
67042         languages.
67043
67044 2006-03-07  Simon Josefsson  <jas@extundo.com>
67045
67046         * modules/getopt (Depends-on): Add unistd.
67047
67048         * modules/unistd: New file.
67049
67050 2006-03-07  Simon Josefsson  <jas@extundo.com>
67051
67052         * modules/gc-random: New file.
67053
67054 2006-03-07  Simon Josefsson  <jas@extundo.com>
67055
67056         * m4/unistd_h.m4: New file.
67057
67058 2006-03-07  Simon Josefsson  <jas@extundo.com>
67059
67060         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
67061         test to be side-effect free by storing the result in the cache
67062         variable gl_cv_lib_readline, and moving the assignment of
67063         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
67064         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67065
67066 2006-03-07  Simon Josefsson  <jas@extundo.com>
67067
67068         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
67069         error on missing devices (the functions will return an error).
67070
67071         * m4/gc.m4: Move random stuff to gc-random.m4
67072
67073 2006-03-07  Simon Josefsson  <jas@extundo.com>
67074
67075         * lib/unistd_.h: New file.
67076
67077 2006-03-07  Simon Josefsson  <jas@extundo.com>
67078
67079         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
67080
67081 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
67082
67083         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
67084         Problem reported by Juan Manuel Guerrero.
67085
67086 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
67087
67088         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
67089         the unistd module.
67090         * lib/getlogin_r.c: Likewise.
67091         * lib/getlogin_r.h: Likewise.
67092         * lib/glob.c: Likewise.
67093         * lib/pagealign_alloc.c: Likewise.
67094         * lib/unistd_.h: Remove; no longer needed.
67095
67096 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
67097
67098         * MODULES.html.sh (Support for systems lacking POSIX:2001):
67099         Add unistd.
67100         * modules/c-stack (Depends-on): Add unistd.
67101         * modules/getlogin_r: Likewise.
67102         * modules/glob: Likewise.
67103         * modules/pagealign_alloc: Likewise.
67104         * modules/unistd (Files): Remove lib/unistd_.h.
67105         (EXTRA_DIST): Remove.
67106         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
67107         need unistd_.h.
67108         (MOSTLYCLEANFILES): Remove unistd.h-t.
67109
67110 2006-03-03  Simon Josefsson  <jas@extundo.com>
67111
67112         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
67113
67114 2006-03-03  Simon Josefsson  <jas@extundo.com>
67115
67116         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
67117         libidn and bison.
67118
67119 2006-03-03  Simon Josefsson  <jas@extundo.com>
67120
67121         * build-aux/maint.mk: Add indent target.
67122
67123 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
67124
67125         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
67126         our replacement poll.h in any case, to avoid a differing
67127         declaration from a system header.  Seen on AIX.
67128
67129 2006-03-01  Simon Josefsson  <jas@extundo.com>
67130
67131         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
67132         <kasal@ucw.cz>.
67133
67134 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67135
67136         * modules/gettime (Depends-on): Add extensions module.
67137         * modules/nanosleep (Depends-on): Likewise.
67138         * modules/settime (Depends-on): Likewise.
67139
67140 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67141
67142         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
67143         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
67144         pedantically.
67145         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
67146         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
67147
67148         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
67149         not "==".  Reported by Ralf Wildenhues.
67150
67151 2006-03-01  Karl Berry  <karl@gnu.org>
67152
67153         * doc/Copyright/request-*: new files, synced from gnuorg.
67154
67155 2006-03-01  Karl Berry  <karl@gnu.org>
67156
67157         * config/srclist.txt (Copyright/*): new entries.
67158
67159 2006-02-28  Simon Josefsson  <jas@extundo.com>
67160
67161         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
67162
67163 2006-02-27  Simon Josefsson  <jas@extundo.com>
67164
67165         * lib/base64.h: Indent #define's.  From Jim Meyering
67166         <jim@meyering.net>.
67167
67168 2006-02-27  Jim Meyering  <jim@meyering.net>
67169
67170         Revert the change of 2006-02-24, so these files can continue
67171         to be sync'd from gettext.
67172         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
67173         of `config.h'.
67174
67175 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
67176
67177         * modules/intprops: New file.
67178         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
67179         Add intprops.
67180         * modules/getloadavg (Files): Remove lib/intprops.h.
67181         (Depends-on): Add intprops.
67182         * modules/human: Likewise.
67183         * modules/inttostr: Likewise.
67184         * modules/openat: Likewise.
67185         * modules/sig2str: Likewise.
67186         * modules/userspec: Likewise.
67187         * modules/utimecmp: Likewise.
67188         * modules/xnanosleep: Likewise.
67189         * modules/xstrtol: Likewise.
67190
67191 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
67192
67193         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
67194         * modules/lock-tests (TESTS): Use $(EXEEXT).
67195         * modules/tls-tests: Likewise.
67196         * modules/argp-tests: Likewise.
67197         (check_PROGRAMS): New var, replacing...
67198         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
67199
67200 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67201
67202         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
67203         `config.h'.
67204
67205 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
67206
67207         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
67208
67209 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67210
67211         Sync from coreutils.
67212         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
67213         gl_CHDIR_SAFER.
67214
67215 2006-02-22  Jim Meyering  <jim@meyering.net>
67216
67217         Sync from coreutils.
67218         * m4/chdir-safer.m4: New file.
67219
67220 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
67221
67222         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
67223         AT_FDCWD exceeds INT_MAX.
67224         * lib/openat.h (AT_FDCWD): Likewise.
67225
67226 2006-02-17  Eric Blake  <address@hidden>
67227
67228         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
67229
67230 2006-02-16  Simon Josefsson  <jas@extundo.com>
67231
67232         * modules/getaddrinfo (Depends-on): Add sys_socket.
67233
67234 2006-02-15  Simon Josefsson  <jas@extundo.com>
67235
67236         * build-aux/maint.mk: Add dsyntax-check rule.
67237
67238 2006-02-15  Eric Blake  <ebb9@byu.net>
67239
67240         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
67241         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
67242         'present but cannot compile' warnings on cygwin.
67243         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
67244         use ws2tcpip.h if sys/socket.h works.
67245         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
67246         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
67247
67248 2006-02-14  Simon Josefsson  <jas@extundo.com>
67249
67250         * modules/maintainer-makefile (Files): Rename.
67251
67252         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
67253         and (the local) Makefile.cfg to maint-cfg.mk.
67254
67255         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
67256         to the latter.
67257
67258         * modules/maintainer-makefile: New module.
67259
67260         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
67261         severaly stripped to make it possible to build it up from scratch
67262         with reliable tests.
67263
67264         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
67265         fixes to permit overriding the default actions when configure and
67266         makefile are not available.
67267
67268 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
67269
67270         Sync from coreutils.
67271         * modules/lstat (Depends-on): Don't depend on xalloc.
67272         (License): Change from GPL to LGPL, since this is now simply a
67273         replacement for a libc function.
67274
67275 2006-02-14  Jim Meyering  <jim@meyering.net>
67276
67277         Sync from coreutils.
67278
67279         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
67280         failure on deficient systems, and simplify gnulib lgpl dependencies.
67281         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
67282         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
67283
67284         * lib/xalloc-die.c: Remove unused definition of N_.
67285
67286 2006-02-14  Jim Meyering  <jim@meyering.net>
67287
67288         Sync from coreutils.
67289         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
67290         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
67291         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
67292         double-quote uses of that variable, to accommodate the rare case in
67293         which getmntent is available in none of the libraries checked.  This
67294         happens at least on FreeBSD 5.0.
67295
67296 2006-02-13  Simon Josefsson  <jas@extundo.com>
67297
67298         * gnulib-tool (Usage): Fix --import, from
67299         karl@freefriends.org (Karl Berry).
67300
67301 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
67302
67303         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
67304
67305 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
67306
67307         * lib/argp-namefrob.h: Restore changes accidentally lost during the
67308         "autoupdate" on 2005-12-12.
67309
67310 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
67311
67312         * modules/closeout (Depends-on): Remove atexit.
67313
67314 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
67315
67316         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
67317         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
67318
67319 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
67320
67321         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
67322         __EXTENSIONS__ if this causes compilation to fail.  Problem
67323         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
67324         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
67325
67326 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
67327
67328         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
67329         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
67330         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
67331         All uses changed.
67332
67333 2006-01-26  Simon Josefsson  <jas@extundo.com>
67334
67335         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
67336         prototype is visible on mingw32.
67337
67338         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
67339         for mingw32.
67340
67341         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
67342         mingw32).
67343
67344 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
67345
67346         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
67347         attempt to open for write; this always fails, at least on POSIX
67348         hosts.  This reinstates the 2006-01-09 change, which was
67349         inadvertently removed.
67350
67351 2006-01-26  Bruno Haible  <bruno@clisp.org>
67352
67353         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
67354         Reported by Paul Eggert.
67355
67356 2006-01-26  Bruno Haible  <bruno@clisp.org>
67357             Paul Eggert  <eggert@cs.ucla.edu>
67358
67359         * lib/stdbool_.h (_Bool)
67360         [(! (defined __cplusplus || defined __BEOS__)
67361           && !defined __GNUC__
67362           && !(defined __HP_cc || defined __xlc__
67363                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
67364                || defined __sgi))]:
67365         #define to signed char in these cases too; this simplifies
67366         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
67367         etc., separately) and makes it more conservative.
67368
67369 2006-01-25  Simon Josefsson  <jas@extundo.com>
67370
67371         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
67372         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
67373         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
67374
67375 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
67376
67377         * lib/argp-namefrob.h: Bugfix. Remove stray #
67378
67379 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
67380
67381         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
67382         so that we test the test.
67383         Check for yet another HP-UX cc bug involving *bool |= bool.
67384
67385 2006-01-25  Karl Berry  <karl@gnu.org>
67386
67387         * config/srclist.txt (vasnprintf.c): sync lost.
67388
67389 2006-01-25  Jim Meyering  <jim@meyering.net>
67390
67391         Sync from the stable (b5) branch of coreutils:
67392
67393         * lib/fts.c (fts_children): Don't let close() clobber errno from
67394         failed fchdir().
67395
67396         * lib/fts.c (fts_stat): When following a symlink-to-directory,
67397         don't necessarily interpret stat-fails+lstat-succeeds as indicating
67398         a dangling symlink.  That can also happen at least for ELOOP.
67399         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
67400         FYI, this bug predates the inclusion of fts.c in coreutils.
67401
67402         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
67403         in their own block, so pre-c99 compilers don't object.
67404
67405         Avoid the double-free (first in fts_read, second in fts_close) that
67406         would occur when an `active' directory is made inaccessible (e.g.,
67407         via chmod a-x) during a traversal.
67408         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
67409         before returning.  Reproduce this failure by
67410         mkdir -p a/b; cd a; chmod a-x . b
67411         Reported by Stavros Passas.
67412
67413 2006-01-25  Jim Meyering  <jim@meyering.net>
67414
67415         * lib/fileblocks.c: Remove more useless parentheses.
67416         * lib/readutmp.h: Likewise.
67417
67418 2006-01-25  Bruno Haible  <bruno@clisp.org>
67419
67420         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
67421         warnings.
67422         Reported by Paul Eggert.
67423
67424 2006-01-25  Bruno Haible  <bruno@clisp.org>
67425
67426         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
67427         rid of a trap command. For Solaris sh.
67428         Reported by Mark D. Baushke <mdb@gnu.org>.
67429
67430 2006-01-24  Simon Josefsson  <jas@extundo.com>
67431
67432         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
67433         Bruno.
67434
67435 2006-01-24  Karl Berry  <karl@gnu.org>
67436
67437         * config/srclist.txt (argp-namefrob.h): sync lost.
67438
67439 2006-01-24  Jim Meyering  <jim@meyering.net>
67440
67441         * modules/openat (Files): Add lib/intprops.h.
67442         From Mark D. Baushke.
67443
67444 2006-01-24  Jim Meyering  <jim@meyering.net>
67445
67446         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
67447         Reported by Mark D. Baushke.
67448
67449 2006-01-24  Jim Meyering  <jim@meyering.net>
67450
67451         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
67452
67453 2006-01-24  Bruno Haible  <bruno@clisp.org>
67454
67455         * modules/strnlen (Maintainer): Change from glibc to all.
67456
67457 2006-01-24  Bruno Haible  <bruno@clisp.org>
67458
67459         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
67460         Patch by Paul Eggert.
67461
67462 2006-01-24  Bruno Haible  <bruno@clisp.org>
67463
67464         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
67465         already has it.
67466         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
67467         2005-11-26.
67468
67469         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
67470         'signed char' to avoid problems with the built-in _Bool type.
67471         Reported by Paul Eggert on 2005-11-26.
67472
67473 2006-01-24  Bruno Haible  <bruno@clisp.org>
67474
67475         * gnulib-tool (func_import): Avoid constructing complicated sed
67476         expressions inside backquote.
67477         Report and solution by Mark D. Baushke <mdb@gnu.org>.
67478
67479 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
67480
67481         These changes imported from libc.
67482         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
67483         test and two separate function calls.
67484         * lib/strndup.c (__strndup): Add libc_hidden_def.
67485
67486 2006-01-23  Simon Josefsson  <jas@extundo.com>
67487
67488         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
67489         Remove the test_*_SOURCES variable: automake infers it by default.
67490         * modules/tls-tests: Likewise.
67491
67492 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67493
67494         Work around porting bugs reported by Dieter in
67495         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
67496         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
67497         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
67498         Include "getopt.h" first, to check interface.
67499         (getenv): Declare only if defined HAVE_DECL_GETENV &&
67500         !HAVE_DECL_GETENV.
67501         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
67502         (__strndup): Revert to K&R-style function dfns, the glibc style.
67503         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
67504         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
67505         Include strnlen.h first, to get prototype properly.
67506         (strnlen): Renamed from __strnlen.
67507         Remove weak alias.
67508
67509 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67510
67511         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
67512
67513 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67514
67515         * config/srclist.txt: Adjust to reflect glibc reorganization.
67516         This affects only comments.
67517
67518 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
67519
67520          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
67521          Reported by Bruce Korb <bkorb@gnu.org>.
67522
67523 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
67524
67525         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
67526         to pacify gcc -Wswitch-default.
67527
67528 2006-01-22  Bruno Haible  <bruno@clisp.org>
67529
67530         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
67531         temporary buffer for sprintf, take into account the precision also
67532         for 'd', 'i', 'u', 'o', 'x', 'X'.
67533
67534 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
67535
67536         * modules/argp-tests: New module
67537         * tests/test-argp.c: New file
67538         * tests/test-argp-2.sh: New file
67539
67540 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
67541
67542         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
67543         (__argp_base_name): Removed
67544         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
67545         typo.
67546         (__argp_base_name): Provide macro definition or extern declaration
67547         depending on the configuration
67548
67549 2006-01-20  Simon Josefsson  <jas@extundo.com>
67550
67551         * modules/inet_ntop (Depends-on): Depend on sys_socket.
67552
67553 2006-01-20  Simon Josefsson  <jas@extundo.com>
67554
67555         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
67556
67557 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
67558
67559         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
67560         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
67561         Suggested by Bruno Haible.
67562
67563 2006-01-20  Karl Berry  <karl@gnu.org>
67564
67565         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
67566         until changes propagate, I guess.
67567
67568 2006-01-19  Simon Josefsson  <jas@extundo.com>
67569
67570         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
67571
67572 2006-01-19  Simon Josefsson  <jas@extundo.com>
67573
67574         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
67575
67576 2006-01-19  Simon Josefsson  <jas@extundo.com>
67577
67578         * gnulib-tool: Set check_PROGRAMS.
67579
67580         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
67581         modules/des-tests, modules/gc-arcfour-tests,
67582         modules/gc-arctwo-tests, modules/gc-des-tests,
67583         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
67584         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
67585         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
67586         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
67587         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
67588         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
67589         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
67590         test_*_SOURCES.
67591
67592 2006-01-18  Simon Josefsson  <jas@extundo.com>
67593
67594         * modules/socklen (Depends-on): Depend on sys_socket.
67595
67596 2006-01-18  Simon Josefsson  <jas@extundo.com>
67597
67598         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
67599         modules/des-tests, modules/gc-arcfour-tests,
67600         modules/gc-arctwo-tests, modules/gc-des-tests,
67601         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
67602         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
67603         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
67604         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
67605         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
67606         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
67607         $(EXEEXT) to automake TESTS variable, for mingw32.
67608
67609 2006-01-17  Simon Josefsson  <jas@extundo.com>
67610
67611         * modules/socklen (Include): Need sys/socket.h.
67612
67613 2006-01-17  Bruno Haible  <bruno@clisp.org>
67614
67615         * modules/ssize_t (Include): Add <sys/types.h>.
67616
67617 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
67618
67619         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
67620         it's not portable and it doesn't work with cross-compiles.
67621         Problem reported by Bruno Haible.  Fix missing-$ typo in
67622         'test "gl_cv_ignore_unused_libraries" ...' that prevented
67623         -zignore from being used with Sun's C compiler.
67624
67625 2006-01-12  Simon Josefsson  <jas@extundo.com>
67626
67627         * lib/base64.c: Fix warning, reported by Bruno Haible
67628         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
67629
67630 2006-01-12  Bruno Haible  <bruno@clisp.org>
67631
67632         * modules/ldd: New file.
67633         * build-aux/ldd.sh.in: New file.
67634         * MODULES.html.sh (Support for building libraries and executables): Add
67635         ldd.
67636
67637 2006-01-12  Bruno Haible  <bruno@clisp.org>
67638
67639         * m4/ldd.m4: New file.
67640
67641 2006-01-12  Bruno Haible  <bruno@clisp.org>
67642
67643         * gnulib-tool (func_import, func_create_testdir): Don't go into an
67644         endless loop while replacing $auxdir with build-aux.
67645
67646 2006-01-11  Simon Josefsson  <jas@extundo.com>
67647
67648         * lib/stdint_.h (SIZE_MAX): Add missing (.
67649
67650 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
67651
67652         Sync from coreutils.
67653         * lib/md5.c: Fix commentary typos.
67654         (alignof, UNALIGNED_P): No need for a GCC-specific version.
67655         * lib/md5.h (__attribute__): Remove; unused.
67656         * lib/sha1.c: Fix commentary to match md5 better.
67657         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
67658         so that we don't need to worry about alignment.  All uses changed.
67659         This merges the 2005-10-28 md5 change into sha1.
67660
67661 2006-01-11  Jim Meyering  <jim@meyering.net>
67662
67663         Sync from coreutils.
67664         * lib/md5.c (OP): Fix spacing.
67665
67666 2006-01-11  Bruno Haible  <bruno@clisp.org>
67667
67668         Ensure automatic ordering between gl_LOCK and gl_ARGP.
67669         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
67670         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
67671
67672 2006-01-11  Bruno Haible  <bruno@clisp.org>
67673
67674         Ensure automatic ordering between gl_LOCK and gl_ARGP.
67675         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
67676         the "early" section as well.
67677
67678 2006-01-11  Bruno Haible  <bruno@clisp.org>
67679
67680         Avoid "ar: no archive members specified" error on MacOS X.
67681         * gnulib-tool (func_modules_add_dummy): New function.
67682         (func_import, func_create_testdir): Invoke it.
67683
67684 2006-01-11  Bruno Haible  <bruno@clisp.org>
67685
67686         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
67687         with $auxdir in AC_CONFIG_FILES statements.
67688
67689 2006-01-11  Bruno Haible  <bruno@clisp.org>
67690
67691         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67692         Initialize also noinst_HEADERS to empty.
67693
67694 2006-01-11  Bruno Haible  <bruno@clisp.org>
67695
67696         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
67697         variables.
67698         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
67699         autoreconf.
67700
67701 2006-01-11  Bruno Haible  <bruno@clisp.org>
67702
67703         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
67704         overridable by the user.
67705         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67706
67707 2006-01-10  Simon Josefsson  <jas@extundo.com>
67708
67709         * modules/sys_socket: New file.
67710
67711 2006-01-10  Simon Josefsson  <jas@extundo.com>
67712
67713         * m4/sys_socket_h.m4: New file.
67714
67715 2006-01-10  Simon Josefsson  <jas@extundo.com>
67716
67717         * lib/socket_.h: New file.
67718
67719 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
67720
67721         * modules/readutmp (Maintainer): Add myself.
67722
67723 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
67724
67725         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
67726         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
67727         People who are still concerned with buggy memcmp implementations
67728         can invoke gl_FUNC_MEMCMP themselves.
67729
67730 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
67731
67732         * lib/regex_internal.h (BITSET_WORD_BITS):
67733         Work around a bug in 64-bit PGC (before version 6.1-2), where the
67734         preprocessor mishandles large unsigned values as if they were signed.
67735         Problem reported by Claudio Fontana in
67736         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
67737
67738 2006-01-10  Jim Meyering  <jim@meyering.net>
67739
67740         Avoid the double-free (first in fts_read, second in fts_close) that
67741         would occur when an `active' directory is made inaccessible (e.g.,
67742         via chmod a-x) during a traversal.
67743         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
67744         before returning.  Reproduce this failure by
67745         mkdir -p a/b; cd a; chmod a-x . b
67746         Reported by Stavros Passas.
67747
67748         Sync from coreutils.
67749         * lib/sha1.c: Tweak grammar in a comment.
67750
67751 2006-01-10  Jim Meyering  <jim@meyering.net>
67752
67753         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
67754         Patch by Joerg Sonnenberger.
67755
67756 2006-01-10  Bruno Haible  <bruno@clisp.org>
67757
67758         * modules/readutmp: Depend on module free.
67759         * modules/strtok_r: Depend on module restrict.
67760
67761 2006-01-10  Bruno Haible  <bruno@clisp.org>
67762
67763         * modules/gettext (configure.ac): Add an invocation of
67764         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
67765
67766 2006-01-10  Bruno Haible  <bruno@clisp.org>
67767
67768         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
67769         Reported by Werner Lemberg <wl@gnu.org>.
67770
67771 2006-01-10  Bruno Haible  <bruno@clisp.org>
67772
67773         * lib/localcharset.c: Update from GNU gettext.
67774
67775 2006-01-10  Bruno Haible  <bruno@clisp.org>
67776
67777         * lib/argp.h (__const): Remove macro. Use const instead.
67778         * lib/argp-fmtstream.h (__const): Likewise.
67779         * lib/glob_.h (__const): Remove macro.
67780         * lib/glob-libc.h: Use const instead of __const.
67781
67782 2006-01-10  Bruno Haible  <bruno@clisp.org>
67783
67784         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
67785         variable.
67786         Needed to avoid an automake error regarding the 'gettext' module.
67787
67788 2006-01-09  Simon Josefsson  <jas@extundo.com>
67789
67790         * modules/inet_ntop (Depends-on): Add restrict.
67791
67792 2006-01-09  Simon Josefsson  <jas@extundo.com>
67793
67794         * modules/gc-rijndael-tests (License): Put under LGPL.
67795
67796         * modules/gc-des-tests (License): Likewise.
67797
67798         * modules/gc-arcfour-tests (License): Likewise.
67799
67800         * modules/gc-arctwo-tests (License): Likewise.
67801
67802         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
67803
67804         * modules/gc-hmac-sha1-tests (Files): Likewise.
67805
67806         * modules/gc-hmac-md5-tests (License): Likewise.
67807
67808         * modules/gc-sha1-tests (License): Likewise.
67809
67810         * modules/gc-md5-tests (License): Likewise.
67811
67812         * modules/gc-md4-tests (License): Likewise.
67813
67814         * modules/gc-md2-tests (License): Likewise.
67815
67816         * modules/gc-tests (License): Likewise.
67817
67818         * modules/des-tests (License): Likewise.
67819
67820         * modules/md4-tests (License): Likewise.
67821
67822         * modules/md2-tests (License): Likewise.
67823
67824 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
67825
67826         Sync from coreutils:
67827
67828         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
67829         * modules/lib-ignore: New file.
67830         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
67831         chdir-safer.m4, lchmod.m4.
67832         * modules/openat: Add mkdirat.c, openat-priv.h.
67833
67834 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
67835
67836         Sync from coreutils.
67837         * m4/lib-ignore.m4: New file.
67838         * m4/lchmod.m4: New file.
67839
67840 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
67841
67842         Sync from coreutils.
67843         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
67844         for write access: POSIX says that must fail.
67845         * lib/fts.c (diropen): Likewise.
67846         * lib/save-cwd.c (save_cwd): Likewise.
67847         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
67848         well, for minor improvements on hosts that lack O_DIRECTORY.
67849         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
67850         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
67851         Fall back on chown if open failed with EACCES.
67852
67853         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
67854         Report an error at compile-time if only a 1-second nominal clock
67855         resolution is found.
67856
67857         * lib/lchmod.h: New file.
67858         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
67859         (make_dir_parents): Use lchown rather than chown, and
67860         lchmod rather than chmod.
67861
67862         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
67863         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
67864         "proc" reported by n0dalus.
67865
67866         * lib/mountlist.c: Include <limits.h>.
67867         (dev_from_mount_options)
67868         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
67869         New function.  It no longer assumes "dev=" has the System V meaning
67870         on Linux (since it doesn't).  It also parses "dev=" more carefully.
67871         (read_file_system_list)
67872         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
67873         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
67874         dev= in that case.
67875
67876         * lib/posixtm.h (PDS_PRE_2000): New macro.
67877         * lib/posixtm.c (year): Arg is now syntax_bits rather than
67878         allow_century.  All usages changed.  Reject dates outside the range
67879         1969-1999 if PDS_PRE_2000 is used.
67880
67881 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
67882
67883         Sync from coreutils.
67884         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
67885         (Time of day items): Mention the possibility of leap seconds.
67886         Problem reported by Dr. David Alan Gilbert.
67887
67888 2006-01-09  Jim Meyering  <jim@meyering.net>
67889
67890         Sync from coreutils.
67891
67892         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
67893
67894         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
67895
67896         * lib/modechange.c (mode_compile): Reject an invalid mode string
67897         that starts with an octal digit.  From Andreas Gruenbacher.
67898
67899         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
67900         and dup to open_safer and dup_safer, respectively.
67901         (openat_permissive): Fix typo in comment.
67902
67903         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
67904         "gettext.h"; either no longer needed or are guaranteed by openat.h.
67905         (_): Remove; no longer needed.
67906         (openat): Renamed from rpl_openat; no need for rpl_openat
67907         since openat.h renames openat for us.
67908         Replace most of the body with a call to openat_permissive,
67909         to avoid duplicate code.
67910         Port to (probably hypothetical) environments were mode_t is
67911         wider than int.
67912         (openat_permissive): Require mode arg, so that we can check
67913         types better.  Put it just after flags.  Change cwd failure
67914         indicator from pointer-to-bool to pointer-to-errno-value.
67915         All callers changed.
67916         Invoke openat_save_fail and/or openat_restore_fail if
67917         cwd_errno is null, so that openat can call us.
67918         (openat_permissive, fdopendir, fstatat, unlinkat):
67919         Simplify errno handling to avoid some duplicate code,
67920         as it's OK to set errno on success.
67921         * lib/openat.h: Revamp code so that function macros depend on
67922         __OPENAT_PREFIX only, not also on AT_FDCWD.
67923         (openat_ro): Remove.  Caller changed to use openat_permissive.
67924         (openat_permissive): Now a macro, if not a function.
67925         (openat_restore_fail, openat_save_fail): Now always functions,
67926         since mkdirat needs them even if __OPENAT_PREFIX is defined.
67927
67928         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
67929         and openat.c.
67930         * lib/mkdirat.c: Include openat-priv.h.
67931         Remove definitions of macros defined therein.
67932         * lib/openat.c: Likewise.
67933
67934         * lib/mkdirat.c (mkdirat): New file and function.
67935         * lib/openat.h (mkdirat): Declare.
67936
67937         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
67938
67939         * lib/openat.h (openat_permissive): Declare.
67940         (openat_ro): Define.
67941
67942         * lib/openat.c (EXPECTED_ERRNO): New macro.
67943         (openat_permissive): New function -- used in remove.c rewrite.
67944         (all functions): Set errno just before returning, only if there
67945         was an actual failure.
67946         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
67947
67948         Emulate openat-family functions using Linux's procfs, if possible.
67949         Idea and some code based on Ulrich Drepper's glibc changes.
67950
67951         * lib/openat.c: (BUILD_PROC_NAME): New macro.
67952         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
67953         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
67954         before falling back on save_cwd and restore_cwd.
67955         (fdopendir, fstatat, unlinkat): Likewise.
67956
67957         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
67958         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
67959
67960         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
67961         as second argument to va_arg.  Otherwise, some versions of gcc
67962         warn that `if this code is reached, the program will abort'.
67963
67964 2006-01-09  Jim Meyering  <jim@meyering.net>
67965
67966         Sync from coreutils.
67967         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
67968         Require openat-priv.h.
67969
67970 2006-01-09  Bruno Haible  <bruno@clisp.org>
67971
67972         * modules/strnlen (Include): Use strnlen.h.
67973
67974 2006-01-09  Bruno Haible  <bruno@clisp.org>
67975
67976         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
67977
67978 2006-01-09  Bruno Haible  <bruno@clisp.org>
67979
67980         * lib/sysexit_.h (EX_OK): New macro.
67981         Suggested by Martin Lambers <marlam@marlam.de>.
67982
67983 2006-01-09  Bruno Haible  <bruno@clisp.org>
67984
67985         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
67986         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
67987
67988 2006-01-09  Bruno Haible  <bruno@clisp.org>
67989
67990         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
67991         numbers.
67992
67993 2006-01-09  Bruno Haible  <bruno@clisp.org>
67994
67995         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
67996         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
67997         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
67998         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
67999
68000 2006-01-09  Bruno Haible  <bruno@clisp.org>
68001
68002         * build-aux/javacomp.sh.in: New file, moved from lib/.
68003         * modules/javacomp-script (Files): Update.
68004         (configure.ac): Add AC_CONFIG_FILES invocation.
68005         (EXTRA_DIST): Remove variable.
68006
68007         * build-aux/javaexec.sh.in: New file, moved from lib/.
68008         * modules/javaexec (Files): Update.
68009         (configure.ac): Add AC_CONFIG_FILES invocation.
68010         (EXTRA_DIST): Remove javaexec.sh.in.
68011
68012         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
68013         * modules/csharpcomp-script (Files): Update.
68014         (configure.ac): Add AC_CONFIG_FILES invocation.
68015         (EXTRA_DIST): Remove variable.
68016
68017         * build-aux/csharpexec.sh.in: New file, moved from lib/.
68018         * modules/csharpexec (Files): Update.
68019         (configure.ac): Add AC_CONFIG_FILES invocation.
68020         (EXTRA_DIST): Remove csharpexec.sh.in.
68021
68022 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
68023
68024         Sync from coreutils.
68025
68026         Add POSIX ACL support
68027         * lib/acl.h (copy_acl, set_acl): Add declarations.
68028         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
68029         systems other than Linux.
68030         (chmod_or_fchmod): New function: use fchmod when possible,
68031         and chmod otherwise.
68032         (file_has_acl): Add a POSIX ACL implementation, with a
68033         Linux-specific subcase.
68034         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
68035         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
68036         acls are unsupported.
68037         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
68038         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
68039         are unsupported.
68040
68041 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
68042
68043         Sync from coreutils.
68044         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
68045
68046 2006-01-07  Bruno Haible  <bruno@clisp.org>
68047
68048         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
68049         gl_EARLY.
68050
68051 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
68052
68053         * lib/strftime.c (tzname): Don't declare if it is already #defined.
68054         Problem reported for Mingw by Mark Junker.
68055
68056 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
68057
68058         * README: Gnulib normally doesn't generate a tarball.
68059
68060 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
68061
68062         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
68063         long int, not int, for nanosecond counts, so that people who are
68064         used to POSIX struct timespec won't be surprised.  Reported by Jim
68065         Meyering.
68066
68067 2005-12-28  Bruno Haible  <bruno@clisp.org>
68068
68069         * build-aux/config.rpath: Update from GNU gettext.
68070
68071 2005-12-16  Jim Meyering  <jim@meyering.net>
68072
68073         * modules/fprintftime: New module.
68074         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
68075
68076 2005-12-16  Jim Meyering  <jim@meyering.net>
68077
68078         * m4/fprintftime.m4: New file.
68079
68080 2005-12-16  Jim Meyering  <jim@meyering.net>
68081
68082         * lib/fprintftime.c, lib/fprintftime.h: New files.
68083
68084 2005-12-15  Simon Josefsson  <jas@extundo.com>
68085
68086         * modules/socklen (configure.ac): Fix M4 macro name, to align with
68087         new m4/socklen.m4.
68088
68089 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
68090
68091         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
68092         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
68093
68094 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
68095
68096         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
68097         * lib/argp-help.c (fill_in_uparams): Check if the constructed
68098         struct uparams is valid. Fall back to the default values if it is
68099         not.
68100
68101 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68102
68103         * modules/argp (Files): Add argp-pin.c
68104         (Depends-on): dirname
68105         (lib_SOURCES): Add argp-pin.c
68106
68107 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68108
68109         * m4/argp.m4:  Check if program_invocation_name and
68110         program_invocation_short_name are declared and define appropriate
68111         macros if they are not.
68112
68113 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68114
68115         * lib/argp-help.c (__argp_base_name): New function
68116         (__argp_short_program_name): Rewrite using __argp_base_name
68117         * lib/argp-namefrob.h: Define program_invocation_name and
68118         program_invocation_short_name if requested
68119         (__argp_base_name): Add prototype
68120         * lib/argp-parse.c (argp_def): Use gettext wrappers
68121         (argp_default_parser): Use __argp_base_name
68122         * lib/argp-pin.c: New file. Defines program_invocation_name and
68123         program_invocation_short_name on systems that lack them.
68124
68125 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
68126
68127         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
68128         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
68129         porting problem reported by Georg Schwarz in
68130         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
68131
68132 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
68133
68134         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
68135         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
68136         porting problem reported by Georg Schwarz in
68137         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
68138
68139 2005-12-05  Bruno Haible  <bruno@clisp.org>
68140
68141         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
68142         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
68143         Reported by Mark Junker <mjscod@gmx.de>.
68144
68145 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
68146
68147         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
68148         Use implementation from Albert Chin, with some
68149         comments/corrections by Stepan Kasal and myself.
68150
68151 2005-12-02  Bruno Haible  <bruno@clisp.org>
68152
68153         * gnulib-tool (func_import): Accept GPLed build tool modules when
68154         --lgpl is given.
68155         * modules/csharpcomp-script: New file.
68156         * modules/csharpcomp: Depend on it.
68157         * modules/javacomp-script: New file.
68158         * modules/javacomp: Depend on it.
68159         Suggested by Simon Josefsson.
68160
68161 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
68162
68163         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
68164         statement, to work around an HP-UX 10.20 compiler bug reported by
68165         Peter O'Gorman.
68166
68167 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
68168
68169         * modules/savedir (Depends-on): Add openat.
68170
68171 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
68172
68173         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
68174         (uintmax_t) [defined uintmax_t]: Do not declare.
68175         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
68176         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
68177         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
68178         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
68179         sake of portability to weird hosts that C allows (though we don't
68180         know of any practical examples).
68181
68182         * lib/savedir.h (fdsavedir): New decl.
68183         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
68184         contains most of the former guts of savedir.
68185         (savedir): Use savedirstream.
68186         Include "openat.h".
68187
68188 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
68189
68190         * modules/obstack (Files): Add m4/ulonglong.m4.
68191         Problem reported by Davide Angelocola.
68192
68193 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
68194
68195         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
68196         coreutils no longer futzes with rounding modes.
68197
68198 2005-11-14  Jim Meyering  <jim@meyering.net>
68199
68200         * lib/mkstemp-safer.c: Include <config.h>, required for possible
68201         replacement of mkstemp.
68202
68203 2005-11-10  Simon Josefsson  <jas@extundo.com>
68204
68205         * lib/readline.c: Remove EOL.
68206
68207 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
68208
68209         * modules/gethrxtime (Depends-on): Add gettime.
68210
68211 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
68212
68213         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
68214         or gettimeofday; no longer needed.
68215
68216 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
68217
68218         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
68219         time business.
68220         (gethrxtime) [! (HAVE_NANOUPTIME
68221         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
68222         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
68223         our own approximation.
68224
68225 2005-11-08  Eric Blake  <ebb9@byu.net>
68226
68227         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
68228
68229 2005-11-08  Eric Blake  <ebb9@byu.net>
68230
68231         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
68232
68233 2005-11-04  Bruno Haible  <bruno@clisp.org>
68234
68235         * gnulib-tool: Implement --update mode.
68236
68237 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
68238
68239         Fix porting problem reported by Theodoros V. Kalamatianos.
68240         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
68241         Don't assume that futimes failing means we must fail.
68242
68243 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
68244
68245         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
68246         variables to suggest the intended function of the PATH_MAX check.
68247
68248 2005-10-30  Kean Johnston  <jkj@sco.com>
68249
68250         Trivial changes to support SCO systems.
68251         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
68252         as PATH_MAX.
68253         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
68254         where __ptr is null when no I/O is pending.
68255
68256 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
68257
68258         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
68259         leave errno alone.  Problem reported by Dmitry V. Levin.
68260
68261 2005-10-28  Simon Josefsson  <jas@extundo.com>
68262
68263         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
68264         Test more.
68265
68266         * tests/test-gc-md2.c, tests/test-md2.c: New files.
68267
68268         * modules/md2, modules/md2-tests: New files.
68269
68270 2005-10-28  Simon Josefsson  <jas@extundo.com>
68271
68272         * m4/inet_ntop.m4: More tests.
68273
68274         * m4/gc-md2.m4, md2.m4: New file.
68275
68276 2005-10-28  Simon Josefsson  <jas@extundo.com>
68277
68278         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
68279         "restrict" keywords, as per POSIX.  Protect the function
68280         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
68281         Don't use K&R prototypes.  Check the sprintf return values.
68282         Re-define EAFNOSUPPORT if not present.  Indent.
68283
68284         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
68285         suggested by Bruno Haible <bruno@clisp.org>.
68286
68287         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
68288
68289         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
68290
68291         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
68292         libgcrypt).
68293
68294         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
68295
68296         * lib/md2.h, lib/md2.c: New files.
68297
68298 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
68299
68300         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
68301         errno alone.  Problem reported by Frederic Jolliton.
68302
68303 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
68304
68305         * modules/verify (License): Change from GPL to LGPL.  This is a
68306         tiny module and there are apparently near-equivalents that are
68307         under the BSD license.
68308
68309 2005-10-24  Simon Josefsson  <jas@extundo.com>
68310
68311         * modules/sha1: Relicense to LGPL.
68312
68313 2005-10-24  Simon Josefsson  <jas@extundo.com>
68314
68315         * lib/md4.h: Shrink buffer size, now that we changed the type.
68316
68317 2005-10-23  Simon Josefsson  <jas@extundo.com>
68318
68319         * gnulib-tool (func_import): Fix --tests-base.
68320
68321 2005-10-22  Simon Josefsson  <jas@extundo.com>
68322
68323         * modules/arcfour (Depends-on): Need stdint.
68324
68325 2005-10-22  Simon Josefsson  <jas@extundo.com>
68326
68327         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
68328         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
68329
68330 2005-10-22  Simon Josefsson  <jas@extundo.com>
68331
68332         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
68333         suggested by Bruno Haible <bruno@clisp.org>.
68334
68335 2005-10-22  Simon Josefsson  <jas@extundo.com>
68336
68337         * lib/crc.h: Include stddef.h, for size_t.
68338
68339 2005-10-22  Simon Josefsson  <jas@extundo.com>
68340
68341         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
68342         arcfour_context struct (simplify test vector testing in GNU
68343         Shishi).
68344
68345 2005-10-21  Simon Josefsson  <jas@extundo.com>
68346
68347         * modules/des, modules/des-tests: New files.
68348
68349         * modules/gc-des, modules/gc-des-tests: New files.
68350
68351         * tests/test-des.c, tests/test-gc-des.c: New file.
68352
68353 2005-10-21  Simon Josefsson  <jas@extundo.com>
68354
68355         * modules/arctwo, modules/arctwo-tests: New files.
68356
68357         * tests/test-arctwo.c: New file.
68358
68359         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
68360
68361         * tests/test-gc-arctwo.c: New file.
68362
68363 2005-10-21  Simon Josefsson  <jas@extundo.com>
68364
68365         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
68366         Bruno Haible <bruno@clisp.org>.
68367
68368         * m4/gc-des.m4: New file.
68369
68370 2005-10-21  Simon Josefsson  <jas@extundo.com>
68371
68372         * m4/arctwo.m4: New file.
68373
68374         * m4/gc-arctwo.m4: New file.
68375
68376 2005-10-21  Simon Josefsson  <jas@extundo.com>
68377
68378         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
68379         block.
68380
68381 2005-10-21  Simon Josefsson  <jas@extundo.com>
68382
68383         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
68384         <bruno@clisp.org>.
68385
68386         * lib/hmac-sha1.c (hmac_sha1): Likewise.
68387
68388         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
68389         Bruno Haible <bruno@clisp.org>.
68390
68391         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
68392         <bruno@clisp.org>.
68393
68394 2005-10-21  Simon Josefsson  <jas@extundo.com>
68395
68396         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
68397
68398 2005-10-21  Simon Josefsson  <jas@extundo.com>
68399
68400         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
68401
68402 2005-10-21  Simon Josefsson  <jas@extundo.com>
68403
68404         * lib/des.h, lib/des.c: New files.
68405
68406         * lib/gc-gnulib.c: Support DES.c
68407
68408 2005-10-21  Simon Josefsson  <jas@extundo.com>
68409
68410         * lib/arctwo.h, lib/arctwo.c: New files.
68411
68412         * lib/gc-gnulib.c: Support ARCTWO.
68413
68414 2005-10-21  Simon Josefsson  <jas@extundo.com>
68415
68416         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
68417         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68418
68419 2005-10-21  Simon Josefsson  <jas@extundo.com>
68420
68421         * gnulib-tool (func_import, func_create_testdir): Define automake
68422         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
68423         Makefile.am snippet),
68424         suggested by Bruno Haible <bruno@clisp.org>.
68425
68426         * modules/gc (Makefile.am): Use it.
68427
68428 2005-10-21  Bruno Haible  <bruno@clisp.org>
68429
68430         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
68431         patch.
68432
68433 2005-10-19  Simon Josefsson  <jas@extundo.com>
68434
68435         * tests/test-gc-rijndael.c: New file.
68436
68437         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
68438
68439 2005-10-19  Simon Josefsson  <jas@extundo.com>
68440
68441         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
68442         interface too.
68443
68444 2005-10-19  Simon Josefsson  <jas@extundo.com>
68445
68446         * tests/test-gc-arcfour.c: New file.
68447
68448         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
68449
68450 2005-10-19  Simon Josefsson  <jas@extundo.com>
68451
68452         * modules/gc-md4, modules/gc-md4-tests: New file.
68453
68454         * tests/test-gc-md4.c: New file.
68455
68456 2005-10-19  Simon Josefsson  <jas@extundo.com>
68457
68458         * m4/gc-md4.m4: New file.
68459
68460 2005-10-19  Simon Josefsson  <jas@extundo.com>
68461
68462         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
68463         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
68464         <kasal@ucw.cz>.
68465
68466 2005-10-19  Simon Josefsson  <jas@extundo.com>
68467
68468         * m4/gc-arcfour.m4: New file.
68469
68470         * m4/gc-rijndael.m4: New file.
68471
68472 2005-10-19  Simon Josefsson  <jas@extundo.com>
68473
68474         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
68475
68476 2005-10-19  Simon Josefsson  <jas@extundo.com>
68477
68478         * lib/gc-gnulib.c: Support ARCFOUR.
68479
68480 2005-10-19  Simon Josefsson  <jas@extundo.com>
68481
68482         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
68483         support.
68484
68485         * lib/gc.h: Add ECB enum type.
68486
68487         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
68488
68489 2005-10-18  Simon Josefsson  <jas@extundo.com>
68490
68491         * tests/test-md5.c: New file.
68492
68493         * modules/md5-tests: New file.
68494
68495 2005-10-18  Simon Josefsson  <jas@extundo.com>
68496
68497         * tests/test-md4.c: New file.
68498
68499         * modules/md4, modules/md4-tests: New files.
68500
68501 2005-10-18  Simon Josefsson  <jas@extundo.com>
68502
68503         * m4/md4.m4: New file.
68504
68505 2005-10-18  Simon Josefsson  <jas@extundo.com>
68506
68507         * lib/md4.h, lib/md4.c: New files, based on md5.?.
68508
68509 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
68510
68511         * gnulib-tool (func_create_testdir): Omit the second check whether
68512         BUILT_SOURCES in nonempty.
68513
68514 2005-10-17  Simon Josefsson  <jas@extundo.com>
68515
68516         * tests/test-rijndael.c: New file.
68517
68518 2005-10-17  Simon Josefsson  <jas@extundo.com>
68519
68520         * modules/sha1: Depend on stdint instead of md5.
68521
68522         * modules/md5: Depend on stdint, remove uint32_t.
68523
68524 2005-10-17  Simon Josefsson  <jas@extundo.com>
68525
68526         * modules/gc-sha1-tests: New file.
68527
68528         * tests/test-gc-sha1.c: New file.
68529
68530 2005-10-17  Simon Josefsson  <jas@extundo.com>
68531
68532         * m4/md5.m4: Remove call to uint32_t.m4.
68533
68534 2005-10-17  Simon Josefsson  <jas@extundo.com>
68535
68536         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
68537
68538         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
68539         md5.h.
68540
68541         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
68542
68543         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
68544
68545 2005-10-17  Simon Josefsson  <jas@extundo.com>
68546
68547         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
68548
68549 2005-10-17  Simon Josefsson  <jas@extundo.com>
68550
68551         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
68552
68553 2005-10-17  Simon Josefsson  <jas@extundo.com>
68554
68555         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
68556
68557         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
68558
68559 2005-10-17  Bruno Haible  <bruno@clisp.org>
68560
68561         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
68562         that it can also be used in a test.
68563
68564 2005-10-16  Bruno Haible  <bruno@clisp.org>
68565
68566         * gnulib-tool (func_emit_tests_Makefile_am): Also define
68567         TESTS_ENVIRONMENT, so that individual tests can augment it.
68568
68569         * gnulib-tool (func_create_testdir): Use an intermediate target for
68570         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
68571         macros, like $(ALLOCA_H), which cannot be passed through the command
68572         line.
68573
68574 2005-10-15  Simon Josefsson  <jas@extundo.com>
68575
68576         * modules/rijndael-tests: New file.
68577
68578         * modules/rijndael: New file.
68579
68580 2005-10-15  Simon Josefsson  <jas@extundo.com>
68581
68582         * m4/rijndael.m4: New file.
68583
68584 2005-10-15  Simon Josefsson  <jas@extundo.com>
68585
68586         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
68587
68588         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
68589
68590 2005-10-14  Simon Josefsson  <jas@extundo.com>
68591
68592         * tests/test-arcfour.c: New file.
68593
68594         * modules/arcfour, modules/arcfour-tests: New files.
68595
68596 2005-10-14  Simon Josefsson  <jas@extundo.com>
68597
68598         * m4/arcfour.m4: New file.
68599
68600 2005-10-14  Simon Josefsson  <jas@extundo.com>
68601
68602         * lib/arcfour.h, lib/arcfour.c: New files.
68603
68604 2005-10-14  Roland McGrath  <roland@redhat.com>
68605
68606         Import from libc.  [BZ #1331]
68607         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
68608         macro argument.
68609         Reported by Matej Vela <vela@debian.org>.
68610
68611 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
68612
68613         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
68614         include <wchar.h>; no longer needed.
68615
68616 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
68617
68618         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
68619
68620 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
68621         and  Ulrich Drepper  <drepper@redhat.com>
68622
68623         Import from libc.
68624         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
68625         instead of inline stream orientation test and two separate
68626         function calls.  Pay no attention to USE_IN_LIBIO.
68627
68628 2005-10-13  Simon Josefsson  <jas@extundo.com>
68629
68630         * modules/gc-hmac-md5-tests: New file.
68631
68632         * tests/test-gc-hmac-sha1.c: New file.
68633
68634         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
68635
68636         * modules/gc-hmac-md5-tests: New file.
68637
68638         * tests/test-gc-md5.c: New file.
68639
68640         * modules/gc-md5-tests: New file.
68641
68642 2005-10-13  Simon Josefsson  <jas@extundo.com>
68643
68644         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
68645         Move memory allocation outside of loop.
68646
68647 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
68648
68649         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
68650         intermediate directory is in a read-only file system.  Problem
68651         reported by Eric Blake.
68652
68653 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
68654
68655         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
68656
68657 2005-10-12  Simon Josefsson  <jas@extundo.com>
68658
68659         * tests/test-hmac-sha1.c: New file.
68660
68661         * modules/hmac-sha1-tests: New file.
68662
68663         * modules/hmac-sha1: New file.
68664
68665 2005-10-12  Simon Josefsson  <jas@extundo.com>
68666
68667         * modules/gc-sha1: New file.
68668
68669 2005-10-12  Simon Josefsson  <jas@extundo.com>
68670
68671         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
68672
68673         * tests/test-gc-pbkdf2-sha1.c: New file.
68674
68675 2005-10-12  Simon Josefsson  <jas@extundo.com>
68676
68677         * modules/gc-md5, modules/gc-hmac-md5: New files.
68678
68679         * modules/gc (Files): Remove md5, memxor and hmac files.
68680
68681 2005-10-12  Simon Josefsson  <jas@extundo.com>
68682
68683         * m4/gc-pbkdf2-sha1.m4: New file.
68684
68685         * m4/gc-hmac-sha1.m4: New file.
68686
68687         * m4/gc-sha1: New file.
68688
68689         * m4/hmac-sha1.m4: New file.
68690
68691 2005-10-12  Simon Josefsson  <jas@extundo.com>
68692
68693         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
68694
68695         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
68696
68697 2005-10-12  Simon Josefsson  <jas@extundo.com>
68698
68699         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
68700         suggested by Bruno Haible <bruno@clisp.org>.
68701
68702 2005-10-12  Simon Josefsson  <jas@extundo.com>
68703
68704         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
68705
68706 2005-10-12  Simon Josefsson  <jas@extundo.com>
68707
68708         * lib/gc-pbkdf2-sha1.c: New file.
68709
68710         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
68711
68712 2005-10-12  Simon Josefsson  <jas@extundo.com>
68713
68714         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
68715
68716         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
68717
68718 2005-10-12  Simon Josefsson  <jas@extundo.com>
68719
68720         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
68721         GC_USE_HMAC_MD5, respectively.
68722
68723         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
68724         (gc_md5): Fix typo.
68725
68726         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
68727
68728         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
68729
68730         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
68731
68732 2005-10-12  Bruno Haible  <bruno@clisp.org>
68733
68734         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
68735         Reported by Stepan Kasal <kasal@ucw.cz>.
68736
68737 2005-10-11  Simon Josefsson  <jas@extundo.com>
68738
68739         * tests/test-crc.c: New file.
68740
68741         * modules/crc, modules/crc-tests: New files.
68742
68743 2005-10-11  Simon Josefsson  <jas@extundo.com>
68744
68745         * m4/crc.m4: New file.
68746
68747 2005-10-11  Simon Josefsson  <jas@extundo.com>
68748
68749         * lib/gc.h: Add gc_hash and gc_hash_buffer.
68750
68751         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
68752
68753         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
68754
68755 2005-10-11  Simon Josefsson  <jas@extundo.com>
68756
68757         * lib/crc.h, lib/crc.c: New files.
68758
68759         * lib/gc.h (gc_hash_buffer): Add doc.
68760
68761 2005-10-11  Bruno Haible  <bruno@clisp.org>
68762
68763         * modules/c-strcasestr: New file.
68764         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
68765
68766 2005-10-11  Bruno Haible  <bruno@clisp.org>
68767
68768         * modules/c-strcase: New file.
68769         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
68770
68771 2005-10-11  Bruno Haible  <bruno@clisp.org>
68772
68773         * lib/strcasecmp.c: Include limits.h.
68774         (strcasecmp): Avoid integer overflow on exotic platforms.
68775         * lib/strncasecmp.c: Include limits.h.
68776         (strncasecmp): Avoid integer overflow on exotic platforms.
68777         Reported by Paul Eggert.
68778
68779 2005-10-11  Bruno Haible  <bruno@clisp.org>
68780
68781         * lib/c-strcasestr.h: New file, from GNU gettext.
68782         * lib/c-strcasestr.c: New file, from GNU gettext.
68783
68784 2005-10-11  Bruno Haible  <bruno@clisp.org>
68785
68786         * lib/c-strcase.h: New file, from GNU gettext.
68787         * lib/c-strcasecmp.c: New file, from GNU gettext.
68788         * lib/c-strncasecmp.c: New file, from GNU gettext.
68789
68790 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
68791
68792         * modules/mempcpy (License): GPL -> LGPL.
68793         * modules/strchrnul (License): Likewise.
68794         * modules/sysexits (License): Likewise.
68795
68796 2005-10-08  Simon Josefsson  <jas@extundo.com>
68797
68798         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
68799
68800 2005-10-07  Simon Josefsson  <jas@extundo.com>
68801
68802         * m4/memxor.m4: Remove gl_C_RESTRICT call.
68803
68804 2005-10-06  Simon Josefsson  <jas@extundo.com>
68805
68806         * tests/test-hmac-md5.c: New file.
68807
68808         * modules/hmac-md5-tests: New file.
68809
68810         * modules/hmac-md5: New file.
68811
68812 2005-10-06  Simon Josefsson  <jas@extundo.com>
68813
68814         * m4/hmac-md5.m4: New file.
68815
68816         * m4/memxor.m4: Require gl_C_RESTRICT.
68817
68818 2005-10-06  Simon Josefsson  <jas@extundo.com>
68819
68820         * lib/memxor.c (memxor): Avoid casts and warnings.
68821
68822 2005-10-06  Simon Josefsson  <jas@extundo.com>
68823
68824         * lib/hmac-md5.c: New file.
68825
68826         * lib/hmac.h: New file.
68827
68828 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
68829
68830         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
68831         promotes to int, not unsigned int, to catch the AIX 5.3
68832         compiler bug.
68833
68834 2005-10-05  Simon Josefsson  <jas@extundo.com>
68835
68836         * modules/memxor: New file.
68837
68838         * modules/iconv (Files): Move config.rpath to havelib, it is used
68839         there.
68840
68841         * modules/havelib (Files): Add config.rpath.
68842
68843 2005-10-05  Simon Josefsson  <jas@extundo.com>
68844
68845         * m4/memxor.m4: New file.
68846
68847 2005-10-05  Simon Josefsson  <jas@extundo.com>
68848
68849         * lib/memxor.c (memxor): Fix compiler error.
68850
68851         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
68852         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
68853
68854         * lib/memxor.h, lib/memxor.c: New files.
68855
68856         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
68857         we assume all systems have it, suggested by Jim Meyering
68858         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
68859         any systems lack sys/socket.h; mingw32 is known to lack it, but we
68860         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
68861         same reasons.
68862
68863 2005-10-05  Simon Josefsson  <jas@extundo.com>
68864
68865         * config/srclist.txt: Add glibc bug 1423 for md5.h.
68866
68867 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
68868
68869         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
68870         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
68871         needed, since the source code now assumes these .h files.
68872
68873 2005-10-05  Derek Price  <derek@ximbiot.com>
68874
68875         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
68876
68877 2005-10-05  Bruno Haible  <bruno@clisp.org>
68878
68879         * modules/stdint (License): Change to LGPL.
68880
68881 2005-10-04  Simon Josefsson  <jas@extundo.com>
68882
68883         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
68884         D. Baushke" <mdb@gnu.org>.
68885
68886 2005-10-04  Bruno Haible  <bruno@clisp.org>
68887
68888         * lib/verify.h (verify_true): Provide alternative definition for C++.
68889
68890 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
68891
68892         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
68893         (SSIZE_MAX): New macro, if not already defined.
68894         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
68895         than 2 GiB.
68896
68897 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
68898
68899         Sync from coreutils.
68900         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
68901         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
68902         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
68903         ULLONG_MAX doesn't work with 2.7.2.1.
68904
68905 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
68906
68907         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
68908         From Ben Pfaff.
68909
68910         * modules/exclude (Depends-on): Depend on verify.
68911         * modules/strtoimax (Depends-on): Likewise.
68912         * modules/utimecmp (Depends-on): Likewise.
68913
68914 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
68915
68916         * lib/exclude.c: Include verify.h.
68917         (verify): Remove.  All callers changed to use verify.h's version.
68918         * lib/strtoimax.c: Likewise.
68919         * lib/utimecmp.c: Likewis.e
68920
68921         Sync from coreutils.
68922         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
68923         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
68924         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
68925         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
68926         bother returning ENOSYS if settimeofday or stime fails; just let
68927         them return whatever errno they want to return.
68928         * lib/utimens.c: Include unistd.h, for dup2.
68929         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
68930         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
68931
68932 2005-10-02  Jim Meyering  <jim@meyering.net>
68933
68934         Sync from coreutils.
68935         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
68936         from glibc-2.2.5 that fails for read-only files.
68937
68938 2005-10-02  Jim Meyering  <jim@meyering.net>
68939
68940         Sync from coreutils.
68941         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
68942         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
68943         `#if HAVE_CONFIG_H'.
68944         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
68945         Remove AT_FDCWD test.
68946         Do not consume the fd unless successful.
68947         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
68948         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
68949         block, so that we don't even try to compile it if settimeofday is
68950         available.  This works around a compilation failure on OSF1 V5.1,
68951         due to stime requiring a `long int*' while tv_sec is `int'.
68952
68953 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
68954
68955         Sync from coreutils.
68956         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
68957         against `yes', rather than just testing for nonempty.
68958
68959 2005-10-01  Simon Josefsson  <jas@extundo.com>
68960
68961         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
68962         and Darwin.
68963
68964         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
68965         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
68966         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
68967         freeaddrinfo and gai_strerror are declared by the POSIX headers.
68968         Check if struct addrinfo is declared.
68969
68970 2005-10-01  Simon Josefsson  <jas@extundo.com>
68971
68972         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
68973         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
68974         AI_* and EAI_* definitions.  Protect function declarations.
68975
68976 2005-10-01  Jim Meyering  <jim@meyering.net>
68977
68978         Sync from coreutils.
68979
68980         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
68981         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
68982         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
68983         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
68984         in the inet and nsl libraries.  Required on Solaris 5.7.
68985
68986 2005-10-01  Jim Meyering  <jim@meyering.net>
68987
68988         Sync from coreutils.
68989         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
68990         in the inet and nsl libraries.  Required on Solaris 5.7.
68991
68992 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
68993
68994         * lib/getdelim.c (getdelim): Remove unused variables.
68995
68996 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
68997
68998         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
68999         so that the code works even with ancient cpp.  Portability problem
69000         with GCC 2.7.2.1 reported by Thomas M.Ott.
69001
69002 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
69003
69004         * modules/regex (Depends-on): Add strcase.
69005
69006         * modules/gethostname (Licence): Change from GPL to LGPL, since
69007         gethostname.c is a trivial implementation of a standard library
69008         function.
69009         * modules/poll (License): Change from GPL to LGPL, since it's
69010         derived from LGPL code.
69011
69012 2005-09-27  Jim Meyering  <jim@meyering.net>
69013
69014         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
69015         HAVE_CONFIG_H.
69016
69017         * lib/intprops.h (signed_type_or_expr__): Define.
69018         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
69019         for unsigned types.
69020
69021 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
69022
69023         * lib/verify.h (verify_expr): Remove, replacing with:
69024         (verify_true): New macro that returns true instead of void.
69025         (verify_type__): Remove.
69026         (verify): Use verify_true rather than verify_type__.
69027
69028 2005-09-26  Bruno Haible  <bruno@clisp.org>
69029
69030         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
69031         is necessary.
69032         (lib_SOURCES): Remove mbchar.c.
69033         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
69034         (Files): Add m4/mbrtowc.m4.
69035         * modules/mbiter: Likewise.
69036         * modules/mbuiter: Likewise.
69037
69038 2005-09-26  Bruno Haible  <bruno@clisp.org>
69039
69040         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
69041         compile mbchar.c if they are not both present.
69042         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
69043         * m4/mbiter.m4 (gl_MBITER): Likewise.
69044         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
69045         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
69046         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
69047
69048 2005-09-25  Jim Meyering  <jim@meyering.net>
69049
69050         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
69051         also uses socklen_t.
69052
69053 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
69054
69055         * lib/utimens.c (ENOSYS): Define if not already defined.
69056         (futimens): Support having a null PATH if the file descriptor
69057         is nonnegative.
69058
69059         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
69060         Remove.
69061         (__attribute): Define to empty unless GCC 3.1 or later.
69062         This works around a core dump on OpenBSD 3.4, which has GCC
69063         2.95.3, which dumps core when given __attribute__(()).  It also
69064         simplifies other tests, since we really don't want to bother with
69065         worrying about which ancient version of GCC supported what.
69066         Original problem reported by Yoann Vandoorselaere, with part of
69067         the fix suggested by Derek Price.
69068
69069 2005-09-24  Jim Meyering  <jim@meyering.net>
69070
69071         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
69072         so we can once again use a positive bitfield width of 1 -- now we
69073         don't have to explain why we were using a bitfield width of 2.
69074
69075 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
69076
69077         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
69078         and similarly for the other external symbols.  Problem reported
69079         by James Gallager.
69080
69081         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
69082         bug reported by Jim Meyering.
69083
69084         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
69085         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
69086         not needed, since socklen is a prerequisite module.
69087
69088 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
69089
69090         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
69091         Problem reported by Eric Blake.
69092         (getaddrinfo): Initialize se so that it's not garbage.
69093         Redo internal storage allocation so that it doesn't make unportable
69094         assumptions about alignment.
69095         Fix a memory leak.
69096
69097         * lib/utimens.c (futimens): Use futimesat if available.
69098         Prefer it to futimes since it doesn't have the futimes bug.
69099
69100         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
69101         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
69102         Instead, declare a function that returns a pointer to an array,
69103         and use verify_type__ to declare the size of the array.
69104         Problem and germ of a solution reported by Bruno Haible.
69105         (verify_type__): Use 2, not 1, for bitfield size, to avoid
69106         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
69107
69108 2005-09-23  Jim Meyering  <jim@meyering.net>
69109
69110         Sync from coreutils.
69111         Correct build failure (socklen_t not defined) on at least
69112         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
69113         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
69114
69115 2005-09-23  Jim Meyering  <jim@meyering.net>
69116
69117         * modules/getaddrinfo (Depends-on): Add socklen.
69118
69119 2005-09-23  Bruno Haible  <bruno@clisp.org>
69120
69121         * tests/test-verify.c: New file.
69122
69123 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
69124
69125         Sync from coreutils.
69126
69127         * modules/argmatch (Depends-on): Add verify.
69128         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
69129         unistd-safer.
69130         * modules/save-cwd (Depends-on): Likewise.
69131
69132         * modules/openat (Files): Add lib/openat-die.c.
69133         (Depends-on): Remove error, exitfail.
69134         Add dirname.
69135
69136         * modules/verify: New file.
69137         * MODULES.html.sh (Diagnostics <assert.h>): New section,
69138         with "verify" module.
69139
69140 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
69141
69142         Sync from coreutils.
69143
69144         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
69145         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
69146         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
69147         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
69148         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
69149         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
69150         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
69151         Don't bother checking for string.h, stdlib.h, unistd.h.
69152         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
69153         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
69154         module's job.
69155         * m4/jm-macros.m4 (gl_MACROS): Likewise.
69156         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
69157
69158         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
69159         (gl_GETDATE): Use it.
69160
69161         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
69162
69163 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
69164
69165         Sync from coreutils.
69166
69167         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
69168         stat-time.h.
69169         * lib/argmatch.h: Include verify.h
69170         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
69171         (ARGMATCH_ASSERT): Remove; unused.
69172         * lib/canonicalize.c: Assume STDC_HEADERS.
69173         * lib/exclude.c: Include "strcase.h".
69174         * lib/regex_internal.h [!defined _LIBC]: Likewise.
69175         * lib/getusershell.c: Include stdio--.h rather than stdio.h
69176         and stdio-safer.h.
69177         (getusershell): Call fopen, not fopen_safer.
69178         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
69179         Do not include unistd-safer.h.
69180         (save_cwd): Don't call fd_safer; no longer needed
69181         now that we include fcntl--.h.
69182
69183         * lib/getdate.y (relative_time): New type.
69184         (RELATIVE_TIME_0): New constant.
69185         (parser_control): Use relative_time instead of doing it ourselves.
69186         (%union): Add new relative_time rel member.
69187         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
69188         Now typeless.
69189         (relunit, relunit_snumber): Now of type rel.
69190         (zone, rel, relunit, get_date): Adjust to above changes.
69191
69192         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
69193         Do not include unistd-safer.h.
69194         (getloadavg): Don't call fd_safer; no longer needed
69195         now that we include fcntl--.h.
69196
69197         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
69198         (make_dir_parents): Treat ENOSYS like EEXIST.
69199
69200         Improve quality of diagnostics on restore_cwd failure.
69201         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
69202         (make_dir_parents): Last arg is now int * (for errno), not bool *.
69203         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
69204         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
69205         each time through the loop.  Do not diagnose restore_cwd failure;
69206         that is the caller's job (and perhaps the caller does not care).
69207
69208         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
69209         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
69210         If the file already exists but is not a directory, don't bother
69211         to try to make its parents.
69212         Close potential file descriptor leak if we can't chdir("/") (!).
69213         Don't always return true if chdir($PWD) fails; return true only
69214         if the requested action was done successfully (except for the
69215         chdir($PWD)).
69216         Don't log final directory unless we actually made it.
69217         Refactor to avoid duplicate code to fix up permissions.
69218         Don't attempt to fix up parent permissions if chdir($PWD) fails.
69219
69220         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
69221         to make it a bit faster and (I hope) clearer.
69222         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
69223         Fix bug in formats like %2N.
69224
69225         * lib/verify.h: New file.
69226
69227 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
69228
69229         Sync from coreutils.
69230         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
69231
69232 2005-09-22  Jim Meyering  <jim@meyering.net>
69233
69234         Sync from coreutils.
69235
69236         * m4/lstat.m4 (gl_FUNC_LSTAT):
69237         Use AC_LIBSOURCES to require lstat.c and lstat.h.
69238         Remove obsolete comment.
69239         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
69240         * m4/xstrtod.m4: Likewise.
69241
69242         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
69243
69244 2005-09-22  Jim Meyering  <jim@meyering.net>
69245
69246         Sync from coreutils.
69247
69248         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
69249
69250         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
69251         the .tm_year member, since otherwise gcc-4.0 would now warn about
69252         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
69253
69254         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
69255         order to avoid an unsuppressible warning from gcc on 64-bit systems.
69256
69257         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
69258         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
69259         when run in a time zone for which daylight savings time is in effect
69260         for the starting date.
69261
69262         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
69263         stop us from restricting permissions of just-created absolute-named
69264         directories.
69265         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
69266         to restore initial working directory.
69267         * lib/mkdir-p.c (make_dir_parents): New parameter:
69268         different_working_dir, to tell caller if/when we change the working
69269         directory and are unable to return to the initial one.
69270         * lib/mkdir-p.h (make_dir_parents): Update prototype.
69271         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
69272         `return false'.  This fixes a bug introduced on 2004-07-30.
69273
69274         * lib/openat.c (fdopendir): Be sure to close the supplied
69275         file descriptor before returning.  This makes our replacement
69276         implementation a little closer to Solaris's, where fdopendir
69277         ties the file descriptor to the returned DIR* pointer.
69278         * lib/openat.c (unlinkat): New function.
69279         * lib/openat.h (unlinkat): Add prototype.
69280         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
69281         (openat_restore_fail): Rename from openat_restore_die.
69282         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
69283
69284         Provide an alternative to exiting immediately upon save_cwd or
69285         restore_cwd failure.  Now, an application can arrange e.g.,
69286         to perform a longjump in that case.
69287         * lib/openat.c: Include dirname.h.
69288         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
69289         (rpl_openat, fdopendir, fstatat): Call openat_save_die
69290         and openat_restore_die rather than calling error directly.
69291         Don't include "error.h" or "exitfail.h"; they're no longer needed.
69292
69293         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
69294         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
69295         define.
69296
69297         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
69298         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
69299                             int utc, int nanoseconds);
69300         Background:
69301         date should not have to allocate a megabyte of virtual memory to
69302         handle a format argument like +%1048575T.  When implemented with
69303         strftime, it must allocate such a buffer, use strftime to fill it
69304         in, print it, then free it.
69305         With fprintftime, it simply prints everything and exits.
69306         With no need for memory allocation, that's one fewer way to fail.
69307         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
69308         optional field width, not before, so we accept %9:z, not %:9z.
69309         (my_strftime): Be sure to use L_('x') for literals.
69310
69311         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
69312         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
69313         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
69314         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
69315         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
69316         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
69317         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
69318         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
69319         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
69320         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
69321         * lib/xgethostname.c, lib/xreadlink.c:
69322         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
69323
69324         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
69325         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
69326         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
69327         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
69328         and don't include <sys/file.h>).
69329
69330 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
69331
69332         Sync from coreutils.
69333
69334         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
69335         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
69336         [!LDAV_DONE]: Avoid unused variable warning.
69337
69338 2005-09-21  Bruno Haible  <bruno@clisp.org>
69339
69340         * lib/unicodeio.h (unicode_to_mb): New declaration.
69341
69342 2005-09-20  Derek Price  <derek@ximbiot.com>
69343
69344         * lib/getaddrinfo.c: Don't include <netdb.h> included from
69345         getaddrinfo.h.
69346
69347 2005-09-20  Bruno Haible  <bruno@clisp.org>
69348
69349         * gnulib-tool: Remove trailing slashes from the values specified for
69350         --source-base, --m4-base, --tests-base, --aux-dir.
69351         Suggested by Simon Josefsson <jas@extundo.com>.
69352
69353 2005-09-20  Bruno Haible  <bruno@clisp.org>
69354
69355         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
69356         func_modules_to_filelist, func_import, func_create_testdir): Make all
69357         sorting results locale-independent, so that gnulib-cache.m4 doesn't
69358         change when gnulib-tool is invoked in a different locale.
69359
69360 2005-09-19  Simon Josefsson  <jas@extundo.com>
69361
69362         * m4/socklen.m4: Fix typo.
69363
69364 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69365
69366         Use a consistent style for including <config.h>.
69367         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
69368         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
69369         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
69370         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
69371         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
69372         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
69373         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
69374         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
69375         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
69376         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
69377         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
69378         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
69379         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
69380         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
69381         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
69382         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
69383         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
69384         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
69385         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
69386         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
69387         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
69388         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
69389         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
69390         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
69391         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
69392         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
69393         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
69394         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
69395         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
69396         lib/xstrtoumax.c, lib/yesno.c:
69397         Standardize inclusion of config.h.
69398         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
69399         lib/inttostr.h:  Removed inclusion of config.h from header files.
69400         * lib/inttostr.c:  Adjusted in-tree users.
69401         * lib/timespec.h: Remove superfluous warning to include config.h.
69402         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
69403         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
69404         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
69405         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
69406         config.h with HAVE_CONFIG_H.
69407
69408 2005-09-19  Jim Meyering  <jim@meyering.net>
69409
69410         * modules/pathmax (License): Change to LGPL.
69411
69412 2005-09-19  Derek Price  <derek@ximbiot.com>
69413
69414         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
69415
69416 2005-09-19  Bruno Haible  <bruno@clisp.org>
69417
69418         * gnulib-tool (import): Provide default for --tests-base.
69419
69420 2005-09-19  Bruno Haible  <bruno@clisp.org>
69421
69422         * doc/quote.texi: New file, extracted from gnulib.texi.
69423         * doc/ctime.texi: New file, extracted from gnulib.texi.
69424         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
69425         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
69426         * doc/gnulib.texi: Include them.
69427
69428 2005-09-18  Bruno Haible  <bruno@clisp.org>
69429
69430         Portability fix.
69431         * gnulib-tool (func_readlink): New function.
69432         (func_ln_if_changed): Use it.
69433
69434 2005-09-18  Bruno Haible  <bruno@clisp.org>
69435
69436         * gnulib-tool: Support --with-tests also with --import.
69437         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
69438         (func_import): Use variables $testsbase and $inctests. Emit a
69439         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
69440         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
69441         SUBDIRS += $testsdir.
69442         (func_create_testdir): Update.
69443
69444 2005-09-18  Bruno Haible  <bruno@clisp.org>
69445
69446         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
69447         instead of $dry_run.
69448         (func_cp_if_changed, func_mv_if_changed): Remove functions.
69449         (func_ln_if_changed): Don't handle dry-run here.
69450         (func_import): In dry-run mode, detect more precisely which actions
69451         would be performed, and don't use "...ing" verbs.
69452
69453 2005-09-18  Bruno Haible  <bruno@clisp.org>
69454
69455         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
69456         (func_import): Use join on two temporary files instead of three nested
69457         loops, in order to determine which files are new or old.
69458
69459 2005-09-18  Bruno Haible  <bruno@clisp.org>
69460
69461         * gnulib-tool (func_import): Comment out code that spits out the
69462         new files with --dry-run.
69463
69464 2005-09-18  Bruno Haible  <bruno@clisp.org>
69465
69466         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
69467
69468 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
69469
69470         * lib/stat-time.h: New file.
69471         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
69472         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
69473         in a different way.
69474         (timespec_cmp): New function.
69475         * lib/utimecmp.c: Include stat-time.h.
69476         (SYSCALL_RESOLUTION): Depend on whether various struct stat
69477         members exist, not on the obsolescent ST_MTIM_NSEC.
69478         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
69479
69480 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
69481
69482         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
69483
69484 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
69485
69486         * MODULES.html.sh (File system functions): Add stat-time.
69487         * modules/stat-time: New file.
69488         * modules/timespec (Files): Remove m4/st_mtim.m4; this
69489         is now done in a different way, by the stat-time module.
69490         * modules/utimecmp (Depends-on): Add stat-time.
69491
69492 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69493
69494         * m4/st_mtim.m4: Remove.  Superseded by...
69495         * m4/stat-time.m4: New file.
69496         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
69497         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
69498
69499 2005-09-15  Derek Price  <derek@ximbiot.com>
69500
69501         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
69502
69503 2005-09-15  Derek Price  <derek@ximbiot.com>
69504
69505         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
69506         * lib/regex_internal.c: Ditto, using this...
69507         (__GNUC_PREREQ): ...new macro.
69508         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
69509         using...
69510         (__GNUC_PREREQ): ...this new macro.
69511
69512         * lib/strstr.h: Include string.h. Define strstr as a macro here.
69513
69514 2005-09-15  Derek Price  <derek@ximbiot.com>
69515             Paul Eggert  <eggert@cs.ucla.edu>
69516
69517         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
69518         changes, consolidating in...
69519         * lib/regex_internal.h: ...this file.
69520
69521 2005-09-13  Jim Meyering  <jim@meyering.net>
69522
69523         * lib/canon-host.c: Filter through gnu indent and reword comments
69524         slightly.
69525         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
69526
69527 2005-09-13  Derek Price  <derek@ximbiot.com>
69528
69529         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
69530         failure.
69531         Reported by Jim Meyering  <jim@meyering.net>.
69532
69533 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
69534
69535         * lib/base64.c: Typo.
69536         (base64_encode): Put b64str in initialized data section.
69537
69538 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
69539
69540         Merge glibc and coreutils changes into gnulib, plus a few
69541         extra fixes.
69542         * lib/md5.c: Use #error rather than a string.
69543         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
69544         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
69545         (__attribute__): Define to empty for non recent-GCC.
69546         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
69547         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
69548         Renamed from their non-__ counterparts, with new macros replacing
69549         them if not _LIBC.  Add __THROW attribute.
69550         (rol): Remove.
69551         (struct md5_ctx): Align buffer if using GCC.
69552         * lib/sha1.h (struct sha1_ctx): Likewise.
69553         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
69554         The old name was backwards.
69555         (NOTSWAP): Remove; not used.
69556         (rol): New macro, moved here from md5.h.
69557         (sha1_process_block): Remove a FIXME that doesn't make sense.
69558
69559 2005-09-12  Derek Price  <derek@ximbiot.com>
69560
69561         Return usable errors from canon-host.
69562         * lib/canon-host.h: New file.
69563         * lib/canon-host.c (canon_host): Wrap...
69564         (canon_host_r): ...this new function, which now relies exclusively on
69565         getaddrinfo.
69566         (ch_strerror): New function.
69567         (last_cherror): New global.
69568         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
69569         interface.
69570         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
69571         void *.
69572         (freeaddrinfo): Free ai->ai_canonname when set.
69573
69574 2005-09-12  Derek Price  <derek@ximbiot.com>
69575
69576         Make canon-host require getaddrinfo.
69577         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
69578         AC_LIBSOURCE canon-host.h.  Call...
69579         (gl_PREREQ_CANON_HOST): ...this new function, which requires
69580         gl_GETADDRINFO.
69581         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
69582
69583 2005-09-12  Derek Price  <derek@ximbiot.com>
69584
69585         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
69586         LGPL.
69587         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
69588
69589 2005-09-12  Derek Price  <derek@ximbiot.com>
69590
69591         * lib/gai_strerror.c: Include config.h when available.  Include
69592         getaddrinfo.h before other headers to test interface.
69593         Reported by Larry Jones <lawrence.jones@ugs.com>.
69594
69595 2005-09-12  Derek Price  <derek@ximbiot.com>
69596             Paul Eggert  <eggert@cs.ucla.edu>
69597
69598         * modules/glob (Files): Add glob-libc.h.
69599
69600 2005-09-12  Derek Price  <derek@ximbiot.com>
69601             Paul Eggert  <eggert@cs.ucla.edu>
69602
69603         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
69604         glob_.h, glob-libc.h.
69605         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
69606
69607 2005-09-12  Derek Price  <derek@ximbiot.com>
69608             Paul Eggert  <eggert@cs.ucla.edu>
69609
69610         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
69611         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
69612         protecting things that should be done only in gnulib contexts.
69613         * lib/glob_.h: New file, containing only the glob things needed for
69614         gnulib.
69615         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
69616         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
69617         (glob, globfree, glob_pattern_p): Now defined simply in terms of
69618         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
69619         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
69620         and to respect the namespace rules better.
69621
69622 2005-09-08  Simon Josefsson  <jas@extundo.com>
69623
69624         * modules/socklen: New file.
69625
69626 2005-09-08  Simon Josefsson  <jas@extundo.com>
69627
69628         * m4/socklen.m4: New file.
69629
69630 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69631
69632         * modules/utimens (Files): Add m4/utimbuf.m4, since
69633         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
69634         Reported by Sergey Poznyakoff.
69635
69636 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69637
69638         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
69639         definitions, since that's the preferred style in glibc.
69640         Fix a minor spacing issue, and update copyright notice to match
69641         glibc's.
69642
69643 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69644
69645         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
69646
69647 2005-09-06  Simon Josefsson  <jas@extundo.com>
69648
69649         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
69650         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
69651
69652 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
69653
69654         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
69655         warning.
69656
69657 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
69658
69659         * config/srclist.txt: Add glibc bug 1302.
69660
69661 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
69662
69663         Change bitset word type from unsigned int to unsigned long int,
69664         as this has better performance on typical 64-bit hosts.
69665         Port bitset code to hosts with unusual word sizes.
69666         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
69667         (build_collating_symbol):
69668         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
69669         argument is a bitset.  This is merely a style issue, but it makes
69670         it clearer that an entire array is expected.
69671         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
69672         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
69673         Port to the case where bitset_word is not the same as unsigned int.
69674         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
69675         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
69676         Likewise.
69677         * lib/regexec.c (check_dst_limits_calc_pos_1,
69678         check_subexp_matching_top):
69679         (build_trtable, group_nodes_into_DFAstates):
69680         Likewise.
69681         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
69682         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
69683         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
69684         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
69685         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
69686         * lib/regcomp.c (optimize_subexps, lower_subexp):
69687         Work even if bitset_word has holes in its bitwise representation.
69688         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
69689         * lib/regexec.c (check_dst_limits_calc_pos_1,
69690         check_subexp_matching_top):
69691         Likewise.
69692         * lib/regex_internal.c (re_string_reconstruct):
69693         Don't assume UCHAR_MAX == 255.
69694         * lib/regex_internal.h (bitset_set_all): Likewise.
69695         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
69696         All uses changed.
69697         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
69698         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
69699         All uses changed.
69700         (BITSET_WORD_MAX): New macro.
69701         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
69702         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
69703         (bitset_empty, bitset_copy):
69704         Prefer sizeof (bitset) to multiplying it out ourselves.
69705         (bitset_not_merge): Remove; unused.
69706         (bitset_contain): Return bool, not unsigned int with one bit on.
69707         All callers changed.
69708         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
69709         alignment than re_node_set; do this by defining a new internal
69710         type struct dests_alloc and using it to allocate memory.
69711
69712 2005-09-05  Bruno Haible  <bruno@clisp.org>
69713
69714         * gnulib-tool (func_import): Fix comparison in handling of symbolic
69715         links.
69716
69717 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
69718
69719         * modules/size_max (Makefile.am): Add size_max.h
69720
69721 2005-09-04  Derek Price  <derek@ximbiot.com>
69722
69723         * gnulib-tool (func_import): Fix reversed $symbolic logic.
69724
69725 2005-09-03  Simon Josefsson  <jas@extundo.com>
69726
69727         * gnulib-tool: Fix typo.
69728
69729 2005-09-03  Simon Josefsson  <jas@extundo.com>
69730
69731         * config/srclist.txt: Add glibc bug 1293.
69732
69733 2005-09-03  Derek Price  <derek@ximbiot.com>
69734
69735         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
69736         From Larry Jones <lawrence.jones@ugs.com>.
69737
69738 2005-09-02  Simon Josefsson  <jas@extundo.com>
69739
69740         * modules/socklen: New file.
69741
69742 2005-09-02  Simon Josefsson  <jas@extundo.com>
69743
69744         * modules/havelib: New module.
69745
69746         * modules/gettext, modules/iconv, modules/lock, modules/readline:
69747         Use havelib.
69748
69749 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
69750
69751         Check for arithmetic overflow when calculating sizes, to prevent
69752         some buffer-overflow issues.  These patches are conservative, in the
69753         sense that when I couldn't determine whether an overflow was possible,
69754         I inserted a run-time check.
69755         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
69756         macros.
69757         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
69758         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
69759         (re_xnrealloc, re_x2nrealloc): New inline functions.
69760         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
69761         parse_bracket_exp):
69762         (build_equiv_class, build_charclass): Check for arithmetic overflow
69763         in size expression calculations.
69764         * lib/regex_internal.c (re_string_realloc_buffers):
69765         (build_wcs_upper_buffer, re_node_set_add_intersect):
69766         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
69767         (re_dfa_add_node, register_state): Likewise.
69768         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
69769         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
69770         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
69771         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
69772
69773 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
69774
69775         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
69776         m4/ulonglong.m4.  Problem reported by Martin Lambers.
69777
69778 2005-09-02  Bruno Haible  <bruno@clisp.org>
69779
69780         Support for lib vs. lib64 distinction on biarch platforms.
69781         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
69782         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
69783         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
69784
69785 2005-09-02  Bruno Haible  <bruno@clisp.org>
69786
69787         * gnulib-tool (import): In the other first-use case, provide defaults
69788         as well.
69789
69790 2005-09-02  Bruno Haible  <bruno@clisp.org>
69791
69792         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
69793         patches not yet found in the latest gettext release.
69794
69795 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69796
69797         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
69798         to avoid a collision with bits/local_lim.h in glibc.
69799         All uses changed.  Problem reported by Dmitry V. Levin in
69800         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
69801
69802         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
69803         bugs in int versus size_t comparisons.
69804         (re_string_context_at): Fix bug where the code assumed that
69805         Idx is signed.
69806
69807         Use bool where appropriate.
69808         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
69809         All callers changed.
69810         (calc_eclosure_iter): Likewise, for ROOT arg.
69811         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
69812         (build_charclass_op): Likewise, for NON_MATCH arg.
69813         * lib/regex_internal.c (re_string_allocate, re_string_construct):
69814         (re_string_construct_common): Likewise, for ICASE arg.
69815         * lib/regexec.c (re_search_2_stub, re_search_stub):
69816         Likewise, for RET_LEN arg.
69817         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
69818         (set_regs): Likewise, for FL_BACKTRACK arg.
69819         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
69820         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
69821         (calc_eclosure_iter, parse_bracket_exp):
69822         Use bool for internal variables that are booleans.
69823         * lib/regexec.c (re_search_internal, check_matching,
69824         proceed_next_node):
69825         (set_regs, build_sifted_states, sift_states_bkref):
69826         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
69827         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
69828         (find_collation_sequence_value):
69829         Likewise.
69830         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
69831         (re_node_set_compare):
69832         Return bool, not int. All callers changed.
69833         * lib/regexec.c (check_halt_node_context, check_dst_limits):
69834         (build_trtable, check_node_accept): Likewise.
69835         * lib/regex_internal.h: Include stdbool.h.
69836
69837         Fix bugs uncovered when converting to bool.
69838         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
69839         failure instead of charging ahead blindly.
69840         * lib/regex_internal.c (register_state): Likewise.
69841         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
69842         for freeing internal storage.
69843         (group_nodes_into_DFA_states): Use unsigned int, not int, for
69844         bitset pieces used as boolean, to avoid undefined behavior
69845         on hosts that do int overflow checking.
69846
69847 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69848
69849         * config/srclist.txt: Add glibc bugs 1285-1287.
69850
69851 2005-09-01  Jim Meyering  <jim@meyering.net>
69852
69853         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
69854         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
69855         Require gl_STAT_MACROS, too.
69856
69857 2005-09-01  Bruno Haible  <bruno@clisp.org>
69858
69859         * gnulib-tool (import): In the first-use case, provide defaults.
69860
69861 2005-09-01  Bruno Haible  <bruno@clisp.org>
69862
69863         * gnulib-tool (func_import): Remove the .tmp files.
69864
69865 2005-09-01  Bruno Haible  <bruno@clisp.org>
69866
69867         * gnulib-tool (func_import): Fix handling of symbolic links.
69868
69869 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69870
69871         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
69872         old glibc regex code mishandles strings longer than 2**31 bytes.
69873         This patch fixes this when the regex code is used in gnulib
69874         (i.e., outside glibc).
69875
69876         This patch should not affect the use of the regex code inside
69877         glibc.  No doubt this problem also needs to be handled for glibc
69878         as well, but the result will be an incompatible change to the
69879         glibc ABI, and the old ABI will have to be supported too.  That
69880         can be the the subject for another patch.
69881
69882         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
69883         governing whether the rest of this patch is active.  By default,
69884         the macro is disabled and the patch has no effect.
69885         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
69886         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
69887         (struct re_pattern_buffer, re_search, re_search_2, re_match):
69888         (re_match_2, re_set_registers): Use the new types.
69889         * lib/regex_internal.h (Idx, re_hashval_t): New types.
69890         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
69891         New macros.
69892         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
69893         (re_string_context_at, bin_tree_t, re_dfastate_t):
69894         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
69895         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
69896         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
69897         (re_string_char_size_at, re_string_wchar_at):
69898         (re_string_elem_size_at):
69899         Use the new types and macros to port to 64-bit hosts.
69900         Use unsigned types for internal values, so that the code
69901         mostly works even for arrays larger than SSIZE_MAX.
69902         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
69903         (search_duplicated_node, calc_eclosure_iter, fetch_number):
69904         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
69905         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
69906         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
69907         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
69908         (calc_inveclosure, parse_dup_op, build_range_exp):
69909         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
69910         (fetch_number, create_token_tree, mark_opt_subexp):
69911         Likewise.
69912         * lib/regex_internal.c (re_string_construct_common,
69913         create_ci_newstate):
69914         (create_cd_newstate, re_string_allocate, re_string_construct):
69915         (re_string_realloc_buffers, build_wcs_upper_buffer):
69916         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
69917         (re_string_reconstruct, re_string_peek_byte_case):
69918         (re_string_fetch_byte_case, re_string_context_at):
69919         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
69920         (re_node_set_init_copy, re_node_set_add_intersect):
69921         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
69922         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
69923         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
69924         (re_acquire_state, re_acquire_state_context, register_state):
69925         Likewise.
69926         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
69927         search_cur_bkref_entry):
69928         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
69929         (re_search_internal, re_search_2_stub, re_search_stub)
69930         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
69931         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
69932         (update_cur_sifted_state, check_dst_limits):
69933         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
69934         (check_subexp_limits, sift_states_bkref, merge_state_array):
69935         (check_subexp_matching_top, get_subexp, get_subexp_sub):
69936         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
69937         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
69938         (expand_bkref_cache, check_node_accept_bytes):
69939         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
69940         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
69941         (acquire_init_state_context, check_halt_node_context):
69942         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
69943         (sift_states_backward, clean_state_log_if_needed):
69944         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
69945         (find_recover_state, transit_state_sb, transit_state_mb):
69946         (transit_state_bkref, build_trtable, match_ctx_clean):
69947         Likewise.
69948         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
69949         to work around an assumption that REG_MISSING is negative.
69950
69951         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
69952         (seek_collating_symbol_entry) [defined _LIBC]:
69953         (lookup_collation_sequence_value) [defined _LIBC]:
69954         (build_range_exp, build_collating_symbol) [defined _LIBC]:
69955         Use prototypes rather than old-style function definitions.
69956         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
69957         (transit_state_sb) [0]:
69958         (find_collation_sequence_value) [defined _LIBC]: Likewise.
69959
69960         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
69961         rm_eo.
69962
69963         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
69964         (optimize_subexps, lower_subexp):
69965         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
69966         since the signed shift might overflow.  Use 1u<<31 instead.
69967         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
69968         Likewise.
69969         * lib/regexec.c (check_dst_limits_calc_pos_1,
69970         check_subexp_matching_top): Likewise.
69971
69972         * lib/regcomp.c (optimize_subexps, lower_subexp):
69973         Use CHAR_BIT rather than 8, for clarity.
69974         * lib/regexec.c (check_dst_limits_calc_pos_1):
69975         (check_subexp_matching_top): Likewise.
69976         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
69977         have to worry about portability issues when shifting it left.
69978         Remove no-longer-needed test for table_size > 0.
69979         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
69980         in a word, as the resulting behavior is undefined.
69981         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
69982         in one case, a <= should have been an <, and in another case the
69983         whole test was missing.
69984         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
69985         the standard name CHAR_BIT.
69986         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
69987         this is not true on one's complement and signed-magnitude hosts.
69988
69989         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
69990         next_last_offset.
69991         (struct re_dfa_t): Remove unused member states_alloc.
69992         * lib/regcomp.c (init_dfa): Don't initialize unused members.
69993
69994 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69995
69996         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
69997         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
69998         and large-file glibc and in 32-bit large-file Solaris.
69999
70000 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
70001
70002         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
70003         lengths fit in regoff_t; this isn't true if regoff_t is the same
70004         width as size_t.
70005         * lib/regex.c (re_search_internal): 5th arg is LAST_START
70006         (= START + RANGE) instead of RANGE.  This avoids overflow
70007         problems when regoff_t is the same width as size_t.
70008         All callers changed.
70009         (re_search_2_stub): Check for overflow when adding the
70010         sizes of the two strings.
70011         (re_search_stub): Check for overflow when adding START
70012         to RANGE; if it occurs, substitute the extreme value.
70013
70014 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
70015
70016         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
70017
70018 2005-08-31  Jim Meyering  <jim@meyering.net>
70019
70020         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
70021         a pointer-to-const.
70022         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
70023         (register_state): Likewise.
70024         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
70025         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
70026         (group_nodes_into_DFAstates): Likewise.
70027
70028 2005-08-31  Jim Meyering  <jim@meyering.net>
70029
70030         * check-module: Add a FIXME comment.
70031
70032 2005-08-31  Eric Blake  <ebb9@byu.net>
70033
70034         * modules/unistd-safer (Files): Add unistd--.h.
70035         * modules/stdio-safer (Files): Add stdio--.h.
70036
70037 2005-08-31  Derek Price  <derek@ximbiot.com>
70038
70039         * lib/getdelim.c (getdelim): Return EOF on EOF.
70040         Reported by Larry Jones <lawrence.jones@ugs.com>.
70041
70042 2005-08-31  Bruno Haible  <bruno@clisp.org>
70043
70044         Avoid unnecessary diffs in the generated lib/Makefile.am.
70045         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
70046         the generated files.
70047         (func_import): Don't set cmd.
70048
70049 2005-08-31  Bruno Haible  <bruno@clisp.org>
70050
70051         * lib/strstr.c: Include <stddef.h>, for NULL.
70052         * lib/strcasestr.c: Likewise.
70053         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
70054
70055 2005-08-31  Bruno Haible  <bruno@clisp.org>
70056
70057         * gnulib-tool: New option --macro-prefix.
70058         (func_import): Use macro_prefix.
70059         (import): Handle option --macro-prefix.
70060
70061 2005-08-31  Bruno Haible  <bruno@clisp.org>
70062
70063         * gnulib-tool (import): Rename most ac_* variables to cached_*.
70064         Also use new variables cached_lgpl, cached_libtool.
70065
70066 2005-08-31  Bruno Haible  <bruno@clisp.org>
70067
70068         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
70069         always instantiating them.
70070
70071 2005-08-31  Bruno Haible  <bruno@clisp.org>
70072
70073         * gnulib-tool (func_import): Read the previous cached settings
70074         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
70075         earlier added by gnulib but are now dropped. Warn when a gnulib file
70076         overwrites a non-gnulib file.
70077
70078 2005-08-31  Bruno Haible  <bruno@clisp.org>
70079
70080         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
70081         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
70082         projects that don't keep autogenerated files in CVS. Put into
70083         actioncmd only the specified modules, not the transitive closure.
70084
70085 2005-08-31  Bruno Haible  <bruno@clisp.org>
70086
70087         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
70088         Create directories that shall be filled.
70089         (import): Don't look for gl_* macros in configure.ac. Recurse across
70090         all directories containing a gnulib-cache.m4 files, if meaningful.
70091
70092 2005-08-31  Bruno Haible  <bruno@clisp.org>
70093
70094         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
70095         (import): Set seen_libtool when we see gl_LIBTOOL.
70096
70097 2005-08-31  Bruno Haible  <bruno@clisp.org>
70098
70099         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
70100         declaration macro definitions from generated gnulib.m4.
70101
70102 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
70103
70104         * lib/iconvme.h: Add prototype for iconv_alloc.
70105
70106 2005-08-29  Simon Josefsson  <jas@extundo.com>
70107
70108         * lib/iconvme.c: Fix errno.
70109
70110 2005-08-29  Bruno Haible  <bruno@clisp.org>
70111
70112         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
70113         that it works when the directory contains spaces.
70114
70115 2005-08-29  Bruno Haible  <bruno@clisp.org>
70116
70117         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
70118
70119 2005-08-29  Bruno Haible  <bruno@clisp.org>
70120
70121         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
70122         Emit more advice.
70123
70124 2005-08-29  Bruno Haible  <bruno@clisp.org>
70125         and Stepan Kasal  <kasal@ucw.cz>
70126
70127         * check-module: If more parameters are given, check each of them
70128         separately; add more exceptions, as noted by Jim Meyering.
70129         (check_module): New procedure.
70130         (%exempt_header): Now contains all exceptions.
70131
70132 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
70133
70134         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
70135
70136 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
70137
70138         * lib/iconvme.c: Split iconv_string into iconv_alloc.
70139
70140 2005-08-28  Bruno Haible  <bruno@clisp.org>
70141
70142         * m4/gnulib-tool.m4: New file.
70143
70144 2005-08-27  Jim Meyering  <jim@meyering.net>
70145
70146         * modules/unistd-safer (Files): Add pipe-safer.c.
70147         * modules/fcntl-safer (Files): Add creat-safer.c.
70148
70149 2005-08-27  Jim Meyering  <jim@meyering.net>
70150
70151         * m4/stdlib-safer.m4: New file.  From coreutils.
70152         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
70153         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
70154         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
70155         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
70156         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
70157
70158 2005-08-27  Jim Meyering  <jim@meyering.net>
70159
70160         * lib/fopen-safer.c: Merge minor changes from coreutils.
70161         * lib/dup-safer.c: Likewise.
70162         * lib/fd-safer.c: Likewise.
70163
70164         Merge from coreutils.
70165         * lib/stdio--.h: New file.
70166         * lib/stdlib--.h: New file.
70167         * lib/mkstemp-safer.c: New file.
70168
70169         GNU tar needs these.
70170         * lib/pipe-safer.c: New file.
70171         * lib/creat-safer.c: New file.
70172         * lib/fcntl--.h (creat): Define to creat_safer.
70173         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
70174         * lib/unistd--.h (pipe): Define to pipe_safer.
70175         * lib/unistd-safer.h: Declare pipe_safer.
70176
70177 2005-08-26  Simon Josefsson  <jas@extundo.com>
70178
70179         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
70180         Haible <bruno@clisp.org>.
70181
70182 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
70183
70184         * lib/regex_internal.h: Remove all references to
70185         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
70186         or better.
70187         (bitset_not, bitset_merge, bitset_not_merge):
70188         (bitset_mask, re_string_allocate, re_string_construct):
70189         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
70190         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
70191         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
70192         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
70193         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
70194         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
70195         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
70196         (re_acquire_state_context):
70197         Remove unnecessary forward decls.
70198         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
70199         Put __attribute at function definition,
70200         now that the function decl has been removed.
70201         * lib/regex_internal.c (re_string_peek_byte_case):
70202         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
70203         Likewise.
70204
70205 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
70206
70207         * m4/regex.m4: Add AC_PREREQ(2.50).
70208         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
70209
70210 2005-08-25  Simon Josefsson  <jas@extundo.com>
70211
70212         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
70213         __fsetlocking.
70214
70215 2005-08-25  Simon Josefsson  <jas@extundo.com>
70216
70217         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
70218         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
70219         GLIBC specific code.
70220
70221 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70222
70223         Make regex safe for g++.  This fixes one real bug (an "err"
70224         that should have been "*err").  g++ problem reported by
70225         Sam Steingold.
70226         * lib/regex_internal.h (re_calloc): New macro, consistent with
70227         re_malloc etc.  All callers of calloc changed to use re_calloc.
70228         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
70229         not int.  All callers changed.
70230         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
70231         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
70232         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
70233         (find_recover_state): Change "err" to "*err"; this fixes what
70234         appears to be a real bug.
70235         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
70236         versus int.
70237
70238 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70239
70240         * modules/regex (Depends-on): Add malloc, since the code
70241         assumes that !malloc(0) means failure.
70242
70243 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70244
70245         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
70246
70247         alloca modernization/simplification for regex.
70248         * lib/regex.c: Remove portability cruft for alloca.  This no longer
70249         needs to be at the start of the file, and can be moved into
70250         regex_internal.h and simplified.
70251         * lib/regex_internal.h: Include <alloca.h>.
70252         (__libc_use_alloca) [!defined _LIBC]: New macro.
70253         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
70254         now works outside glibc.
70255
70256 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70257
70258         * config/srclist.txt: Add glibc bugs 1241, 1245.
70259
70260 2005-08-25  Jim Meyering  <jim@meyering.net>
70261
70262         * lib/open-safer.c: Include <config.h>.
70263         Otherwise, we'd lose LARGEFILE support in any file using
70264         e.g. "fcntl--.h"
70265
70266 2005-08-25  Bruno Haible  <bruno@clisp.org>
70267
70268         * m4/minmax.m4: Require autoconf 2.52.
70269         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
70270         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
70271         alternatives of translit over the alphabet.
70272         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
70273
70274 2005-08-24  Simon Josefsson  <jas@extundo.com>
70275
70276         * tests/test-getpass.c: New file.
70277
70278 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
70279
70280         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
70281         for GNU regex features.
70282
70283 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
70284
70285         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
70286         * lib/regex.h (regerror): Likewise.
70287
70288         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
70289         requires this.  (The code never needed it.)
70290
70291         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
70292         All uses of recently-renamed identifiers changed to use the new,
70293         POSIX-compliant names.  The code will build and run just fine
70294         without these changes, but it's better to eat our own dog food
70295         and use the standard-conforming names.
70296
70297         * lib/regex.h: Fix a multitude of POSIX name space violations.
70298         These changes have an effect only for programs that define
70299         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
70300         do not change anything for programs compiled in the normal way.
70301         Also, there is no effect on the ABI.
70302
70303         (_REGEX_SOURCE): New macro.
70304         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
70305         defined and _GNU_SOURCE is not; this fixes a name space violation.
70306
70307         Rename the following macros to obey POSIX requirements.
70308         The old names are still visible as macros if _REGEX_SOURCE is defined.
70309         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
70310         RE_BACKSLASH_ESCAPE_IN_LISTS.
70311         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
70312         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
70313         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
70314         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
70315         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
70316         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
70317         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
70318         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
70319         (REG_INTERVALS): renamed from RE_INTERVALS.
70320         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
70321         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
70322         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
70323         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
70324         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
70325         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
70326         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
70327         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
70328         RE_UNMATCHED_RIGHT_PAREN_ORD.
70329         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
70330         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
70331         (REG_DEBUG): renamed from RE_DEBUG.
70332         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
70333         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
70334         unusual, since we can't clash with the POSIX REG_ICASE.
70335         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
70336         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
70337         (REG_NO_SUB): renamed from RE_NO_SUB.
70338         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
70339         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
70340         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
70341         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
70342         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
70343         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
70344         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
70345         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
70346         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
70347         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
70348         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
70349         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
70350         RE_SYNTAX_POSIX_MINIMAL_BASIC.
70351         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
70352         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
70353         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
70354         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
70355         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
70356         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
70357         (REG_FIXED): Renamed from REGS_FIXED.
70358         (REG_NREGS): Renamed from RE_NREGS.
70359
70360         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
70361         of other REG_* macros, since POSIX says the user is allowed to
70362         #undef these macros selectively.
70363
70364         (reg_errcode_t): Update comment stating what other tables need
70365         to be consistent.
70366
70367         Rename the following enum values to obey POSIX requirements.
70368         The old names are still visible as macros.
70369         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
70370         is not defined, since GNU is supposed to be a superset of POSIX as
70371         much as possible, and since we want reg_errcode_t to be a signed
70372         type for implementation consistency.
70373         (_REG_NOERROR): Renamed from REG_NOERROR.
70374         (_REG_NOMATCH): Renamed from REG_NOMATCH.
70375         (_REG_BADPAT): Renamed from REG_BADPAT.
70376         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
70377         (_REG_ECTYPE): Renamed from REG_ECTYPE.
70378         (_REG_EESCAPE): Renamed from REG_EESCAPE.
70379         (_REG_ESUBREG): Renamed from REG_ESUBREG.
70380         (_REG_EBRACK): Renamed from REG_EBRACK.
70381         (_REG_EPAREN): Renamed from REG_EPAREN.
70382         (_REG_EBRACE): Renamed from REG_EBRACE.
70383         (_REG_BADBR): Renamed from REG_BADBR.
70384         (_REG_ERANGE): Renamed from REG_ERANGE.
70385         (_REG_ESPACE): Renamed from REG_ESPACE.
70386         (_REG_BADRPT): Renamed from REG_BADRPT.
70387         (_REG_EEND): Renamed from REG_EEND.
70388         (_REG_ESIZE): Renamed from REG_ESIZE.
70389         (_REG_ERPAREN): Renamed from REG_ERPAREN.
70390         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
70391         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
70392         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
70393         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
70394
70395         (_REG_RE_NAME, _REG_RM_NAME): New macros.
70396         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
70397         changed.  But support the old name if the new one is not defined
70398         and if _REGEX_SOURCE.
70399
70400         Change the following member names in struct re_pattern_buffer.
70401         The old names are still supported if !_REGEX_SOURCE.
70402         The new names are always supported, regardless of _REGEX_SOURCE.
70403         (re_buffer): Renamed from buffer.
70404         (re_allocated): Renamed from allocated.
70405         (re_used): Renamed from used.
70406         (re_syntax): Renamed from syntax.
70407         (re_fastmap): Renamed from fastmap.
70408         (re_translate): Renamed from translate.
70409         (re_can_be_null): Renamed from can_be_null.
70410         (re_regs_allocated): Renamed from regs_allocated.
70411         (re_fastmap_accurate): Renamed from fastmap_accurate.
70412         (re_no_sub): Renamed from no_sub.
70413         (re_not_bol): Renamed from not_bol.
70414         (re_not_eol): Renamed from not_eol.
70415         (re_newline_anchor): Renamed from newline_anchor.
70416
70417         Change the following member names in struct re_registers.
70418         The old names are still supported if !_REGEX_SOURCE.
70419         The new names are always supported, regardless of _REGEX_SOURCE.
70420         (rm_num_regs): Renamed from num_regs.
70421         (rm_start): Renamed from start.
70422         (rm_end): Renamed from end.
70423
70424         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
70425         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
70426         Prepend __ to parameter names.
70427
70428         Undo yesterday's changes.
70429
70430 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
70431
70432         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
70433         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
70434         lib/regex.c.
70435
70436 2005-08-24  Jim Meyering  <jim@meyering.net>
70437
70438         Sync from coreutils.
70439         * m4/fcntl-safer.m4: New file.
70440
70441         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
70442         and object files for this module.
70443
70444 2005-08-24  Jim Meyering  <jim@meyering.net>
70445
70446         Sync from coreutils.
70447         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
70448
70449 2005-08-24  Jim Meyering  <jim@meyering.net>
70450
70451         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
70452         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
70453
70454 2005-08-24  Jim Meyering  <jim@meyering.net>
70455
70456         * modules/fcntl-safer: New module.
70457         * modules/fts (Depends-on): Add fcntl-safer.
70458         * MODULES.html.sh (File descriptor based Input/Output):
70459         Add fcntl-safer.
70460
70461 2005-08-24  Bruno Haible  <bruno@clisp.org>
70462
70463         Support for unit test modules.
70464         * modules/README: Mention tests modules.
70465         * modules/TEMPLATE-TESTS: New file.
70466         * gnulib-tool: New options --extract-tests-module, --with-tests and
70467         --tests-base (unused for the moment).
70468         (testsbase, inctests): New variables.
70469         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
70470         (func_verify_module): Exclude TEMPLATE-TESTS.
70471         (func_verify_nontests_module, func_verify_tests_module): New functions.
70472         (func_get_dependencies): Add implicit dependency for tests modules.
70473         (func_get_tests_module): New function.
70474         (func_modules_transitive_closure): When --with-tests was specified,
70475         include the unit tests as well, unless explicitly avoided.
70476         (func_emit_lib_Makefile_am): Ignore the tests modules here.
70477         (func_emit_tests_Makefile_am): New function.
70478         (func_create_testdir): When --with-tests was specified, emit a
70479         tests/ directory.
70480         * MODULES.html.sh (Future developments): Update.
70481
70482 2005-08-24  Bruno Haible  <bruno@clisp.org>
70483
70484         * modules/tls-tests: New file.
70485         * tests/test-tls.c: New file, from GNU gettext.
70486
70487 2005-08-24  Bruno Haible  <bruno@clisp.org>
70488
70489         * modules/lock-tests: New file.
70490         * tests/test-lock.c: New file, from GNU gettext.
70491
70492 2005-08-24  Bruno Haible  <bruno@clisp.org>
70493
70494         * lib/lock.h: Add multiple inclusion guard.
70495         * lib/tls.h: Add multiple inclusion guard.
70496
70497 2005-08-24  Bruno Haible  <bruno@clisp.org>
70498
70499         * gnulib-tool: Add support for the --aux-dir option to
70500         --create-testdir, --create-megatestdir, --test, --megatest.
70501         (func_create_testdir, func_create_megatestdir): Optionally emit a
70502         AC_CONFIG_AUX_DIR directive.
70503         (create-testdir, create-megatestdir, test, megatest): Provide a
70504         default value for $auxdir.
70505
70506 2005-08-24  Bruno Haible  <bruno@clisp.org>
70507
70508         * gnulib-tool (import): Use compound statement instead of subshell
70509         where possible.
70510
70511 2005-08-24  Bruno Haible  <bruno@clisp.org>
70512
70513         * gnulib-tool (import): Change --aux-dir default to "build-aux".
70514
70515 2005-08-24  Bruno Haible  <bruno@clisp.org>
70516
70517         * gnulib-tool (func_version): Update.
70518
70519 2005-08-24  Bruno Haible  <bruno@clisp.org>
70520
70521         * gnulib-tool (func_import, func_create_testdir,
70522         func_create_megatestdir): Quote all autoconf macro arguments.
70523
70524 2005-08-24  Bruno Haible  <bruno@clisp.org>
70525
70526         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
70527         option --force, because --force causes the aclocal.m4 of each
70528         subdirectory to be newer than the corresponding config.h.in.
70529
70530 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
70531
70532         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
70533         All contents moved to gl_REGEX.
70534         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
70535         assume that it does.
70536
70537 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
70538
70539         * lib/regex.h (REG_NOSYS)
70540         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
70541         Define, since POSIX requires it as of 2001.
70542         (_REG_ENOSYS)
70543         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
70544         New private symbol, used to keep the enum signed in all cases.
70545         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
70546         Youngman in
70547         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
70548
70549         * lib/regex_internal.c (re_string_skip_chars, register_state):
70550         (calc_state_hash):
70551         Remove forward decls; no longer needed now that we use prototypes.
70552         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
70553         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
70554         (clean_state_log_if_needed): Likewise.
70555
70556 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
70557
70558         * config/srclist.txt: Add glibc bugs 1231-1233.
70559
70560 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70561
70562         Fix problems reported by Sam Steingold in
70563         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
70564         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
70565         assumed that reg_errcode_t is a signed type, which is not
70566         necessarily true if _XOPEN_SOURCE is not defined.
70567         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
70568         since some compilers warn about it otherwise.
70569
70570 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70571
70572         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
70573         (init_word_char, create_initial_state, duplicate_node_closure):
70574         (fetch_token, peek_token_bracket, build_range_exp):
70575         (build_collating_symbol): Remove forward decls; no longer needed
70576         now that we use prototypes.
70577
70578         * lib/regcomp.c:
70579         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
70580         (re_compile_fastmap_iter, regcomp, regerror, regfree):
70581         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
70582         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
70583         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
70584         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
70585         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
70586         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
70587         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
70588         (build_range_exp, build_collating_symbol, parse_bracket_exp):
70589         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
70590         (build_charclass, build_charclass_op, fetch_number, create_tree):
70591         (create_token_tree, mark_opt_subexp, duplicate_tree):
70592         Use prototypes rather than old-style definitions.
70593
70594         * lib/regex_internal.c:
70595         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
70596         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
70597         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
70598         (re_string_reconstruct, re_string_peek_byte_case):
70599         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
70600         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
70601         (re_node_set_init_copy, re_node_set_add_intersect):
70602         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
70603         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
70604         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
70605         (re_acquire_state, re_acquire_state_context, register_state):
70606         (create_ci_newstate, create_cd_newstate, free_state):
70607         Likewise.
70608         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
70609         re_search_2):
70610         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
70611         (re_search_internal, prune_impossible_nodes):
70612         (acquire_init_state_context, check_matching, static):
70613         (check_halt_node_context, check_halt_state_context, proceed_next_node):
70614         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
70615         (update_regs, sift_states_backward, build_sifted_states):
70616         (clean_state_log_if_needed, merge_state_array):
70617         (update_cur_sifted_state, add_epsilon_src_nodes):
70618         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
70619         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
70620         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
70621         (find_recover_state, check_subexp_matching_top, transit_state_mb):
70622         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
70623         (check_arrival, check_arrival_add_next_nodes):
70624         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
70625         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
70626         (check_node_accept_bytes, check_node_accept, extend_buffers):
70627         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
70628         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
70629         (sift_ctx_init):
70630         Likewise.
70631
70632         * lib/regex_internal.h:
70633         (re_string_allocate, re_string_construct, re_string_reconstruct):
70634         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
70635         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
70636         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
70637         (re_string_context_at, re_string_peek_byte_case):
70638         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
70639         is defined, since we now use prototypes always.
70640
70641         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
70642         C89 or better.  All uses removed.
70643
70644 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70645
70646         * config/srclist.txt: Add glibc bugs 1220-1227.
70647
70648 2005-08-20  Jim Meyering  <jim@meyering.net>
70649
70650         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
70651         of unused local, dfa.
70652
70653 2005-08-20  Bruno Haible  <bruno@clisp.org>
70654
70655         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
70656
70657 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70658
70659         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
70660         (re_node_set_insert_last, re_dfa_add_node):
70661         Rename local variables to avoid GCC shadowing warnings.
70662
70663 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70664
70665         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
70666         [defined lint]: Suppress bogus uninitialized-variable warnings.
70667
70668         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
70669         and let the caller return REG_ESPACE if out of space.  This
70670         removes an uninitialied-variable warning with GCC 4.0.1, and also
70671         avoids taking the address of a local variable.  All callers
70672         changed.
70673
70674 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70675
70676         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
70677         $LIBCSRC/posix/regexec.c.
70678         Add glibc bug 1217 for regcomp.c.
70679
70680 2005-08-19  Jim Meyering  <jim@meyering.net>
70681
70682         * lib/regexec.c (proceed_next_node): Redo local variables to
70683         avoid GCC shadowing warnings.
70684
70685 2005-08-18  Bruno Haible  <bruno@clisp.org>
70686
70687         * lib/strstr.c (strstr): Fix return value in multibyte case.
70688         * lib/strcasestr.c (strcasestr): Likewise.
70689
70690 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
70691
70692         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
70693
70694 2005-08-17  Jim Meyering  <jim@meyering.net>
70695
70696         Make the %s format (seconds since the epoch) work for a negative
70697         number and when used with a zero-padded field width, e.g. %015s.
70698
70699         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
70700         label so that it precedes the code to set `digits'.  Otherwise,
70701         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
70702         print `00-22'.  Now, it prints `-0022', as it should.
70703
70704 2005-08-17  Bruno Haible  <bruno@clisp.org>
70705
70706         * modules/strstr (Files): Add m4/mbrtowc.m4.
70707         (Depends-on): Add mbuiter.
70708
70709 2005-08-17  Bruno Haible  <bruno@clisp.org>
70710
70711         * modules/strcasestr: New file.
70712         * MODULES.html.sh (String handling, based on ANSI C 89): Add
70713         strcasestr.
70714
70715 2005-08-17  Bruno Haible  <bruno@clisp.org>
70716
70717         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
70718
70719 2005-08-17  Bruno Haible  <bruno@clisp.org>
70720
70721         * modules/mbuiter: New file.
70722         * MODULES.html.sh (Extended multibyte and wide character utilities):
70723         Add mbuiter.
70724
70725 2005-08-17  Bruno Haible  <bruno@clisp.org>
70726
70727         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
70728         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
70729
70730 2005-08-17  Bruno Haible  <bruno@clisp.org>
70731
70732         * m4/strcasestr.m4: New file.
70733
70734 2005-08-17  Bruno Haible  <bruno@clisp.org>
70735
70736         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
70737         * lib/strstr.c: Completely rewritten, with multibyte locale support.
70738
70739 2005-08-17  Bruno Haible  <bruno@clisp.org>
70740
70741         * lib/strcasestr.h: New file.
70742         * lib/strcasestr.c: New file.
70743
70744 2005-08-17  Bruno Haible  <bruno@clisp.org>
70745
70746         * lib/strcasecmp.c: Use mbuiter.h.
70747
70748 2005-08-17  Bruno Haible  <bruno@clisp.org>
70749
70750         * lib/mbuiter.h: New file.
70751
70752 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
70753
70754         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
70755         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
70756         and gl_GETOPT are both invoked via different paths (as happens
70757         with GNU tar CVS because it uses both argp and getopt), the former
70758         wins.
70759
70760 2005-08-16  Bruno Haible  <bruno@clisp.org>
70761
70762         * modules/tls: New file.
70763         * MODULES.html.sh (Multithreading): Add tls.
70764
70765 2005-08-16  Bruno Haible  <bruno@clisp.org>
70766
70767         * modules/strnlen1: New file.
70768         * MODULES.html.sh (String handling): Add strnlen1.
70769
70770 2005-08-16  Bruno Haible  <bruno@clisp.org>
70771
70772         * modules/strcase (Files): Add m4/mbrtowc.m4.
70773         (Depends-on): Add strnlen1, mbchar.
70774
70775 2005-08-16  Bruno Haible  <bruno@clisp.org>
70776
70777         * modules/mbiter: New file.
70778         * MODULES.html.sh (Extended multibyte and wide character utilities):
70779         Add mbiter.
70780
70781 2005-08-16  Bruno Haible  <bruno@clisp.org>
70782
70783         * modules/mbfile: New file.
70784         * MODULES.html.sh (Extended multibyte and wide character utilities):
70785         Add mbfile.
70786
70787 2005-08-16  Bruno Haible  <bruno@clisp.org>
70788
70789         * modules/mbchar: New file.
70790         * MODULES.html.sh (Extended multibyte and wide character utilities):
70791         New section.
70792
70793 2005-08-16  Bruno Haible  <bruno@clisp.org>
70794
70795         * m4/tls.m4: New file, from GNU gettext.
70796
70797 2005-08-16  Bruno Haible  <bruno@clisp.org>
70798
70799         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
70800         always.
70801         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
70802
70803 2005-08-16  Bruno Haible  <bruno@clisp.org>
70804
70805         * m4/mbiter.m4: New file.
70806
70807 2005-08-16  Bruno Haible  <bruno@clisp.org>
70808
70809         * m4/mbfile.m4: New file.
70810
70811 2005-08-16  Bruno Haible  <bruno@clisp.org>
70812
70813         * m4/mbchar.m4: New file.
70814
70815 2005-08-16  Bruno Haible  <bruno@clisp.org>
70816
70817         * lib/tls.h: New file, from GNU gettext.
70818         * lib/tls.c: New file, from GNU gettext.
70819
70820 2005-08-16  Bruno Haible  <bruno@clisp.org>
70821
70822         * lib/strnlen1.h: New file.
70823         * lib/strnlen1.c: New file.
70824
70825 2005-08-16  Bruno Haible  <bruno@clisp.org>
70826
70827         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
70828         (mbi_init): Update.
70829         (mbi_avail, mbi_advance): Let the iteration end before the terminating
70830         NUL byte, not after it.
70831
70832 2005-08-16  Bruno Haible  <bruno@clisp.org>
70833
70834         * lib/strcase.h (strcasecmp): Add note in comments.
70835         * lib/strncasecmp.c: Use code from strcasecmp.c.
70836         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
70837         (strcasecmp): Work correctly in multibyte locales.
70838
70839 2005-08-16  Bruno Haible  <bruno@clisp.org>
70840
70841         * lib/mbiter.h: New file.
70842
70843 2005-08-16  Bruno Haible  <bruno@clisp.org>
70844
70845         * lib/mbfile.h: New file.
70846
70847 2005-08-16  Bruno Haible  <bruno@clisp.org>
70848
70849         * lib/mbchar.h: New file.
70850         * lib/mbchar.c: New file.
70851
70852 2005-08-16  Bruno Haible  <bruno@clisp.org>
70853
70854         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
70855         the valid ones. Makes the comparison operations transitive:
70856         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
70857         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
70858
70859 2005-08-15  Simon Josefsson  <jas@extundo.com>
70860
70861         * modules/ssize_t (License): Change to 'unlimited'.
70862
70863         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
70864
70865 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70866
70867         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
70868         Add comments for each pending glibc patch.
70869
70870 2005-08-15  Bruno Haible  <bruno@clisp.org>
70871
70872         * lib/regex.h (__restrict_arr): Don't define to __restrict if
70873         __cplusplus is defined.
70874
70875 2005-08-14  Jim Meyering  <jim@meyering.net>
70876
70877         Sync from coreutils.
70878
70879         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
70880         Use the hash-table-based cycle-detection code not just when
70881         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
70882         Reported by James Youngman in
70883         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
70884         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
70885         FTS_TIGHT_CYCLE_CHECK.
70886         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
70887         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
70888         once again.
70889         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
70890         * lib/fts.c (fd_safer): Remove decl.
70891         Include fcntl--.h rather than unistd-safer.h
70892         (fts_safe_changedir): Don't call fd_safer; no longer needed
70893         now that we include fcntl--.h.
70894
70895 2005-08-12  Simon Josefsson  <jas@extundo.com>
70896
70897         * modules/getndelim2: Use ssize_t module.
70898         * modules/getnline: Likewise.
70899         * modules/safe-read: Likewise.
70900         * modules/xreadlink: Likewise.
70901
70902         * modules/ssize_t: New file.
70903
70904 2005-08-12  Simon Josefsson  <jas@extundo.com>
70905
70906         * m4/readline.m4: Look for termcap, curses or ncurses if required.
70907
70908 2005-08-12  Simon Josefsson  <jas@extundo.com>
70909
70910         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70911         ssize_t.
70912
70913 2005-08-12  Simon Josefsson  <jas@extundo.com>
70914
70915         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
70916         readline, getdelim and check_version.
70917         (Support for systems lacking ISO C 99: Sizes of integer types):
70918         Add size_max.
70919
70920 2005-08-12  Bruno Haible  <bruno@clisp.org>
70921
70922         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
70923
70924 2005-08-11  Simon Josefsson  <jas@extundo.com>
70925
70926         * modules/readline: New file.
70927
70928         * modules/strnlen (Files): Add strnlen.h.
70929
70930 2005-08-11  Simon Josefsson  <jas@extundo.com>
70931
70932         * m4/readline.m4: New file.
70933
70934 2005-08-11  Simon Josefsson  <jas@extundo.com>
70935
70936         * lib/readline.h, readline.c: New file.
70937
70938 2005-08-11  Simon Josefsson  <jas@extundo.com>
70939
70940         * doc/gnulib.texi (Initial import, Finishing touches): Mention
70941         gl_AVOID.
70942
70943 2005-08-11  Bruno Haible  <bruno@clisp.org>
70944
70945         * lib/strnlen.h (strnlen): Change parameter name to match comment.
70946
70947 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
70948
70949         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
70950
70951 2005-08-10  Simon Josefsson  <jas@extundo.com>
70952
70953         * tests/test-iconvme.c: New file.
70954
70955 2005-08-10  Simon Josefsson  <jas@extundo.com>
70956
70957         * m4/strnlen.m4: New file.
70958
70959         * m4/strndup.m4: Don't check for strnlen declaration, done in
70960         strnlen.m4.
70961
70962 2005-08-10  Simon Josefsson  <jas@extundo.com>
70963
70964         * lib/strndup.c: Use strnlen.h.
70965
70966         * lib/strnlen.h: New file.
70967
70968 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
70969
70970         * README: Typos.
70971
70972 2005-08-02  Simon Josefsson  <jas@extundo.com>
70973
70974         * modules/readline: New file.
70975
70976 2005-08-02  Simon Josefsson  <jas@extundo.com>
70977
70978         * modules/getdelim: New file.
70979
70980         * modules/getline: Rewrite, don't use getndelim2.
70981
70982 2005-08-02  Simon Josefsson  <jas@extundo.com>
70983
70984         * m4/getline.m4: Separate out getdelim stuff into separate module.
70985
70986         * m4/getdelim.m4: New file.
70987
70988 2005-08-02  Simon Josefsson  <jas@extundo.com>
70989
70990         * lib/getline.h, getline.c: Rewrite.
70991
70992         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
70993
70994 2005-07-31  Bruno Haible  <bruno@clisp.org>
70995
70996         * lib/lock.h (gl_lock_initializer): New macro.
70997         (gl_lock_define_initialized): Use it.
70998         (gl_rwlock_initializer): New macro.
70999         (gl_rwlock_define_initialized): Use it.
71000         (gl_recursive_lock_initializer): New macro.
71001         (gl_recursive_lock_define_initialized): Use it.
71002
71003 2005-07-30  Karl Berry  <karl@gnu.org>
71004
71005         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
71006         Report from Ben Pfaff, regarding getopt.
71007
71008 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
71009
71010         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
71011         normal way.
71012         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
71013         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
71014         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
71015         (gl_GETOPT): Use the new macros.  Most of the implementation
71016         is moved to the new macros.  This is for programs like Emacs
71017         that don't want all the functionality of gl_GETOPT.
71018
71019 2005-07-26  Bruno Haible  <bruno@clisp.org>
71020
71021         * m4/lock.m4: Update from GNU gettext.
71022
71023 2005-07-26  Bruno Haible  <bruno@clisp.org>
71024
71025         * lib/lock.h: Update from GNU gettext.
71026         * lib/lock.c: Update from GNU gettext.
71027
71028 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
71029
71030         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
71031         obsolescent AC_TRY_RUN.  Include the default includes files, for
71032         'exit'.
71033
71034 2005-07-24  Bruno Haible  <bruno@clisp.org>
71035
71036         * modules/visibility: New file.
71037         * MODULES.html.sh (Misc): Add visibility.
71038
71039 2005-07-24  Bruno Haible  <bruno@clisp.org>
71040
71041         * m4/visibility.m4: New file.
71042
71043 2005-07-24  Bruno Haible  <bruno@clisp.org>
71044
71045         * doc/visibility.texi: New file.
71046
71047 2005-07-22  Bruno Haible  <bruno@clisp.org>
71048
71049         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
71050         $(ALLOCA_H), redundant through BUILT_SOURCES.
71051         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
71052         redundant through BUILT_SOURCES.
71053         * modules/byteswap (Makefile.am): Remove explicit dependency on
71054         $(BYTESWAP_H), redundant through BUILT_SOURCES.
71055         * modules/fnmatch (Makefile.am): Remove explicit dependency on
71056         $(FNMATCH_H), redundant through BUILT_SOURCES.
71057         * modules/getopt (Makefile.am): Remove explicit dependency on
71058         $(GETOPT_H), redundant through BUILT_SOURCES.
71059         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
71060         redundant through BUILT_SOURCES.
71061         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
71062         redundant through BUILT_SOURCES.
71063         * modules/stdbool (Makefile.am): Remove explicit dependency on
71064         $(STDBOOL_H), redundant through BUILT_SOURCES.
71065         * modules/stdint (Makefile.am): Remove explicit dependency on
71066         $(STDINT_H), redundant through BUILT_SOURCES.
71067         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
71068         Remove explicit dependency on $(SYSEXITS_H).
71069         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
71070
71071 2005-07-18  Simon Josefsson  <jas@extundo.com>
71072
71073         * lib/check-version.c (check_version): Accept identical versions too.
71074
71075 2005-07-18  Bruno Haible  <bruno@clisp.org>
71076
71077         * modules/lock: New file.
71078         * MODULES.html.sh (Multithreading): New section.
71079
71080 2005-07-18  Bruno Haible  <bruno@clisp.org>
71081
71082         * m4/lock.m4: New file, from GNU gettext.
71083
71084 2005-07-18  Bruno Haible  <bruno@clisp.org>
71085
71086         * lib/lock.h: New file, from GNU gettext.
71087         * lib/lock.c: New file, from GNU gettext.
71088
71089 2005-07-18  Bruno Haible  <bruno@clisp.org>
71090
71091         * lib/lock.h (gl_once_t): New type.
71092         (gl_once_define, gl_once): New macros.
71093         * lib/lock.c (fresh_once): New variable.
71094         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
71095         functions.
71096
71097 2005-07-16  Simon Josefsson  <jas@extundo.com>
71098
71099         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
71100         workaround, suggested by Bruno.
71101
71102 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
71103
71104         * modules/xalloc (Depends-on): Add xalloc-die.
71105         * modules/xvasprintf (Depends-on): Add xalloc-die.
71106
71107 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
71108
71109         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
71110         with a minor change.
71111
71112 2005-07-15  Bruno Haible  <bruno@clisp.org>
71113
71114         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
71115         When using lib/poll.c, define poll as rpl_poll.
71116
71117 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
71118
71119         * modules/argp (Depends-on): Remove unlocked-io.
71120
71121 2005-07-14  Derek Price  <derek@ximbiot.com>
71122
71123         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
71124         for glob symlink bug.
71125
71126 2005-07-14  Bruno Haible  <bruno@clisp.org>
71127
71128         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
71129         Instead, test for *_unlocked function declarations directly.
71130
71131 2005-07-11  Simon Josefsson  <jas@extundo.com>
71132
71133         * modules/size_max: New file.
71134
71135         * modules/xsize: Depend on size_max module for size_max.m4.
71136
71137 2005-07-11  Simon Josefsson  <jas@extundo.com>
71138
71139         * lib/size_max.h: New file.
71140
71141 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
71142
71143         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
71144         copyright symbol and the year.
71145         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
71146         (version_etc_va): Use parameterized copyright notice.
71147         Reword to conform to the current GNU coding standards.
71148
71149 2005-07-11  Karl Berry  <karl@gnu.org>
71150
71151         * doc/gnulib.texi (Quoting): new node.
71152         (Initial import): more info, from Patrice.
71153
71154 2005-07-11  Bruno Haible  <bruno@clisp.org>
71155
71156         * gnulib-tool (func_usage): Document option --avoid.
71157         (Command line options): Handle --avoid.
71158         (func_acceptable): New function.
71159         (func_modules_transitive_closure): Use it.
71160
71161 2005-07-11  Bruno Haible  <bruno@clisp.org>
71162
71163         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
71164         Reported by Jim Meyering.
71165
71166 2005-07-10  Bruno Haible  <bruno@clisp.org>
71167
71168         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
71169         Needed when size_t is smaller than 'unsigned int'.
71170         Reported by Paul Eggert.
71171
71172 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
71173
71174         * modules/argp (Depends-on): Add unlocked-io
71175
71176 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
71177
71178         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
71179         block of defines.
71180
71181 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
71182
71183         * config/srclist.txt: Comment out regcomp.c, since we have a porting
71184         fix now.
71185
71186 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
71187         and Paul Eggert  <eggert@cs.ucla.edu>
71188
71189         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
71190         in wint_t, not wchar_t.  Remove now-unnecessary cast.
71191
71192 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
71193
71194         * modules/regex (Files): Add lib/regex_internal.c,
71195         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
71196         (Depends-on): Add extensions.
71197         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
71198
71199 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
71200
71201         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
71202         pathconf.
71203         * m4/same.m4 (gl_SAME): Likewise.
71204         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
71205
71206         * m4/regex.m4: Adjust to new libc regex implementation.
71207         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
71208         all the .c and .h parts of (the new) regex.
71209         Quote the m4 stuff better.
71210         Check for RE_ICASE bug of old gnulib.
71211         Check for REG_STARTEND of recent libc.
71212         Rename local variables from jm_* to gl_*.
71213         Quote operand of "test -f".
71214         Say "recent enough" version of libc, not "version 2".
71215         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
71216         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
71217         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
71218         Remove check for btowc, isascii.
71219         Require AM_LANGINFO_CODESET.
71220
71221 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
71222
71223         * lib/regex.c, regex.h: Sync from libc.
71224         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
71225         * lib/regexec.c:
71226         New files, synced from libc, except that regex_internal.h
71227         currently has a small porting fix.
71228
71229 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
71230
71231         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
71232         regex_internal.c, regexec.c.
71233         Add regex_internal.h too, but as a comment, since the libc version
71234         is currently broken in gnulib mode.
71235
71236 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71237
71238         Support programs like Emacs that use gnulib but not gettext.
71239         * MODULES.html.sh (Internationalization functions): Add gettext-h.
71240         * modules/gettext-h: New file.
71241         * modules/gettext (Files): Remove lib/gettext.h.
71242         (Depends-on): Add gettext-h.
71243         (Makefile.am): Remove lib_SOURCES.
71244         * modules/argmatch, modules/c-stack, modules/closeout:
71245         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
71246         * modules/execute, modules/file-type, modules/getaddrinfo:
71247         * modules/getopt, modules/human, modules/javacomp:
71248         * modules/javaexec, modules/mkdir-p, modules/obstack:
71249         * modules/openat, modules/pagealign_alloc, modules/pipe:
71250         * modules/quotearg, modules/regex, modules/rpmatch:
71251         * modules/unicodeio, modules/userspec, modules/version-etc:
71252         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
71253         * modules/xsetenv:
71254         Depend on gettext-h, not gettext.
71255
71256 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
71257
71258         * gnulib-tool (func_import): Add support for 'public domain' license.
71259         * modules/alloca, modules/atexit, modules/memmove:
71260         Now public domain, not GPL.
71261         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
71262         * modules/realloc, modules/strerror, modules/strtod:
71263         Now LGPL, not GPL.
71264
71265 2005-07-05  Bruno Haible  <bruno@clisp.org>
71266
71267         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
71268         autoconf CVS. Needed for mingw.
71269
71270 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71271
71272         Remove the dependency of the strftime module on the tzset module.
71273         * modules/strftime (Depends-on): Remove dependency on tzset.
71274
71275 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71276
71277         Remove the dependency of the strftime module on the tzset module.
71278         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
71279         gl_FUNC_TZSET_CLOBBER.
71280
71281 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71282
71283         Remove the dependency of the strftime module on the tzset module.
71284         * lib/strftime.c (my_strftime)
71285         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
71286         Copy the input structure, to work around some of the bug with
71287         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
71288         Solaris releases, you should also use the tzset module, but we won't
71289         require it as a dependency any more since we don't want LGPLed code
71290         to depend on GPLed code.
71291
71292 2005-07-02  Jim Meyering  <jim@meyering.net>
71293
71294         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
71295         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
71296         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
71297         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
71298
71299 2005-07-02  Jim Meyering  <jim@meyering.net>
71300
71301         * lib/backupfile.c (backup_args): Change a `0' to NULL.
71302
71303 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71304
71305         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
71306         declares only 'struct timespec;' (!).
71307
71308 2005-07-01  Jim Meyering  <jim@meyering.net>
71309
71310         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
71311         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
71312         * lib/save-cwd.c, tempname.c:
71313         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
71314         and don't include <sys/file.h>).
71315
71316 2005-06-29  Jim Meyering  <jim@meyering.net>
71317
71318         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
71319         type name.  Use the variable name instead.
71320         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
71321         Likewise.
71322
71323 2005-06-28  Simon Josefsson  <jas@extundo.com>
71324
71325         * modules/check-version (Files): Add check-version.m4.
71326
71327 2005-06-28  Simon Josefsson  <jas@extundo.com>
71328
71329         * m4/check-version.m4: New file, suggested by Jim Meyering
71330         <jim@meyering.net>.
71331
71332 2005-06-28  Simon Josefsson  <jas@extundo.com>
71333
71334         * lib/check-version.h, lib/check-version.c: New files.
71335
71336 2005-06-28  Simon Josefsson  <jas@extundo.com>
71337
71338         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
71339         collision with global variable.  Better indentation.  Don't
71340         increment buffer pointer beyond buffer end.  Based on comments
71341         from Paul Eggert <eggert@cs.ucla.edu>.
71342
71343         * lib/base64.h: Indent.
71344
71345 2005-06-28  Simon Josefsson  <jas@extundo.com>
71346
71347         * doc/gnulib.texi (Library version handling): New section.
71348
71349 2005-06-28  Jim Meyering  <jim@meyering.net>
71350
71351         * check-module (find_included_lib_files): Hard-code another
71352         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
71353         but modules/fts-lgpl (correctly) does not list those files.
71354
71355         * modules/canonicalize (Files): Add lib/pathmax.h.
71356
71357 2005-06-25  Simon Josefsson  <jas@extundo.com>
71358
71359         * modules/check-version: New file.
71360
71361 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
71362
71363         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
71364         initializer of struct addrinfo, as an indication that we don't
71365         care how many members the structure has.
71366
71367 2005-06-24  Derek Price  <derek@ximbiot.com>
71368         and Bruno Haible  <bruno@clisp.org>
71369
71370         Remove stat module & update lstat.
71371         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
71372         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
71373         * m4/stat.m4: Remove this file.
71374
71375 2005-06-24  Derek Price  <derek@ximbiot.com>
71376         and Bruno Haible  <bruno@clisp.org>
71377
71378         Remove stat module & update lstat.
71379         * lib/stat.c: Remove this file...
71380         (slash_aware_lstat): ...moving this content and its support...
71381         * lib/lstat.c (rpl_lstat): ...into here.
71382         * lib/lstat.h: New file.
71383
71384 2005-06-24  Derek Price  <derek@ximbiot.com>
71385         and Bruno Haible  <bruno@clisp.org>
71386
71387         Remove stat module & update lstat.
71388         * config/srclist.txt (libc sources): Remove stat.
71389
71390 2005-06-24  Derek Price  <derek@ximbiot.com>
71391         and Bruno Haible  <bruno@clisp.org>
71392
71393         Remove stat module & update lstat.
71394         * MODULES.html.sh (stat): Remove.
71395         * MODULES.html: Regenerated.
71396         * modules/lstat (Description): Correct function name.
71397         (Files): Add "lstat.h".
71398         (Depends-on): Remove stat, add xalloc, stat-macros.
71399         * modules/stat: Remove this file.
71400         (Include): Add "lstat.h", remove <sys/stat.h>.
71401
71402 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
71403
71404         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
71405         (ranged_convert): Don't save conversion in a temporary struct.
71406         This causes a warning with GCC 4.0.0, and anyway in the typical
71407         case it's not worth the extra 100 bytes or so of code.
71408         (ranged_convert, __mktime_internal): When calling a function via a
71409         pointer P, use P () rather than (*P) (), as we now assume C89 or
71410         better.
71411
71412 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71413
71414         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
71415         "who -r" failed to give output.  Problem reported by Tim Waugh.
71416
71417         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
71418         (xcalloc): Use it to avoid needless tests.
71419         Problem reported by Jim Meyering.
71420
71421 2005-06-20  Derek Price  <derek@ximbiot.com>
71422
71423         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
71424         unnecessary for Autoconfs > 2.59c.
71425
71426 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71427
71428         * lib/argp.h (__option_is_short): Check upper limit of
71429         __key. Isprint() requires its argument to have the value
71430         of an unsigned char or EOF.
71431
71432 2005-06-16  Jim Meyering  <jim@meyering.net>
71433
71434         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
71435         when either N or S is zero.
71436
71437 2005-06-16  Derek Price  <derek@ximbiot.com>
71438
71439         * m4/bison.m4: Declare YACC & YFLAGS precious.
71440
71441 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
71442
71443         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
71444         multibyte string or pattern, fall back on unibyte matching.
71445         Problem reported by James Youngman.
71446
71447 2005-06-08  Bruno Haible  <bruno@clisp.org>
71448
71449         * modules/csharpcomp: New file.
71450         * MODULES.html.sh (C#): Add csharpcomp.
71451
71452 2005-06-08  Bruno Haible  <bruno@clisp.org>
71453
71454         * m4/csharpcomp.m4: New file, from GNU gettext.
71455
71456 2005-06-08  Bruno Haible  <bruno@clisp.org>
71457
71458         * lib/csharpcomp.h: New file, from GNU gettext.
71459         * lib/csharpcomp.c: New file, from GNU gettext.
71460         * lib/csharpcomp.sh.in: New file, from GNU gettext.
71461
71462 2005-06-08  Bruno Haible  <bruno@clisp.org>
71463
71464         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
71465         warning on mingw.
71466
71467 2005-06-07  Derek Price  <derek@ximbiot.com>
71468
71469         Sync from CVS.
71470         * lib/glob_.h: Indent nested #ifdef.
71471
71472 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
71473
71474         Sync from coreutils.
71475         Use "file name" when talking about file names, instead of "filename"
71476         or "path", as per the GNU coding standards.
71477         * lib/mkdir-p.c: Renamed from makepath.c.
71478         (make_dir_parents): Renamed from make_path.  All callers changed.
71479         * lib/mkdir-p.h: Likewise.  All includers changed.
71480         * lib/filenamecat.c: Renamed from path-concat.c.
71481         (file_name_concat): Renamed from path_concat.  All callers changed.
71482         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
71483         * lib/filenamecat.h: Likewise.  All includers changed.
71484         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
71485         in comments or local variable names.
71486         * lib/basename.c: Likewise.
71487         * lib/canonicalize.c, canonicalize.h: Likewise.
71488         * lib/dirname.c, dirname.h: Likewise.
71489         * lib/euidaccess.c: Likewise.
71490         * lib/exclude.c: Likewise
71491         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
71492         * lib/fsusage.c, fsuage.h: Likewise.
71493         * lib/fts.c, fts_.h: Likewise.
71494         * lib/getcwd.c: Likewise.
71495         * lib/getloadavg.c: Likewise.
71496         * lib/mkstemp.c: Likewise.
71497         * lib/mountlist.c, mountlist.h: Likewise.
71498         * lib/openat.c, openat.h: Likewise.
71499         * lib/readlink-stub.c: Likewise.
71500         * lib/readutmp.c, readutmp.h: Likewise.
71501         * lib/rename.c: Likewise.
71502         * lib/rmdir.c: Likewise.
71503         * lib/same.c: Likewise.
71504         * lib/savedir.c: Likewise.
71505         * lib/stripslash.c: Likewise.
71506         * lib/tempname.c: Likewise.
71507         * lib/xreadlink.c: Likewise.
71508         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
71509         All uses changed.
71510         * lib/exclude.h: Likewise.
71511
71512         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
71513         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
71514         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
71515         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
71516         * lib/pathmax.h: Include <limits.h> unconditionally, since other
71517         files have been getting away with it for years (MORE/BSD 4.3
71518         is extinct now).
71519         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
71520         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
71521
71522         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
71523         Define to 256, not 255, as per modern POSIX.
71524
71525 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
71526
71527         Sync from coreutils.
71528         Use "file name" when talking about file names, instead of "filename"
71529         or "path", as per the GNU coding standards.
71530         * MODULES.html.sh: mkdir-p renamed from makepath.
71531         filenamecat renamed from path-concat.
71532         * modules/filenamecat: Renamed from modules/path-concat.
71533         (Files): filenamecat.h and filenamecat.c renamed from
71534         path-concat.h and path-concat.c.
71535         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
71536         (Include): filenamecat.h, not path-concat.h.
71537         * modules/mkdir-p: Renamed from modules/makepath.
71538         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
71539         makepath.c.
71540         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
71541         (Include): mkdir-p.h, not makepath.h.
71542
71543 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
71544
71545         Sync from coreutils.
71546         * m4/mkdir-p.m4: Renamed from makepath.m4.
71547         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
71548         Rename files from makepath.c to mkdir-p.c, and from
71549         makepath.h to mkdir-p.h.
71550         * m4/filenamecat.m4: Renamed from path-concat.m4.
71551         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
71552         Rename files from path-concat.c to filenamecat.c,
71553         and from path-concat.h to filenamecat.h.
71554         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
71555         "file name" in local variables or comments.
71556         * m4/rename.m4: Likewise.
71557
71558 2005-06-01  Bruno Haible  <bruno@clisp.org>
71559
71560         * modules/csharpexec: New file.
71561         * MODULES.html.sh (C#): New section.
71562
71563 2005-06-01  Bruno Haible  <bruno@clisp.org>
71564
71565         * m4/csharp.m4: New file, from GNU gettext.
71566         * m4/csharpexec.m4: New file, from GNU gettext.
71567
71568 2005-06-01  Bruno Haible  <bruno@clisp.org>
71569
71570         * lib/csharpexec.h: New file, from GNU gettext.
71571         * lib/csharpexec.c: New file, from GNU gettext.
71572         * lib/csharpexec.sh.in: New file, from GNU gettext.
71573
71574 2005-05-31  Derek Price  <derek@ximbiot.com>
71575             Paul Eggert  <eggert@cs.ucla.edu>
71576
71577         Sync from cvs.
71578         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
71579
71580 2005-05-31  Derek Price  <derek@ximbiot.com>
71581             Paul Eggert  <eggert@cs.ucla.edu>
71582
71583         Sync from cvs.
71584         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
71585
71586 2005-05-29  Derek Price  <derek@ximbiot.com>
71587
71588         * config/srclist.txt (glob_.h, glob.c): Add these files.
71589
71590 2005-05-29  Derek Price  <derek@ximbiot.com>
71591
71592         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
71593         * modules/glob: New file.
71594         * modules/getlogin_r: Add link to POSIX spec in description.
71595
71596 2005-05-29  Derek Price  <derek@ximbiot.com>
71597             Paul Eggert  <eggert@cs.ucla.edu>
71598
71599         * m4/glob.m4: New file.
71600
71601 2005-05-29  Derek Price  <derek@ximbiot.com>
71602             Paul Eggert  <eggert@cs.ucla.edu>
71603
71604         * lib/glob_.h, lib/glob.c: New files.
71605
71606 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
71607
71608         * modules/fts (Files): Remove m4/inttypes-pri.m4.
71609         * modules/fts-lgpl (Depends-on): Remove gettext.
71610
71611 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
71612
71613         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
71614         and don't require gt_INTTYPES_PRI.
71615
71616 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
71617
71618         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
71619
71620         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
71621         the configuration hassle isn't worth it.
71622         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
71623         (LONGEST_MODIFIER, PRIuMAX): Remove.
71624
71625 2005-05-27  Bruno Haible  <bruno@clisp.org>
71626
71627         * lib/getlogin_r.h: Remove second include of <stddef.h>.
71628
71629 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
71630
71631         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
71632         _POSIX_PTHREAD_SEMANTICS for Solaris.
71633
71634 2005-05-25  Derek Price  <derek@ximbiot.com>
71635
71636         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
71637
71638 2005-05-25  Derek Price  <derek@ximbiot.com>
71639             Paul Eggert  <eggert@cs.ucla.edu>
71640
71641         * modules/getlogin_r, m4/getlogin_r.m4: New files.
71642         * lib/getlogin_r.c, getlogin_r.h: New files.
71643
71644 2005-05-25  Bruno Haible  <bruno@clisp.org>
71645             Derek Price  <derek@ximbiot.com>
71646
71647         * lib/getlogin_r.h: Simplify API documentation.
71648
71649 2005-05-23  Derek Price  <derek@ximbiot.com>
71650
71651         * modules/minmax (Files): Add m4/minmax.m4.
71652         (configure.ac): Add gl_MINMAX.
71653
71654 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
71655
71656         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
71657         so that unistd-safer.h (GPL'ed code) need not be included.
71658
71659 2005-05-22  Bruno Haible  <bruno@clisp.org>
71660
71661         * m4/minmax.m4: New file.
71662         Based on a patch by Derek Price <derek@ximbiot.com>.
71663
71664 2005-05-22  Bruno Haible  <bruno@clisp.org>
71665
71666         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
71667         (INT64_MIN): Fix definition.
71668         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
71669
71670         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
71671         NEED_SIGNED_INT_TYPES.
71672
71673         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
71674         HAVE_SYSTEM_INTTYPES.
71675
71676 2005-05-22  Bruno Haible  <bruno@clisp.org>
71677
71678         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
71679         Also include <sys/param.h> if it defines MIN, MAX.
71680         Based on a patch by Derek Price <derek@ximbiot.com>.
71681
71682 2005-05-21  Jim Meyering  <jim@meyering.net>
71683
71684         * modules/fts (Files): Add m4/inttypes-pri.m4.
71685         (Depends-on): Add lstat and remove gettext.  Alphabetize.
71686
71687 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
71688
71689         New fts module.
71690         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
71691         (setup_dir, free_dir): New functions.
71692         (enter_dir, leave_dir): Define trivial
71693         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
71694         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
71695         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
71696         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
71697         Move to fts-cycle.c.
71698         (fts_open): Use setup_dir.
71699         (fts_close): Use free_dir.
71700         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
71701         This adds a label and some gotos, but the alternatives were messier.
71702         Check for memory allocation failure when entering a dir.
71703         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
71704         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
71705         (FTS): New member fts_cycle, that is a union that contains the
71706         old active_dir_ht and cycle_state.  All uses changed to mention
71707         fts_cycle.ht and fts_cycle.state.
71708         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
71709         fts.c, with the following changes:
71710         (setup_dir, free_dir): New functions.
71711         (enter_dir): Now returns bool.  Return true if successful, false
71712         if memory exhausted.  All callers changed.
71713         Do not bother partly cleaning up on
71714         memory allocation failure; that is free_dir's job.
71715         However, free ad if hash_insert fails, to avoid memory leak.
71716         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
71717         fts->fts_options to see which union member to use.
71718
71719 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
71720
71721         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
71722         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
71723
71724 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
71725
71726         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
71727
71728 2005-05-20  Jim Meyering  <jim@meyering.net>
71729
71730         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
71731         Now a macro, to pacify GCC.
71732
71733 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
71734
71735         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
71736         of -1.
71737
71738 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
71739
71740         * lib/chown.c (rpl_chown): Return -1 on failure.
71741
71742 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
71743
71744         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
71745         Don't check for stddef.h.
71746         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
71747         don't use its results.
71748         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
71749         since we include them unconditionally.  Don't require
71750         AM_STDBOOL_H, since stdbool is a prerequisite.
71751         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
71752         since we assume C89 or better.
71753         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
71754         as we don't use their results.
71755         Don't check for fchdir, memmove, memset, strrchr, as we use
71756         them unconditionally.
71757         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
71758         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
71759
71760 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
71761
71762         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
71763         Include <stddef.h> unconditionally, since we assume C89 now.
71764         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
71765         * lib/fts.c: Include fts_.h first, to check interface.
71766         Do not include intprops.h; no longer needed.
71767         Include cycle-check.h and hash.h, since fts_.h no longer does.
71768         Remove unnecessary casts of closedir to void.
71769         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
71770         decide whether to decrement nlinks.
71771         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
71772         (FTS): Use struct hash_table * instead of Hash_table, so that
71773         we no longer need to include hash.h here.
71774
71775 2005-05-18  Jim Meyering  <jim@meyering.net>
71776
71777         * modules/dirfd (License): Change to LGPL.  Most of the code
71778         is already in the public domain.
71779
71780 2005-05-18  Jim Meyering  <jim@meyering.net>
71781
71782         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
71783         Reported by Yoann Vandoorselaere.
71784
71785 2005-05-17  Jim Meyering  <jim@meyering.net>
71786
71787         * m4/fts.m4: New file, from coreutils.
71788
71789 2005-05-17  Jim Meyering  <jim@meyering.net>
71790
71791         * lib/fts.c, lib/fts_.h: New files, from coreutils.
71792
71793 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71794
71795         Sync from coreutils.
71796         * m4/unlinkdir.m4: New file.
71797
71798 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71799
71800         Sync from coreutils.
71801         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
71802         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
71803         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
71804         White space changes only.
71805         * lib/makepath.c (make_path): Port to hosts where leading "//" is
71806         special.
71807         * lib/yesno.c: Include getline.h, not ctype.h.
71808         (yesno): Don't remove leading white space; POSIX doesn't allow it.
71809         Use getline to remove arbitrary restriction on response length.
71810
71811 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71812
71813         * config/srclist-update: Spell out "Street" in FSF postal
71814         mail address; this is the style the FSF seems to prefer.
71815
71816         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
71817         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
71818         this updates FSF postal mail address.
71819
71820         Sync from coreutils.
71821         * modules/unlinkdir: New file.
71822         * modules/yesno (Depends-on): Add getline.
71823         * MODULES.html.sh (File system functions): Add unlinkdir.
71824
71825 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
71826
71827         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
71828         lib/strsep.h:
71829         Change the initial comment to refer to GPL, not LGPL.
71830         gnulib-tool will change it to LGPL as needed.
71831
71832         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
71833         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
71834         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
71835         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
71836         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
71837         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
71838         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
71839         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
71840         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
71841         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
71842         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
71843         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
71844         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
71845         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
71846         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
71847         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
71848         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
71849         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
71850         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
71851         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
71852         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
71853         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
71854         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
71855         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
71856         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
71857         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
71858         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
71859         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
71860         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
71861         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
71862         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
71863         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
71864         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
71865         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
71866         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
71867         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
71868         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
71869         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
71870         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
71871         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
71872         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
71873         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
71874         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
71875         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
71876         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
71877         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
71878         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
71879         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
71880         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
71881         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
71882         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
71883         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
71884         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
71885         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
71886         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
71887         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
71888         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
71889         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
71890         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
71891         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
71892         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
71893         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
71894         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
71895         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
71896         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
71897         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
71898         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
71899         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
71900         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
71901         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
71902         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
71903         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
71904         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
71905         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
71906         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
71907         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
71908         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
71909         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
71910         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
71911         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
71912         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
71913         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
71914         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
71915         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
71916         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
71917         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
71918         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
71919         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
71920         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
71921         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
71922         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
71923         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
71924         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
71925         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
71926         lib/yesno.c, lib/yesno.h:
71927         Update FSF postal mail address.
71928
71929 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
71930
71931         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
71932         tests/test-memmem.c, tests/test-stpncpy.c:
71933         Update FSF postal mail address.
71934
71935 2005-05-13  Bruno Haible  <bruno@clisp.org>
71936
71937         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
71938         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
71939         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
71940         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
71941         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
71942         Add support for 64-bit integers in the MSVC compiler.
71943
71944 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71945
71946         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
71947
71948 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
71949
71950         * gnulib-tool (func_import): Sort and uniquify recommended includes.
71951
71952 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
71953
71954         * doc/getdate.texi (General date syntax): Don't say that date
71955         date --iso-8601=ns generates acceptable dates; it doesn't yet.
71956         Problem reported by Nic Ferrier.
71957
71958 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71959
71960         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
71961         specified in ai_socktype. Fix invalid ai_protocol
71962         check. ai_protocol is usually set to 0 or depending on
71963         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
71964         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
71965         ai_socktype / ai_protocol in the returned addrinfo structure.
71966
71967 2005-05-10  Simon Josefsson  <jas@extundo.com>
71968
71969         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
71970         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
71971
71972 2005-05-10  Karl Berry  <karl@gnu.org>
71973
71974         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
71975         (from http://www.gnu.org/licenses).
71976         * doc/COPYING.LIB: also rename to COPYING.LESSER.
71977         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
71978         fdl.texi suffices.
71979
71980 2005-05-10  Karl Berry  <karl@gnu.org>
71981
71982         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
71983         (COPYING.DOC): remove.
71984
71985         * config/srclist-update: new FSF address.
71986
71987 2005-05-10  Derek Price  <derek@ximbiot.com>
71988
71989         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
71990         possible.
71991
71992 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71993             Bruno Haible  <bruno@clisp.org>
71994
71995         * modules/inet_ntop: New file.
71996         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71997         inet_ntop.
71998
71999 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72000             Bruno Haible  <bruno@clisp.org>
72001
72002         * m4/inet_ntop.m4: New file.
72003
72004 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72005             Bruno Haible  <bruno@clisp.org>
72006
72007         * lib/inet_ntop.h: New file.
72008         * lib/inet_ntop.c: New file, from glibc with modifications.
72009
72010 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
72011
72012         * modules/time_r (License): Change to LGPL.
72013         * modules/extensions (License): Change to LGPL.  Actually,
72014         the license is more permissive than that, but currently gnulib-tool
72015         doesn't know how to handle more-permissive licenses.
72016
72017         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
72018         Problem reported by Dave Love.
72019
72020 2005-05-08  Jim Meyering  <jim@meyering.net>
72021
72022         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
72023         blank.
72024
72025 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
72026
72027         * modules/argmatch (Depends-on): Add stdbool.
72028         * modules/backupfile (Depends-on): Likewise.
72029         * modules/chdir-long (Depends-on): Likewise.
72030         * modules/closeout (Depends-on): Likewise.
72031         * modules/cycle-check (Depends-on): Likewise.
72032         * modules/dirname (Depends-on): Likewise.
72033         * modules/fnmatch (Depends-on): Likewise.
72034         * modules/fsusage (Depends-on): Likewise.
72035         * modules/fwriteerror (Depends-on): Likewise.
72036         * modules/getcwd (Depends-on): Likewise.
72037         * modules/getloadavg (Depends-on): Likewise.
72038         * modules/hard-locale (Depends-on): Likewise.
72039         * modules/makepath (Depends-on): Likewise.
72040         * modules/mountlist (Depends-on): Likewise.
72041         * modules/nanosleep (Depends-on): Likewise.
72042         * modules/posixtm (Depends-on): Likewise.
72043         * modules/quotearg (Depends-on): Likewise.
72044         * modules/readtokens (Depends-on): Likewise.
72045         * modules/readtokens0 (Depends-on): Likewise.
72046         * modules/readutmp (Depends-on): Likewise.
72047         * modules/save-cwd (Depends-on): Likewise.
72048         * modules/strftime (Depends-on): Likewise.
72049         * modules/userspec (Depends-on): Likewise.
72050         * modules/utimecmp (Depends-on): Likewise.
72051         * modules/xgetcwd (Depends-on): Likewise.
72052         * modules/xnanosleep (Depends-on): Likewise.
72053         * modules/xstrtod (Depends-on): Likewise.
72054         * modules/yesno (Depends-on): Likewise.
72055
72056 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
72057
72058         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
72059         needless checks.
72060
72061 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
72062
72063         Merge from coreutils.  Among other things,
72064         add bulletproofing for cases where stdin, stdout, or stderr are closed.
72065         * lib/fd-safer.c: New file.
72066         * lib/fcntl-safer.h, open-safer.c: Remove.
72067         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
72068         * lib/dup-safer.c: Include unistd-safer.h first.
72069         Don't include errno.h.
72070         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
72071         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
72072         * lib/file-type.c: Rely on file-type.h change.
72073         * lib/getloadavg.c: Include unistd-safer.h.
72074         (getloadavg): Use safer open.
72075         * lib/getusershell.c: Include "stdio-safer.h".
72076         (getusershell): Use safer fopen.
72077         * lib/long-options.c (long_options): Use NULL rather than 0.
72078         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
72079         'free'.
72080         * lib/modechange.c: Likewise.
72081         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
72082         (MODE_DONE): New constant.
72083         (struct mode_change): Remove 'next' member.
72084         (make_node_op_equals): New function; like the old one of the
72085         same name, except it allocates an array.
72086         (mode_compile, mode_create_from_ref): Use it.
72087         (mode_compile): Allocate result as an array, not a linked list.
72088         Parse octal string ourself, so that we catch mistakes like "+0".
72089         (mode_adjust): Arg is an array, not a linked list.
72090         * lib/modechange.c: Include stat-macros.h, xalloc.h.
72091         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
72092         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
72093         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
72094         Remove.  This is now stat-macros.h's job.
72095         (talloc): Remove.  All callers replaced by xalloc, so that
72096         our invokers don't have to worry about reporting memory failures.
72097         (make_node_op_equals): Remove.
72098         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
72099         New constants.
72100         (struct mode_change): Moved here from modechange.h.
72101         (mode_append_entry): Remove.
72102         (mode_compile): Remove MASKED_OPS arg, since it encouraged
72103         apps to have incorrect behavior.  Use simpler algorithm for head
72104         and tail.  Don't futz with umask; that's now the job of mode_adjust.
72105         Detect more invalid usages rather than having somewhat-random behavior.
72106         Don't insert an "a=" action, as that leads to incorrect behavior.
72107         (mode_compile, mode_create_from_ref): Return NULL on error instead
72108         of an enum, since now there's only one way to have an error.  All
72109         callers changed.
72110         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
72111         at the correct time.  Simplify calculation of "+u" and its ilk.
72112         Don't mishandle "+X".
72113         (mode_free): Remove "register" and localize decls.
72114         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
72115         (struct mode_change): Move to modechange.c; callers don't
72116         need to see this stuff.
72117         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
72118         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
72119         (mode_change, mode_adjust): Reflect the new signatures noted above.
72120         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
72121         that might redefine system include files.
72122         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
72123         (my_usleep): Use NULL rather than (void *) 0.
72124         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
72125         Use siginterrupt to specify that system calls should be interrupted.
72126         (rpl_nanosleep): Move initialization of suspended closer to call of
72127         my_usleep.
72128         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
72129         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
72130         (desirable_utmp_entry): New function.
72131         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
72132         using x2nrealloc, to simplify logic.
72133         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
72134         size calculation.  Do not assume utmp file is a regular file.
72135         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
72136         (READ_UTMP_CHECK_PIDS): New constant.
72137         * lib/save-cwd.c: Include unistd-safer.h.
72138         (save_cwd): Use fd_safer.
72139         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
72140         [!_LIBC] Include "stat-macros.h" instead.
72141         * lib/unistd-safer.h (fd_safer): New decl.
72142
72143 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
72144
72145         * modules/getloadavg (Depends-on): Add unistd-safer.
72146         * modules/getusershell (Depends-on): Add stdio-safer.
72147         * modules/lstat (Depends-on): Remove xalloc.
72148         * modules/mkstemp (Depends-on): Add stat-macros.
72149         * modules/modechange (Depends-on): Remove xstrtol.
72150         Add stat-macros, xalloc.
72151         * modules/save-cwd (Depends-on): Add unistd-safer.
72152         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
72153         * modules/unistd-safer (Files): Add lib/fd-safer.c
72154         (Makefile.am): Remove lib_SOURCES.
72155
72156         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
72157         Remove fcntl-safer; unistd-safer supersedes it.
72158
72159 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
72160
72161         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
72162         AC_HEADER_STAT.
72163         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
72164         (gl_PREREQ_CHOWN): Remove.
72165         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
72166         it.  Don't require AC_HEADER_STAT.
72167         (gl_PREREQ_LSTAT): Remove.
72168         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
72169         Don't require AC_HEADER_STAT.
72170         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
72171         (gl_PREREQ_RMDIR): Remove.
72172         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
72173         mention stat-macros.h or AC_HEADER_STAT, since we'll make
72174         the stat-macros module a prerequisite.
72175         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
72176         * m4/filemode.m4 (gl_FILEMODE): Likewise.
72177         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
72178         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
72179         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
72180         variable names.
72181         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
72182         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
72183         variable prefixes.
72184         * m4/fcntl-safer.m4: Remove.
72185         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
72186         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
72187         Invoke gl_PREREQ_FD_SAFER.
72188         (gl_PREREQ_FD_SAFER): New macro.
72189         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
72190         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
72191         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
72192         Remove duplicate call to AC_LIBOBJ(readutmp).
72193         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
72194
72195         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
72196         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
72197
72198 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
72199
72200         * MODULES.html.sh (Misc): Add byteswap.
72201
72202 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
72203
72204         * modules/getcwd (Depends-on): Add extensions.
72205         * modules/openat (Depends-on): Likewise.
72206
72207 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
72208
72209         * modules/byteswap: New file.
72210
72211 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
72212
72213         * m4/byteswap.m4: New file.
72214
72215 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
72216
72217         * lib/byteswap_.h: New file.
72218
72219 2005-04-25  Karl Berry  <karl@gnu.org>
72220
72221         * m4/gettext.m4: Update from GNU gettext 0.14.4.
72222
72223 2005-04-25  Albert Chin  <china@thewrittenword.com>
72224
72225         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
72226         Toolkit C bug.
72227
72228 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
72229
72230         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
72231         (func_ln_if_changed): Remove forcibly for no error message
72232         in case file does not exist.
72233
72234 2005-04-19  Simon Josefsson  <jas@extundo.com>
72235
72236         * gnulib-tool (Options): Make --symlink mean --symbolic.
72237
72238 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
72239
72240         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
72241
72242 2005-04-16  Simon Josefsson  <jas@extundo.com>
72243
72244         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
72245
72246 2005-04-15  Simon Josefsson  <jas@extundo.com>
72247
72248         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
72249
72250 2005-04-15  Simon Josefsson  <jas@extundo.com>
72251
72252         * gnulib-tool: Rename --symlink to --symbolic.
72253
72254 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
72255
72256         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
72257         symbolic links to files instead of copying/moving.  Add --aux-dir,
72258         specifying directory relative --dir where auxiliary build tools
72259         are placed.
72260
72261 2005-04-14  Bruno Haible  <bruno@clisp.org>
72262
72263         * modules/allocsa (License): Change to LGPL.
72264         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
72265
72266 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
72267
72268         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
72269         that "UTC +1 second" continues to work.  Problem reported
72270         by Dmitry V. Levin.
72271         (relunit_snumber): New rule.
72272         (relunit): Use it.
72273
72274 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
72275
72276         * lib/getdate.y (universal_time_zone_table): New constant.
72277         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
72278         universal_time_zone_table.
72279         (lookup_zone): Prefer universal_time_zone_table to
72280         local_time_zone_table, so that "GMT" time stamps are allowed in
72281         London during the summer.  Problem reported by Ian Abbott.
72282
72283 2005-04-12  Jim Meyering  <jim@meyering.net>
72284
72285         * lib/human.c (humblock): Set *options even when returning due to
72286         xstrtoumax conversion failure.  Thanks to a used-uninitialized
72287         warning from gcc-4.
72288
72289 2005-04-09  Jim Meyering  <jim@meyering.net>
72290
72291         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
72292         -Wuninitialized: initialize tm0.tm_year.
72293
72294 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
72295
72296         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
72297         count, since there's no maximum.  All uses changed.
72298         Add member dsts_seen.
72299         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
72300         not being INT_MAX.
72301         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
72302         Use pc_rels_seen to decide whther a date is absolute.
72303
72304         * lib/getdate.y (number): Don't overwrite year.
72305         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
72306         check.
72307
72308 2005-04-02  Simon Josefsson  <jas@extundo.com>
72309
72310         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
72311         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
72312
72313 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
72314
72315         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
72316         where no absolute path name can be longer than PATH_MAX.
72317
72318 2005-03-27  Jim Meyering  <jim@meyering.net>
72319
72320         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
72321
72322 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
72323
72324         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
72325         "one's complement" -> "ones' complement" in comment, as per Knuth.
72326         "value of type" -> "type or expression" in comment.
72327         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
72328
72329 2005-03-26  Jim Meyering  <jim@meyering.net>
72330
72331         Comment nits.
72332         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
72333         Correct typos: s/or/of/.
72334
72335 2005-03-26  Jim Meyering  <jim@meyering.net>
72336
72337         * modules/check-include-files: Move to ../ and rename to...
72338         * check-module: ...this.
72339
72340 2005-03-25  Jim Meyering  <jim@meyering.net>
72341
72342         * modules/xvasprintf (Files): Add xalloc.h.
72343
72344 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
72345
72346         * modules/gettext (Files): config/config.rpath ->
72347         build-aux/config.rpath
72348         * modules/iconv (Files): Likewise.
72349         Problem reported by Oskar Liljeblad.
72350
72351 2005-03-23  Jim Meyering  <jim@meyering.net>
72352
72353         * modules/check-include-files: New script to check for
72354         missing dependencies, multiple includes, etc.
72355
72356         * modules/c-strtold (Depends-on): Add xalloc.
72357         * modules/c-strtod (Depends-on): Add xalloc.
72358         * modules/hash (Depends-on): Add xalloc.
72359         (Files): Remove lib/xalloc.h.
72360
72361         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
72362         * modules/userspec (Files): Add lib/inttostr.h.
72363
72364 2005-03-23  Jim Meyering  <jim@meyering.net>
72365
72366         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
72367
72368 2005-03-22  Jim Meyering  <jim@meyering.net>
72369
72370         * modules/stat-macros: New module.
72371         * modules/canonicalize, modules/euidaccess, modules/file-type,
72372         * modules/filemode, modules/lchown, modules/makepath,
72373         * modules/rmdir, modules/stat: Depend on new stat-macros module
72374         rather than listing lib/stat-macros.h manually.
72375         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
72376
72377 2005-03-22  Jim Meyering  <jim@meyering.net>
72378
72379         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
72380
72381 2005-03-22  Bruno Haible  <bruno@clisp.org>
72382
72383         * config/srclist.txt: Replace target directory 'config' with
72384         'build-aux'.
72385         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
72386         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
72387         ../build-aux/.
72388
72389 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
72390
72391         * modules/chdir-long (Depends-on): Add mempcpy.
72392
72393         * modules/acl, modules/backupfile, modules/c-strtod,
72394         modules/c-strtold, modules/canon-host, modules/canonicalize,
72395         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
72396         modules/exclude, modules/exitfail, modules/file-type,
72397         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
72398         modules/getdate, modules/getline, modules/getpagesize,
72399         modules/getpass, modules/getugroups, modules/group-member,
72400         modules/hard-locale, modules/hash, modules/human, modules/idcache,
72401         modules/inttostr, modules/long-options, modules/makepath,
72402         modules/md5, modules/memcasecmp, modules/memcoll,
72403         modules/modechange, modules/mountlist, modules/path-concat,
72404         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
72405         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
72406         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
72407         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
72408         modules/strftime, modules/strndup, modules/strverscmp,
72409         modules/timespec, modules/unlocked-io, modules/userspec,
72410         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
72411         modules/yesno:
72412         Remove lib_SOURCES line from Makefile.am section, as this is now
72413         done automatically by the corresponding Autoconf macro.
72414
72415 2005-03-21  Jim Meyering  <jim@meyering.net>
72416
72417         Changes imported from coreutils.
72418
72419         * lib/cycle-check.c: Don't include xalloc.h.
72420
72421         * lib/path-concat.c: Don't include assert.h.
72422         (path_concat): Remove assertion that would have triggered
72423         for ABASE starting with more than one slash.
72424         Reported by Andreas Schwab.
72425
72426         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
72427         properly when ABASE is an absolute file name.
72428         Correct the description of this function.
72429         Include <assert.h>.
72430         Add an assertion and a test driver.
72431         This fixes a bug introduced on 2004-07-02.
72432         Andreas Schwab reported the resulting failure of cp --parents:
72433         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
72434
72435 2005-03-21  Jim Meyering  <jim@meyering.net>
72436
72437         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
72438         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
72439
72440 2005-03-21  Jim Meyering  <jim@meyering.net>
72441         and  Paul Eggert  <eggert@cs.ucla.edu>
72442
72443         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
72444         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
72445         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
72446         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
72447         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
72448         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
72449         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
72450         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
72451         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
72452         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
72453         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
72454         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
72455         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
72456         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
72457         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
72458         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
72459         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
72460         for these modules.
72461
72462 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
72463
72464         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
72465         (which shouldn't happen), generate nothing instead of returning 0
72466         immediately, so that nstrftime (NULL, ...) doesn't return 0.
72467
72468 2005-03-16  Bruno Haible  <bruno@clisp.org>
72469
72470         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
72471         HAVE_LONGLONG_64BIT.
72472
72473 2005-03-16  Bruno Haible  <bruno@clisp.org>
72474
72475         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
72476         HAVE_LONGLONG_64BIT.
72477
72478 2005-03-16  Bruno Haible  <bruno@clisp.org>
72479
72480         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
72481         HAVE_LONGLONG_64BIT.
72482
72483 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
72484
72485         * lib/strftime.c (my_strftime): Prepend space to format so that we can
72486         reliably distinguish strftime failure from empty output on POSIX
72487         hosts.
72488
72489 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
72490
72491         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
72492         (iconv_string): Don't guess a size-zero buffer, as that might cause
72493         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
72494         result would be 'too large', where 'too large' is (heuristically)
72495         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
72496         overflow concerns.  This will prevent some unwanted malloc failures
72497         when the inputs are very large.
72498
72499 2005-03-15  Karl Berry  <karl@gnu.org>
72500
72501         * config/srclist.txt (config.rpath): from gettext.
72502         * config/config.rpath: update.
72503
72504 2005-03-15  Bruno Haible  <bruno@clisp.org>
72505
72506         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
72507         to 'negate'.
72508
72509         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
72510         variable.
72511
72512         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
72513         results.
72514
72515 2005-03-14  Simon Josefsson  <jas@extundo.com>
72516
72517         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
72518         <fx@gnu.org>.
72519
72520 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
72521
72522         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
72523         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
72524         intprops.h.
72525         * lib/strtol.c: Likewise.
72526
72527 2005-03-14  Jim Meyering  <jim@meyering.net>
72528
72529         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
72530         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
72531         to be nonzero so that we (and caller) can detect the difference
72532         between a valid zero-length expansion and an error return, even
72533         when the underlying strftime fails before writing anything into
72534         that location.
72535
72536 2005-03-14  Bruno Haible  <bruno@clisp.org>
72537
72538         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
72539         Update from GNU gettext 0.14.3.
72540
72541 2005-03-10  Jim Meyering  <jim@meyering.net>
72542
72543         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
72544
72545 2005-03-10  Jim Meyering  <jim@meyering.net>
72546
72547         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
72548         so that this module works on systems without fchdir.
72549
72550 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
72551
72552         Factor int-properties macros into a single file, except for
72553         glibc-related files.
72554         * lib/intprops.h: New file.
72555         * lib/getloadavg.c: Include it instead of limits.h.
72556         (INT_STRLEN_BOUND): Remove.
72557         * lib/human.c: Include intprops.h.
72558         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
72559         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
72560         302/1000.
72561         * lib/inttostr.h: Include intprops.h instead of limits.h.
72562         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
72563         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
72564         for consistency with intprops.h.
72565         (time_t_is_integer, twos_complement_arithmetic): Use them.
72566         * lib/sig2str.h: Include <signal.h>, intprops.h.
72567         (INT_STRLEN_BOUND): Remove.
72568         * lib/strftime.c (TYPE_SIGNED): Remove.
72569         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
72570         * lib/strtol.c: Adjust comments to match intprops.h.
72571         * lib/userspec.c: Include intprops.h.
72572         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
72573         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
72574         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
72575         instead of rolling our own expressions.
72576         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
72577
72578         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
72579         instead of int.
72580         (my_strftime): Do not mishandle years close to INT_MAX, by doing
72581         the right thing even if adding 1900 would overflow.  Similarly
72582         for tm_mon + 1 and tm_yday + 1.
72583         Make %Y always equivalent to %C%y, and similarly for %G and %g.
72584         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
72585         (DO_SIGNED_NUMBER): New macro.
72586         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
72587
72588 2005-03-07  Bruno Haible  <bruno@clisp.org>
72589
72590         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
72591
72592 2005-03-07  Bruno Haible  <bruno@clisp.org>
72593
72594         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
72595
72596 2005-03-04  Derek R. Price  <derek@ximbiot.com>
72597
72598         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
72599         (func_import): Only replace files via --import when they have actually
72600         changed.
72601
72602 2005-03-03  Derek R. Price  <derek@ximbiot.com>
72603
72604         * m4/mmap-anon.m4: New file.
72605         * m4/pagealign_alloc.m4: New file.
72606
72607 2005-03-03  Derek R. Price  <derek@ximbiot.com>
72608             Bruno Haible  <bruno@clisp.org>
72609
72610         * modules/pagealign_alloc: New file.
72611         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
72612
72613 2005-03-03  Derek R. Price  <derek@ximbiot.com>
72614             Bruno Haible  <bruno@clisp.org>
72615
72616         * lib/pagealign_alloc.h: New file.
72617         * lib/pagealign_alloc.c: New file.
72618
72619 2005-03-03  Bruno Haible  <bruno@clisp.org>
72620
72621         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
72622         Use an all-permissive copyright notice, recommended by RMS.
72623
72624 2005-03-02  Bruno Haible  <bruno@clisp.org>
72625
72626         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
72627         of AIX, the replacement has to be done only after <string.h> is
72628         included, therefore not in config.h. stpncpy.h does the replacement,
72629         and stpncpy.c uses it.
72630
72631 2005-03-02  Bruno Haible  <bruno@clisp.org>
72632
72633         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
72634         stpncpy.c uses it.
72635
72636 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72637
72638         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
72639         The workaround isn't strictly needed for POSIX conformance, and
72640         it's too much of a pain to configure and maintain.  We'll ask
72641         people to fix their kernels instead.
72642         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
72643         (NANOSLEEP_BUG_WORKAROUND): Remove.
72644         (xnanosleep): Remove the workaround.
72645
72646 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72647
72648         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
72649         Reported by Derek Price.
72650         (Include): Add "timespec.h".
72651
72652         * modules/xnanosleep (Depends-on): Remove gethrxtime.
72653
72654 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72655
72656         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
72657         to detect nanosleep bug.
72658
72659 2005-03-01  Bruno Haible  <bruno@clisp.org>
72660
72661         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
72662
72663 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
72664
72665         * modules/gethrxtime: New file.
72666         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
72667         (Depends-on): Add gethrxtime.
72668         (configure.ac): Add gl_XNANOSLEEP.
72669         (Makefile.am): Remove lib_SOURCES line.
72670
72671 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
72672
72673         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
72674         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
72675
72676 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
72677
72678         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
72679         * lib/timespec.h (gettime): Return void, since it always
72680         succeeds now.  All uses changed.
72681         * lib/gettime.c (gettime): Likewise.
72682         [HAVE_NANOTIME]: Prefer nanotime.
72683         Assume gettimeofday succeeds, as POSIX requires.
72684         Assime time () succeeds, since other code already does.
72685         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
72686         (timespec_subtract): Remove.
72687         (NANOSLEEP_BUG_WORKAROUND): New constant.
72688         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
72689         things considerably.  Use it only on GNU/Linux hosts, since the
72690         workaround shouldn't be needed elsewhere.
72691
72692 2005-02-24  Bruno Haible  <bruno@clisp.org>
72693
72694         * modules/gettext (Files): Add m4/glibc2.m4.
72695
72696 2005-02-24  Bruno Haible  <bruno@clisp.org>
72697
72698         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
72699         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
72700         * m4/progtest.m4:
72701         Update from GNU gettext 0.14.2.
72702         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
72703
72704 2005-02-24  Bruno Haible  <bruno@clisp.org>
72705
72706         * lib/localcharset.c: Update from GNU gettext 0.14.2.
72707         * lib/config.charset: Update from GNU gettext 0.14.2.
72708
72709 2005-02-24  Bruno Haible  <bruno@clisp.org>
72710
72711         * lib/gettext.h: Update from GNU gettext 0.14.2.
72712
72713 2005-02-23  Simon Josefsson  <jas@extundo.com>
72714
72715         * m4/iconvme.m4: New file.
72716
72717 2005-02-23  Jim Meyering  <jim@meyering.net>
72718
72719         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
72720         change.
72721         Thanks to Bruno Haible for catching it.
72722
72723 2005-02-22  Simon Josefsson  <jas@extundo.com>
72724
72725         * modules/iconvme: New file.
72726
72727         * MODULES.html.sh: Add iconvme.
72728
72729 2005-02-22  Simon Josefsson  <jas@extundo.com>
72730
72731         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
72732
72733 2005-02-22  Simon Josefsson  <jas@extundo.com>
72734
72735         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
72736
72737 2005-02-22  Jim Meyering  <jim@meyering.net>
72738
72739         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
72740         s/ifndef/ifdef/.
72741
72742 2005-02-20  Neil Conway  <neilc@samurai.com>
72743
72744         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
72745         returned by OSX/Darwin if the specified buffer is not large
72746         enough for the hostname.
72747
72748 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72749
72750         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
72751         pass it to _help, otherwise the latter coredumps trying to
72752         dereference state.root_argp.
72753
72754 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
72755
72756         * modules/chdir-long (Depends-on): Add memrchr.
72757         * modules/memrchr (Files): Add lib/memrchr.h.
72758         (Include): "memrchr.h".
72759
72760 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
72761
72762         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
72763
72764 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
72765
72766         * lib/memrchr.h: New file.
72767         * lib/chdir-long.c: Include it.
72768         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
72769         Don't bother including stddef.h.
72770
72771 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
72772
72773         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
72774         inclusion.
72775         Include <sys/types.h>, for dev_t.
72776         (ME_DUMMY, ME_REMOTE): Move from here....
72777         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
72778         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
72779         Dmitry V. Levin.
72780         Include mountlist.h first, to test the interface.
72781
72782 2005-01-29  Bruno Haible  <bruno@clisp.org>
72783
72784         * lib/progname.c (program_name): Initialize.
72785         Needed when linking statically on MacOS X.
72786
72787 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
72788
72789         Sync from coreutils.
72790         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
72791         (Depends-on): Add c-strtod.
72792         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
72793
72794 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
72795
72796         Sync from coreutils.
72797         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
72798
72799         Remove files that are specific to coreutils.
72800         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
72801
72802 2005-01-28  Bruno Haible  <bruno@clisp.org>
72803
72804         * modules/javacomp: New file.
72805         * MODULES.html.sh (Java): Add javacomp.
72806
72807 2005-01-28  Bruno Haible  <bruno@clisp.org>
72808
72809         * m4/javacomp.m4: New file, from GNU gettext.
72810
72811 2005-01-28  Bruno Haible  <bruno@clisp.org>
72812
72813         * lib/javacomp.sh.in: New file, from GNU gettext.
72814         * lib/javacomp.h: New file, from GNU gettext.
72815         * lib/javacomp.c: New file, from GNU gettext.
72816
72817 2005-01-26  Simon Josefsson  <jas@extundo.com>
72818
72819         * lib/gai_strerror.c: Use GPL in header.
72820
72821 2005-01-26  Bruno Haible  <bruno@clisp.org>
72822
72823         * modules/javaexec: New file.
72824         * MODULES.html.sh (Java): Add javaexec.
72825
72826 2005-01-26  Bruno Haible  <bruno@clisp.org>
72827
72828         * m4/javaexec.m4: New file, from GNU gettext.
72829
72830 2005-01-26  Bruno Haible  <bruno@clisp.org>
72831
72832         * lib/javaexec.sh.in: New file, from GNU gettext.
72833         * lib/javaexec.h: New file, from GNU gettext.
72834         * lib/javaexec.c: New file, from GNU gettext.
72835
72836 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72837
72838         * modules/lchown (Depends-on): Remove lchown.h
72839
72840 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72841
72842         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
72843         must be defined if the header file was not found, in order
72844         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
72845
72846 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72847
72848         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
72849         initializers for struct pentry_state.
72850         (__argp_error): Check return value of __asprintf
72851         (__argp_failure): Translate error message
72852
72853         * lib/argp-parse.c: Removed braces around the expansion of N_()
72854
72855 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72856
72857         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
72858         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
72859         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
72860         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
72861         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
72862         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
72863         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
72864         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
72865         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
72866         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
72867         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
72868         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
72869         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
72870         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
72871         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
72872         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
72873         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
72874         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
72875         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
72876         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
72877         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
72878         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
72879         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
72880         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
72881         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
72882         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
72883         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
72884         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
72885         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
72886         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
72887         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
72888         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
72889         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
72890         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
72891         xstrtol.m4, xstrtoumax.m4, yesno.m4:
72892         Use an all-permissive copyright notice, recommended by RMS.
72893
72894 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
72895
72896         * modules/chdir-long (Depends-on): Remove mempcpy.
72897
72898 2005-01-21  Jim Meyering  <jim@meyering.net>
72899
72900         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
72901         same value as for Solaris 9.
72902
72903         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
72904         component length.  This included changing the parameter to be
72905         of type `char *' rather than `char const *'.
72906         * lib/chdir-long.h (chdir_long): Update prototype.
72907
72908         * lib/openat.c (fdopendir, fstatat): New functions.
72909         * lib/openat.h: Include headers required for use of DIR and struct
72910         stat.
72911         [AT_SYMLINK_NOFOLLOW]: Define.
72912         (fdopendir, fstatat): Add prototypes.
72913
72914 2005-01-21  Bruno Haible  <bruno@clisp.org>
72915
72916         * modules/classpath: New file.
72917         * MODULES.html.sh (Java): Add classpath.
72918
72919 2005-01-21  Bruno Haible  <bruno@clisp.org>
72920
72921         * lib/classpath.h: New file, from GNU gettext.
72922         * lib/classpath.c: New file, from GNU gettext.
72923
72924 2005-01-20  Simon Josefsson  <jas@extundo.com>
72925
72926         * modules/version-etc-fsf: New file.
72927
72928 2005-01-20  Simon Josefsson  <jas@extundo.com>
72929
72930         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
72931         * lib/version-etc.c: Remove version_etc_copyright.
72932         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
72933         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
72934
72935 2005-01-20  Simon Josefsson  <jas@extundo.com>
72936
72937         * lib/base64.h (isbase64): Add.
72938
72939         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
72940         using a unsigned prototype, don't inline.
72941         (base64_decode): Use it.
72942
72943 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
72944
72945         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
72946         it.
72947
72948 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
72949
72950         * lib/save-cwd.c (save_cwd): Remove code to support the case
72951         where fchdir is missing or flaky.
72952
72953 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
72954
72955         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
72956
72957 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
72958
72959         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
72960         AC_LIBSOURCES now does this.
72961         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
72962         with new ullong_max module.
72963
72964 2005-01-19  Bruno Haible  <bruno@clisp.org>
72965
72966         * modules/sh-quote: New file.
72967         * MODULES.html.sh (Executing programs): Add sh-quote.
72968
72969 2005-01-19  Bruno Haible  <bruno@clisp.org>
72970
72971         * lib/sh-quote.h: New file, from GNU gettext.
72972         * lib/sh-quote.c: New file, from GNU gettext.
72973
72974 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
72975
72976         Merge from coreutils.
72977         * m4/ullong_max.m4: New file.
72978         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
72979         (gl_MACROS): Assume localeconv exists.
72980
72981 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
72982
72983         Merge changes from coreutils, as described below in several
72984         changelogs dated today.
72985
72986         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
72987         (O_DIRECTORY): Remove; not needed here, since "." must be
72988         a directory.  All uses removed.
72989         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
72990         universal on Suns, and we also need to test for IRIX.
72991         Revamp code to use 'if' rather than '#if'.
72992         Avoid unnecessary comparison of cwd->desc to 0.
72993
72994         * lib/utimens.c (futimens): Robustify the previous patch, by checking
72995         for known valid error numbers rather than observed invalid ones.
72996
72997 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
72998
72999         * modules/ullong_max: New file.
73000
73001         * modules/chdir-long, modules/openat: New files.
73002         * modules/save-cwd (Depends-on): Depend on chdir-long.
73003         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
73004
73005 2005-01-18  Jim Meyering  <jim@meyering.net>
73006
73007         Merge from coreutils.
73008         * m4/chdir-long.m4, m4/openat.m4: New files.
73009         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
73010         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
73011         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
73012         is sane and DOES follow symlinks.  Besides, testing 20 different
73013         systems found no broken chown implementations.
73014         Prompted by a change in rsync's copy of this macro.
73015         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
73016
73017         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
73018
73019         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
73020         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
73021         NULL-means-set-to-current-time semantics.
73022         Remove temporary file immediately, rather than waiting
73023         for configure's at-exit trap code to do it.
73024
73025 2005-01-18  Jim Meyering  <jim@meyering.net>
73026
73027         * lib/version-etc.c (version_etc_copyright): Update copyright date.
73028
73029         * lib/utimens.c (futimens): Account for the fact that futimes
73030         can also fail with errno == ENOSYS or errno == ENOENT.
73031         Patch from Dmitry V. Levin.
73032
73033         Change the name of the robust chdir function from chdir to chdir_long.
73034         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
73035         (restore_cwd): Use chdir_long, not chdir.
73036         * lib/chdir-long.c: Renamed from chdir.c.
73037         * lib/chdir-long.h: Renamed from chdir.h.
73038         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
73039         Hurd.
73040
73041 2005-01-18  Bruno Haible  <bruno@clisp.org>
73042
73043         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
73044         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
73045         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
73046         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
73047         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
73048         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
73049         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
73050         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
73051         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
73052         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
73053         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
73054         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
73055         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
73056         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
73057         Use an all-permissive copyright notice, recommended by RMS.
73058
73059 2005-01-18  Bob Proulx  <bob@proulx.com>
73060
73061         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
73062         simplify offsetof() macro construct to avoid compile failure with
73063         native HP-UX 11.0 ANSI C compiler.
73064
73065 2005-01-17  Bruno Haible  <bruno@clisp.org>
73066
73067         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
73068         redundant because stpncpy.m4 takes care of it.
73069
73070 2005-01-17  Bruno Haible  <bruno@clisp.org>
73071
73072         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
73073
73074 2005-01-17  Bruno Haible  <bruno@clisp.org>
73075
73076         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
73077         used.
73078
73079 2005-01-17  Bruno Haible  <bruno@clisp.org>
73080
73081         * lib/fwriteerror.h (fwriteerror): Change specification to include
73082         fclose.
73083         * lib/fwriteerror.c: Include <stdbool.h>.
73084         (fwriteerror): At the end, close the file stream. Record whether
73085         stdout was already closed.
73086
73087 2005-01-17  Bruno Haible  <bruno@clisp.org>
73088
73089         * lib/execute.c (environ): Declare if needed.
73090         * lib/pipe.c (environ): Likewise.
73091         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
73092
73093 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73094
73095         * modules/argp: Depend on vsnprintf
73096
73097 2005-01-10  Jim Meyering  <jim@meyering.net>
73098
73099         * modules/closeout (Depends-on): Add atexit.
73100
73101 2005-01-06  Bruno Haible  <bruno@clisp.org>
73102
73103         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
73104
73105 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73106
73107         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
73108         definitions to be after all include files, to avoid collisions.
73109         Problem reported by Bob Proulx.
73110
73111 2005-01-04  Jim Meyering  <jim@meyering.net>
73112
73113         Changes imported from coreutils.
73114         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
73115         as the mkstemp template, use a temporary directory and an
73116         8.3-friendly template to avoid trouble on systems like DJGPP.
73117         Reported by Juan M. Guerrero via Stepan Kasal.
73118         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
73119         close. Remove the temporary directory right away, rather than waiting
73120         for configure's at-exit trap code to do it.
73121         Suggestion from Stepan Kasal.
73122
73123 2005-01-01  Simon Josefsson  <jas@extundo.com>
73124
73125         * gnulib-tool: Print #include directives when --import'ing.
73126
73127 2004-12-28  Simon Josefsson  <jas@extundo.com>
73128
73129         * tests/test-base64.c: Include required header files.  Remove
73130         unused variables.
73131
73132 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
73133
73134         * modules/error (Depends-on): Remove gettext.
73135
73136 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
73137
73138         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
73139         not needed.  This removes a dependency on the gettext module.
73140         [defined _LIBC]: Do not include <libintl.h>; not needed.
73141
73142 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
73143
73144         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
73145         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
73146
73147 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
73148
73149         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
73150         HAVE_DECL_STRTOLD.
73151
73152 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
73153
73154         * modules/getdate (Depends-on): Remove alloca-opt.
73155
73156 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
73157
73158         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
73159
73160 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
73161
73162         * lib/argp-parse.c: Include <stddef.h>.
73163         (alignof, alignto): New macros.
73164         (parser_init): Don't assume that void * is aligned sufficiently
73165         for struct option.
73166
73167         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
73168         need to extend the stack.
73169         (YYINITDEPTH): New macro, so that the initial stack isn't overly
73170         large.
73171
73172 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73173
73174         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
73175
73176 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
73177
73178         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
73179         (2004-10-24) change.  Apparently this was a false alarm.
73180
73181         * modules/getdate: Depend on alloca-opt, not alloca.
73182
73183 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
73184
73185         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
73186         Remove now-obsolete comment about AIX.
73187         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
73188         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
73189         (YYMAXDEPTH): New macro.
73190
73191 2004-12-18  Simon Josefsson  <jas@extundo.com>
73192
73193         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
73194
73195 2004-12-18  Bruno Haible  <bruno@clisp.org>
73196
73197         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
73198
73199 2004-12-18  Bruno Haible  <bruno@clisp.org>
73200
73201         * lib/fatal-signal.c (fatal_signals): Make non-const.
73202         (init_fatal_signals): New function.
73203         (uninstall_handlers, install_handlers): Ignore signals that were set to
73204         SIG_IGN.
73205         (at_fatal_signal): Call init_fatal_signals.
73206         (init_fatal_signal_set): Likewise. Ignore signals that were set to
73207         SIG_IGN.
73208         Reported by Paul Eggert.
73209
73210 2004-12-18  Bruno Haible  <bruno@clisp.org>
73211
73212         * doc/alloca.texi: New file.
73213         * doc/alloca-opt.texi: New file.
73214
73215 2004-12-17  Jim Meyering  <jim@meyering.net>
73216
73217         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
73218         Otherwise, install-sh could exit with improper exit status when
73219         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
73220
73221 2004-12-16  Simon Josefsson  <jas@extundo.com>
73222
73223         * tests/test-base64.c: Add license.
73224
73225 2004-12-15  Stepan Kasal  <address@hidden>
73226
73227         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
73228
73229 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
73230
73231         * modules/getcwd (Files): Add m4/d-ino.m4.
73232         Suggested by Mark D. Baushke.
73233
73234 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
73235
73236         * lib/getdate.y (textint): New member "negative".
73237         (time_zone_hhmm): New function.
73238         Expect 14 shift-reduce conflicts, not 13.
73239         (o_colon_minutes): New rule.
73240         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
73241         (yylex): Set the "negative" member of signed numbers.
73242
73243 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
73244
73245         * doc/getdate.texi (Time of day items, Time zone items):
73246         Describe new formats +00:00, UTC+00:00.
73247
73248 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73249
73250         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
73251         spurious "-l"s.  Problem reported by Stepan Kasal.
73252
73253 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
73254
73255         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
73256         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
73257
73258 2004-12-04  Simon Josefsson  <jas@extundo.com>
73259
73260         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
73261         Vandoorselaere <yoann@prelude-ids.org>.
73262
73263 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
73264
73265         Changes imported from coreutils.
73266         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
73267         exist.
73268         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
73269
73270 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
73271
73272         Changes imported from coreutils.
73273         * lib/hard-locale.c: Assume <locale.h> exists.
73274         Include "strdup.h".
73275         (GLIBC_VERSION): New macro.
73276         (hard_locale): Assume setlocale exists.
73277         Rewrite to avoid #ifdef.
73278         Use strdup rather than malloc + strcpy.
73279         * lib/human.c: Assume <locale.h> exists.
73280         (human_readable): Assume localeconv exists.
73281
73282 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
73283
73284         * modules/hard-locale (Depends-on): Add strdup.
73285
73286 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
73287
73288         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
73289         convert T2, not T.  (Imported from libc.)
73290
73291 2004-11-30  Simon Josefsson  <jas@extundo.com>
73292
73293         * modules/restrict (License): Change to LGPL.
73294
73295 2004-11-30  Simon Josefsson  <jas@extundo.com>
73296
73297         * m4/restrict.m4: Add copyright and copying conditions.
73298
73299 2004-11-30  Simon Josefsson  <jas@extundo.com>
73300
73301         * m4/base64.m4: New file.
73302
73303 2004-11-30  Simon Josefsson  <jas@extundo.com>
73304
73305         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
73306         base64.
73307
73308         * tests/test-base64.c: New file.
73309
73310         * modules/base64: New file.
73311
73312 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
73313
73314         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
73315         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
73316
73317         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
73318
73319 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
73320
73321         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
73322         (__getcwd.c): Don't restore errno; glibc doesn't.
73323         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
73324         first, falling back to our code only if its results look suspicious.
73325         Ensure that the resulting buffer is only as large as necessary.
73326
73327         * lib/readutmp.c: Include readutmp.h first.
73328         Include <errno.h>, since readutmp.h no longer does that.
73329         * lib/readutmp.h: Don't include <errno.h>,
73330         <sys/param.h>, <time.h>; not needed to establish interface.
73331         (errno): Remove decl.
73332         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
73333         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
73334         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
73335
73336 2004-11-28  Simon Josefsson  <jas@extundo.com>
73337
73338         * lib/base64.h, base64.c: New file.
73339
73340 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
73341
73342         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
73343
73344 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
73345
73346         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
73347         (Depends-on): Remove pathmax, same.  Add mempcpy.
73348         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
73349         (Makefile.am): Append getcwd.h to lib_SOURCES.
73350         (Include): Add getcwd.h.
73351         (Maintainer): Change from Jim Meyering to "all, glibc",
73352         since getdate now uses intended-for-glibc code.
73353         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
73354         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
73355
73356 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
73357
73358         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
73359         HP's ANSI C compiler.
73360         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
73361         Declaring int functions causes warnings on some modern systems and
73362         shouldn't be needed to compile on ancient ones.
73363         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
73364         defined.
73365
73366         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
73367         with the following changes.
73368         (__set_errno): Parenthesize properly.
73369         Include <stdbool.h>.
73370         (MIN, MAX, MATCHING_INO): New macros.
73371         (__getcwd): Define with prototype, not K&R form.
73372         Use heuristics to allocate default buffer on stack if possible.
73373         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
73374         behavior, and to avoid the PATH_MAX limit when computing
73375         ../../../../...
73376         Use MATCHING_INO to compare inode number to file.
73377         Check for arithmetic overflow in size calculations.
73378         Fix bug in reallocation of dot array that caused getcwd to fail
73379         on directories nested deeper than 75.
73380         Be more careful about saving errno on error.
73381         Do not use realloc; use only free+malloc, as this is a bit
73382         more flexible and avoids a needless copy operation.
73383         Do not inspect st_dev and st_ino for symbolic links; POSIX
73384         doesn't specify the latter.
73385         Check for closedir errors.
73386         Avoid needless casts.
73387         Use "#ifdef weak_alias" around weak_alias, to be like other
73388         glibc code.
73389         The following changes to getcwd.c have effect only when used in
73390         gnulib; they have no effect inside glibc proper.
73391         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
73392         as alloca isn't used.
73393         (alloca, __alloca): Likewise.
73394         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
73395         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
73396         unconditionally, as gnulib assumes C89 or better.
73397         Do not include <sys/param.h>.
73398         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
73399         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
73400         better.
73401         (NULL) [!defined NULL]: Remove; we assume C89 or better.
73402         Include <dirent.h> in a way that is compatible with modern Autoconf.
73403         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
73404         New macros, if not already defined.
73405         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
73406         Use "_LIBC", not "defined _LIBC", for consistency.
73407         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
73408         a mempcpy module.
73409         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
73410         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
73411         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
73412         credit only to Jim Meyering and adjust the copyright dates.
73413         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
73414         <stdlib.h>, <unistd.h>, "pathmax.h".
73415         Instead, include "xgetcwd.h" (first) and "getcwd.h".
73416         (INITIAL_BUFFER_SIZE): Remove.
73417         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
73418
73419 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
73420
73421         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
73422         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
73423         Use the _ONCE methods, for efficiency.
73424         Check for fcntl.h.  In test program, include <errno.h>
73425         and <fcntl.h> if available.  Remove old K&R cruft from
73426         test program.  Check for common errors in GNU/Linux,
73427         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
73428         don't do AC_LIBOBJ, as that's getcwd.m4's job.
73429         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
73430         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
73431         name accordingly.
73432         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
73433         accommodate new getcwd.c.
73434         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
73435         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
73436         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
73437         that's all we need now.
73438
73439 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73440
73441         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
73442         argp-parse.c depends on getopt internals, that means we should
73443         always use our getopt, to be on the safe side.
73444         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
73445         order not to spoil the result of an eventual previous invocation
73446         of gl_GETOPT_SUBSTITUTE.
73447
73448 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73449
73450         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
73451         redefinition warnings. To avoid them, include the defines
73452         in `#if !defined __need_getopt ... #endif'. The only place
73453         where __getopt_argv_const is used is in definitions
73454         of getopt_long and getopt_long_only below, which are as well
73455         protected by `#ifndef __need_getopt'.
73456         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
73457         __need_getopt after including <stdio.h> and <unistd.h> These
73458         headers might have defined it.
73459
73460 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
73461
73462         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
73463
73464 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
73465
73466         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
73467         (futimens): New function, which uses futimes if available.
73468         (futimens, utimens): Support timespec==NULL, with same semantics
73469         as utime and utimens.
73470         * lib/utimens.h (futimens): New decl.
73471
73472 2004-11-23  Jim Meyering  <jim@meyering.net>
73473
73474         * lib/getopt_.h: Remove trailing blanks.
73475
73476 2004-11-23  Jim Meyering  <jim@meyering.net>
73477
73478         * lib/__fpending.c: Add comment.
73479
73480 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
73481
73482         * modules/canonicalize (Depends-on): Add xreadlink.
73483         Problem reported by James Youngman.
73484
73485 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
73486
73487         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
73488         New macros.
73489         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
73490         optopt): Use them instead of invoking ## directly; otherwise, the
73491         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
73492
73493 2004-11-19  Bruno Haible  <bruno@clisp.org>
73494
73495         * lib/strtok_r.c: Move comments from here...
73496         * lib/strtok_r.h: ... to here.
73497
73498 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
73499
73500         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
73501         implementations that mishandle size_t overflow.
73502
73503 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
73504
73505         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
73506         might fail.  Problem reported by Yoann Vandoorselaere.
73507         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
73508         implementations that mishandle size_t overflow.
73509
73510 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73511
73512         * modules/canon-host (Depends-on): Add strdup.
73513
73514 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73515
73516         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
73517
73518 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73519
73520         * lib/canon-host.c: Include "strdup.h".
73521         (canon_host): Use getaddrinfo if available, so that IPv6 works.
73522         Use strdup instead of malloc/strcpy to duplicate strings.
73523
73524         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
73525         (human_space_before_unit): New constant.
73526         * lib/human.c (human_readable): Support it.
73527
73528         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
73529         (xgetcwd): Set errno correctly when failing.
73530         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
73531         the failure is actually due to a PATH_MAX problem.
73532
73533         Further getopt changes to make it more likely that glibc will
73534         buy the changes back.
73535         * lib/getopt.c (POSIXLY_CORRECT): New constant.
73536         (getopt): Use it, so to preserve glibc semantic
73537         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
73538         when compiling for libc.
73539         * lib/getopt_.h (__getopt_argv_const): Bring it back.
73540         (getopt_long, getopt_long_only): Use it.
73541
73542         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
73543         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
73544         (getopt): Argv is now char * const *, as per standard.
73545         (_getopt_internal_r, _getopt_internal): Argv is now char **,
73546         not char *__getopt_argv_const *.
73547         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
73548         _getopt_long_only_r): Likewise.
73549         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
73550         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
73551         _getopt_long_r, _getopt_long_only_r): Likewise.
73552         * lib/getopt_.h (__getopt_argv_const): Remove.
73553         (getopt): Argv is now char * const *, as per standard.
73554
73555         * lib/getdate.y (tORDINAL): New token.
73556         (day, relunit): Allow it for relative times.
73557         (relative_time_table): Use tORDINAL for ordinals.
73558
73559 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73560
73561         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
73562         Document that "second" isn't allowed as an ordinal number.
73563
73564 2004-11-16  Jim Meyering  <jim@meyering.net>
73565
73566         * modules/closeout (Depends-on): Add fpending.
73567
73568 2004-11-15  Jim Meyering  <jim@meyering.net>
73569
73570         * lib/closeout.c: Include "__fpending.h" once again.
73571         Include <stdbool.h>.
73572         (close_stdout): Don't fail just because stdout was closed initially,
73573         since some programs don't write to stdout in the normal course of
73574         operation (other than --version and --help), and we don't want this
73575         function to make e.g. `touch file >&-' fail.
73576         But do fail if it was closed and someone has tried to write to it.
73577         E.g., `printf foo >&-' must fail.
73578
73579 2004-11-13  Jim Meyering  <jim@meyering.net>
73580
73581         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
73582
73583 2004-11-12  Simon Josefsson  <jas@extundo.com>
73584
73585         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
73586         small doc fix is still pending.
73587
73588 2004-11-11  Simon Josefsson  <jas@extundo.com>
73589
73590         * modules/strtok_r: New file.
73591
73592         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73593         strtok_r.
73594
73595 2004-11-11  Simon Josefsson  <jas@extundo.com>
73596
73597         * m4/strtok_r.m4: New file.
73598
73599         * m4/getopt.m4: Replace opterr.
73600
73601 2004-11-11  Simon Josefsson  <jas@extundo.com>
73602
73603         * lib/strtok_r.h, strtok_r.c: New file.
73604
73605 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
73606
73607         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
73608         of replacing opterr, getopt, etc.  This should handle the
73609         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
73610
73611 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
73612
73613         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
73614         we can stop lying to compilers about the constness of argv when we
73615         are compiled outside glibc.
73616         (getopt, getopt_long, getopt_long_only): Use it.
73617         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
73618         _getopt_internal, getopt): Likewise.
73619         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
73620         _getopt_long_only_r): Likewise.
73621         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
73622         _getopt_long_r, _getopt_long_only_r): Likewise.
73623
73624         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
73625         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
73626         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
73627         the other external symbols.
73628         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
73629         declaration, since the above renaming now works around collisions.
73630
73631 2004-11-11  Jim Meyering  <jim@meyering.net>
73632
73633         * lib/linebreak.c: Remove trailing blanks.
73634         * lib/alloca_.h: Likewise.
73635         * lib/acosl.c: Likewise.
73636         * lib/euidaccess.c: Likewise.
73637         * lib/allocsa.h: Likewise.
73638
73639 2004-11-10  Simon Josefsson  <jas@extundo.com>
73640
73641         * m4/getaddrinfo.m4: New file.
73642
73643 2004-11-10  Simon Josefsson  <jas@extundo.com>
73644
73645         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
73646
73647 2004-11-10  Simon Josefsson  <jas@extundo.com>
73648
73649         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73650         getaddrinfo.
73651
73652         * modules/getaddrinfo: New file.
73653
73654 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73655
73656         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
73657
73658 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73659
73660         * lib/mktime.c (SHR): New macro, which is a portable
73661         substitute for >> that should work even on Crays.
73662         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
73663         Problem reported by Mark D. Baushke in
73664         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
73665         * lib/getdate.y (SHR): Likewise.
73666         (tm_diff): Use it.
73667         * lib/strftime.c (SHR): Likewise.
73668         (tm_diff): Use it.
73669         * lib/quotearg.c (struct quoting_options): Use unsigned int for
73670         quote_these_too, so that right shifts are well defined.  All uses
73671         changed.
73672
73673 2004-11-10  Jim Meyering  <jim@meyering.net>
73674
73675         Ensure that no close failure goes unreported.
73676         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
73677         return early when it seems there's nothing to flush.
73678         Don't include __fpending.h.
73679
73680 2004-11-10  Jim Meyering  <jim@meyering.net>
73681
73682         * modules/closeout (Depends-on): Remove fpending.
73683
73684 2004-11-10  Jim Meyering  <jim@meyering.net>
73685
73686         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
73687
73688 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
73689
73690         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
73691         gl_FUNC_STRFTIME.
73692         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
73693         and AC_REQUIRE when possible, to avoid duplicate checks.
73694         Check for <wchar.h>.
73695
73696 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
73697
73698         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
73699
73700 2004-11-09  Bruno Haible  <bruno@clisp.org>
73701
73702         * m4/sockpfaf.m4: New file.
73703
73704 2004-11-05  Bruno Haible  <bruno@clisp.org>
73705
73706         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
73707         Reported by Mark D. Baushke <mdb@cvshome.org>.
73708
73709 2004-11-04  Bruno Haible  <bruno@clisp.org>
73710
73711         2004-09-11  Bruno Haible  <bruno@clisp.org>
73712                 * allocsa.valgrind: New file.
73713         2004-02-06  Bruno Haible  <bruno@clisp.org>
73714                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
73715                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
73716                 Reported by Christopher Seip <chris.seip@hp.com>.
73717
73718 2004-11-04  Bruno Haible  <bruno@clisp.org>
73719
73720         * modules/allocsa (Files): Add lib/allocsa.valgrind.
73721         (Makefile.am): Distribute it.
73722
73723 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
73724
73725         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
73726         with errno == ERANGE if the buffer is too small.
73727         Problem reported by Mark D. Baushke.
73728
73729 2004-11-03  Albert Chin  <china@thewrittenword.com>
73730             Paul Eggert  <eggert@cs.ucla.edu>
73731
73732         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
73733         equivalent, substitute $ac_type for equivalent type rather than
73734         blindly using uint32_t *always* which won't work if uint32_t is not
73735         available.  Define _UINT32_T to work around typedef of uint32_t if
73736         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
73737         2.5.1.
73738
73739 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
73740
73741         * m4/jm-macros.m4: Sync from coreutils.
73742         (gl_MACROS): Check for mbrlen, for pathchk.
73743         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
73744
73745 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
73746
73747         * lib/xreadlink.c (MAXSIZE): New macro.
73748         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
73749         size does not exceed MAXSIZE.  Avoid cast.
73750         As suggested by Mark D. Baushke in
73751         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
73752         if readlink fails with buffer size just under MAXSIZE, try again
73753         with MAXSIZE.
73754
73755 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
73756
73757         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
73758
73759 2004-11-02  Derek R. Price  <derek@ximbiot.com>
73760         and  Paul Eggert  <eggert@cs.ucla.edu>
73761
73762         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
73763         (get_date): Overparenthesize to avoid GCC warning.
73764
73765 2004-11-02  Bruno Haible  <bruno@clisp.org>
73766
73767         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
73768         returns void.
73769
73770 2004-11-02  Bruno Haible  <bruno@clisp.org>
73771
73772         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
73773         function returns void.
73774
73775 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
73776
73777         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
73778         fflush_unlocked, flockfile, funlockfile, funlockfile,
73779         fputs_unlocked, putc_unlocked.
73780
73781 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
73782
73783         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
73784         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
73785         already declared.
73786
73787 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73788
73789         * modules/getdate (Files): Add doc/getdate.texi.
73790         (Depends-on): Add setenv, xalloc.
73791
73792 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73793
73794         * lib/getdate.y: Add support for TZ="foo" within a date string.
73795         Fix some bugs near time_t boundaries.  Reject dates with
73796         out-of-range components, e.g., "Sept 31".
73797         Include <stdlib.h>, "setenv.h", "xalloc.h".
73798         (ISDIGIT_LOCALE): Remove; unused.
73799         Note that the TZ and time functions used here are not reentrant.
73800         (mktime_ok, get_tz): New functions.
73801         (TZBUFSIZE): New constant.
73802         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
73803         This requires that we sometimes generate our own TZ="XXX..." setting.
73804
73805 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73806
73807         * doc/getdate.texi: New file, from coreutils with modifications for
73808         the new TZ parsing.
73809
73810 2004-10-27  Derek R. Price  <derek@ximbiot.com>
73811
73812         * lib/mktime.c (not_equal_tm): Remove redundant check.
73813
73814 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73815
73816         * modules/regex (lib_SOURCES): Add regex.c.
73817         Reported by James Youngman in
73818         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
73819
73820 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73821
73822         * lib/getdate.y: Use Bison 1.875 features, and some minor
73823         code cleanups.  This change does not affect semantics.
73824         Don't include <stdlib.h>; no longer needed.
73825         Don't include unlocked-io.h; only the "#if TEST" code uses
73826         stdio, and performance isn't crucial there.
73827         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
73828         Bison 1.875 features as described below.
73829         All uses of "PC." replaced by "pc->".
73830         (YYSTYPE): Add a forward declaration.
73831         (yylex, yyerror): Use full prototypes in forward decls.
73832         Use "%pure-parser" rather than obsolescent "%pure_parser".
73833         Use %parse-param and %lex-param instead of obsolescent
73834         YYPARSE_PARAM and YYLEX_PARAM.
73835         (meridian_table, month_and_day_table, time_units_table,
73836         relative_time_table, time_zone_table, military_table,
73837         lookup_zone, lookup_word, get_date):
73838         Use NULL instead of 0 where appropriate.
73839         (to_hour): Avoid abort (), to avoid a dependency on
73840         stdlib.h.
73841         (yyerror, yylex): Now accepts parser_control * arg.
73842         (main) [TEST]: Use '\0' rather than 0 for char.
73843
73844 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
73845
73846         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
73847
73848 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
73849
73850         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
73851         It's now the caller's responsibility to handle the case where
73852         !HAVE_GETPAGESIZE && !defined getpagesize.
73853
73854         * lib/mktime.c (leapyear): Arg is long int, not int.
73855
73856 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
73857
73858         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
73859
73860 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
73861
73862         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
73863         missing.  Problem reported by James Youngman.
73864
73865 2004-10-16  Simon Josefsson  <jas@extundo.com>
73866
73867         * gnulib-tool: Fix comments.  Fix parse problem.
73868         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
73869
73870 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
73871
73872         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
73873         implementation of getopt_long.  Problem reported by Alexander Taler in:
73874         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
73875
73876 2004-10-15  Bruno Haible  <bruno@clisp.org>
73877
73878         * gnulib-tool: Untabify. Initialize supplied_libname.
73879         (func_usage): More homogenous output.
73880         (func_modules_transitive_closure, func_modules_to_filelist,
73881         func_emit_lib_Makefile_am): New functions.
73882         (func_import): New function, extracted from big case statement. Use
73883         func_get_license, func_modules_transitive_closure,
73884         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
73885         opt_lgpl. Don't use test -a, as it's not portable.
73886         (func_create_testdir): Use func_modules_transitive_closure,
73887         func_modules_to_filelist, func_emit_lib_Makefile_am.
73888
73889 2004-10-15  Bruno Haible  <bruno@clisp.org>
73890
73891         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
73892
73893 2004-10-15  Bruno Haible  <bruno@clisp.org>
73894
73895         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
73896         the portions belonging to each module.
73897         Suggested by Derek Robert Price <derek@ximbiot.com>.
73898
73899 2004-10-12  Simon Josefsson  <jas@extundo.com>
73900
73901         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
73902         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
73903         to real functions.
73904
73905 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73906
73907         * modules/vsnprintf: New file.
73908
73909 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73910
73911         * m4/vsnprintf.m4: New file.
73912
73913 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73914
73915         * lib/vsnprintf.h: New file.
73916         * lib/vsnprintf.c: New file.
73917
73918 2004-10-11  Bruno Haible  <bruno@clisp.org>
73919
73920         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
73921         vsnprintf.
73922
73923 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
73924
73925         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
73926
73927 2004-10-07  Bruno Haible  <bruno@clisp.org>
73928
73929         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
73930         fits into the provided buffer.
73931
73932 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
73933
73934         * lib/diacrit.c, diacrit.h: Add GPL notice.
73935
73936         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
73937         notice.
73938         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
73939         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
73940         This avoids a potential constant-folding bug.
73941
73942 2004-10-05  Bruno Haible  <bruno@clisp.org>
73943
73944         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
73945         for the declaration of strsep.
73946
73947 2004-10-05  Bruno Haible  <bruno@clisp.org>
73948
73949         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
73950
73951 2004-10-04  Simon Josefsson  <jas@extundo.com>
73952
73953         * modules/memmem: New file.
73954         * tests/test-memmem.c: New file.
73955         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
73956
73957 2004-10-04  Simon Josefsson  <jas@extundo.com>
73958
73959         * m4/memmem.m4: New file.
73960
73961 2004-10-04  Simon Josefsson  <jas@extundo.com>
73962
73963         * lib/memmem.h: New file.
73964         * lib/memmem.c: New file, taken from glibc.
73965
73966 2004-10-04  Simon Josefsson  <jas@extundo.com>
73967
73968         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
73969         '#ifdef USE_UNLOCKED_IO'.
73970
73971 2004-10-04  Simon Josefsson  <jas@extundo.com>
73972
73973         * config/srclist.txt: Add memmem from glibc.
73974
73975 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
73976
73977         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
73978
73979         * modules/argmatch, modules/argp, modules/closeout, modules/error,
73980         modules/exclude, modules/getdate, modules/getline,
73981         modules/getndelim2, modules/getpass, modules/getpass-gnu,
73982         modules/getusershell, modules/linebuffer, modules/md5,
73983         modules/mountlist, modules/posixtm, modules/readtokens,
73984         modules/readutmp, modules/regex, modules/sha1,
73985         modules/version-etc, modules/yesno:
73986         Remove dependency on unlocked-io.
73987
73988 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
73989
73990         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
73991
73992         * m4/unlocked-io.m4: Add copyright notice.
73993         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
73994
73995 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
73996
73997         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
73998         * lib/xmalloc.c (xmemdup): Likewise.
73999         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
74000         XFREE): Remove these long-obsolescent macros.
74001         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
74002         * lib/xstrdup.c: Remove.
74003
74004         * lib/regex.c (re_comp): Cast gettext return value to char *,
74005         Problem reported by Martin Neitzel via Mark D. Baushke.
74006
74007 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
74008
74009         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
74010         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
74011         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
74012         regex.c, sha1.c, version-etc.c, yesno.c:
74013         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
74014         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
74015         the includer's responsibility.
74016
74017         Sync from coreutils.
74018
74019         * lib/modechange.c (mode_compile): Don't decrement a pointer that
74020         points to the start of a string, as the C Standard says the
74021         resulting behavior is undefined.
74022
74023         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
74024         simple -> simple_backups, numbered_existing ->
74025         numbered_existing_backups, numbered -> numbered_backups
74026         to avoid shadowing problems.  All uses changed.
74027         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
74028         * lib/backupfile.c (check_extension, numbered_backup):
74029         Rename locals to avoid shadowing 'basename'.
74030         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
74031         once.
74032
74033         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
74034         * lib/.cvsignore: Add getopt.h.
74035
74036 2004-10-04  Bruno Haible  <bruno@clisp.org>
74037
74038         * modules/README: New file.
74039         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
74040         not a module.
74041
74042 2004-10-02  Jim Meyering  <jim@meyering.net>
74043
74044         * lib/dirfd.h, getpagesize.h: Add copyright notice.
74045
74046 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74047
74048         * modules/strsep: New file.
74049
74050 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74051
74052         * m4/strsep.m4: New file.
74053
74054 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74055
74056         * lib/strsep.h: New file.
74057         * lib/strsep.c: New file.
74058
74059 2004-10-01  Simon Josefsson  <jas@extundo.com>
74060
74061         * lib/snprintf.c (snprintf): Handle size==0.
74062
74063 2004-10-01  Simon Josefsson  <jas@extundo.com>
74064             Bruno Haible  <bruno@clisp.org>
74065
74066         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
74067         (snprintf): Declare 'args'.
74068
74069 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
74070
74071         * lib/snprintf.c: Remove comments as to why each header is needed.
74072
74073 2004-10-01  Bruno Haible  <bruno@clisp.org>
74074
74075         * MODULES.html.sh: Add strsep.
74076
74077 2004-09-30  Simon Josefsson  <jas@extundo.com>
74078
74079         * modules/snprintf: New file.
74080
74081 2004-09-30  Simon Josefsson  <jas@extundo.com>
74082
74083         * m4/snprintf.m4: New file.
74084
74085 2004-09-30  Simon Josefsson  <jas@extundo.com>
74086
74087         * lib/snprintf.h, lib/snprintf.c: New files.
74088
74089 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74090
74091         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
74092         (hol_entry_help): Never translate an empty string.
74093         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
74094         * lib/argp.h (OPTION_NO_TRANS): New option.
74095
74096 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
74097
74098         * modules/argp (Maintainer): Replace Simon Josefsson
74099         by Sergey Poznyakoff.
74100
74101 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
74102
74103         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
74104         changes merged back into glibc.
74105
74106 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
74107
74108         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
74109
74110 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
74111
74112         * lib/xvasprintf.c: Include xalloc.h.
74113         (xvasprintf): Use xalloc_die, not xmalloc_die.
74114
74115 2004-09-29  Bruno Haible  <bruno@clisp.org>
74116
74117         * modules/alloca-opt: New file, derived from modules/alloca.
74118         * modules/allocsa: Depend on alloca-opt instead of alloca.
74119         * modules/setenv: Likewise.
74120         * modules/vasnprintf: Likewise.
74121         * MODULES.html.sh: Add alloca-opt.
74122
74123 2004-09-28  Simon Josefsson  <jas@extundo.com>
74124
74125         * gnulib-tool: New parameter --lgpl, to asseert that modules are
74126         LGPL, and to replace license template from GPL to LGPL.
74127
74128 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
74129
74130         * modules/dummy: Change license to LGPL.
74131
74132 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
74133
74134         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
74135
74136 2004-09-24  Simon Josefsson  <jas@extundo.com>
74137
74138         * modules/minmax (License): Change from GPL to LGPL.
74139
74140 2004-09-23  Simon Josefsson  <jas@extundo.com>
74141
74142         * gnulib-tool (--import): Typo.
74143
74144 2004-09-23  Simon Josefsson  <jas@extundo.com>
74145
74146         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
74147
74148 2004-09-22  Bruno Haible  <bruno@clisp.org>
74149
74150         * modules/*: Add 'License' field.
74151         * gnulib-tool: Accept --extract-license option.
74152         (func_get_license): New function.
74153
74154 2004-09-21  Bruno Haible  <bruno@clisp.org>
74155
74156         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
74157         Reported by Simon Josefsson.
74158
74159 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
74160
74161         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
74162         gl_AC_TYPE_LONG_LONG.
74163
74164 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
74165
74166         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
74167
74168 2004-09-18  Simon Josefsson  <jas@extundo.com>
74169         and  Paul Eggert  <eggert@cs.ucla.edu>
74170
74171         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
74172         calls with autoreconf.  Define GL_LIB.
74173
74174 2004-09-14  Karl Berry  <karl@gnu.org>
74175
74176         * config/srclist.txt: unsync setenv.c, sigh.
74177
74178 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
74179
74180         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
74181         Problem reported by Bruno Haible in:
74182         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
74183
74184 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
74185
74186         * config/srclist.txt: Comment out argp-pvh.c.
74187
74188 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
74189
74190         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
74191         in case some system header has #define'd it.  Problem reported by
74192         Soeren D. Schulze in
74193         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
74194
74195 2004-09-09  Karl Berry  <karl@gnu.org>
74196
74197         * regex.[ch]: delete from the root.  These were supposed to be
74198                 synced with emacs cvs, but this has not happened for about
74199                 a year, and anyway nothing else uses emacs regex.[ch].
74200                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
74201                 lib/regex[.ch] is untouched.
74202
74203 2004-09-09  Bruno Haible  <bruno@clisp.org>
74204
74205         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
74206
74207 2004-09-09  Bruno Haible  <bruno@clisp.org>
74208
74209         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
74210         modifications.
74211         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
74212
74213 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
74214
74215         * modules/xvasprintf: New file.
74216         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
74217
74218 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
74219
74220         * lib/xvasprintf.h: New file.
74221         * lib/xvasprintf.c: New file.
74222         * lib/xasprintf.c: New file.
74223
74224 2004-09-08  Bruno Haible  <bruno@clisp.org>
74225
74226         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
74227
74228 2004-09-08  Bruno Haible  <bruno@clisp.org>
74229
74230         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
74231         length is > INT_MAX.
74232         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
74233         more.
74234
74235 2004-09-08  Bruno Haible  <bruno@clisp.org>
74236
74237         * lib/stdint_.h: New file, taken from GNU clisp.
74238
74239 2004-09-08  Bruno Haible  <bruno@clisp.org>
74240             Oskar Liljeblad  <oskar@osk.mine.nu>
74241
74242         * modules/stdint: New file.
74243         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
74244
74245 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74246
74247         Import from coreutils.
74248         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
74249         strings on unbounded length.  alloca's performance benefits aren't
74250         that important here.
74251         (V_STRDUP): Remove.
74252         (parse_with_separator): New function, with most of the internals
74253         of the old parse_user_spec.  Allow user to omit both user and group,
74254         for compatibility with FreeBSD.
74255         Clone only the user name, not the entire spec.
74256         Do not set *uid, *gid unless entirely successful.
74257         Avoid memory leak in some failing cases.
74258         Fix regression for USER.GROUP reported by Dmitry V. Levin in
74259         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
74260         (parse_user_spec): Rewrite to use parse_with_separator.
74261
74262 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74263
74264         * modules/userspec: Don't depend on alloca.
74265
74266 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74267
74268         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
74269
74270 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
74271
74272         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
74273         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
74274         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
74275
74276 2004-08-16  Simon Josefsson  <jas@extundo.com>
74277
74278         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
74279         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
74280         Add --dry-run for --import.
74281         Let user provided command line parameters override configure.ac
74282         settings.
74283
74284 2004-08-12  Simon Josefsson  <jas@extundo.com>
74285
74286         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
74287         as discussed with Paul Eggert in threads rooted at
74288         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
74289         and
74290         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
74291         Before, the test was empty, and relied on ELIDE_CODE in source
74292         code.)
74293         (gl_PREREQ_GETOPT): New macro.
74294         (gl_GETOPT): Use them.
74295
74296 2004-08-12  Simon Josefsson  <jas@extundo.com>
74297
74298         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
74299         * lib/getopt_.h: Renamed from getopt.h.
74300
74301 2004-08-12  Simon Josefsson  <jas@extundo.com>
74302
74303         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
74304         Change default library name from libfoo to libgnu.
74305         Now, if you have a configure.ac that says:
74306                 gl_SOURCE_BASE(gl)
74307                 gl_M4_BASE(gl/m4)
74308                 gl_MODULES(error getopt etcetera)
74309                 gl_INIT
74310         you can import all you need by running:
74311                 ../gnulib/gnulib-tool --import
74312
74313         * modules/getopt (Files): Rename getopt.h to getopt_.h.
74314         (Makefile.am): Rewrite, use logic from argz.
74315         (Include): Use <getopt.h> instead of "getopt.h".
74316
74317 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
74318
74319         * modules/argp (Files): Add m4/unlocked-io.m4.
74320         (Depends-on): Add extensions.
74321
74322 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
74323
74324         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
74325         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
74326         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
74327         Check for program_invocation_name, program_invocation_short_name,
74328         flockfile, funlockfile, features.h, _getopt_long_only_r.
74329
74330 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
74331
74332         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
74333         its complicated substitute.
74334         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
74335         and program_invocation_name.
74336         (__argp_basename) [!_LIBC]: Remove; the only use was
74337         replaced by its body.
74338         (__argp_short_program_name): Change condition from
74339         !defined __argp_short_program_name to
74340         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
74341         to match argp-namefrob.h.
74342         (__argp_failure): Don't assume strerror_r returns char *.
74343         * lib/argp-parse.c (N_): Define unconditionally.
74344         (argp_default_options): Fill out initializers with 0 to avoid
74345         gcc warnings.
74346
74347 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
74348
74349         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
74350         getopt1.c.
74351
74352 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
74353
74354         Merge from coreutils.
74355
74356         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
74357
74358         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
74359         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
74360
74361 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
74362
74363         Merge from coreutils.
74364
74365         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
74366         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
74367         for Reliant Unix 5.43.
74368
74369         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
74370         (union fooround): Use uintmax_t, not long int.
74371         The rest is a merge from libc:
74372         [defined _LIBC]: Include <shlib-compat.h>.
74373         (_obstack) [defined _LIBC]: Remove after 2.3.4.
74374
74375         * lib/settime.c (settime): Recode to avoid warning with
74376         Sun Forte C 6U2.
74377
74378         * lib/strverscmp.c: Convert to UTF-8.
74379
74380 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
74381
74382         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
74383         m4/uintmax_t.m4.
74384
74385 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74386
74387         * modules/xalloc-die: New file.
74388         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
74389
74390         * modules/md5 (Files): Add m4/uint32_t.m4.
74391         * modules/sha1: Renamed from modules/sha.
74392         (Files):
74393         Rename lib/sha.h to lib/sha1.h.
74394         Rename lib/sha.c to lib/sha1.c.
74395         Rename m4/sha.m4 to m4/sha1.m4.
74396         (lib_SOURCES): Likewise.
74397         (configure.ac): Rename gl_SHA to gl_SHA1.
74398         (Include): sha.h -> sha1.h.
74399
74400 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74401
74402         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
74403         * m4/sha1.m4: Renamed from sha.m4.
74404         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
74405
74406 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74407
74408         * lib/obstack.h (obstack_empty_p):
74409         Don't assume that chunk->contents is suitably aligned.
74410         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
74411         Likewise. Problem reported by Benno in
74412         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
74413
74414         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
74415         readable.  This could be improved further but it'd take some work.
74416
74417 2004-08-08  Simon Josefsson  <jas@extundo.com>
74418
74419         * modules/xgethostname (Depends-on): Remove exit and error (not
74420         used).
74421
74422         * modules/getpass-gnu: Add getpass.h.
74423         (Depends-on): Add stdbool.
74424         * modules/getpass: Add getpass.h.
74425
74426 2004-08-08  Simon Josefsson  <jas@extundo.com>
74427
74428         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
74429         Check getpass declaration.
74430
74431 2004-08-08  Simon Josefsson  <jas@extundo.com>
74432
74433         * lib/xgethostname.c: Don't include error.h (not used).
74434
74435         * lib/getpass.h: Add.
74436         * lib/getpass.c: Include getpass.h first.
74437
74438 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
74439
74440         * lib/xalloc-die.c: New file.
74441         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
74442         All uses removed.
74443         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
74444         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
74445         xalloc-die.c.
74446         (_, N_, xalloc_die): Move to xalloc-die.c.
74447         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
74448         so that we needn't mess with xalloc_msg_memory_exhausted.
74449
74450         * lib/sha1.h: Renamed from sha.h.
74451         (SHA1_H): Renamed from _SHA_H.
74452         (sha1_ctx): Renamed from sha_ctx.
74453         (sha1_init_ctx): Renamed from sha_init_ctx.
74454         (sha1_process_block): Renamed from sha_process_block.
74455         (sha1_process_bytes): Renamed from sha_process_bytes.
74456         (sha1_finish_ctx): Renamed from sha_finish_ctx.
74457         (sha1_read_ctx): Renamed from sha_read_ctx.
74458         (sha1_stream): Renamed from sha_stream.
74459         (sha1_buffer): Renamed from sha_buffer.
74460         * lib/sha1.c: Likewise; renamed from sha.c.
74461         Do not include <sys/types.h>.
74462         Include <stddef.h> rather than <stdlib.h>.
74463
74464 2004-08-08  Bruno Haible  <bruno@clisp.org>
74465
74466         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
74467         FILESYSTEM_PREFIX_LEN.
74468         * lib/progreloc.c: Likewise.
74469         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
74470
74471 2004-08-06  Simon Josefsson  <jas@extundo.com>
74472
74473         * modules/progname (Depends-on): Don't depend on stdbool.
74474
74475 2004-08-06  Simon Josefsson  <jas@extundo.com>
74476
74477         * modules/getsubopt: New file.
74478         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74479         getsubopt.
74480
74481 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
74482
74483         More merge from coreutils.
74484
74485         * m4/utimens.m4, m4/utimecmp.m4: New files.
74486         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
74487         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
74488         prereq.m4, sha.m4: Import changes from coreutils.
74489
74490 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
74491
74492         More merge from coreutils.
74493         * modules/raise, modules/readtokens0, modules/utimens:
74494         * modules/utimecmp, module/xnanosleep: New files.
74495         * modules/strftime: Add lib/strftime.h.
74496         Change include from <time.h> to "strftime.h".
74497         * modules/yesno: Add lib/yesno.h.
74498         * modules/backupfile: Remove lib/addext.c.
74499         * modules/euidaccess: Add stat-macros.h.
74500         * modules/canonicalize, modules/euidaccess,
74501         modules/filemode, modules/lchown, modules/makepath,
74502         modules/rmdir, modules/stat: Likewise.
74503
74504 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
74505
74506         Merge from tar.
74507         * lib/argp-help.c (make_hol, hol_append): Don't assume that
74508         SIZE_MAX is a valid preprocessor constant.
74509         (__argp_basename): Change from "#ifndef _LIBC"
74510         to "#ifndef __argp_short_program_name", so that
74511         we don't compile these functions for tar.
74512
74513         More merges from coreutils.
74514         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
74515         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
74516         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
74517         * lib/addext.c: Remove; no longer needed.
74518         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
74519         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
74520         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
74521         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
74522         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
74523         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
74524         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
74525         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
74526         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
74527         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
74528         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
74529         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
74530         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
74531         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
74532         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
74533         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
74534         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
74535         Import changes from coreutils.
74536
74537 2004-08-05  Simon Josefsson  <jas@extundo.com>
74538
74539         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
74540
74541 2004-08-05  Simon Josefsson  <jas@extundo.com>
74542
74543         * m4/getsubopt.m4: New file.
74544
74545 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
74546
74547         Merge from coreutils.
74548
74549         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
74550         * m4/getcwd-path-max.m4: New files.
74551
74552         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
74553         FILESYSTEM_PREFIX_LEN ->
74554         FILE_SYSTEM_PREFIX_LEN.
74555         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
74556         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
74557         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
74558         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
74559
74560         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
74561         prerequisite modules now handle the DOS stuff.
74562         Don't check for unistd.h.
74563
74564 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
74565
74566         Merge from coreutils.
74567
74568         * lib/.gdb-history: Remove; this doesn't belong here.
74569
74570         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
74571         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
74572         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
74573         * lib/getcwd.c: New files.
74574
74575         * lib/dirname.h: Include <stdbool.h>.
74576         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
74577         for consistency with POSIX terminology.  All uses changed.
74578         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
74579         (strip_trailing_slashes): Use bool for booleans.
74580         * lib/stripslash.c (strip_trailing_slashes): Likewise.
74581
74582         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
74583         sometimes returns a positive errno value even when it succeeds.
74584         (print_errno_message) [!LIBC]: Fall back on strerror if
74585         __strerror_r fails.
74586
74587         * lib/path-concat.c (mempcpy): Don't define if a system header defines
74588         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
74589         (longest_relative_suffix): New function.
74590         (path_concat): Use it.  Assume first argument is not NULL.
74591         Port to DOS.  Omit redundant separators.
74592         Report an error instead of returning NULL.
74593         Use mempcpy instead of memcpy.
74594         (xpath_concat): Remove: not declared or used.
74595
74596         * lib/same.h: Include <stdbool.h>
74597         (same_name): Return bool, not int.
74598         * lib/same.c (same_name): Likewise.
74599         (errno): Don't declare; we assume C89 or better now.
74600
74601         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
74602         if not already defined.
74603
74604         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
74605         * lib/dup-safer.c (errno): Likewise.
74606
74607 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
74608
74609         Merge from coreutils.
74610         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
74611         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
74612         * modules/path-concat: Don't depend on strdup.
74613
74614 2004-08-03  Simon Josefsson  <jas@extundo.com>
74615
74616         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
74617         * lib/progname.h: Don't include stdbool.h.
74618
74619 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
74620
74621         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
74622         * MODULES.html.sh (func_all_modules): Remove fatal.
74623
74624 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
74625
74626         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
74627
74628 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
74629
74630         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
74631         working.
74632
74633 2004-08-02  Simon Josefsson  <jas@extundo.com>
74634
74635         * lib/getsubopt.h: New file, with comments from Bruno Haible.
74636         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
74637         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
74638
74639 2004-08-01  Simon Josefsson  <jas@extundo.com>
74640
74641         * lib/xgetdomainname.c: Include stdlib.h, for free().
74642
74643 2004-07-19  Bruno Haible  <bruno@clisp.org>
74644
74645         * MODULES.html.sh (func_all_modules): Add dummy.
74646
74647 2004-07-16  Simon Josefsson  <jas@extundo.com>
74648
74649         * modules/dummy: New file.
74650
74651 2004-07-16  Simon Josefsson  <jas@extundo.com>
74652
74653         * lib/dummy.c: New file.
74654
74655 2004-07-16  Bruno Haible  <bruno@clisp.org>
74656
74657         * lib/backupfile.h: Add extern "C" for C++.
74658         * lib/closeout.h: Likewise.
74659         * lib/copy-file.h: Likewise.
74660         * lib/findprog.h: Likewise.
74661         * lib/full-write.h: Likewise.
74662         * lib/pathname.h: Likewise.
74663         * lib/progname.h: Likewise.
74664         * lib/stpcpy.h: Likewise.
74665         * lib/stpncpy.h: Likewise.
74666         * lib/strcase.h: Likewise.
74667         * lib/strstr.h: Likewise.
74668         * lib/xalloc.h: Likewise.
74669
74670         * lib/mbswidth.h: Add extern "C" for C++.
74671         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
74672
74673 2004-07-13  Robert Millan  <robertmh@gnu.org>
74674
74675         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
74676
74677 2004-07-09  Simon Josefsson  <jas@extundo.com>
74678
74679         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
74680         failed without this.)
74681
74682 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
74683
74684         * modules/chown (Files): Add lib/fchown-stub.c, since
74685         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
74686
74687 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
74688
74689         * lib/fchown-stub.c: New file.
74690
74691 2004-06-24  Jim Meyering  <jim@meyering.net>
74692
74693         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
74694
74695 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74696
74697         * modules/argz: Omit "#include".
74698
74699         * MODULES.html.sh (func_all_modules): Add calloc, to match
74700         2004-06-01 addition of calloc module.
74701
74702 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74703
74704         * m4/argz.m4: New file, which is autoupdated from libtool.
74705
74706 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74707
74708         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
74709         libtool.
74710
74711 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74712
74713         * config/srclist-update: Don't insist on "USA." before the
74714         close-comment, as libtool omits the period and puts the */ on a
74715         separate line.
74716         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
74717         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
74718
74719 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
74720
74721         * modules/argz: New file.
74722         * MODULES.html.sh (func_all_modules): Add argz.
74723
74724 2004-06-12  Jim Meyering  <jim@meyering.net>
74725         and  Paul Eggert  <eggert@cs.ucla.edu>
74726
74727         * modules/hash (Files): Add lib/xalloc.h.
74728         * modules/pipe (Depends-on): Add wait-process.
74729         * modules/stat (Depends-on): Add xalloc.
74730         * modules/userspec (Files): Add lib/userspec.h.
74731         * modules/xstrto
74732
74733         Upgrade from gettext-0.13.
74734         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
74735         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
74736         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
74737
74738 2004-06-10  Jim Meyering  <jim@meyering.net>
74739
74740         * lib/calloc.c: New file.
74741
74742 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
74743
74744         * lib/getdate.y (yylex): Allow space between sign and number.
74745         Problem reported by Dan Jacobson.
74746
74747 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
74748
74749         Merge from coreutils CVS.
74750
74751         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
74752         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
74753         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
74754         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
74755         xstrtol.m4: Fix copyright date and/or serial number.
74756
74757         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
74758         See if we need an fchown replacement.
74759         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
74760         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
74761         and use the replacement function if we detect either defect.
74762
74763         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
74764         gl_UTIMECMP.
74765
74766 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
74767         and  Jim Meyering  <jim@meyering.net>
74768
74769         Merge from coreutils CVS.
74770
74771         * lib/stat-macros.h: New file, with contents from file-type.h
74772         and coreutils' system.h.
74773         * lib/file-type.c: Include "stat-macros.h".
74774         * lib/file-type.h (file_type): Move all macro definitions to new file,
74775         stat-macros.h.
74776
74777         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
74778         Wrap old code with this conditional.
74779         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
74780         function that does not dereference symlinks.
74781         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
74782
74783         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
74784         dependency problems.
74785         (xreadlink): Accept new arg SIZE, for efficiency.
74786         All decls and uses changed.
74787         * lib/xreadlink.h: Include <stddef.h>, for size_t.
74788
74789         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
74790         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
74791
74792         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
74793         sysexits.h.
74794
74795 2004-06-01  Jim Meyering  <jim@meyering.net>
74796
74797         * m4/calloc.m4: New file.
74798
74799 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
74800
74801         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
74802         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
74803         Also, fix a typo in a diagnostic.
74804
74805 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
74806
74807         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
74808         or AC_FUNC_REALLOC.
74809
74810 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
74811
74812         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
74813         macros to be defined.
74814         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
74815         the allocator returns NULL because the requested size is zero.
74816
74817 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
74818
74819         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
74820         var.  Add comment explaining why libc still defines it.  This
74821         merges the following patch from glibc:
74822         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
74823
74824 2004-05-20  Andreas Schwab  <schwab@suse.de>
74825
74826         * m4/free.m4: Replace free if it not known to work, not the other
74827         way round.
74828
74829 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
74830
74831         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
74832         present in glibc since revision 1.1 of this file.
74833         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
74834         obstack_alignment_mask, obstack_alloc, obstack_base,
74835         obstack_blank, obstack_blank_fast, obstack_chunk_size,
74836         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
74837         obstack_grow0, obstack_init, obstack_int_grow,
74838         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
74839         obstack_next_free, obstack_object_size, obstack_ptr_grow,
74840         obstack_ptr_grow_fast, obstack_room): Remove declarations of
74841         nonexistent functions.
74842
74843 2004-05-18  Karl Berry  <karl@gnu.org>
74844
74845         * config/srclist.txt: break link for vasnprintf.c.
74846
74847 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
74848
74849         Port obstack to the AS/400, where pointers are 16 bytes wide and
74850         you cannot cast an integer to a valid pointer.  This patch is
74851         currently waiting to be integrated into glibc; see
74852         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
74853
74854         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
74855         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
74856         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
74857         (struct obstack): temp member is now a union of a pointer and
74858         an integer, instead of an integer.  All integer uses changed.
74859         This does not affect the physical layout of struct obstack,
74860         except on hosts (like the AS/400) where the size or alignment of
74861         void * is greater than that of ptrdiff_t.
74862         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
74863         __STDC__)]: Store temporary in pointer member of union, not
74864         integer member.
74865         * lib/obstack.c: Include <stddef.h>, for offsetof.
74866         (struct fooalign): Remove; it doesn't need a name.
74867         (union fooround): Change double to long double, and add void *.
74868         (DEFAULT_ALIGNMENT): Use offsetof to compute.
74869         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
74870         not a macro.  Hence the values are always int; so remove all
74871         casts-to-int in uses.
74872
74873 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
74874
74875         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
74876         we can get this patch merged into glibc.
74877
74878 2004-05-17  Derek R. Price  <derek@ximbiot.com>
74879             Paul Eggert  <eggert@cs.ucla.edu>
74880
74881         * m4/argp: Depend on alloca.
74882
74883 2004-05-17  Derek R. Price  <derek@ximbiot.com>
74884             Paul Eggert  <eggert@cs.ucla.edu>
74885
74886         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
74887         freecoding.
74888
74889 2004-05-17  Bruno Haible  <bruno@clisp.org>
74890
74891         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
74892         precision that consists of a '.' followed by an empty digit string.
74893         Patch by Tor Lillqvist <tml@iki.fi>.
74894
74895 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
74896
74897         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
74898         for backward compatibility with older code.  We need our own
74899         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
74900         it under some other name, and our alloca.h will define it.
74901
74902 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
74903             Derek Price  <derek@ximbiot.com>
74904
74905         * lib/alloca.c: Include <alloca.h>, to get our interface.
74906         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
74907         include <alloca.h> first.  Use C89 prototype for alloca; this
74908         requires including <stddef.h> for size_t.  Use extern "C" if C++.
74909         Use #elif for simplicity, since we can assume C89 now.
74910         Don't try to source the system alloca.h since it will not be found
74911         and to prevent recursively including its replacement.
74912         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
74913         * lib/regex.c: Likewise.
74914
74915 2004-05-16  Derek Price  <derek@ximbiot.com>
74916             Paul Eggert  <eggert@cs.ucla.edu>
74917
74918         getline cleanup.  This changes the getndelim2 API: both order of
74919         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
74920         no delimiter).
74921
74922         * lib/getline.c: Don't include stddef.h or stdio.h, since our
74923         interface does that.
74924         (getline): Always use getdelim, so that we don't have two
74925         copies of this code.
74926         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
74927         if available.
74928         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
74929         (GETNDELIM2_MAXIMUM): New macro.
74930         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
74931         instead of the old practice of delim2==0.  All callers changed.
74932         Return -1 on overflow, instead of returning junk.
74933         Do not set *linesize unless allocation succeeds.
74934         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
74935         that we include sys/types.h.
74936         * lib/getnline.h: Likewise.
74937         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
74938         (getndelim2): Reorder arguments.
74939         * lib/getnline.c (getnline, getndelim):
74940         Don't discard the NMAX argument.
74941         (getnline): Invoke getndelim, to avoid code duplication.
74942         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
74943         of (size_t) -1 by callers of the getnline family.
74944
74945 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
74946
74947         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
74948         Check for gettimeofday.
74949         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
74950         Check for settimeofday, stime.
74951
74952 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
74953
74954         * lib/nanosleep.c (suspended): Change its type from int to
74955         sig_atomic_t volatile.
74956         (first_call): Make it private to rpl_nanosleep, and have it
74957         be zero initially as that's a bit faster.
74958         (my_usleep): Round up fractional times instead of truncating them,
74959         as this is the usual meaning for 'sleep'.
74960
74961         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
74962         doesn't work.
74963         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
74964         (ENOSYS): Define if not defined.
74965         (settime): Fall back on stime if it exists and settimeofday fails.
74966         But don't bother with fallbacks if a method fails with errno == EPERM.
74967
74968 2004-05-11  Jim Meyering  <jim@meyering.net>
74969
74970         Prior to this change, the save_cwd caller required read access to the
74971         current directory on most systems (ones with the fchdir function).
74972
74973         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
74974         fails, try write-only, and finally, resort to using xgetcwd.
74975
74976 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
74977
74978         * lib/obstack.c, obstack.h: Import changes from libc.
74979
74980 2004-04-28  Bruno Haible  <bruno@clisp.org>
74981
74982         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
74983         also implicitly appends .exe to executables.
74984         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
74985         accepts Windows pathnames.
74986         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
74987         Treat Cygwin like Windows, since it now accepts Windows pathnames.
74988         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
74989         Treat Cygwin like Windows, since it now accepts Windows pathnames.
74990         Reported by Derek Robert Price <derek@ximbiot.com>.
74991
74992 2004-04-21  Karl Berry  <karl@gnu.org>
74993
74994         * config/srclist.txt (localcharset.c): break sync.
74995
74996 2004-04-20  Paul Eggert  <eggert@twinsun.com>
74997
74998         * m4/host-os.m4: Add a copyright notice.
74999
75000 2004-04-20  Jim Meyering  <jim@meyering.net>
75001
75002         Change UTILS_ to gl_ in AC_DEFINE'd names.
75003         Change utils_- and jm_-prefixed variables, too.
75004         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
75005         UTILS_FUNC_MKDIR_TRAILING_SLASH.
75006         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
75007
75008         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
75009         Don't emit trailing blanks.
75010         Also rename jm_-prefixed variables to have gl_ prefix.
75011
75012         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
75013         Also rename jm_-prefixed variables to have gl_ prefix.
75014
75015         * m4/jm-macros.m4: Reflect the renamings.
75016         * m4/prereq.m4: Likewise.
75017
75018 2004-04-20  Jim Meyering  <jim@meyering.net>
75019
75020         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
75021         memory.
75022
75023 2004-04-20  Jim Meyering  <jim@meyering.net>
75024             Bruno Haible  <bruno@clisp.org>
75025
75026         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
75027         memory when realloc fails.
75028
75029 2004-04-19  Jim Meyering  <jim@meyering.net>
75030
75031         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
75032         now that readutmp.c may call `free (0)'.
75033
75034 2004-04-19  Bruno Haible  <bruno@clisp.org>
75035
75036         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
75037         * m4/inttypes_h.m4: Likewise.
75038         * m4/stdint_h.m4: Likewise.
75039         * m4/intmax_t.m4: Likewise.
75040         * m4/uintmax_t.m4: Likewise.
75041
75042 2004-04-18  Jim Meyering  <jim@meyering.net>
75043
75044         * m4/prereq.m4: Don't forbid jm_ prefix.
75045
75046         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
75047         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
75048         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
75049         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
75050         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
75051         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
75052         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
75053         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
75054         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
75055         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
75056         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
75057         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
75058         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
75059         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
75060         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
75061         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
75062         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
75063         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
75064         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
75065
75066 2004-04-18  Jim Meyering  <jim@meyering.net>
75067
75068         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
75069         failure, don't leak memory and do call END_UTMP_ENT.
75070
75071 2004-04-16  Jim Meyering  <jim@meyering.net>
75072
75073         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
75074         coreutils' stat program.
75075         (gl_PREREQ): Don't require jm_PREREQ_STAT.
75076
75077 2004-04-11  Paul Eggert  <eggert@twinsun.com>
75078
75079         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
75080         C89.
75081         (CHAR_BIT): Remove, since we assume C89.
75082         Include <stdint.h> if available, as per current Autoconf CVS advice.
75083
75084 2004-03-31  Jim Meyering  <jim@meyering.net>
75085
75086         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
75087         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
75088         * m4/xalloc.m4: Likewise.
75089
75090 2004-03-30  Paul Eggert  <eggert@twinsun.com>
75091
75092         Merge from coreutils.
75093
75094         * m4/inttostr.m4: New file.
75095         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
75096         Require AM_STDBOOL_H and gl_TIMESPEC instead.
75097         Require gl_CLOCK_TIME.
75098         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
75099
75100 2004-03-30  Paul Eggert  <eggert@twinsun.com>
75101
75102         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
75103         not bool, to be more consistent with Unix conventions.
75104         Suggested by Bruno Haible.
75105
75106         Merge from coreutils.
75107
75108         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
75109         * lib/umaxtostr.c: New files.
75110
75111         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
75112         the usual <time.h> dance.
75113         (get_date): Change signature to support fractional time stamps.
75114         All callers changed.
75115         * lib/getdate.y: Include "getdate.h" first, as we can now
75116         assume C89 and don't need to worry about 'const'.
75117         Similarly, include "unlocked-io.h" near start, not in middle.
75118         Include <limits.h>.
75119         (textint.value): Use long int rather than int.
75120         (textint.digits): Use size_t rather than int.
75121         (BILLION, LOG10_BILLION): New constants.
75122         (parser_control): New member rel_ns.  Members day_ordinal,
75123         time_zone, month, day, hour, minutes, rel_year, rel_month,
75124         rel_day, rel_hour, rel_minutes, rel_seconds
75125         are now long int, not int.  Member seconds is now struct timespec,
75126         not int.  New member timespec_seen.  Members dates_seen, days_seen,
75127         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
75128         not int.
75129         (%union.intval): Now long int, not int.
75130         New member timespec.
75131         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
75132         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
75133         (spec): Now is a timespec or an item list.
75134         (timespec, items): New nonterminals.
75135         (time, rel, relunit, number, get_date):
75136         Add support for fractional seconds.
75137         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
75138         (gmtime, localtime, mktime): Remove decls; not needed with C89.
75139         (to_hour): First arg is now long int, not int.
75140         (to_year): Returns long int, not int.
75141         Don't treat year -70 like 70.
75142         (tm_diff): Returns long int, not int.
75143         (lookup_word): Use bool instead of int when appropriate.
75144         (yylex): Use size_t for count, not int.
75145         Detect overflow when parsing large integer constants.
75146         Add support for fractions.
75147         (get_date): Make pointers 'const' if possible.
75148         Use more-portable code to detect integer overflow.
75149         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
75150         Don't use ctime; it's not reliable if the year has >4 digits.
75151
75152         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
75153         This is for compatibility with BSD.
75154
75155         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
75156         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
75157         From coreutils' system.h.
75158
75159         * lib/userspec.c: Don't include "posixver.h".
75160         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
75161         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
75162         compatible extension.  Simplify code by removing a boolean int
75163         that was always nonzero if a string was nonnull.
75164
75165 2004-03-30  Jim Meyering  <jim@meyering.net>
75166
75167         Merge from coreutils.
75168
75169         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
75170         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
75171         on some systems one must include <grp.h> before it.
75172         Reported by Christian Krackowizer.
75173
75174 2004-03-30  Jim Meyering  <jim@meyering.net>
75175
75176         Merge from coreutils.
75177
75178         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
75179
75180         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
75181         an empty input stream.
75182
75183         * lib/readtokens.c: Include <stdbool.h>.
75184         (readtoken): Use `size_t' rather than int/long.
75185         All callers adjusted.
75186         Use `bool' rather than `int' where appropriate.
75187         Use memset rather than an explicit loop.
75188         Use x2nrealloc rather than xrealloc.
75189         Allow the use of `\0' as a delimiter.
75190         (readtokens): Likewise.
75191         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
75192
75193 2004-03-30  Jim Meyering  <jim@meyering.net>
75194
75195         * m4/realloc.m4: Remove file, since now it does no more than
75196         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
75197         the `configure.ac' section of module/realloc.
75198         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
75199
75200 2004-03-30  Bruno Haible  <bruno@clisp.org>
75201
75202         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
75203         nonnull.
75204
75205 2004-03-29  Paul Eggert  <eggert@twinsun.com>
75206
75207         Merge changes to getloadavg.c from coreutils and Emacs.
75208
75209         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
75210         Define to an expression, not to the empty string.
75211         Include cloexec.h and xalloc.h.
75212         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
75213         Use set_cloexec_flag rather than rolling our own.
75214         * lib/cloexec.c, lib/cloexec.h: New files.
75215
75216 2004-03-29  Paul Eggert  <eggert@twinsun.com>
75217
75218         * m4/cloexec.m4: New file.
75219
75220 2004-03-18  Paul Eggert  <eggert@twinsun.com>
75221
75222         * lib/getopt.h: Sync with libc CVS.
75223
75224 2004-03-18  Paul Eggert  <eggert@twinsun.com>
75225             Bruno Haible  <bruno@clisp.org>
75226
75227         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
75228         mbswidth.
75229
75230 2004-03-18  Paul Eggert  <eggert@twinsun.com>
75231             Bruno Haible  <bruno@clisp.org>
75232
75233         * lib/mbswidth.h: Include <wchar.h> only if
75234         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
75235         <wchar.h>.
75236         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
75237
75238 2004-03-09  Paul Eggert  <eggert@twinsun.com>
75239
75240         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
75241         Sync with libc CVS.
75242         * lib/getopt_int.h: New file, also synced from libc.
75243
75244 2004-03-09  Paul Eggert  <eggert@twinsun.com>
75245
75246         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
75247         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
75248         Bring back getopt.c, getopt.h, getopt1.c.
75249
75250 2004-03-07  Paul Eggert  <eggert@twinsun.com>
75251
75252         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
75253         All uses changed.  Check for sa_sigaction member; this fixes
75254         a bug first reported by Jason Andrade in
75255         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
75256
75257 2004-03-07  Paul Eggert  <eggert@twinsun.com>
75258
75259         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
75260         '#if' expressions.  Unlike the code it replaces, it does not
75261         depend on (defined _SC_PAGESIZE).  However, it does depend on
75262         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
75263         first reported by Jason Andrade in
75264         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
75265
75266 2004-02-25  Simon Josefsson  <jas@extundo.com>
75267
75268         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
75269
75270 2004-02-25  Simon Josefsson  <jas@extundo.com>
75271
75272         * lib/strdup.h: New file.
75273         * lib/strdup.c: Include it.
75274         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
75275         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
75276
75277 2004-02-23  Karl Berry  <karl@gnu.org>
75278
75279         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
75280         (from fencepost.gnu.org:/gd/gnuorg).
75281
75282 2004-02-23  Karl Berry  <karl@gnu.org>
75283
75284         * config/srclistvars.sh (GNUORG) [karl]: redefine.
75285         * config/srclist.txt: add maintain/standards documents.
75286
75287 2004-02-18  Bruno Haible  <bruno@clisp.org>
75288
75289         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
75290         Reported by Derek Robert Price <derek@ximbiot.com>.
75291
75292 2004-02-16  Karl Berry  <karl@gnu.org>
75293
75294         * config/mkinstalldirs, install-sh: update from automake.
75295
75296 2004-02-06  Karl Berry  <karl@gnu.org>
75297
75298         * m4/po.m4: update from gettext 0.14.1.
75299
75300 2004-02-06  Karl Berry  <karl@gnu.org>
75301
75302         * lib/config.charset: update from gettext 0.14.1.
75303
75304 2004-02-05  Paul Eggert  <eggert@twinsun.com>
75305
75306         Add comments and code, prompted by suggestions from Bruno Haible
75307         for sh-quote.
75308         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
75309         describing the enum quoting_style values.
75310         * lib/quotearg.c (quotearg_alloc): New function.
75311         (quotearg_buffer_restyled): Treat lone { and } as special.
75312         Treat = as special.  Work around bug with older shells
75313         that "see" a '\' that is really the 2nd byte of a multibyte char.
75314         Quote empty string with shell_quoting_style.
75315
75316 2004-02-03  Bruno Haible  <bruno@clisp.org>
75317
75318         * m4/pipe.m4: New file, from GNU gettext.
75319
75320 2004-02-03  Bruno Haible  <bruno@clisp.org>
75321
75322         * lib/pipe.h: New file, from GNU gettext.
75323         * lib/pipe.c: New file, from GNU gettext.
75324
75325 2004-01-27  Bruno Haible  <bruno@clisp.org>
75326
75327         * m4/execute.m4: New file, from GNU gettext.
75328
75329 2004-01-27  Bruno Haible  <bruno@clisp.org>
75330
75331         * lib/execute.h: New file, from GNU gettext.
75332         * lib/execute.c: New file, from GNU gettext.
75333         * lib/w32spawn.h: New file, from GNU gettext.
75334
75335 2004-01-24  Paul Eggert  <eggert@twinsun.com>
75336
75337         Merge from diffutils.
75338
75339         * lib/file-type.c (file_type): Add typed memory objects.
75340         * lib/file-type.h (S_TYPEISTMO): New macro.
75341
75342         * lib/c-stack.h (c_stack_action): Remove argv argument.
75343         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
75344         (die): Don't calculate message unless segv_action returns.
75345         (get_stack_location, min_address_from_argv, max_address_from_argv,
75346         volatile stack_base, volatile_stack_size): Remove.
75347         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
75348         that every segmentation violation is a stack overflow.  (Ouch!)
75349         See Debian bug 136249 (still outstanding) for more info about why
75350         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
75351
75352 2004-01-24  Paul Eggert  <eggert@twinsun.com>
75353
75354         Exit-status fix from coreutils.
75355
75356         Use exit_failure consistently in place of EXIT_FAILURE,
75357         so that program exit statuses are consistent on failure.
75358
75359         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
75360         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
75361         * lib/argmatch.h: Comment fix to match the above.
75362         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
75363         Now a macro referring to exit_failure, instead of a separate
75364         variable.  Include "exitfail.h" to get it.
75365         * lib/xstrtol.h: Include "exitfail.h".
75366         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
75367
75368         * lib/long-options.c (parse_long_options): Use prototype
75369         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
75370         for clarity.
75371
75372 2004-01-21  Jim Meyering  <jim@meyering.net>
75373
75374         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
75375         so as not to conflict with a different-sized __mktime_internal
75376         function in GNU libc.
75377         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
75378         Problem building statically-linked `ls' reported by Michael Brunnbauer.
75379
75380 2004-01-20  Karl Berry  <karl@gnu.org>
75381
75382         * config/config.guess: update from config.
75383
75384         * config/srclistvars.sh: GNUWWWLICENSES for karl.
75385
75386 2004-01-20  Bruno Haible  <bruno@clisp.org>
75387
75388         Safer stack allocation.
75389         * lib/setenv.c: Include allocsa.h.
75390         (alloca): Remove fallback definition.
75391         (freea): Remove macro.
75392         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
75393         instead of freea.
75394
75395 2004-01-20  Bruno Haible  <bruno@clisp.org>
75396
75397         * m4/eealloc.m4: New file, from GNU gettext.
75398
75399 2004-01-20  Bruno Haible  <bruno@clisp.org>
75400
75401         * m4/allocsa.m4: New file, from GNU gettext.
75402
75403 2004-01-20  Bruno Haible  <bruno@clisp.org>
75404
75405         * lib/xallocsa.h: New file, from GNU gettext.
75406         * lib/xallocsa.c: New file, from GNU gettext.
75407
75408 2004-01-20  Bruno Haible  <bruno@clisp.org>
75409
75410         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
75411
75412 2004-01-20  Bruno Haible  <bruno@clisp.org>
75413
75414         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
75415         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
75416         specially.
75417
75418 2004-01-20  Bruno Haible  <bruno@clisp.org>
75419
75420         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
75421         patch.
75422
75423 2004-01-20  Bruno Haible  <bruno@clisp.org>
75424
75425         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
75426
75427 2004-01-20  Bruno Haible  <bruno@clisp.org>
75428
75429         * lib/eealloc.h: New file.
75430
75431 2004-01-20  Bruno Haible  <bruno@clisp.org>
75432
75433         * lib/binary-io.h: Avoid warnings on Cygwin.
75434
75435 2004-01-20  Bruno Haible  <bruno@clisp.org>
75436
75437         * lib/allocsa.h: New file, from GNU gettext.
75438         * lib/allocsa.c: New file, from GNU gettext.
75439
75440 2004-01-18  Karl Berry  <karl@gnu.org>
75441
75442         * doc/gpl.texi, doc/lgpl.texi: new files.
75443
75444 2004-01-18  Karl Berry  <karl@gnu.org>
75445
75446         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
75447         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
75448
75449 2004-01-15  Paul Eggert  <eggert@twinsun.com>
75450
75451         Merge from coreutils.
75452
75453         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
75454         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
75455         (gl_DEFAULT_POSIX2_VERSION): Move
75456         the documentation from 'configure' into 'config.hin',
75457         so that 'configure --help' isn't burdened by it and
75458         we don't have to worry about its formatting there.
75459         Reword the documentation so that it's more succinct
75460         and can be run together into a single paragraph.
75461         * m4/same.m4 (gl_SAME): Check for pathconf.
75462
75463 2004-01-15  Paul Eggert  <eggert@twinsun.com>
75464
75465         Merge from coreutils.
75466
75467         * lib/posixver.c: Include posixver.h.
75468
75469         * lib/same.c: Include <stdbool.h>, <limits.h>.
75470         (_POSIX_NAME_MAX): Define if not defined.
75471         (MIN): New macro.
75472         (same_name): If file names are silently truncated, report
75473         that the file names are the same if they are the same after
75474         the silent truncation.
75475
75476         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
75477         conversion function.
75478         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
75479         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
75480         longer needed.
75481
75482 2004-01-15  Jim Meyering  <jim@meyering.net>
75483
75484         Merge from coreutils.
75485
75486         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
75487         if no library is required.
75488         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
75489         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
75490         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
75491         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
75492         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
75493         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
75494         value, $ac_cv_search_crypt, if it's "none required".
75495         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
75496         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
75497         not gl_FUNC_GETLOADAVG.
75498         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
75499         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
75500
75501 2004-01-15  Jim Meyering  <jim@meyering.net>
75502
75503         Merge from coreutils.
75504
75505         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
75506         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
75507         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
75508
75509         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
75510         optional configure-time default.
75511
75512         * lib/version-etc.c (version_etc_copyright): Update copyright date.
75513
75514         * lib/xreadlink.c (xreadlink): Correct outdated comment.
75515
75516 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
75517
75518         Merge from coreutils.
75519
75520         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
75521         value, $ac_cv_search_nanosleep, if it's "none required".
75522
75523 2004-01-14  Paul Eggert  <eggert@twinsun.com>
75524
75525         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
75526         with like-named macro in fnmatch.c.
75527         (EXT): Use an internal constant instead.
75528
75529         Merge fnmatch patches from glibc.
75530         * lib/fnmatch.c (mbsinit): Remove define.
75531         Add libc_hidden_ver (__fnmatch, fnmatch).
75532         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
75533         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
75534
75535 2004-01-14  Karl Berry  <karl@gnu.org>
75536
75537         * config/install-sh: update from automake.
75538
75539 2004-01-13  Karl Berry  <karl@gnu.org>
75540
75541         * config/install-sh: update from automake.
75542
75543 2004-01-09  Karl Berry  <karl@gnu.org>
75544
75545         * config/install-sh: update from automake.
75546
75547 2004-01-05  Karl Berry  <karl@gnu.org>
75548
75549         * config/config.{sub,guess}: update from config.
75550
75551 2003-12-31  Karl Berry  <karl@gnu.org>
75552
75553         * config/depcomp: update from automake.
75554
75555 2003-12-14  Karl Berry  <karl@gnu.org>
75556
75557         * lib/config.charset: update from gettext-runtime.
75558
75559 2003-12-03  Paul Eggert  <eggert@twinsun.com>
75560
75561         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
75562         Bug reported by Alfred M. Szmidt.
75563
75564 2003-12-03  Bruno Haible  <bruno@clisp.org>
75565
75566         * m4/gettext.m4: Upgrade from gettext-0.13.
75567         * m4/po.m4: Upgrade from gettext-0.13.
75568         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
75569         * m4/intmax.m4: New file, from gettext-0.13.
75570         * m4/printf-posix.m4: New file, from gettext-0.13.
75571
75572 2003-11-29  Karl Berry  <karl@gnu.org>
75573
75574         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
75575
75576 2003-11-25  Paul Eggert  <eggert@twinsun.com>
75577             Bruno Haible  <bruno@clisp.org>
75578
75579         * lib/printf-parse.h: Don't include sys/types.h.
75580         (ARG_NONE): New macro.
75581         (char_directive): Change type of *arg_index fields to size_t.
75582         * lib/printf-parse.c: Don't include sys/types.h.
75583         (SSIZE_MAX): Remove macro.
75584         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
75585         Remove unnecessary overflow check.
75586         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
75587         fields.
75588
75589 2003-11-25  Bruno Haible  <bruno@clisp.org>
75590
75591         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
75592
75593 2003-11-25  Bruno Haible  <bruno@clisp.org>
75594
75595         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
75596         gt_TYPE_SSIZE_T.
75597
75598 2003-11-24  Paul Eggert  <eggert@twinsun.com>
75599
75600         * modules/alloca: Remove dependency on xalloc.
75601
75602 2003-11-24  Paul Eggert  <eggert@twinsun.com>
75603
75604         * lib/alloca.c: Remove dependency on xalloc module.
75605         (xalloc_die): Remove.
75606         (memory_full) [!defined emacs]: New macro.
75607         [!defined emacs]: Don't include xalloc.h.
75608         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
75609         address arithmetic overflows.  Change datatypes a bit to avoid
75610         unnecessary casts.
75611
75612 2003-11-22  Jim Meyering  <jim@meyering.net>
75613
75614         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
75615         s/size/size_t/.
75616
75617 2003-11-21  Karl Berry  <karl@gnu.org>
75618
75619         * config/config.{sub,guess}: update from config.
75620
75621 2003-11-18  Karl Berry  <karl@gnu.org>
75622
75623         * config/config.{sub,guess}: update from config.
75624
75625         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
75626
75627 2003-11-17  Paul Eggert  <eggert@twinsun.com>
75628
75629         * README: Mention that S+T cannot overflow if S is the size of
75630         an existing object and T is sufficiently small.
75631
75632 2003-11-17  Jim Meyering  <jim@meyering.net>
75633
75634         On systems without utime and without a utimes function capable of
75635         dealing with a NULL struct utimbuf* argument, this utime replacement
75636         could -- in unusual circumstances -- leak a file descriptor.
75637         * lib/utime.c: Include <unistd.h> and <errno.h>.
75638         (utime_null): Be sure to close `fd' and to preserve errno.
75639         Reported by Geoff Collyer via Arnold Robbins.
75640
75641 2003-11-17  Bruno Haible  <bruno@clisp.org>
75642
75643         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
75644         (Depends-on): Add xsize.
75645
75646 2003-11-17  Bruno Haible  <bruno@clisp.org>
75647
75648         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
75649
75650 2003-11-17  Bruno Haible  <bruno@clisp.org>
75651
75652         * lib/vasnprintf.c (alloca): Remove fallback definition.
75653         (freea): Remove definition.
75654         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
75655         Reported by Paul Eggert.
75656
75657 2003-11-16  Paul Eggert  <eggert@twinsun.com>
75658             Bruno Haible  <bruno@clisp.org>
75659
75660         Protect against address arithmetic overflow.
75661         * lib/printf-args.h: Include stddef.h.
75662         (arguments): Change type of field 'count' to size_t.
75663         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
75664         'unsigned int' where appropriate.
75665         * lib/printf-parse.h: Include sys/types.h.
75666         (char_directive): Change type of *arg_index fields to ssize_t.
75667         (char_directives): Change type of fields 'count', max_*_length to
75668         size_t.
75669         * lib/printf-parse.c: Include sys/types.h and xsize.h.
75670         (SSIZE_MAX): Define fallback value.
75671         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
75672         instead of 'int' where appropriate. Check a_allocated, d_allocated
75673         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
75674         * lib/vasnprintf.c: Include xsize.h.
75675         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
75676         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
75677         overflow. Avoid wraparound when converting a width or precision from
75678         decimal to binary.
75679
75680 2003-11-16  Bruno Haible  <bruno@clisp.org>
75681
75682         Update from GNU gettext.
75683         * lib/printf-parse.c: Generalize to it can be compiled for wide
75684         strings.
75685         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
75686         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
75687         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
75688         SNPRINTF): New macros.
75689         Don't include <alloca.h> if the file is used inside libintl.
75690         (local_wcslen): New function, for Solaris 2.5.1.
75691         (VASNPRINTF): Use it instead of wcslen.
75692
75693 2003-11-16  Bruno Haible  <bruno@clisp.org>
75694
75695         * lib/xsize.h (xmax): New function.
75696         (xsum, xsum3, xsum4): Declare as "pure" functions.
75697
75698 2003-11-12  Paul Eggert  <eggert@twinsun.com>
75699
75700         * modules/xalloc (Files): Undo latest change, since xalloc.h
75701         no longer needs SIZE_MAX or PTRDIFF_MAX.
75702
75703 2003-11-12  Paul Eggert  <eggert@twinsun.com>
75704
75705         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
75706         gl_PTRDIFF_MAX.
75707
75708 2003-11-12  Paul Eggert  <eggert@twinsun.com>
75709
75710         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
75711         "return", to pacify some unknown compiler.  Problem reported
75712         by Joerg Schilling.
75713
75714 2003-11-12  Paul Eggert  <eggert@twinsun.com>
75715
75716         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
75717         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
75718         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
75719         heuristic is just as accurate as far as we know, and it removes a
75720         dependency on size_max.m4 and ptrdiff_max.m4.
75721
75722 2003-11-11  Bruno Haible  <bruno@clisp.org>
75723
75724         * modules/xsize (Files): Add m4/size_max.m4.
75725         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
75726
75727 2003-11-11  Bruno Haible  <bruno@clisp.org>
75728
75729         * m4/size_max.m4: New file.
75730         * m4/ptrdiff_max.m4: New file.
75731         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
75732         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
75733         (gl_XALLOC): Invoke it.
75734
75735 2003-11-11  Bruno Haible  <bruno@clisp.org>
75736
75737         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
75738         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
75739         defined.
75740
75741 2003-11-10  Paul Eggert  <eggert@twinsun.com>
75742
75743         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
75744         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
75745         rejected some allocations of exactly SIZE_MAX - 2 bytes.
75746         From Bruno Haible.
75747         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
75748         not (size_t) -1, since it's defined here.
75749
75750 2003-11-09  Karl Berry  <karl@gnu.org>
75751
75752         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
75753
75754 2003-11-06  Paul Eggert  <eggert@twinsun.com>
75755
75756         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
75757         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
75758         Reject sizes of exactly SIZE_MAX bytes.
75759         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
75760         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
75761
75762 2003-11-05  Bruno Haible  <bruno@clisp.org>
75763
75764         * lib/xsize.h: Include limits.h, to avoid a possible collision with
75765         SIZE_MAX defined in <limits.h> on Solaris.
75766
75767 2003-11-04  Jim Meyering  <jim@meyering.net>
75768
75769         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
75770         variable names, rather than @VAR@.
75771         * modules/poll: Likewise.
75772
75773 2003-11-04  Bruno Haible  <bruno@clisp.org>
75774
75775         * modules/xsize: New file.
75776         * modules/linebreak: Depend on xsize.
75777         * MODULES.html.sh (func_all_modules): Add xsize.
75778
75779 2003-11-04  Bruno Haible  <bruno@clisp.org>
75780
75781         * m4/xsize.m4: New file.
75782
75783 2003-11-04  Bruno Haible  <bruno@clisp.org>
75784
75785         * lib/xsize.h: New file.
75786         * lib/linebreak.c: Include xsize.h.
75787         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
75788         argument for overflow.
75789         Suggested by Paul Eggert.
75790
75791 2003-11-03  Karl Berry  <karl@gnu.org>
75792
75793         * config/config.{guess,sub}: update from config.
75794
75795 2003-11-03  Jim Meyering  <jim@meyering.net>
75796
75797         * modules/userspec (lib_SOURCES): Add userspec.h.
75798         (Include): Add "userspec.h".
75799         Improve description.
75800
75801 2003-11-03  Jim Meyering  <jim@meyering.net>
75802
75803         * lib/userspec.c: Include "userspec.h".
75804         * lib/userspec.h: New file.
75805
75806 2003-11-03  Bruno Haible  <bruno@clisp.org>
75807
75808         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
75809
75810 2003-11-03  Bruno Haible  <bruno@clisp.org>
75811
75812         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
75813         available, to avoid (extremely rare) race condition.
75814         Suggested by Paul Eggert.
75815
75816 2003-11-02  Karl Berry  <karl@gnu.org>
75817
75818         * config/srclist.txt (vasprintf.c): sync broken, sigh.
75819
75820 2003-10-31  Paul Eggert  <eggert@twinsun.com>
75821
75822         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
75823         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
75824         (read_filesystem_list): Set and use me_type_malloced.
75825         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
75826         whatever the type happens to be), for brevity and consistency.
75827         Check for size calculation overflow on Alphas running OSF/1.
75828
75829 2003-10-31  Jim Meyering  <jim@meyering.net>
75830
75831         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
75832
75833         * lib/linebuffer.c: Include <string.h> for declaration of memset.
75834
75835 2003-10-30  Paul Eggert  <eggert@twinsun.com>
75836             Bruno Haible  <bruno@clisp.org>
75837
75838         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
75839         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
75840
75841 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
75842
75843         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
75844         netbsd*-gnu*.  Suggested by Robert Millan.
75845
75846 2003-10-29  Paul Eggert  <eggert@twinsun.com>
75847
75848         * modules/group-member: Depend on stdbool.
75849
75850 2003-10-29  Paul Eggert  <eggert@twinsun.com>
75851
75852         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
75853
75854 2003-10-29  Paul Eggert  <eggert@twinsun.com>
75855
75856         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
75857         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
75858         after the 'gnu' in these cases.  This fixes some bugs in the
75859         previous change, and is based on suggestions by Robert Millan.
75860
75861 2003-10-29  Paul Eggert  <eggert@twinsun.com>
75862
75863         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
75864         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
75865         no longer needed.
75866         * lib/quotearg.c (quotearg_n_options): Use it.
75867         * lib/group-member.c: Include <stdbool.h>.
75868         (free_group_info): Arg is now const *; don't free arg.
75869         (get_group_info): Now returns bool and accepts struct group_info *,
75870         rather than returning a malloc'ed struct group_info *.
75871         All uses changed.  Check for overflow in internal size calculation.
75872
75873         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
75874         rather than xmalloc/xrealloc.
75875         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
75876         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
75877         conformance bug: the old code used a pointer after freeing the
75878         storage that it addressed.
75879         * lib/hash.c (hash_initialize): Simplify the code by using
75880         xalloc_oversized rather than doing it by hand.
75881         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
75882         the buffer preserved.  Use free and xmalloc instead.
75883         * lib/quotearg.c (quotearg_n_options): Likewise.
75884         Use a simpler test for size overflow.  Don't use xalloc_oversized
75885         because unsigned int might be wider than size_t (!); this suggests
75886         that we should switch from unsigned int to size_t for slot numbers.
75887
75888 2003-10-28  Paul Eggert  <eggert@twinsun.com>
75889
75890         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
75891         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
75892         NetBSD kernels.  Requested by Richard Stallman.
75893
75894 2003-10-27  Paul Eggert  <eggert@twinsun.com>
75895
75896         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
75897         to allocate the returned structure.  Do not allocate a subarray,
75898         as x2nrealloc will do that.
75899         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
75900         instead of xnrealloc.
75901         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
75902
75903 2003-10-27  Bruno Haible  <bruno@clisp.org>
75904
75905         * lib/stdbool_.h: Better support for BeOS.
75906
75907 2003-10-26  Paul Eggert  <eggert@twinsun.com>
75908
75909         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
75910         now uses inline.
75911
75912 2003-10-26  Paul Eggert  <eggert@twinsun.com>
75913
75914         * lib/xalloc.h (xalloc_oversized): New static inline function, for
75915         callers that want to do their own size-overflow checking.  Include
75916         <stdbool.h>, since xalloc_oversized returns bool.
75917         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
75918         to use xalloc_oversized.
75919
75920         Add two functions x2realloc, x2nrealloc, for programs that grow
75921         arrays dynamically by doubling their sizes.
75922         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
75923         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
75924         New functions.
75925
75926         Port to C99 semantics for 'inline' of external functions.
75927         Bug reported by Bruno Haible.
75928         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
75929         with the old contents of xnmalloc.
75930         (xnmalloc, xmalloc): Use it.
75931         (xnrealloc_inline): New static inline function,
75932         with the old contents of xnrealloc.
75933         (xnrealloc, xrealloc): Use it.
75934
75935         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
75936         that.
75937
75938 2003-10-26  Karl Berry  <karl@gnu.org>
75939
75940         * config/srclist.txt (COPYING.DOC): no longer available from
75941         /gd/gnuorg; don't know where the ultimate source is.
75942
75943 2003-10-25  Paul Eggert  <eggert@twinsun.com>
75944
75945         Fix several address-calculation bugs in the hash modules,
75946         plus some minor code cleanup.
75947
75948         * lib/hash.h: Include <stdbool.h>, for bool.
75949         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
75950         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
75951         hash_get_n_entries, hash_get_max_bucket_length,
75952         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
75953         hash_rehash): Use size_t rather than unsigned.
75954         * lib/hash.c (struct hash_table, hash_get_n_buckets,
75955         hash_get_n_buckets_used, hash_get_n_entries,
75956         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
75957         hash_get_entries, hash_do_for_each, hash_string, is_prime,
75958         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
75959         Likewise.
75960         (SIZE_MAX): Define if not defined.
75961         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
75962         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
75963         hash_print):
75964         Use const * when possible.
75965         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
75966         (check_tuning): Fix bug: if tuning parameters were very close to
75967         0 or 1, rounding errors could have caused subscript violations.
75968         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
75969         (hash_initialize): Add 'fail:' label
75970         to free table and return NULL, and use it to simplify code.
75971         Use calloc rather than clearing the storage ourself.
75972         (hash_initialize, hash_rehash): Check for arithmetic overflow in
75973         buffer size calculations.
75974         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
75975         Include <stddef.h>, for size_t.
75976         * lib/hash-pjw.c (hash_pjw): Likewise.
75977         Switch to method described by Bruno Haible.
75978         Include <limits.h>, for CHAR_BIT.
75979         (SIZE_BITS): New macro.
75980
75981 2003-10-23  Paul Eggert  <eggert@twinsun.com>
75982
75983         * m4/getline.m4 (AM_FUNC_GETLINE):
75984         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
75985         hosts.  Problem reported by Derek Robert Price in
75986         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
75987         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
75988         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
75989
75990 2003-10-21  Paul Eggert  <eggert@twinsun.com>
75991
75992         * lib/getndelim2.c (getndelim2): When size calculation overflows,
75993         ceiling the allocation at NMAX bytes rather than silently
75994         discarding input bytes before NMAX is reached.  This makes
75995         a difference only if NMAX exceeds SIZE_MAX / 2.
75996
75997         * lib/obstack.c: Merge from glibc.
75998         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
75999         Add libc_hidden_def (_obstack_newchunk).
76000         (_obstack_free) [! defined _LIBC]: Remove.
76001         [defined _LIBC]: Make a strong alias from obstack_free, rather than
76002         a clone of the function body.
76003         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
76004         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
76005
76006         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
76007         glibc.
76008         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
76009         arg to memcpy.
76010
76011         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
76012         (obstack_ptr_grow_fast, obstack_int_grow_fast):
76013         Don't use lvalue casts, as GCC plans to remove support for them
76014         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
76015         was also present in the non-GCC version, indicating that this
76016         code had always been buggy and had never been widely used.
76017         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
76018         Use the fast variant of each macro, rather than copying the
76019         definiens of the fast variant; that way, we'll be more likely to
76020         catch future bugs in the fast variants.
76021
76022 2003-10-20  Bruno Haible  <bruno@clisp.org>
76023
76024         * modules/wait-process: New file.
76025         * MODULES.html.sh (func_all_modules): Add wait-process.
76026
76027 2003-10-20  Bruno Haible  <bruno@clisp.org>
76028
76029         * m4/wait-process.m4: New file.
76030
76031 2003-10-20  Bruno Haible  <bruno@clisp.org>
76032
76033         * lib/wait-process.h: New file, from GNU gettext.
76034         * lib/wait-process.c: New file, from GNU gettext.
76035
76036 2003-10-19  Jim Meyering  <jim@meyering.net>
76037
76038         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
76039         HPUX 10.20.
76040
76041 2003-10-18  Karl Berry  <karl@gnu.org>
76042
76043         * config/config.guess: update from config.
76044
76045 2003-10-16  Paul Eggert  <eggert@twinsun.com>
76046
76047         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
76048         (getgroups): First arg is int, not size_t.
76049         Don't let 'free' mangle errno.
76050
76051 2003-10-16  Paul Eggert  <eggert@twinsun.com>
76052
76053         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
76054
76055 2003-10-16  Karl Berry  <karl@gnu.org>
76056
76057         * config/config.{guess,sub}: update from config.
76058
76059 2003-10-16  Jim Meyering  <jim@meyering.net>
76060
76061         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
76062         memcpy.
76063
76064 2003-10-15  Paul Eggert  <eggert@twinsun.com>
76065
76066         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
76067         (SIZE_MAX): Remove.
76068         (new_exclude, add_exclude_file): Initial size no longer needs to
76069         be a power of 2.
76070         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
76071         our own address arithmetic overflow checking.
76072
76073         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
76074         (fnmatch): Do not alloca more than 2000 wide characters;
76075         instead, use malloc for large buffers.
76076         Check for address arithmetic overflow, and return -1
76077         with errno set to ENOMEM in that case.
76078         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
76079         (NEW_PATTERN): Do not alloca more than 8000 bytes;
76080         instead, return -1.  Check for address arithmetic overflow.
76081
76082 2003-10-14  Paul Eggert  <eggert@twinsun.com>
76083
76084         Handle invalid suffixes and overflow independently, so that
76085         callers can treat them independently as needed.  Fix some bugs in
76086         suffix handling, e.g., "100k@" was not diagnosed as an invalid
76087         suffix for a human-readable blocksize.  The major caller-visible
76088         change is the addition of a new
76089         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
76090         that both overflow and suffix chars were found.
76091
76092         * lib/human.c (humblock): Don't check separately for invalid suffix
76093         char; that is xstrtoumax's job (now that its bug is fixed).
76094         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
76095         INTMAX_MAX]: New macros.
76096         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
76097         TYPE_MAXIMUM): New macros.
76098         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
76099         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
76100         if overflow occurs, as it's what __strtol does and it's more useful
76101         in practice.
76102         (__xstrtol): If __strtol reports some error other than ERANGE,
76103         reflect it to the caller as LONGINT_INVALID.  If it reports
76104         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
76105         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
76106         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
76107         value.
76108         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
76109         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
76110         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
76111         [defined UINTMAX_MAX]: New macros.
76112
76113 2003-10-14  Bruno Haible  <bruno@clisp.org>
76114
76115         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
76116
76117 2003-10-14  Bruno Haible  <bruno@clisp.org>
76118
76119         * m4/sig_atomic_t: New file, from GNU gettext.
76120         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
76121
76122 2003-10-14  Bruno Haible  <bruno@clisp.org>
76123
76124         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
76125         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
76126         Also use volatile where needed.
76127
76128 2003-10-12  Paul Eggert  <eggert@twinsun.com>
76129
76130         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
76131         Change maintainer from Bruno Haible to 'all'.
76132
76133 2003-10-12  Paul Eggert  <eggert@twinsun.com>
76134
76135         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
76136
76137 2003-10-12  Paul Eggert  <eggert@twinsun.com>
76138
76139         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
76140         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
76141         and define in terms of the other primitives.
76142         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
76143         (SIZE_MAX): Define if not already defined.
76144         (array_size_overflow): New function.
76145         (xalloc_die): Abort instead of exiting if 'error' returns.
76146         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
76147         (xmalloc, xrealloc): Use them.
76148         (xcalloc): Check for address arithmetic overflow.
76149         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
76150         a bit faster than strcpy.
76151
76152 2003-10-10  Simon Josefsson  <jas@extundo.com>
76153
76154         * modules/argp (Depends-on): Add restrict and strcase.
76155
76156 2003-10-10  Simon Josefsson  <jas@extundo.com>
76157
76158         * m4/argp.m4: Add AC_C_INLINE.
76159
76160 2003-10-08  Paul Eggert  <eggert@twinsun.com>
76161
76162         Merge getpass from libc, plus a few fixes.
76163
76164         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
76165         Include <stdbool.h>.
76166         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
76167         __fsetlocking to empty.
76168         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
76169         do include <bits/libc-lock.h>.
76170         Do not include <fcntl.h>; not needed.
76171         [_LIBC]: Include <wchar.h>.
76172         (NOTCANCEL_MODE): New macro.
76173         (flockfile, funlockfile) [_LIBC]: New macros.
76174         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
76175         [!_LIBC]: New macros.
76176         (call_fclose): New function.
76177         (getpass): Use it.  Save tty stream separately; this simplifies the
76178         code and makes it more reliable if stdin happens to equal stdout.
76179         Invoke __fsetlocking on tty.
76180         Handle thread cancellation if needed.
76181         Namespace cleanup (use __tcgetattr, __getline).
76182         Use bool for Booleans.
76183         [USE_IN_LIBIO]: Handle wide streams.
76184         [!_LIBC]: Unconditionally do the fseek, since we don't know what
76185         stream might go where.
76186
76187         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
76188         doesn't have to include <stdio.h> before us.
76189         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
76190         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
76191         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
76192         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
76193         if not declared, so that we can use getpass.c code from libc without
76194         rewriting it.
76195         (flockfile, ftrylockfile, funlockfile): New macros.
76196
76197 2003-10-08  Paul Eggert  <eggert@twinsun.com>
76198
76199         * modules/getpass: Depend on stdbool.
76200
76201 2003-10-08  Paul Eggert  <eggert@twinsun.com>
76202
76203         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
76204
76205 2003-10-07  Karl Berry  <karl@gnu.org>
76206
76207         * config/config.{guess,sub}: update from config.
76208
76209 2003-10-06  Jim Meyering  <jim@meyering.net>
76210             Bruno Haible  <bruno@clisp.org>
76211
76212         This lets translators provide better translations for the
76213         "Written by ..." part of --version output.
76214         * lib/version-etc.h: Include stdarg.h.
76215         (version_etc_copyright): Declare as readonly.
76216         (version_etc): Make this function variadic with a NULL-terminated list
76217         of author name strings.
76218         (version_etc_va): New declaration.
76219         * lib/version-etc.c: Include stdarg.h, stdlib.h.
76220         (version_etc_copyright): Declare as readonly.
76221         (version_etc_va): New function. Provide a different translatable string
76222         for each possible number of authors < 10. Abbreviate when there are 10
76223         authors or more.
76224         (version_etc): Make this function variadic. Call version_etc_va.
76225         Suggestion from Gary V. Vaughan.
76226
76227         * lib/long-options.h (parse_long_options): Change prototype: the
76228         authors string is moved to the end and becomes variadic.
76229         * lib/long-options.c: Include stdarg.h.
76230         (parse_long_options): Make this function variadic, too.
76231         Call version_etc_va, not version_etc.
76232
76233 2003-10-06  Bruno Haible  <bruno@clisp.org>
76234
76235         * modules/version-etc-2: Remove file.
76236         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
76237
76238 2003-10-06  Bruno Haible  <bruno@clisp.org>
76239
76240         * modules/fatal-signal: New file.
76241         * MODULES.html.sh (func_all_modules): Add fatal-signal.
76242
76243 2003-10-06  Bruno Haible  <bruno@clisp.org>
76244
76245         * m4/fatal-signal.m4: New file.
76246         * m4/signalblocking.m4: New file, from GNU gettext.
76247
76248 2003-10-06  Bruno Haible  <bruno@clisp.org>
76249
76250         * lib/version-etc-2.h: Remove file.
76251         * lib/version-etc-2.c: Remove file.
76252
76253 2003-10-06  Bruno Haible  <bruno@clisp.org>
76254
76255         * lib/fatal-signal.h: New file, from GNU gettext.
76256         * lib/fatal-signal.c: New file, from GNU gettext.
76257
76258 2003-10-05  Paul Eggert  <eggert@twinsun.com>
76259
76260         * README: Rework advice for preventing empty .o files.
76261         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
76262         not <sys/types.h>.
76263
76264 2003-10-04  Karl Berry  <karl@gnu.org>
76265
76266         * lib/argp*: update from libc.
76267
76268 2003-10-04  Karl Berry  <karl@gnu.org>
76269
76270         * config/config.{guess,sub}: update from config.
76271
76272 2003-10-02  Bruno Haible  <bruno@clisp.org>
76273
76274         * modules/lchown (Include): Add lchown.h.
76275         * modules/time_r (Include): Use "..." syntax.
76276         * modules/xgetdomainname (Include): Add xgetdomainname.h.
76277
76278 2003-10-01  Simon Josefsson  <jas@extundo.com>
76279
76280         * MODULES.html.sh (func_all_modules): Move gethostname from section
76281         'based on' to section 'lacking' POSIX:2001.
76282
76283 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
76284
76285         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
76286         to output mode on the same stream.
76287
76288 2003-09-29  Paul Eggert  <eggert@twinsun.com>
76289
76290         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
76291         Fix arg typo in previous patch.
76292
76293 2003-09-28  Jim Meyering  <jim@meyering.net>
76294
76295         * lib/error.c: Correct cpp indentation.
76296
76297 2003-09-27  Paul Eggert  <eggert@twinsun.com>
76298
76299         * modules/free: New file.
76300
76301 2003-09-27  Paul Eggert  <eggert@twinsun.com>
76302
76303         * m4/free.m4: New file.
76304
76305 2003-09-27  Paul Eggert  <eggert@twinsun.com>
76306
76307         * lib/minmax.h (MIN, MAX)
76308         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
76309         Omit the special code that used __typeof__, since we worry that
76310         it could be more trouble than it's worth.  See:
76311         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
76312         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
76313
76314         * lib/free.c: New file.
76315
76316 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
76317
76318         Trivial fixes to Makefile.am parts of module listings.
76319         * modules/strstr: Append strstr.h to lib_SOURCES.
76320         * modules/strcase: Likewise, for strcase.h.
76321
76322 2003-09-27  Karl Berry  <karl@gnu.org>
76323
76324         * config/mkinstalldirs: update from automake.
76325
76326 2003-09-26  Paul Eggert  <eggert@twinsun.com>
76327
76328         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
76329         (error_tail): Do not loop, reallocating temporary buffer, since
76330         the output cannot contain more wide characters than the input
76331         contains bytes, the size must be big enough already.  This avoids
76332         one potential size overflow calculation.  Check for size overflow
76333         when calculating temporary buffer size.  Free temporary buffer
76334         when done, if it was allocated with malloc; this plugs a memory
76335         leak.  Remove casts from void * to pointers, that are no longer
76336         needed now that we're assuming C89 or better.
76337
76338         Merge error changes from glibc.
76339
76340         * lib/error.c, error.h: Update copyright notice header to match glibc.
76341         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
76342         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
76343         Disable cancellation while printing error.
76344         * lib/error.h: Prepend __ to parameter names.
76345
76346 2003-09-26  Jim Meyering  <jim@meyering.net>
76347
76348         * lib/error.c (error_tail): Move some declarations
76349         into inner scope where the local variables are used.
76350
76351 2003-09-26  Bruno Haible  <bruno@clisp.org>
76352
76353         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
76354         stpncpy().
76355         Don't define stpncpy through config.h; it's now done through stpncpy.h.
76356
76357 2003-09-26  Bruno Haible  <bruno@clisp.org>
76358
76359         * lib/stpncpy.h (gnu_stpncpy): New declaration.
76360         (stpncpy): Define as alias for gnu_stpncpy.
76361         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
76362
76363 2003-09-25  Simon Josefsson  <jas@extundo.com>
76364
76365         * lib/xgetdomainname.h: New file.
76366         * lib/xgetdomainname.c: New file.
76367
76368 2003-09-25  Simon Josefsson  <jas@extundo.com>
76369             Bruno Haible  <bruno@clisp.org>
76370
76371         * modules/getdomainname: New file.
76372         * modules/xgetdomainname: New file.
76373         * MODULES.html.sh (func_all_modules): Add getdomainname,
76374         xgetdomainname.
76375
76376 2003-09-25  Simon Josefsson  <jas@extundo.com>
76377             Bruno Haible  <bruno@clisp.org>
76378
76379         * m4/getdomainname.m4: New file.
76380
76381 2003-09-25  Simon Josefsson  <jas@extundo.com>
76382             Bruno Haible  <bruno@clisp.org>
76383
76384         * lib/getdomainname.h: New file.
76385         * lib/getdomainname.c: New file.
76386
76387 2003-09-25  Karl Berry  <karl@gnu.org>
76388
76389         * lib/argp-fmtstream.c, argp-help.c: update from libc.
76390
76391 2003-09-25  Karl Berry  <karl@gnu.org>
76392
76393         * config/install-sh: update from automake.
76394
76395 2003-09-25  Bruno Haible  <bruno@clisp.org>
76396
76397         * modules/version-etc-2: New file, from modules/version-etc with
76398         modifications.
76399         * MODULES.html.sh (func_all_modules): Add version-etc-2.
76400
76401 2003-09-25  Bruno Haible  <bruno@clisp.org>
76402
76403         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
76404         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
76405
76406 2003-09-24  Simon Josefsson  <jas@extundo.com>
76407
76408         * modules/xgethostname: Add xgethostname.h.
76409
76410 2003-09-24  Paul Eggert  <eggert@twinsun.com>
76411
76412         * lib/linebuffer.c (freebuffer): Don't free the argument, just
76413         the buffer associated with the argument.  Bug reported by
76414         Simon Josefsson.
76415
76416 2003-09-24  Paul Eggert  <eggert@twinsun.com>
76417
76418         * README: Document assumptions that 'int' is at least 32 bits
76419         wide, that integer arithmetic is 2's complement without overflow,
76420         that there are no holes in integer values, that adding sizes of
76421         two nonoverlapping objects can't overflow, and that all-bits-zero
76422         yields scalar zero.  Fix spelling and capitalization typos.
76423
76424 2003-09-19  Karl Berry  <karl@gnu.org>
76425
76426         * lib/argp.h: update from libc.
76427
76428 2003-09-17  Paul Eggert  <eggert@twinsun.com>
76429
76430         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
76431         to avoid spurious warnings like "AC_RUN_IFELSE was called before
76432         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
76433
76434 2003-09-17  Paul Eggert  <eggert@twinsun.com>
76435
76436         * gnulib-tool: Use "test -h", not "test -L", for portability
76437         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
76438         (tags_regexp): Remove, since \| doesn't conform to POSIX.
76439         (sed_extract_prog): Issue s commands one-by-one, rather than
76440         using \| in one s command.
76441
76442 2003-09-16  Paul Eggert  <eggert@twinsun.com>
76443
76444         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
76445         input error, instead of returning NULL the next time we are called
76446         (and therefore losing track of errno).
76447
76448 2003-09-16  Bruno Haible  <bruno@clisp.org>
76449
76450         * gnulib-tool (func_create_testdir): Warn about duplicated
76451         dependencies.
76452
76453 2003-09-15  Paul Eggert  <eggert@twinsun.com>
76454
76455         * modules/argmatch, modules/fatal, modules/obstack,
76456         modules/xalloc, modules/xgethostname: Sort dependencies by
76457         importance, not alphabetically.
76458
76459 2003-09-15  Paul Eggert  <eggert@twinsun.com>
76460
76461         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
76462         fails, so that the caller gets the proper errno.
76463
76464         * lib/readutmp.c (read_utmp): Likewise.
76465         Check for fstat error.  Close stream and free storage
76466         when failing.
76467
76468 2003-09-14  Karl Berry  <karl@gnu.org>
76469
76470         * config/srclist.txt (strdup.c): disable for c89 changes.
76471
76472 2003-09-14  Jim Meyering  <jim@meyering.net>
76473
76474         * lib/getloadavg.c: Correct cpp indentation.
76475         * lib/strdup.c: Likewise.
76476         * lib/vasnprintf.c: Likewise.
76477
76478 2003-09-14  Bruno Haible  <bruno@clisp.org>
76479
76480         * modules/fwriteerror: New file.
76481         * MODULES.html.sh (func_all_modules): Add fwriteerror.
76482
76483 2003-09-14  Bruno Haible  <bruno@clisp.org>
76484
76485         * lib/fwriteerror.h: New file.
76486         * lib/fwriteerror.c: New file.
76487
76488 2003-09-12  Paul Eggert  <eggert@twinsun.com>
76489
76490         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
76491         modules/xgethostname, modules/xalloc: Depend on exit.
76492
76493 2003-09-12  Paul Eggert  <eggert@twinsun.com>
76494
76495         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
76496
76497         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
76498         and AC_MINIX, too, so that their extensions are available.
76499
76500         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
76501         This macro has been superseded by gl_BACKUPFILE.
76502
76503         More patches to assume C89 or better.
76504
76505         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
76506
76507         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
76508         unconditionally.
76509         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
76510         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
76511         Include <string.h>, <stdlib.h> unconditionally.
76512         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
76513         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
76514         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
76515         headers or for string.h.
76516         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
76517         or strtoul.
76518
76519         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
76520         headers.
76521         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
76522         * m4/userspec.m4 (gl_USERSPEC): Likewise.
76523         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
76524         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
76525         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76526         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
76527         memcpy, memset.
76528         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
76529         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
76530         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
76531         strtol.
76532         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
76533         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
76534         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
76535         strtoul.
76536
76537 2003-09-12  Paul Eggert  <eggert@twinsun.com>
76538
76539         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
76540         * lib/obstack.c [!defined _LIBC]: Likewise.
76541         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
76542         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
76543         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
76544
76545         More changes to assume C89 or better.
76546
76547         * lib/error.c (error_tail): Assume vprintf.
76548
76549         * lib/argmatch.c (getenv): Remove decl.
76550         * lib/progreloc.c (get_full_program_name): Define via prototype.
76551         * lib/setenv.c (clearenv): Likewise.
76552         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
76553         needed.
76554         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
76555         (malloc, memcpy): Remove decls.
76556         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
76557         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
76558         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
76559         (memcpy): Remove macro.
76560         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
76561         (__P): Remove.  All uses removed.
76562         (PTR): Remove.  All uses changed to void *.
76563         (CHAR_BIT, NULL): Remove.
76564         (spaces, zeros, memset_space, memset_zero)
76565         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
76566         Remove.
76567         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
76568         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
76569         Define with prototype.
76570         Remove now-unnecessary prototype decl.
76571         (extra_args_spec): Assume ANSI C.  All uses changed.
76572         (extra_args_spec_iso): Remove.
76573         (my_strftime, emacs_strftimeu): Define via prototype.
76574         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
76575         unconditionally.
76576         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
76577         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
76578         (strtoul, strtol): Remove decls.
76579         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
76580         LONG_MAX): Remove.
76581         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
76582         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
76583         (LOCALE_PARAM_PROTO): New macro.
76584         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
76585         (INTERNAL (strtol), strtol): Define with a prototype.
76586         (PARAMS): Remove.  All uses removed.
76587         * lib/tempname.c: Include <string.h> unconditionally.
76588         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
76589         * lib/xgethostname.c (main): Define with a prototype.
76590         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
76591         Include <stdlib.h> unconditionally.
76592         (calloc, malloc, realloc, free): Remove decls.
76593         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
76594         Include <stdlib.h> unconditionally.  Sort include file names.
76595         (strtod): Remove.
76596         (xstrtod): Define with a prototype.
76597         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
76598         (strtol, strtoul): Remove decls.
76599
76600 2003-09-11  Paul Eggert  <eggert@twinsun.com>
76601
76602         More patches to assume C89 or better.
76603         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
76604         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
76605         string.h, memchr, STDC_HEADERS.
76606
76607 2003-09-11  Paul Eggert  <eggert@twinsun.com>
76608
76609         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
76610         Include <stdlib.h>, <string.h> unconditionally.
76611         Remove now-unnecessary cast to char *.
76612         * lib/strnlen.c: Include <string.h> unconditionally.
76613         * lib/yesno.c (yesno): Define with a prototype.
76614
76615 2003-09-11  Bruno Haible  <bruno@clisp.org>
76616
76617         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
76618
76619 2003-09-10  Jim Meyering  <jim@meyering.net>
76620
76621         * lib/error.c: Correct indentation of cpp directives.
76622
76623 2003-09-10  Bruno Haible  <bruno@clisp.org>
76624
76625         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
76626         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
76627         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
76628         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
76629         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
76630         <stdlib.h> and <string.h> checks.
76631         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
76632         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
76633
76634 2003-09-10  Bruno Haible  <bruno@clisp.org>
76635
76636         * lib/strcspn.c: Include <string.h> unconditionally.
76637         * lib/strpbrk.c: Include <string.h> unconditionally.
76638         * lib/strstr.c: Include <string.h> unconditionally.
76639         * lib/unicodeio.c: Include <string.h> unconditionally.
76640         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
76641         * lib/unsetenv.c: Likewise.
76642         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
76643         * lib/yesno.c: Include <stdlib.h> unconditionally.
76644         (rpmatch): Add prototype.
76645
76646 2003-09-09  Paul Eggert  <eggert@twinsun.com>
76647
76648         More patches to assume C89 or better.
76649         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
76650         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
76651         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
76652         or for string.h.
76653         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
76654         stdlib.h.
76655         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
76656         C headers.
76657         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
76658         string.h.
76659         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
76660         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
76661         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
76662         or for string.h.
76663         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
76664         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
76665         C headers.
76666         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
76667         memcpy.
76668         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
76669         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
76670         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
76671         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
76672         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
76673         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
76674         string.h, free.
76675         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
76676         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
76677         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
76678         C headers, or for string.h.
76679         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
76680         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
76681         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
76682         headers, memory.h, stdlib.h, string.h, strings.h.
76683         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
76684         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
76685         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
76686         strchr.
76687         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
76688         headers, memory.h, string.h.
76689         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
76690         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
76691         free.
76692         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
76693         headers.
76694         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
76695         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
76696         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
76697         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
76698         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
76699
76700 2003-09-09  Paul Eggert  <eggert@twinsun.com>
76701
76702         More K&R removal.
76703
76704         * lib/acosl.c (main): Use a prototype.
76705         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
76706         tanl.c: Likewise.
76707
76708         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
76709
76710         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
76711         (getopt, etopt_long, getopt_long_only, _getopt_internal)
76712         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
76713         with a prototype.
76714         * lib/getopt.c (const): Remove macro.
76715         Include <string.h> unconditionally.
76716         (my_index): Remove; all uses changed to strchr.
76717         (strlen): Remove decl.
76718         (exchange): Remove forward decl; no longer needed.
76719         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
76720         Define with prototype.
76721         * lib/getopt1.c (const): Remove macro.
76722         (getopt_long, getopt_long_only, main): Define with prototype.
76723
76724         * lib/getugroups.c: Include <string.h> unconditionally.
76725
76726         * lib/getusershell.c: Include <stdlib.h> unconditionally.
76727         (getusershell, setusershell, endusershell, readname, main):
76728         Define with prototypes.
76729
76730         * lib/group-member.c: Include group-member.h first.
76731         Include <stdlib.h> unconditionally.
76732
76733         * lib/hard-locale.c: Include hard-locale.h first.
76734         Include <stdlib.h>, <string.h> unconditionally.
76735
76736         * lib/hash.c (free, malloc): Remove decls.
76737         Include <stdlib.h> unconditionally.
76738
76739         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
76740         (getenv): Do not declare.
76741
76742         * lib/idcache.c: Include <string.h> unconditionally.
76743
76744         * lib/long-options.c: Include long-options.h first, to test interface.
76745         Include <stdlib.h> unconditionally.
76746
76747         * lib/makepath.c: Include makepath.h first, to test interface.
76748         Include <stdlib.h> and <string.h> unconditionally.
76749
76750         * lib/linebuffer.c: Include <stdlib.h>.
76751         (free): Remove decl.
76752
76753         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
76754         stddef.h. rpl_malloc returns void *, not char *.
76755         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
76756         prototype.
76757
76758         * lib/md5.h: Include <limits.h> unconditionally.
76759         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
76760         (__P): Remove; all uses removed.
76761         * lib/md5.c: Include "md5.h" first.
76762         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
76763         md5_buffer, md5_process_bytes, md5_process_block):
76764         Define with prototypes.
76765         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
76766         * lib/sha.c: Include "sha.h" first.
76767         Include <stdlib.h>, <string.h> unconditionally.
76768
76769         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
76770         * lib/memcmp.c (__ptr_t): Likewise.
76771         * lib/memrchr.c (__ptr_t): Likewise.
76772         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
76773         Include <string.h> unconditionally.
76774         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
76775         * lib/memchr.c: Include <stdlib.h> unconditionally.
76776         * lib/memchr.c (LONG_MAX): Remove.
76777         * lib/memrchr.c (LONG_MAX): Likewise.
76778         * lib/memchr.c (__memchr): Define via a prototype.
76779         * lib/memrchr.c (__memrchr): Likewise.
76780         * lib/memcmp.c (__P): Remove, and remove all uses.
76781         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
76782         Remove forward decls; no longer needed.
76783         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
76784         Use types required by C89 in prototype.
76785
76786         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
76787         * lib/savedir.c: Likewise.
76788         * lib/mkdir.c (free): Remove decl.
76789         * lib/rmdir.c (rmdir): Define with a prototype.
76790         * lib/savedir.c: Include savedir.h first, to test interface.
76791
76792         * lib/mktime.c (STDC_HEADERS): Remove.
76793         Include <stdlib.h>, <string.h> unconditionally.
76794
76795         * lib/modechange.c: Include <stdlib.h> unconditionally.
76796         (malloc): Remove decl.
76797
76798         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
76799         (free): Remove decl.
76800
76801         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
76802         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
76803         (This type really should be intptr_t, but that's a C99ism.)
76804         (_obstack_memcpy): Remove: all uses changed to memcpy.
76805         Include <string.h> unconditionally.
76806         (struct obstack): Assume __STDC__ for types of members
76807         chunkfun, freefun, extra_arg.
76808         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
76809         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
76810         obstack_begin, obstack_specify_allocation,
76811         obstack_specify_allocation_with_arg, obstack_chunkfun,
76812         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
76813         Remove unprototyped decls and the macros that use them.
76814         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
76815         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
76816         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
76817         (defined __STDC__ && __STDC__)]:
76818         Remove nonprototyped code.
76819         Include <stdlib.h> unconditionally.
76820         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
76821         _obstack_allocated_p, _obstack_free, obstack_free,
76822         _obstack_memory_used, print_and_abort):
76823         Define using prototypes.
76824         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
76825         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
76826         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
76827         obstack_next_free, obstack_object_size, obstack_room) [0]:
76828         Remove unused, unprototyped code.
76829
76830         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
76831
76832         * lib/physmem.c (physmem_total, physmem_available, main): Define
76833         with prototypes.
76834
76835         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
76836         (main): Define with a prototype.
76837
76838         * lib/posixver.c (getenv): Remove decl.
76839
76840         * lib/putenv.c (malloc): Returns void *, not char *.
76841         Include <string.h> unconditionally.
76842         (strchr, memcpy, NULL): Do not define.
76843
76844         * lib/readtokens.c: Include readtokens.h first, to test interface.
76845         Include <stdlib.h>, <string.h> unconditionally.
76846         (init_tokenbuffer): Define with a prototype.
76847
76848         * lib/regex.c (PARAMS): Remove.  All uses removed.
76849         All uses of _RE_ARGS removed, too.
76850         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
76851         unconditionally.
76852         (bzero): Assume memset exists.
76853         (memcmp, memcpy, NULL): Remove.
76854         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
76855         char, or assignments to local vars of type signed char.
76856         (init_syntax_once, PREFIX(extract_number_and_incr),
76857         PREFIX(print_partial_compiled_pattern),
76858         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
76859         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
76860         PREFIX(regex_grow_registers), PREFIX(regex_compile),
76861         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
76862         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
76863         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
76864         wcs_compile_range, byte_compile_range, truncate_wchar,
76865         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
76866         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
76867         count_mbs_length, wcs_re_match_2_internal,
76868         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
76869         PREFIX(alt_match_null_string_p),
76870         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
76871         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
76872         regfree, PREFIX(extract_number)): Define with prototype.  Remove
76873         now-unnecessary declaration, if any.
76874         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
76875         regcomp, regexec):
76876         Remove now-unnecessary casts among pointer types.
76877         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
76878
76879         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
76880         (free): Remove decl.
76881
76882         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
76883
76884         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
76885         (free): Remove decl.
76886
76887         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
76888         * lib/xgetcwd.c: Likewise.
76889
76890         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
76891         (free): Remove decl.
76892
76893         * lib/strchrnul.c (strchrnul): Define with a prototype.
76894         Fix bug: c_in was not converted to char before searching.
76895
76896         The following changes are not K&R related:
76897
76898         * lib/group-member.h: Include <sys/types.h>, so that this file is
76899         self-contained.
76900         * lib/makepath.h: Likewise.
76901
76902         * lib/getusershell.c (readname, default_index, line_size, readname):
76903         Use size_t, not int, for sizes.
76904         (readname): If the size overflows, report an error instead of
76905         looping forever.
76906
76907 2003-09-09  Paul Eggert  <eggert@twinsun.com>
76908
76909         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
76910         libc.
76911
76912 2003-09-09  Paul Eggert  <eggert@twinsun.com>
76913
76914         * README: New section: portability guidelines.
76915
76916 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
76917
76918         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
76919         C89 spec.
76920
76921 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
76922
76923         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
76924
76925 2003-09-08  Paul Eggert  <eggert@twinsun.com>
76926
76927         Assume C89 or better; remove K&R cruft.
76928         A few of these changes were first proposed by Derek Robert Price
76929         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
76930
76931         * lib/addext.c: Include <string.h> unconditionally.
76932         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
76933         Don't declare getenv or malloc.
76934
76935         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
76936         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
76937         (NULL): Remove.
76938         (find_stack_direction, alloca): Use prototypes.
76939
76940         * lib/atexit.c (atexit): Define using a prototype.
76941
76942         * lib/basename.c, dirname.c, stripslash.c:
76943         Include <string.h> unconditionally.
76944
76945         * lib/bcopy.c: Include <stddef.h>.
76946         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
76947
76948         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
76949
76950         * lib/error.h (error, error_at_line, error_print_progname)
76951         [! (defined (__STDC__) && __STDC__)]: Remove decls.
76952         * lib/error.c: Include error.h first, to check interface.
76953         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
76954         (VA_START): Remove; all uses changeed to va_start.
76955         (exit, strerror): Remove decls.
76956         (error_print_progname): Prototype uncondionally.
76957         Don't include <errno.h>; no longer needed.
76958         (private_strerror): Remove.
76959         (error_tail): Always define.
76960         (error, error_at_line): Assume C89 or better; always use prototypes.
76961         * lib/fatal.c: Include "fatal.h" first, to test interface.
76962         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
76963         (VA_START): Remove; all uses changed to va_start.
76964         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
76965         this case.
76966         (exit): Remove decl.
76967         (fatal): Prototype unconditionally.  Assume va_start works.
76968         Abort at end, to pacify gcc.
76969
76970         * lib/euidaccess.c (main): Define with a prototype.
76971
76972         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
76973
76974         * lib/exitfail.c: Include <stdlib.h> unconditionally.
76975
76976         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
76977         prototypes.
76978         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
76979         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
76980         (getenv): Remove decl.
76981         (fnmatch): Define using a prototype.
76982         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
76983         (FCT): Define using a prototype.
76984
76985         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
76986
76987         * lib/gethostname.c: Include <stddef.h>.
76988         (gethostname): Define with prototype.  Length is size_t, not int.
76989
76990 2003-09-08  Paul Eggert  <eggert@twinsun.com>
76991
76992         Assume C89 or better; remove K&R cruft.
76993         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
76994         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
76995         string.h, getenv, malloc.
76996         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
76997         headers.
76998         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
76999         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
77000         do not check for strerror.
77001         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
77002         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
77003         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
77004         do not check for doprnt or vprintf.
77005         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
77006         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
77007
77008 2003-09-08  Paul Eggert  <eggert@twinsun.com>
77009
77010         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
77011         getversion.c should have been removed then, but was accidentally
77012         preserved.
77013
77014         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
77015         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
77016
77017 2003-09-08  Karl Berry  <karl@gnu.org>
77018
77019         * config/config.sub, config.guess, srclistvars.sh: update from savannah
77020                 config, forget about prep.
77021
77022         * config/depcomp, missing: update from automake.
77023
77024 2003-09-07  Paul Eggert  <eggert@twinsun.com>
77025
77026         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
77027         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
77028
77029 2003-09-07  Paul Eggert  <eggert@twinsun.com>
77030
77031         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
77032         copy_tm_result.  Bug reported by Simon Josefsson in
77033         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
77034
77035 2003-09-06  Paul Eggert  <eggert@twinsun.com>
77036
77037         * m4/time_r.m4: New file.
77038         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
77039         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
77040         is. Check for timegm declaration.
77041         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
77042         Do not check for gmtime_r.
77043         Replace mktime if __mktime_internal does not exist and if mktime
77044         hasn't been replaced already.
77045
77046 2003-09-06  Paul Eggert  <eggert@twinsun.com>
77047
77048         * lib/time_r.c, lib/time_r.h: New files.
77049
77050         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
77051         __localtime_r.
77052         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
77053         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
77054
77055         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
77056         __gmtime_r.
77057         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
77058         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
77059         Include <time_r.h>.
77060
77061         * lib/timegm.c: Switch to glibc implementation, with the following
77062         changes:
77063         [defined HAVE_CONFIG_H]: Include <config.h>.
77064         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
77065         (__mktime_internal) [!defined _LIBC]: New decl.
77066         (__gmtime_r) [!defined _LIBC]: New macro and function.
77067         (timegm): Use a prototype, since gnulib assumes C89.
77068         Do not bother declaring tmp to be const, as it's not really usefu.
77069         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
77070         (timegm): Declare only if HAVE_DECL_TIMEGM.
77071
77072 2003-09-06  Paul Eggert  <eggert@twinsun.com>
77073
77074         * MODULES.html.sh (func_all_modules): Add time_r.
77075         * modules/time_r: New file.
77076         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
77077         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
77078
77079 2003-09-03  Paul Eggert  <eggert@twinsun.com>
77080
77081         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
77082         Bug reported by Lute Kamstra in
77083         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
77084
77085         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
77086         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
77087         course with correspondingly smaller numbers for tomorrow and
77088         yesterday.  From Tadayoshi Funaba.  Originally installed into
77089         sh-utils on 1999-08-07, but the patch got lost (I guess during the
77090         coreutils merge?).
77091
77092 2003-08-31  Simon Josefsson  <jas@extundo.com>
77093
77094         * modules/timegm: New file.
77095         * MODULES.html.sh (func_all_modules): Add timegm.
77096
77097 2003-08-31  Simon Josefsson  <jas@extundo.com>
77098
77099         * m4/timegm.m4: New file.
77100
77101 2003-08-31  Simon Josefsson  <jas@extundo.com>
77102
77103         * lib/timegm.h: New file.
77104         * lib/timegm.c: New file.  Based on
77105         wget-1.8.2/src/http.c:mktime_from_utc.
77106
77107 2003-08-31  Karl Berry  <karl@gnu.org>
77108
77109         * lib/argp.h: update from libc.
77110
77111 2003-08-28  Bruno Haible  <bruno@clisp.org>
77112
77113         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
77114         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
77115         followed by '#define fnmatch fnmatch_posix' gives an error.
77116
77117 2003-08-28  Bruno Haible  <bruno@clisp.org>
77118
77119         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
77120         warning on QNX, which defines O_BINARY to 000000.
77121
77122 2003-08-27  Jim Meyering  <jim@meyering.net>
77123
77124         * m4/mkstemp.m4: Require that the system mkstemp be able to create
77125         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
77126         would fail after 32.  Reported by Danny Levinson.  Details here:
77127         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
77128
77129 2003-08-24  Bruno Haible  <bruno@clisp.org>
77130
77131         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
77132         MSVC7 <stdio.h> is included later.
77133
77134 2003-08-22  Simon Josefsson  <jas@extundo.com>
77135
77136         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
77137
77138 2003-08-20  Karl Berry  <karl@gnu.org>
77139
77140         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
77141
77142 2003-08-20  Bruno Haible  <bruno@clisp.org>
77143
77144         * modules/progname: New file.
77145         * MODULES.html.sh (func_all_modules): Add progname.
77146
77147 2003-08-20  Bruno Haible  <bruno@clisp.org>
77148
77149         * lib/progname.h: New file, from GNU gettext.
77150         * lib/progname.c: New file, from GNU gettext.
77151         * lib/progreloc.c: New file, from GNU gettext.
77152
77153 2003-08-19  Jim Meyering  <jim@meyering.net>
77154
77155         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
77156         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
77157
77158 2003-08-19  Bruno Haible  <bruno@clisp.org>
77159
77160         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
77161         more.
77162
77163 2003-08-19  Bruno Haible  <bruno@clisp.org>
77164
77165         * lib/xstrdup.c: Assume <string.h> exists.
77166
77167 2003-08-18  Paul Eggert  <eggert@twinsun.com>
77168
77169         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
77170         in makefile rules.
77171
77172 2003-08-18  Jim Meyering  <jim@meyering.net>
77173
77174         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
77175         * m4/lib-ld.m4: Likewise.
77176
77177 2003-08-18  Jim Meyering  <jim@meyering.net>
77178
77179         * lib/setenv.h: Indent nested cpp directive.
77180         * lib/vasnprintf.c: Remove trailing blanks.
77181
77182 2003-08-17  Simon Josefsson  <jas@extundo.com>
77183
77184         * modules/xstrndup: New file.
77185         * MODULES.html.sh (func_all_modules): Add xstrndup.
77186
77187 2003-08-17  Simon Josefsson  <jas@extundo.com>
77188
77189         * modules/argp: Fix autoconf macro name. Add more dependencies.
77190
77191 2003-08-17  Simon Josefsson  <jas@extundo.com>
77192
77193         * m4/xstrndup.m4: New file.
77194
77195 2003-08-17  Simon Josefsson  <jas@extundo.com>
77196
77197         * m4/argp.m4: New file.
77198
77199 2003-08-17  Simon Josefsson  <jas@extundo.com>
77200             Bruno Haible  <bruno@clisp.org>
77201
77202         * lib/xstrndup.h: New file.
77203         * lib/xstrndup.c: New file.
77204
77205 2003-08-17  Bruno Haible  <bruno@clisp.org>
77206
77207         * modules/strndup (Files, Include): Add lib/strndup.h.
77208
77209 2003-08-17  Bruno Haible  <bruno@clisp.org>
77210
77211         * modules/euidaccess (Files): Add lib/euidaccess.h.
77212
77213 2003-08-17  Bruno Haible  <bruno@clisp.org>
77214
77215         * lib/strndup.h: New file.
77216
77217 2003-08-17  Bruno Haible  <bruno@clisp.org>
77218
77219         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
77220         like AC_GNU_SOURCE.
77221         * modules/extensions (configure.ac): Comment out the invocation of
77222         gl_USE_SYSTEM_EXTENSIONS.
77223
77224 2003-08-16  Paul Eggert  <eggert@twinsun.com>
77225
77226         Merges from coreutils, etc.
77227         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
77228         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
77229         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
77230         fixing a typo.
77231         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
77232         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
77233
77234 2003-08-16  Paul Eggert  <eggert@twinsun.com>
77235
77236         Document merge from coreutils.
77237         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
77238         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
77239         * modules/utime: Add m4/utimes-null.m4.
77240
77241 2003-08-16  Paul Eggert  <eggert@twinsun.com>
77242
77243         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
77244         space, undoing this 2003-08-12 change:
77245         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
77246
77247 2003-08-16  Paul Eggert  <eggert@twinsun.com>
77248
77249         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
77250         strtoul.c from libc, undoing this 2003-08-12 change:
77251         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
77252
77253 2003-08-16  Jim Meyering  <jim@meyering.net>
77254
77255         Merges from coreutils.
77256         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
77257         prefix.  Adjust cache variables similarly.  Create 500 rather than
77258         just 300 files, to exercise bug on Darwin6.5, too.
77259         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
77260         $missing_dir.
77261         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
77262         AM_SYS_POSIX_TERMIOS.
77263         Reported by mkc@mathdogs.com.
77264         Also change use of $am_cv_sys_posix_termios
77265         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
77266         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
77267         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
77268         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
77269         in /proc/mounts until it finds one with matching device number.  This
77270         is unnecessary when the FILE argument *is* a mount point.  No stat call
77271         is necessary in that case.  So, disable the statvfs-testing code on
77272         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
77273         as RedHat bug# 84846.
77274         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
77275         to 1MB, so as not to render systems with no stack size limit (e.g.,
77276         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
77277         Include <unistd.h>.  On some systems,
77278         it is required for the definition of _SC_PAGESIZE.
77279
77280 2003-08-16  Jim Meyering  <jim@meyering.net>
77281
77282         Merge from coreutils.
77283         * lib/xstrtoimax.c: #else #if -> #elif.
77284         * lib/xstrtoumax.c: Likewise.
77285
77286 2003-08-16  Jim Meyering  <jim@meyering.net>
77287
77288         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
77289         * m4/utimes.m4: Removed.
77290         * m4/utimes-null.m4: Renamed from utimes.m4.
77291
77292         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
77293         to 1MB, so as not to render systems with no stack size limit (e.g.,
77294         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
77295         Include <unistd.h>.  On some systems,
77296         it is required for the definition of _SC_PAGESIZE.
77297
77298 2003-08-16  Jim Meyering  <jim@meyering.net>
77299         and Paul Eggert  <eggert@cs.ucla.edu>
77300
77301         Merges from coreutils, etc.
77302
77303         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
77304         using the latest version from cvs.  This avoids problems with #line
77305         directives using a vendor (Sun) compiler.
77306         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
77307         Don't set GETGROUPS_LIB here; now it's
77308         done via getgroups.m4's wrapper function.
77309         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
77310         rather than just in sh-util/configure.in, so that the
77311         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
77312         same.
77313         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
77314         AC_FUNC_GETLOADAVG where to find getloadavg.c.
77315         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
77316         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
77317         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
77318         Remove code that is now done by the newly-required macros.
77319         Append $(EXEEXT) to DF_PROG.
77320         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
77321         Do not invoke or require the following here,
77322         since prereq.m4 or some gnulib .m4 now does this for us:
77323         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
77324         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
77325         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
77326         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
77327         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
77328         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
77329         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
77330         AC_FUNC_OBSTACK.
77331         Do not replace the following functions, as this is now the job
77332         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
77333         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
77334         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
77335         atexit getpass, strdup, getpagesize.
77336         Replace 'raise'.
77337         Do not check for the following functions, as this is now the job
77338         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
77339         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
77340         setregid.
77341         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
77342         Check for sys/sysctl.h.
77343         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
77344         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
77345         of checking for ssize_t ourselves.
77346
77347         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
77348         Require every macro that gnulib/modules/* suggests for us.
77349         (jm_PREREQ_ADDEXT): New macro.
77350         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
77351         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
77352
77353         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
77354         (gl_PHYSMEM): Use it.
77355         Also check for `table' function.
77356         Check for new headers and functions.
77357         Add check for sys/sysmp.h.
77358         With suggestions from Kaveh Ghazi.
77359         Ignore headers that are present but cannot be compiled.  This
77360         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
77361         C 5.4.
77362
77363 2003-08-15  Paul Eggert  <eggert@twinsun.com>
77364
77365         Document merge from coreutils.
77366         * modules/userspec: Depend on posixver.
77367         * modules/strftime: Depend on tzset.
77368
77369 2003-08-15  Paul Eggert  <eggert@twinsun.com>
77370
77371         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
77372         rather than tab, after '#' in shell-script copyright notices.
77373         Suggested by Bruno Haible.
77374
77375 2003-08-15  Paul Eggert  <eggert@twinsun.com>
77376
77377         * config/srclist-update: Use three spaces, rather than tab, after '#'
77378         in shell-script copyright notices.  Suggested by Bruno Haible.
77379         Remove unnecessary parenthesization in regular expression.
77380
77381 2003-08-15  Jim Meyering  <jim@meyering.net>
77382
77383         Merge from coreutils.
77384         * lib/xgethostname.c: Include <stdlib.h>.
77385         (xghostname): Don't exit for anything other than memory-related
77386         failure; just return NULL.
77387         * lib/userspec.c: Include "posixver.h".
77388         (parse_user_spec): Accept `.' as a separator only
77389         in pre-POSIX-200112 mode.
77390         * lib/strtoimax.c: Use #elif rather than #else #if.
77391         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
77392         Remove function, now that we can rely on a working tzset function.
77393         [!_LIBC]: Ensure that the required autoconf test has been run.
77394         [!defined _NL_CURRENT && HAVE_STRFTIME]:
77395         Use underlying_strftime for %r.
77396         * lib/sha.c: Merge in some clean-up and optimization changes from
77397         glibc.
77398         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
77399         Ensure that it is a multiple of 64.
77400         Rearrange loop exit tests so as to avoid performing an
77401         additional fread after encountering an error or EOF.
77402         * lib/realloc.c: Update copyright date.
77403
77404 2003-08-15  Jim Meyering  <jim@meyering.net>
77405         and Paul Eggert  <eggert@twinsun.com>
77406
77407         Merge from coreutils.
77408         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
77409         member but strut utmpx does not.  Needed for AIX 4.3.3.
77410         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
77411
77412 2003-08-15  Jim Meyering  <jim@meyering.net>
77413         and Paul Eggert  <eggert@cs.ucla.edu>
77414
77415         Merges from coreutils, etc.
77416         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
77417         Require gl_FUNC_TZSET_CLOBBER.
77418         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
77419         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
77420         members.
77421
77422 2003-08-14  Paul Eggert  <eggert@twinsun.com>
77423
77424         Help the merge from coreutils.
77425         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
77426         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
77427         * m4/tzset.m4: Use it too.
77428
77429 2003-08-14  Paul Eggert  <eggert@twinsun.com>
77430
77431         * modules/tzset: New file.
77432
77433 2003-08-14  Jim Meyering  <jim@meyering.net>
77434
77435         Merges from coreutils.
77436         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
77437         variable names, rather than @FNMATCH_H@.
77438         * modules/alloca: Likewise for $(ALLOCA_H).
77439
77440         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
77441         the three copies of the literal target, `fnmatch.h'.
77442         * modules/alloca (alloca.h): Likewise.
77443
77444 2003-08-14  Jim Meyering  <jim@meyering.net>
77445
77446         Merge from coreutils.
77447         * m4/tzset.m4: New file.
77448         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
77449         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
77450         otherwise, AIX 5.1 systems would end up using the latter.
77451         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
77452         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
77453         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
77454         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
77455
77456 2003-08-14  Jim Meyering  <jim@meyering.net>
77457
77458         Merge from coreutils.
77459         * lib/obstack.h: Whitespace changes.
77460         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
77461         and xcalloc return values.
77462         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
77463         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
77464         hang on OSF/1 5.1 for DIR on both local and remote file systems.
77465         Reported by (and fix confirmed by) Nelson H. F. Beebe.
77466         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
77467         error from mntctl.
77468         Use mntctl's return value to drive the entry-processing loop, since
77469         we can't rely on the value of the vmt_length member in the last
77470         entry.  On some systems doing so could result in exhausting
77471         virtual memory.  Based in part on a patch from Mike Jetzer.
77472
77473 2003-08-14  Jim Meyering  <jim@meyering.net>
77474         and Paul Eggert  <eggert@twinsun.com>
77475
77476         Merges from coreutils, plus other fixes.
77477         * lib/physmem.c: Merge in portability changes from gcc/libiberty
77478         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
77479         for credits and details.  Thanks to Kaveh Ghazi for helping
77480         to keep these files in sync.
77481         (ARRAY_SIZE): Define it.
77482         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
77483         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
77484         (memcasecmp): Don't assume size_t fits in unsigned int.
77485         Remove casts and duplicate code.
77486         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
77487         (memcpy): Remove definition.
77488         Merge in some clean-up and optimization changes from glibc.
77489         [BLOCKSIZE]: Move definition to top of file.
77490         Ensure that it is a multiple of 64.
77491         Rearrange loop exit tests so as to avoid performing an
77492         additional fread after encountering an error or EOF.
77493         * lib/md5.h (md5_uintptr): Define.
77494         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
77495         return to the initial working directory.  Preserve errno
77496         for caller.
77497         * lib/idcache.c: Include "xalloc.h".
77498         (xmalloc, xrealloc): Remove decls.
77499         (getuser): Remove casts no longer required in C89.
77500         * lib/human.c: Include stdio.h, for sprintf.
77501         * lib/group-member.c: Include "xalloc.h".
77502         (xmalloc, xrealloc): Remove decls.
77503         (get_group_info): Remove casts no longer required in C89.
77504         * lib/getusershell.c (readname): Remove casts no longer required in
77505         C89.
77506         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
77507         * lib/getline.c: Whitespace fix, from coreutils.
77508
77509 2003-08-13  Paul Eggert  <eggert@twinsun.com>
77510
77511         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
77512         Check for isascii.
77513
77514         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
77515         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
77516         Undo previous (whitespace-only) change.
77517
77518 2003-08-13  Paul Eggert  <eggert@twinsun.com>
77519
77520         * lib/exclude.c: Include <ctype.h>
77521         (IN_CTYPE_DOMAIN): New macro.
77522         (is_space): New fn.
77523         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
77524         and empty lines.
77525
77526         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
77527         Undo previous (whitespace-only) change.
77528
77529 2003-08-13  Paul Eggert  <eggert@twinsun.com>
77530
77531         * config/srclist-update: Change update back to the old behavior,
77532         leaving whitespace alone.  Use one 'sed' command rather than a
77533         pipeline.
77534         (fixlicense): Now a variable, not a function.
77535         (remove_trailing_blanks): Remove.
77536         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
77537         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
77538         Undo previous (whitespace-only) change.
77539
77540 2003-08-12  Paul Eggert  <eggert@twinsun.com>
77541
77542         Merge from coreutils.
77543         * modules/euidaccess: Add lib_SOURCES, include for new
77544         file euidaccess.h
77545
77546 2003-08-12  Paul Eggert  <eggert@twinsun.com>
77547
77548         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
77549         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
77550         Normalize leading white space and remove trailing white space.
77551
77552         Merge from coreutils
77553         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
77554
77555         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
77556         0.12.1.  These files are now being upgraded automatically by
77557         ../config/srclist-update.
77558
77559 2003-08-12  Paul Eggert  <eggert@twinsun.com>
77560
77561         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
77562         Normalize leading white space and remove trailing white space.
77563         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
77564         notice, as per ../config/srclist-update.
77565
77566         Merge from coreutils.
77567         * lib/euidaccess.h: New file.
77568         * lib/euidaccess.c: Include it.
77569         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
77570         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
77571         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
77572
77573 2003-08-12  Paul Eggert  <eggert@twinsun.com>
77574
77575         * config/srclist-update: Add copyright notice.
77576         (remove_id_lines, remove_trailing_blanks): New constants.
77577         (fixfile): Use them to normalize spacing a bit in copied files.
77578         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
77579         Normalize leading white space and remove trailing white space.
77580
77581         * config/texinfo.tex: Sync with texinfo.
77582
77583         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
77584         strtoul.c from libc, to merge coreutils whitespace changes.
77585
77586         * config/srclist.txt: Get the following m4 files from gettext:
77587         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
77588         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
77589         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
77590         wint_t.m4.
77591
77592 2003-08-12  Karl Berry  <karl@gnu.org>
77593
77594         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
77595         been made.
77596
77597 2003-08-11  Paul Eggert  <eggert@twinsun.com>
77598
77599         * modules/gnu-source, m4/gnu-source.m4:
77600         Remove; we're assuming Autoconf 2.54 or later now.
77601         Suggested by Bruno Haible.
77602         * MODULES.html.sh (func_all_modules): Remove gnu-source.
77603
77604 2003-08-11  Bruno Haible  <bruno@clisp.org>
77605
77606         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
77607
77608 2003-08-11  Bruno Haible  <bruno@clisp.org>
77609
77610         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
77611         (vasnprintf): Use it instead of wcslen.
77612
77613 2003-08-11  Bruno Haible  <bruno@clisp.org>
77614
77615         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
77616         value to ensure that _Bool promotes to int. Use #define for _Bool when
77617         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
77618
77619 2003-08-10  Karl Berry  <karl@gnu.org>
77620
77621         * lib/regex.h: update from libc (whitespace fix).
77622
77623 2003-08-09  Paul Eggert  <eggert@twinsun.com>
77624
77625         Merge some files from coreutils.  These changes were
77626         originally made by Jim Meyering.
77627         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
77628         many older Unixes require this.
77629         * lib/alloca.c (alloca): Remove cast to argument of free;
77630         no longer needed in C89.
77631         * lib/alloca_.h, regex.h: Fix white space to match
77632         what GNU indent does.
77633
77634 2003-08-09  Paul Eggert  <eggert@twinsun.com>
77635
77636         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
77637         apparently Emacs's Unicode mode got confused before my 2003-08-05
77638         checkin.
77639
77640 2003-08-08  Paul Eggert  <eggert@twinsun.com>
77641
77642         * m4/extensions.m4: New file.
77643         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
77644         Require gl_USE_SYSTEM_EXTENSIONS.
77645         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
77646         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
77647
77648 2003-08-08  Paul Eggert  <eggert@twinsun.com>
77649
77650         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
77651         * modules/extensions, modules/gnu-source: New files.
77652         * modules/timespec, modules/unlocked-io: Depend on extensions.
77653
77654 2003-08-07  Paul Eggert  <eggert@twinsun.com>
77655
77656         * modules/restrict: New file.
77657         * MODULES.html.sh (func_all_modules): Add restrict.
77658         * modules/regex: Depend on restrict.
77659
77660 2003-08-07  Paul Eggert  <eggert@twinsun.com>
77661
77662         * m4/restrict.m4: New file.
77663         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
77664
77665 2003-08-07  Bruno Haible  <bruno@clisp.org>
77666
77667         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
77668         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
77669
77670 2003-08-07  Bruno Haible  <bruno@clisp.org>
77671
77672         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
77673         makes the module 'getndelim2' compatible with the module 'getline'.
77674
77675 2003-08-05  Paul Eggert  <eggert@twinsun.com>
77676
77677         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
77678         byte with "\201" to avoid glitches when editing that source file
77679         with multi-gnome-terminal.
77680
77681 2003-08-05  Paul Eggert  <eggert@twinsun.com>
77682
77683         * lib/bumpalloc.h: Remove.
77684
77685 2003-08-05  Paul Eggert  <eggert@twinsun.com>
77686
77687         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
77688         * modules/bumpalloc: Remove.
77689
77690 2003-08-04  Paul Eggert  <eggert@twinsun.com>
77691
77692         * lib/getloadavg.c: Change copyright notice and spacing to conform to
77693         GNU coding style.
77694
77695         Merge from coreutils.
77696         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
77697         1. From glibc.
77698         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
77699         from Karl Berry, implemented by Jim Meyering.
77700         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
77701         from Dmitry V. Levin.
77702         Remove anachronistic cast of xrealloc.
77703         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
77704         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
77705         type. Otherwise, it wouldn't compile with at least /bin/cc on
77706         ymp-cray-unicos9.0.2.X.
77707         Combine two mostly-identical uses of alloca into one.
77708         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
77709
77710 2003-08-04  Dave Love  <d.love@dl.ac.uk>
77711
77712         [From Emacs.]
77713
77714         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
77715         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
77716         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
77717         obsolete NLIST_NAME_UNION.
77718         [__GNU__]: Undef BSD and FSCALE.
77719         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
77720
77721 2003-08-03  Paul Eggert  <eggert@twinsun.com>
77722
77723         * lib/stdbool_.h (_Bool): Make it signed char, instead of
77724         an enum type, so that it's guaranteed to promote to int.  See:
77725         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
77726
77727 2003-08-03  Karl Berry  <karl@gnu.org>
77728
77729         * config/depcomp: update from automake.
77730
77731 2003-07-31  Paul Eggert  <eggert@twinsun.com>
77732
77733         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
77734         (strerror): Don't assume that a printable int fits in 14 bytes.
77735
77736 2003-07-31  Bruno Haible  <bruno@clisp.org>
77737
77738         * modules/getpass-gnu: New file.
77739         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
77740
77741 2003-07-31  Bruno Haible  <bruno@clisp.org>
77742
77743         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
77744
77745 2003-07-24  Karl Berry  <karl@gnu.org>
77746
77747         * config/missing: update from automake.
77748
77749 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
77750             Bruno Haible  <bruno@clisp.org>
77751
77752         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
77753         * lib/getline.c (getline, getdelim): Likewise.
77754         Remove _GNU_SOURCE define; now it's defined in config.h through
77755         m4/getline.m4.
77756
77757 2003-07-23  Karl Berry  <karl@gnu.org>
77758
77759         * config/config.sub: update from prep.
77760
77761 2003-07-22  Paul Eggert  <eggert@twinsun.com>
77762
77763         * modules/xalloc (Depends-on): Add exitfail.
77764         * modules/xmemcoll: Likewise.
77765
77766 2003-07-22  Paul Eggert  <eggert@twinsun.com>
77767
77768         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
77769         over-parenthesization in macros.
77770
77771         Sync with coreutils.
77772
77773         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
77774         required by C99.
77775
77776         Use `exit_failure' for xalloc and xmemcoll instead of their own
77777         private exit-failure variables.
77778         * lib/xalloc.h (xalloc_exit_failure): Remove.
77779         * lib/xmalloc.c: Likewise.  Include exitfail.h.
77780         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
77781         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
77782         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
77783         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
77784
77785 2003-07-20  Jim Meyering  <jim@meyering.net>
77786
77787         * modules/closeout (Depends-on): Add exitfail.
77788         Suggestion from Bruno Haible.
77789
77790 2003-07-19  Karl Berry  <karl@gnu.org>
77791
77792         * config/config.sub: update from prep.
77793
77794 2003-07-18  Paul Eggert  <eggert@twinsun.com>
77795
77796         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
77797         Remove.
77798         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
77799         to test that it can stand by itself.  Include "exitfail.h".
77800         Clients should set exit_failure instead.
77801         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
77802
77803 2003-07-18  Bruno Haible  <bruno@clisp.org>
77804
77805         * modules/getndelim2: New file.
77806         * modules/getline: Share files with module getndelim2.
77807         * modules/getnline: Depend on getndelim2 instead of sharing files with
77808         it. Add getnline.c to lib_SOURCES.
77809         * MODULES.html.sh (func_all_modules): Add getndelim2.
77810
77811 2003-07-18  Bruno Haible  <bruno@clisp.org>
77812
77813         * m4/getndelim2.m4: New file.
77814         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
77815         invoke gl_PREREQ_GETNDELIM2.
77816         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
77817         gl_PREREQ_GETNDELIM2.
77818         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
77819         gl_GETNDELIM2.
77820
77821 2003-07-18  Bruno Haible  <bruno@clisp.org>
77822
77823         * lib/getndelim2.h: New file.
77824         * lib/getndelim2.c: Make into a module of its own. Include config.h,
77825         getndelim2.h.
77826         (getndelim2): Make non-static. Change return type to ssize_t.
77827         * lib/getline.h: Change argument names.
77828         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
77829         * lib/getnline.c: Include getndelim2.h.
77830
77831 2003-07-18  Andreas Schwab  <schwab@suse.de>
77832
77833         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
77834
77835 2003-07-17  Karl Berry  <karl@gnu.org>
77836
77837         * config/config.sub: update from prep.
77838
77839 2003-07-17  Bruno Haible  <bruno@clisp.org>
77840
77841         * modules/getnline: New file.
77842         * modules/getline: Add lib/getndelim2.c to source file list.
77843         * MODULES.html.sh (func_all_modules): Add getnline.
77844
77845 2003-07-17  Bruno Haible  <bruno@clisp.org>
77846
77847         * m4/getnline.m4: New file.
77848
77849 2003-07-17  Bruno Haible  <bruno@clisp.org>
77850
77851         * m4/Makefile.am.in: Remove file.
77852         * m4/Makefile.am: Remove file.
77853         * m4/Makefile.in: Remove file.
77854
77855 2003-07-17  Bruno Haible  <bruno@clisp.org>
77856
77857         * lib/getnline.h: New file.
77858         * lib/getnline.c: New file.
77859         * lib/getndelim2.c: New file, extracted from getline.c.
77860         (getndelim2): Renamed from getdelim2, with added nmax argument.
77861         * lib/getline.c: Include getndelim2.c.
77862         (getdelim2): Moved out to getndelim2.c.
77863         (getline, getdelim): Update.
77864
77865 2003-07-17  Bruno Haible  <bruno@clisp.org>
77866
77867         * lib/Makefile.am: Remove file.
77868         * lib/Makefile.in: Remove file.
77869
77870 2003-07-17  Bruno Haible  <bruno@clisp.org>
77871
77872         * configure.in: Remove file.
77873         * Makefile.in: Remove file.
77874
77875 2003-07-17  Bruno Haible  <bruno@clisp.org>
77876
77877         * MODULES.html.sh: Put the </BODY> right before </HTML>.
77878
77879 2003-07-16  Karl Berry  <karl@gnu.org>
77880
77881         * config/srclist-update: was running fixlicense twice, which caused
77882                 texinfo.tex to be nullified for some reason.  Simplify,
77883                 $gplsrc is no longer needed as far as I can see?
77884
77885 2003-07-16  Jim Meyering  <jim@meyering.net>
77886
77887         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
77888
77889 2003-07-15  Paul Eggert  <eggert@twinsun.com>
77890
77891         * config/srclist.txt: Get the following files from gettext-runtime/intl
77892         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
77893         ref-del.sin.  From Bruno Haible.
77894         * config/srclist-update (fixfile): Change grep pattern again, since the
77895         previous fix didn't work (there was another trailing $).  Use
77896         '[$]' to escape the $s.
77897
77898 2003-07-15  Karl Berry  <karl@gnu.org>
77899
77900         * lib/vasnprintf.c: update from gettext.
77901
77902 2003-07-15  Karl Berry  <karl@gnu.org>
77903
77904         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
77905         gets expanded when surrounded by '$'.
77906
77907 2003-07-15  Jim Meyering  <jim@meyering.net>
77908
77909         * modules/save-cwd: Don't depend on error.  From Derek Price.
77910
77911 2003-07-15  Jim Meyering  <jim@meyering.net>
77912
77913         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
77914
77915 2003-07-14  Simon Josefsson  <jas@extundo.com>
77916
77917         * modules/mempcpy: New file.
77918         * MODULES.html.sh (func_all_modules): Add mempcpy.
77919
77920 2003-07-14  Simon Josefsson  <jas@extundo.com>
77921
77922         * m4/mempcpy.m4: New file.
77923
77924 2003-07-14  Simon Josefsson  <jas@extundo.com>
77925
77926         * lib/mempcpy.h: New file.
77927         * lib/mempcpy.c: New file.
77928
77929 2003-07-14  Paul Eggert  <eggert@twinsun.com>
77930
77931         * modules/getdate, modules/posixtm: Depend on mktime.
77932
77933 2003-07-14  Paul Eggert  <eggert@twinsun.com>
77934
77935         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
77936         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
77937         unicodeio.c, unicodeio.h, unlocked-io.h:
77938         Switch from LGPL to GPL.
77939
77940 2003-07-14  Paul Eggert  <eggert@twinsun.com>
77941
77942         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
77943         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
77944         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
77945         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
77946         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
77947         updated automatically by ../config/srclist-update.  This changes
77948         their license from LPGL to GPL.
77949
77950 2003-07-14  Paul Eggert  <eggert@twinsun.com>
77951
77952         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
77953         assumed to refer to the root of the most recent stable gettext version.
77954         * config/srclistvars.sh: Add defaults for eggert.
77955         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
77956         Match "This program" as well as "The program".  This is needed
77957         for gettext.
77958
77959 2003-07-14  Jim Meyering  <jim@meyering.net>
77960
77961         Don't emit diagnostics.  Let callers do that.
77962         * lib/save-cwd.c: Don't include "error.h".
77963         (save_cwd): Don't call error.  Ensure that errno is valid
77964         when returning nonzero.
77965
77966         * lib/save-cwd.h (restore_cwd): Update prototype.
77967         * lib/save-cwd.c (restore_cwd): Remove two parameters.
77968         Simplify.  Don't call error upon failure.  Let callers do that.
77969         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
77970         when auditing is enabled.  But don't bother updating the #if.
77971
77972 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
77973
77974         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
77975         it breaks C++ compilation.
77976         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
77977
77978 2003-07-10  Simon Josefsson  <jas@extundo.com>
77979
77980         * modules/strchrnul (Makefile.am): Add strchrnul.h.
77981
77982 2003-07-10  Jim Meyering  <jim@meyering.net>
77983
77984         * m4/clock_time.m4: Remove trailing blank.
77985         * m4/intmax_t.m4: Likewise.
77986
77987 2003-07-10  Jim Meyering  <jim@meyering.net>
77988
77989         * lib/vasnprintf.c: Remove trailing blanks.
77990         Make cpp indentation consistent.
77991
77992 2003-07-09  Paul Eggert  <eggert@twinsun.com>
77993
77994         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
77995         posixver.c, strftime.c, strnlen.c, strverscmp.c:
77996         Switch from LGPL to GPL.
77997
77998 2003-07-09  Paul Eggert  <eggert@twinsun.com>
77999
78000         * config/srclist.txt: Sort sublists.  Add
78001         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
78002         that differ from gnulib for one reason or another; we'd like this list
78003         to be smaller but for now let's document what we have.
78004
78005 2003-07-08  Paul Eggert  <eggert@twinsun.com>
78006
78007         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
78008         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
78009         and sweeter "eval x=$x".
78010         * config/srclist.txt: Get lib/argp* from glibc.
78011
78012 2003-07-07  Paul Eggert  <eggert@twinsun.com>
78013
78014         * lib/mktime.c: Fix some boundary cases and remove need for floating
78015         point.
78016
78017         Issue a compile-time diagnostic if time_t is floating point, or if
78018         two's complement arithmetic is not in effect, or if arithmetic
78019         right shift does not propagate the sign.  These assumptions were
78020         all in the original code but they weren't checked.
78021
78022         (TIME_T_MIDPOINT, verify): New macros.
78023         (__isleap): Remove; it has integer overflow problems.
78024         (leapyear): New function, without those problems.
78025         (ydhms_tm_diff): Remove; splitting into two parts.
78026         (ydhms_diff): New function, containing the arithmetic part of
78027         the old ydhms_tm_diff function.  Issue a compile-time
78028         diagnostic if we are not using C99 integer division.
78029         Avoid casts when possible.
78030         (guess_time_tm): New function, containing the checking part of
78031         the old ydhms_tm_diff function.  Return the new value, rather than
78032         the difference between it and the old.  Accept a new argument T
78033         so that *T specifies the old value.  Check for overflow in the result.
78034
78035         (__mktime_internal): Use a time_t offset, not a long int offset.
78036         This undoes the 2003-06-04 change, which is no longer needed now
78037         that we have better overflow checking.
78038         (localtime_offset): Likewise.
78039
78040         (__mktime_internal): Avoid harmful overflow on hosts where time_t
78041         and long are 64-bit but int is only 32-bit.
78042         (ydhms_diff): Use long int to store year1 and yday1.
78043         Issue a compile-time diagnostic if long int is not wide enough.
78044
78045         (__mktime_internal): Use long int to store adjusted year and yday.
78046         Use plain C rather than preprocessor commands, if that doesn't
78047         affect efficiency.
78048         Check for overflow (and try to repair) after each probe
78049         rather than checking only at the very end.  This avoids some bugs
78050         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
78051         does not equal GMT offset at maximum time).
78052         Use integer to check for overflow rather than floating point; this
78053         is more portable to non-IEEE hosts, and is a tad faster.
78054         When we detect that we are oscillating between two values,
78055         don't check whether tm_isdst has the requested value, since
78056         we already know the answer.  When tm_isdst has the wrong value,
78057         use a different heuristic to find the right one, based on the
78058         extreme values actually observed in practice in tz2003a,
78059         rather than the (overly optimistic) "previous 3 calendar quarters".
78060
78061         (not_equal_tm, print_tm, check_result): Use "const T" rather than
78062         "T const" to accommodate glibc style.
78063         (check_result): Use less-confusing report format.  "long" -> "long int.
78064         (main): Likewise.
78065         Don't loop if the iteration overflows time_t.
78066         Allow a negative step in the iteration.
78067
78068 2003-07-06  Karl Berry  <karl@gnu.org>
78069
78070         * config/depcomp: update from automake.
78071         * config/config.sub: update from prep.
78072
78073 2003-07-03  Karl Berry  <karl@gnu.org>
78074
78075         * config/config.guess: update from prep.
78076
78077 2003-07-01  Paul Eggert  <eggert@twinsun.com>
78078
78079         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
78080         xreadlink.c now includes it unconditionally.
78081
78082 2003-07-01  Paul Eggert  <eggert@twinsun.com>
78083
78084         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
78085         having it depend on HAVE_SYS_TYPES_H.
78086
78087 2003-07-01  Bruno Haible  <bruno@clisp.org>
78088
78089         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
78090         <sys/types.h> should be sufficient.
78091         Reported by Paul Eggert.
78092
78093 2003-06-26  Karl Berry  <karl@gnu.org>
78094
78095         * config/depcomp: update from automake.
78096
78097 2003-06-26  Bruno Haible  <bruno@clisp.org>
78098
78099         * modules/human: Depend on module stdbool.
78100
78101 2003-06-25  Bruno Haible  <bruno@clisp.org>
78102
78103         * modules/readlink: New file.
78104         * modules/xreadlink: Depend on it.
78105         * MODULES.html.sh (func_all_modules): Add readlink.
78106
78107 2003-06-25  Bruno Haible  <bruno@clisp.org>
78108
78109         * m4/readlink.m4: New file.
78110
78111 2003-06-25  Bruno Haible  <bruno@clisp.org>
78112
78113         * lib/readlink.c: New file.
78114
78115 2003-06-22  Karl Berry  <karl@gnu.org>
78116
78117         * config/srclist.txt: update mkinstalldirs from automake.
78118         * config/mkinstalldirs: update.
78119
78120 2003-06-22  Bruno Haible  <bruno@clisp.org>
78121
78122         Portability to mingw32.
78123         * m4/ssize_t.m4: New file, from GNU gettext.
78124         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
78125         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
78126
78127 2003-06-22  Bruno Haible  <bruno@clisp.org>
78128
78129         * modules/safe-read: Add m4/ssize_t.m4.
78130         * modules/xreadlink: Add m4/ssize_t.m4.
78131
78132 2003-06-20  Bruno Haible  <bruno@clisp.org>
78133
78134         Assume C89, so PARAMS isn't needed.
78135         * lib/unicodeio.h (PARAMS): Remove.
78136         * lib/unicodeio.c: Don't use PARAMS.
78137
78138 2003-06-18  Karl Berry  <karl@gnu.org>
78139
78140         * config/config.{guess,sub}: update from prep.
78141
78142 2003-06-18  Jim Meyering  <jim@meyering.net>
78143
78144         Merge changes from coreutils.
78145         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
78146         Remove explicit declarations of xmalloc and realloc.
78147         Include xalloc.h.
78148         (read_utmp): Remove anachronistic cast of xmalloc.
78149
78150 2003-06-17  Paul Eggert  <eggert@twinsun.com>
78151
78152         Assume C89, so PARAMS isn't needed.
78153         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
78154         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
78155         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
78156         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
78157         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
78158         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
78159         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
78160         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
78161         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
78162         lib/xstrtod.h, lib/xstrtol.h: Likewise.
78163         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
78164         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
78165         no longer needed. Anyway, config.h should always be included before any
78166         other file.
78167
78168 2003-06-11  Simon Josefsson  <jas@extundo.com>
78169
78170         * modules/sysexits: New file.
78171         * MODULES.html.sh (func_all_modules): Add sysexits.
78172
78173 2003-06-11  Simon Josefsson  <jas@extundo.com>
78174
78175         * lib/sysexit_.h: New file.
78176
78177 2003-06-11  Derek Price  <derek@ximbiot.com>
78178
78179         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
78180         necessary.
78181
78182 2003-06-11  Bruno Haible  <bruno@clisp.org>
78183
78184         * m4/sysexits.m4: New file.
78185
78186 2003-06-10  Simon Josefsson  <jas@extundo.com>
78187
78188         * lib/argp.h: New file, from glibc.
78189         * lib/argp-ba.c: New file, from glibc.
78190         * lib/argp-eexst.c: New file, from glibc.
78191         * lib/argp-fmtstream.c: New file, from glibc.
78192         * lib/argp-fmtstream.h: New file, from glibc.
78193         * lib/argp-fs-xinl.c: New file, from glibc.
78194         * lib/argp-help.c: New file, from glibc.
78195         * lib/argp-namefrob.h: New file, from glibc.
78196         * lib/argp-parse.c: New file, from glibc.
78197         * lib/argp-pv.c: New file, from glibc.
78198         * lib/argp-pvh.c: New file, from glibc.
78199         * lib/argp-xinl.c: New file, from glibc.
78200
78201 2003-06-10  Simon Josefsson  <jas@extundo.com>
78202
78203         * modules/strchrnul: New file.
78204
78205 2003-06-10  Simon Josefsson  <jas@extundo.com>
78206
78207         * modules/argp: New file.
78208
78209 2003-06-10  Simon Josefsson  <jas@extundo.com>
78210
78211         * m4/strchrnul.m4: New file.
78212
78213 2003-06-10  Simon Josefsson  <jas@extundo.com>
78214
78215         * lib/strchrnul.h: New file.
78216         * lib/strchrnul.c: New file.
78217
78218 2003-06-10  Bruno Haible  <bruno@clisp.org>
78219
78220         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
78221
78222 2003-06-07  Karl Berry  <karl@gnu.org>
78223
78224         * config/config.{guess,sub}: update from prep.
78225
78226 2003-06-07  Jim Meyering  <jim@meyering.net>
78227
78228         * modules/strtod: Use $(...) notation, not @...@ for
78229         AC_REPLACE'd variables.
78230         * modules/localcharset: Likewise.
78231
78232 2003-06-07  Jim Meyering  <jim@meyering.net>
78233
78234         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
78235         in place of my name in the copyright comment.
78236         Remove definition and uses of __P.
78237
78238         From coreutils.
78239         * lib/stat.c: Don't declare xmalloc explicitly.
78240         Instead, include "xalloc.h".
78241         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
78242         xrealloc, and xcalloc return values.
78243         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
78244         Improve comment.
78245         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
78246
78247 2003-06-07  Bruno Haible  <bruno@clisp.org>
78248
78249         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
78250         avoid AC_CONFIG_LINKS.
78251         * modules/fnmatch (Makefile.am): Use explicit creation rule for
78252         fnmatch.h, to avoid AC_CONFIG_LINKS.
78253         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
78254
78255 2003-06-07  Bruno Haible  <bruno@clisp.org>
78256
78257         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
78258         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
78259         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
78260         directory.
78261         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
78262         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
78263         directory.
78264
78265 2003-06-06  Jim Meyering  <jim@meyering.net>
78266
78267         Merge from coreutils.
78268         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
78269         Consolidate declarations and initializations of *_base* locals.
78270
78271         Merge from coreutils.
78272         This avoids a core dump on systems without GNU putenv,
78273         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
78274         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
78275         (unsetenv): New static function, from GNU libc.
78276         (rpl_putenv): Use it.
78277
78278         * lib/modechange.c: Remove trailing blanks.
78279
78280         Merge from coreutils.
78281         * lib/fsusage.c: Remove declaration of statfs.
78282         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
78283
78284         * lib/posixtm.c: Include <stdbool.h> unconditionally.
78285
78286 2003-06-06  Jim Meyering  <jim@meyering.net>
78287
78288         * lib/stdbool_.h: Renamed from stdbool.h.in.
78289
78290 2003-06-06  Jim Meyering  <jim@meyering.net>
78291             Bruno Haible  <bruno@clisp.org>
78292
78293         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
78294         Adjust Makefile.am snippet not to redirect directly to target.
78295         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
78296
78297 2003-06-05  Paul Eggert  <eggert@twinsun.com>
78298
78299         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
78300         mismatch, look in future quarters as well as past.  This fixes a
78301         bug when processing fall-backwards gaps immediately after a long
78302         period of daylight-saving time.
78303
78304         * lib/mktime.c: Assume freestanding C89 or better.
78305         (HAVE_LIMITS_H): Remove.  Assume it's 1.
78306         (__P): Remove; not used.
78307         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
78308         (mktime, not_equal_tm, print_tm, check_result,
78309         main): Use prototypes.  Use const * where appropriate.
78310         (main): Fix typo in testing code that uncovered by above changes.
78311         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
78312
78313 2003-06-04  Paul Eggert  <eggert@twinsun.com>
78314
78315         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
78316         locale.h, localeconv.  This merges changes from coreutils.
78317
78318         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
78319         It can be removed after the next Autoconf is released.
78320         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
78321         needed.
78322
78323 2003-06-04  Paul Eggert  <eggert@twinsun.com>
78324
78325         * lib/mktime.c: Fix Debian bug 177940
78326         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
78327         (localtime_offset): Now long int, not time_t, because we want it
78328         to be guaranteed to be signed.  All uses changed.
78329         (__mktime_internal): If overflow would occur when adding offset,
78330         don't add it.
78331
78332         Merge 'human' changes from coreutils.  Rewrite to support
78333         locale-specific notations like thousands separators.
78334         * lib/human.c: Simplify authorship notice.
78335         Include human.h immediately after config.h.
78336         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
78337         <limits.h>: Do not include, since human.h does.
78338         (SIZE_MAX, UINTMAX_MAX): New macros.
78339         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
78340         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
78341         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
78342         (power_letter): Renamed from suffixes.
78343         (generate_suffix_backwards): Remove.
78344         (adjust_value): Now takes int style (because of human.h changes)
78345         and long double value (for greater precision on some platforms).
78346         (group_number): New function.
78347         (human_readable): Use it.  Use integer options, not enum.
78348         Put the options before the sizes in the arg list.
78349         Support all the new options.
78350         The old human_readable function has been removed;
78351         use inttostr.h instead.
78352         (human_readable, default_block_size, humblock):
78353         Use uintmax_t, not int, for block sizes.
78354         (human_readable_inexact, block_size_types): Remove.
78355         (block_size_opts): New constant.
78356         (human_options): Renamed from human_block_size, with new signature
78357         that allows block sizes up to UINTMAX_MAX.  All callers changed.
78358         * lib/human.h: Add copyright and authorship notice.
78359         Include <limits.h> and <stdbool.h> unconditionally.
78360         (PARAMS): Remove.  All uses removed.
78361         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
78362         (enum human_inexact_style): Remove tag; now a nameless enum.
78363         (human_floor, human_ceiling, human_round_to_even): Now have
78364         values 2, 0, 1 rather than -1, 1, 0.
78365         (human_group_digits, human_suppress_point_zero, human_autoscale,
78366         human_base_1024, human_SI, human_B): New constants.
78367         (human_readable_inexact, human_block_size): Remove.
78368         (human_readable): Size args are now uintmax_t, not int.
78369         (human_options): New decl.
78370
78371         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
78372         unnecessary now that we assume C89 or better.  This change
78373         imported from coreutils.
78374
78375         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
78376         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
78377         in the 2003-05-30 sync from glibc.
78378
78379         .h files should stand alone, but we shouldn't include <sys/types.h>
78380         if we can get away with just <stddef.h>.
78381
78382         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
78383         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
78384         rather than <sys/types.h>, as we merely need size_t.
78385         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
78386         to get size_t.
78387         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
78388         Include <stdio.h>, to get FILE.
78389         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
78390         memcasecmp.h has included <stddef.h> and all we need is size_t.
78391         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
78392         our interface, instead of including <sys/types.h>
78393
78394 2003-06-04  Paul Eggert  <eggert@twinsun.com>
78395
78396         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
78397         now, as glibc mktime is buggy on non-glibc systems.
78398
78399 2003-06-03  Karl Berry  <karl@gnu.org>
78400
78401         * config/config.sub: update from prep.
78402
78403 2003-06-02  Paul Eggert  <eggert@twinsun.com>
78404
78405         [from coreutils]
78406         Fix some minor time-related bugs with POSIX time arguments.
78407         Some valid time stamps were being rejected (notably -1, and
78408         time stamps before 1900 on 64-bit hosts).  And some invalid
78409         time stamps were being accepted, e.g. September 31.
78410
78411         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
78412         that we can return (time_t) -1 successfully.
78413         * lib/posixtm.c: Likewise.
78414         [HAVE_STDBOOL_H]: Include <stdbool.h>.
78415         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
78416         (t): Remove static var.
78417         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
78418         of static var.  All uses changed.
78419         (year): Do not reject years before 1900; they can occur with
78420         64-bit time_t.
78421         (posix_time_parse): Do not check for out-of-range components;
78422         that is now the caller's responsibility, since our checks were
78423         only approximations.
78424         (posixtime): Use mktime to check for out-of-range components,
78425         since it knows them exactly.
78426         If mktime returns (time_t) -1, check whether an error actually occurred
78427         by invoking localtime on -1.
78428         (main) [TEST_POSIXTIME]: Check for input data errors, and report
78429         posixtime failures better.
78430         Improve the test data (in comments only).
78431
78432 2003-06-02  Karl Berry  <karl@gnu.org>
78433
78434         * config/mkinstalldirs (version): new variable.
78435         (--version): new option.
78436         (usage): improve message.
78437
78438 2003-05-30  Karl Berry  <karl@gnu.org>
78439
78440         * lib/mktime.c: update from libc.
78441
78442 2003-05-30  Bruno Haible  <bruno@clisp.org>
78443
78444         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
78445         * config/config.rpath: Upgrade to gettext-0.12.1.
78446
78447 2003-05-30  Bruno Haible  <bruno@clisp.org>
78448
78449         * m4/gettext.m4: Upgrade to gettext-0.12.1.
78450         * m4/nls.m4: New file, from gettext-0.12.1.
78451         * m4/po.m4: New file, from gettext-0.12.1.
78452         * m4/progtest.m4: Upgrade to gettext-0.12.1.
78453
78454 2003-05-30  Bruno Haible  <bruno@clisp.org>
78455
78456         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
78457         * lib/localcharset.h: Likewise.
78458         * lib/localcharset.c: Likewise.
78459
78460 2003-05-29  Karl Berry  <karl@gnu.org>
78461
78462         * config/config.rpath: update from gettext.
78463
78464 2003-05-28  Paul Eggert  <eggert@twinsun.com>
78465
78466         Assume the headers required for C89 freestanding compilers.
78467         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
78468         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
78469         * m4/human.m4 (gl_HUMAN): Likewise.
78470         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
78471         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
78472         * m4/userspec.m4 (gl_USERSPEC): Likewise.
78473         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
78474         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
78475         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
78476
78477 2003-05-28  Paul Eggert  <eggert@twinsun.com>
78478
78479         Assume the headers required for C89 freestanding compilers.
78480         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
78481         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
78482         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
78483         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
78484         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
78485         define, since <limits.h> is guaranteed to do that.
78486         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
78487         * lib/exclude.c: Include <stdbool.h> unconditionally.
78488         * lib/tempname.c: Include <stddef.h> unconditionally.
78489         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
78490         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
78491         <stddef.h> does that.
78492         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
78493         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
78494         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
78495         needed.
78496         * lib/xstrtol.c: Likewise.
78497         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
78498         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
78499
78500         * lib/addext.c (addext): Use assignment rather than cast, to avoid
78501         warnings on some platforms.
78502
78503         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
78504         arbitrarily.
78505
78506 2003-05-26  Jim Meyering  <jim@meyering.net>
78507
78508         Merge in a change from coreutils:
78509         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
78510         that is guaranteed to be `no'.  Use `no_such_member' to indicate
78511         that condition, rather than `-1' which is slightly misleading.
78512         Change the name of the cache variable to have the gl_ prefix.
78513         Prompted by a patch from Richard Dawe for DJGPP.
78514
78515 2003-05-24  Karl Berry  <karl@gnu.org>
78516
78517         * config/config.guess: update from prep.
78518
78519 2003-05-22  Karl Berry  <karl@gnu.org>
78520
78521         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
78522
78523 2003-05-20  Karl Berry  <karl@gnu.org>
78524
78525         * config/config.guess: update from prep.
78526
78527 2003-05-18  Karl Berry  <karl@gnu.org>
78528
78529         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
78530         might actually be set by the user.
78531
78532         * config/depcomp, install-sh, mdate-sh: update from automake.
78533
78534 2003-05-17  Bruno Haible  <bruno@clisp.org>
78535
78536         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
78537         invalid expansion for AC_EGREP_CPP.
78538         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
78539         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
78540         Suggested by Akim Demaille <akim@epita.fr> in
78541         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
78542
78543 2003-05-12  Jim Meyering  <jim@meyering.net>
78544
78545         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
78546         the space-padded-by-default conversion specifiers, %e, %k, %l.
78547
78548 2003-05-12  Bruno Haible  <bruno@clisp.org>
78549
78550         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
78551         the string is longer than 4 KB.
78552
78553 2003-05-11  Karl Berry  <karl@gnu.org>
78554
78555         * config/config.{guess,sub}: update from prep.
78556
78557 2003-05-09  Bruno Haible  <bruno@clisp.org>
78558
78559         * modules/error: Add m4/strerror_r.m4 to file list.
78560
78561 2003-05-03  Bruno Haible  <bruno@clisp.org>
78562
78563         Upgrade to Unicode-4.0.
78564         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
78565         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
78566         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
78567         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
78568         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
78569         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
78570         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
78571         Change width of U+E0100..U+E01EF from 1 to 0.
78572
78573 2003-04-25  Jim Meyering  <jim@meyering.net>
78574
78575         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
78576         of type size_t, not int.
78577
78578 2003-04-25  Bruno Haible  <bruno@clisp.org>
78579
78580         * lib/copy-file.c: Include <stddef.h>, for size_t.
78581
78582 2003-04-21  Paul Eggert  <eggert@twinsun.com>
78583
78584         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
78585         code which expansion is under static control.  Patch imported from
78586         Akim Demaille's patch to Bison; see
78587         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
78588
78589 2003-04-14  Bruno Haible  <bruno@clisp.org>
78590
78591         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
78592
78593 2003-04-11  Jim Meyering  <jim@meyering.net>
78594
78595         Merge changes from Coreutils.
78596
78597         2003-03-22  Jim Meyering  <jim@meyering.net>
78598
78599         * lib/strftime.c (widen): Cast alloca return value to proper type.
78600
78601         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
78602
78603         From GNU libc.
78604         * lib/strftime.c (my_strftime): Handle very large width
78605         specifications for numeric values correctly.  Improve checks for
78606         overflow.
78607
78608         2003-01-19  Jim Meyering  <jim@meyering.net>
78609
78610         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
78611         definitions.
78612         (nl_get_alt_digit) [! defined my_strftime]: Define.
78613         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
78614         _nl_get_alt_digit and _nl_get_walt_digit.
78615
78616         * lib/strftime.c (my_strftime): Merge in locale-related changes from
78617         libc. These changes have no effect outside of _LIBC.
78618
78619 2003-04-10  Bruno Haible  <bruno@clisp.org>
78620
78621         * modules/findprog: New file.
78622         * MODULES.html.sh (func_all_modules): Add it.
78623
78624 2003-04-10  Bruno Haible  <bruno@clisp.org>
78625
78626         * m4/findprog.m4: New file.
78627         * m4/eaccess.m4: New file.
78628
78629 2003-04-10  Bruno Haible  <bruno@clisp.org>
78630
78631         * lib/findprog.h: New file, from GNU gettext.
78632         * lib/findprog.c: New file, from GNU gettext.
78633
78634 2003-04-05  Jim Meyering  <jim@meyering.net>
78635
78636         Merge changes from Coreutils.
78637
78638         * lib/exclude.h (PARAMS): Remove definition and uses.
78639         * lib/exclude.c: Remove uses of `PARAMS'.
78640
78641         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
78642         Add test-cases for DOS filenames. Declare program_name.
78643         (main): Set up program_name.  Patch by Rich Dawe.
78644
78645         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
78646         error from mntctl.
78647         Use mntctl's return value to drive the entry-processing loop, since
78648         we can't rely on the value of the vmt_length member in the last
78649         entry.  On some systems doing so could result in exhausting
78650         virtual memory.  Based in part on a patch from Mike Jetzer.
78651
78652 2003-04-04  Bruno Haible  <bruno@clisp.org>
78653
78654         * modules/linebreak: New file.
78655         * MODULES.html.sh (func_all_modules): Add it.
78656
78657 2003-04-04  Bruno Haible  <bruno@clisp.org>
78658
78659         * m4/linebreak.m4: New file.
78660
78661 2003-04-04  Bruno Haible  <bruno@clisp.org>
78662
78663         * lib/linebreak.h: New file, from GNU gettext.
78664         * lib/linebreak.c: New file, from GNU gettext with slight
78665         modifications.
78666         * lib/lbrkprop.h: New file, from GNU gettext.
78667
78668 2003-04-03  Bruno Haible  <bruno@clisp.org>
78669
78670         * modules/utf8-ucs4: New file.
78671         * modules/utf16-ucs4: New file.
78672         * modules/ucs4-utf8: New file.
78673         * modules/ucs4-utf16: New file.
78674         * MODULES.html.sh (func_all_modules): Add them.
78675
78676 2003-04-03  Bruno Haible  <bruno@clisp.org>
78677
78678         * m4/utf-ucs4.m4: New file.
78679         * m4/ucs4-utf.m4: New file.
78680
78681 2003-04-03  Bruno Haible  <bruno@clisp.org>
78682
78683         * lib/utf8-ucs4.h: New file, from GNU gettext.
78684         * lib/utf16-ucs4.h: New file, from GNU gettext.
78685         * lib/ucs4-utf8.h: New file, from GNU gettext.
78686         * lib/ucs4-utf16.h: New file, from GNU gettext.
78687
78688 2003-04-02  Bruno Haible  <bruno@clisp.org>
78689
78690         * modules/binary-io: New file.
78691         * MODULES.html.sh (func_all_modules): Add it.
78692
78693 2003-04-02  Bruno Haible  <bruno@clisp.org>
78694
78695         * lib/binary-io.h: New file, from GNU gettext.
78696
78697 2003-04-01  Bruno Haible  <bruno@clisp.org>
78698
78699         * modules/pathname: New file.
78700         * MODULES.html.sh (func_all_modules): Add it.
78701
78702 2003-04-01  Bruno Haible  <bruno@clisp.org>
78703
78704         * lib/pathname.h: New file, from GNU gettext.
78705         * lib/concatpath.c: New file, from GNU gettext.
78706
78707 2003-03-30  Bruno Haible  <bruno@clisp.org>
78708
78709         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
78710
78711 2003-03-30  Bruno Haible  <bruno@clisp.org>
78712
78713         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
78714         function chown() doesn't exist.
78715
78716 2003-03-28  Bruno Haible  <bruno@clisp.org>
78717
78718         * modules/copy-file: New file.
78719         * MODULES.html.sh (func_all_modules): Add it.
78720
78721 2003-03-28  Bruno Haible  <bruno@clisp.org>
78722
78723         * m4/copy-file.m4: New file.
78724
78725 2003-03-28  Bruno Haible  <bruno@clisp.org>
78726
78727         * lib/copy-file.h: New file, from GNU gettext.
78728         * lib/copy-file.c: New file, from GNU gettext.
78729
78730 2003-03-18  Jim Meyering  <jim@meyering.net>
78731
78732         * lib/quote.c (quote_n): Fix typo in comment.
78733
78734 2003-03-18  Bruno Haible  <bruno@clisp.org>
78735
78736         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
78737         checking.
78738         * m4/onceonly_2_57.m4: Likewise.
78739
78740 2003-03-17  Bruno Haible  <bruno@clisp.org>
78741
78742         * m4/onceonly.m4: Require autoconf 2.54 or newer.
78743         (m4_quote): Remove macro.
78744         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
78745
78746 2003-03-14  Jim Meyering  <jim@meyering.net>
78747
78748         Merge changes from Coreutils.
78749         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
78750         to be const, in order to avoid warnings.
78751         (obstack_room): Likewise.
78752         (obstack_empty_p): Likewise.
78753
78754 2003-03-14  Bruno Haible  <bruno@clisp.org>
78755
78756         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
78757         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
78758
78759 2003-03-13  Paul Eggert  <eggert@twinsun.com>
78760
78761         Merge changes from Bison.
78762         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
78763         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
78764         when compiling Bison 1.875's `bitset bset = obstack_alloc
78765         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
78766         * lib/hash.c: Include <stdbool.h> unconditionally.
78767
78768 2003-03-13  Paul Eggert  <eggert@twinsun.com>
78769
78770         * m4/onceonly.m4 (m4_quote): New macro.
78771         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
78772         Quote AC_FOREACH variable-expansions properly.
78773
78774 2003-03-13  Paul Eggert  <eggert@twinsun.com>
78775
78776         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
78777
78778 2003-03-09  Paul Eggert  <eggert@twinsun.com>
78779
78780         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
78781         Reported by Bruce Becker; see:
78782         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
78783
78784 2003-03-03  Paul Eggert  <eggert@twinsun.com>
78785             Bruno Haible  <bruno@clisp.org>
78786
78787         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
78788         Reported by John Hughes, see
78789         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
78790
78791 2003-02-20  Bruno Haible  <bruno@clisp.org>
78792
78793         * MODULES.html.sh (func_all_modules): Add poll.
78794
78795 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
78796
78797         * modules/poll: New file.
78798
78799 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
78800
78801         * lib/poll_.h: New file.
78802         * lib/poll.c: New file.
78803
78804 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
78805
78806         * m4/poll.m4: New file.
78807
78808 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
78809
78810         * modules/mathl: New file.
78811
78812 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
78813
78814         * lib/mathl.h: New file.
78815         * lib/acosl.c: New file.
78816         * lib/asinl.c: New file.
78817         * lib/atanl.c: New file.
78818         * lib/ceill.c: New file.
78819         * lib/cosl.c: New file.
78820         * lib/expl.c: New file.
78821         * lib/floorl.c: New file.
78822         * lib/frexpl.c: New file.
78823         * lib/ldexpl.c: New file.
78824         * lib/logl.c: New file.
78825         * lib/sincosl.c: New file.
78826         * lib/sinl.c: New file.
78827         * lib/sqrtl.c: New file.
78828         * lib/tanl.c: New file.
78829         * lib/trigl.c: New file.
78830         * lib/trigl.h: New file.
78831
78832 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
78833
78834         * m4/mathl.m4: New file.
78835
78836 2003-02-18  Bruno Haible  <bruno@clisp.org>
78837
78838         * MODULES.html.sh (func_all_modules): Add mathl.
78839
78840 2003-02-17  Bruno Haible  <bruno@clisp.org>
78841
78842         * modules/mkdtemp: New module.
78843         * MODULES.html.sh (func_all_modules): Add it.
78844
78845 2003-02-17  Bruno Haible  <bruno@clisp.org>
78846
78847         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
78848
78849 2003-02-17  Bruno Haible  <bruno@clisp.org>
78850
78851         * lib/mkdtemp.h: New file, from GNU gettext.
78852         * lib/mkdtemp.c: New file, from GNU gettext.
78853
78854 2003-02-02  Jim Meyering  <jim@meyering.net>
78855
78856         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
78857         e.g. glibc-2.2.93.
78858
78859 2003-01-31  Bruno Haible  <bruno@clisp.org>
78860
78861         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
78862         'rpl_rename'.
78863         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
78864         'rpl_strnlen'.
78865         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
78866         'rpl_strtod'.
78867         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
78868         'rpl_utime'.
78869
78870 2003-01-31  Bruno Haible  <bruno@clisp.org>
78871
78872         * lib/rename.c: #undef rename before defining rpl_rename.
78873         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
78874
78875 2003-01-30  Bruno Haible  <bruno@clisp.org>
78876
78877         * modules/vasnprintf, modules/vasprintf: New modules.
78878         * MODULES.html.sh (func_all_modules): Add them.
78879
78880 2003-01-30  Bruno Haible  <bruno@clisp.org>
78881
78882         * m4/signed.m4: New file, from GNU gettext.
78883         * m4/longdouble.m4: New file, from GNU gettext.
78884         * m4/wchar_t.m4: New file, from GNU gettext.
78885         * m4/wint_t.m4: New file, from GNU gettext.
78886         * m4/vasnprintf.m4: New file.
78887         * m4/vasprintf.m4: New file.
78888
78889 2003-01-30  Bruno Haible  <bruno@clisp.org>
78890
78891         * lib/printf-args.h: New file, from GNU gettext.
78892         * lib/printf-args.c: New file, from GNU gettext.
78893         * lib/printf-parse.h: New file, from GNU gettext.
78894         * lib/printf-parse.c: New file, from GNU gettext.
78895         * lib/vasnprintf.h: New file, from GNU gettext.
78896         * lib/vasnprintf.c: New file, from GNU gettext.
78897         * lib/asnprintf.c: New file, from GNU gettext.
78898         * lib/vasprintf.h: New file, from GNU gettext with modifications.
78899         * lib/vasprintf.c: New file, from GNU gettext.
78900         * lib/asprintf.c: New file, from GNU gettext.
78901
78902 2003-01-29  Bruno Haible  <bruno@clisp.org>
78903
78904         * modules/stpncpy: New module.
78905         * MODULES.html.sh (func_all_modules): Add it.
78906
78907 2003-01-29  Bruno Haible  <bruno@clisp.org>
78908
78909         * m4/stpncpy.m4: New file.
78910
78911 2003-01-29  Bruno Haible  <bruno@clisp.org>
78912
78913         * lib/stpncpy.h: New file, from GNU gettext with modifications.
78914         * lib/stpncpy.c: New file, from GNU gettext with modifications.
78915
78916 2003-01-28  Bruno Haible  <bruno@clisp.org>
78917
78918         * modules/c-ctype: New module.
78919         * MODULES.html.sh (func_all_modules): Add it.
78920
78921 2003-01-28  Bruno Haible  <bruno@clisp.org>
78922
78923         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
78924         Paul Eggert.
78925         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
78926         Paul Eggert.
78927
78928 2003-01-27  Bruno Haible  <bruno@clisp.org>
78929
78930         * modules/xsetenv: New module.
78931         * MODULES.html.sh (func_all_modules): Add it.
78932
78933 2003-01-27  Bruno Haible  <bruno@clisp.org>
78934
78935         * lib/xsetenv.h: New file, from GNU gettext.
78936         * lib/xsetenv.c: New file, from GNU gettext.
78937
78938 2003-01-23  Jim Meyering  <jim@meyering.net>
78939
78940         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
78941         from working on systems without dirfd (at least Irix and OSF1/Tru64).
78942
78943 2003-01-23  Bruno Haible  <bruno@clisp.org>
78944
78945         * modules/minmax: New module.
78946         * MODULES.html.sh (func_all_modules): Add it.
78947
78948 2003-01-23  Bruno Haible  <bruno@clisp.org>
78949
78950         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
78951         Eggert.
78952
78953 2003-01-22  Bruno Haible  <bruno@clisp.org>
78954
78955         * modules/exit: New module.
78956         * MODULES.html.sh (func_all_modules): Add it.
78957
78958 2003-01-22  Bruno Haible  <bruno@clisp.org>
78959
78960         * lib/exit.h: New file, from GNU gettext.
78961
78962 2003-01-19  Bruno Haible  <bruno@clisp.org>
78963
78964         * gnulib-tool: Recognize option --extract-maintainer.
78965         (func_get_maintainer): New function.
78966         * modules/*: Add Maintainer entry.
78967
78968 2003-01-16  Jim Meyering  <jim@meyering.net>
78969
78970         * m4/regex.m4: The `regex' struct is both input and output.
78971         Initialize it before each use.  Patch by Tim Waugh.
78972
78973 2003-01-16  Bruno Haible  <bruno@clisp.org>
78974
78975         * MODULES.html.sh: Add a table of contents. Add the module name as
78976         leftmost column. Add hyperlinks.
78977
78978 2003-01-15  Bruno Haible  <bruno@clisp.org>
78979
78980         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
78981
78982 2003-01-15  Bruno Haible  <bruno@clisp.org>
78983
78984         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
78985         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
78986         suffix.
78987
78988 2003-01-15  Bruno Haible  <bruno@clisp.org>
78989
78990         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
78991
78992 2003-01-15  Bruno Haible  <bruno@clisp.org>
78993
78994         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
78995         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
78996
78997 2003-01-14  Jim Meyering  <jim@meyering.net>
78998
78999         * lib/same.c (same_name): Tweak a comment.
79000
79001 2003-01-14  Bruno Haible  <bruno@clisp.org>
79002
79003         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
79004         when a string comparison is sufficient.
79005
79006 2003-01-14  Bruno Haible  <bruno@clisp.org>
79007
79008         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
79009         'unsigned int'.
79010
79011 2003-01-14  Bruno Haible  <bruno@clisp.org>
79012
79013         * lib/hash-pjw.c: Add comment about low quality of this function.
79014
79015 2003-01-13  Bruno Haible  <bruno@clisp.org>
79016
79017         * modules/stpcpy: Distribute lib/stpcpy.h.
79018         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
79019
79020 2003-01-13  Bruno Haible  <bruno@clisp.org>
79021
79022         * modules/*: Add a description.
79023         * modules/strpbrk: Fix Makefile.am snippet.
79024         * modules/strtoimax: Fix dependencies.
79025         * modules/strtoumax: Likewise.
79026
79027 2003-01-13  Bruno Haible  <bruno@clisp.org>
79028
79029         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
79030         * modules/alloca (Makefile.am): All object files depend on alloca.h.
79031         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
79032
79033 2003-01-13  Bruno Haible  <bruno@clisp.org>
79034
79035         * gnulib-tool (func_create_testdir): Store config/* files in the main
79036         directory.
79037         * config.rpath: Move to ...
79038         * config/config.rpath: ... here.
79039         * modules/gettext: Contains config/config.rpath, not config.rpath.
79040         * modules/iconv: Likewise.
79041
79042 2003-01-12  Paul Eggert  <eggert@twinsun.com>
79043
79044         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
79045         to avoid collisions with libcurses and libreadline.
79046
79047         * m4/getstr.m4: Remove.
79048         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
79049
79050 2003-01-12  Paul Eggert  <eggert@twinsun.com>
79051
79052         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
79053         to avoid collisions with libcurses and libreadline.
79054
79055         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
79056         * lib/getstr.h, getstr.c: Remove.
79057         * lib/getline.c: Include "getline.h", to check interface.
79058         Move body of old getstr.c here: this defines MIN_CHUNK and
79059         declares getdelim2, which is renamed from getstr.
79060         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
79061
79062         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
79063         All uses changed.
79064         * lib/linebuffer.h: Likewise.
79065         (readline): Remove backward-compatibility macro.
79066
79067 2003-01-12  Paul Eggert  <eggert@twinsun.com>
79068
79069         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
79070         to avoid collisions with libcurses and libreadline.
79071         * getstr: Remove.
79072         * MODULES.html.sh: Remove getstr.
79073         * modules/getline: Depend on unlocked-io, not getstr.
79074
79075 2003-01-12  Jim Meyering  <jim@meyering.net>
79076
79077         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
79078
79079 2003-01-10  Bruno Haible  <bruno@clisp.org>
79080
79081         * modules/alloca: Change Makefile.am requirements. Simplify Include
79082         requirements. Add lib/alloca_.h to file list.
79083
79084 2003-01-10  Bruno Haible  <bruno@clisp.org>
79085
79086         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
79087
79088 2003-01-10  Bruno Haible  <bruno@clisp.org>
79089
79090         * lib/alloca_.h: New file.
79091         * lib/getdate.y: Unconditionally include alloca.h.
79092         * lib/makepath.c: Likewise.
79093         * lib/setenv.c: Likewise.
79094         * lib/userspec.c: Likewise.
79095
79096 2003-01-09  Karl Berry  <karl@gnu.org>
79097
79098         * MODULES.html.sh: include `dirname $0` in PATH, to find
79099         gnulib-tool.
79100
79101 2003-01-09  Bruno Haible  <bruno@clisp.org>
79102
79103         * modules/stdbool: Change configure.ac, Makefile.am requirements.
79104         Simplify Include requirements. Add lib/stdbool.h.in to file list.
79105
79106 2003-01-09  Bruno Haible  <bruno@clisp.org>
79107
79108         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
79109
79110 2003-01-09  Bruno Haible  <bruno@clisp.org>
79111
79112         * lib/stdbool.h.in: New file.
79113
79114 2003-01-09  Bruno Haible  <bruno@clisp.org>
79115
79116         * gnulib-tool (func_all_modules): Ignore files ending in ~.
79117         * MODULES.html.sh: Likewise.
79118
79119 2003-01-08  Jim Meyering  <jim@meyering.net>
79120
79121         * lib/full-write.c: Undefine and define-away `const' after inclusion
79122         of errno.h, not before.  Suggestion from Bruno Haible.
79123
79124 2003-01-08  Bruno Haible  <bruno@clisp.org>
79125
79126         * modules/full-read: Depend on full-write.
79127
79128 2003-01-08  Bruno Haible  <bruno@clisp.org>
79129
79130         * lib/safe-read.c: Include specification header first, to ensure its
79131         selfcontainedness.
79132         * lib/full-write.c: Likewise.
79133
79134 2003-01-07  Jim Meyering  <jim@meyering.net>
79135
79136         * lib/full-write.c: Rework so that it may serve to define full_read,
79137         too.
79138         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
79139
79140 2003-01-07  Bruno Haible  <bruno@clisp.org>
79141
79142         * lib/strtoimax.c: Include <stdint.h> as an alternative to
79143         <inttypes.h>.
79144         * lib/xstrtol.h: Likewise.
79145         * lib/xstrtoimax.c: Likewise.
79146         * lib/xstrtoumax.c: Likewise.
79147         * lib/human.h: Likewise.
79148
79149         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
79150         on systems that have <inttypes.h> but not <stdint.h>.
79151
79152 2003-01-07  Bruno Haible  <bruno@clisp.org>
79153
79154         * MODULES.html.sh: Add copyright notice.
79155         (missed_files): Omit CVS directory entries.
79156         (func_module): Make it work with sed-3.02.
79157         * MODULES.txt: Remove file.
79158
79159 2003-01-06  Jim Meyering  <jim@meyering.net>
79160
79161         * lib/version-etc.c: Update year in translatable copyright string.
79162
79163 2003-01-03  Karl Berry  <karl@gnu.org>
79164
79165         * config/config.{guess,sub}: update from prep.
79166
79167 2003-01-02  Karl Berry  <karl@gnu.org>
79168
79169         * doc/COPYING.DOC: belatedly updated to 1.2.
79170
79171 2003-01-01  Karl Berry  <karl@gnu.org>
79172
79173         * gnulib-tool (func_verify_module): report module name $module in
79174         error message, not $1.
79175         * gnulib-tool (create-testdir): don't complain if destdir couldn't
79176         be created, only if it doesn't exist.
79177         * gnulib-tool (last_checkin_date): don't expand the $Date here.
79178
79179 2002-12-31  Paul Eggert  <eggert@twinsun.com>
79180
79181         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
79182
79183 2002-12-31  Paul Eggert  <eggert@twinsun.com>
79184
79185         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
79186         memcmp if strcoll doesn't work.
79187
79188 2002-12-31  Bruno Haible  <bruno@clisp.org>
79189
79190         * lib/utime.c (utime_null): No need to call ftruncate if the file was
79191         nonempty.
79192
79193 2002-12-31  Bruno Haible  <bruno@clisp.org>
79194
79195         * lib/memcoll.c (STRCOLL): New macro.
79196         (memcoll): Use it.
79197
79198 2002-12-31  Bruno Haible  <bruno@clisp.org>
79199
79200         * lib/localcharset.h: New file.
79201         * lib/localcharset.c: Include it.
79202         * lib/unicodeio.c: Likewise.
79203
79204 2002-12-31  Bruno Haible  <bruno@clisp.org>
79205
79206         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
79207         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
79208
79209 2002-12-31  Bruno Haible  <bruno@clisp.org>
79210
79211         * lib/getline.h: Include <stddef.h>, for size_t.
79212
79213         * lib/unicodeio.h: Include <stddef.h>, for size_t.
79214         * lib/unicodeio.c: Don't include <stddef.h>.
79215
79216 2002-12-31  Bruno Haible  <bruno@clisp.org>
79217
79218         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
79219         HAVE_TM_ZONE.
79220
79221 2002-12-24  Karl Berry  <karl@gnu.org>
79222
79223         * config/config.guess: update from prep.
79224
79225 2002-12-24  Bruno Haible  <bruno@clisp.org>
79226
79227         General infrasructure.
79228         * m4/README: Rewritten.
79229         * m4/onceonly.m4: New file.
79230         * m4/onceonly_2_57.m4: New file.
79231
79232         Module atexit.
79233         * m4/atexit.m4: New file.
79234
79235         Module strtod.
79236         * m4/strtod.m4: New file.
79237
79238         Module strtol.
79239         * m4/strtol.m4: New file.
79240
79241         Module strtoul.
79242         * m4/strtoul.m4: New file.
79243
79244         Module memchr.
79245         * m4/memchr.m4: New file.
79246
79247         Module memcmp.
79248         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
79249         (jm_FUNC_MEMCMP): Invoke it.
79250
79251         Module memcpy.
79252         * m4/memcpy.m4: New file.
79253
79254         Module memmove.
79255         * m4/memmove.m4: New file.
79256
79257         Module memset.
79258         * m4/memset.m4: New file.
79259
79260         Module strcspn.
79261         * m4/strcspn.m4: New file.
79262
79263         Module strpbrk.
79264         * m4/strpbrk.m4: New file.
79265
79266         Module strstr.
79267         * m4/strstr.m4: New file.
79268
79269         Module strerror.
79270         * m4/strerror.m4: New file.
79271
79272         Module mktime.
79273         * m4/mktime.m4: Renamed from jm-mktime.m4.
79274         (gl_PREREQ_MKTIME): New macro.
79275         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
79276
79277         Module malloc.
79278         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
79279         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
79280         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
79281
79282         Module realloc.
79283         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
79284         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
79285         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
79286
79287         Module strftime.
79288         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
79289         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
79290         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
79291         gl_TM_GMTOFF.
79292         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
79293
79294         Module xalloc.
79295         * m4/xalloc.m4: New file.
79296
79297         Module alloca.
79298         * m4/alloca.m4: New file.
79299
79300         Module putenv.
79301         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
79302         (jm_FUNC_PUTENV): Invoke it.
79303
79304         Module setenv.
79305         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
79306         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
79307         when invoked twice.
79308         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
79309         gt_FUNC_SETENV.
79310
79311         Module memrchr.
79312         * m4/memrchr.m4: New file.
79313
79314         Module stpcpy.
79315         * m4/stpcpy.m4: New file.
79316
79317         Module strcase.
79318         * m4/strcase.m4: New file.
79319
79320         Module strdup.
79321         * m4/strdup.m4: New file.
79322
79323         Module strnlen.
79324         * m4/strnlen.m4: New file.
79325
79326         Module strndup.
79327         * m4/strndup.m4: New file.
79328
79329         Module xstrtod.
79330         * m4/xstrtod.m4: New file.
79331
79332         Module xstrtol.
79333         * m4/xstrtol.m4: New file.
79334
79335         Module getdate.
79336         * m4/getdate.m4: New file.
79337
79338         Module unlocked-io.
79339         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
79340         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
79341         * m4/jm-glibc-io.m4n: Remove file.
79342
79343         Module long-options.
79344         * m4/long-options.m4: New file.
79345
79346         Module md5.
79347         * m4/md5.m4: New file.
79348
79349         Module sha.
79350         * m4/sha.m4: New file.
79351
79352         Module getstr.
79353         * m4/getstr.m4: New file.
79354
79355         Module getline.
79356         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
79357         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
79358         <sys/types.h>, for size_t. Use the function name gnu_getline, not
79359         simply getline. Infoke gl_PREREQ_GETLINE.
79360
79361         Module obstack.
79362         * m4/obstack.m4: New file.
79363
79364         Module hash.
79365         * m4/hash.m4: New file.
79366
79367         Module readtokens.
79368         * m4/readtokens.m4: New file.
79369
79370         Module strverscmp.
79371         * m4/strverscmp.m4: New file.
79372
79373         Module stdbool.
79374         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
79375         OSF/1.
79376
79377         Module strtoll.
79378         * m4/strtoll.m4: New file.
79379
79380         Module strtoull.
79381         * m4/strtoull.m4: New file.
79382
79383         Module strtoimax.
79384         * m4/strtoimax.m4: New file.
79385
79386         Module strtoumax.
79387         * m4/strtoumax.m4: New file.
79388
79389         Module xstrtoimax.
79390         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
79391         jm_AC_PREREQ_XSTRTOIMAX.
79392         Moved the strtol prerequisites to strtol.m4.
79393         Moved the strtoll prerequisites to strtoll.m4.
79394         Moved the strtoimax prerequisites to strtoimax.m4.
79395
79396         Module xstrtoumax.
79397         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
79398         jm_AC_PREREQ_XSTRTOUMAX.
79399         Moved the strtoul prerequisites to strtoul.m4.
79400         Moved the strtoull prerequisites to strtoull.m4.
79401         Moved the strtoumax prerequisites to strtoumax.m4.
79402
79403         Module chown.
79404         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
79405         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
79406
79407         Module dup2.
79408         * m4/dup2.m4: New file.
79409
79410         Module ftruncate.
79411         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
79412         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
79413
79414         Module getgroups.
79415         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
79416         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
79417
79418         Module gettimeofday.
79419         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
79420         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
79421         gl_PREREQ_GETTIMEOFDAY.
79422
79423         Module mkdir.
79424         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
79425         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
79426
79427         Module mkstemp.
79428         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
79429         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
79430         jm_AC_TYPE_UINTMAX_T.
79431         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
79432
79433         Module stat.
79434         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
79435         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
79436
79437         Module lstat.
79438         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
79439         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
79440
79441         Module timespec.
79442         * m4/timespec.m4 (gl_TIMESPEC): New macro.
79443         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
79444         * m4/st_mtim.m4: Indentation.
79445
79446         Module nanosleep.
79447         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
79448         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
79449         gl_PREREQ_NANOSLEEP.
79450
79451         Module regex.
79452         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
79453         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
79454         (gl_REGEX): New macro.
79455
79456         Module rename.
79457         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
79458         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
79459
79460         Module rmdir.
79461         * m4/rmdir.m4: New file.
79462
79463         Module utime.
79464         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
79465         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
79466         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
79467
79468         Module dirname.
79469         * m4/dirname.m4: New file.
79470
79471         Module getopt.
79472         * m4/getopt.m4: New file.
79473
79474         Module unistd-safer.
79475         * m4/unistd-safer.m4: New file.
79476
79477         Module fnmatch.
79478         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
79479         declaration.
79480         (gl_PREREQ_FNMATCH_EXTRA): New macro.
79481         (gl_FUNC_FNMATCH_POSIX): New macro.
79482         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
79483         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
79484         simply fnmatch.
79485
79486         Module exclude.
79487         * m4/exclude.m4: New file.
79488
79489         Module human.
79490         * m4/human.m4: New file.
79491
79492         Module acl.
79493         * m4/acl.m4: Nop.
79494
79495         Module backupfile.
79496         * m4/backupfile.m4: New file.
79497         * m4/d-ino.m4: Indentation.
79498
79499         Module fsusage.
79500         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
79501         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
79502         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
79503
79504         Module dirfd.
79505         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
79506         requirements.
79507
79508         Module euidaccess.
79509         * m4/euidaccess.m4: New file.
79510
79511         Module file-type.
79512         * m4/file-type.m4: New file.
79513
79514         Module fileblocks.
79515         * m4/fileblocks.m4: New file.
79516
79517         Module filemode.
79518         * m4/filemode.m4: New file.
79519
79520         Module isdir.
79521         * m4/isdir.m4: New file.
79522
79523         Module lchown.
79524         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
79525         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
79526
79527         Module makepath.
79528         * m4/makepath.m4: New file.
79529
79530         Module modechange.
79531         * m4/modechange.m4: New file.
79532
79533         Module mountlist.
79534         * m4/mountlist.m4: New file.
79535         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
79536         Indentation.
79537
79538         Module path-concat.
79539         * m4/path-concat.m4: New file.
79540
79541         Module pathmax.
79542         * m4/pathmax.m4: New file.
79543
79544         Module same.
79545         * m4/same.m4: New file.
79546
79547         Module save-cwd.
79548         * m4/save-cwd.m4: New file.
79549
79550         Module savedir.
79551         * m4/savedir.m4: New file.
79552
79553         Module xgetcwd.
79554         * m4/xgetcwd.m4: New file.
79555         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
79556
79557         Module xreadlink.
79558         * m4/xreadlink.m4: New file.
79559
79560         Module safe-read.
79561         * m4/safe-read.m4: New file.
79562
79563         Module safe-write.
79564         * m4/safe-write.m4: New file.
79565
79566         Module closeout.
79567         * m4/closeout.m4: New file.
79568
79569         Module stdio-safer.
79570         * m4/stdio-safer.m4: New file.
79571
79572         Module getpass.
79573         * m4/getpass.m4: New file.
79574
79575         Module getugroups.
79576         * m4/getugroups.m4: New file.
79577
79578         Module group-member.
79579         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
79580         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
79581
79582         Module idcache.
79583         * m4/idcache.m4: New file.
79584
79585         Module userspec.
79586         * m4/userspec.m4: New file.
79587
79588         Module gettime.
79589         * m4/clock_time.m4: New file.
79590         * m4/gettime.m4: New file.
79591
79592         Module settime.
79593         * m4/settime.m4: New file.
79594
79595         Module posixtm.
79596         * m4/posixtm.m4: New file.
79597
79598         Module gethostname.
79599         * m4/gethostname.m4: New file.
79600
79601         Module canon-host.
79602         * m4/canon-host.m4: New file.
79603
79604         Module gettext.
79605         * m4/codeset.m4: New file, from gettext-0.11.5.
79606         * m4/gettext.m4: New file, from gettext-0.11.5.
79607         * m4/glibc21.m4: New file, from gettext-0.11.5.
79608         * m4/iconv.m4: New file, from gettext-0.11.5.
79609         * m4/intdiv0.m4: New file, from gettext-0.11.5.
79610         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
79611         * m4/inttypes.m4: New file, from gettext-0.11.5.
79612         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
79613         * m4/isc-posix.m4: New file, from gettext-0.11.5.
79614         * m4/lcmessage.m4: New file, from gettext-0.11.5.
79615         * m4/lib-ld.m4: New file, from gettext-0.11.5.
79616         * m4/lib-link.m4: New file, from gettext-0.11.5.
79617         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
79618         * m4/progtest.m4: New file, from gettext-0.11.5.
79619         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
79620         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
79621         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
79622
79623         Module localcharset.
79624         * m4/localcharset.m4: New file.
79625
79626         Module hard-locale.
79627         * m4/hard-locale.m4: New file.
79628
79629         Module mbswidth.
79630         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
79631         onceonly macros.
79632         * m4/mbrtowc.m4: Add comment.
79633
79634         Module memcasecmp.
79635         * m4/memcasecmp.m4: New file.
79636
79637         Module memcoll.
79638         * m4/memcoll.m4: New file.
79639
79640         Module unicodeio.
79641         * m4/unicodeio.m4: New file.
79642
79643         Module rpmatch.
79644         * m4/rpmatch.m4: New file.
79645
79646         Module yesno.
79647         * m4/yesno.m4: New file.
79648
79649         Module exitfail.
79650         * m4/exitfail.m4: New file.
79651
79652         Module c-stack.
79653         * m4/c-stack.m4 (gl_C_STACK): New macro.
79654         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
79655
79656         Module error.
79657         * m4/error.m4 (gl_ERROR): New macro.
79658         (jm_PREREQ_ERROR): Use onceonly macros.
79659
79660         Module fatal.
79661         * m4/fatal.m4: New file.
79662
79663         Module getloadavg.
79664         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
79665         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
79666
79667         Module getpagesize.
79668         * m4/getpagesize.m4: New file.
79669
79670         Module getusershell.
79671         * m4/getusershell.m4: New file.
79672
79673         Module physmem.
79674         * m4/physmem.m4: New file.
79675
79676         Module posixver.
79677         * m4/posixver.m4: New file.
79678
79679         Module quotearg.
79680         * m4/quotearg.m4: New file.
79681
79682         Module quote.
79683         * m4/quote.m4: New file.
79684
79685         Module readutmp.
79686         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
79687
79688         Module sig2str.
79689         * m4/sig2str.m4: New file.
79690
79691         Other.
79692         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
79693         ulonglong.m4.
79694         * m4/intmax_t.m4: New file.
79695         * m4/d-type.m4: Indentation.
79696         * m4/jm-macros.m4: Update.
79697         * m4/prereq.m4 (jm_PREREQ): Update.
79698         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
79699         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
79700         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
79701         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
79702         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
79703         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
79704         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
79705         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
79706         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
79707         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
79708         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
79709         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
79710         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
79711         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
79712         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
79713         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
79714         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
79715         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
79716         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
79717
79718 2002-12-24  Bruno Haible  <bruno@clisp.org>
79719
79720         * MODULES.txt: Update according to m4/ changes.
79721
79722         Module gettext.
79723         * config.rpath: New file, from gettext-0.11.5.
79724
79725         * modules/*: New module descriptions.
79726         * gnulib-tool: New file.
79727         * MODULES.html.sh: New file.
79728
79729 2002-12-21  Karl Berry  <karl@gnu.org>
79730
79731         * doc/fdl.texi: update to version 1.2.
79732
79733 2002-12-19  Karl Berry  <karl@gnu.org>
79734
79735         * config/config.guess: update from prep.
79736
79737 2002-12-18  Bruno Haible  <bruno@clisp.org>
79738
79739         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
79740         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
79741
79742 2002-12-17  Bruno Haible  <bruno@clisp.org>
79743
79744         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
79745         stdlib.h, string.h.
79746
79747 2002-12-17  Bruno Haible  <bruno@clisp.org>
79748
79749         * lib/canon-host.c (strdup): Remove unused declaration.
79750
79751         * lib/fsusage.c: Include full_read.h.
79752         (get_fs_usage): Use full_read instead of safe_read.
79753
79754         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
79755
79756 2002-12-12  Karl Berry  <karl@gnu.org>
79757
79758         * config/config.guess: update from prep.
79759
79760 2002-12-11  Bruno Haible  <bruno@clisp.org>
79761
79762         * m4/setenv.m4: New file, from gettext-0.11.5.
79763
79764 2002-12-11  Bruno Haible  <bruno@clisp.org>
79765
79766         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
79767         not unsetenv().
79768         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
79769         modifications:
79770
79771         2002-12-11  Bruno Haible  <bruno@clisp.org>
79772
79773                 * setenv.c (alloca): Fall back to malloc.
79774                 (freea): New macro.
79775                 (setenv): Use freea() to free memory allocated with alloca().
79776
79777         2002-11-13  Bruno Haible  <bruno@clisp.org>
79778
79779                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
79780                 function declarations.
79781                 * unsetenv.c (unsetenv): Likewise.
79782
79783         2002-03-04  Bruno Haible  <bruno@clisp.org>
79784
79785                 Portability to AIX 4.3.3.
79786                 * unsetenv.c: New file, extracted from setenv.c.
79787                 * setenv.c: Move the unsetenv() function to unsetenv.c.
79788
79789         2001-12-20  Bruno Haible  <bruno@clisp.org>
79790
79791                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
79792                 use malloc instead. For SunOS 4.
79793
79794         2001-12-11  Bruno Haible  <bruno@clisp.org>
79795
79796                 * setenv.c: Declare alloca.
79797                 (compar_fn_t): New typedef.
79798                 (KNOWN_VALUE, STORE_VALUE): Use it.
79799
79800         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
79801         setenv.h.
79802
79803 2002-12-10  Paul Eggert  <eggert@twinsun.com>
79804
79805         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
79806         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
79807         Choose values that are less likely to collide with system fnmatch
79808         options.
79809         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
79810         defined (e.g., a pure POSIX system).
79811         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
79812         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
79813
79814 2002-12-06  Paul Eggert  <eggert@twinsun.com>
79815
79816         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
79817         a pain in practice to deal with generated m4 files.  This change
79818         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
79819
79820         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
79821         and jm-glibc-io.m4, as they are no longer a special case.
79822         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
79823         kludge and the auto-generation stuff.  Check only whether the
79824         functions are declared, not whether they exist, since older hosts
79825         that don't declare the functions can't use the optimization anyway.
79826
79827 2002-12-06  Jim Meyering  <jim@meyering.net>
79828
79829         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
79830
79831         Merge in changes from libc's misc/error.c, in preparation
79832         for the merge of gnulib's changes back into libc.
79833
79834         * lib/error.c (_): Define only if not already defined.
79835         Move definition to follow all #include directives.
79836         Include unlocked-io.h only if !_LIBC.
79837         [_LIBC]: Include <libio/libioP.h>.
79838         [USE_IN_LIBIO]: Include <libio/iolibio.h>
79839         (fflush): Tweak definition to use INTUSE.
79840         (putc): Define.
79841
79842 2002-12-05  Paul Eggert  <eggert@twinsun.com>
79843
79844         * lib/alloca.c [defined emacs]: Include "lisp.h".
79845         (xalloc_die) [defined emacs]: New macro.
79846         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
79847         [! defined emacs]: Include <xalloc.h>.
79848         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
79849         (pointer): Typedef to POINTER_TYPE *.
79850         (malloc): Remove decl; we now always use xmalloc.
79851         (alloca): Use old-style definition, since Emacs needs this.
79852         Check for arithmetic overflow when computing combined size.
79853
79854 2002-12-04  Paul Eggert  <eggert@twinsun.com>
79855
79856         Do not generate unlocked-io.h automatically, since it's easier to
79857         maintain it by hand.
79858
79859         * lib/unlocked-io.h: New file, from GNU diffutils,
79860         but with proper copyright notice and attribution.
79861         * lib/gen-uio: Remove.
79862         * lib/Makefile.am: Add copyright notice.
79863         (libfetish_a_SOURCES): Add unlocked-io.h.
79864         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
79865         (DISTCLEANFILES, io_functions): Remove macros.
79866         (EXTRA_DIST): Remove gen_uio.
79867         (unlocked-io.h): Remove rule.
79868
79869 2002-12-04  Jim Meyering  <jim@meyering.net>
79870
79871         Reflect the fact that stat.c and lstat.c are no longer generated.
79872         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
79873         (DISTCLEANFILES): Likewise.
79874         (EXTRA_DIST): Likewise.
79875         (all_local): Don't depend on stat.c or lstat.c.
79876         (stat.c, lstat.c): Remove rules.
79877         (EXTRA_DIST): Remove xstat.in.
79878
79879         * lib/xstat.in: Remove file.  Contents moved into stat.c.
79880         * lib/stat.c: New file.  Contents mostly from xstat.in.
79881         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
79882         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
79883
79884         * lib/safe-read.c: Rework so that it may serve to define safe_write,
79885         too.
79886         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
79887
79888 2002-12-03  Jim Meyering  <jim@meyering.net>
79889
79890         * lib/safe-read.c, safe-write.c: Change variable names and comments,
79891         but not semantics, to minimize the differences between these two files.
79892         (safe_read): Change comment to mention SAFE_READ_ERROR.
79893
79894         * lib/safe-read.c (IS_EINTR): Define.
79895         (safe_read): Use IS_EINTR in place of in-function cpp directives.
79896
79897 2002-12-02  Jim Meyering  <jim@meyering.net>
79898
79899         * lib/safe-read.c (EINTR): Define.
79900         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
79901         (INT_MAX): Provide fallback.
79902         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
79903
79904         * lib/safe-read.h (SAFE_READ_ERROR): Define.
79905
79906 2002-12-02  Bruno Haible  <bruno@clisp.org>
79907
79908         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
79909         Define, taken from safe-read.c.
79910         (INT_MAX): Provide fallback.
79911         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
79912         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
79913
79914         * lib/safe-read.c (EINTR): Remove definition.
79915         (safe_read): Don't use EINTR if it is absent.
79916
79917 2002-12-01  Jim Meyering  <jim@meyering.net>
79918
79919         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
79920         zero.
79921         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
79922
79923 2002-11-27  Paul Eggert  <eggert@twinsun.com>
79924
79925         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
79926         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
79927         with `if (! (value < limit)) abort ();', for readability.
79928
79929 2002-11-26  Karl Berry  <karl@gnu.org>
79930
79931         * lib/strdup.c: copy from libc again, with jim's ok.
79932         * lib/.cppi-disable: re-add strdup.c
79933
79934 2002-11-25  Karl Berry  <karl@gnu.org>
79935
79936         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
79937         instead of "strtol.c".
79938
79939 2002-11-25  Karl Berry  <karl@gnu.org>
79940
79941         * config/install-sh: update from automake for variable quoting, $0 in
79942         error msgs, etc.
79943
79944         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
79945         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
79946         entry.
79947
79948 2002-11-25  Jim Meyering  <jim@meyering.net>
79949
79950         * lib/mktime.c: Sync from libc, now that it has the latest fix.
79951
79952 2002-11-24  Karl Berry  <karl@gnu.org>
79953
79954         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
79955         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
79956
79957 2002-11-24  Jim Meyering  <jim@meyering.net>
79958
79959         Update from coreutils:
79960
79961         * lib/mktime.c: Merge in changes from libc.
79962
79963         Avoid a link-time failure on some Linux systems.
79964         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
79965         (otherwise).
79966         (__mon_yday): Declare with the STATIC attribute.
79967         (__mktime_internal): Likewise.
79968         Based on a report from Greg Schafer.
79969
79970 2002-11-23  Jim Meyering  <jim@meyering.net>
79971
79972         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
79973         Use `unsigned', not `int', as type of index.
79974
79975         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
79976
79977         * lib/fsusage.c: Remove unneeded parentheses around operands of
79978         `defined'.
79979
79980 2002-11-22  Paul Eggert  <eggert@twinsun.com>
79981
79982         * lib/quotearg.h: Allow multiple inclusion by surrounding with
79983         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
79984         so that we can be included first.
79985         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
79986         * lib/quotearg.c: Include quotearg.h immediately after config.h.
79987         No need to include stddef.h or sys/types.h any more.
79988         Surround local include files with "", not "<>".
79989         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
79990         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
79991         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
79992         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
79993         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
79994         (ISPRINT): Remove; no longer needed now that we assume C89.
79995
79996         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
79997         Preserve errno.
79998
79999         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
80000         quotearg_char): Use SIZE_MAX rather than
80001         (size_t) -1 when we are talking about "infinity".
80002
80003         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
80004
80005 2002-11-22  Paul Eggert  <eggert@twinsun.com>
80006
80007         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
80008         hint that one should use `if (! x) abort ();' rather than `assert
80009         (x);', and anyway it's one less thing to worry about configuring.
80010         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
80011         hash_rehash, hash_insert): Use abort rather than assert.
80012
80013 2002-11-22  Bruno Haible  <bruno@clisp.org>
80014
80015         * lib/safe-read.h: Assume C89. Add comments.
80016         (safe_read): Change return type to size_t.
80017         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
80018         byte counts > SSIZE_MAX correctly.
80019         * lib/safe-write.h: New file.
80020         * lib/safe-write.c: New file.
80021         * lib/full-read.h: New file.
80022         * lib/full-read.c: New file.
80023         * lib/full-write.h: Assume C89. Add comments.
80024         * lib/full-write.c: Include safe-write.h.
80025         (full_write): Rewritten to use safe_write.
80026         Suggested by Jim Meyering and Paul Eggert.
80027
80028 2002-11-21  Jim Meyering  <jim@meyering.net>
80029
80030         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
80031
80032         Merge in changes from the coreutils.
80033
80034         2002-09-25  Paul Eggert  <eggert@twinsun.com>
80035         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
80036         <stdint.h>.
80037         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
80038         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
80039         int.  Work more efficiently if X is the same width as uintmax_t.
80040         Do not compare X to -1, to avoid bogus compiler warning.
80041         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
80042         Don't assume that f_frsize and f_bsize are the same type.
80043
80044         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
80045         warning on FreeBSD.
80046
80047         * lib/makepath.c (make_path): Restore umask *before* creating the final
80048         component.
80049         (make_path): Minor reformatting.
80050
80051         * lib/xmalloc.c: Adjust to work with new autoconf macros,
80052         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
80053         HAVE_MALLOC/HAVE_REALLOC.
80054
80055         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
80056         dummy ones.  At least on GNU/Linux systems, `auto' means something
80057         else.
80058         From Michael Stone.
80059
80060 2002-11-21  Bruno Haible  <bruno@clisp.org>
80061
80062         Remove case insensitive option matching.
80063         * lib/argmatch.h (argcasematch): Remove declaration.
80064         (ARGCASEMATCH): Remove macro.
80065         (__xargmatch_internal): Remove case_sensitive argument.
80066         (XARGMATCH): Update.
80067         (XARGCASEMATCH): Remove macro.
80068         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
80069         case_sensitive argument.
80070         (argcasematch): Remove function.
80071         (__xargmatch_internal): Remove case_sensitive argument.
80072         (main): Use XARGMATCH instead of XARGCASEMATCH.
80073
80074         * lib/xmalloc.c: Change compile-time error message. Add comment about
80075         required autoconf version.
80076
80077 2002-11-20  Paul Eggert  <eggert@twinsun.com>
80078
80079         Merge argmatch cleanups from Bison.  Assume C89.
80080
80081         * lib/argmatch.c: Include config.h here, not in argmatch.h.
80082         Include stdlib.h, for EXIT_FAILURE.
80083         Always include <string.h>, since we assume C89.
80084         (EXIT_FAILURE): Remove pre-C89 bug workaround.
80085         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
80086         Include <stddef.h> instead, since it's all we need for size_t.
80087         (PARAMS): Remove.  All uses removed.
80088         (ARRAY_CARDINALITY): Do not bother to #undef.
80089         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
80090         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
80091         Remove unnecessary parentheses.
80092         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
80093         Insert necessary parentheses.
80094         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
80095         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
80096
80097 2002-11-19  Bruno Haible  <bruno@clisp.org>
80098
80099         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
80100         * lib/mbswidth.h: Include <stddef.h>, for size_t.
80101
80102         * lib/mbswidth.h (PARAMS): Remove macro.
80103         (mbswidth, mbsnwidth): Use ANSI C function declarations.
80104         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
80105
80106         * lib/gcd.h (PARAMS): Remove macro.
80107         (gcd): Use ANSI C function declarations.
80108         * lib/gcd.c (gcd): Likewise.
80109
80110 2002-11-15  Bruno Haible  <bruno@clisp.org>
80111
80112         * lib/strcspn.c: Include <stddef.h>.
80113         (strcspn): Use ANSI C function declaration. Change return type to
80114         size_t. Use NULL.
80115         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
80116         (strpbrk): Use NULL.
80117         * lib/strpbrk.h (PARAMS): Remove macro.
80118         (strpbrk): Use ANSI C function declaration.
80119         * lib/strstr.c: Don't include <sys/types.h>.
80120         * lib/strstr.h (PARAMS): Remove macro.
80121         (strstr): Use ANSI C function declarations.
80122
80123 2002-11-14  Karl Berry  <karl@gnu.org>
80124
80125         * config/mkinstalldirs: `do' on separate line, instead of
80126         `for var; do'.
80127
80128 2002-11-06  Bruno Haible  <bruno@clisp.org>
80129
80130         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
80131         * lib/gcd.c (gcd): Likewise.
80132
80133 2002-11-05  Bruno Haible  <bruno@clisp.org>
80134
80135         * lib/gcd.h: New file, from gettext-0.11.5.
80136         * lib/gcd.c: New file, from gettext-0.11.5.
80137
80138 2002-11-05  Bruno Haible  <bruno@clisp.org>
80139
80140         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
80141         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
80142         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
80143         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
80144
80145         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
80146         <libintl.h>.
80147         * lib/makepath.c: Include gettext.h instead of <locale.h> and
80148         <libintl.h>.
80149
80150         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
80151         * lib/human.c: Include gettext.h instead of <libintl.h>.
80152         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
80153         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
80154         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
80155         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
80156         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
80157         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
80158         (textdomain): Remove definition.
80159         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
80160
80161         * lib/long-options.c: Remove include of <libintl.h> and definition of
80162         _.
80163         * lib/same.c: Remove include of <libintl.h> and definition of _.
80164
80165 2002-11-04  Owen Taylor  <otaylor@redhat.com>
80166
80167         * lib/config.charset: A few additions for Solaris.
80168
80169 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
80170
80171         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
80172         * lib/localcharset.c (locale_charset): Declare as extern "C".
80173
80174 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
80175
80176         * lib/config.charset: msdos in uk_UA uses CP1125.
80177
80178 2002-11-04  Bruno Haible  <bruno@clisp.org>
80179
80180         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
80181         * lib/strcase.h: New file, from GNU gettext-0.11.5.
80182         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
80183         * lib/strstr.h: New file, from GNU gettext-0.11.5.
80184         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
80185
80186 2002-11-04  Bruno Haible  <bruno@clisp.org>
80187
80188         * lib/localcharset.c (locale_charset): Don't return an empty string.
80189
80190 2002-11-04  Bruno Haible  <bruno@clisp.org>
80191
80192         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
80193         aliases.
80194
80195 2002-11-04  Bruno Haible  <bruno@clisp.org>
80196
80197         * lib/config.charset: Update for newest glibc. Add canonical names
80198         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
80199
80200 2002-11-04  Bruno Haible  <bruno@clisp.org>
80201
80202         * lib/config.charset: Add support for NetBSD.
80203
80204 2002-11-04  Bruno Haible  <bruno@clisp.org>
80205
80206         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
80207
80208 2002-11-01  Bruno Haible  <bruno@clisp.org>
80209
80210         * configure.in: Add AC_CONFIG_AUX_DIR call.
80211         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
80212         test/Makefile.
80213         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
80214
80215 2002-09-28  Karl Berry  <karl@gnu.org>
80216
80217         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
80218         installed automake until the next release, since changes have been
80219         made.
80220
80221 2002-09-25  Karl Berry  <karl@gnu.org>
80222
80223         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
80224         * lib/getopt*: copy from libc/posix.
80225         * lib/gettext.h: copy from gettext.
80226         * lib/.cppi-disable: add strdup.c, gettext.h.
80227
80228 2002-09-25  Karl Berry  <karl@gnu.org>
80229
80230         * config/srclist.txt: enable gettext.h check.
80231         * config/config.{guess,sub}: update from prep.
80232         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
80233                 from automake 1.6.3.
80234         See srclist*.
80235
80236 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
80237
80238         * regex.c (PATFETCH): Remove the translating fetch.
80239         (PATFETCH_RAW): Rename to PATFETCH.
80240         (set_image_of_range): New fun.
80241         (SET_RANGE_TABLE_WORK_AREA): Use it.
80242         (regex_compile): Don't translate the pattern chars so eagerly.
80243         Only do it when inserting an `exactn' bytecode or when handling
80244         a char-range.
80245         (mutually_exclusive_p): Avoid empty statement.
80246
80247 2002-07-06  Jim Meyering  <meyering@lucent.com>
80248
80249         * m4/README: Don't mention Makefile.am.in.
80250         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
80251
80252 2002-07-01  Jim Meyering  <meyering@lucent.com>
80253
80254         * lib/c-stack.c: Include sys/time.h.
80255         From Volker Borchert.
80256
80257 2002-06-26  Paul Eggert  <eggert@twinsun.com>
80258
80259         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
80260
80261 2002-06-26  Paul Eggert  <eggert@twinsun.com>
80262
80263         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
80264         New macro.  Use it uniformly instead of
80265         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
80266         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
80267         reported by Vin Shelton.
80268
80269 2002-06-22  Paul Eggert  <eggert@twinsun.com>
80270
80271         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
80272         Do not assume SA_SIGINFO behavior.
80273         Bug reported by Jim Meyering on NetBSD 1.5.2.
80274
80275 2002-06-22  Jim Meyering  <meyering@lucent.com>
80276
80277         * m4/c-stack.m4: New file, from diffutils-2.8.2.
80278         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
80279
80280         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
80281         now that configure.ac uses AC_GNU_SOURCE.
80282         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
80283         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
80284
80285         Update to latest tools.  Suggestions from Paul Eggert.
80286         * m4/stdbool.m4: New file, from diffutils-2.8.2.
80287         * m4/gnu-source.m4: Update from diffutils-2.8.2.
80288         * m4/fnmatch.m4: Likewise.
80289         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
80290         to AC_HEADER_STDBOOL
80291
80292 2002-06-22  Jim Meyering  <meyering@lucent.com>
80293
80294         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
80295         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
80296
80297 2002-06-22  Jim Meyering  <meyering@lucent.com>
80298
80299         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
80300
80301         * lib/exitfail.c, exitfail.h: Likewise.
80302         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
80303
80304         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
80305         of fnmatch.h.
80306         (EXTRA_DIST): Add fnmatch_loop.c.
80307         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
80308
80309         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
80310         * lib/fnmatch.c: Update from diffutils-2.8.2.
80311         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
80312         * lib/fnmatch.h: Remove file.
80313
80314 2002-06-21  Jim Meyering  <meyering@lucent.com>
80315
80316         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
80317         * m4/mbrtowc.m4: Likewise.
80318
80319         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
80320         * m4/mbswidth.m4: Reflect name change:
80321         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
80322         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
80323
80324         * m4/lib-link.m4: Update from gettext-0.11.2.
80325         * m4/gettext.m4: Likewise.
80326
80327         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
80328         From Alfred M. Szmidt.
80329
80330 2002-06-18  Paul Eggert  <eggert@twinsun.com>
80331
80332         * lib/file-type.h: Report an error if neither S_ISREG nor
80333         S_IFREG is defined, instead of using a test specific to glibc
80334         2.2.  This should be safe, since POSIX requires S_ISREG and
80335         Unix Version 7 had S_IFREG.  We don't need to check for
80336         <sys/types.h> since we don't use any symbols that it defines.
80337
80338 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
80339
80340         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
80341         $@-t, so that each temporary file name is unique and valid in the first
80342         8 characters, for operation under DOS.
80343
80344 2002-06-15  Paul Eggert  <eggert@twinsun.com>
80345
80346         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
80347
80348 2002-06-15  Jim Meyering  <meyering@lucent.com>
80349
80350         Work even with DJGPP 2.03, which lacks support for symlinks.
80351         From Richard Dawe.
80352         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
80353         is defined.
80354         * lib/lchown.c (S_ISLNK): Likewise.
80355
80356 2002-06-15  Jim Meyering  <meyering@lucent.com>
80357
80358         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
80359         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
80360         have been included before this file.
80361
80362 2002-06-14  Jim Meyering  <meyering@lucent.com>
80363
80364         * lib/file-type.h: Use the version from diffutils-2.8.2.
80365         * lib/file-type.c: Likewise.
80366
80367 2002-06-07  Jim Meyering  <meyering@lucent.com>
80368
80369         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
80370         They're needed at least for NetBSD 1.5.2.
80371         ($statxfs_includes): Include those same headers.
80372         ($statxfs_includes): Include sys/vfs.h if available.
80373         ($statxfs_includes): Likewise for sys/statvfs.h.
80374         Check for the following members in both structs statfs and statvfs:
80375         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
80376
80377 2002-06-01  Jim Meyering  <meyering@lucent.com>
80378
80379         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
80380         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
80381
80382 2002-05-28  Jim Meyering  <meyering@lucent.com>
80383
80384         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
80385         Reported by Volker Borchert.
80386
80387 2002-05-27  Jim Meyering  <meyering@lucent.com>
80388
80389         Fix a problem seen only on nonconforming systems whereby ls.c's
80390         use of localtime, and then of gettimeofday would cause trouble:
80391         the localtime call used to initialize rpl_gettimeofday's save
80392         mechanism would clobber ls's current local time information so
80393         that in any long listing the first file would always be listed
80394         with date 1970-01-01.  Analysis by Volker Borchert.
80395
80396         * lib/gettimeofday.c (localtime): Undefine.
80397         (rpl_localtime): New function.
80398
80399 2002-05-27  Jim Meyering  <meyering@lucent.com>
80400
80401         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
80402         localtime.
80403
80404         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
80405         use the replacement function; it wouldn't resolve at link time.
80406         Reported by Volker Borchert.
80407
80408 2002-05-22  Jim Meyering  <meyering@lucent.com>
80409
80410         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
80411         file-type.h.
80412         * lib/file-type.h: New file.
80413         * lib/file-type.c (file_type): New file/function.  Extracted from
80414         diffutils.
80415
80416 2002-04-30  Jim Meyering  <meyering@lucent.com>
80417
80418         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
80419
80420 2002-04-29  Paul Eggert  <eggert@twinsun.com>
80421
80422         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
80423
80424 2002-04-29  Paul Eggert  <eggert@twinsun.com>
80425
80426         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
80427         Do not check for alloca.h (no longer used) or stdbool.h (was never
80428         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
80429
80430 2002-04-29  Paul Eggert  <eggert@twinsun.com>
80431
80432         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
80433
80434 2002-04-29  Jim Meyering  <meyering@lucent.com>
80435
80436         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
80437         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
80438         Use AC_FUNC_STRNLEN here instead.
80439
80440         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
80441         With autoconf-2.53a, it's part of AC_PROG_CC.
80442
80443 2002-04-28  Paul Eggert  <eggert@twinsun.com>
80444
80445         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
80446         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
80447
80448 2002-04-28  Paul Eggert  <eggert@twinsun.com>
80449
80450         * lib/sig2str.h, lib/sig2str.c: New files.
80451         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
80452
80453 2002-04-28  Paul Eggert  <eggert@twinsun.com>
80454
80455         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
80456         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
80457         of 127, since 64 is the largest conceivable number for ancient
80458         nonstandard hosts.
80459         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
80460
80461 2002-04-28  Jim Meyering  <meyering@lucent.com>
80462
80463         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
80464
80465 2002-04-24  Jim Meyering  <meyering@lucent.com>
80466
80467         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
80468         (jm_PREREQ): Use it.
80469
80470         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
80471         mach/mach.h fcntl.h.
80472         Check for this function: setlocale.
80473
80474 2002-04-24  Jim Meyering  <meyering@lucent.com>
80475
80476         * lib/gettext.h: New file, from Gettext.
80477         * lib/Makefile.am (INCLUDES): Remove -I../intl.
80478         (libfetish_a_SOURCES): Add gettext.h.
80479
80480 2002-04-16  Jim Meyering  <meyering@lucent.com>
80481
80482         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
80483         ut_pid, ut_id, ut_exit.
80484
80485 2002-04-16  Jim Meyering  <meyering@lucent.com>
80486
80487         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
80488         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
80489         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
80490
80491 2002-04-12  Jim Meyering  <meyering@lucent.com>
80492
80493         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
80494         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
80495         existence of the getmntinfo function.  Needed for Darwin 5.3.
80496
80497         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
80498         This is necessary at least on Darwin 5.3.
80499
80500         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
80501         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
80502         strnlen.o in the library, and that makes some versions of ranlib
80503         object.
80504
80505 2002-04-12  Jim Meyering  <meyering@lucent.com>
80506
80507         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
80508
80509 2002-04-09  Jim Meyering  <meyering@lucent.com>
80510
80511         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
80512         to be more precise.  Rather than saying we're checking whether the
80513         function `works', say what we're testing.
80514         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
80515         Reported by Bruno Haible.
80516
80517 2002-03-10  Jim Meyering  <meyering@lucent.com>
80518
80519         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
80520         Suggestion from Santiago Vila.
80521
80522 2002-03-08  Jim Meyering  <meyering@lucent.com>
80523
80524         * lib/rename.c: Mention that this wrapper is needed also on
80525         mips-dec-ultrix4.4 systems.
80526
80527 2002-03-02  Jim Meyering  <meyering@lucent.com>
80528
80529         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
80530         not HAVE_CLOCK_SETTIME.
80531
80532 2002-02-27  Paul Eggert  <eggert@twinsun.com>
80533
80534         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
80535         Check for clock_settime.
80536
80537 2002-02-27  Paul Eggert  <eggert@twinsun.com>
80538
80539         * lib/nanosleep.h: Rename to....
80540         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
80541
80542         * lib/gettime.c: New file.
80543         * lib/settime.c: New file.
80544         * lib/stime.c: Remove.
80545
80546         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
80547         timespec.h.  Remove nanosleep.h.
80548
80549 2002-02-25  Paul Eggert  <eggert@twinsun.com>
80550
80551         * m4/acl.m4: New file.
80552         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
80553         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
80554
80555 2002-02-25  Paul Eggert  <eggert@twinsun.com>
80556
80557         * lib/acl.c, lib/acl.h: New files.
80558         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
80559
80560 2002-02-24  Jim Meyering  <meyering@lucent.com>
80561
80562         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
80563         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
80564         cause trouble.  Reported by Nelson Beebe.
80565
80566 2002-02-23  Paul Eggert  <eggert@twinsun.com>
80567
80568         * lib/path-concat.c (xpath_concat): Reorder code to pacify
80569         compilers that don't know that xalloc_die never returns.
80570
80571 2002-02-20  Jim Meyering  <meyering@lucent.com>
80572
80573         * lib/getdate.c: Regenerate using bison-1.33.
80574
80575 2002-02-17  Jim Meyering  <meyering@lucent.com>
80576
80577         * config/config.guess (main): Don't use `head -1'; it's no longer
80578         portable. Use `sed 1q' instead.
80579
80580 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
80581
80582         * m4/codeset.m4: Upgrade to gettext-0.11.
80583         * m4/gettext.m4: Upgrade to gettext-0.11.
80584         * m4/glibc21.m4: Upgrade to gettext-0.11.
80585         * m4/iconv.m4: Upgrade to gettext-0.11.
80586         * m4/isc-posix.m4: Upgrade to gettext-0.11.
80587         * m4/lcmessage.m4: Upgrade to gettext-0.11.
80588         * m4/lib-ld.m4: New file, from gettext-0.11.
80589         * m4/lib-link.m4: New file, from gettext-0.11.
80590         * m4/lib-prefix.m4: New file, from gettext-0.11.
80591         * m4/progtest.m4: Upgrade to gettext-0.11.
80592
80593 2002-02-15  Paul Eggert  <eggert@twinsun.com>
80594
80595         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
80596         (jm_PREREQ): Use it.
80597
80598 2002-02-15  Paul Eggert  <eggert@twinsun.com>
80599
80600         * lib/posixver.c, lib/posixver.h: New files.
80601         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
80602
80603 2002-02-02  Paul Eggert  <eggert@twinsun.com>
80604             Bruno Haible  <bruno@clisp.org>
80605
80606         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
80607         (fwrite_success_callback): New declaration.
80608         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
80609         print_unicode_char. Call failure callback instead of error.
80610         (fwrite_success_callback): New function.
80611         (exit_failure_callback): New function.
80612         (fallback_failure_callback): New function.
80613         (print_unicode_char): Call unicode_to_mb.
80614
80615 2002-01-26  Jim Meyering  <meyering@lucent.com>
80616
80617         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
80618         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
80619
80620 2002-01-26  Jim Meyering  <meyering@lucent.com>
80621
80622         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
80623
80624 2002-01-22  Paul Eggert  <eggert@twinsun.com>
80625
80626         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
80627
80628 2002-01-22  Jim Meyering  <meyering@lucent.com>
80629
80630         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
80631         Otherwise, some versions of automake would omit the rule that makes
80632         Makefile from Makefile.in.
80633
80634 2002-01-21  Paul Eggert  <eggert@twinsun.com>
80635
80636         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
80637         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
80638         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
80639         (memcoll): Set errno to zero if there is no error.
80640
80641         * lib/quotearg.c (quotearg_buffer_restyled):
80642         Fix bug with quoting buffers containing NUL when backslashing escapes.
80643         This bug was exposed by the other changes in this patch.
80644         (quotearg_n_options): New arg ARGSIZE.
80645         All callers changed.
80646         (quoting_options_from_style): New function.
80647         (quotearg_n_style): Use it.
80648         (quotearg_n_style_mem): New function.
80649
80650         * lib/quotearg.h (quotearg_n_style_mem): New function.
80651
80652 2002-01-19  Jim Meyering  <meyering@lucent.com>
80653
80654         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
80655         Remove useless quotes: DF_PROG="df".
80656         * m4/strnlen.m4: New file.
80657
80658 2002-01-16  Paul Eggert  <eggert@twinsun.com>
80659
80660         * lib/backupfile.c (ISDIGIT): Comment fix.
80661         * lib/getdate.y (ISDIGIT): Likewise.
80662         * lib/posixtm.c (ISDIGIT, year): Likewise.
80663         * lib/strverscmp.c (ISDIGIT): Likewise.
80664         * lib/userspec.c (ISDIGIT): Likewise.
80665
80666 2002-01-16  Jim Meyering  <meyering@lucent.com>
80667
80668         * lib/getdate.y: Add three semicolons, each just before a closing
80669         brace. Bison (as of version 1.31) no longer papers over that mistake.
80670
80671 2002-01-05  Jim Meyering  <meyering@lucent.com>
80672
80673         * lib/version-etc.c (version_etc_copyright): Update copyright year.
80674
80675 2001-12-19  Paul Eggert  <eggert@twinsun.com>
80676
80677         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
80678         not silently exit merely because the output buffer happens to
80679         have nothing pending.
80680
80681 2001-12-18  Paul Eggert  <eggert@twinsun.com>
80682
80683         See the big note in ../ChangeLog.
80684         * lib/human.c (suffixes): Prefer K to k for 1024.
80685         (generate_suffix_backwards): New function.
80686         (human_readable_inexact): Use it.
80687         * lib/xstrtol.c (__xstrtol): If there is no number but there
80688         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
80689         Accept 'K' as well as 'k'.
80690
80691 2001-12-15  Jim Meyering  <meyering@lucent.com>
80692
80693         * lib/regex.h (__restrict_arr): Update from libc.
80694
80695         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
80696         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
80697         (STREQ): Define.
80698
80699 2001-12-14  Jim Meyering  <meyering@lucent.com>
80700
80701         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
80702         Suggestion from Bruno Haible.
80703
80704 2001-12-10  Jim Meyering  <meyering@lucent.com>
80705
80706         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
80707         xrealloc, Instead, include "xalloc.h".
80708         (initbuffer): Don't cast xmalloc return value to char*.
80709         (readline): Reword comment.
80710         Don't cast xrealloc return value to char*
80711         Return NULL, not 0.
80712
80713 2001-12-09  Jim Meyering  <meyering@lucent.com>
80714
80715         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
80716         about `signed and unsigned type in conditional expression'.
80717         * lib/posixtm.c (posix_time_parse): Likewise.
80718
80719         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
80720
80721         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
80722         to avoid a pedantic warning.
80723
80724         * lib/getstr.c: Don't include assert.h.
80725         (getstr): Remove warning-evoking assertions.
80726         Return -1 if offset parameter is out of bounds.
80727         Change the type of a local from int to size_t.
80728
80729         * lib/strftime.c (my_strftime_localtime_r): Include this function
80730         definition in the `#if ! HAVE_TM_GMTOFF' block.
80731
80732         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
80733         Include xalloc.h instead.
80734
80735 2001-12-02  Jim Meyering  <meyering@lucent.com>
80736
80737         * lib/tempname.c: Don't declare getenv, thus reverting the change of
80738         2001-11-18.  It's no longer necessary, now that stdlib.h is always
80739         included.
80740
80741         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
80742         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
80743
80744 2001-11-30  Akim Demaille  <akim@epita.fr>
80745
80746         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
80747         before being defined.
80748
80749 2001-11-27  Paul Eggert  <eggert@twinsun.com>
80750
80751         * lib/quotearg.h (quotearg_n, quotearg_n_style):
80752         First arg is int, not unsigned.
80753         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
80754         (SIZE_MAX, UINT_MAX): New macros.
80755         (quotearg_n_options): Abort if N is negative.
80756         Avoid overflow check on hosts where size_t is 64 bits and int
80757         is 32 bits, as overflow is impossible there.
80758         Fix off-by-one typo that caused unnecessary reallocation.
80759
80760 2001-11-27  Jim Meyering  <meyering@lucent.com>
80761
80762         * lib/tempname.c: Merge with version from libc.
80763         * lib/regex.c: Likewise.
80764
80765         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
80766         systems for which STDC_HEADERS is 0, it was not included, resulting in
80767         a warning about an integer-to-pointer conversion problem with getenv.
80768         Reported by Volker Borchert.
80769
80770 2001-11-26  Jim Meyering  <meyering@lucent.com>
80771
80772         * lib/gtod.h: Remove file.
80773         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
80774         * lib/gettimeofday.c: Don't include gtod.h.
80775         (GTOD_init): Remove function.
80776         (rpl_gettimeofday): Do its job here instead, rather than aborting.
80777         Suggestion from Volker Borchert.
80778
80779 2001-11-23  Jim Meyering  <meyering@lucent.com>
80780
80781         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
80782         it.
80783         * lib/hash.c (struct hash_table): Define it here instead.
80784
80785 2001-11-22  Jim Meyering  <meyering@lucent.com>
80786
80787         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
80788
80789 2001-11-20  Jim Meyering  <meyering@lucent.com>
80790
80791         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
80792         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
80793
80794 2001-11-19  Jim Meyering  <meyering@lucent.com>
80795
80796         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
80797         directory.  Use "conftestXXXXXX" as the template.
80798         Suggestion from Paul Eggert.
80799
80800         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
80801         immediately, so the test doesn't mistakenly hit the max-open-files
80802         limit.
80803
80804 2001-11-18  Paul Eggert  <eggert@twinsun.com>
80805
80806         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
80807         (TEMPORARIES): New macro.
80808         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
80809         removes an artificial limitation (e.g. HP-UX 10.20, where
80810         TMP_MAX is 17576).
80811
80812 2001-11-18  Jim Meyering  <meyering@lucent.com>
80813
80814         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
80815
80816 2001-11-18  Jim Meyering  <meyering@lucent.com>
80817
80818         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
80819         on SunOS 4.
80820
80821         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
80822         files will be created before anything else.
80823
80824 2001-11-17  Paul Eggert  <eggert@twinsun.com>
80825
80826         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
80827         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
80828
80829 2001-11-17  Jim Meyering  <meyering@lucent.com>
80830
80831         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
80832         Prompted by a report from Bob Proulx.
80833
80834         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
80835         Instead, require UTILS_FUNC_MKSTEMP.
80836
80837 2001-11-17  Jim Meyering  <meyering@lucent.com>
80838
80839         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
80840         Now, that's done as part of AC_FUNC_STRTOD.
80841
80842 2001-11-17  Jim Meyering  <meyering@lucent.com>
80843
80844         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
80845         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
80846         rather than group writable.  Patch by Juan F. Codagnone.
80847
80848         * lib/readtokens.c: Remove explicit declarations of xmalloc and
80849         xrealloc, Instead, include "xalloc.h".
80850
80851         * lib/mountlist.c: Include unlocked-io.h after all system headers.
80852         Remove explicit declarations of xmalloc, xrealloc,
80853         and xstrdup.  Instead, include "xalloc.h".
80854
80855         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
80856         unlocked-io.h.
80857         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
80858         Likewise.
80859         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
80860
80861         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
80862         Reported by Padraig Brady.
80863
80864         * lib/mkstemp.c: #undef mkstemp.
80865         Include config.h.
80866         (rpl_mkstemp): Rename from mkstemp.
80867         Protoize.
80868
80869 2001-11-16  Jim Meyering  <meyering@lucent.com>
80870
80871         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
80872         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
80873         determine the amount of total physical memory, use pstat_getstatic.
80874         HPUX-11 doesn't define _SC_PHYS_PAGES.
80875         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
80876         If sysconf couldn't be used to determine the amount of available
80877         physical memory, use both pstat_getstatic and pstat_getdynamic.
80878         Based on a patch from Bob Proulx.
80879
80880 2001-11-10  Jim Meyering  <meyering@lucent.com>
80881
80882         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
80883         (jm_PREREQ): Use it.
80884
80885 2001-11-09  Jim Meyering  <meyering@lucent.com>
80886
80887         * m4/jm-macros.m4: Require autoconf-2.52f.
80888         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
80889         Use these AC_-prefixed names, not the AM_-prefixed ones.
80890
80891         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
80892
80893 2001-11-05  Jim Meyering  <meyering@lucent.com>
80894
80895         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
80896
80897 2001-11-04  Jim Meyering  <meyering@lucent.com>
80898
80899         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
80900         $DEFS.
80901
80902 2001-11-03  Jim Meyering  <meyering@lucent.com>
80903
80904         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
80905         of AC_DEFUN.
80906
80907         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
80908         know the name of the variable in the macro definition.
80909
80910 2001-11-03  Jim Meyering  <meyering@lucent.com>
80911
80912         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
80913         in argmatch_to_argument call.
80914
80915         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
80916         argument.
80917
80918         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
80919         e.g., a fault due to an attempt to free a NULL pointer.
80920
80921 2001-11-01  Jim Meyering  <meyering@lucent.com>
80922
80923         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
80924         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
80925
80926 2001-11-01  Jim Meyering  <meyering@lucent.com>
80927
80928         * lib/dirfd.c, lib/dirfd.h: New files.
80929         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
80930
80931         * lib/hash.c (hash_print) [TESTING]: Clean up.
80932
80933 2001-10-22  Paul Eggert  <eggert@twinsun.com>
80934
80935         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
80936         to avoid a warning if -Wall.
80937
80938 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
80939
80940         * README: New file
80941         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
80942         (per RMS's instructions, this is now the canonical source)
80943         * lgpl/, gpl/: New directories.
80944
80945 2001-10-21  Paul Eggert  <eggert@twinsun.com>
80946
80947         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
80948
80949 2001-10-21  Jim Meyering  <meyering@lucent.com>
80950
80951         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
80952         this code would end up calling gettext even in packages built
80953         with --disable-nls.
80954         * lib/getopt.c (_): Likewise.
80955         * lib/regex.c (_): Likewise.
80956
80957 2001-10-20  Paul Eggert  <eggert@twinsun.com>
80958
80959         * m4/error.m4 (jm_PREREQ_ERROR):
80960         Do not invoke AC_CHECK_FUNCS with strerror_r, as
80961         AC_FUNC_STRERROR_R does that.
80962         Check for strerror declaration.
80963
80964         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
80965         are supposed to have them these days.
80966         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
80967         Merge changes from latest Autoconf CVS.
80968         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
80969         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
80970         POSIX decided to standardize on the int flavor of strerror_r.
80971
80972 2001-10-20  Paul Eggert  <eggert@twinsun.com>
80973
80974         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
80975         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
80976         Use strerror_r that is only a macro, even if it is not a function.
80977         (strerror): Check for HAVE_DECL_STRERROR before declaring.
80978         (private_strerror): Use prototypes, not old-style function definition.
80979         (print_errno_message): New function.
80980         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
80981         char*-flavored one.
80982         (error_tail, error, error_at_line): Use it.
80983
80984 2001-10-11  Jim Meyering  <meyering@lucent.com>
80985
80986         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
80987         and quote_n (1, ... to avoid clobbering a buffer.
80988
80989 2001-10-05  Jim Meyering  <meyering@lucent.com>
80990
80991         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
80992         hash-pjw.h.
80993         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
80994         * lib/hash-pjw.h: New file.
80995
80996 2001-09-30  Jim Meyering  <meyering@lucent.com>
80997
80998         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
80999         `struct fsstat' has the `f_fstypename' member.
81000         Use that to define FS_TYPE, which is now used to make
81001         the getfsstat link test tighter.
81002
81003 2001-09-30  Jim Meyering  <meyering@lucent.com>
81004
81005         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
81006         Include <sys/ucred.h>, for Apple Darwin.
81007         Include sys/mount.h and sys/fs_types.h only if available.
81008         (FS_TYPE): Define.
81009         (read_filesystem_list): Use FS_TYPE.
81010
81011 2001-09-29  Paul Eggert  <eggert@twinsun.com>
81012
81013         * lib/exclude.c (excluded_filename): 0 -> false, since it's
81014         a boolean context.
81015
81016 2001-09-29  Jim Meyering  <meyering@lucent.com>
81017
81018         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
81019         [one-argument getmntent function]): Include stdio.h before mntent.h.
81020         SunOS 4.1.x needs it for the declaration of `FILE'.
81021         Patch by Volker Borchert.
81022
81023         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
81024         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
81025         sys/fs_types.h, and make the link-test for getfsstat guard #include
81026         directives with appropriate #if HAVE_*_H tests so that we can
81027         detect getfsstat on Apple Darwin1.3.7 systems.
81028         Reported by Nelson Beebe.
81029         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
81030
81031 2001-09-28  Paul Eggert  <eggert@twinsun.com>
81032
81033         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
81034         #defines strtoimax.  Also treat the other strto* functions
81035         like strtoimax.
81036
81037         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
81038         Check for strtoul and strtoumax,
81039         as those declarations are made even in the signed case.
81040         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
81041         Likewise, for strtol and strtoimax.
81042
81043 2001-09-28  Paul Eggert  <eggert@twinsun.com>
81044
81045         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
81046         #defines strtoimax.  Also treat the other strto* functions
81047         like strtoimax.
81048
81049         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
81050         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
81051         (strtoimax, strtoumax): Do not declare if already defined as a macro.
81052
81053 2001-09-26  Jim Meyering  <meyering@lucent.com>
81054
81055         Most macros in unlocked-io.h had the wrong number of arguments.
81056         * lib/gen-uio: New script.
81057         (USE_UNLOCKED_IO): Define to 1 if not already defined.
81058         * lib/unlocked-io.hin: Remove file.
81059         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
81060         rather than trying to embed it here.
81061         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
81062         Reported by Padraig Brady.
81063
81064 2001-09-25  Volker Borchert  <bt@teknon.de>
81065
81066         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
81067         `result'.
81068
81069 2001-09-24  Jim Meyering  <meyering@lucent.com>
81070
81071         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
81072
81073 2001-09-23  Jim Meyering  <meyering@lucent.com>
81074
81075         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
81076         instead of the mere test for existence of mntent.h.  The latter
81077         would get a false-positive on AIX 3.4 systems.
81078         In the outer getmntent if-block, don't die if neither of the getmntent
81079         tests succeeds.  Instead, just fall through and continue with the
81080         remaining tests.
81081
81082 2001-09-23  Jim Meyering  <meyering@lucent.com>
81083
81084         * lib/mountlist.c: Remove useless parentheses in #if directives.
81085         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
81086         the deprecated MOUNTED symbol is no longer defined in mntent.h.
81087
81088 2001-09-22  Jim Meyering  <meyering@lucent.com>
81089
81090         * m4/gettext.m4: New file.  From gettext.
81091         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
81092         * m4/progtest.m4: Likewise
81093         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
81094         * m4/glibc21.m4: Likewise.
81095
81096         * m4/libintl.m4: Remove.  No longer used.
81097
81098 2001-09-22  Jim Meyering  <meyering@lucent.com>
81099
81100         * lib/localcharset.c: Update from latest gettext.
81101         * lib/config.charset: Likewise.
81102
81103 2001-09-20  Jim Meyering  <meyering@lucent.com>
81104
81105         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
81106         strtoimax.
81107         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
81108         strtoumax.
81109
81110 2001-09-20  Jim Meyering  <meyering@lucent.com>
81111
81112         * lib/xstrtol.c (strtoimax): Guard declaration with
81113         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
81114         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
81115         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
81116         (strtoumax): Likewise, for completeness (it wasn't necessary).
81117
81118 2001-09-17  Paul Eggert  <eggert@twinsun.com>
81119
81120         * lib/strtoimax.c (HAVE_LONG_LONG):
81121         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
81122         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
81123         to work around bug in IBM C compiler.
81124
81125 2001-09-17  Jim Meyering  <meyering@lucent.com>
81126
81127         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
81128         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
81129         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
81130         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
81131         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
81132         whenever the right hand side need not be expanded by the shell.
81133
81134 2001-09-16  Paul Eggert  <eggert@twinsun.com>
81135
81136         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
81137         library.  It's not correct, as some older glibcs are buggy.
81138         fnmatch wasn't fixed until glibc 2.2.
81139
81140         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
81141         special shell magic here.
81142
81143 2001-09-16  Jim Meyering  <meyering@lucent.com>
81144
81145         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
81146         * m4/jm-macros.m4: Require it.
81147
81148 2001-09-16  Jim Meyering  <meyering@lucent.com>
81149
81150         * lib/mkdir.c: New file.
81151
81152 2001-09-15  Jim Meyering  <meyering@lucent.com>
81153
81154         * m4/jm-macros.m4: Check for help2man.
81155
81156 2001-09-11  Jim Meyering  <meyering@lucent.com>
81157
81158         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
81159         The body, by Paul Eggert, was moved here from configure.in.
81160         * m4/jm-macros.m4: Require UTILS_HOST_OS.
81161
81162 2001-09-04  Paul Eggert  <eggert@twinsun.com>
81163
81164         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
81165         (jm_PREREQ): Use it.
81166
81167 2001-09-04  Paul Eggert  <eggert@twinsun.com>
81168
81169         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
81170         Use ssize_t, not int, to store result of readlink.
81171         Check for ssize_t overflow as well as size_t overflow,
81172         as POSIX says the result of readlink is implementation-defined
81173         when ssize_t overflows.
81174         Remove unnecessary cast to char*.
81175         Use free+malloc instead of realloc, as the storage doesn't need
81176         to be preserved and it's clearer and can be more efficient that way.
81177         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
81178         * lib/xreadlink.h (xreadlink): Update prototype.
81179
81180 2001-09-04  Paul Eggert  <eggert@twinsun.com>
81181
81182         * lib/xgetcwd.c: Revert some of the previous change; intead,
81183         fix the HAVE_GETCWD_NULL code to behave more like the
81184         !HAVE_GETCWD_NULL code used to.
81185
81186         Include "xalloc.h".
81187         (xgetcwd): Do not return NULL when memory is exhausted; instead,
81188         invoke xalloc_die.
81189
81190 2001-09-03  Paul Eggert  <eggert@twinsun.com>
81191
81192         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
81193         sys/param.h, as pathmax.h includes them.
81194
81195 2001-09-03  Paul Eggert  <eggert@twinsun.com>
81196
81197         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
81198         (jm_PREREQ_XGETCWD): New macro.
81199
81200         * m4/getcwd.m4: New file.
81201
81202 2001-09-03  Paul Eggert  <eggert@twinsun.com>
81203
81204         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
81205         like the HAVE_GETCWD_NULL code.
81206         Include pathmax.h if not HAVE_GETCWD.
81207         Do not include xalloc.h.
81208         (INITIAL_BUFFER_SIZE): New symbol.
81209         Do not use xmalloc / xrealloc, since the caller is responsible for
81210         handling errors.  Preserve errno around `free' during failure.
81211         Do not overrun buffer when using getwd.
81212
81213 2001-09-03  Paul Eggert  <eggert@twinsun.com>
81214
81215         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
81216         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
81217         getcwd (NULL, 0).
81218
81219 2001-09-03  Paul Eggert  <eggert@twinsun.com>
81220
81221         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
81222         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
81223         spotted by Jim Meyering.
81224
81225 2001-09-03  Jim Meyering  <meyering@lucent.com>
81226
81227         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
81228         failure.
81229
81230 2001-09-02  Jim Meyering  <meyering@lucent.com>
81231
81232         * lib/error.c: Update from GNU libc.
81233
81234 2001-09-01  Jim Meyering  <meyering@lucent.com>
81235
81236         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
81237         Used by df.
81238
81239 2001-09-01  Jim Meyering  <meyering@lucent.com>
81240
81241         * lib/xreadlink.c: New file.
81242         * lib/xreadlink.h: New file.
81243         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
81244         xreadlink.h.
81245
81246         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
81247         doesn't conflict with sparc Solaris 7's definition in
81248         /usr/include/sys/int_types.h.
81249
81250         * lib/exclude.c: Use `""', not `<>' to #include non-system header
81251         files.
81252         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
81253         and strncasecmp as r-values.  Unixware didn't have declarations.
81254
81255 2001-08-31  Paul Eggert  <eggert@twinsun.com>
81256
81257         * lib/xstrtol.h: Add copyright notice.
81258         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
81259         LONGINT_INVALID_SUFFIX_CHAR.
81260
81261 2001-08-31  Paul Eggert  <eggert@twinsun.com>
81262
81263         * lib/xstrtol.c (strtoimax): New decl.
81264
81265 2001-08-31  Paul Eggert  <eggert@twinsun.com>
81266
81267         * lib/xgetcwd.c: Don't include pathmax.h.
81268         Include stdlib.h and unistd.h if available.
81269         Include xalloc.h.
81270         (xmalloc, xstrdup, free): Remove decls.
81271         (xgetcwd): Don't assume sizes fit in unsigned.
81272         Check for overflow when computing sizes.
81273         Simplify reallocation code.
81274
81275 2001-08-31  Paul Eggert  <eggert@twinsun.com>
81276
81277         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
81278         a directory's st_size can have an arbitrary value, so the old
81279         usage could waste an arbitrary amount of memory.  All uses
81280         changed.
81281         * lib/savedir.h: Update prototype.
81282
81283 2001-08-31  Paul Eggert  <eggert@twinsun.com>
81284
81285         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
81286
81287         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
81288         old strtoimax.c.
81289
81290         Also, make the following further changes to make this file's
81291         configuration more similar to that of strtol.c:
81292         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
81293         (strtoumax, uintmax_t, strtoull, strtol): Remove.
81294         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
81295         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
81296         changed to signed values.
81297
81298         And make the following changes as well:
81299         Fix copyright notice, as 1999 was missing.
81300         (verify): New macro.
81301         (strtoimax): Check sizes at compile-time, not run-time.
81302         Prefer strtol to strtoll if both work.
81303         (main): Remove; it was not that useful and was a pain to maintain.
81304
81305         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
81306
81307 2001-08-31  Jim Meyering  <meyering@lucent.com>
81308
81309         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
81310         Use an initial, malloc'd, buffer of length 128 rather than
81311         a statically allocated one of length 1024.
81312
81313 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81314
81315         Simplify code, partly by assuming autoconf 2.52 semantics.
81316
81317         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
81318
81319         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
81320         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
81321         All uses removed.
81322         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
81323         Move AC_REQUIRE to next-to-top level, to avoid confusion.
81324         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
81325         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
81326         jm_AC_HEADER_INTTYPES_H.
81327         * m4/jm-macros.m4 (jm_MACROS): Likewise.
81328
81329         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
81330
81331         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
81332         Quote first arg of AC_DEFUN.
81333         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
81334         since they are needed to parse the include file even if we need
81335         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
81336         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
81337         but with opposite signedness.
81338
81339 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81340
81341         Merge 'exclude' changes from tar 1.13.22.
81342         This fixes one or two unlikely storage allocation overflow bugs,
81343         but doesn't change user-visible behavior otherwise.
81344
81345 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81346
81347         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
81348         (jm_PREREQ_EXCLUDE): New macro.
81349
81350 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81351
81352         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
81353         tm to be declared.
81354
81355 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81356
81357         * lib/hash.c: Remove '2001' from copyright notice.
81358
81359 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81360
81361         * lib/full-write.h: New file.
81362         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
81363         * lib/full-write.c: Correct credits, as cccp.c no longer
81364         exists and anyway it was so heavily changed from the old cccp
81365         code as to be unrecognizable.  Include full-write.h.
81366         (full_write): Return size_t, with short writes meaning failure.
81367         All callers changed.  This fixes a bug with large buffers
81368         on 64-bit hosts.
81369         * lib/utime.c: Include full-write.h.
81370
81371 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81372
81373         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
81374         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
81375         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
81376         Include if available.
81377         (<xalloc.h>): Include
81378         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
81379         (verify): New macro.  Use it to verify that EXCLUDE macros do not
81380         collide with FNM macros.
81381         (struct patopts): New struct.
81382         (struct exclude): Use it, as exclude patterns now come with options.
81383         (new_exclude): Support above changes.
81384         (new_exclude, add_exclude_file):
81385         Initial size must now be a power of two to simplify overflow checking.
81386         (free_exclude, fnmatch_no_wildcards): New function.
81387         (excluded_filename): No longer requires options arg, as the options
81388         are determined by add_exclude.  Now returns bool, not int.
81389         (excluded_filename, add_exclude):
81390         Add support for the fancy new exclusion options.
81391         (add_exclude, add_exclude_file): Now takes int options arg.
81392         Check for arithmetic overflow when computing sizes.
81393         (add_exclude_file): xrealloc might modify errno, so don't
81394         realloc until after errno might be used.
81395
81396         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
81397         New macros.
81398         (free_exclude): New decl.
81399         (add_exclude, add_exclude_file): Now takes int options arg.
81400         (excluded_filename): No longer requires options arg, as the options
81401         are determined by add_exclude.  Now returns bool, not int.
81402
81403 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81404
81405         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
81406
81407 2001-08-27  Jim Meyering  <meyering@lucent.com>
81408
81409         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
81410
81411         * lib/version-etc.c (N_): Remove definition.
81412         Revert most of last change.
81413         Instead, simply don't mark the `Copyright...' string for translation.
81414         Based on advice from Paul Eggert.
81415
81416         * lib/strtoxmax.c: Tweak comment.
81417
81418 2001-08-26  Jim Meyering  <meyering@lucent.com>
81419
81420         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
81421
81422         * m4/xstrtoimax.m4: New file.
81423         * m4/xstrtoumax.m4: Add comments explaining why we
81424         AC_REPLACE_FUNCS(strtol).
81425
81426 2001-08-26  Jim Meyering  <meyering@lucent.com>
81427
81428         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
81429         of copyright with `%s' so translators don't get an untranslated
81430         message in 2002.
81431         (COPYRIGHT_YEAR): Define.
81432         (version_etc): Use fprintf rather than fputs.
81433         Suggestion from Ulrich Drepper.
81434
81435         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
81436
81437         * lib/strtoll.c: New file, from GNU libc.
81438         * lib/xstrtoimax.c: New file.
81439
81440         * lib/xstrtol.h: Add xstrtoimax.
81441         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
81442         * lib/strtoimax.c: New file.  Likewise, but first define
81443         STRTOUXMAX_SIGNED.
81444
81445         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
81446         ...
81447         * lib/strtoxmax.c: ... then renamed to this.
81448
81449 2001-08-18  Paul Eggert  <eggert@twinsun.com>
81450
81451         * m4/inttypes.m4: Add AC_PREREQ(2.13).
81452         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
81453         (jm_AC_TYPE_INTMAX_T): New macro.
81454         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
81455
81456         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
81457
81458         * m4/longlong.m4: Renamed from ulonglong.m4.
81459         * m4/inttypes.m4: Renamed from inttypes_h.m4.
81460         * m4/uintmax_t.m4: Removed.
81461
81462 2001-08-13  Paul Eggert  <eggert@twinsun.com>
81463
81464         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
81465         Port to Solaris 8, where 'sed' requires a space after the 'r'
81466         command, and where sh dislikes "$/".  Clean up the spacing a bit.
81467         Redirect output to $tmp just once.
81468
81469 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
81470
81471         * lib/addext.c (<errno.h>): Include.
81472         (errno): Declare if not defined.
81473         (addext): Work correctly when pathconf returns -1 and leaves
81474         errno alone because there is no limit.  Also, work even if
81475         pathconf returns a value greater than SIZE_MAX.
81476
81477 2001-08-12  Jim Meyering  <meyering@lucent.com>
81478
81479         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
81480         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
81481         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
81482         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
81483         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
81484         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
81485         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
81486         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
81487         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
81488         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
81489         utime.m4, utimes.m4, xstrtoumax.m4:
81490         Quote the first argument in each use of AC_DEFUN.
81491
81492 2001-08-12  Jim Meyering  <meyering@lucent.com>
81493
81494         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
81495         Simply `return getcwd (NULL, 0);'.
81496         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
81497         Use 1300 as initial value for length, not PATH_MAX.
81498
81499         * lib/pathmax.h: Clean up cpp syntax.
81500
81501 2001-08-12  Jim Meyering  <meyering@lucent.com>
81502
81503         * lib/gettimeofday.c: New file.
81504         * lib/gtod.h: New file.
81505         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
81506
81507 2001-08-05  Jim Meyering  <meyering@lucent.com>
81508
81509         * m4/jm-macros.m4: Require autoconf-2.52.
81510
81511 2001-08-04  Jim Meyering  <meyering@lucent.com>
81512
81513         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
81514         stmt, to get in sync with glibc.
81515
81516 2001-08-03  Paul Eggert  <eggert@twinsun.com>
81517
81518         The following changes are from gettext 0.10.39 as maintained by
81519         Bruno Haible.
81520
81521         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
81522         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
81523         with inverted sense.  All uses changed.
81524
81525         * lib/mbswidth.c: Don't include <limits.h>.
81526         Include <stdlib.h> and <string.h> unconditionally.
81527         (iswcntrl, mbsinit, ISCNTRL): New macros.
81528         (mbsnwidth): Use K&R style function declarations.
81529         Don't bother checking for MB_LEN_MAX == 1, since the compiler
81530         can optimize it when MB_CUR_MAX == 1.
81531         The width of control characters is zero, not 1.
81532
81533 2001-08-03  Paul Eggert  <eggert@twinsun.com>
81534
81535         The following changes are from gettext 0.10.39 as maintained by
81536         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
81537
81538         * m4/codeset.m4: Upgrade to serial AM1.
81539         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
81540         all uses changed.  Quote first arg of AC_DEFUN.
81541         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
81542
81543         * m4/iconv.m4: Upgrade to serial AM2.
81544         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
81545         Add --with-libconv-prefix.
81546         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
81547         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
81548         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
81549         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
81550         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
81551
81552         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
81553         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
81554         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
81555         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
81556         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
81557         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
81558         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
81559         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
81560         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
81561
81562         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
81563         string.h any more.
81564
81565         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
81566         not the default value.
81567
81568         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
81569         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
81570         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
81571         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
81572         Also check for iswcntrl, used for wcwidth fallback.
81573         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
81574         to Autoconf 2.13.
81575
81576 2001-08-03  Jim Meyering  <meyering@lucent.com>
81577
81578         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
81579         as it was in the original.  Reported by Paul Eggert.
81580
81581 2001-07-16  Jim Meyering  <meyering@lucent.com>
81582
81583         * m4/gettimeofday.m4: New file.
81584         Prompted by a report from Bernhard Baehr.
81585
81586 2001-07-15  Jim Meyering  <meyering@lucent.com>
81587
81588         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
81589         stuff. Now it's in ../Makefile.cfg.
81590
81591 2001-07-15  Jim Meyering  <meyering@lucent.com>
81592
81593         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
81594         (BUILT_SOURCES): Add unlocked-io.h.
81595         (io_functions): Define.
81596         (unlocked-io.h): New rule.
81597         (DISTCLEANFILES): Add unlocked-io.h.
81598         (all-local): Depend on unlocked-io.h, to ensure it is created.
81599
81600         * lib/unlocked-io.hin: New file
81601
81602         * lib/regex.c: Update from glibc.
81603
81604 2001-07-05  Jim Meyering  <meyering@lucent.com>
81605
81606         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
81607         recommendation.
81608         (libfetish_a_SOURCES): Put all .h files here instead.
81609         Remove a thus-exposed (better checks in automake) duplicate and
81610         two unnecessary .h files.
81611
81612 2001-07-04  Jim Meyering  <meyering@lucent.com>
81613
81614         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
81615         that generates jm-glibc-io.m4 so that it doesn't trigger any make
81616         distcheck failure.
81617
81618 2001-07-02  Jim Meyering  <meyering@lucent.com>
81619
81620         The following changes were prompted by suggestions from Bruno Haible.
81621
81622         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
81623         is now generated.
81624         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
81625         definition of EXTRA_DIST.
81626         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
81627         ensure that the generated file is created/updated whenever the list
81628         of $(unlocked_functions) is changed.
81629         (jm-glibc-io.m4): New rule.
81630         (unlocked-io.h): New rule -- currently unused.
81631
81632 2001-06-24  Jim Meyering  <meyering@lucent.com>
81633
81634         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
81635         unmatched right bracket, rather than kludging it with an extra,
81636         falsely-matching quote in a comment.  Patch by Akim Demaille.
81637
81638 2001-06-11  Jim Meyering  <meyering@lucent.com>
81639
81640         * lib/regex.c: Update from GNU libc.
81641
81642 2001-05-27  Jim Meyering  <meyering@lucent.com>
81643
81644         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
81645         Check for ut_type in struct utmp.
81646
81647 2001-05-27  Jim Meyering  <meyering@lucent.com>
81648
81649         * lib/readutmp.h (UT_TYPE): Define.
81650
81651 2001-05-24  Jim Meyering  <meyering@lucent.com>
81652
81653         * lib/argmatch.c: Include "quote.h".
81654         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
81655         quote function.  Reported by Göran Uddeborg.
81656
81657 2001-05-22  Jim Meyering  <meyering@lucent.com>
81658
81659         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
81660         now that we use the package-supplied version unconditionally.
81661         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
81662
81663 2001-05-21  Jim Meyering  <meyering@lucent.com>
81664
81665         * m4/regex.m4: Change a couple backticks to single quotes to avoid
81666         shell syntax errors.
81667
81668 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
81669
81670         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
81671
81672 2001-05-20  Paul Eggert  <eggert@twinsun.com>
81673
81674         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
81675         Don't bother to check library strftime, since
81676         we'll be using our own my_strftime function anyway.
81677         Define my_strftime instead of strftime.
81678
81679 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
81680
81681         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
81682         which is not yet declared.
81683
81684 2001-05-15  Jim Meyering  <meyering@lucent.com>
81685
81686         * m4/regex.m4: Use proper quoting so brackets appear in the test
81687         program.
81688         Reported by, and with help from, Bruno Haible.
81689
81690 2001-05-13  Jim Meyering  <meyering@lucent.com>
81691
81692         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
81693         undefined.
81694
81695 2001-05-11  Paul Eggert  <eggert@twinsun.com>
81696
81697         dirname code cleanup.  base_name now behaves more compatibly
81698         with POSIX basename when given file names that have trailing
81699         slashes, and similarly for dir_name.  Add new primitives
81700         base_len and dir_len.  Put the directory-name-related decls
81701         into dirname.h.
81702
81703         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
81704         * lib/backupfile.c (base_name): Likewise.
81705         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
81706         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
81707         * lib/makepath.c (strip_trailing_slashes): Likewise.
81708         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
81709         ISSLASH): Likewise.
81710         * lib/rename.c (strip_trailing_slashes): Likewise.
81711         * lib/same.c (base_name): Likewise.
81712         * lib/stripslash.c (ISSLASH): Likewise.
81713
81714         * lib/addext.c: Include <dirname.h> after size_t is defined.
81715         * lib/backupfile.c: Likewise.
81716
81717         * lib/addext.c (addext): Use base_len to trim redundant
81718         trailing slashes instead of doing it ourselves.
81719         But do not trim the last slash if it is not redundant.
81720
81721         * lib/backupfile.c (find_backup_file_name,
81722         max_backup_version): Use base_len instead of rolling it ourselves.
81723         Handle the case of "" and (on DOS) "C:" correctly.
81724
81725         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
81726         needed. Include <string.h>, <dirname.h>.
81727         (base_name): Allow file names ending in slashes, other than names
81728         that are all slashes.  In this case, return the basename followed
81729         by the slashes.  This is more general, and can be used in places
81730         where the original base_name purposely had an assertion failure.
81731         (base_len): New function.
81732
81733         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
81734         Do not include <assert.h>; no longer needed.
81735         Include xalloc.h.
81736         (memrchr): Remove decl.
81737         (dir_name_r): Remove.
81738         (dir_len): Renamed from dirlen.  All callers changed.
81739         Rewrite in terms of base_name, for simplicity and consistency.
81740         (dir_name): Never return NULL.  All callers changed.
81741         Do not include <stdlib.h> in test program; no longer needed.
81742         return 0; is fine for test program.
81743
81744         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
81745         New macros.
81746         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
81747
81748         * lib/path-concat.c (path_concat): Use base_len to compute
81749         base length, not strlen; this means we cannot rely on memcpy
81750         to null-terminate.
81751
81752         * lib/same.c (STREQ): Remove.
81753         (same_name): Handle the case where the basename ends in trailing '/'.
81754
81755         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
81756         a slash was stripped.  Do not strip the last slash after a
81757         file system prefix.
81758
81759 2001-05-11  Paul Eggert  <eggert@twinsun.com>
81760
81761         * lib/Makefile.am (libfetish_a_SOURCES):
81762         Add strftime.c, since we now compile it on all hosts.
81763
81764         * lib/strftime.c (my_strftime):
81765         Define to nstrftime if emacs, but only if my_strftime is not defined.
81766         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
81767         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
81768         Add one more extra argument: a nanoseconds value.
81769         All uses changed.
81770         (ns): New macro.
81771         (my_strftime function): Add %N format.
81772         (emacs_strftimeu): Renamed from emacs_strftime,
81773         with extra ut argument.
81774
81775 2001-05-09  Paul Eggert  <eggert@twinsun.com>
81776
81777         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
81778
81779 2001-04-21  Jim Meyering  <meyering@lucent.com>
81780
81781         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
81782         doesn't interfere.
81783
81784 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
81785
81786         * m4/ftruncate.m4: Check for chsize.
81787         Link with ftruncate.o unconditionally if ftruncate is missing.
81788         This was required when cross-compiling to i586-mingw32msvc.
81789
81790 2001-04-08  Jim Meyering  <meyering@lucent.com>
81791
81792         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
81793         recomputed; that's necessary when the offset spans a DST transition.
81794         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
81795
81796 2001-04-02  Jim Meyering  <meyering@lucent.com>
81797
81798         * lib/regex.h, regex.c: Update from GNU libc.
81799
81800 2001-03-24  Jim Meyering  <meyering@lucent.com>
81801
81802         * m4/jm-macros.m4: Require autoconf-2.49d.
81803
81804 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
81805
81806         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
81807
81808 2001-03-19  Paul Eggert  <eggert@twinsun.com>
81809
81810         * lib/version-etc.c (version_etc_copyright): Update to 2001.
81811
81812 2001-03-17  Jim Meyering  <meyering@lucent.com>
81813
81814         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
81815         now that the version in autoconf is equivalent.
81816         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
81817
81818         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
81819         Suggestion from Akim Demaille.
81820
81821         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
81822         (jm_PREREQ_TEMPNAME): New function.
81823
81824 2001-03-16  Paul Eggert  <eggert@twinsun.com>
81825
81826         * lib/tempname.c (uint64_t): Define to uintmax_t if
81827         not defined, and if UINT64_MAX is not defined.
81828         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
81829         Reported by John David Anglin.
81830
81831 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
81832
81833         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
81834         resolve alias if codeset is empty.
81835         * lib/config.charset (BeOS): Use wildcard syntax.
81836
81837 2001-03-13  Jim Meyering  <meyering@lucent.com>
81838
81839         * lib/path-concat.c (path_concat)
81840         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
81841         concatenating e.g., `C:' and `foo'.
81842         From Bruno Haible.
81843
81844 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
81845
81846         * lib/localcharset.c (locale_charset): Don't use
81847         setlocale(LC_CTYPE,NULL). Don't return NULL.
81848         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
81849
81850 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
81851
81852         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
81853         support for DOS/DJGPP.
81854
81855 2001-03-01  Paul Eggert  <eggert@twinsun.com>
81856
81857         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
81858         lacks mkstemp.  Compile our own tempname.c if we compile our own
81859         mkstemp.c, as mkstemp relies on tempname.
81860
81861 2001-03-01  Jim Meyering  <meyering@lucent.com>
81862
81863         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
81864         AH_VERBATIM really does output its argument verbatim.
81865
81866 2001-02-28  Paul Eggert  <eggert@twinsun.com>
81867
81868         * lib/Makefile.am (libfetish_a_SOURCES):
81869         Add dup-safer.c, fopen-safer.c.
81870         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
81871
81872         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
81873         * lib/unistd-safer.h: New files.
81874
81875 2001-02-25  Paul Eggert  <eggert@twinsun.com>
81876
81877         The mkstemp replacement is taken from glibc 2.2.2, with some
81878         portability fixes for use outside glibc, as follows:
81879
81880         * lib/tempname.c (struct_stat64): New macro.
81881         (direxists, __gen_tempname): Use it.
81882         This avoids a portability problem with Solaris 8.
81883
81884         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
81885         (<stddef.h>, <stdint.h>, <string.h>):
81886         Include only if STDC_HEADERS || _LIBC.
81887         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
81888         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
81889         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
81890         (__set_errno): Define this macro if <errno.h> doesn't.
81891         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
81892         Define these macros if <stdio.h> doesn't.
81893         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
81894         Define these macros if <sys/stat.h>
81895         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
81896         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
81897         __xstat64): Define if not _LIBC.
81898         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
81899         (__gen_tempname): Invoke gettimeofday only if
81900         HAVE_GETTIMEOFDAY || _LIBC;
81901         otherwise, fall back on plain "time".
81902         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
81903
81904         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
81905
81906         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
81907
81908 2001-02-18  Paul Eggert  <eggert@twinsun.com>
81909
81910         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
81911
81912 2001-02-17  Paul Eggert  <eggert@twinsun.com>
81913
81914         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
81915         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
81916         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
81917         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
81918
81919 2001-02-17  Paul Eggert  <eggert@twinsun.com>
81920
81921         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
81922         Remove workaround macros for hosts that have mbrtowc but not
81923         mbstate_t, as we now insist on proper declarations for both
81924         before using mbrtowc.
81925
81926 2001-02-17  Jim Meyering  <meyering@lucent.com>
81927
81928         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
81929         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
81930         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
81931         UnixWare 7.1.1.
81932
81933         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
81934         rather than AC_CACHE_VAL.
81935
81936 2001-02-17  Jim Meyering  <meyering@lucent.com>
81937
81938         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
81939         around included file name.
81940
81941         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
81942
81943         * lib/strftime.c: Update from GNU libc (the only changes were to
81944         comments).
81945
81946 2001-02-17  Jim Meyering  <meyering@lucent.com>
81947
81948         * lib/regex.c: Update from libc.
81949
81950 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
81951
81952         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
81953         clash.
81954
81955 2001-02-16  Paul Eggert  <eggert@twinsun.com>
81956
81957         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
81958         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
81959         Reported by Mark Hounschell via Paul Eggert.
81960
81961 2001-02-07  Jim Meyering  <meyering@lucent.com>
81962
81963         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
81964
81965 2001-02-05  Jim Meyering  <meyering@lucent.com>
81966
81967         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
81968         it includes the patch required for `large file' support with at least
81969         HP-UX's 10.20 /bin/cc.
81970
81971 2001-02-03  Jim Meyering  <meyering@lucent.com>
81972
81973         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
81974         AS_IF, now that it works once again (mysteriously).
81975         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
81976
81977 2001-01-30  Jim Meyering  <meyering@lucent.com>
81978
81979         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
81980         * m4/chown.m4: Rename conftestchown to conftest.chown.
81981         * m4/rename.m4: s/conftestdir/conftest.d1/ and
81982         s/conftestdir2/conftest.d2/.
81983         * m4/utimes.m4: s/conftestdata/conftest.data/
81984         Inspired by Pavel Roskin's change in autoconf.
81985
81986 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
81987
81988         * lib/config.charset: Update for FreeBSD 4.2.
81989
81990 2001-01-27  Jim Meyering  <meyering@lucent.com>
81991
81992         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
81993         a use of AS_IF.
81994         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
81995
81996 2001-01-26  Jim Meyering  <meyering@lucent.com>
81997
81998         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
81999         quotearg.c includes it.
82000
82001 2001-01-26  Jim Meyering  <meyering@lucent.com>
82002
82003         * lib/quotearg.c: Include stddef.h.
82004         * lib/quote.c: Include stddef.h.
82005         Reported by Axel Kittenberger.
82006
82007         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
82008         line in double quotes so that it evokes a better diagnostic.
82009         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
82010         Reported by Axel Kittenberger.
82011
82012 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
82013
82014         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
82015         as if it was a `charset'.
82016
82017 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
82018
82019         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
82020         has const.
82021
82022 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
82023
82024         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
82025         to avoid a warning.  Add back 'const' to inptr.
82026
82027 2001-01-20  Jim Meyering  <meyering@lucent.com>
82028
82029         Be sure that headers are checked before used in code compiled
82030         for the type checks.
82031         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
82032         In place of that, invoke jm_CHECK_ALL_TYPES.
82033         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
82034         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
82035         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
82036         The check for ssize_t was mistakenly run before the test for unistd.h.
82037
82038         The configure-time check for stdbool.h was missing.
82039         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
82040         (jm_PREREQ_HASH): New function.
82041
82042 2001-01-17  Jim Meyering  <meyering@lucent.com>
82043
82044         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
82045         for autoconf-2.49c.
82046         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
82047
82048 2001-01-16  Jim Meyering  <meyering@lucent.com>
82049
82050         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
82051         From Bruno Haible.
82052
82053 2001-01-14  Jim Meyering  <meyering@lucent.com>
82054
82055         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
82056         foo and bar.  Create conftestdir/ in the script, not in the C code.
82057         Remove directories in the script, not in the C code.
82058         Remove conftestdir{,2} before trying to create the directory.
82059         Make the entire configure script fail if the mkdir fails.
82060
82061 2001-01-14  Jim Meyering  <meyering@lucent.com>
82062
82063         * lib/rename.c: New file.  From Volker Borchert.
82064         Include stdlib.h, string.h or strings.h, and xalloc.h.
82065         Use strip_trailing_slashes rather than open-coding it.
82066
82067 2001-01-03  Paul Eggert  <eggert@twinsun.com>
82068
82069         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
82070
82071 2001-01-03  Jim Meyering  <meyering@lucent.com>
82072
82073         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
82074         of local `inptr' to avoid warning with some system declarations of
82075         iconv.
82076
82077 2001-01-02  Volker Borchert  <bt@teknon.de>
82078
82079         * m4/rename.m4: New file.
82080         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
82081
82082 2001-01-01  Jim Meyering  <meyering@lucent.com>
82083
82084         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
82085         even on systems with utmpx.h.  It's necessary for the declaration of
82086         utmp's ut_user member.  Reported by Andreas Jaeger.
82087
82088         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
82089         available. They are required for the declarations of getgrgid and
82090         getpwuid resp.
82091         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
82092         Reported by Andreas Jaeger.
82093
82094 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
82095
82096         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
82097         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
82098         so `make install' also works in VPATH builds.
82099
82100 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
82101
82102         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
82103         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
82104         can be used in subdirectories.
82105
82106 2000-12-29  Paul Eggert  <eggert@twinsun.com>
82107
82108         * lib/modechange.c: Do not assume that mode_t uses the
82109         traditional octal encoding.  E.g. "chmod 1 FOO" should set
82110         the other-execute bit of FOO even if S_IXOTH != 1.
82111
82112         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
82113         WOTH, XOTH, ALLM): New macros.
82114         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
82115          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
82116         Use them.
82117         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
82118         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
82119         (mode_compile):
82120         No need to use uintmax_t; unsigned long is long enough.
82121         Don't bother to get suffix since we don't use it.
82122
82123 2000-12-26  Jim Meyering  <meyering@lucent.com>
82124
82125         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
82126         better with autoheader.
82127
82128 2000-12-24  Jim Meyering  <meyering@lucent.com>
82129
82130         * lib/hash.c (is_prime): Return explicit boolean values.
82131         (hash_get_first): Return NULL to appease Irix5.6's 89.
82132         Reported by Nelson Beebe.
82133
82134 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
82135
82136         * lib/localcharset.c (locale_charset): Add support for Win32.
82137
82138 2000-12-18  Paul Eggert  <eggert@twinsun.com>
82139
82140         * lib/physmem.h, lib/physmem.c: New files.
82141
82142         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
82143         (noinst_HEADERS): Add physmem.h.
82144
82145         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
82146         't' for compatibility with Solaris 8 sort.
82147
82148 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
82149
82150         * lib/config.charset: Add support for BeOS.
82151
82152 2000-12-17  Jim Meyering  <meyering@lucent.com>
82153
82154         * m4/dos.m4 (jm_AC_DOS): New file and macro.
82155         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
82156
82157 2000-12-16  Jim Meyering  <meyering@lucent.com>
82158
82159         This bug had a serious impact on chown: `chown N:M FILE' (for integer
82160         N and M) would have treated it like `chown N:N FILE'.
82161
82162         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
82163
82164 2000-12-16  Jim Meyering  <meyering@lucent.com>
82165
82166         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
82167         SHELLS_FILE to a file name that's useful on djgpp systems.
82168         Include stdlib.h.
82169         (ADDITIONAL_DEFAULT_SHELLS): Define.
82170         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
82171         Based mostly on a patch from Prashant TR.
82172
82173 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
82174
82175         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
82176         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
82177         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
82178
82179 2000-12-08  Andreas Schwab  <schwab@suse.de>
82180
82181         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
82182         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
82183
82184 2000-12-07  Jim Meyering  <meyering@lucent.com>
82185
82186         * lib/stripslash.c (ISSLASH): Define.
82187         (strip_trailing_slashes): Use ISSLASH rather than comparing against
82188         `/'.
82189         From Prashant TR.
82190
82191         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
82192         (dir_name_r): Declare this function as static.
82193         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
82194         manifest itself on a name containing a mix of slashes and
82195         backslashes.
82196         Make this function work with names starting with a DOS-style
82197         drive letter and colon prefix.
82198         (dir_name): Append `.' if necessary.
82199         Based mostly on patches from Prashant TR and Eli Zaretskii.
82200
82201         * lib/dirname.h (dir_name_r): Remove prototype.
82202
82203 2000-12-06  Paul Eggert  <eggert@twinsun.com>
82204
82205         * m4/off_t-format.m4: Remove this file.
82206         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
82207
82208 2000-12-06  Jim Meyering  <meyering@lucent.com>
82209
82210         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
82211         replacement strtoull, we may well need the replacement strtoul, too.
82212         Check for declarations of strtoul and strtoull.
82213         Check for strtol.  Mainly as a cue to cause automake to include
82214         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
82215         Check for limits.h -- strtol.c needs it.
82216
82217 2000-12-05  Jim Meyering  <meyering@lucent.com>
82218
82219         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
82220
82221 2000-12-04  Jim Meyering  <meyering@lucent.com>
82222
82223         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
82224         Also include memory.h, stdlib.h, unistd.h if appropriate.
82225         Reported by Andreas Jaeger (conflicting declaration of malloc).
82226
82227 2000-12-02  Jim Meyering  <meyering@lucent.com>
82228
82229         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
82230         * m4/jm-macros.m4 (jm_MACROS): require it.
82231
82232 2000-12-02  Jim Meyering  <meyering@lucent.com>
82233
82234         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
82235
82236 2000-12-01  Paul Eggert  <eggert@twinsun.com>
82237
82238         * lib/memrchr.c: Include <config.h> before any system include file.
82239
82240 2000-11-30  Jim Meyering  <meyering@lucent.com>
82241
82242         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
82243
82244 2000-11-30  Jim Meyering  <meyering@lucent.com>
82245
82246         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
82247
82248 2000-11-29  Paul Eggert  <eggert@twinsun.com>
82249
82250         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
82251
82252 2000-11-26  Jim Meyering  <meyering@lucent.com>
82253
82254         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
82255
82256 2000-11-22  Paul Eggert  <eggert@twinsun.com>
82257
82258         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
82259         size of (size_t) -1; it's not portable.
82260
82261 2000-11-17  Jim Meyering  <meyering@lucent.com>
82262
82263         * lib/strstr.c: Update from GNU libc.
82264
82265 2000-11-17  Akim Demaille  <akim@epita.fr>
82266
82267         * lib/obstack.h: Formatting changes.
82268         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
82269         prevent type checking.
82270         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
82271         cast the value to (void *): assigning a `foo *' to a `void *'
82272         variable is valid.
82273         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
82274
82275 2000-11-16  Jim Meyering  <meyering@lucent.com>
82276
82277         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
82278
82279 2000-11-11  Jim Meyering  <meyering@lucent.com>
82280
82281         * lib/error.c: Add a couple #includes, merging from GNU libc version.
82282
82283 2000-11-10  Jim Meyering  <meyering@lucent.com>
82284
82285         * lib/obstack.h: Update from GNU libc.
82286         * lib/obstack.c: Likewise.
82287
82288 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
82289
82290         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
82291
82292 2000-11-06  Paul Eggert  <eggert@twinsun.com>
82293
82294         * lib/getusershell.c (setusershell): Use rewind rather than
82295         fseek/fseeko, to avoid configuration hassles with fseeko.
82296         Don't bother opening SHELLS_FILE if shellstream is NULL;
82297         it's not necessary.
82298
82299 2000-11-05  Jim Meyering  <meyering@lucent.com>
82300
82301         * lib/makepath.h (make_dir): Declare.
82302         * lib/makepath.c (make_dir): Remove `static' attribute.
82303         Tweak a comment.
82304
82305 2000-11-04  Jim Meyering  <meyering@lucent.com>
82306
82307         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
82308
82309 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
82310
82311         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
82312         last one in a bucket, advance to the next bucket.
82313
82314 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
82315
82316         * lib/fnmatch.c: Do not comment out all the code if we are using
82317         the GNU C library, because in some cases we are replacing buggy
82318         code in the GNU C library itself.
82319
82320 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
82321
82322         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
82323         (regex_compile): Catch bogus \(\1\).
82324
82325 2000-10-30  Paul Eggert  <eggert@twinsun.com>
82326
82327         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
82328         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
82329         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
82330
82331 2000-10-30  Paul Eggert  <eggert@twinsun.com>
82332
82333         * lib/error.h, getline.h, modechange.h:
82334         Remove "2000" from Copyright line, as the file hasn't been
82335         changed this year other than in the copyright notice.
82336
82337         * lib/xalloc.h: Add "2000" to Copyright line, as this file
82338         was changed this year.
82339
82340 2000-10-29  Jim Meyering  <meyering@lucent.com>
82341
82342         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
82343         renaming.
82344         * m4/ls-mntd-fs.m4: Likewise
82345
82346 2000-10-29  Jim Meyering  <meyering@lucent.com>
82347
82348         * lib/xstat.in: Fix grammar in comment.
82349
82350 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
82351
82352         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
82353         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
82354         doesn't define __restrict_arr.
82355
82356 2000-10-28  Jim Meyering  <meyering@lucent.com>
82357
82358         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
82359         (jm_PREREQ_MEMCHR): New function.
82360
82361 2000-10-28  Jim Meyering  <meyering@lucent.com>
82362
82363         * lib/memchr.c: Update from libc.
82364         Adjust for portability:
82365         [HAVE_STDLIB_H]: Include stdlib.h.
82366         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
82367         Undef __memchr, too.
82368         [!weak_alias]: Define __memchr to memchr.
82369
82370         * lib/regex.c: Update from libc.
82371         * lib/regex.h: Likewise.
82372         * lib/getopt1.c: Likewise.
82373         * lib/memcmp.c: Likewise.
82374
82375         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
82376         Avoid using fseek, when possible -- it's broken by design.
82377         Patch by Ulrich Drepper.
82378
82379 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
82380
82381         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
82382         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
82383         Giving in to popular pressure to shut up the compiler with casts.
82384
82385 2000-10-26  Jim Meyering  <meyering@lucent.com>
82386
82387         * lib/strftime.c: Update from libc.
82388
82389 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
82390
82391         * regex.c: More `unsigned char' -> `re_char' changes.
82392         Also change several `int' into `re_wchar_t'.
82393         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
82394         (PUSH_FAILURE_POINTER): Don't cast any more.
82395         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
82396         We want GCC to complain, since this piece of code makes
82397         re_match non-reentrant, which *should* be fixed.
82398         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
82399         (EXTEND_BUFFER): Use RETALLOC.
82400         (SET_LIST_BIT): Don't cast.
82401         (re_wchar_t): New type.
82402         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
82403         that those two functions will always properly return.
82404         (IMMEDIATE_QUIT_CHECK): Cast to void.
82405         (analyse_first): Use recursion rather than an explicit stack.
82406         (re_compile_fastmap): Can't fail anymore.
82407         (re_search_2): Don't check re_compile_fastmap for failure.
82408         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
82409         Now also sets the new value (passed in a new argument).
82410         (re_match_2_internal): Use it.
82411         Also, use a new var `reg' of type size_t when looping through regs
82412         rather than reuse the inappropriate `mcnt'.
82413
82414 2000-10-25  Jim Meyering  <meyering@lucent.com>
82415
82416         * lib/obstack.c: Update from libc.
82417
82418 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
82419
82420         * regex.c (regex_compile): Change the way of handling a range from
82421         a char less than 256 to a char not less than 256.
82422
82423 2000-10-24  Andrew Innes  <andrewi@gnu.org>
82424
82425         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
82426         NT-Emacs only.
82427         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
82428         so that re_search functions only quit when callers expect them to.
82429
82430 2000-10-23  Jim Meyering  <meyering@lucent.com>
82431
82432         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
82433         wrong.  That set_locale call must not have any side effects.
82434         From Paul Eggert.
82435
82436 2000-10-22  Jim Meyering  <meyering@lucent.com>
82437
82438         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
82439         [CYCLIC]: Remove now-unused definition.
82440
82441         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
82442         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
82443         Suggestion from Ulrich Drepper.
82444
82445 2000-10-21  Jim Meyering  <meyering@lucent.com>
82446
82447         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
82448         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
82449         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
82450
82451 2000-10-21  Jim Meyering  <meyering@lucent.com>
82452
82453         * lib/dirname.c (memrchr): Declare if necessary.
82454         (dir_name): Remove the restriction that there be no
82455         trailing slashes.  Now, this code skips past them, effectively
82456         ignoring them.
82457         [TEST_DIRNAME] (main): New unit tests.
82458
82459         * lib/memrchr.c: New file from GNU libc.
82460         Undef __memrchr, too.
82461         [!weak_alias]: Define __memrchr to memrchr.
82462         Guard weak_alias use with `#ifdef weak_alias'.
82463
82464 2000-10-21  Jim Meyering  <meyering@lucent.com>
82465
82466         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
82467         (dir_name): Use dir_name_r.
82468         * lib/dirname.h (dir_name_r): Declare it.
82469
82470 2000-10-17  Jim Meyering  <meyering@lucent.com>
82471
82472         * lib/quote.h (PARAMS): Define and use.
82473         Reported by Akim Demaille.
82474
82475         * lib/getopt.c: Update from libc.
82476
82477 2000-10-16  Jim Meyering  <meyering@lucent.com>
82478
82479         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
82480         setlocale.
82481         From Jan Fedak.
82482
82483 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
82484
82485         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
82486
82487 2000-09-25  Jim Meyering  <meyering@lucent.com>
82488
82489         * lib/md5.h (rol): Define (from GnuPG).
82490
82491         * lib/sha.c: Give credit (GnuPG) where due.
82492         (M): Use rol rather than open-coding it.
82493         Add a FIXME comment.
82494
82495 2000-09-21  Jim Meyering  <meyering@lucent.com>
82496
82497         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
82498         Reported by Michael Stone.
82499
82500 2000-09-20  Jim Meyering  <meyering@lucent.com>
82501
82502         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
82503         (noinst_HEADERS): Add sha.h.
82504         Based on code from Scott G. Miller and from GnuPG.
82505
82506 2000-09-18  Jim Meyering  <meyering@lucent.com>
82507
82508         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
82509         LIBS. Otherwise, everyone ends up linking with -lelf for some
82510         configurations.
82511         Reported by Mike Stone.
82512
82513 2000-09-15  Jim Meyering  <meyering@lucent.com>
82514
82515         * lib/regex.c: Update from libc.
82516
82517 2000-09-10  Jim Meyering  <meyering@lucent.com>
82518
82519         * lib/getopt.c (_getopt_internal): Update from glibc.
82520
82521 2000-09-09  Jim Meyering  <meyering@lucent.com>
82522
82523         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
82524         think it should be used as a general replacement for isascii.
82525         * lib/fnmatch.c: Likewise.
82526         * lib/mbswidth.c: Likewise
82527         * lib/regex.c: Likewise.
82528
82529         Don't use atoi.
82530         * lib/userspec.c: Include sys/param.h and limits.h.
82531         Include xstrtol.h.
82532         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
82533         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
82534         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
82535         UID, GID.  Check range.
82536
82537 2000-09-06  Jim Meyering  <meyering@lucent.com>
82538
82539         * lib/getopt.c (_getopt_internal): Update from glibc.
82540
82541 2000-08-30  Jim Meyering  <meyering@lucent.com>
82542
82543         * lib/strftime.c: Merge in changes from GNU libc.
82544
82545 2000-08-26  Jim Meyering  <meyering@lucent.com>
82546
82547         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
82548         * m4/fpending.m4: New file.
82549
82550 2000-08-26  Jim Meyering  <meyering@lucent.com>
82551
82552         * lib/closeout.c: Include "__fpending.h".
82553         (close_stdout_status): Return right away if there's nothing to flush.
82554
82555         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
82556         * lib/__fpending.c: New file.
82557         * lib/__fpending.h: New file.
82558
82559 2000-08-20  Jim Meyering  <meyering@lucent.com>
82560
82561         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
82562         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
82563         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
82564
82565 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
82566
82567         Improve fileutils installation on systems where running
82568         programs (like install) can't be unlinked.
82569         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
82570         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
82571
82572 2000-08-07  Paul Eggert  <eggert@twinsun.com>
82573
82574         Standardize on "memory exhausted" instead of "Memory exhausted"
82575         or "virtual memory exhausted".
82576         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
82577         "virtual memory exhausted".
82578         * lib/same.c (same_name): Invoke xalloc_die instead of printing
82579         our own message.
82580         * lib/userspec.c (parse_user_spec): Likewise.
82581         * lib/bumpalloc.h: comment fix
82582         * lib/same.c, userspec.c: Include xalloc.h.
82583
82584         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
82585         not char *const and pointing to a constant array.
82586         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
82587         (xrealloc): Comment fix.
82588
82589         * lib/userspec.c (parse_user_spec):
82590         Don't translate a message until just before returning,
82591         to avoid unnecessary translation.
82592
82593 2000-08-07  Jim Meyering  <meyering@lucent.com>
82594
82595         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
82596         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
82597         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
82598         getgroups.c, gethostname.c, getopt.h, group-member.c,
82599         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
82600         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
82601         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
82602         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
82603         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
82604         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
82605         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
82606         yesno.c: Back out Copyright date changes for each file with no change
82607         this year.  This eases coordination with other programs using the same
82608         source code modules.  From Paul Eggert.
82609
82610 2000-08-06  Paul Eggert  <eggert@twinsun.com>
82611
82612         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
82613         not char, for compatibility with glibc 2.1.3 strftime.c.
82614
82615 2000-08-03  Greg McGary  <greg@mcgary.org>
82616
82617         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
82618         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
82619         (EXTEND_BUFFER): Use them.
82620
82621 2000-08-01  Jim Meyering  <meyering@lucent.com>
82622
82623         * lib/dirname.c (ISSLASH): Define.
82624         (BACKSLASH_IS_PATH_SEPARATOR): Define.
82625         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
82626         both `\' and `/' may be use as path separators.
82627         Based on a patch from Prashant TR.
82628
82629 2000-07-31  Paul Eggert  <eggert@twinsun.com>
82630
82631         * lib/quotearg.c (quotearg_n_options): Don't make the initial
82632         slot vector a constant, since it might get modified.
82633
82634 2000-07-31  Jim Meyering  <meyering@lucent.com>
82635
82636         * lib/xmalloc.c: Use `virtual memory exhausted', not
82637         `Memory exhausted'.
82638         * lib/obstack.c (print_and_abort): Likewise.
82639
82640 2000-07-30  Paul Eggert  <eggert@twinsun.com>
82641
82642         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
82643         buffer, so that the caller can always quote one small
82644         component of a "memory exhausted" message in slot 0.
82645         From a suggestion by Jim Meyering.
82646
82647 2000-07-30  Jim Meyering  <meyering@lucent.com>
82648
82649         * lib/makepath.c (make_path): Quote the other instance, too.
82650
82651         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
82652         (STATIC_BUF_SIZE): Define.
82653         (quotearg_n_options): Use only statically allocated storage when
82654         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
82655         than STATIC_BUF_SIZE.
82656
82657 2000-07-29  Jim Meyering  <meyering@lucent.com>
82658
82659         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
82660         * lib/dirname.c (dir_name): Likewise.
82661
82662         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
82663         `/'.
82664
82665         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
82666         (dir_name): Assert that there are no trailing slashes.
82667
82668 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
82669
82670         * lib/mbswidth.h (mbswidth): Add a flags argument.
82671         (mbswidth): New declaration.
82672         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
82673         * lib/mbswidth.c (mbswidth): Add a flags argument.
82674         (mbsnwidth): New function.
82675
82676 2000-07-24  Jim Meyering  <meyering@lucent.com>
82677
82678         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
82679
82680 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82681
82682         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
82683
82684 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82685
82686         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
82687         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
82688         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
82689         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
82690         invoke multibyte primitives.
82691
82692 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82693
82694         * lib/quotearg.c:
82695         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
82696         so that mbstate_t is always defined.
82697
82698         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
82699         be 1 in at least one GCC installation, and this configuration
82700         error is likely to be common.  Ignoring MB_LEN_MAX hurts
82701         performance on hosts that have mbrtowc but have only unibyte
82702         locales, but I assume these hosts are rare.
82703
82704 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82705
82706         * lib/mbswidth.c (_XOPEN_SOURCE):
82707         Don't define; this causes problems on Solaris 7.
82708         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
82709
82710 2000-07-23  Jim Meyering  <meyering@lucent.com>
82711
82712         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
82713         too: getgrgid, getpwuid, getuid.
82714
82715 2000-07-23  Jim Meyering  <meyering@lucent.com>
82716
82717         * lib/basename.c (base_name): Add an assertion.
82718
82719 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
82720
82721         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
82722         shadow its mbsinit function.
82723
82724 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
82725
82726         * lib/mbswidth.h: New file.
82727         * lib/mbswidth.c: New file.
82728         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
82729         (noinst_HEADERS): Add mbswidth.h.
82730
82731 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
82732
82733         * lib/config.charset: Add support for FreeBSD. Improve support for
82734         HP-UX and IRIX 6.
82735
82736 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
82737
82738         * m4/mbswidth.m4: New file.
82739         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
82740
82741 2000-07-15  Jim Meyering  <meyering@lucent.com>
82742
82743         * lib/makepath.c: Include quote.h.
82744         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
82745         corresponding argument in a `quote (...)' call.
82746         Give better diagnostics.
82747
82748         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
82749         (noinst_HEADERS): Add quote.h.
82750
82751         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
82752         from tar's src/misc.c.
82753         * lib/quote.h: New file.  Prototypes for same.
82754
82755 2000-07-14  Paul Eggert  <eggert@twinsun.com>
82756
82757         From a suggestion by Bruno Haible.
82758         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
82759         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
82760         to decide whether to define the BeOS workaround macro;
82761         this adjusts to the change to AC_MBSTATE_T.
82762
82763 2000-07-14  Jim Meyering  <meyering@lucent.com>
82764
82765         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
82766         jm_AC_TYPE_UINTMAX_T.
82767
82768 2000-07-13  Paul Eggert  <eggert@twinsun.com>
82769
82770         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
82771
82772         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
82773         quotearg_buffer_restyled): Add support for
82774         clocale_quoting_style.  Undo previous change to
82775         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
82776         and "{RIGHT QUOTATION MARK}" msgids.
82777
82778 2000-07-10  Paul Eggert  <eggert@twinsun.com>
82779
82780         From a suggestion by Bruno Haible.
82781         * m4/mbstate_t.m4 (AC_MBSTATE_T):
82782         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
82783         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
82784         and mbstate_t, to a single-part test that simply defines mbstate_t.
82785         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
82786         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
82787
82788 2000-07-10  Jim Meyering  <meyering@lucent.com>
82789
82790         * m4/strerror_r.m4: Mirror the correction made in autoconf.
82791
82792         * m4/gnu-source.m4: Output to confdefs.h directly.
82793         Suggestion from Akim Demaille.
82794
82795 2000-07-09  Paul Eggert  <eggert@twinsun.com>
82796
82797         The old behavior of quoting `like this' doesn't look good with
82798         newer, ISO-style fonts.  See:
82799         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
82800
82801         Instead, quote "like this" by default.  Let the translator
82802         tailor the locale-specific quoting behavior by providing
82803         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
82804
82805         * lib/quotearg.c (N_): New macro.
82806         (gettext_default): New function.
82807         (quotearg_buffer_restyled): Use
82808         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
82809         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
82810
82811 2000-07-09  Jim Meyering  <meyering@lucent.com>
82812
82813         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
82814         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
82815
82816         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
82817         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
82818
82819 2000-07-09  Jim Meyering  <meyering@lucent.com>
82820
82821         * lib/Most files: Update copyright dates to include 2000.
82822
82823 2000-07-08  Jim Meyering  <meyering@lucent.com>
82824
82825         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
82826         if not defined.
82827         (xgethostname): Remove now-unnecessary #ifdef.
82828         Move declaration of `err' into loop where it's used.
82829
82830 2000-07-05  Paul Eggert  <eggert@twinsun.com>
82831         and Bruno Haible  <haible@clisp.cons.org>
82832
82833         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
82834         only if the test for an object-type mbstate_t fails.  This
82835         prevents us from mistakenly reporting that mbstate_t is a
82836         system object type after we "#define mbstate_t int" to work
82837         around its lack.
82838
82839 2000-07-05  Paul Eggert  <eggert@twinsun.com>
82840         and Bruno Haible  <haible@clisp.cons.org>
82841
82842         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
82843
82844 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
82845
82846         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
82847         to strerror_r.
82848         Include <ctype.h> for use of isalpha.
82849
82850 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
82851
82852         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
82853         by allocating a larger buffer. Test the gethostname return value for
82854         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
82855         returns an error and ENAMETOOLONG isn't defined.
82856
82857 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
82858
82859         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
82860         dimension.
82861
82862 2000-07-04  Jim Meyering  <meyering@lucent.com>
82863
82864         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
82865         of the deprecated AC_CHECKING.
82866
82867 2000-07-04  Jim Meyering  <meyering@lucent.com>
82868
82869         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
82870         Reported by Bruno Haible.
82871
82872 2000-07-04  Jim Meyering  <meyering@lucent.com>
82873
82874         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
82875         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
82876         lacks mbrtowc.
82877
82878 2000-07-03  Paul Eggert  <eggert@twinsun.com>
82879
82880         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
82881         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
82882
82883 2000-07-03  Paul Eggert  <eggert@twinsun.com>
82884         and Bruno Haible  <haible@clisp.cons.org>
82885
82886         * lib/quotearg.c (mbrtowc):
82887         Assign to *pwc, and return 1 only if result is nonzero.
82888         (iswprint): Use ISPRINT when substituting our own mbrtowc.
82889
82890 2000-07-03  Jim Meyering  <meyering@lucent.com>
82891
82892         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
82893
82894 2000-07-03  Jim Meyering  <meyering@lucent.com>
82895
82896         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
82897         This is necessary to get a definition of e.g., UTMP_FILE on
82898         HP-UX 10.20.
82899         From Bob Proulx.
82900
82901 2000-07-02  Jim Meyering  <meyering@lucent.com>
82902
82903         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
82904
82905         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
82906         AC_LIBOBJ(function_name).
82907         * m4/chown.m4: Likewise.
82908         * m4/fnmatch.m4: Likewise.
82909         * m4/ftruncate.m4: Likewise.
82910         * m4/getgroups.m4: Likewise.
82911         * m4/getline.m4: Likewise.
82912         * m4/group-member.m4: Likewise.
82913         * m4/jm-macros.m4: Likewise.
82914         * m4/lstat.m4: Likewise.
82915         * m4/malloc.m4: Likewise.
82916         * m4/memcmp.m4: Likewise.
82917         * m4/nanosleep.m4: Likewise.
82918         * m4/putenv.m4: Likewise.
82919         * m4/realloc.m4: Likewise.
82920         * m4/regex.m4: Likewise.
82921         * m4/stat.m4: Likewise.
82922         * m4/strftime.m4: Likewise.
82923
82924 2000-07-02  Jim Meyering  <meyering@lucent.com>
82925
82926         * lib/quotearg.c (mbstate_t): Don't define here.
82927
82928 2000-07-02  Jim Meyering  <meyering@lucent.com>
82929
82930         * lib/nanosleep.c (SIGCONT): Define if not already defined.
82931
82932 2000-07-01  Jim Meyering  <meyering@lucent.com>
82933
82934         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
82935
82936 2000-07-01  Jim Meyering  <meyering@lucent.com>
82937
82938         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
82939         problem.
82940
82941 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
82942
82943         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
82944         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
82945
82946 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
82947
82948         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
82949         per change in ../m4/ls-mntd-fs.m4.
82950         (read_filesystem_list): Ignore symbolic links.
82951
82952 2000-06-29  Jim Meyering  <meyering@lucent.com>
82953
82954         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
82955         for declaration of strcmp.
82956
82957         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
82958
82959         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
82960         Avoid warning by casting result to `char *' to remove `const'.
82961
82962 2000-06-28  Jim Meyering  <meyering@lucent.com>
82963
82964         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
82965         included by quotearg.c, for which we perform this test.  From
82966         Bruno Haible.
82967
82968 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
82969
82970         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
82971         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
82972         <utmpx.h> exists, put readutmp.o into LIBOBJS.
82973
82974 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
82975
82976         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
82977
82978 2000-06-26  Paul Eggert  <eggert@twinsun.com>
82979
82980         savedir now sets errno on failure and invokes xmalloc to get memory.
82981         Fix a couple of other minor bugs while we're at it.
82982
82983         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
82984         (NAMLEN): Remove macro.
82985         (malloc, realloc): Remove decls.
82986         (stpcpy): Likewise.
82987         ("xalloc.h"): Include.
82988         (NAME_SIZE_DEFAULT): New macro.
82989         (savedir): Use xmalloc / xrealloc to allocate memory.
82990         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
82991         Skip "" directory entries.
82992         Use strlen to calculate directory entry length, since the old method
82993         is rarely used these days and isn't worth supporting.
82994         Don't use a pointer after freeing it.
82995         Check for integer overflow when calculating allocation size.
82996         Use memcpy to copy entries, instead of stpcpy.
82997         Set errno properly when returning NULL.
82998         Check for readdir error.
82999
83000 2000-06-26  Jim Meyering  <meyering@lucent.com>
83001
83002         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
83003
83004 2000-06-25  Jim Meyering  <meyering@lucent.com>
83005
83006         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
83007         Linux header bug when _XOPEN_SOURCE is defined to 500.
83008
83009 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
83010
83011         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
83012         deficiency.
83013
83014 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
83015
83016         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
83017         Include xalloc.h.
83018         Don't include <stdlib.h>.  Don't declare malloc, realloc.
83019
83020 2000-06-24  Jim Meyering  <meyering@lucent.com>
83021
83022         * m4/strerror_r.m4: Revive this file -- to try out an experimental
83023         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
83024         for which strerror does return char*, but which lacks a conveniently
83025         accessible declaration of the function.  If the compile-test says
83026         strerror_r doesn't work, then resort to a `run'-test that works on
83027         BeOS and segfaults on DEC Unix.
83028
83029 2000-06-24  Jim Meyering  <meyering@lucent.com>
83030
83031         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
83032
83033 2000-06-23  Paul Eggert  <eggert@twinsun.com>
83034
83035         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
83036         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
83037
83038 2000-06-23  Paul Eggert  <eggert@twinsun.com>
83039
83040         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
83041         (mbrtowc, mbstate_t): Define substitutes if
83042         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
83043         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
83044         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
83045
83046 2000-06-23  Jim Meyering  <meyering@lucent.com>
83047
83048         * m4/afs.m4: Add missing AC_MSG_RESULT.
83049         Reported by Bruno Haible.
83050
83051         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
83052         Suggestion from Bruno Haible.
83053
83054 2000-06-23  Jim Meyering  <meyering@lucent.com>
83055
83056         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
83057
83058 2000-06-21  Jim Meyering  <meyering@lucent.com>
83059
83060         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
83061
83062 2000-06-21  Jim Meyering  <meyering@lucent.com>
83063
83064         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
83065         (noinst_HEADERS): Add getstr.h.
83066
83067         * lib/getline.c (getstr): Move into a separate file.
83068         * lib/getstr.c (getstr): New file, extracted from getline.c, with
83069         the following changes: new parameter, delim2; both delim[12]
83070         parameters have type `int', not `char'.  The latter would lose
83071         with 8-bit delimiters.
83072         * lib/getstr.h: New file.
83073
83074 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
83075
83076         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
83077         than 1024, return a memory chunk of least possible size, instead
83078         of size PATH_MAX + 2. In the loop, increment the size proportionally.
83079         Use free/xmalloc instead of xrealloc to avoid copying for very long
83080         paths.
83081
83082 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
83083
83084         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
83085         the empty string.
83086
83087 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
83088
83089         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
83090         address, not strdup.  Include <stdlib.h> and don't declare free().
83091
83092 2000-06-19  Jim Meyering  <meyering@lucent.com>
83093
83094         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
83095
83096 2000-06-18  Jim Meyering  <meyering@lucent.com>
83097
83098         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
83099
83100         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
83101         `checking whether...' message to be consistent with that of the
83102         lstat test.
83103
83104 2000-06-18  Jim Meyering  <meyering@lucent.com>
83105
83106         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
83107         Besides, these days every porting target provides a mkdir function.
83108
83109         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
83110         needed. (this snippet comes from src/system.h).
83111
83112 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
83113
83114         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
83115
83116 2000-06-15  Paul Eggert  <eggert@twinsun.com>
83117
83118         * lib/human.c (adjust_value): New function.
83119         (human_readable_inexact): Apply rounding style even when
83120         printing approximate values.
83121
83122 2000-06-14  Paul Eggert  <eggert@twinsun.com>
83123
83124         * lib/human.c (human_readable_inexact): Allow an input block
83125         size that is not a multiple of the output block size, and vice versa.
83126         Reported by Piergiorgio Sartor.
83127
83128 2000-06-14  Paul Eggert  <eggert@twinsun.com>
83129
83130         * lib/getdate.y (get_date): Apply relative times after time
83131         zone indicator, not before.  Reported by Todd A. Jacobs.
83132
83133 2000-06-13  Jim Meyering  <meyering@lucent.com>
83134
83135         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
83136
83137         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
83138
83139 2000-06-12  Paul Eggert  <eggert@twinsun.com>
83140
83141         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
83142
83143 2000-06-12  Jim Meyering  <meyering@lucent.com>
83144
83145         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
83146         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
83147         optional argument.
83148         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
83149         the optional argument, `lib'.
83150
83151 2000-06-08  Jim Meyering  <meyering@lucent.com>
83152
83153         * m4/largefile.m4: Remove file (now that it's part of autoconf).
83154
83155 2000-06-04  Paul Eggert  <eggert@twinsun.com>
83156
83157         Rewrite largefile configuration so that we don't need to run
83158         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
83159         AC_CANONICAL_HOST in configure.in -- jmm]
83160
83161         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
83162         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
83163         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
83164         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
83165         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
83166         All uses changed.
83167         Instead of inspecting the output of getconf, try to compile the
83168         test program without and with the macro definition.
83169         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
83170         for getconf.  Instead, check for the needed flags by compiling
83171         test programs.
83172
83173 2000-06-04  Paul Eggert  <eggert@twinsun.com>
83174
83175         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
83176
83177 2000-06-04  Jim Meyering  <meyering@lucent.com>
83178
83179         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
83180         SunOS 4.1.4 for which gid_t is an unsigned type.
83181
83182 2000-06-03  Jim Meyering  <meyering@lucent.com>
83183
83184         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
83185         now that autoconf requires that.
83186
83187         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
83188         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
83189         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
83190
83191 2000-06-03  Jim Meyering  <meyering@lucent.com>
83192
83193         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
83194
83195 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
83196
83197         * m4/glibc21.m4: New file.
83198         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
83199
83200 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
83201
83202         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
83203         newer, don't install charset.alias.
83204         * lib/config.charset: Change the Linux/glibc rules so they become empty
83205         on glibc-2.1 or newer.
83206
83207 2000-06-02  Jim Meyering  <meyering@lucent.com>
83208
83209         * lib/mountlist.c: Back out last change.  Instead, do this...
83210         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
83211         me_dummy member using the same `ignore'-testing code.
83212         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
83213         fs_type strings.
83214         From Mark D. Roth.
83215
83216 2000-05-29  Jim Meyering  <meyering@lucent.com>
83217
83218         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
83219         mounts with the `ignore' attribute.  Based on a patch from
83220         Mark D. Roth.
83221
83222 2000-05-28  Jim Meyering  <meyering@lucent.com>
83223
83224         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
83225         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
83226         * m4/stat.m4: Likewise.
83227         * m4/lstat.m4: Likewise.
83228         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
83229
83230         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
83231         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
83232
83233 2000-05-26  Jim Meyering  <meyering@lucent.com>
83234
83235         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
83236
83237 2000-05-24  Jim Meyering  <meyering@lucent.com>
83238
83239         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
83240         autoconf requires that.
83241         * m4/lib-check.m4: Likewise.
83242         * m4/jm-macros.m4: Likewise.
83243         * m4/strftime.m4: Likewise.
83244
83245         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
83246         AC_CHECK_DECLS, now that autoconf requires that.
83247
83248 2000-05-22  Jim Meyering  <meyering@lucent.com>
83249
83250         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
83251         * m4/lstat.m4: Likewise.
83252
83253 2000-05-22  Jim Meyering  <meyering@lucent.com>
83254
83255         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
83256
83257 2000-05-20  Jim Meyering  <meyering@lucent.com>
83258
83259         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
83260         (jm_PREREQ): Use it.
83261
83262 2000-05-18  Jim Meyering  <meyering@lucent.com>
83263
83264         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
83265         back, too, since it may have been modified by allocate_entry.
83266         (hash_delete): Rewrite to use neither the assignment operator
83267         nor the comma operator in an if-expression.
83268
83269 2000-05-15  Paul Eggert  <eggert@twinsun.com>
83270
83271         * lib/closeout.c:
83272         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
83273         Remove; no longer needed.
83274         "quotearg.h": Add include.
83275         (file_name): Do not bother to explicitly initialize to NULL; it's less
83276         efficient on some hosts.
83277         (close_stdout_status): Remove test as to whether stdout was already
83278         closed; it breaks for the case "echo x | sort >&-".
83279         Quote file name colons.
83280         Do not assume that _("write error") lacks format strings.
83281
83282 2000-05-15  Jim Meyering  <meyering@lucent.com>
83283
83284         * lib/version-etc.c (version_etc_copyright): Update the copyright
83285         string used in all --version output.
83286
83287 2000-05-14  Jim Meyering  <meyering@lucent.com>
83288
83289         * lib/closeout.c (close_stdout_set_file_name): New function.
83290         (close_stdout_status): Use new file-scoped global.
83291         Return right away if fstat says the stdout file descriptor is invalid.
83292         * lib/closeout.h (close_stdout_set_file_name): Declare.
83293
83294 2000-05-10  Jim Meyering  <meyering@lucent.com>
83295
83296         * lib/closeout.c [default_exit_status]: New file-scoped variable.
83297         (close_stdout_set_status): New function.
83298         * lib/closeout.h (close_stdout_set_status): Declare.
83299
83300 2000-05-09  Jim Meyering  <meyering@lucent.com>
83301
83302         * m4/gettext.m4: Rename this...
83303         * m4/libintl.m4: ...to this.
83304
83305 2000-05-08  Jim Meyering  <meyering@lucent.com>
83306
83307         * lib/long-options.c: Don't include closeout.h.
83308         (parse_long_options): Don't call close_stdout for --version.
83309
83310 2000-05-06  Paul Eggert  <eggert@twinsun.com>
83311
83312         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
83313         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
83314         2.1.3 bug.  This avoids a clash when files like regex.c define
83315         _GNU_SOURCE.
83316
83317 2000-05-06  Jim Meyering  <meyering@lucent.com>
83318
83319         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
83320         (AC_REPLACE_FUNCS): Add strnlen.
83321
83322         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
83323         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
83324
83325         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
83326         AC_SEARCH_LIBS call for nanosleep.
83327         (LIB_NANOSLEEP): Set and AC_SUBST.
83328
83329 2000-05-06  Jim Meyering  <meyering@lucent.com>
83330
83331         * lib/strnlen.c: Undefine __strnlen and strnlen.
83332         [!weak_alias]: Define __strnlen to strnlen.
83333
83334         * lib/atexit.c: New file, from libiberty.
83335
83336 2000-05-06  Jim Meyering  <meyering@lucent.com>
83337
83338         * lib/closeout.c (close_stdout_status): Also check for errors on the
83339         stderr stream.
83340
83341 2000-05-05  Jim Meyering  <meyering@lucent.com>
83342
83343         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
83344         AC_SEARCH_LIBS call for clock_gettime.
83345         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
83346
83347         * m4/search-libs.m4: Update from autoconf.
83348
83349         su doesn't work on Solaris 2.6.
83350         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
83351         <shadow.h>.  Reported by Dragos Harabor.
83352
83353 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
83354
83355         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
83356         memcpy instead of xmalloc, xrealloc, path_concat.
83357         (locale_charset): Treat empty environment variables as absent.
83358         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
83359
83360 2000-05-04  Jim Meyering  <meyering@lucent.com>
83361
83362         * lib/getopt.c: Update from glibc.
83363         * lib/obstack.c: Likewise.
83364         * lib/obstack.h: Likewise.
83365         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
83366         file
83367
83368         * lib/regex.h: Likewise.
83369         * lib/strndup.c: Likewise.
83370         * lib/strnlen.c: New file, from glibc.
83371
83372 2000-05-03  Jim Meyering  <meyering@lucent.com>
83373
83374         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
83375
83376 2000-05-02  Paul Eggert  <eggert@twinsun.com>
83377
83378         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
83379         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
83380         compile-time test, rather than inspecting host and OS, to
83381         decide whether to define _LARGEFILE_SOURCE.
83382
83383 2000-05-01  Jim Meyering  <meyering@lucent.com>
83384
83385         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
83386
83387         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
83388         Based on a patch from Bruno Haible.
83389
83390 2000-05-01  Jim Meyering  <meyering@lucent.com>
83391
83392         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
83393
83394 2000-04-29  Jim Meyering  <meyering@lucent.com>
83395
83396         * lib/path-concat.c: Declare strdup only if it's not defined.
83397         * lib/canon-host.c: Likewise.
83398
83399 2000-04-28  Jim Meyering  <meyering@lucent.com>
83400
83401         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
83402         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
83403         is included first, then limits.h is included by locale.h by libintl.h.
83404         From John David Anglin.
83405
83406 2000-04-25  Jim Meyering  <meyering@lucent.com>
83407
83408         * lib/makepath.c (S_IRWXUGO): Define.
83409         (make_path): Always perform explicit chmod if MODE specifies any
83410         of the `special' permission bits.  Prompted by a bug report against
83411         install from Mate Wierdl and Joost van Baal.
83412
83413 2000-04-18  Jim Meyering  <meyering@lucent.com>
83414
83415         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
83416         (jm_PREREQ): Use it.
83417
83418 2000-04-18  Jim Meyering  <meyering@lucent.com>
83419
83420         * lib/README: New file.
83421
83422         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
83423         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
83424
83425 2000-04-17  Jim Meyering  <meyering@lucent.com>
83426
83427         Get it right :-)
83428         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
83429         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
83430         Suggestion from Akim Demaille.
83431
83432 2000-04-17  Jim Meyering  <meyering@lucent.com>
83433
83434         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
83435         the definition of it to rpl_strftime also defined-away the system's
83436         declaration.
83437
83438 2000-04-15  Jim Meyering  <meyering@lucent.com>
83439
83440         Use `C' to denote so-called `contiguous' files, the same way
83441         that tar does.
83442         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
83443         (ftypelet): Use S_ISCTG.
83444         From Michael Deutschmann.
83445
83446 2000-04-14  Jim Meyering  <meyering@lucent.com>
83447
83448         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
83449         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
83450         clobbered.
83451
83452 2000-04-14  Jim Meyering  <meyering@lucent.com>
83453
83454         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
83455
83456 2000-04-13  Jim Meyering  <meyering@lucent.com>
83457
83458         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
83459         AH_VERBATIM to insert required #ifndef into config.h.in.
83460         Suggestion from Akim Demaille.
83461
83462 2000-04-12  Jim Meyering  <meyering@lucent.com>
83463
83464         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
83465         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
83466         Christian Krackowizer.
83467
83468         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
83469         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
83470         (AC_SYS_LARGEFILE): Require.
83471         (AM_C_PROTOTYPES): Require.
83472
83473 2000-04-08  Jim Meyering  <meyering@lucent.com>
83474
83475         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
83476         names don't conflict.  Reported by Eli Zaretskii.
83477
83478 2000-04-07  Jim Meyering  <meyering@lucent.com>
83479
83480         * lib/putenv.c: Move inclusion of errno.h so it follows that of
83481         sys/types.h, to work around system header problems on AIX 3.2.5.
83482         From Bruno Haible.
83483
83484 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
83485
83486         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
83487         bug.  Deal with the different error behavior of Irix iconv.
83488
83489 2000-04-05  Paul Eggert  <eggert@twinsun.com>
83490
83491         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
83492         IRIX if the installer said otherwise.
83493
83494 2000-04-05  Jim Meyering  <meyering@lucent.com>
83495
83496         Portability tweaks required for ultrix4.3.
83497         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
83498         (jm_CHECK_DECLS): Add getutent to the list of functions.
83499         (_jm_DECL_HEADERS): Add utmpx.h.
83500         From John David Anglin.
83501
83502         * m4/strftime.m4: Back out the 2000-04-02 change.
83503         Instead of that change, simply undefine putenv in the test program.
83504
83505 2000-04-05  Jim Meyering  <meyering@lucent.com>
83506
83507         Portability tweaks required for ultrix4.3.
83508         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
83509         getutent.
83510         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
83511         * lib/canon-host.c: Declare strdup.
83512         * lib/path-concat.c: Likewise.
83513         From John David Anglin.
83514
83515 2000-04-04  Jim Meyering  <meyering@lucent.com>
83516
83517         Be more DOS 8.3-friendly.
83518         * lib/ref-add.sin: Renamed from ref-add.sed.in.
83519         * lib/ref-del.sin: Renamed from ref-del.sed.in.
83520         * lib/Makefile.am: Reflect renaming.
83521         Reported by Eli Zaretskii.
83522
83523         Use a temporary file name that won't clash with `charset.alias'
83524         in the DOS 8.3 name space.
83525         * lib/Makefile.am (charset_tmp): Define.
83526         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
83527         (uninstall-local): Likewise.
83528         Reported by Eli Zaretskii.
83529
83530 2000-04-03  Jim Meyering  <meyering@lucent.com>
83531
83532         * m4/gettext.m4: Fix typo in comment.
83533
83534         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
83535         textutils/configure.in).  Suggestion from Paul Eggert.
83536         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
83537
83538 2000-04-02  Paul Eggert  <eggert@twinsun.com>
83539
83540         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
83541         variable in the shell rather than using putenv, which isn't
83542         portable.  This avoids the configure-time inter-test dependency
83543         on the potentially-renamed putenv function.
83544
83545 2000-03-30  Paul Eggert  <eggert@twinsun.com>
83546
83547         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
83548         before checking struct stat.st_blksize, so that
83549         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
83550
83551 2000-03-29  Paul Eggert  <eggert@twinsun.com>
83552
83553         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
83554         since strftime.c uses HAVE_STRFTIME to decide whether to use
83555         the underlying strftime.
83556
83557 2000-03-29  Paul Eggert  <eggert@twinsun.com>
83558
83559         * lib/time/strftime.c (my_strftime): Make sure we call the system
83560         strftime, not ourselves, when invoking the underlying strftime.
83561
83562 2000-03-24  Jim Meyering  <meyering@lucent.com>
83563
83564         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
83565         (charset_alias): Define.
83566         (install-exec-local): Factor out common code.
83567         (uninstall-local): Split lines longer than 80.
83568         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
83569         (SUFFIXES): Define.
83570         (.sed.in.sed): New rule.  Don't redirect directly to $@.
83571         (CLEANFILES): Add ref-add.sed and ref-del.sed.
83572
83573 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
83574
83575         * lib/config.charset: Output a line containing "Packages using this
83576         file".
83577         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
83578         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
83579         ref-del.sed): New rules.
83580
83581 2000-03-17  Jim Meyering  <meyering@lucent.com>
83582
83583         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
83584         Otherwise, include <strings.h>
83585
83586 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
83587
83588         * lib/unicodeio.c (utf8_wctomb): New function.
83589         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
83590         format instead of in UCS-4 with platform dependent endianness.
83591
83592 2000-03-10  Jim Meyering  <meyering@lucent.com>
83593
83594         * m4/lib-check.m4: Look for getspnam in -lgen, too.
83595         From Marco Franzen.
83596
83597 2000-03-07  Paul Eggert  <eggert@twinsun.com>
83598
83599         * lib/savedir.c (savedir): Work even if directory size is
83600         negative; this can happen with some screwy NFS configurations.
83601
83602 2000-03-06  Jim Meyering  <meyering@lucent.com>
83603
83604         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
83605         if it's NULL (because we ran out of memory).  From Bruno Haible.
83606
83607 2000-03-05  Jim Meyering  <meyering@lucent.com>
83608
83609         * lib/localcharset.c ("path-concat.h"): Include.
83610         (get_charset_aliases): Use path_concat instead of ANSI string
83611         concatenation.
83612
83613         * lib/unicodeio.h (PARAMS): Define.
83614         Use it to guard prototype.
83615
83616 2000-03-04  Jim Meyering  <meyering@lucent.com>
83617
83618         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
83619         for lib/localcharset.c.
83620
83621 2000-03-04  Jim Meyering  <meyering@lucent.com>
83622
83623         * lib/Makefile.am (install-exec-local): Create $(libdir) before
83624         installing into it.
83625         (uninstall-local): Uncomment this rule so `make distcheck' works
83626         once again.
83627
83628         * lib/unicodeio.c (<errno.h>): Include it.
83629         (errno): Declare if not defined.
83630
83631         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
83632
83633         * lib/config.charset: New version, incorporating remarks from a linux
83634         i18n mailing list.  From Bruno Haible.
83635
83636 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
83637
83638         * m4/codeset.m4: New file.
83639         * m4/iconv.m4: New file.
83640         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
83641
83642 2000-03-03  Jim Meyering  <meyering@lucent.com>
83643
83644         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
83645
83646 2000-03-02  Jim Meyering  <meyering@lucent.com>
83647
83648         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
83649         the messages come out on separate lines.
83650
83651         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
83652         rather than jm_CHECK_DECLARATIONS.
83653         * m4/decl.m4: Remove now-unused file.
83654
83655         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
83656         geteuid.
83657
83658 2000-03-02  Jim Meyering  <meyering@lucent.com>
83659
83660         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
83661
83662 2000-03-01  Jim Meyering  <meyering@lucent.com>
83663
83664         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
83665         * lib/unicodeio.c: Likewise.
83666
83667 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
83668
83669         * lib/config.charset: New file.
83670         * lib/localcharset.c: New file.
83671         * lib/unicodeio.h, lib/unicodeio.c: New files.
83672         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
83673         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
83674         (noinst_HEADERS): Add unicodeio.h.
83675         (all-local, install-exec-local, charset.alias): New targets.
83676
83677 2000-02-28  Paul Eggert  <eggert@twinsun.com>
83678
83679         * lib/quotearg.c (ALERT_CHAR): New macro.
83680         (quotearg_buffer_restyled): Use it.
83681
83682 2000-02-27  Jim Meyering  <meyering@lucent.com>
83683
83684         * m4/check-decl.m4: Add getenv to the list.
83685
83686 2000-02-27  Jim Meyering  <meyering@lucent.com>
83687
83688         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
83689         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
83690
83691         * lib/backupfile.c: Guard inclusion of stdlib.h with
83692         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
83693         Declare malloc if needed.
83694
83695         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
83696         `#ifndef HAVE_DECL..'
83697         now that autoconf always defines the HAVE_DECL_ symbols.
83698         * lib/human.c: Likewise.
83699         * lib/same.c: Likewise.
83700         * lib/strtoumax.c: Likewise.
83701
83702         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
83703         declaration check was not run.
83704         * lib/hash.c: Likewise.
83705         * lib/human.c: Likewise.
83706         * lib/same.c: Likewise.
83707         * lib/strtoumax.c: Likewise.
83708
83709         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
83710         `.', then first look up the entire `.'-containing string as a login
83711         name.
83712
83713 2000-02-23  Jim Meyering  <meyering@lucent.com>
83714
83715         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
83716         in place of my hack.
83717
83718 2000-02-18  Paul Eggert  <eggert@twinsun.com>
83719
83720         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
83721         (textint): New typedef.
83722         (parser_control): Member year changed from int to textint.
83723         All uses changed.
83724         (YYSTYPE): Removed; replaced by %union with int and textint members.
83725         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
83726         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
83727         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
83728         (tSNUMBER, tUNUMBER): Now of type <textintval>.
83729         (date, number, to_year): Use width of number in digits, not its value,
83730         to determine whether it's a 2-digit year, or a 2-digit time.
83731         (yylex): Store number of digits of numeric tokens.
83732         Reported by John Kendall.
83733
83734         (parser_control): Changed from struct parser_control to typedef (for
83735         consistency).  All uses changed.
83736
83737         (tID): Removed; not used.
83738         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
83739
83740 2000-02-14  Paul Eggert  <eggert@twinsun.com>
83741
83742         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
83743         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
83744
83745 2000-02-12  Jim Meyering  <meyering@lucent.com>
83746
83747         * lib/userspec.c (ISDIGIT): Define it.
83748         (isdigit): Remove definition.
83749         (is_number): Use ISDIGIT, not isdigit.
83750         <libintl.h>: Include.
83751         (_ and N_): Define.
83752         (parse_user_spec): Mark translatable strings.
83753
83754 2000-02-10  Jim Meyering  <meyering@lucent.com>
83755
83756         With these changes, nanosleep.[ch] are finally enough like the other
83757         lib/* replacement files to compile on a few more losing systems.
83758
83759         * lib/nanosleep.h: Don't include config.h.
83760         Remove prototype from declaration of nanosleep.
83761         (PARAMS): Remove now-unneeded definition.
83762         * lib/nanosleep.c: #undef nanosleep.
83763         (rpl_nanosleep): Rename from nanosleep.
83764
83765 2000-02-10  Jim Meyering  <meyering@lucent.com>
83766
83767         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
83768         gnu_nanosleep to rpl_nanosleep.
83769
83770 2000-02-09  Jim Meyering  <meyering@lucent.com>
83771
83772         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
83773         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
83774
83775 2000-02-08  Akim Demaille  <akim@epita.fr>
83776
83777         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
83778         `[' and `]' and remove uses of `changequote'.
83779         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
83780         (AC_SYS_LARGEFILE): Likewise.
83781         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
83782         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
83783         of changequote.
83784         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
83785         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
83786         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
83787         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
83788
83789 2000-02-05  Jim Meyering  <meyering@lucent.com>
83790
83791         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
83792         Remove explicit use of AC_HEADER_TIME.  It is required by
83793         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
83794         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
83795         in autoconf whereby the expansion of the latter ended up preceding
83796         the expansion of its prerequisite, AC_HEADER_TIME.
83797         Reported by Volker Borchert.
83798
83799 2000-02-03  Jim Meyering  <meyering@lucent.com>
83800
83801         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
83802
83803 2000-02-03  Jim Meyering  <meyering@lucent.com>
83804
83805         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
83806         rather than with `#if HAVE_UTMPNAME'.
83807
83808 2000-02-02  Jim Meyering  <meyering@lucent.com>
83809
83810         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
83811         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
83812         Reported by Eli Zaretskii.
83813
83814 2000-02-01  Jim Meyering  <meyering@lucent.com>
83815
83816         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
83817
83818 2000-01-31  Jim Meyering  <meyering@lucent.com>
83819
83820         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
83821         functions.  Add the time.h and sys/time.h headers along with the
83822         AC_REQUIRE'ment of AC_HEADER_TIME.
83823
83824 2000-01-31  Jim Meyering  <meyering@lucent.com>
83825
83826         * lib/nanosleep.h (nanosleep): Guard declaration with
83827         `#if ! HAVE_DECL_NANOSLEEP'.
83828         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
83829         the declaration in that vendor's sys/timers.h.
83830         Reported by Christian Krackowizer.
83831
83832         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
83833         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
83834         (ISPRINT): Likewise.
83835         Reported by Tom Tromey.
83836
83837 2000-01-30  Jim Meyering  <meyering@lucent.com>
83838
83839         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
83840
83841         * m4/prereq.m4 (utmp_includes): Define.
83842         Check for ut_user and ut_name members in both struct utmpx
83843         and struct utmp.
83844
83845 2000-01-30  Jim Meyering  <meyering@lucent.com>
83846
83847         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
83848         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
83849         header files where only utmpx.ut_user is declared.
83850
83851         * lib/readutmp.h (UT_USER): Define.
83852
83853 2000-01-29  Jim Meyering  <meyering@lucent.com>
83854
83855         * m4/lib-check.m4: New file containing library-related checks from
83856         fileutils and sh-utils (textutils had none).
83857
83858 2000-01-28  Jim Meyering  <meyering@lucent.com>
83859
83860         * m4/perl.m4: Change format of warning message to look more like that
83861         from the missing script.  Suggestion from François Pinard.
83862
83863 2000-01-25  Jim Meyering  <meyering@lucent.com>
83864
83865         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
83866         well as time.h in the compile check.
83867         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
83868         Fix typo in cross-compiling case: s/yes/no/.
83869
83870 2000-01-23  Jim Meyering  <meyering@lucent.com>
83871
83872         * m4/jm-macros.m4: Move df-related tests here from
83873         fileutils/configure.in
83874
83875         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
83876         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
83877
83878         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
83879         s/space/ac_fsusage_space/.
83880         (jm_FILE_SYSTEM_USAGE): Take two parameters.
83881
83882         * m4/ftruncate.m4: New file (derived from part of
83883         fileutils/configure.in).
83884         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
83885         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
83886
83887         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
83888         AC_SUBST these here, rather than just in sh-util/configure.in, so
83889         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
83890         all the same.
83891         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
83892         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
83893         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
83894         (AC_SUBST(POW_LIBM)): Likewise.
83895         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
83896
83897 2000-01-23  Jim Meyering  <meyering@lucent.com>
83898
83899         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
83900         obstack.c.
83901
83902 2000-01-22  Jim Meyering  <meyering@lucent.com>
83903
83904         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
83905
83906         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
83907
83908         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
83909         configure.in
83910         (AC_CHECK_HEADERS): Likewise for sh-utils.
83911         (AC_CHECK_HEADERS): Likewise for textutils.
83912         Merge the three lists of headers.
83913
83914         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
83915         from fileutils' configure.in.
83916
83917         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
83918         code. Moved tests into their own function (_jm_DECL_HEADERS) in
83919         check-decl.m4.
83920
83921         * m4/check-decl.m4: Use #if rather than #ifdef.
83922         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
83923         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
83924         (_jm_DECL_HEADERS): Define new function.
83925         (jm_CHECK_DECLARATIONS): Require it.
83926
83927 2000-01-22  Jim Meyering  <meyering@lucent.com>
83928
83929         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
83930         [! HAVE_DECL_STRTOULL]: Declare strtoull.
83931         Required for some AIX systems.  Reported by Christian Krackowizer.
83932         [TESTING] (main): New function.
83933
83934         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
83935         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
83936         letters.
83937
83938         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
83939         iswprint.
83940
83941         * lib/strverscmp.c (ISDIGIT): Define.
83942         (strverscmp): Use ISDIGIT, not isdigit.
83943
83944 2000-01-19  Jim Meyering  <meyering@lucent.com>
83945
83946         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
83947         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
83948         defines `struct timespec' in <sys/time.h>
83949
83950         * m4/c-bs-a.m4: Remove uses of changequote altogether.
83951         Thanks to Akim for explaining.
83952
83953 2000-01-17  Paul Eggert  <eggert@twinsun.com>
83954
83955         * lib/nanosleep.c (nanosleep):
83956         Don't use SA_INTERRUPT to decide whether to call sigaction, as
83957         POSIX.1 doesn't require SA_INTERRUPT and some systems
83958         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
83959         it's been part of POSIX.1 since day 1 (in 1988).
83960
83961 2000-01-17  Jim Meyering  <meyering@lucent.com>
83962
83963         * lib/interlock: Remove unused file.  Reported by François Pinard.
83964
83965 2000-01-16  Paul Eggert  <eggert@twinsun.com>
83966
83967         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
83968         alert, backslash, formfeed, and vertical tab unnecessarily in
83969         shell quoting style.
83970
83971 2000-01-16  Jim Meyering  <meyering@lucent.com>
83972
83973         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
83974         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
83975         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
83976         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
83977
83978 2000-01-16  Jim Meyering  <meyering@lucent.com>
83979
83980         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
83981         because the latter didn't work.
83982
83983 2000-01-15  Jim Meyering  <meyering@lucent.com>
83984
83985         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
83986         (AC_REPLACE_FUNCS): Add memcpy and memset.
83987         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
83988         Add strpbrk.
83989         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
83990
83991 2000-01-12  Jim Meyering  <meyering@lucent.com>
83992
83993         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
83994         (jm_PREREQ): Use it.
83995         (jm_PREREQ_READUTMP): New macro.
83996         (jm_PREREQ): Use it.
83997
83998 2000-01-11  Paul Eggert  <eggert@twinsun.com>
83999
84000         Quote multibyte characters correctly.
84001         * m4/c-bs-a.m4: New file.
84002         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
84003         (jm_PREREQ): Use it.
84004
84005 2000-01-11  Paul Eggert  <eggert@twinsun.com>
84006
84007         * m4/uintmax_t.m4: Port to autoconf 2.13.
84008
84009 2000-01-08  Jim Meyering  <meyering@ascend.com>
84010
84011         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
84012         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
84013
84014 2000-01-04  Jim Meyering  <meyering@ascend.com>
84015
84016         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
84017         jm_STRUCT_DIRENT_D_TYPE.
84018         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
84019         jm_STRUCT_DIRENT_D_INO.
84020         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
84021         jm_STRUCT_UTIMBUF.
84022         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
84023         renamings.
84024         * m4/utime.m4: Likewise.
84025
84026         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
84027         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
84028
84029 2000-01-03  Paul Eggert  <eggert@twinsun.com>
84030
84031         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
84032         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
84033
84034 2000-01-02  Jim Meyering  <meyering@ascend.com>
84035
84036         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
84037         remember if this is necessary.
84038
84039 1999-12-26  Jim Meyering  <meyering@ascend.com>
84040
84041         * m4/jm-macros.m4: Use it here.
84042         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
84043
84044 1999-12-23  Jim Meyering  <meyering@ascend.com>
84045
84046         * m4/jm-macros.m4: Check for clock_gettime (moved from
84047         fileutils/configure.in)
84048         Check for gettimeofday.
84049
84050 1999-12-20  Jim Meyering  <meyering@ascend.com>
84051
84052         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
84053         autoconf-2.14a-1999-12-20.
84054
84055 1999-12-19  Jim Meyering  <meyering@ascend.com>
84056
84057         * m4/lstat-slash.m4: New file.
84058         * m4/jm-macros.m4: Use the new macro:
84059         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
84060
84061 1999-12-07  Jim Meyering  <meyering@ascend.com>
84062
84063         * m4/perl.m4: Require that File::Compare be available, too.
84064         Too many systems seem to lack it.
84065
84066         * m4/strftime.m4: Add checks for most of the cpp macros tested in
84067         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
84068
84069 1999-11-18  Paul Eggert  <eggert@twinsun.com>
84070
84071         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
84072         problem with the QNX 4.25 shell, which doesn't propagate exit
84073         status of failed commands inside shell assignments.
84074
84075 1999-11-17  Jim Meyering  <meyering@ascend.com>
84076
84077         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
84078
84079 1999-11-07  Jim Meyering  <meyering@ascend.com>
84080
84081         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
84082
84083 1999-11-06  Jim Meyering  <meyering@ascend.com>
84084
84085         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
84086         * m4/jm-macros.m4 (jm_MACROS): Use it here.
84087
84088 1999-11-05  Jim Meyering  <meyering@ascend.com>
84089
84090         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
84091         configure.in of textutils, fileutils, and sh-utils into this one
84092         (shared between those packages) file.
84093         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
84094         AC_STRUCT_ST_BLKSIZE.
84095
84096 1999-11-03  Jim Meyering  <meyering@ascend.com>
84097
84098         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
84099         of AC_CHECK_TYPE checks includes unistd.h.
84100         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
84101         Suggestion from Akim Demaille.
84102
84103 1999-10-30  Jim Meyering  <meyering@ascend.com>
84104
84105         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
84106         m4-quoted string.
84107         * m4/ls-mntd-fs.m4: Likewise.
84108         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
84109         * m4/jm-winsz1.m4: Likewise.
84110
84111         * m4/const.m4: Remove file, since the fix made it into the experimental
84112         version of autoconf.
84113         * m4/mktime.m4: Likewise.
84114
84115         * m4/check-type.m4: Remove file, now that the latest version of
84116         AC_CHECK_TYPE takes a third arg to specify additional #includes.
84117
84118         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
84119         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
84120         AC_CHECK_TYPE.
84121
84122 1999-10-04  Jim Meyering  <meyering@ascend.com>
84123
84124         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
84125
84126 1999-09-22  Paul Eggert  <eggert@twinsun.com>
84127
84128         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
84129         2.95.1 bug with HP-UX 10.20.
84130
84131 1999-09-17  Jim Meyering  <meyering@ascend.com>
84132
84133         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
84134         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
84135         due to missing strdup (against sh-utils-2.0).
84136
84137 1999-08-29  Jim Meyering  <meyering@ascend.com>
84138
84139         * m4/jm-macros.m4: Require jm_BISON.
84140         * m4/bison.m4: New file.
84141
84142 1999-08-17  Paul Eggert  <eggert@twinsun.com>
84143
84144         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
84145         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
84146
84147 1999-08-05  Jim Meyering  <meyering@ascend.com>
84148
84149         * m4/getline.m4: Rename test file from conftestdata to conftest.data
84150         to avoid conflicts with `conftest' on 8+3 filesystems.
84151         Suggestion from Eli Zaretskii.
84152
84153 1999-08-04  Jim Meyering  <meyering@ascend.com>
84154
84155         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
84156         fileutils and sh-utils (textutils's getline test was inadequate).
84157         (AM_FUNC_GETLINE): Run this test.
84158         (AC_CHECK_FUNCS): Check for getdelim.
84159         Reported by Bob Proulx.
84160
84161 1999-08-02  Jim Meyering  <meyering@ascend.com>
84162
84163         * m4/jm-macros.m4: Add a comment.
84164
84165 1999-08-01  Paul Eggert  <eggert@twinsun.com>
84166
84167         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
84168         <inttypes.h> defines strtoumax as a macro (and not as a
84169         function).
84170
84171 1999-08-01  Paul Eggert  <eggert@twinsun.com>
84172
84173         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
84174         that we can shift, multiply and divide unsigned long long
84175         values; Ultrix cc can't do it.
84176
84177 1999-08-01  Paul Eggert  <eggert@twinsun.com>
84178
84179         * m4/mktime.m4: New file, which is a preview of what should appear
84180         in the next public autoconf release.
84181
84182 1999-08-01  Paul Eggert  <eggert@twinsun.com>
84183
84184         * m4/lfs.m4: Remove this file.
84185         * m4/largefile.m4: New file.  It contains the old contents of
84186         lfs.m4, except that all names with prefix AC_LFS have been
84187         changed to use the prefix AC_SYS_LARGEFILE instead, to be
84188         compatible with future autoconf versions.  Also, some minor m4
84189         quoting problems have been fixed.
84190
84191 1999-08-01  Paul Eggert  <eggert@twinsun.com>
84192
84193         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
84194         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
84195         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
84196         and simplify the shell code.
84197
84198 1999-08-01  Jim Meyering  <meyering@ascend.com>
84199
84200         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
84201         m4.
84202
84203 1999-07-20  Jim Meyering  <meyering@ascend.com>
84204
84205         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
84206
84207 1999-07-15  Jim Meyering  <meyering@ascend.com>
84208
84209         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
84210
84211 1999-05-22  Jim Meyering  <meyering@ascend.com>
84212
84213         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
84214
84215 1999-05-20  Jim Meyering  <meyering@ascend.com>
84216
84217         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
84218         Add a colon after each `then' in case $4 is empty.
84219
84220 1999-05-16  Jim Meyering  <meyering@ascend.com>
84221
84222         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
84223
84224 1999-05-10  Jim Meyering  <meyering@ascend.com>
84225
84226         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
84227
84228         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
84229         AC_FUNC_MKTIME.
84230
84231 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
84232
84233         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
84234
84235 1999-05-04  Paul Eggert  <eggert@twinsun.com>
84236
84237         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
84238         not CPPFLAGS, so that linking works correctly in IRIX.
84239
84240 1999-04-30  Paul Eggert  <eggert@twinsun.com>
84241
84242         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
84243
84244 1999-04-20  Paul Eggert  <eggert@twinsun.com>
84245
84246         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
84247         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
84248         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
84249         jm_AC_TYPE_UNSIGNED_LONG_LONG.
84250         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
84251
84252         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
84253
84254 1999-04-20  Jim Meyering  <meyering@ascend.com>
84255
84256         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
84257         AC_REPLACE xstroull if necessary.  From Paul Eggert.
84258         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
84259
84260 1999-04-18  Jim Meyering  <meyering@ascend.com>
84261
84262         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
84263         * m4/jm-macros.m4: Use it.
84264
84265 1999-04-06  Jim Meyering  <meyering@ascend.com>
84266
84267         * m4/strftime.m4: Remove test for %f.
84268
84269 1999-03-29  Jim Meyering  <meyering@ascend.com>
84270
84271         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
84272         superset of the AC_TYPE_* checks in the textutils, fileutils,
84273         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
84274         AC_TYPE_PID_T.
84275
84276 1999-03-28  Jim Meyering  <meyering@ascend.com>
84277
84278         * m4/jm-macros.m4: Define GNU_PACKAGE here.
84279         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
84280         replaced e.g., in the *.sh files of the sh-utils.
84281
84282 1999-03-20  Jim Meyering  <meyering@ascend.com>
84283
84284         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
84285         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
84286         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
84287
84288 1999-03-19  Jim Meyering  <meyering@ascend.com>
84289
84290         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
84291
84292 1999-03-12  Jim Meyering  <meyering@ascend.com>
84293
84294         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
84295
84296 1999-03-07  Jim Meyering  <meyering@ascend.com>
84297
84298         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
84299         declared.
84300
84301 1999-02-17  Jim Meyering  <meyering@ascend.com>
84302
84303         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
84304         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
84305
84306 1999-02-07  Jim Meyering  <meyering@ascend.com>
84307
84308         * m4/group-member.m4: New file -- extracted from sh-utils'
84309         configure.in.
84310
84311         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
84312         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
84313
84314 1999-02-06  Jim Meyering  <meyering@ascend.com>
84315
84316         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
84317         * m4/fnmatch.m4: Likewise.
84318         * m4/getgroups.m4: Likewise.
84319         * m4/lstat.m4: Likewise.
84320         * m4/malloc.m4: Likewise.
84321         * m4/putenv.m4: Likewise.
84322         * m4/realloc.m4: Likewise.
84323         * m4/regex.m4: Likewise.
84324         * m4/stat.m4: Likewise.
84325         * m4/strftime.m4: Likewise.
84326         Suggestion from Alain Magloire.
84327
84328         * m4/chown.m4: Use `.$ac_objext', not `.o'.
84329         * m4/fnmatch.m4: Likewise.
84330         * m4/getgroups.m4: Likewise.
84331         * m4/getline.m4: Likewise.
84332         * m4/lstat.m4: Likewise.
84333         * m4/malloc.m4: Likewise.
84334         * m4/memcmp.m4: Likewise.
84335         * m4/putenv.m4: Likewise.
84336         * m4/realloc.m4: Likewise.
84337         * m4/regex.m4: Likewise.
84338         * m4/stat.m4: Likewise.
84339         * m4/strftime.m4: Likewise.
84340         Suggestion from Alain Magloire.
84341
84342         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
84343         an argument.
84344
84345         * m4/regex.m4: Add a run-time Test for proper operation of
84346         re_compile_pattern.
84347
84348 1999-01-31  Jim Meyering  <meyering@ascend.com>
84349
84350         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
84351
84352 1999-01-30  Jim Meyering  <meyering@ascend.com>
84353
84354         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
84355
84356         * m4/jm-mktime.m4: Make this a wrapper around the official
84357         AM_FUNC_MKTIME rather than my private copy, now that the official one
84358         is up to date.
84359         * m4/mktime.m4: Remove file.
84360
84361         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
84362         * m4/uptime.m4: Likewise.
84363         * m4/uintmax_t.m4: Likewise.
84364
84365 1999-01-28  Jim Meyering  <meyering@ascend.com>
84366
84367         * m4/jm-macros.m4: Use jm_AFS.
84368         * m4/afs.m4: New file (from fileutils' configure.in).
84369
84370         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
84371         * m4/chown.m4: Likewise.
84372         * m4/d-ino.m4: Likewise.
84373         * m4/d-type.m4: Likewise.
84374         * m4/fnmatch.m4: Likewise.
84375         * m4/getgroups.m4: Likewise.
84376         * m4/gettext.m4: Likewise.
84377         * m4/jm-mktime.m4: Likewise.
84378         * m4/jm-winsz2.m4: Likewise.
84379         * m4/lcmessage.m4: Likewise.
84380         * m4/ls-mntd-fs.m4: Likewise.
84381         * m4/malloc.m4: Likewise.
84382         * m4/memcmp.m4: Likewise.
84383         * m4/putenv.m4: Likewise.
84384         * m4/realloc.m4: Likewise.
84385         * m4/st_mtim.m4: Likewise.
84386         * m4/strftime.m4: Likewise.
84387
84388 1999-01-16  Jim Meyering  <meyering@ascend.com>
84389
84390         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
84391         (ARGMATCH_DIE_DECL): Define.
84392
84393 1999-01-12  Jim Meyering  <meyering@ascend.com>
84394
84395         * m4/Makefile.am.in: Rewrite to avoid using fmt.
84396         Reported by Lars Hecking.
84397
84398 1999-01-10  Jim Meyering  <meyering@ascend.com>
84399
84400         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
84401         gross kludge.
84402         * m4/inttypes_h.m4: Likewise.
84403         * m4/lstat.m4: Likewise.
84404         * m4/malloc.m4: Likewise.
84405         * m4/readdir.m4: Likewise.
84406         * m4/realloc.m4: Likewise.
84407         * m4/st_dm_mode.m4: Likewise.
84408         * m4/stat.m4: Likewise.
84409         * m4/utimbuf.m4: Likewise.
84410         * m4/utimes.m4: Likewise.
84411
84412         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
84413         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
84414         comments in config.h.in are meaningful.
84415
84416         * m4/jm-macros.m4: Require autoconf-2.13 here.
84417
84418         * m4/regex.m4: By default, don't use the included regex.c on systems
84419         with glibc 2.  Suggestion from Uli Drepper.
84420
84421 1999-01-02  Jim Meyering  <meyering@ascend.com>
84422
84423         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
84424
84425 1998-12-18  Jim Meyering  <meyering@ascend.com>
84426
84427         * m4/Makefile.am.in (Makefile.am): Simplify rule.
84428         Based on a suggestion from Lars Hecking.
84429
84430 1998-11-16  Paul Eggert  <eggert@twinsun.com>
84431
84432         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
84433
84434 1998-11-16  Jim Meyering  <meyering@ascend.com>
84435
84436         * m4/lfs.m4: Double-quote the `uname...` expression.
84437
84438 1998-11-14  Jim Meyering  <meyering@ascend.com>
84439
84440         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
84441         * m4/stat.m4: Likewise.
84442
84443 1998-11-03  Jim Meyering  <meyering@ascend.com>
84444
84445         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
84446         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
84447
84448 1998-10-18  Jim Meyering  <meyering@ascend.com>
84449
84450         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
84451
84452 1998-10-17  Jim Meyering  <meyering@ascend.com>
84453
84454         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
84455         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
84456         calls for those previously hard-coded headers.  Instead, take a new
84457         parameter.
84458         (jm_CHECK_DECLARATIONS): Reflect interface change.
84459         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
84460         (jm_CHECK_DECL_LOCALTIME_R): New macro.
84461
84462         * m4/mktime.m4: Test for spring-forward gap before long-running test.
84463
84464 1998-10-14  Jim Meyering  <meyering@ascend.com>
84465
84466         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
84467         instead of "TZ=America/Vancouver".  From Paul Eggert.
84468
84469 1998-10-11  Jim Meyering  <meyering@ascend.com>
84470
84471         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
84472         This adds a test for a recently added compatibility fix for mktime.c.
84473         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
84474
84475 1998-09-27  Jim Meyering  <meyering@ascend.com>
84476
84477         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
84478
84479         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
84480         ../configure.in, including a change from Gordon Matzigkeit to allow
84481         cross-compiling for the Hurd.
84482
84483         * m4/glibc.m4: New file/macro to test for the GNU C Library
84484         versions 1 and 2.  From Gordon Matzigkeit.
84485         Indent.
84486
84487 1998-09-21  Jim Meyering  <meyering@ascend.com>
84488
84489         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
84490
84491 1998-08-18  Paul Eggert  <eggert@twinsun.com>
84492
84493         Port nanosecond-resolution times to UnixWare 2.1.2 and
84494         pedantic Solaris 2.6.
84495
84496         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
84497         AC_STRUCT_ST_MTIM.
84498         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
84499         Generate name of ns member, instead of just 1 or undef.
84500         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
84501
84502 1998-08-15  Jim Meyering  <meyering@ascend.com>
84503
84504         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
84505         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
84506         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
84507         instead of jm_TYPE_SSIZE_T.
84508
84509 1998-08-12  Jim Meyering  <meyering@ascend.com>
84510
84511         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
84512
84513 1998-08-02  Jim Meyering  <meyering@ascend.com>
84514
84515         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
84516         in acconfig.h manually.
84517
84518 1998-07-31  Paul Eggert  <eggert@twinsun.com>
84519
84520         * m4/st_mtim.m4: New file.
84521
84522 1998-07-28  Jim Meyering  <meyering@ascend.com>
84523
84524         * m4/utimes.m4: Undef stat.
84525
84526 1998-07-25  Jim Meyering  <meyering@ascend.com>
84527
84528         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
84529         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
84530
84531 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
84532
84533         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
84534         uid and gid actually remain unchanged.
84535
84536 1998-07-07  Jim Meyering  <meyering@ascend.com>
84537
84538         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
84539
84540 1998-07-04  Jim Meyering  <meyering@ascend.com>
84541
84542         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
84543         to prove that this macro can be used in packages without regex.c.
84544
84545 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
84546
84547         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
84548         is to be used.
84549
84550 1998-07-03  Jim Meyering  <meyering@ascend.com>
84551
84552         * m4/gettext.m4: Add -lintl if it's found to be necessary.
84553
84554         * m4/gettext.m4: New file -- from gettext-0.10.35.
84555         * m4/lcmessage.m4: Likewise.
84556         * m4/progtest.m4: Likewise.
84557
84558         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
84559         * m4/jm-macros.m4: Require the new macro.
84560
84561 1998-06-29  Jim Meyering  <meyering@ascend.com>
84562
84563         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
84564         for the definition of NGROUPS (used in a system header included
84565         by sys/mount.h).
84566
84567 1998-06-28  Jim Meyering  <meyering@ascend.com>
84568
84569         * m4/ls-mntd-fs.m4: New file.
84570         * m4/fstypename.m4: New file.
84571
84572         * m4/jm-macros.m4: Require the new macro.
84573         * m4/jm-glibc-io.m4: New file.
84574
84575 1998-05-19  Jim Meyering  <meyering@ascend.com>
84576
84577         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
84578         * m4/lchown.m4: New file.
84579
84580         * m4/Makefile.am.in: New file.
84581         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
84582
84583 1998-05-14  Jim Meyering  <meyering@ascend.com>
84584
84585         * m4/Makefile.am (EXTRA_DIST): Add them.
84586         * m4/jm-macros.m4: New file.
84587         * m4/utimbuf.m4: New file.
84588
84589 1998-05-12  Jim Meyering  <meyering@ascend.com>
84590
84591         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
84592
84593 1998-05-11  Jim Meyering  <meyering@ascend.com>
84594
84595         * m4/isc-posix.m4: New file.
84596
84597 1998-05-10  Jim Meyering  <meyering@ascend.com>
84598
84599         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
84600
84601 1998-05-09  Jim Meyering  <meyering@ascend.com>
84602
84603         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
84604         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
84605         with automake.
84606
84607         * m4/ssize_t.m4: New file.
84608         * m4/mktime.m4: Remove file -- the new automake has this now.
84609
84610 1998-04-26  Jim Meyering  <meyering@ascend.com>
84611
84612         * m4/assert.m4: New file.
84613         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
84614
84615 1998-04-05  Jim Meyering  <meyering@ascend.com>
84616
84617         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
84618         (jm_PREREQ): Use it here.
84619
84620 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
84621
84622         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
84623         in acconfig.h.
84624
84625 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
84626
84627         * m4/prereq.m4: New file.
84628         * m4/error.m4: New file.
84629         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
84630
84631 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
84632
84633         * m4/getline.m4: Don't set am_cv_func_working_getline before the
84634         cache-check for the same variable -- that defeated the purpose of
84635         the test; the test program was never run.  This was a problem only
84636         on systems with losing getline functions -- HP-UX 10.20 is one.
84637         Reported by Bjorn Helgaas.
84638
84639 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
84640
84641         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
84642
84643 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
84644
84645         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
84646
84647         * m4/const.m4: New file.  Use an initializer in this declaration
84648         typedef int charset[2]; const charset x;
84649         Reported by Bob Glickstein.
84650
84651 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
84652
84653         * m4/chown.m4: Fix reversed types on -1 args to chown.
84654         From Kaveh Ghazi.
84655
84656 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
84657
84658         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
84659         Add lseek and memchr.
84660
84661         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
84662         T.E.Dickey <dickey@clark.net> said that some older preprocessors
84663         have a 20-character limit on names.
84664
84665 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
84666
84667         * m4/inttypes_h.m4: New file.
84668         * m4/uintmax_t.m4: New file.
84669         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
84670
84671
84672         -----
84673
84674         Local Variables:
84675         coding: utf-8
84676         End:
84677
84678         Copyright (C) 1997-2011 Free Software Foundation, Inc.
84679
84680         Copying and distribution of this file, with or without
84681         modification, are permitted provided the copyright notice
84682         and this notice are preserved.