close: No longer depend on module 'fclose'.
[gnulib.git] / ChangeLog
1 2011-07-24  Bruno Haible  <bruno@clisp.org>
2
3         close: No longer depend on module 'fclose'.
4         * modules/close (Depends-on): Remove fclose.
5         * NEWS: Mention the change.
6
7 2011-07-24  Bruno Haible  <bruno@clisp.org>
8
9         fsusage: Enable large volume support on AIX >= 5.2.
10         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
11         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
12         instead of STAT_STATVFS.
13         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
14
15         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
16         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
17         f_blocks field only on MacOS X.
18
19         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
20         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
21         * modules/fsusage (Depends-on): Add largefile.
22
23 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
24
25         * README: Modernize discussion of signed integers.
26         Assuming overflow wraparound is no longer safe.
27         Mention ones' complement and signed magnitude.
28
29 2011-07-22  Bruno Haible  <bruno@clisp.org>
30
31         select tests, pselect tests: Refactor.
32         * tests/test-select.h: New file, extracted from tests/test-select.c.
33         (select_fn): New type.
34         (test, do_select, do_select_nowait, do_select_wait, test_tty,
35         test_connect_first, test_accept_first, test_pair, test_socket_pair,
36         test_pipe): Add my_select argument.
37         (test_function): Renamed from main. Add my_select argument.
38         * tests/test-select.c: Move most code to tests/test-select.h. Include
39         test-select.h.
40         * modules/select-tests (Files): Add tests/test-select.h.
41         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
42         (my_select, main): New functions.
43         * modules/pselect-tests (Files): Add tests/test-select.h,
44         tests/macros.h, tests/signature.h.
45         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
46         (configure.ac): Check for <sys/wait.h>.
47
48 2011-07-22  Bruno Haible  <bruno@clisp.org>
49
50         sys_select tests: Check the signature of FD_*.
51         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
52         signature tests from here...
53         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
54         here.
55         * modules/sys_select-tests (Files): Add tests/signature.h.
56
57 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
58
59         largefile: new module, replacing large-inode
60         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
61         * MODULES.html.sh: Add largefile, remove large-inode.
62         * modules/largefile, m4/largefile.m4: New files.
63         * modules/large-inode, m4/large-inode.m4: Remove.
64
65         fsusage: port to MacOS X 10.7 with 4 TiB file systems
66         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
67         implementations that use only 32 bits to count blocks.
68         On typical hosts with 1024-byte blocks, this fails with file
69         systems as small as 4 TiB.  Problem reported by Herb Wartens
70         <http://debbugs.gnu.org/9140> and this should also fix a similar
71         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
72
73         large-inode: New module
74         * MODULES.html.sh: Add it.
75         * modules/large-inode, m4/large-inode.m4: New files.
76
77         extensions: Enable extensions on MacOS X 10.5 and later.
78         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
79
80 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
81
82         file-has-acl: use acl_extended_file_nofollow if available
83         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
84         (acl_extended_file): New macro.
85         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
86         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
87
88 2011-07-21  Bruno Haible  <bruno@clisp.org>
89
90         Declare system functions in a way that works with C++.
91         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
92         declare fdopendir as extern "C".
93         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
94         declare frexpl as extern "C".
95         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
96         declare gai_strerror as extern "C".
97         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
98         programs, declare gai_strerror as extern "C".
99         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
100         declare getlogin_r as extern "C".
101         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
102         as extern "C".
103         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
104         declare ldexpl as extern "C".
105         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
106         as extern "C".
107         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
108         program, declare getmntinfo as extern "C".
109         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
110         stpncpy as extern "C".
111         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
112         program, declare __xpg_strerror_r as extern "C".
113         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
114         strndup as extern "C".
115         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
116         declare memset and bzero as extern "C".
117         Reported by Sam Steingold <sds@gnu.org>.
118
119 2011-07-12  Jim Meyering  <meyering@redhat.com>
120
121         maint.mk: prohibit inclusion of "verify.h" without use
122         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
123
124 2011-07-19  Pádraig Brady  <P@draigBrady.com>
125
126         timer-time: A new module to check for timer_settime()
127         * m4/timer_time.m4: Check for the posix function.
128         * modules/timer-time: Add the new module.
129         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
130         Mention it.
131
132 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
133             Bruno Haible  <bruno@clisp.org>
134
135         pthread_sigmask: assume POSIX threads if --avoid=threadlib
136         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
137         not defined, assume POSIX threads and look for pthread_sigmask in
138         $LIBS, without changing $CPPFLAGS.
139
140 2011-07-19  Bruno Haible  <bruno@clisp.org>
141
142         strstr: Update cross-compilation guess.
143         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
144         CPUs, guess no, in view of glibc
145         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
146         Suggested by Eric Blake. Reported by Reuben Thomas.
147
148 2011-07-19  Pádraig Brady  <P@draigBrady.com>
149
150         getopt-gnu: suppress core dumps from detection code
151         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
152         to suppress core dumps that may well occur on glibc systems.
153         * modules/getopt-gnu: Depend on nocrash.
154
155 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
156
157         pthread_sigmask: ensure usleep is declared
158         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
159         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
160
161 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
162
163         doc: Document NonStop portability issues.
164         * doc/posix-functions/sigaction.texi (sigaction):
165         * doc/posix-headers/signal.texi (signal.h):
166         Document NonStop.  See Joachim Schmitz in
167         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
168
169 2011-07-15  Bruno Haible  <bruno@clisp.org>
170
171         ffsl, ffsll: Avoid unportable behaviour.
172         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
173
174 2011-07-15  Bruno Haible  <bruno@clisp.org>
175
176         ffs: More tests.
177         * tests/test-ffs.c (NBITS): New macro.
178         (main): Add more tests.
179         * tests/test-ffsl.c (NBITS): New macro.
180         (main): Add more tests.
181         * tests/test-ffsll.c (NBITS): New macro.
182         (main): Add more tests.
183
184 2011-07-15  Eric Blake  <eblake@redhat.com>
185
186         ffsl, ffsll: new modules
187         * modules/ffsl: New file.
188         * modules/ffsll: Likewise.
189         * m4/ffsl.m4: Likewise.
190         * m4/ffsll.m4: Likewise.
191         * lib/ffsl.c: Likewise.
192         * lib/ffsl.h: Likewise.
193         * lib/ffsll.c: Likewise.
194         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
195         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
196         * modules/string (Makefile.am): Substitute witnesses.
197         * lib/strings.in.h (ffsl, ffsll): Declare.
198         * modules/ffsl-tests: New test file.
199         * modules/ffsll-tests: Likewise.
200         * tests/test-ffsl.c: Likewise.
201         * tests/test-ffsll.c: Likewise.
202         * MODULES.html.sh (Integer arithmetic functions): Mention it.
203         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
204         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
205
206         ffs: fix m4 prerequisite
207         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
208
209         ffs: avoid undefined behavior
210         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
211         * tests/test-ffs.c (naive, main): Avoid signed shifts.
212         Reported by Bruno Haible.
213
214 2011-07-12  Bruno Haible  <bruno@clisp.org>
215
216         pthread_sigmask: Rely on module 'threadlib'.
217         * modules/pthread_sigmask (Depends-on): Add threadlib.
218         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
219         is defined.
220
221 2011-07-12  Bruno Haible  <bruno@clisp.org>
222
223         regex: Depend on module 'strcase'.
224         * modules/regex (Depends-on): Add strcase, for strcasecmp().
225
226 2011-07-12  Jim Meyering  <meyering@redhat.com>
227
228         warn-on-use: fix typo in file name
229         * modules/snippet/warn-on-use (Files): Correct file name:
230         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
231
232 2011-07-12  Bruno Haible  <bruno@clisp.org>
233
234         strings: Document module.
235         * doc/posix-headers/strings.texi: Mention module 'strings'.
236
237 2011-07-12  Bruno Haible  <bruno@clisp.org>
238
239         Rename module '_Noreturn' to 'snippet/_Noreturn'.
240         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
241         (Files, Makefile.am): Update.
242         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
243         * modules/stdlib (Depends-on): Update.
244
245 2011-07-12  Bruno Haible  <bruno@clisp.org>
246
247         * NEWS: Mention the changes.
248
249         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
250         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
251         (Files, Makefile.am): Update.
252         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
253         * modules/arpa_inet (Depends-on): Update.
254         * modules/ctype (Depends-on): Update.
255         * modules/dirent (Depends-on): Update.
256         * modules/fcntl-h (Depends-on): Update.
257         * modules/glob (Depends-on): Update.
258         * modules/iconv-h (Depends-on): Update.
259         * modules/inttypes-incomplete (Depends-on): Update.
260         * modules/langinfo (Depends-on): Update.
261         * modules/locale (Depends-on): Update.
262         * modules/math (Depends-on): Update.
263         * modules/netdb (Depends-on): Update.
264         * modules/poll-h (Depends-on): Update.
265         * modules/pty (Depends-on): Update.
266         * modules/search (Depends-on): Update.
267         * modules/signal (Depends-on): Update.
268         * modules/spawn (Depends-on): Update.
269         * modules/stdio (Depends-on): Update.
270         * modules/stdlib (Depends-on): Update.
271         * modules/string (Depends-on): Update.
272         * modules/strings (Depends-on): Update.
273         * modules/sys_file (Depends-on): Update.
274         * modules/sys_ioctl (Depends-on): Update.
275         * modules/sys_select (Depends-on): Update.
276         * modules/sys_socket (Depends-on): Update.
277         * modules/sys_stat (Depends-on): Update.
278         * modules/sys_time (Depends-on): Update.
279         * modules/sys_times (Depends-on): Update.
280         * modules/sys_utsname (Depends-on): Update.
281         * modules/sys_wait (Depends-on): Update.
282         * modules/termios (Depends-on): Update.
283         * modules/time (Depends-on): Update.
284         * modules/unistd (Depends-on): Update.
285         * modules/wchar (Depends-on): Update.
286         * modules/wctype-h (Depends-on): Update.
287         * MODULES.html.sh (Support for building libraries and executables):
288         Update.
289
290         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
291         * modules/snippet/unused-parameter: Renamed from
292         modules/unused-parameter.
293         (Files, Makefile.am): Update.
294         * build-aux/snippet/unused-parameter.h: Renamed from
295         build-aux/unused-parameter.h.
296         * modules/selinux-h (Depends-on): Update.
297         * modules/unistr/base (Depends-on): Update.
298         * MODULES.html.sh (Core language properties): Update.
299
300         Rename module 'link-warning' to 'snippet/link-warning'.
301         * modules/snippet/link-warning: Renamed from modules/link-warning.
302         (Files, Makefile.am): Update.
303         * build-aux/snippet/link-warning.h: Renamed from
304         build-aux/link-warning.h.
305         * MODULES.html.sh (Support for building libraries and executables):
306         Update.
307
308         Rename module 'c++defs' to 'snippet/c++defs'.
309         * modules/snippet/c++defs: Renamed from modules/c++defs.
310         (Files, Makefile.am): Update.
311         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
312         * modules/arpa_inet (Depends-on): Update.
313         * modules/ctype (Depends-on): Update.
314         * modules/dirent (Depends-on): Update.
315         * modules/fcntl-h (Depends-on): Update.
316         * modules/glob (Depends-on): Update.
317         * modules/iconv-h (Depends-on): Update.
318         * modules/langinfo (Depends-on): Update.
319         * modules/locale (Depends-on): Update.
320         * modules/math (Depends-on): Update.
321         * modules/netdb (Depends-on): Update.
322         * modules/poll-h (Depends-on): Update.
323         * modules/pty (Depends-on): Update.
324         * modules/search (Depends-on): Update.
325         * modules/signal (Depends-on): Update.
326         * modules/spawn (Depends-on): Update.
327         * modules/stdio (Depends-on): Update.
328         * modules/stdlib (Depends-on): Update.
329         * modules/string (Depends-on): Update.
330         * modules/strings (Depends-on): Update.
331         * modules/sys_ioctl (Depends-on): Update.
332         * modules/sys_select (Depends-on): Update.
333         * modules/sys_socket (Depends-on): Update.
334         * modules/sys_stat (Depends-on): Update.
335         * modules/sys_time (Depends-on): Update.
336         * modules/sys_wait (Depends-on): Update.
337         * modules/termios (Depends-on): Update.
338         * modules/time (Depends-on): Update.
339         * modules/unistd (Depends-on): Update.
340         * modules/wchar (Depends-on): Update.
341         * modules/wctype-h (Depends-on): Update.
342
343         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
344         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
345         (Files, Makefile.am): Update.
346         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
347         * modules/argv-iter (Depends-on): Update.
348         * modules/arpa_inet (Depends-on): Update.
349         * modules/dirent (Depends-on): Update.
350         * modules/fcntl-h (Depends-on): Update.
351         * modules/fnmatch (Depends-on): Update.
352         * modules/getopt-posix (Depends-on): Update.
353         * modules/glob (Depends-on): Update.
354         * modules/iconv-h (Depends-on): Update.
355         * modules/inttypes-incomplete (Depends-on): Update.
356         * modules/locale (Depends-on): Update.
357         * modules/math (Depends-on): Update.
358         * modules/netdb (Depends-on): Update.
359         * modules/search (Depends-on): Update.
360         * modules/signal (Depends-on): Update.
361         * modules/spawn (Depends-on): Update.
362         * modules/stdio (Depends-on): Update.
363         * modules/stdlib (Depends-on): Update.
364         * modules/string (Depends-on): Update.
365         * modules/strings (Depends-on): Update.
366         * modules/sys_socket (Depends-on): Update.
367         * modules/sys_stat (Depends-on): Update.
368         * modules/sys_time (Depends-on): Update.
369         * modules/sys_times (Depends-on): Update.
370         * modules/sys_utsname (Depends-on): Update.
371         * modules/time (Depends-on): Update.
372         * modules/unistd (Depends-on): Update.
373         * modules/wchar (Depends-on): Update.
374         * MODULES.html.sh (Support for building libraries and executables):
375         Update.
376
377 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
378
379         Improvements on _Noreturn and related modules.
380
381         modules/_Exit-tests: test _Noreturn too
382         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
383         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
384         (main): Use them.
385
386         stdnoreturn, stdnoreturn-tests: remove modules
387         They're not needed here and a bit premature for use elsewhere.  See
388         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
389         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
390         * tests/test-stdnoreturn.c: Remove files.
391         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
392         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
393         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
394         and using noreturn.
395         * modules/openat, modules/sigpipe-die, modules/xalloc:
396         * modules/xmemdup0, modules/xstrtol:
397         Remove dependency on stdnoreturn.
398
399         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
400         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
401         Reparenthesize to avoid GCC warning.
402         Support Microsoft's syntax.
403         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
404
405         _Noreturn-tests: remove module
406         * modules/_Noreturn-tests: Remove.
407         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
408         * tests/test-_Noreturn.c: Remove.
409         * tests/test-stdnoreturn.c: Merge from the old
410         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
411
412 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
413
414         _Noreturn, stdnoreturn, and related modules.
415
416         * top/maint.mk: Adjust to new noreturn support.
417         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
418         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
419
420         xalloc: use stdnoreturn.h
421         * lib/xalloc.h: Include <stdnoreturn.h>.
422         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
423         * modules/xalloc (Depends-on): Add stdnoreturn.
424
425         xstrtol: use stdnoreturn.h
426         * lib/xstrtol.h: Include <stdnoreturn.h>.
427         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
428         * modules/xstrtol (Depends-on): Add stdnoreturn.
429
430         xmemdup0: use stdnoreturn.h
431         * lib/xmemdup0.h: Include <stdnoreturn.h>.
432         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
433         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
434
435         sigpipe-die: use stdnoreturn.h
436         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
437         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
438         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
439
440         openat: use stdnoreturn.h
441         * lib/openat.h: Include <stdnoreturn.h>.
442         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
443         * modules/openat (Depends-on): Add stdnoreturn.
444
445         * lib/openat-die.c (openat_save_fail): Modernize comment.
446
447         * lib/xalloc-die.c (xalloc_die): Modernize comment.
448
449         * lib/glthread/thread.h: Modernize comment.
450
451         obstack: use _Noreturn
452         * lib/obstack.c (__attribute__): Remove macro.
453         (print_and_abort): Use _Noreturn.
454
455         c-stack: use _Noreturn
456         * lib/c-stack.c (die, overflow_handler, segv_handler):
457         Use _Noreturn rather than __attribute__((noreturn)).
458
459         argmatch-tests, exclude_tests: use _Noreturn
460         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
461         Remove.
462         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
463
464         stdlib: use _Noreturn
465         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
466         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
467         * modules/stdlib (Depends-on): Add _Noreturn.
468         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
469
470         stdnoreturn-tests: new module
471         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
472
473         stdnoreturn: new module
474         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
475         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
476
477         _Noreturn-tests: new module
478         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
479
480         _Noreturn: new module
481         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
482         New section, mentioning it.
483         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
484
485         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
486
487 2011-07-11  Eric Blake  <eblake@redhat.com>
488
489         ffs: new module
490         * modules/ffs: New file.
491         * m4/ffs.m4: Likewise.
492         * lib/ffs.c: Likewise.
493         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
494         * modules/strings (Makefile.am): Substitute witness.
495         (Depends-on): Add c++defs.
496         * lib/strings.in.h (ffs): Declare.
497         * modules/ffs-tests: New test file.
498         * tests/test-ffs.c: Test new module.
499         * MODULES.html.sh (Integer arithmetic functions): Mention it.
500         * doc/posix-functions/ffs.texi (ffs): Likewise.
501
502         regex: avoid compiler warning
503         * lib/regex.c (includes): Include <strings.h>, for use of
504         strcasecmp in regcomp.c.
505         Reported by Joachim Schmitz.
506
507 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
508
509         stdint: respect system's intmax_t if INTMAX_MAX
510         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
511         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
512         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
513         long but int64_t is long long, and where we will clash with the
514         system intmax_t if we override it.  See
515         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
516         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
517         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
518         similarly for UINTMAX_C.
519
520 2011-07-08  Bruno Haible  <bruno@clisp.org>
521
522         pthread_sigmask tests: Avoid a compiler warning.
523         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
524         non-zero.
525
526         sigprocmask tests: A better way to avoid a compiler warning.
527         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
528         (main): Complain if system() returns non-zero.
529         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
530
531 2011-07-08  Bruno Haible  <bruno@clisp.org>
532
533         pthread_sigmask: Work around IRIX bug.
534         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
535         bug.
536         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
537         there may be unblocked pending signals.
538         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
539
540 2011-07-08  Bruno Haible  <bruno@clisp.org>
541
542         pthread_sigmask: Work around Cygwin bug.
543         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
544         bug.
545         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
546         the system's pthread_sigmask function.
547         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
548
549 2011-07-08  Bruno Haible  <bruno@clisp.org>
550
551         pthread_sigmask: Work around bug in single-threaded implementation.
552         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
553         FreeBSD, HP-UX, Solaris bug.
554         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
555         * lib/pthread_sigmask.c: Include <stddef.h>.
556         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
557         the system's pthread_sigmask function.
558         * modules/pthread_sigmask (configure.ac): Invoke
559         gl_PREREQ_PTHREAD_SIGMASK.
560         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
561         HP-UX, Solaris.
562
563 2011-07-08  Eric Blake  <eblake@redhat.com>
564
565         test-sigprocmask: avoid compiler warning
566         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
567         * tests/test-sigprocmask.c (main): Use it to silence warning.
568         Reported by Jim Meyering.
569
570         test-snprintf: avoid compiler warning
571         * tests/test-snprintf.c (main): Avoid shadowed declaration.
572         * tests/test-vsnprintf.c (main): Likewise.
573         Reported by Jim Meyering.
574
575 2011-07-08  Bruno Haible  <bruno@clisp.org>
576
577         Tests for module 'pthread_sigmask'.
578         * modules/pthread_sigmask-tests: New file.
579         * tests/test-pthread_sigmask1.c: New file, based on
580         tests/test-sigprocmask.c.
581         * tests/test-pthread_sigmask2.c: New file.
582
583 2011-07-08  Jim Meyering  <meyering@redhat.com>
584
585         test-getopt.h: avoid warning about an unused variable
586         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
587
588 2011-07-07  Jim Meyering  <meyering@redhat.com>
589
590         maint: reduce list of files exempt from sc_prohibit_leading_TABs
591         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
592         now that it no longer contains leading TABs.
593         Remove unused "url=FIXME" statement.
594
595 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
596
597         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
598         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
599         When gl_THREADLIB is not in use, assume that the POSIX sematics
600         are desired.  This is better for Emacs, which uses POSIX semantics
601         on GNUish and/or POSIXish platforms, and does not use threads at
602         all otherwise.
603
604         pthread_sigmask: fix typo when testing for libraries
605         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
606         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
607
608 2011-07-08  Eric Blake  <eblake@redhat.com>
609
610         fts: introduce FTS_NOATIME
611         * lib/fts_.h (FTS_NOATIME): New bit flag.
612         (FTS_OPTIONMASK): Adjust.
613         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
614         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
615
616 2011-07-08  Bruno Haible  <bruno@clisp.org>
617
618         Tests for module 'thread'.
619         * modules/thread-tests: New file.
620         * tests/test-thread_self.c: New file.
621         * tests/test-thread_create.cc: New file.
622
623 2011-07-08  Bruno Haible  <bruno@clisp.org>
624
625         thread: Avoid gcc warnings when using gl_thread_self().
626         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
627         'void *'.
628         (gl_thread_self_pointer): Update.
629
630 2011-07-07  Bruno Haible  <bruno@clisp.org>
631
632         signal-c++-tests: Check declaration of pthread_sigmask.
633         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
634         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
635         $(LIB_PTHREAD_SIGMASK).
636
637 2011-07-07  Bruno Haible  <bruno@clisp.org>
638
639         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
640         * lib/signal.in.h (pthread_sigmask): Override if
641         REPLACE_PTHREAD_SIGMASK is 1.
642         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
643         REPLACE_PTHREAD_SIGMASK.
644         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
645         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
646         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
647         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
648         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
649
650 2011-07-07  Bruno Haible  <bruno@clisp.org>
651
652         pthread_sigmask: Ensure declaration in <signal.h>.
653         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
654         include <pthread.h>.
655         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
656         problem.
657
658 2011-07-07  Bruno Haible  <bruno@clisp.org>
659
660         pthread_sigmask: Document the module.
661         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
662
663 2011-07-07  Bruno Haible  <bruno@clisp.org>
664
665         pthread_sigmask: Follow gnulib conventions.
666         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
667         gl_PTHREAD_SIGMASK.
668         * modules/pthread_sigmask (configure.ac): Update.
669
670 2011-07-07  Bruno Haible  <bruno@clisp.org>
671
672         pthread_sigmask: Make declaration C++ safe.
673         * lib/signal.in.h: In two special conditions, just do an #include_next.
674         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
675         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
676         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
677         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
678         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
679         not REPLACE_PTHREAD_MASK.
680         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
681         not REPLACE_PTHREAD_MASK.
682         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
683
684 2011-07-07  Bruno Haible  <bruno@clisp.org>
685
686         pthread_sigmask: Fix return value.
687         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
688         * lib/pthread_sigmask.c: New file.
689         * modules/pthread_sigmask (Files): Add it.
690         (configure.ac): Invoke AC_LIBOBJ.
691
692 2011-07-07  Eric Blake  <eblake@redhat.com>
693
694         getopt: more portable argv creation
695         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
696         const, use char arrays rather than strings.
697         Suggested by Paul Eggert.
698
699 2011-07-07  Bruno Haible  <bruno@clisp.org>
700
701         Tests for module 'sigprocmask'.
702         * modules/sigprocmask-tests: New file.
703         * tests/test-sigprocmask.c: New file.
704
705 2011-07-07  Bruno Haible  <bruno@clisp.org>
706
707         float tests: Tweak.
708         * tests/test-float.c (main): Tweak skip message.
709
710 2011-07-07  Eric Blake  <eblake@redhat.com>
711
712         getopt: avoid compiler warning during configure
713         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
714         assigning string literals to non-const pointer.
715
716         getopt-gnu: avoid crash in glibc getopt
717         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
718         * tests/test-getopt.h (test_getopt): Enhance test.
719         * tests/test-getopt_long.h (test_getopt_long): Likewise.
720         * doc/posix-functions/getopt.texi (getopt): Document it.
721         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
722         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
723         Likewise.
724
725 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
726
727         getopt: handle W; without long options in getopt [BZ #12922]
728         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
729         but no long options are defined, just return 'W'.
730
731 2011-07-07  Bruno Haible  <bruno@clisp.org>
732
733         Avoid literal tabs.
734         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
735         variable containing a tab instead of a literal tab.
736         Reported by Jim Meyering.
737
738 2011-07-07  Bruno Haible  <bruno@clisp.org>
739
740         Comments.
741         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
742
743 2011-07-06  Bruno Haible  <bruno@clisp.org>
744
745         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
746         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
747         <winsock2.h>.
748         (rpl_fd_isset, FD_ISSET): New definitions, copied from
749         lib/sys_socket.in.h.
750         (close, gethostname): Hide declarations from <winsock2.h>.
751         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
752         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
753         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
754         (select): Don't override if gnulib's <sys/select.h> was already
755         included.
756         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
757         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
758         setsockopt, shutdown, select): Tweak indentation.
759
760 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
761
762         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
763         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
764         in an application that does not use the sys_select module.
765
766 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
767
768         poll: do not return 0 on timeout=-1
769         * lib/poll.c: Loop with yield if no events occured
770
771 2011-07-06  Eric Blake  <eblake@redhat.com>
772
773         pthread_sigmask: always replace when not using pthread
774         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
775         replacement when using some threading other than pthread.  Fix
776         logic bug.
777
778 2011-07-06  Bruno Haible  <bruno@clisp.org>
779
780         Comments.
781         * m4/printf.m4: Update comments about mingw.
782
783 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
784
785         sys_select: define sigset_t more portably
786         * lib/sys_select.in.h: Always include <sys/types.h>, since
787         we now need sigset_t and mingw defines it there.
788         Include <signal.h> before split inclusion guard, to avoid
789         mishaps on Solaris, whose <signal.h> eventually includes us.
790         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
791         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
792         which come from ...
793         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
794         gl_CHECK_TYPE_SIGSET_T.
795         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
796         does the real work.
797         * modules/sys_select (Depends-on): Add 'signal'.
798
799         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
800         Suggested by Bruno Haible.
801
802         pselect: Use pthread_sigmask, not sigprocmask.
803         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
804         multithreaded apps better than sigprocmask does.
805         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
806         sigprocmask directly.
807
808 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
809
810         * lib/pselect.c (pselect): Use plain name, without "rpl_".
811         Don't #undef,  since we don't need any underlying pselect.
812         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
813         (Depends-on): Add select.
814         (Link): Add $(LIBSOCKET).
815         These changes suggested by Bruno Haible.
816
817         pselect: document better
818         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
819         * doc/posix-functions/pselect.texi (pselect): Document new module.
820
821         pthread_sigmask: new module
822         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
823         * doc/posix-functions/pthread_sigmask.texi: Document new module.
824         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
825         This is done only as a macro; I don't know how well that'll
826         work for C++.  Move <sys/types.h> include before the include_next,
827         to avoid mishap on Solaris.
828         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
829         * modules/signal (Makefile.am): Substitute the check's results.
830         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
831
832         test-pselect: new module
833         * modules/pselect-tests, tests/test-pselect.c: New files.
834         * tests/test-select.c, tests/test-sys_select-c++.cc:
835         If TEST_PSELECT is defined, test pselect instead of testing select.
836
837         * tests/test-sys_select.c (sigset_t): Test for it, too.
838         Suggested by Bruno Haible.
839
840 2011-07-05  Eric Blake  <eblake@redhat.com>
841
842         snprintf: guarantee %1$d, for libintl
843         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
844         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
845         * doc/posix-functions/snprintf.texi (snprintf): Update.
846         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
847         * tests/test-snprintf.c (main): Enhance test.
848         * tests/test-vsnprintf.c (main): Likewise.
849
850 2011-07-05  Jim Meyering  <meyering@redhat.com>
851
852         maint: exempt stdio-read.c and stdio-write.c from the cppi check
853         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
854         per Bruno's request, to accommodate this idiom (no space after "#")
855         even when the function is inside an #if block:
856         char *
857         gets (char *s)
858         #undef gets
859         {
860           ...
861         }
862
863 2011-07-04  Jim Meyering  <meyering@redhat.com>
864
865         maint: indent with spaces, not TABs, and add a rule to check this
866         * tests/test-userspec.c: Indent with spaces, not TABs.
867         * tests/test-argp.c: Likewise.
868         * tests/test-c-stack2.sh: Likewise.
869         * tests/test-parse-duration.sh: Likewise
870         * m4/strtod.m4: Likewise.
871         * m4/alloca.m4: Likewise.
872         * m4/pselect.m4: Likewise.
873         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
874
875 2011-07-03  Jim Meyering  <meyering@redhat.com>
876
877         maint.mk: correct omissions in prohibit_argmatch_without_use check
878         This rule would mistakenly report that argmatch.h is included without
879         use even when both the argmatch and invalid_arg macro were used.
880         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
881         of argmatch and invalid_arg.
882
883 2011-07-03  Bruno Haible  <bruno@clisp.org>
884
885         Comments about EINTR.
886         * lib/safe-read.h: Explain the purpose of this module.
887         * lib/safe-write.h: Likewise.
888         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
889         module.
890         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
891         module.
892         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
893
894 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
895
896         xnanosleep: Rewrite to use new dtotimespec module.
897         It has the conversion code that used to be in xnanosleep.
898         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
899         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
900         (TIME_T_MAX): Remove.
901         (xnanosleep): Rewrite in terms of dtotimespec.
902         * modules/xnanosleep (Depends-on): Add dtotimespec.
903         Remove intprops, stdbool.
904
905         timespec-add, timespec-sub: new modules
906         * lib/timespec.h (timespec_add, timespec_sub): New decls.
907         * lib/timespec-add.c, lib/timespec-sub.c:
908         * modules/timespec-add, modules/timespec-sub: New files.
909
910         dtotimespec: new module
911         * lib/timespec.h (dtotimespec): New decl.
912         * lib/dtotimespec.c, modules/dtotimespec: New files.
913
914         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
915
916         pselect: new module
917         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
918         (pselect): New decls.
919         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
920         since the standard pselect decl uses 'restrict'.
921         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
922         HAVE_PSELECT, REPLACE_PSELECT.
923         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
924         HAVE_PSELECT, REPLACE_PSELECT.
925         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
926
927         sys_select: don't depend on sys_socket
928         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
929         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
930         This fix works on GNU and GNU-like platforms, but has not been tested
931         on native Windows.
932         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
933         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
934         gl_HEADER_SYS_SOCKET.
935         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
936         gl_PREREQ_SYS_H_WINSOCK2.
937
938 2011-06-29  Eric Blake  <eblake@redhat.com>
939
940         pipe2: fix C89 compile problem
941         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
942         Reported by Bruno Haible.
943
944         pipe, pipe2: don't corrupt fd on error
945         * lib/pipe.c (pipe): Leave fd unchanged on error.
946         * lib/pipe2.c (pipe2): Likewise.
947         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
948         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
949
950 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
951
952         mmap-anon: do not use regular expressions inadvertently
953         * m4/mmap-anon.m4: Remove trailing period from strings sought
954         in the output.
955
956 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
957
958         nanosleep: fix integer overflow problem
959         * lib/nanosleep.c (my_usleep): Don't assume signed integer
960         arithmetic wraps around on overflow.
961
962         nanosleep: simplify carrying
963         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
964         first call to the underyling nanosleep, not for the last one.
965         This doesn't fix any bugs, but it simplifies the computation of
966         the remaining delay.  Found while auditing integer overflow issues.
967
968         dup2: remove test for existence of fcntl
969         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
970         "#if HAVE_FCNTL", in the configure-time test program.
971         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
972         and therefore speeds up "configure" a bit.  Found while
973         adding the dup2 module to Emacs.
974
975 2011-06-24  Eric Blake  <eblake@redhat.com>
976
977         maint.mk: enhance useless header checks
978         * top/maint.mk (_sc_header_without_use): Check both include
979         styles.
980         (sc_prohibit_assert_without_use)
981         (sc_prohibit_close_stream_without_use)
982         (sc_prohibit_getopt_without_use)
983         (sc_prohibit_quotearg_without_use)
984         (sc_prohibit_quote_without_use)
985         (sc_prohibit_long_options_without_use)
986         (sc_prohibit_inttostr_without_use)
987         (sc_prohibit_ignore_value_without_use)
988         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
989         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
990         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
991         (sc_prohibit_hash_pjw_without_use)
992         (sc_prohibit_safe_read_without_use)
993         (sc_prohibit_argmatch_without_use)
994         (sc_prohibit_canonicalize_without_use)
995         (sc_prohibit_root_dev_ino_without_use)
996         (sc_prohibit_openat_without_use)
997         (sc_prohibit_c_ctype_without_use)
998         (sc_prohibit_signal_without_use)
999         (sc_prohibit_stdio--_without_use)
1000         (sc_prohibit_stdio-safer_without_use)
1001         (sc_prohibit_strings_without_use)
1002         (sc_prohibit_intprops_without_use)
1003         (sc_prohibit_stddef_without_use)
1004         (sc_prohibit_xfreopen_without_use): Update clients.
1005
1006 2011-06-24  Jim Meyering  <meyering@redhat.com>
1007
1008         syntax-check: keep one maint.mk rule in sync with its header
1009         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
1010         of the bug Eric has just fixed, with today's commit 25e4c2ec.
1011         I prefer to avoid temporary files here, so use <(...), but that
1012         is not supported by /bin/sh, so...
1013         (SHELL): Define to /bin/bash.
1014
1015 2011-06-24  Eric Blake  <eblake@redhat.com>
1016
1017         maint.mk: update sc_prohibit_intprops_without_use
1018         * top/maint.mk (_intprops_names): Match recent changes.
1019
1020 2011-06-24  Bruno Haible  <bruno@clisp.org>
1021
1022         strerror-override: No-op tweak.
1023         * lib/strerror-override.h (strerror_override): Reorder conditions,
1024         for consistency with lib/strerror-override.c.
1025
1026 2011-06-23  Eric Blake  <eblake@redhat.com>
1027
1028         maint.mk: test further PATH_MAX issues
1029         * top/maint.mk (sc_prohibit_path_max_array): Rename...
1030         (sc_prohibit_path_max_allocation): ...and also test alloca.
1031         Suggested by Jim Meyering.
1032
1033 2011-06-22  Eric Blake  <eblake@redhat.com>
1034
1035         maint.mk: add syntax-check to avoid char[PATH_MAX]
1036         * top/maint.mk (sc_prohibit_path_max_array): New rule.
1037
1038         stat: be robust to PATH_MAX definition
1039         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
1040         * modules/stat (Depends-on): Add verify.
1041
1042         link: work around IRIX bug
1043         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
1044         * lib/link.c (rpl_link): Work around it.
1045         * tests/test-link.h (test_link): Enhance test.
1046         * doc/posix-functions/link.texi (link): Document the bug.
1047
1048         getopt: silence clang warning
1049         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
1050         dereference.
1051         Reported by Gustavo Martin Domato.
1052
1053 2011-06-22  Jim Meyering  <meyering@redhat.com>
1054
1055         bootstrap: do not insert a blank line into each .gitignore file
1056         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
1057
1058 2011-06-21  Eric Blake  <eblake@redhat.com>
1059
1060         perror: test for output mismatch
1061         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
1062         perror on IRIX.
1063
1064         strerror_r: fix OpenBSD behavior on out-of-range
1065         * lib/strerror_r.c (strerror_r): Always use maximal string.
1066         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
1067
1068         strerror_r: fix OpenBSD behavior on 0
1069         * lib/strerror-override.c (strerror_override): Also override 0
1070         when needed.
1071         * lib/strerror-override.h (strerror_override): Likewise.
1072         * lib/strerror.c (strerror): Simplify, now that 0 override is done
1073         earlier.
1074         * lib/strerror_r.c (strerror_r): Likewise.
1075         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
1076         behavior...
1077         (gl_FUNC_STRERROR_0): ...into new macro.
1078         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
1079         is overridden.
1080         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
1081         * modules/strerror-override (Files): Add strerror.m4.
1082         (configure.ac): Also provide override for 0 when needed.
1083         * doc/posix-functions/strerror.texi (strerror): Document this.
1084         * doc/posix-functions/perror.texi (perror): Likewise.
1085
1086         perror: adjust array size
1087         * modules/perror (Depends-on): Add strerror-override.
1088         * lib/perror.c (perror): Use it to avoid magic number.
1089
1090         strerror-override: reduce size
1091         * lib/strerror-override.c (strerror_override): Use fewer lines.
1092
1093 2011-06-20  Bruno Haible  <bruno@clisp.org>
1094
1095         pathmax: Ensure correct value for PATH_MAX on HP-UX.
1096         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
1097
1098 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
1099
1100         alloca: port to compilers that can optimize like GCC 4.6.0
1101         * lib/alloca.c (find_stack_direction): New signature, taken from
1102         Autoconf git.  This works with GCC 4.6.0.  This code should never
1103         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
1104         be used with other compilers that optimize as well as GCC 4.6.0 does.
1105         (alloca): Adjust to new signature.
1106         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
1107         New macro, which patches Autoconf in a similar way.
1108
1109         c-stack: stop worrying about stack direction
1110         * lib/c-stack.c (find_stack_direction): Remove.
1111         (segv_handler): Don't worry about stack direction growth, as it's
1112         too much of a pain to configure this correctly, given how compilers
1113         are optimizing-away our stack-growth detection code.  Instead, assume
1114         that any access to just before or just after the stack is OK.
1115         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
1116         Don't require AC_FUNC_ALLOCA; no longer needed.
1117
1118 2011-06-20  Eric Blake  <eblake@redhat.com>
1119
1120         test-stat: don't allocate PATH_MAX bytes
1121         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
1122         PATH_MAX-sized buffer.
1123         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
1124         * modules/stat-tests (Depends-on): Likewise.
1125         * tests/test-fstatat.c (includes): Drop pathmax.h.
1126         * tests/test-stat.c (includes): Likewise.
1127         Reported by Bruno Haible.
1128
1129 2011-06-20  Bruno Haible  <bruno@clisp.org>
1130
1131         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
1132         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
1133         * lib/float.c: New file.
1134         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
1135         REPLACE_FLOAT_LDBL.
1136         * modules/float (Files): Add lib/float.c.
1137         (configure.ac): Invoke AC_LIBOBJ.
1138         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
1139
1140 2011-06-20  Bruno Haible  <bruno@clisp.org>
1141
1142         Tests for module 'float'.
1143         * modules/float-tests: New file.
1144         * tests/test-float.c: New file.
1145
1146 2011-06-19  Bruno Haible  <bruno@clisp.org>
1147
1148         isinf: Coding style.
1149         * lib/isinf.c: Use GNU coding style.
1150
1151 2011-06-19  Bruno Haible  <bruno@clisp.org>
1152
1153         linkat test: Avoid test failure on AIX 7.1.
1154         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
1155         * tests/test-link.h (test_link): Likewise.
1156
1157 2011-06-19  Bruno Haible  <bruno@clisp.org>
1158
1159         pread test: Avoid test failure on OpenBSD 4.9.
1160         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
1161
1162 2011-06-19  Bruno Haible  <bruno@clisp.org>
1163
1164         sprintf-posix: Fix test failure on AIX 7.1.
1165         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
1166         * doc/posix-functions/dprintf.texi: Mention limited precision problem
1167         on AIX.
1168         * doc/posix-functions/fprintf.texi: Likewise.
1169         * doc/posix-functions/printf.texi: Likewise.
1170         * doc/posix-functions/snprintf.texi: Likewise.
1171         * doc/posix-functions/sprintf.texi: Likewise.
1172         * doc/posix-functions/vdprintf.texi: Likewise.
1173         * doc/posix-functions/vfprintf.texi: Likewise.
1174         * doc/posix-functions/vprintf.texi: Likewise.
1175         * doc/posix-functions/vsnprintf.texi: Likewise.
1176         * doc/posix-functions/vsprintf.texi: Likewise.
1177
1178 2011-06-19  Bruno Haible  <bruno@clisp.org>
1179
1180         roundl-ieee: Fix test failure on AIX 7.1.
1181         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
1182         * doc/posix-functions/roundl.texi: Mention problem with negative
1183         arguments.
1184
1185 2011-06-19  Bruno Haible  <bruno@clisp.org>
1186
1187         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
1188         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
1189         * doc/posix-functions/round.texi: Mention problem with negative
1190         arguments.
1191         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
1192
1193 2011-06-19  Bruno Haible  <bruno@clisp.org>
1194
1195         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
1196         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
1197         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
1198         * doc/posix-functions/roundf.texi: Mention problem with negative
1199         arguments.
1200         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
1201
1202 2011-06-19  Bruno Haible  <bruno@clisp.org>
1203
1204         ceilf-ieee: Work around bug on MacOS X 10.5.
1205         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
1206
1207         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
1208         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
1209         IEEE compliant, avoid compiler optimizations.
1210         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
1211         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
1212         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
1213         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
1214         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
1215         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
1216         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
1217         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
1218         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
1219         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
1220
1221 2011-06-19  Bruno Haible  <bruno@clisp.org>
1222
1223         ceilf-ieee: Work around bug on AIX 7.1.
1224         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
1225         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
1226
1227 2011-06-19  Bruno Haible  <bruno@clisp.org>
1228
1229         ceil-ieee: Work around bug on AIX 7.1.
1230         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
1231         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
1232
1233 2011-06-18  Bruno Haible  <bruno@clisp.org>
1234
1235         fsync test: Avoid test failure on MacOS X and AIX.
1236         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
1237         EINVAL.
1238
1239 2011-06-18  Bruno Haible  <bruno@clisp.org>
1240
1241         openat, fdopendir tests: Fix link errors.
1242         * modules/openat-tests (Depends-on): Add progname.
1243         * modules/fdopendir-tests (Depends-on): Likewise.
1244         * tests/test-fchownat.c: Include progname.h.
1245         (main): Call set_program_name.
1246         * tests/test-fstatat.c: Include progname.h.
1247         (main): Call set_program_name.
1248         * tests/test-mkdirat.c: Include progname.h.
1249         (main): Call set_program_name.
1250         * tests/test-openat.c: Include progname.h.
1251         (main): Call set_program_name.
1252         * tests/test-unlinkat.c: Include progname.h.
1253         (main): Call set_program_name.
1254         * tests/test-fdopendir.c: Include progname.h.
1255         (main): Call set_program_name.
1256
1257 2011-06-18  Bruno Haible  <bruno@clisp.org>
1258
1259         Doc update.
1260         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
1261         HP-UX.
1262         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
1263
1264 2011-06-18  Bruno Haible  <bruno@clisp.org>
1265
1266         getcwd tests: Avoid compilation error on HP-UX 11.31.
1267         * modules/getcwd-tests (Depends-on): Add pathmax.
1268         * tests/test-getcwd.c: Include pathmax.h.
1269
1270 2011-06-18  Bruno Haible  <bruno@clisp.org>
1271
1272         isfinite, isinf: Fix link error on AIX 6 and 7.
1273         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
1274         needed, also test the macro with a 'float' argument.
1275         * m4/isinf.m4 (gl_ISINF): Likewise.
1276
1277 2011-06-18  Bruno Haible  <bruno@clisp.org>
1278
1279         getloadavg: Don't clobber LIBS. Regression from previous commit.
1280         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
1281         AC_CHECK_LIB from here...
1282         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
1283         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
1284         gl_func_getloadavg_done.
1285         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1286
1287 2011-06-18  Bruno Haible  <bruno@clisp.org>
1288
1289         clean-temp: Improve documentation.
1290         * lib/clean-temp.h: Explain better how to use this module.
1291         Reported by John Darrington <john@darrington.wattle.id.au>.
1292
1293 2011-06-17  Bruno Haible  <bruno@clisp.org>
1294
1295         pread, pwrite: Avoid cc warning on AIX.
1296         * lib/unistd.in.h (pread): Undefine before defining as a macro.
1297         (pwrite): Likewise.
1298
1299 2011-06-17  Bruno Haible  <bruno@clisp.org>
1300
1301         spawn-pipe tests: Fix link error.
1302         * tests/test-spawn-pipe-child.c: Undefine fprintf.
1303         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1304
1305 2011-06-17  Bruno Haible  <bruno@clisp.org>
1306
1307         Tests: Remove unnecessary dependency.
1308         * modules/canonicalize-tests (Depends-on): Remove progname.
1309         * modules/chown-tests (Depends-on): Likewise.
1310         * modules/dirname-tests (Depends-on): Likewise.
1311         * modules/fdopendir-tests (Depends-on): Likewise.
1312         * modules/fdutimensat-tests (Depends-on): Likewise.
1313         * modules/hash-tests (Depends-on): Likewise.
1314         * modules/lchown-tests (Depends-on): Likewise.
1315         * modules/linkat-tests (Depends-on): Likewise.
1316         * modules/renameat-tests (Depends-on): Likewise.
1317         * modules/spawn-pipe-tests (Depends-on): Likewise.
1318         * modules/utimensat-tests (Depends-on): Likewise.
1319
1320 2011-06-17  Bruno Haible  <bruno@clisp.org>
1321
1322         spawn-pipe tests: Fix link error.
1323         * tests/test-spawn-pipe-child.c: Undefine fflush.
1324
1325 2011-06-17  Bruno Haible  <bruno@clisp.org>
1326
1327         Fix tests link errors.
1328         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
1329         * modules/chown-tests (Makefile.am): Don't link test-chown with
1330         LIBINTL.
1331         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
1332         LIBINTL.
1333         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
1334         LIBINTL.
1335         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
1336         LIBINTL.
1337
1338 2011-06-16  Bruno Haible  <bruno@clisp.org>
1339
1340         crypto/gc-sha1: Fix recent regression.
1341         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
1342         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
1343
1344         crypto/gc-md5: Fix recent regression.
1345         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
1346
1347         crypto/gc-md4: Fix recent regression.
1348         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
1349         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
1350
1351         crypto/gc-arctwo: Fix recent regression.
1352         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
1353         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
1354
1355         crypto/gc-rijndael: Fix recent regression.
1356         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
1357         (configure.ac): Invoke AC_LIBOBJ here.
1358         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
1359         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1360
1361         crypto/gc-hmac-sha1: Fix recent regression.
1362         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
1363         (configure.ac): Invoke AC_LIBOBJ here.
1364         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
1365         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1366
1367         crypto/gc-hmac-md5: Fix recent regression.
1368         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
1369         (configure.ac): Invoke AC_LIBOBJ here.
1370         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
1371         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1372
1373         crypto/gc-des: Fix recent regression.
1374         * modules/crypto/gc-des (Files): Remove m4/des.m4.
1375         (configure.ac): Invoke AC_LIBOBJ here.
1376         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
1377         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1378
1379         crypto/gc-arcfour: Fix recent regression.
1380         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
1381         (configure.ac): Invoke AC_LIBOBJ here.
1382         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
1383         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1384
1385 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
1386
1387         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
1388         After the 2011-05-21 change, this macro requires
1389         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
1390         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
1391
1392 2011-06-16  Bruno Haible  <bruno@clisp.org>
1393
1394         fprintftime: Move AC_LIBOBJ invocations to module description.
1395         * m4/fprintftime.m4: Remove file.
1396         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
1397         (configure.ac): Remove gl_FPRINTFTIME call.
1398         (Makefile.am): Augment lib_SOURCES.
1399         Reported by Jim Meyering.
1400
1401 2011-06-16  Bruno Haible  <bruno@clisp.org>
1402
1403         tmpfile-safer: Finish 2011-05-23 commit.
1404         * m4/stdio-safer.m4: Really remove file.
1405         Reported by Jim Meyering.
1406
1407 2011-06-16  Bruno Haible  <bruno@clisp.org>
1408
1409         syntax-check: Fix typo.
1410         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
1411         printf-posix.m4.
1412         Reported by Jim Meyering.
1413
1414 2011-06-13  Jim Meyering  <meyering@redhat.com>
1415
1416         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
1417         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
1418
1419 2011-05-23  Bruno Haible  <bruno@clisp.org>
1420
1421         yesno: Move AC_LIBOBJ invocations to module description.
1422         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
1423         * modules/yesno (Makefile.am): Augment lib_SOURCES.
1424
1425 2011-05-23  Bruno Haible  <bruno@clisp.org>
1426
1427         xstrtol: Move AC_LIBOBJ invocations to module description.
1428         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
1429         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
1430
1431 2011-05-23  Bruno Haible  <bruno@clisp.org>
1432
1433         xstrtold: Move AC_LIBOBJ invocations to module description.
1434         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
1435         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
1436
1437 2011-05-23  Bruno Haible  <bruno@clisp.org>
1438
1439         xstrtod: Move AC_LIBOBJ invocations to module description.
1440         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
1441         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
1442
1443 2011-05-23  Bruno Haible  <bruno@clisp.org>
1444
1445         xnanosleep: Move AC_LIBOBJ invocations to module description.
1446         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
1447         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
1448
1449 2011-05-23  Bruno Haible  <bruno@clisp.org>
1450
1451         xgetcwd: Move AC_LIBOBJ invocations to module description.
1452         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
1453         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
1454
1455 2011-05-23  Bruno Haible  <bruno@clisp.org>
1456
1457         xalloc: Move AC_LIBOBJ invocations to module description.
1458         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
1459         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
1460
1461 2011-05-23  Bruno Haible  <bruno@clisp.org>
1462
1463         write-any-file: Move AC_LIBOBJ invocations to module description.
1464         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
1465         invocation.
1466         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
1467
1468 2011-05-23  Bruno Haible  <bruno@clisp.org>
1469
1470         utimens: Move AC_LIBOBJ invocations to module description.
1471         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
1472         * modules/utimens (Makefile.am): Augment lib_SOURCES.
1473
1474 2011-05-23  Bruno Haible  <bruno@clisp.org>
1475
1476         utimecmp: Move AC_LIBOBJ invocations to module description.
1477         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
1478         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
1479
1480 2011-05-23  Bruno Haible  <bruno@clisp.org>
1481
1482         userspec: Move AC_LIBOBJ invocations to module description.
1483         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
1484         * modules/userspec (Makefile.am): Augment lib_SOURCES.
1485
1486 2011-05-23  Bruno Haible  <bruno@clisp.org>
1487
1488         unlinkdir: Move AC_LIBOBJ invocations to module description.
1489         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
1490         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
1491
1492 2011-05-23  Bruno Haible  <bruno@clisp.org>
1493
1494         unistd-safer: Move AC_LIBOBJ invocations to module description.
1495         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
1496         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
1497
1498 2011-05-23  Bruno Haible  <bruno@clisp.org>
1499
1500         tempname: Move AC_LIBOBJ invocations to module description.
1501         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
1502         * modules/tempname (Makefile.am): Augment lib_SOURCES.
1503
1504 2011-05-23  Bruno Haible  <bruno@clisp.org>
1505
1506         strftime: Move AC_LIBOBJ invocations to module description.
1507         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
1508         * modules/strftime (Makefile.am): Augment lib_SOURCES.
1509
1510 2011-05-23  Bruno Haible  <bruno@clisp.org>
1511
1512         stdlib-safer: Move AC_LIBOBJ invocations to module description.
1513         * m4/stdlib-safer.m4: Remove file.
1514         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
1515         (configure.ac): Remove gl_STDLIB_SAFER call.
1516         (Makefile.am): Augment lib_SOURCES.
1517
1518 2011-05-23  Bruno Haible  <bruno@clisp.org>
1519
1520         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
1521         * m4/stdio-safer.m4: Remove file.
1522         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
1523         (configure.ac): Remove gl_TMPFILE_SAFER call.
1524         (Makefile.am): Augment lib_SOURCES.
1525
1526 2011-05-23  Bruno Haible  <bruno@clisp.org>
1527
1528         popen-safer: Move AC_LIBOBJ invocations to module description.
1529         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
1530         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
1531         (configure.ac): Remove gl_POPEN_SAFER call.
1532         (Makefile.am): Augment lib_SOURCES.
1533
1534 2011-05-23  Bruno Haible  <bruno@clisp.org>
1535
1536         freopen-safer: Move AC_LIBOBJ invocations to module description.
1537         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
1538         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
1539         (configure.ac): Remove gl_FREOPEN_SAFER call.
1540         (Makefile.am): Augment lib_SOURCES.
1541
1542 2011-05-23  Bruno Haible  <bruno@clisp.org>
1543
1544         fopen-safer: Move AC_LIBOBJ invocations to module description.
1545         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
1546         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
1547         (configure.ac): Remove gl_FOPEN_SAFER call.
1548         (Makefile.am): Augment lib_SOURCES.
1549
1550 2011-05-23  Bruno Haible  <bruno@clisp.org>
1551
1552         crypto/sha512: Move AC_LIBOBJ invocations to module description.
1553         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
1554         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
1555
1556 2011-05-23  Bruno Haible  <bruno@clisp.org>
1557
1558         crypto/sha256: Move AC_LIBOBJ invocations to module description.
1559         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
1560         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
1561
1562 2011-05-23  Bruno Haible  <bruno@clisp.org>
1563
1564         crypto/sha1: Move AC_LIBOBJ invocations to module description.
1565         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
1566         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
1567
1568 2011-05-23  Bruno Haible  <bruno@clisp.org>
1569
1570         settime: Move AC_LIBOBJ invocations to module description.
1571         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
1572         * modules/settime (Makefile.am): Augment lib_SOURCES.
1573
1574 2011-05-23  Bruno Haible  <bruno@clisp.org>
1575
1576         savedir: Move AC_LIBOBJ invocations to module description.
1577         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
1578         * modules/savedir (Makefile.am): Augment lib_SOURCES.
1579
1580 2011-05-23  Bruno Haible  <bruno@clisp.org>
1581
1582         save-cwd: Move AC_LIBOBJ invocations to module description.
1583         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
1584         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
1585
1586 2011-05-23  Bruno Haible  <bruno@clisp.org>
1587
1588         same: Move AC_LIBOBJ invocations to module description.
1589         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
1590         * modules/same (Makefile.am): Augment lib_SOURCES.
1591
1592 2011-05-23  Bruno Haible  <bruno@clisp.org>
1593
1594         safe-write: Move AC_LIBOBJ invocations to module description.
1595         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
1596         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
1597         instead of gl_SAFE_WRITE.
1598         (Makefile.am): Augment lib_SOURCES.
1599
1600 2011-05-23  Bruno Haible  <bruno@clisp.org>
1601
1602         safe-read: Move AC_LIBOBJ invocations to module description.
1603         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
1604         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
1605         of gl_SAFE_READ.
1606         (Makefile.am): Augment lib_SOURCES.
1607
1608 2011-05-23  Bruno Haible  <bruno@clisp.org>
1609
1610         safe-alloc: Move AC_LIBOBJ invocations to module description.
1611         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
1612         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
1613
1614 2011-05-23  Bruno Haible  <bruno@clisp.org>
1615
1616         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
1617         * m4/rijndael.m4: Remove file.
1618         * modules/crypto/rijndael (Files): Remove it.
1619         (configure.ac): Remove gl_RIJNDAEL call.
1620         (Makefile.am): Augment lib_SOURCES.
1621
1622 2011-05-23  Bruno Haible  <bruno@clisp.org>
1623
1624         readtokens: Move AC_LIBOBJ invocations to module description.
1625         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
1626         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
1627
1628 2011-05-23  Bruno Haible  <bruno@clisp.org>
1629
1630         read-file: Move AC_LIBOBJ invocations to module description.
1631         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
1632         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
1633         of gl_FUNC_READ_FILE.
1634         (Makefile.am): Augment lib_SOURCES.
1635
1636 2011-05-23  Bruno Haible  <bruno@clisp.org>
1637
1638         quotearg: Move AC_LIBOBJ invocations to module description.
1639         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
1640         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
1641
1642 2011-05-23  Bruno Haible  <bruno@clisp.org>
1643
1644         quote: Move AC_LIBOBJ invocations to module description.
1645         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
1646         * modules/quote (Makefile.am): Augment lib_SOURCES.
1647
1648 2011-05-23  Bruno Haible  <bruno@clisp.org>
1649
1650         posixver: Move AC_LIBOBJ invocations to module description.
1651         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
1652         * modules/posixver (Makefile.am): Augment lib_SOURCES.
1653
1654 2011-05-23  Bruno Haible  <bruno@clisp.org>
1655
1656         posixtm: Move AC_LIBOBJ invocations to module description.
1657         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
1658         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
1659
1660 2011-05-23  Bruno Haible  <bruno@clisp.org>
1661
1662         physmem: Move AC_LIBOBJ invocations to module description.
1663         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
1664         * modules/physmem (Makefile.am): Augment lib_SOURCES.
1665
1666 2011-05-23  Bruno Haible  <bruno@clisp.org>
1667
1668         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
1669         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
1670         invocation.
1671         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
1672
1673 2011-05-23  Bruno Haible  <bruno@clisp.org>
1674
1675         mpsort: Move AC_LIBOBJ invocations to module description.
1676         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
1677         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
1678
1679 2011-05-23  Bruno Haible  <bruno@clisp.org>
1680
1681         modechange: Move AC_LIBOBJ invocations to module description.
1682         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
1683         * modules/modechange (Makefile.am): Augment lib_SOURCES.
1684
1685 2011-05-23  Bruno Haible  <bruno@clisp.org>
1686
1687         mkdir-p: Move AC_LIBOBJ invocations to module description.
1688         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
1689         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
1690
1691 2011-05-23  Bruno Haible  <bruno@clisp.org>
1692
1693         mkancesdirs: Move AC_LIBOBJ invocations to module description.
1694         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
1695         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
1696
1697 2011-05-23  Bruno Haible  <bruno@clisp.org>
1698
1699         mgetgroups: Move AC_LIBOBJ invocations to module description.
1700         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
1701         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
1702
1703 2011-05-23  Bruno Haible  <bruno@clisp.org>
1704
1705         memxor: Move AC_LIBOBJ invocations to module description.
1706         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
1707         * modules/memxor (Makefile.am): Augment lib_SOURCES.
1708
1709 2011-05-23  Bruno Haible  <bruno@clisp.org>
1710
1711         memcoll: Move AC_LIBOBJ invocations to module description.
1712         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
1713         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
1714
1715 2011-05-23  Bruno Haible  <bruno@clisp.org>
1716
1717         memcasecmp: Move AC_LIBOBJ invocations to module description.
1718         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
1719         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
1720
1721 2011-05-23  Bruno Haible  <bruno@clisp.org>
1722
1723         crypto/md5: Move AC_LIBOBJ invocations to module description.
1724         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
1725         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
1726
1727 2011-05-23  Bruno Haible  <bruno@clisp.org>
1728
1729         crypto/md4: Move AC_LIBOBJ invocations to module description.
1730         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
1731         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
1732
1733 2011-05-23  Bruno Haible  <bruno@clisp.org>
1734
1735         crypto/md2: Move AC_LIBOBJ invocations to module description.
1736         * m4/md2.m4: Remove file.
1737         * modules/crypto/md2 (Files): Remove it.
1738         (configure.ac): Remove gl_MD2 call.
1739         (Makefile.am): Augment lib_SOURCES.
1740
1741 2011-05-23  Bruno Haible  <bruno@clisp.org>
1742
1743         long-options: Move AC_LIBOBJ invocations to module description.
1744         * m4/long-options.m4: Remove file.
1745         * modules/long-options (Files): Remove it.
1746         (configure.ac): Remove gl_LONG_OPTIONS call.
1747         (Makefile.am): Augment lib_SOURCES.
1748
1749 2011-05-23  Bruno Haible  <bruno@clisp.org>
1750
1751         i-ring: Move AC_LIBOBJ invocations to module description.
1752         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
1753         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
1754
1755 2011-05-23  Bruno Haible  <bruno@clisp.org>
1756
1757         idcache: Move AC_LIBOBJ invocations to module description.
1758         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
1759         * modules/idcache (Makefile.am): Augment lib_SOURCES.
1760
1761 2011-05-23  Bruno Haible  <bruno@clisp.org>
1762
1763         human: Move AC_LIBOBJ invocations to module description.
1764         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
1765         * modules/human (Makefile.am): Augment lib_SOURCES.
1766
1767 2011-05-23  Bruno Haible  <bruno@clisp.org>
1768
1769         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
1770         * m4/hmac-sha1.m4: Remove file.
1771         * modules/crypto/hmac-sha1 (Files): Remove it.
1772         (configure.ac): Remove gl_HMAC_SHA1 call.
1773         (Makefile.am): Augment lib_SOURCES.
1774
1775 2011-05-23  Bruno Haible  <bruno@clisp.org>
1776
1777         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
1778         * m4/hmac-md5.m4: Remove file.
1779         * modules/crypto/hmac-md5 (Files): Remove it.
1780         (configure.ac): Remove gl_HMAC_MD5 call.
1781         (Makefile.am): Augment lib_SOURCES.
1782
1783 2011-05-23  Bruno Haible  <bruno@clisp.org>
1784
1785         hash: Move AC_LIBOBJ invocations to module description.
1786         * m4/hash.m4: Remove file.
1787         * modules/hash (Files): Remove it.
1788         (configure.ac): Remove gl_HASH call.
1789         (Makefile.am): Augment lib_SOURCES.
1790
1791 2011-05-23  Bruno Haible  <bruno@clisp.org>
1792
1793         hard-locale: Move AC_LIBOBJ invocations to module description.
1794         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
1795         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
1796
1797 2011-05-23  Bruno Haible  <bruno@clisp.org>
1798
1799         getugroups: Move AC_LIBOBJ invocations to module description.
1800         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
1801         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
1802
1803 2011-05-23  Bruno Haible  <bruno@clisp.org>
1804
1805         gettime: Move AC_LIBOBJ invocations to module description.
1806         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
1807         * modules/gettime (Makefile.am): Augment lib_SOURCES.
1808
1809 2011-05-23  Bruno Haible  <bruno@clisp.org>
1810
1811         getndelim2: Move AC_LIBOBJ invocations to module description.
1812         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
1813         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
1814
1815 2011-05-23  Bruno Haible  <bruno@clisp.org>
1816
1817         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
1818         * m4/gc-pbkdf2-sha1.m4: Remove file.
1819         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
1820         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
1821         (Makefile.am): Augment lib_SOURCES.
1822
1823 2011-05-23  Bruno Haible  <bruno@clisp.org>
1824
1825         fts: Move AC_LIBOBJ invocations to module description.
1826         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
1827         * modules/fts (configure.ac): ... to here.
1828
1829 2011-05-23  Bruno Haible  <bruno@clisp.org>
1830
1831         file-type: Move AC_LIBOBJ invocations to module description.
1832         * m4/file-type.m4: Remove file.
1833         * modules/file-type (Files): Remove it.
1834         (configure.ac): Remove gl_FILE_TYPE call.
1835         (Makefile.am): Augment lib_SOURCES.
1836
1837 2011-05-23  Bruno Haible  <bruno@clisp.org>
1838
1839         filenamecat*: Respect rules for use of AC_LIBOBJ.
1840         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
1841         Remove AC_LIBOBJ invocation.
1842         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
1843         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
1844
1845 2011-05-23  Bruno Haible  <bruno@clisp.org>
1846
1847         filemode: Move AC_LIBOBJ invocations to module description.
1848         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
1849         * modules/filemode (Makefile.am): Augment lib_SOURCES.
1850
1851 2011-05-23  Bruno Haible  <bruno@clisp.org>
1852
1853         openat-safer: Move AC_LIBOBJ invocations to module description.
1854         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
1855         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
1856
1857 2011-05-23  Bruno Haible  <bruno@clisp.org>
1858
1859         fcntl-safer: Move AC_LIBOBJ invocations to module description.
1860         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
1861         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
1862
1863 2011-05-23  Bruno Haible  <bruno@clisp.org>
1864
1865         exclude: Move AC_LIBOBJ invocations to module description.
1866         * m4/exclude.m4: Remove file.
1867         * modules/exclude (Files): Remove it.
1868         (configure.ac): Remove gl_EXCLUDE call.
1869         (Makefile.am): Augment lib_SOURCES.
1870
1871 2011-05-23  Bruno Haible  <bruno@clisp.org>
1872
1873         dirname*: Respect rules for use of AC_LIBOBJ.
1874         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
1875         invocations.
1876         * modules/dirname (Makefile.am): Augment lib_SOURCES.
1877         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
1878
1879 2011-05-23  Bruno Haible  <bruno@clisp.org>
1880
1881         dirent-safer: Move AC_LIBOBJ invocations to module description.
1882         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
1883         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
1884
1885 2011-05-23  Bruno Haible  <bruno@clisp.org>
1886
1887         crypto/des: Move AC_LIBOBJ invocations to module description.
1888         * m4/des.m4: Remove file.
1889         * modules/crypto/des (Files): Remove it.
1890         (configure.ac): Remove gl_DES call.
1891         (Makefile.am): Augment lib_SOURCES.
1892
1893 2011-05-23  Bruno Haible  <bruno@clisp.org>
1894
1895         cycle-check: Move AC_LIBOBJ invocations to module description.
1896         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
1897         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
1898
1899 2011-05-23  Bruno Haible  <bruno@clisp.org>
1900
1901         c-strtold: Move AC_LIBOBJ invocations to module description.
1902         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
1903         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
1904
1905 2011-05-23  Bruno Haible  <bruno@clisp.org>
1906
1907         c-strtod: Move AC_LIBOBJ invocations to module description.
1908         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
1909         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
1910
1911 2011-05-23  Bruno Haible  <bruno@clisp.org>
1912
1913         crc: Move AC_LIBOBJ invocations to module description.
1914         * m4/crc.m4: Remove file.
1915         * modules/crc (Files): Remove it.
1916         (configure.ac): Remove gl_CRC call.
1917         (Makefile.am): Augment lib_SOURCES.
1918
1919 2011-05-23  Bruno Haible  <bruno@clisp.org>
1920
1921         close-stream: Move AC_LIBOBJ invocations to module description.
1922         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
1923         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
1924
1925 2011-05-23  Bruno Haible  <bruno@clisp.org>
1926
1927         closeout: Move AC_LIBOBJ invocations to module description.
1928         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
1929         * modules/closeout (Makefile.am): Augment lib_SOURCES.
1930
1931 2011-05-23  Bruno Haible  <bruno@clisp.org>
1932
1933         closein: Move AC_LIBOBJ invocations to module description.
1934         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
1935         * modules/closein (Makefile.am): Augment lib_SOURCES.
1936
1937 2011-05-23  Bruno Haible  <bruno@clisp.org>
1938
1939         cloexec: Move AC_LIBOBJ invocations to module description.
1940         * m4/cloexec.m4: Remove file.
1941         * modules/cloexec (Files): Remove it.
1942         (configure.ac): Remove gl_CLOEXEC call.
1943         (Makefile.am): Augment lib_SOURCES.
1944
1945 2011-05-23  Bruno Haible  <bruno@clisp.org>
1946
1947         check-version: Move AC_LIBOBJ invocations to module description.
1948         * m4/check-version.m4: Remove file.
1949         * modules/check-version (Files): Remove it.
1950         (configure.ac): Remove gl_CHECK_VERSION call.
1951         (Makefile.am): Augment lib_SOURCES.
1952
1953 2011-05-23  Bruno Haible  <bruno@clisp.org>
1954
1955         chdir-safer: Move AC_LIBOBJ invocations to module description.
1956         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
1957         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
1958
1959 2011-05-23  Bruno Haible  <bruno@clisp.org>
1960
1961         canonicalize: Move AC_LIBOBJ invocations to module description.
1962         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
1963         AC_LIBOBJ invocation.
1964         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
1965
1966 2011-05-23  Bruno Haible  <bruno@clisp.org>
1967
1968         canon-host: Move AC_LIBOBJ invocations to module description.
1969         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
1970         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
1971         instead of gl_CANON_HOST.
1972         (Makefile.am): Augment lib_SOURCES.
1973
1974 2011-05-23  Bruno Haible  <bruno@clisp.org>
1975
1976         backupfile: Move AC_LIBOBJ invocations to module description.
1977         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
1978         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
1979
1980 2011-05-23  Bruno Haible  <bruno@clisp.org>
1981
1982         argmatch: Move AC_LIBOBJ invocations to module description.
1983         * m4/argmatch.m4: Remove file.
1984         * modules/argmatch (Files): Remove it.
1985         (configure.ac): Remove gl_ARGMATCH call.
1986         (Makefile.am): Augment lib_SOURCES.
1987
1988 2011-05-23  Bruno Haible  <bruno@clisp.org>
1989
1990         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
1991         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
1992         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
1993
1994 2011-05-23  Bruno Haible  <bruno@clisp.org>
1995
1996         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
1997         * m4/arcfour.m4: Remove file.
1998         * modules/crypto/arcfour (Files): Remove it.
1999         (configure.ac): Remove gl_ARCFOUR call.
2000         (Makefile.am): Augment lib_SOURCES.
2001
2002 2011-05-22  Bruno Haible  <bruno@clisp.org>
2003
2004         write: Move AC_LIBOBJ invocations to module description.
2005         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
2006         * modules/write (configure.ac): ... to here.
2007
2008 2011-05-22  Bruno Haible  <bruno@clisp.org>
2009
2010         wmemset: Move AC_LIBOBJ invocations to module description.
2011         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
2012         here...
2013         * modules/wmemset (configure.ac): ... to here.
2014
2015 2011-05-22  Bruno Haible  <bruno@clisp.org>
2016
2017         wmemmove: Move AC_LIBOBJ invocations to module description.
2018         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
2019         here...
2020         * modules/wmemmove (configure.ac): ... to here.
2021
2022 2011-05-22  Bruno Haible  <bruno@clisp.org>
2023
2024         wmemcpy: Move AC_LIBOBJ invocations to module description.
2025         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
2026         here...
2027         * modules/wmemcpy (configure.ac): ... to here.
2028
2029 2011-05-22  Bruno Haible  <bruno@clisp.org>
2030
2031         wmemcmp: Move AC_LIBOBJ invocations to module description.
2032         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
2033         here...
2034         * modules/wmemcmp (configure.ac): ... to here.
2035
2036 2011-05-22  Bruno Haible  <bruno@clisp.org>
2037
2038         wmemchr: Move AC_LIBOBJ invocations to module description.
2039         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
2040         here...
2041         * modules/wmemchr (configure.ac): ... to here.
2042
2043 2011-05-22  Bruno Haible  <bruno@clisp.org>
2044
2045         wcswidth: Move AC_LIBOBJ invocations to module description.
2046         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
2047         here...
2048         * modules/wcswidth (configure.ac): ... to here.
2049
2050 2011-05-22  Bruno Haible  <bruno@clisp.org>
2051
2052         wcwidth: Respect rules for use of AC_LIBOBJ.
2053         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
2054         invocation from here...
2055         * modules/wcwidth (configure.ac): ... to here.
2056         (Depends-on): Update conditions.
2057
2058 2011-05-22  Bruno Haible  <bruno@clisp.org>
2059
2060         wctype: Move AC_LIBOBJ invocations to module description.
2061         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
2062         invocation from here...
2063         * modules/wctype (configure.ac): ... to here.
2064         (Depends-on): Update conditions.
2065
2066 2011-05-22  Bruno Haible  <bruno@clisp.org>
2067
2068         wctrans: Move AC_LIBOBJ invocations to module description.
2069         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
2070         invocation from here...
2071         * modules/wctrans (configure.ac): ... to here.
2072
2073 2011-05-22  Bruno Haible  <bruno@clisp.org>
2074
2075         wctomb: Move AC_LIBOBJ invocations to module description.
2076         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
2077         invocations from here...
2078         * modules/wctomb (configure.ac): ... to here.
2079
2080 2011-05-22  Bruno Haible  <bruno@clisp.org>
2081
2082         wctob: Move AC_LIBOBJ invocations to module description.
2083         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
2084         gl_PREREQ_WCTOB invocations from here...
2085         * modules/wctob (configure.ac): ... to here.
2086         (Depends-on): Update conditions.
2087
2088 2011-05-22  Bruno Haible  <bruno@clisp.org>
2089
2090         wcsxfrm: Move AC_LIBOBJ invocations to module description.
2091         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
2092         here...
2093         * modules/wcsxfrm (configure.ac): ... to here.
2094
2095 2011-05-22  Bruno Haible  <bruno@clisp.org>
2096
2097         wcstok: Move AC_LIBOBJ invocations to module description.
2098         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
2099         * modules/wcstok (configure.ac): ... to here.
2100
2101 2011-05-22  Bruno Haible  <bruno@clisp.org>
2102
2103         wcsstr: Move AC_LIBOBJ invocations to module description.
2104         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
2105         * modules/wcsstr (configure.ac): ... to here.
2106
2107 2011-05-22  Bruno Haible  <bruno@clisp.org>
2108
2109         wcsspn: Move AC_LIBOBJ invocations to module description.
2110         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
2111         * modules/wcsspn (configure.ac): ... to here.
2112
2113 2011-05-22  Bruno Haible  <bruno@clisp.org>
2114
2115         wcsrtombs: Move AC_LIBOBJ invocations to module description.
2116         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
2117         gl_PREREQ_WCSRTOMBS invocations from here...
2118         * modules/wcsrtombs (configure.ac): ... to here.
2119
2120 2011-05-22  Bruno Haible  <bruno@clisp.org>
2121
2122         wcsrchr: Move AC_LIBOBJ invocations to module description.
2123         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
2124         here...
2125         * modules/wcsrchr (configure.ac): ... to here.
2126
2127 2011-05-22  Bruno Haible  <bruno@clisp.org>
2128
2129         wcspbrk: Move AC_LIBOBJ invocations to module description.
2130         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
2131         here...
2132         * modules/wcspbrk (configure.ac): ... to here.
2133
2134 2011-05-22  Bruno Haible  <bruno@clisp.org>
2135
2136         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
2137         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
2138         gl_PREREQ_WCSNRTOMBS invocations from here...
2139         * modules/wcsnrtombs (configure.ac): ... to here.
2140
2141 2011-05-22  Bruno Haible  <bruno@clisp.org>
2142
2143         wcsnlen: Move AC_LIBOBJ invocations to module description.
2144         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
2145         here...
2146         * modules/wcsnlen (configure.ac): ... to here.
2147
2148 2011-05-22  Bruno Haible  <bruno@clisp.org>
2149
2150         wcsncpy: Move AC_LIBOBJ invocations to module description.
2151         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
2152         here...
2153         * modules/wcsncpy (configure.ac): ... to here.
2154
2155 2011-05-22  Bruno Haible  <bruno@clisp.org>
2156
2157         wcsncmp: Move AC_LIBOBJ invocations to module description.
2158         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
2159         here...
2160         * modules/wcsncmp (configure.ac): ... to here.
2161
2162 2011-05-22  Bruno Haible  <bruno@clisp.org>
2163
2164         wcsncat: Move AC_LIBOBJ invocations to module description.
2165         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
2166         here...
2167         * modules/wcsncat (configure.ac): ... to here.
2168
2169 2011-05-22  Bruno Haible  <bruno@clisp.org>
2170
2171         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
2172         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
2173         from here...
2174         * modules/wcsncasecmp (configure.ac): ... to here.
2175
2176 2011-05-22  Bruno Haible  <bruno@clisp.org>
2177
2178         wcslen: Move AC_LIBOBJ invocations to module description.
2179         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
2180         * modules/wcslen (configure.ac): ... to here.
2181
2182 2011-05-22  Bruno Haible  <bruno@clisp.org>
2183
2184         wcsdup: Move AC_LIBOBJ invocations to module description.
2185         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
2186         * modules/wcsdup (configure.ac): ... to here.
2187
2188 2011-05-22  Bruno Haible  <bruno@clisp.org>
2189
2190         wcscspn: Move AC_LIBOBJ invocations to module description.
2191         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
2192         here...
2193         * modules/wcscspn (configure.ac): ... to here.
2194
2195 2011-05-22  Bruno Haible  <bruno@clisp.org>
2196
2197         wcscpy: Move AC_LIBOBJ invocations to module description.
2198         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
2199         * modules/wcscpy (configure.ac): ... to here.
2200
2201 2011-05-22  Bruno Haible  <bruno@clisp.org>
2202
2203         wcscoll: Move AC_LIBOBJ invocations to module description.
2204         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
2205         here...
2206         * modules/wcscoll (configure.ac): ... to here.
2207
2208 2011-05-22  Bruno Haible  <bruno@clisp.org>
2209
2210         wcscmp: Move AC_LIBOBJ invocations to module description.
2211         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
2212         * modules/wcscmp (configure.ac): ... to here.
2213
2214 2011-05-22  Bruno Haible  <bruno@clisp.org>
2215
2216         wcschr: Move AC_LIBOBJ invocations to module description.
2217         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
2218         * modules/wcschr (configure.ac): ... to here.
2219
2220 2011-05-22  Bruno Haible  <bruno@clisp.org>
2221
2222         wcscat: Move AC_LIBOBJ invocations to module description.
2223         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
2224         * modules/wcscat (configure.ac): ... to here.
2225
2226 2011-05-22  Bruno Haible  <bruno@clisp.org>
2227
2228         wcscasecmp: Move AC_LIBOBJ invocations to module description.
2229         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
2230         here...
2231         * modules/wcscasecmp (configure.ac): ... to here.
2232
2233 2011-05-22  Bruno Haible  <bruno@clisp.org>
2234
2235         wcrtomb: Move AC_LIBOBJ invocations to module description.
2236         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
2237         invocations from here...
2238         * modules/wcrtomb (configure.ac): ... to here.
2239
2240 2011-05-22  Bruno Haible  <bruno@clisp.org>
2241
2242         wcpncpy: Move AC_LIBOBJ invocations to module description.
2243         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
2244         here...
2245         * modules/wcpncpy (configure.ac): ... to here.
2246
2247 2011-05-22  Bruno Haible  <bruno@clisp.org>
2248
2249         wcpcpy: Move AC_LIBOBJ invocations to module description.
2250         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
2251         * modules/wcpcpy (configure.ac): ... to here.
2252
2253 2011-05-22  Bruno Haible  <bruno@clisp.org>
2254
2255         waitpid: Move AC_LIBOBJ invocations to module description.
2256         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
2257         invocation from here...
2258         * modules/waitpid (configure.ac): ... to here.
2259
2260 2011-05-22  Bruno Haible  <bruno@clisp.org>
2261
2262         utimensat: Move AC_LIBOBJ invocations to module description.
2263         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
2264         here...
2265         * modules/utimensat (configure.ac): ... to here.
2266
2267 2011-05-22  Bruno Haible  <bruno@clisp.org>
2268
2269         usleep: Move AC_LIBOBJ invocations to module description.
2270         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
2271         here...
2272         * modules/usleep (configure.ac): ... to here.
2273
2274 2011-05-22  Bruno Haible  <bruno@clisp.org>
2275
2276         unlockpt: Move AC_LIBOBJ invocations to module description.
2277         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
2278         gl_PREREQ_UNLOCKPT invocations from here...
2279         * modules/unlockpt (configure.ac): ... to here.
2280
2281 2011-05-22  Bruno Haible  <bruno@clisp.org>
2282
2283         unlink: Respect rules for use of AC_LIBOBJ.
2284         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
2285         * modules/unlink (configure.ac): ... to here.
2286
2287 2011-05-22  Bruno Haible  <bruno@clisp.org>
2288
2289         uname: Move AC_LIBOBJ invocations to module description.
2290         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
2291         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
2292         here...
2293         * modules/uname (configure.ac): ... to here.
2294
2295 2011-05-22  Bruno Haible  <bruno@clisp.org>
2296
2297         ttyname_r: Move AC_LIBOBJ invocations to module description.
2298         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
2299         gl_PREREQ_TTYNAME_R invocations from here...
2300         * modules/ttyname_r (configure.ac): ... to here.
2301
2302 2011-05-22  Bruno Haible  <bruno@clisp.org>
2303
2304         tsearch: Move AC_LIBOBJ invocations to module description.
2305         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
2306         invocations from here...
2307         * modules/tsearch (configure.ac): ... to here.
2308
2309 2011-05-22  Bruno Haible  <bruno@clisp.org>
2310
2311         towctrans: Move AC_LIBOBJ invocations to module description.
2312         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
2313         AC_LIBOBJ invocation from here...
2314         * modules/towctrans (configure.ac): ... to here.
2315
2316 2011-05-22  Bruno Haible  <bruno@clisp.org>
2317
2318         tmpfile: Move AC_LIBOBJ invocations to module description.
2319         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
2320         invocations from here...
2321         * modules/tmpfile (configure.ac): ... to here.
2322
2323 2011-05-22  Bruno Haible  <bruno@clisp.org>
2324
2325         times: Move AC_LIBOBJ invocations to module description.
2326         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
2327         * modules/times (configure.ac): ... to here.
2328
2329 2011-05-22  Bruno Haible  <bruno@clisp.org>
2330
2331         time_r: Move AC_LIBOBJ invocations to module description.
2332         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
2333         invocations from here...
2334         * modules/time_r (configure.ac): ... to here.
2335
2336 2011-05-22  Bruno Haible  <bruno@clisp.org>
2337
2338         timegm: Move AC_LIBOBJ invocations to module description.
2339         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
2340         invocations from here...
2341         * modules/timegm (configure.ac): ... to here.
2342
2343 2011-05-22  Bruno Haible  <bruno@clisp.org>
2344
2345         tcgetsid: Move AC_LIBOBJ invocations to module description.
2346         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
2347         and gl_PREREQ_TCGETSID invocations from here...
2348         * modules/tcgetsid (configure.ac): ... to here.
2349         (Depends-on): Update conditions.
2350
2351 2011-05-22  Bruno Haible  <bruno@clisp.org>
2352
2353         symlinkat: Move AC_LIBOBJ invocations to module description.
2354         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
2355         here...
2356         * modules/symlinkat (configure.ac): ... to here.
2357
2358 2011-05-22  Bruno Haible  <bruno@clisp.org>
2359
2360         symlink: Move AC_LIBOBJ invocations to module description.
2361         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
2362         here...
2363         * modules/symlink (configure.ac): ... to here.
2364
2365 2011-05-22  Bruno Haible  <bruno@clisp.org>
2366
2367         strverscmp: Move AC_LIBOBJ invocations to module description.
2368         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
2369         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
2370         from here...
2371         * modules/strverscmp (configure.ac): ... to here.
2372
2373 2011-05-22  Bruno Haible  <bruno@clisp.org>
2374
2375         strtok_r: Move AC_LIBOBJ invocations to module description.
2376         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
2377         and gl_PREREQ_STRTOK_R invocations from here...
2378         * modules/strtok_r (configure.ac): ... to here.
2379         (Depends-on): Update conditions.
2380
2381 2011-05-22  Bruno Haible  <bruno@clisp.org>
2382
2383         strtoumax: Move AC_LIBOBJ invocations to module description.
2384         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
2385         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
2386         from here...
2387         * modules/strtoumax (configure.ac): ... to here.
2388
2389 2011-05-22  Bruno Haible  <bruno@clisp.org>
2390
2391         strtoimax: Move AC_LIBOBJ invocations to module description.
2392         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
2393         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
2394         from here...
2395         * modules/strtoimax (configure.ac): ... to here.
2396
2397 2011-05-22  Bruno Haible  <bruno@clisp.org>
2398
2399         strtoull: Move AC_LIBOBJ invocations to module description.
2400         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
2401         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
2402         from here...
2403         * modules/strtoull (configure.ac): ... to here.
2404
2405 2011-05-22  Bruno Haible  <bruno@clisp.org>
2406
2407         strtoll: Move AC_LIBOBJ invocations to module description.
2408         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
2409         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
2410         here...
2411         * modules/strtoll (configure.ac): ... to here.
2412
2413 2011-05-22  Bruno Haible  <bruno@clisp.org>
2414
2415         strtoul: Move AC_LIBOBJ invocations to module description.
2416         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
2417         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
2418         * modules/strtoul (configure.ac): ... to here.
2419
2420 2011-05-22  Bruno Haible  <bruno@clisp.org>
2421
2422         strtol: Move AC_LIBOBJ invocations to module description.
2423         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
2424         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
2425         * modules/strtol (configure.ac): ... to here.
2426
2427 2011-05-22  Bruno Haible  <bruno@clisp.org>
2428
2429         strtod: Move AC_LIBOBJ invocations to module description.
2430         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
2431         invocations from here...
2432         * modules/strtod (configure.ac): ... to here.
2433
2434 2011-05-22  Bruno Haible  <bruno@clisp.org>
2435
2436         strstr*: Move AC_LIBOBJ invocations to module description.
2437         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
2438         invocations from here...
2439         * modules/strstr-simple (configure.ac): ... to here.
2440         * modules/strstr (configure.ac): ... and here.
2441
2442 2011-05-22  Bruno Haible  <bruno@clisp.org>
2443
2444         strsignal: Move AC_LIBOBJ invocations to module description.
2445         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
2446         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
2447         * modules/strsignal (configure.ac): ... to here.
2448         (Depends-on): Update conditions.
2449
2450 2011-05-22  Bruno Haible  <bruno@clisp.org>
2451
2452         strsep: Move AC_LIBOBJ invocations to module description.
2453         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
2454         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
2455         here...
2456         * modules/strsep (configure.ac): ... to here.
2457
2458 2011-05-22  Bruno Haible  <bruno@clisp.org>
2459
2460         strptime: Move AC_LIBOBJ invocations to module description.
2461         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
2462         gl_PREREQ_STRPTIME invocations from here...
2463         * modules/strptime (configure.ac): ... to here.
2464
2465 2011-05-22  Bruno Haible  <bruno@clisp.org>
2466
2467         strpbrk: Move AC_LIBOBJ invocations to module description.
2468         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
2469         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
2470         here...
2471         * modules/strpbrk (configure.ac): ... to here.
2472
2473 2011-05-22  Bruno Haible  <bruno@clisp.org>
2474
2475         strnlen: Move AC_LIBOBJ invocations to module description.
2476         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
2477         invocations from here...
2478         * modules/strnlen (configure.ac): ... to here.
2479
2480 2011-05-22  Bruno Haible  <bruno@clisp.org>
2481
2482         strndup: Move AC_LIBOBJ invocations to module description.
2483         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
2484         invocations from here...
2485         * modules/strndup (configure.ac): ... to here.
2486         (Depends-on): Update conditions.
2487
2488 2011-05-22  Bruno Haible  <bruno@clisp.org>
2489
2490         strncat: Move AC_LIBOBJ invocations to module description.
2491         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
2492         invocations from here...
2493         * modules/strncat (configure.ac): ... to here.
2494
2495 2011-05-22  Bruno Haible  <bruno@clisp.org>
2496
2497         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
2498         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
2499         invocations from here...
2500         * modules/strdup (configure.ac): ... to here.
2501         * modules/strdup-posix (configure.ac): ... and here.
2502
2503 2011-05-22  Bruno Haible  <bruno@clisp.org>
2504
2505         strcspn: Move AC_LIBOBJ invocations to module description.
2506         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
2507         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
2508         here...
2509         * modules/strcspn (configure.ac): ... to here.
2510
2511 2011-05-22  Bruno Haible  <bruno@clisp.org>
2512
2513         strchrnul: Move AC_LIBOBJ invocations to module description.
2514         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
2515         gl_PREREQ_STRCHRNUL invocations from here...
2516         * modules/strchrnul (configure.ac): ... to here.
2517
2518 2011-05-22  Bruno Haible  <bruno@clisp.org>
2519
2520         strcasestr*: Move AC_LIBOBJ invocations to module description.
2521         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
2522         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
2523         * modules/strcasestr-simple (configure.ac): ... to here.
2524         * modules/strcasestr (configure.ac): ... and here.
2525
2526 2011-05-22  Bruno Haible  <bruno@clisp.org>
2527
2528         strcase: Move AC_LIBOBJ invocations to module description.
2529         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
2530         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
2531         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
2532         gl_PREREQ_STRNCASECMP invocations from here...
2533         * modules/strcase (configure.ac): ... to here.
2534
2535 2011-05-22  Bruno Haible  <bruno@clisp.org>
2536
2537         stpncpy: Move AC_LIBOBJ invocations to module description.
2538         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
2539         here...
2540         * modules/stpncpy (configure.ac): ... to here.
2541
2542 2011-05-22  Bruno Haible  <bruno@clisp.org>
2543
2544         stpcpy: Move AC_LIBOBJ invocations to module description.
2545         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
2546         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
2547         here...
2548         * modules/stpcpy (configure.ac): ... to here.
2549
2550 2011-05-21  Bruno Haible  <bruno@clisp.org>
2551
2552         stat: Move AC_LIBOBJ invocations to module description.
2553         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
2554         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
2555         here...
2556         * modules/stat (configure.ac): ... to here.
2557
2558 2011-05-21  Bruno Haible  <bruno@clisp.org>
2559
2560         sleep: Move AC_LIBOBJ invocations to module description.
2561         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
2562         * modules/sleep (configure.ac): ... to here.
2563
2564 2011-05-21  Bruno Haible  <bruno@clisp.org>
2565
2566         signbit: Move AC_LIBOBJ invocations to module description.
2567         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
2568         * modules/signbit (configure.ac): ... to here.
2569
2570 2011-05-21  Bruno Haible  <bruno@clisp.org>
2571
2572         sigprocmask: Move AC_LIBOBJ invocations to module description.
2573         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
2574         gl_PREREQ_SIGPROMASK invocations from here...
2575         * modules/sigprocmask (configure.ac): ... to here.
2576
2577 2011-05-21  Bruno Haible  <bruno@clisp.org>
2578
2579         sigaction: Move AC_LIBOBJ invocations to module description.
2580         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
2581         gl_PREREQ_SIGACTION invocations from here...
2582         * modules/sigaction (configure.ac): ... to here.
2583
2584 2011-05-21  Bruno Haible  <bruno@clisp.org>
2585
2586         sig2str: Move AC_LIBOBJ invocations to module description.
2587         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
2588         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
2589         here...
2590         * modules/sig2str (configure.ac): ... to here.
2591
2592 2011-05-21  Bruno Haible  <bruno@clisp.org>
2593
2594         setlocale: Move AC_LIBOBJ invocations to module description.
2595         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
2596         gl_PREREQ_SETLOCALE invocations from here...
2597         * modules/setlocale (configure.ac): ... to here.
2598
2599 2011-05-21  Bruno Haible  <bruno@clisp.org>
2600
2601         unsetenv: Move AC_LIBOBJ invocations to module description.
2602         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
2603         and gl_PREREQ_UNSETENV invocations from here...
2604         * modules/unsetenv (configure.ac): ... to here.
2605         (Depends-on): Update.
2606
2607 2011-05-21  Bruno Haible  <bruno@clisp.org>
2608
2609         setenv: Move AC_LIBOBJ invocations to module description.
2610         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
2611         here...
2612         * modules/setenv (configure.ac): ... to here.
2613
2614 2011-05-21  Bruno Haible  <bruno@clisp.org>
2615
2616         selinux-h: Move AC_LIBOBJ invocations to module description.
2617         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
2618         AC_LIBOBJ invocation from here...
2619         * modules/selinux-h (configure.ac): ... to here.
2620
2621 2011-05-21  Bruno Haible  <bruno@clisp.org>
2622
2623         select: Respect rules for use of AC_LIBOBJ.
2624         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
2625         here...
2626         * modules/select (configure.ac): ... to here.
2627
2628 2011-05-21  Bruno Haible  <bruno@clisp.org>
2629
2630         scandir: Move AC_LIBOBJ invocations to module description.
2631         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
2632         invocations from here...
2633         * modules/scandir (configure.ac): ... to here.
2634
2635 2011-05-21  Bruno Haible  <bruno@clisp.org>
2636
2637         rpmatch: Move AC_LIBOBJ invocations to module description.
2638         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
2639         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
2640         here...
2641         * modules/rpmatch (configure.ac): ... to here.
2642
2643 2011-05-21  Bruno Haible  <bruno@clisp.org>
2644
2645         rmdir: Respect rules for use of AC_LIBOBJ.
2646         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
2647         * modules/rmdir (configure.ac): ... to here.
2648
2649 2011-05-21  Bruno Haible  <bruno@clisp.org>
2650
2651         renameat: Move AC_LIBOBJ invocations to module description.
2652         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
2653         here...
2654         * modules/renameat (configure.ac): ... to here.
2655
2656 2011-05-21  Bruno Haible  <bruno@clisp.org>
2657
2658         rename: Respect rules for use of AC_LIBOBJ.
2659         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
2660         here...
2661         * modules/rename (configure.ac): ... to here.
2662
2663 2011-05-21  Bruno Haible  <bruno@clisp.org>
2664
2665         remove: Move AC_LIBOBJ invocations to module description.
2666         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
2667         here...
2668         * modules/remove (configure.ac): ... to here.
2669
2670 2011-05-21  Bruno Haible  <bruno@clisp.org>
2671
2672         relocatable-lib: Move AC_LIBOBJ invocations to module description.
2673         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
2674         macro.
2675         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
2676         * modules/relocatable-lib (configure.ac): ... to here.
2677         * modules/relocatable-prog-wrapper (configure.ac): Invoke
2678         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
2679
2680 2011-05-21  Bruno Haible  <bruno@clisp.org>
2681
2682         relocatable-prog: Move AC_LIBOBJ invocations to module description.
2683         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
2684         here...
2685         * modules/relocatable-prog (configure.ac): ... to here.
2686
2687 2011-05-21  Bruno Haible  <bruno@clisp.org>
2688
2689         regex: Move AC_LIBOBJ invocations to module description.
2690         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
2691         invocations from here...
2692         * modules/regex (configure.ac): ... to here.
2693
2694 2011-05-21  Bruno Haible  <bruno@clisp.org>
2695
2696         realloc-*: Move AC_LIBOBJ invocations to module description.
2697         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
2698         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
2699         AC_LIBOBJ invocations from here...
2700         * modules/realloc-gnu (configure.ac): ... to here.
2701         * modules/realloc-posix (configure.ac): ... and here.
2702
2703 2011-05-21  Bruno Haible  <bruno@clisp.org>
2704
2705         readutmp: Move AC_LIBOBJ invocations to module description.
2706         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
2707         * modules/readutmp (configure.ac): ... to here.
2708
2709 2011-05-21  Bruno Haible  <bruno@clisp.org>
2710
2711         readlinkat: Move AC_LIBOBJ invocations to module description.
2712         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
2713         here...
2714         * modules/readlinkat (configure.ac): ... to here.
2715
2716 2011-05-21  Bruno Haible  <bruno@clisp.org>
2717
2718         readlink: Move AC_LIBOBJ invocations to module description.
2719         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
2720         gl_PREREQ_READLINK invocations from here...
2721         * modules/readlink (configure.ac): ... to here.
2722
2723 2011-05-21  Bruno Haible  <bruno@clisp.org>
2724
2725         readline: Move AC_LIBOBJ invocations to module description.
2726         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
2727         gl_PREREQ_READLINE invocations from here...
2728         * modules/readline (configure.ac): ... to here.
2729
2730 2011-05-21  Bruno Haible  <bruno@clisp.org>
2731
2732         read: Move AC_LIBOBJ invocations to module description.
2733         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
2734         * modules/read (configure.ac): ... to here.
2735
2736 2011-05-21  Bruno Haible  <bruno@clisp.org>
2737
2738         rawmemchr: Move AC_LIBOBJ invocations to module description.
2739         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
2740         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
2741         from here...
2742         * modules/rawmemchr (configure.ac): ... to here.
2743
2744 2011-05-21  Bruno Haible  <bruno@clisp.org>
2745
2746         random_r: Move AC_LIBOBJ invocations to module description.
2747         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
2748         gl_PREREQ_RANDOM_R invocations from here...
2749         * modules/random_r (configure.ac): ... to here.
2750
2751 2011-05-21  Bruno Haible  <bruno@clisp.org>
2752
2753         pwrite: Move AC_LIBOBJ invocations to module description.
2754         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
2755         * modules/pwrite (configure.ac): ... to here.
2756
2757 2011-05-21  Bruno Haible  <bruno@clisp.org>
2758
2759         putenv: Move AC_LIBOBJ invocations to module description.
2760         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
2761         * modules/putenv (configure.ac): ... to here.
2762
2763 2011-05-21  Bruno Haible  <bruno@clisp.org>
2764
2765         login_tty: Move AC_LIBOBJ invocations to module description.
2766         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
2767         * modules/login_tty (configure.ac): ... to here.
2768
2769 2011-05-21  Bruno Haible  <bruno@clisp.org>
2770
2771         openpty: Move AC_LIBOBJ invocations to module description.
2772         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
2773         * modules/openpty (configure.ac): ... to here.
2774
2775 2011-05-21  Bruno Haible  <bruno@clisp.org>
2776
2777         forkpty: Move AC_LIBOBJ invocations to module description.
2778         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
2779         * modules/forkpty (configure.ac): ... to here.
2780
2781 2011-05-21  Bruno Haible  <bruno@clisp.org>
2782
2783         ptsname: Move AC_LIBOBJ invocations to module description.
2784         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
2785         invocations from here...
2786         * modules/ptsname (configure.ac): ... to here.
2787
2788 2011-05-21  Bruno Haible  <bruno@clisp.org>
2789
2790         pread: Move AC_LIBOBJ invocations to module description.
2791         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
2792         * modules/pread (configure.ac): ... to here.
2793
2794 2011-05-21  Bruno Haible  <bruno@clisp.org>
2795
2796         posix_spawn*: Move AC_LIBOBJ invocations to module description.
2797         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
2798         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
2799         * modules/posix_spawn (configure.ac): ... to here.
2800         * modules/posix_spawnp (configure.ac): ... and here.
2801
2802 2011-05-21  Bruno Haible  <bruno@clisp.org>
2803
2804         popen: Move AC_LIBOBJ invocations to module description.
2805         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
2806         invocations from here...
2807         * modules/popen (configure.ac): ... to here.
2808
2809 2011-05-21  Bruno Haible  <bruno@clisp.org>
2810
2811         poll: Move AC_LIBOBJ invocations to module description.
2812         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
2813         invocations from here...
2814         * modules/poll (configure.ac): ... to here.
2815
2816 2011-05-21  Bruno Haible  <bruno@clisp.org>
2817
2818         pipe-posix: Move AC_LIBOBJ invocations to module description.
2819         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
2820         * modules/pipe-posix (configure.ac): ... to here.
2821
2822 2011-05-21  Bruno Haible  <bruno@clisp.org>
2823
2824         openat: Respect rules for use of AC_LIBOBJ.
2825         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
2826         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
2827         * modules/openat (configure.ac): ... to here.
2828
2829 2011-05-21  Bruno Haible  <bruno@clisp.org>
2830
2831         obstack-printf*: Move AC_LIBOBJ invocations to module description.
2832         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
2833         invocation from here...
2834         * modules/obstack-printf (configure.ac): ... to here.
2835         * modules/obstack-printf-posix (configure.ac): ... and here.
2836
2837 2011-05-21  Bruno Haible  <bruno@clisp.org>
2838
2839         nl_langinfo: Move AC_LIBOBJ invocations to module description.
2840         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
2841         from here...
2842         * modules/nl_langinfo (configure.ac): ... to here.
2843
2844 2011-05-21  Bruno Haible  <bruno@clisp.org>
2845
2846         nanosleep: Move AC_LIBOBJ invocations to module description.
2847         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
2848         gl_PREREQ_NANOSLEEP invocations from here...
2849         * modules/nanosleep (configure.ac): ... to here.
2850
2851 2011-05-21  Bruno Haible  <bruno@clisp.org>
2852
2853         mountlist: Move AC_LIBOBJ invocations to module description.
2854         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
2855         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
2856         * modules/mountlist (configure.ac): ... to here.
2857
2858 2011-05-21  Bruno Haible  <bruno@clisp.org>
2859
2860         mktime: Respect rules for use of AC_LIBOBJ.
2861         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
2862         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
2863         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
2864         (gl_FUNC_MKTIME_INTERNAL): ... and here...
2865         * modules/mktime (configure.ac): ... to here.
2866         * modules/mktime-internal (configure.ac): ... and here.
2867         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
2868
2869 2011-05-21  Bruno Haible  <bruno@clisp.org>
2870
2871         mkstemps: Move AC_LIBOBJ invocations to module description.
2872         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
2873         here...
2874         * modules/mkstemps (configure.ac): ... to here.
2875
2876 2011-05-21  Bruno Haible  <bruno@clisp.org>
2877
2878         mkstemp: Move AC_LIBOBJ invocations to module description.
2879         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
2880         gl_PREREQ_MKSTEMP invocations from here...
2881         * modules/mkstemp (configure.ac): ... to here.
2882
2883 2011-05-21  Bruno Haible  <bruno@clisp.org>
2884
2885         mkostemps: Move AC_LIBOBJ invocations to module description.
2886         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
2887         here...
2888         * modules/mkostemps (configure.ac): ... to here.
2889
2890 2011-05-21  Bruno Haible  <bruno@clisp.org>
2891
2892         mkostemp: Move AC_LIBOBJ invocations to module description.
2893         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
2894         gl_PREREQ_MKOSTEMP invocations from here...
2895         * modules/mkostemp (configure.ac): ... to here.
2896
2897 2011-05-21  Bruno Haible  <bruno@clisp.org>
2898
2899         mknod: Move AC_LIBOBJ invocations to module description.
2900         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
2901         * modules/mknod (configure.ac): ... to here.
2902
2903 2011-05-21  Bruno Haible  <bruno@clisp.org>
2904
2905         mkfifoat: Move AC_LIBOBJ invocations to module description.
2906         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
2907         here...
2908         * modules/mkfifoat (configure.ac): ... to here.
2909
2910 2011-05-21  Bruno Haible  <bruno@clisp.org>
2911
2912         mkfifo: Respect rules for use of AC_LIBOBJ.
2913         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
2914         here...
2915         * modules/mkfifo (configure.ac): ... to here.
2916
2917 2011-05-21  Bruno Haible  <bruno@clisp.org>
2918
2919         mkdtemp: Move AC_LIBOBJ invocations to module description.
2920         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
2921         invocations from here...
2922         * modules/mkdtemp (configure.ac): ... to here.
2923
2924 2011-05-21  Bruno Haible  <bruno@clisp.org>
2925
2926         mkdir: Move AC_LIBOBJ invocations to module description.
2927         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
2928         * modules/mkdir (configure.ac): ... to here.
2929
2930 2011-05-21  Bruno Haible  <bruno@clisp.org>
2931
2932         memset: Move AC_LIBOBJ invocations to module description.
2933         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
2934         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
2935         here...
2936         * modules/memset (configure.ac): ... to here.
2937
2938 2011-05-21  Bruno Haible  <bruno@clisp.org>
2939
2940         memrchr: Move AC_LIBOBJ invocations to module description.
2941         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
2942         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
2943         here...
2944         * modules/memrchr (configure.ac): ... to here.
2945
2946 2011-05-21  Bruno Haible  <bruno@clisp.org>
2947
2948         mempcpy: Move AC_LIBOBJ invocations to module description.
2949         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
2950         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
2951         here...
2952         * modules/mempcpy (configure.ac): ... to here.
2953
2954 2011-05-21  Bruno Haible  <bruno@clisp.org>
2955
2956         memmove: Move AC_LIBOBJ invocations to module description.
2957         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
2958         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
2959         here...
2960         * modules/memmove (configure.ac): ... to here.
2961
2962 2011-05-21  Bruno Haible  <bruno@clisp.org>
2963
2964         memmem*: Move AC_LIBOBJ invocations to module description.
2965         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
2966         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
2967         here...
2968         (gl_FUNC_MEMMEM): ... and here...
2969         * modules/memmem-simple (configure.ac): ... to here.
2970         * modules/memmem (configure.ac): ... and here.
2971
2972 2011-05-21  Bruno Haible  <bruno@clisp.org>
2973
2974         memcpy: Move AC_LIBOBJ invocations to module description.
2975         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
2976         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
2977         here...
2978         * modules/memcpy (configure.ac): ... to here.
2979
2980 2011-05-21  Bruno Haible  <bruno@clisp.org>
2981
2982         memcmp: Simplify autoconf macro.
2983         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
2984         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
2985         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
2986
2987 2011-05-21  Bruno Haible  <bruno@clisp.org>
2988
2989         memcmp: Move AC_LIBOBJ invocations to module description.
2990         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
2991         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
2992         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
2993         * modules/memcmp (configure.ac): ... to here.
2994         (Depends-on): Update conditions.
2995
2996 2011-05-21  Bruno Haible  <bruno@clisp.org>
2997
2998         memchr: Respect rules for use of AC_LIBOBJ.
2999         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
3000         invocations from here...
3001         * modules/memchr (configure.ac): ... to here.
3002
3003 2011-05-21  Bruno Haible  <bruno@clisp.org>
3004
3005         mbtowc: Move AC_LIBOBJ invocations to module description.
3006         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
3007         invocations from here...
3008         * modules/mbtowc (configure.ac): ... to here.
3009
3010 2011-05-21  Bruno Haible  <bruno@clisp.org>
3011
3012         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
3013         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
3014         gl_PREREQ_MBSRTOWCS invocations from here...
3015         * modules/mbsrtowcs (configure.ac): ... to here.
3016
3017 2011-05-21  Bruno Haible  <bruno@clisp.org>
3018
3019         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
3020         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
3021         gl_PREREQ_MBSNRTOWCS invocations from here...
3022         * modules/mbsnrtowcs (configure.ac): ... to here.
3023
3024 2011-05-21  Bruno Haible  <bruno@clisp.org>
3025
3026         mbsinit: Move AC_LIBOBJ invocations to module description.
3027         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
3028         invocations from here...
3029         * modules/mbsinit (configure.ac): ... to here.
3030
3031 2011-05-21  Bruno Haible  <bruno@clisp.org>
3032
3033         mbrlen: Move AC_LIBOBJ invocations to module description.
3034         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
3035         invocations from here...
3036         * modules/mbrlen (configure.ac): ... to here.
3037
3038 2011-05-21  Bruno Haible  <bruno@clisp.org>
3039
3040         mbrtowc: Respect rules for use of AC_LIBOBJ.
3041         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
3042         invocations from here...
3043         * modules/mbrtowc (configure.ac): ... to here.
3044
3045 2011-05-21  Bruno Haible  <bruno@clisp.org>
3046
3047         malloc-*: Move AC_LIBOBJ invocations to module description.
3048         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
3049         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
3050         AC_LIBOBJ invocations from here...
3051         * modules/malloc-gnu (configure.ac): ... to here.
3052         * modules/malloc-posix (configure.ac): ... and here.
3053
3054 2011-05-21  Bruno Haible  <bruno@clisp.org>
3055
3056         lstat, openat: Respect rules for use of AC_LIBOBJ.
3057         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
3058         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
3059         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
3060         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
3061         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
3062         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
3063         here.
3064         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
3065
3066 2011-05-21  Bruno Haible  <bruno@clisp.org>
3067
3068         lseek: Move AC_LIBOBJ invocations to module description.
3069         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
3070         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
3071         * modules/lseek (configure.ac): ... to here.
3072
3073 2011-05-21  Bruno Haible  <bruno@clisp.org>
3074
3075         linkat: Move AC_LIBOBJ invocations to module description.
3076         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
3077         here...
3078         * modules/linkat (configure.ac): ... to here.
3079
3080 2011-05-21  Bruno Haible  <bruno@clisp.org>
3081
3082         link: Respect rules for use of AC_LIBOBJ.
3083         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
3084         * modules/link (configure.ac): ... to here.
3085
3086 2011-05-21  Bruno Haible  <bruno@clisp.org>
3087
3088         lchown: Move AC_LIBOBJ invocations to module description.
3089         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
3090         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
3091         * modules/lchown (configure.ac): ... to here.
3092
3093 2011-05-21  Bruno Haible  <bruno@clisp.org>
3094
3095         iswctype: Move AC_LIBOBJ invocations to module description.
3096         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
3097         here...
3098         * modules/iswctype (configure.ac): ... to here.
3099
3100 2011-05-21  Bruno Haible  <bruno@clisp.org>
3101
3102         iswblank: Move AC_LIBOBJ invocations to module description.
3103         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
3104         here...
3105         * modules/iswblank (configure.ac): ... to here.
3106
3107 2011-05-21  Bruno Haible  <bruno@clisp.org>
3108
3109         atanl: Move AC_LIBOBJ invocations to module description.
3110         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
3111         * modules/atanl (configure.ac): ... to here.
3112
3113 2011-05-21  Bruno Haible  <bruno@clisp.org>
3114
3115         acosl: Move AC_LIBOBJ invocations to module description.
3116         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
3117         * modules/acosl (configure.ac): ... to here.
3118
3119 2011-05-21  Bruno Haible  <bruno@clisp.org>
3120
3121         asinl: Respect rules for use of AC_LIBOBJ.
3122         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
3123         * modules/asinl (configure.ac): ... to here.
3124
3125 2011-05-21  Bruno Haible  <bruno@clisp.org>
3126
3127         tanl: Move AC_LIBOBJ invocations to module description.
3128         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
3129         * modules/tanl (configure.ac): ... to here.
3130
3131 2011-05-21  Bruno Haible  <bruno@clisp.org>
3132
3133         cosl: Move AC_LIBOBJ invocations to module description.
3134         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
3135         * modules/cosl (configure.ac): ... to here.
3136
3137 2011-05-21  Bruno Haible  <bruno@clisp.org>
3138
3139         sinl: Move AC_LIBOBJ invocations to module description.
3140         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
3141         * modules/sinl (configure.ac): ... to here.
3142
3143 2011-05-21  Bruno Haible  <bruno@clisp.org>
3144
3145         logl: Move AC_LIBOBJ invocations to module description.
3146         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
3147         * modules/logl (configure.ac): ... to here.
3148
3149 2011-05-21  Bruno Haible  <bruno@clisp.org>
3150
3151         expl: Move AC_LIBOBJ invocations to module description.
3152         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
3153         * modules/expl (configure.ac): ... to here.
3154
3155 2011-05-21  Bruno Haible  <bruno@clisp.org>
3156
3157         roundl: Move AC_LIBOBJ invocations to module description.
3158         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
3159         * modules/roundl (configure.ac): ... to here.
3160
3161 2011-05-21  Bruno Haible  <bruno@clisp.org>
3162
3163         round: Move AC_LIBOBJ invocations to module description.
3164         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
3165         * modules/round (configure.ac): ... to here.
3166
3167 2011-05-21  Bruno Haible  <bruno@clisp.org>
3168
3169         roundf: Move AC_LIBOBJ invocations to module description.
3170         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
3171         * modules/roundf (configure.ac): ... to here.
3172
3173 2011-05-21  Bruno Haible  <bruno@clisp.org>
3174
3175         truncl: Move AC_LIBOBJ invocations to module description.
3176         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
3177         * modules/truncl (configure.ac): ... to here.
3178
3179 2011-05-21  Bruno Haible  <bruno@clisp.org>
3180
3181         trunc: Move AC_LIBOBJ invocations to module description.
3182         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
3183         * modules/trunc (configure.ac): ... to here.
3184
3185 2011-05-21  Bruno Haible  <bruno@clisp.org>
3186
3187         truncf: Move AC_LIBOBJ invocations to module description.
3188         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
3189         * modules/truncf (configure.ac): ... to here.
3190
3191 2011-05-21  Bruno Haible  <bruno@clisp.org>
3192
3193         ceill: Move AC_LIBOBJ invocations to module description.
3194         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
3195         * modules/ceill (configure.ac): ... to here.
3196
3197 2011-05-21  Bruno Haible  <bruno@clisp.org>
3198
3199         ceil: Move AC_LIBOBJ invocations to module description.
3200         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
3201         * modules/ceil (configure.ac): ... to here.
3202
3203 2011-05-21  Bruno Haible  <bruno@clisp.org>
3204
3205         ceilf: Move AC_LIBOBJ invocations to module description.
3206         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
3207         * modules/ceilf (configure.ac): ... to here.
3208
3209 2011-05-21  Bruno Haible  <bruno@clisp.org>
3210
3211         floorl: Respect rules for use of AC_LIBOBJ.
3212         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
3213         * modules/floorl (configure.ac): ... to here.
3214
3215 2011-05-21  Bruno Haible  <bruno@clisp.org>
3216
3217         floor: Respect rules for use of AC_LIBOBJ.
3218         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
3219         * modules/floor (configure.ac): ... to here.
3220
3221 2011-05-21  Bruno Haible  <bruno@clisp.org>
3222
3223         floorf: Move AC_LIBOBJ invocations to module description.
3224         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
3225         * modules/floorf (configure.ac): ... to here.
3226
3227 2011-05-20  Bruno Haible  <bruno@clisp.org>
3228
3229         sqrtl: Respect rules for use of AC_LIBOBJ.
3230         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
3231         * modules/sqrtl (configure.ac): ... to here.
3232
3233 2011-05-20  Bruno Haible  <bruno@clisp.org>
3234
3235         ldexpl: Respect rules for use of AC_LIBOBJ.
3236         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
3237         * modules/ldexpl (configure.ac): ... to here.
3238
3239 2011-05-20  Bruno Haible  <bruno@clisp.org>
3240
3241         frexpl*: Respect rules for use of AC_LIBOBJ.
3242         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
3243         invocation from here...
3244         * modules/frexpl (configure.ac): ... to here.
3245         * modules/frexpl-nolibm (configure.ac): ... and here.
3246
3247 2011-05-20  Bruno Haible  <bruno@clisp.org>
3248
3249         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
3250         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
3251         invocation from here...
3252         * modules/frexp (configure.ac): ... to here.
3253         * modules/frexp-nolibm (configure.ac): ... and here.
3254
3255 2011-05-20  Bruno Haible  <bruno@clisp.org>
3256
3257         isnan: Respect rules for use of AC_LIBOBJ.
3258         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
3259         invocations here.
3260         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
3261         REPLACE_ISNAN.
3262         * modules/isnand (configure.ac): Likewise.
3263         * modules/isnanl (configure.ac): Likewise.
3264
3265 2011-05-20  Bruno Haible  <bruno@clisp.org>
3266
3267         isnanl*: Respect rules for use of AC_LIBOBJ.
3268         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
3269         invocation from here...
3270         * modules/isnanl (configure.ac): ... to here.
3271         * modules/isnanl-nolibm (configure.ac): ... and here.
3272
3273 2011-05-20  Bruno Haible  <bruno@clisp.org>
3274
3275         isnand*: Move AC_LIBOBJ invocations to module description.
3276         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
3277         invocation from here...
3278         * modules/isnand (configure.ac): ... to here.
3279         * modules/isnand-nolibm (configure.ac): ... and here.
3280
3281 2011-05-20  Bruno Haible  <bruno@clisp.org>
3282
3283         isnanf*: Move AC_LIBOBJ invocations to module description.
3284         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
3285         invocation from here...
3286         * modules/isnanf (configure.ac): ... to here.
3287         * modules/isnanf-nolibm (configure.ac): ... and here.
3288
3289 2011-05-20  Bruno Haible  <bruno@clisp.org>
3290
3291         isnan*: Separate the AC_LIBOBJ invocations.
3292         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
3293         AC_LIBOBJ invocation.
3294         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
3295         here.
3296         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
3297         AC_LIBOBJ invocation.
3298         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
3299         here.
3300         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
3301         AC_LIBOBJ invocation.
3302         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
3303         here.
3304         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
3305
3306 2011-05-08  Bruno Haible  <bruno@clisp.org>
3307
3308         isinf: Move AC_LIBOBJ invocations to module description.
3309         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
3310         * modules/isinf (configure.ac): ... to here.
3311
3312 2011-05-08  Bruno Haible  <bruno@clisp.org>
3313
3314         isfinite: Move AC_LIBOBJ invocations to module description.
3315         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
3316         * modules/isfinite (configure.ac): ... to here.
3317
3318 2011-05-08  Bruno Haible  <bruno@clisp.org>
3319
3320         isblank: Move AC_LIBOBJ invocations to module description.
3321         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
3322         here...
3323         * modules/isblank (configure.ac): ... to here.
3324
3325 2011-05-08  Bruno Haible  <bruno@clisp.org>
3326
3327         isapipe: Move AC_LIBOBJ invocations to module description.
3328         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
3329         gl_PREREQ_ISAPIPE invocations from here...
3330         * modules/isapipe (configure.ac): ... to here.
3331         (Depends-on): Update condition.
3332
3333 2011-05-08  Bruno Haible  <bruno@clisp.org>
3334
3335         ioctl: Move AC_LIBOBJ invocations to module description.
3336         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
3337         invocations from here...
3338         * modules/ioctl (configure.ac): ... to here.
3339         (Depends-on): Update condition.
3340
3341 2011-05-08  Bruno Haible  <bruno@clisp.org>
3342
3343         imaxdiv: Move AC_LIBOBJ invocations to module description.
3344         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
3345         invocations from here...
3346         * modules/imaxdiv (configure.ac): ... to here.
3347
3348 2011-05-08  Bruno Haible  <bruno@clisp.org>
3349
3350         imaxabs: Move AC_LIBOBJ invocations to module description.
3351         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
3352         invocations from here...
3353         * modules/imaxabs (configure.ac): ... to here.
3354
3355 2011-05-08  Bruno Haible  <bruno@clisp.org>
3356
3357         getaddrinfo: Move AC_LIBOBJ invocations to module description.
3358         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
3359         AC_LIBOBJ invocations from here...
3360         * modules/getaddrinfo (configure.ac): ... to here.
3361         (Depends-on): Add conditions.
3362
3363 2011-05-08  Bruno Haible  <bruno@clisp.org>
3364
3365         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
3366         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
3367         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
3368         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
3369         (gl_PREREQ_INET_PTON): ... from here.
3370         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
3371         gl_PREREQ_INET_PTON here.
3372         (Depends-on): Update condition.
3373
3374 2011-05-08  Bruno Haible  <bruno@clisp.org>
3375
3376         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
3377         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
3378         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
3379         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
3380         (gl_PREREQ_INET_NTOP): ... from here.
3381         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
3382         gl_PREREQ_INET_NTOP here.
3383         (Depends-on): Update condition.
3384
3385 2011-05-08  Bruno Haible  <bruno@clisp.org>
3386
3387         iconv_open: Move AC_LIBOBJ invocations to module description.
3388         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
3389         AC_LIBOBJ invocations from here...
3390         * modules/iconv_open (configure.ac): ... to here.
3391
3392 2011-05-08  Bruno Haible  <bruno@clisp.org>
3393
3394         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
3395         If module 'iconv_open' is among the main modules and module
3396         'iconv_open-utf' is among the tests dependencies, then
3397         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
3398         return the special iconv_t values. Therefore iconv() and iconv_close()
3399         must support these special iconv_t values, already in lib, not only in
3400         tests.
3401         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
3402         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
3403         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
3404         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
3405         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
3406         (Depends-on): Add the dependencies of iconv_open-utf.
3407         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
3408         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
3409         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
3410
3411 2011-05-08  Bruno Haible  <bruno@clisp.org>
3412
3413         group-member: Move AC_LIBOBJ invocations to module description.
3414         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
3415         gl_PREREQ_GROUP_MEMBER invocations from here...
3416         * modules/group-member (configure.ac): ... to here.
3417
3418 2011-05-08  Bruno Haible  <bruno@clisp.org>
3419
3420         grantpt: Move AC_LIBOBJ invocations to module description.
3421         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
3422         invocations from here...
3423         * modules/grantpt (configure.ac): ... to here.
3424
3425 2011-05-08  Bruno Haible  <bruno@clisp.org>
3426
3427         glob: Move AC_LIBOBJ invocations to module description.
3428         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
3429         from here...
3430         * modules/glob (configure.ac): ... to here.
3431
3432 2011-05-08  Bruno Haible  <bruno@clisp.org>
3433
3434         getusershell: Move AC_LIBOBJ invocations to module description.
3435         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
3436         Move AC_LIBOBJ invocation from here...
3437         * modules/getusershell (configure.ac): ... to here.
3438         (Depends-on): Update condition.
3439
3440 2011-05-08  Bruno Haible  <bruno@clisp.org>
3441
3442         gettimeofday: Move AC_LIBOBJ invocations to module description.
3443         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
3444         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
3445         gl_PREREQ_GETTIMEOFDAY invocations from here...
3446         * modules/gettimeofday (configure.ac): ... to here.
3447
3448 2011-05-08  Bruno Haible  <bruno@clisp.org>
3449
3450         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
3451         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
3452         just gl_FUNC_TZSET.
3453         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
3454         (gl_FUNC_TZSET_CLOBBER): Remove actions.
3455         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
3456         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
3457
3458 2011-05-08  Bruno Haible  <bruno@clisp.org>
3459
3460         getsubopt: Move AC_LIBOBJ invocations to module description.
3461         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
3462         gl_PREREQ_GETSUBOPT invocations from here...
3463         * modules/getsubopt (configure.ac): ... to here.
3464
3465 2011-05-08  Bruno Haible  <bruno@clisp.org>
3466
3467         getpass-gnu: Move AC_LIBOBJ invocations to module description.
3468         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
3469         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
3470         * modules/getpass-gnu (configure.ac): ... to here.
3471
3472 2011-05-08  Bruno Haible  <bruno@clisp.org>
3473
3474         getpass: Move AC_LIBOBJ invocations to module description.
3475         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
3476         gl_PREREQ_GETPASS invocations from here...
3477         * modules/getpass (configure.ac): ... to here.
3478
3479 2011-05-08  Bruno Haible  <bruno@clisp.org>
3480
3481         getpagesize: Move AC_LIBOBJ invocations to module description.
3482         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
3483         from here...
3484         * modules/getpagesize (configure.ac): ... to here.
3485
3486 2011-05-08  Bruno Haible  <bruno@clisp.org>
3487
3488         getopt: Move AC_LIBOBJ invocations to module description.
3489         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
3490         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
3491         invocations from here...
3492         * modules/getopt-gnu (configure.ac): ... to here.
3493         * modules/getopt-posix (configure.ac): ... and here.
3494         (Depends-on): Update condition.
3495
3496 2011-05-08  Bruno Haible  <bruno@clisp.org>
3497
3498         getopt, argp: Respect rules for use of AC_LIBOBJ.
3499         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
3500         (gl_REPLACE_GETOPT_ALWAYS): New macro.
3501         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
3502         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
3503
3504 2011-05-08  Bruno Haible  <bruno@clisp.org>
3505
3506         getlogin_r: Move AC_LIBOBJ invocations to module description.
3507         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
3508         gl_PREREQ_GETLOGIN_R invocations from here...
3509         * modules/getlogin_r (configure.ac): ... to here.
3510
3511 2011-05-08  Bruno Haible  <bruno@clisp.org>
3512
3513         getlogin: Move AC_LIBOBJ invocations to module description.
3514         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
3515         here...
3516         * modules/getlogin (configure.ac): ... to here.
3517
3518 2011-05-08  Bruno Haible  <bruno@clisp.org>
3519
3520         getloadavg: Move AC_LIBOBJ invocations to module description.
3521         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
3522         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
3523         * modules/getloadavg (configure.ac): ... to here.
3524
3525 2011-05-08  Bruno Haible  <bruno@clisp.org>
3526
3527         gethrxtime: Move AC_LIBOBJ invocations to module description.
3528         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
3529         LIB_GETHRXTIME from here...
3530         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
3531         invocations from here...
3532         * modules/gethrxtime (configure.ac): ... to here.
3533
3534 2011-05-08  Bruno Haible  <bruno@clisp.org>
3535
3536         gethostname: Move AC_LIBOBJ invocations to module description.
3537         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
3538         gl_PREREQ_GETHOSTNAME invocations from here...
3539         * modules/gethostname (configure.ac): ... to here.
3540
3541 2011-05-08  Bruno Haible  <bruno@clisp.org>
3542
3543         getgroups: Move AC_LIBOBJ invocations to module description.
3544         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
3545         here...
3546         * modules/getgroups (configure.ac): ... to here.
3547
3548 2011-05-08  Bruno Haible  <bruno@clisp.org>
3549
3550         getdtablesize: Move AC_LIBOBJ invocations to module description.
3551         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
3552         invocation from here...
3553         * modules/getdtablesize (configure.ac): ... to here.
3554
3555 2011-05-08  Bruno Haible  <bruno@clisp.org>
3556
3557         getdomainname: Move AC_LIBOBJ invocations to module description.
3558         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
3559         gl_PREREQ_GETDOMAINNAME invocations from here...
3560         * modules/getdomainname (configure.ac): ... to here.
3561
3562 2011-05-08  Bruno Haible  <bruno@clisp.org>
3563
3564         getline: Move AC_LIBOBJ invocations to module description.
3565         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
3566         invocations from here...
3567         * modules/getline (configure.ac): ... to here.
3568
3569 2011-05-08  Bruno Haible  <bruno@clisp.org>
3570
3571         getline: Simplify.
3572         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
3573         It's already handled through the module dependency.
3574
3575 2011-05-08  Bruno Haible  <bruno@clisp.org>
3576
3577         getdelim: Move AC_LIBOBJ invocations to module description.
3578         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
3579         and gl_PREREQ_GETDELIM invocations from here...
3580         * modules/getdelim (configure.ac): ... to here.
3581         (Depends-on): Fix condition.
3582
3583 2011-05-08  Bruno Haible  <bruno@clisp.org>
3584
3585         getcwd: Move AC_LIBOBJ invocations to module description.
3586         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
3587         invocations from here...
3588         * modules/getcwd (configure.ac): ... to here.
3589
3590 2011-05-08  Bruno Haible  <bruno@clisp.org>
3591
3592         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
3593         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
3594         here...
3595         * modules/getcwd-lgpl (configure.ac): ... to here.
3596
3597 2011-05-07  Bruno Haible  <bruno@clisp.org>
3598
3599         crypto/gc: Move AC_LIBOBJ invocations to module description.
3600         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
3601         * modules/crypto/gc (configure.ac): ... to here.
3602
3603 2011-05-07  Bruno Haible  <bruno@clisp.org>
3604
3605         fwriting: Move AC_LIBOBJ invocations to module description.
3606         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
3607         here...
3608         * modules/fwriting (configure.ac): ... to here.
3609
3610 2011-05-07  Bruno Haible  <bruno@clisp.org>
3611
3612         fwritable: Move AC_LIBOBJ invocations to module description.
3613         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
3614         here...
3615         * modules/fwritable (configure.ac): ... to here.
3616
3617 2011-05-07  Bruno Haible  <bruno@clisp.org>
3618
3619         futimens: Move AC_LIBOBJ invocations to module description.
3620         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
3621         here...
3622         * modules/futimens (configure.ac): ... to here.
3623
3624 2011-05-07  Bruno Haible  <bruno@clisp.org>
3625
3626         ftruncate: Move AC_LIBOBJ invocations to module description.
3627         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
3628         gl_PREREQ_FTRUNCATE invocations from here...
3629         * modules/ftruncate (configure.ac): ... to here.
3630
3631 2011-05-07  Bruno Haible  <bruno@clisp.org>
3632
3633         fsync: Move AC_LIBOBJ invocations to module description.
3634         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
3635         invocations from here...
3636         * modules/fsync (configure.ac): ... to here.
3637
3638 2011-05-07  Bruno Haible  <bruno@clisp.org>
3639
3640         fsusage: Move AC_LIBOBJ invocations to module description.
3641         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
3642         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
3643         * modules/fsusage (configure.ac): ... to here.
3644
3645 2011-05-07  Bruno Haible  <bruno@clisp.org>
3646
3647         freopen: Move AC_LIBOBJ invocations to module description.
3648         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
3649         invocations from here...
3650         * modules/freopen (configure.ac): ... to here.
3651
3652 2011-05-07  Bruno Haible  <bruno@clisp.org>
3653
3654         free: Move AC_LIBOBJ invocations to module description.
3655         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
3656         invocations from here...
3657         * modules/free (configure.ac): ... to here.
3658
3659 2011-05-07  Bruno Haible  <bruno@clisp.org>
3660
3661         freadable: Move AC_LIBOBJ invocations to module description.
3662         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
3663         here...
3664         * modules/freadable (configure.ac): ... to here.
3665
3666 2011-05-07  Bruno Haible  <bruno@clisp.org>
3667
3668         fpurge: Move AC_LIBOBJ invocations to module description.
3669         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
3670         invocations from here...
3671         * modules/fpurge (configure.ac): ... to here.
3672
3673 2011-05-07  Bruno Haible  <bruno@clisp.org>
3674
3675         fpending: Move AC_LIBOBJ invocations to module description.
3676         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
3677         gl_FUNC_FPENDING.
3678         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
3679         invocations from here...
3680         * modules/fpending (configure.ac): ... to here.
3681
3682 2011-05-07  Bruno Haible  <bruno@clisp.org>
3683
3684         fopen: Move AC_LIBOBJ invocations to module description.
3685         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
3686         invocations from here...
3687         * modules/fopen (configure.ac): ... to here.
3688
3689 2011-05-07  Bruno Haible  <bruno@clisp.org>
3690
3691         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
3692         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
3693         gl_FUNC_FNMATCH_POSIX.
3694         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
3695         invocations from here...
3696         * modules/fnmatch (configure.ac): ... to here.
3697         * modules/fnmatch-gnu (configure.ac): ... and here.
3698
3699 2011-05-07  Bruno Haible  <bruno@clisp.org>
3700
3701         flock: Move AC_LIBOBJ invocations to module description.
3702         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
3703         invocations from here...
3704         * modules/flock (configure.ac): ... to here.
3705
3706 2011-05-07  Bruno Haible  <bruno@clisp.org>
3707
3708         fileblocks: Move AC_LIBOBJ invocations to module description.
3709         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
3710         gl_PREREQ_FILEBLOCKS invocations from here...
3711         * modules/fileblocks (configure.ac): ... to here.
3712
3713 2011-05-06  Bruno Haible  <bruno@clisp.org>
3714
3715         fflush: Move AC_LIBOBJ invocations to module description.
3716         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
3717         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
3718         invocations from here...
3719         * modules/fflush (configure.ac): ... to here.
3720
3721 2011-05-06  Bruno Haible  <bruno@clisp.org>
3722
3723         fdopendir: Move AC_LIBOBJ invocations to module description.
3724         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
3725         here...
3726         * modules/fdopendir (configure.ac): ... to here.
3727         (Depends-on): Improve conditions.
3728
3729 2011-05-06  Bruno Haible  <bruno@clisp.org>
3730
3731         _Exit: Move AC_LIBOBJ invocations to module description.
3732         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
3733         invocations from here...
3734         * modules/_Exit (configure.ac): ... to here.
3735
3736 2011-05-21  Bruno Haible  <bruno@clisp.org>
3737
3738         euidaccess: Respect rules for use of AC_LIBOBJ.
3739         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
3740         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
3741         from here...
3742         * modules/euidaccess (configure.ac): ... to here.
3743
3744 2011-05-06  Bruno Haible  <bruno@clisp.org>
3745
3746         error: Move AC_LIBOBJ invocations to module description.
3747         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
3748         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
3749         invocations from here...
3750         * modules/error (configure.ac): ... to here.
3751
3752 2011-05-06  Bruno Haible  <bruno@clisp.org>
3753
3754         duplocale: Move AC_LIBOBJ invocations to module description.
3755         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
3756         gl_PREREQ_DUPLOCALE invocations from here...
3757         * modules/duplocale (configure.ac): ... to here.
3758
3759 2011-05-05  Bruno Haible  <bruno@clisp.org>
3760
3761         dirfd: Move AC_LIBOBJ invocations to module description.
3762         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
3763         gl_FUNC_DIRFD.
3764         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
3765         here...
3766         * modules/dirfd (configure.ac): ... to here.
3767         (Depends-on): Fix condition.
3768
3769 2011-05-05  Bruno Haible  <bruno@clisp.org>
3770
3771         chown: Respect rules for use of AC_LIBOBJ.
3772         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
3773         * modules/chown (configure.ac): ... to here.
3774
3775 2011-05-05  Bruno Haible  <bruno@clisp.org>
3776
3777         chdir-long: Move AC_LIBOBJ invocations to module description.
3778         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
3779         gl_PREREQ_CHDIR_LONG invocations from here...
3780         * modules/chdir-long (configure.ac): ... to here.
3781
3782 2011-05-05  Bruno Haible  <bruno@clisp.org>
3783
3784         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
3785         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
3786         from here...
3787         * modules/canonicalize-lgpl (configure.ac): ... to here.
3788
3789 2011-05-05  Bruno Haible  <bruno@clisp.org>
3790
3791         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
3792         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
3793         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
3794         REPLACE_CALLOC.
3795         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
3796         * modules/calloc-gnu (configure.ac): Likewise.
3797
3798 2011-05-05  Bruno Haible  <bruno@clisp.org>
3799
3800         btowc: Move AC_LIBOBJ invocations to module description.
3801         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
3802         invocations from here...
3803         * modules/btowc (configure.ac): ... to here.
3804
3805 2011-05-21  Bruno Haible  <bruno@clisp.org>
3806
3807         atexit: Move AC_LIBOBJ invocations to module description.
3808         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
3809         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
3810         here...
3811         * modules/atexit (configure.ac): ... to here.
3812
3813 2011-05-05  Bruno Haible  <bruno@clisp.org>
3814
3815         atoll: Move AC_LIBOBJ invocations to module description.
3816         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
3817         invocations from here...
3818         * modules/atoll (configure.ac): ... to here.
3819
3820 2011-05-05  Bruno Haible  <bruno@clisp.org>
3821
3822         argz: Move AC_LIBOBJ invocations to module description.
3823         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
3824         * modules/argz (configure.ac): ... to here.
3825
3826 2011-05-05  Bruno Haible  <bruno@clisp.org>
3827
3828         alphasort: Move AC_LIBOBJ invocations to module description.
3829         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
3830         gl_PREREQ_ALPHASORT invocations from here...
3831         * modules/alphasort (configure.ac): ... to here.
3832
3833 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
3834
3835         verify: new macro verify_expr; verify_true deprecated
3836         * NEWS: Mention this.
3837         * doc/verify.texi (Compile-time Assertions): Document this.
3838         * lib/verify.h (verify_true): Deprecate.
3839         (verify_expr): New macro.
3840         * tests/test-verify.c (function): Test verify_expr.
3841
3842 2011-06-14  Jim Meyering  <meyering@redhat.com>
3843
3844         init.sh: give more portable redirection-related advice in a comment
3845         * tests/init.sh (stderr_fileno_): Update the advice in comments.
3846         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
3847         for lots of discussion.  Stefano Lattarini suggested the solution
3848         of putting "9>&2" after the command.  Reported by Bruno Haible.
3849
3850 2011-06-13  Bruno Haible  <bruno@clisp.org>
3851
3852         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
3853         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
3854         'none'.
3855
3856 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
3857
3858         ftoastr: use strtof only if HAVE_STRTOF
3859         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
3860         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
3861         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
3862         * modules/ftoastr (configure.ac): Check for strtof.
3863
3864 2011-06-13  Bruno Haible  <bruno@clisp.org>
3865
3866         gnulib-tool: Addendum to 2011-06-08 commit.
3867         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
3868         and --witness-c-macro have been given, augment AM_CPPFLAGS.
3869
3870 2011-06-13  Bruno Haible  <bruno@clisp.org>
3871
3872         fseeko: Provide a non-inline replacement of fseek().
3873         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
3874         * modules/fseeko (Depends-on): Add fseek.
3875         * modules/fseek (License): Change to LGPLv2+.
3876
3877 2011-06-13  Bruno Haible  <bruno@clisp.org>
3878
3879         ftello: Provide a non-inline replacement of ftell().
3880         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
3881         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
3882         not have ftello() (such as on mingw).
3883         * modules/ftello (Depends-on): Add ftell.
3884         * modules/ftell (License): Change to LGPLv2+.
3885
3886 2011-05-07  Bruno Haible  <bruno@clisp.org>
3887
3888         ftell: Move AC_LIBOBJ invocations to module description.
3889         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
3890         * modules/ftell (configure.ac): ... to here.
3891
3892 2011-05-07  Bruno Haible  <bruno@clisp.org>
3893
3894         ftello: Respect rules for use of AC_LIBOBJ.
3895         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
3896         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
3897         here...
3898         * modules/ftello (configure.ac): ... to here.
3899
3900 2011-05-07  Bruno Haible  <bruno@clisp.org>
3901
3902         fseeko: Simplify.
3903         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
3904         (gl_FUNC_FSEEKO): Inline it here.
3905
3906 2011-05-07  Bruno Haible  <bruno@clisp.org>
3907
3908         fseek: Move AC_LIBOBJ invocations to module description.
3909         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
3910         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
3911         * modules/fseek (configure.ac): ... to here.
3912
3913 2011-05-07  Bruno Haible  <bruno@clisp.org>
3914
3915         fseek: Respect rules for use of AC_LIBOBJ.
3916         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
3917         here...
3918         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
3919
3920 2011-05-07  Bruno Haible  <bruno@clisp.org>
3921
3922         fseeko: Respect rules for use of AC_LIBOBJ.
3923         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
3924         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
3925         here...
3926         * modules/fseeko (configure.ac): ... to here.
3927
3928 2011-06-13  Bruno Haible  <bruno@clisp.org>
3929
3930         gnulib-tool: Allow comments in the 'Depends-on' section.
3931         * doc/gnulib.texi (Module description): Mention comment syntax in the
3932         Depends-on section.
3933         * gnulib-tool (func_get_dependencies): Filter out comment lines.
3934
3935 2011-06-13  Bruno Haible  <bruno@clisp.org>
3936
3937         file-set.h: guard __attibute__ use, now that it's not always defined
3938         * lib/file-set.h (record_file): Use __attribute__ only with compiler
3939         versions that support it.  This fixes a coreutils build failure with
3940         the vendor cc on HP-UX 11.31.
3941
3942 2011-06-12  Bruno Haible  <bruno@clisp.org>
3943
3944         acl: Add support for HP-UX >= 11.11 JFS ACLs.
3945         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
3946         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
3947         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
3948         (acl, aclsort): New declarations.
3949         (aclv_nontrivial): New declaration.
3950         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
3951         (file_has_acl): Read also the second kind of HP-UX ACLs.
3952         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
3953         kind of HP-UX ACLs if the first kind fails.
3954         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
3955         second kind of HP-UX ACLs.
3956         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
3957         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
3958         agree.
3959         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
3960         hpuxjfs.
3961         Handle hpuxjfs.
3962         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
3963         hpuxjfs.
3964         Handle hpuxjfs.
3965         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
3966         (func_test_same_acls): Use both lsacl and getacl.
3967         Handle hpuxjfs.
3968         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
3969         (func_test_same_acls): Use both lsacl and getacl.
3970         Handle hpuxjfs.
3971
3972 2011-06-12  Bruno Haible  <bruno@clisp.org>
3973
3974         acl: Complete the 2010-08-10 fix.
3975         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
3976         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
3977         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
3978         explicitly.
3979         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
3980         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
3981
3982 2011-06-12  Bruno Haible  <bruno@clisp.org>
3983
3984         spawn-pipe tests: Comments.
3985         * tests/test-spawn-pipe-child.c (main): Update comment.
3986         Reported by James Youngman <jay@gnu.org>.
3987
3988 2011-06-11  James Youngman  <jay@gnu.org>
3989
3990         New module 'stat-size'.
3991         * modules/stat-size: New module.  Provides macros for accessing
3992         file size information in instances of struct stat.  Depends on the
3993         fileblocks module because it calls st_blocks.
3994         * lib/stat-size.h: New file, adapted from coreutils' system.h.
3995         * doc/gnulib.texi: Include stat-size.texi.
3996         * doc/stat-size.texi: Documentation for this module.
3997         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
3998         * m4/fileblocks.m4: Mention that stat-size depends on the call to
3999         AC_STRUCT_ST_BLOCKS.
4000
4001 2011-06-09  Bruno Haible  <bruno@clisp.org>
4002
4003         thread: Support pthreads-win32.
4004         * lib/glthread/thread.h (gl_thread_self): Define differently on
4005         pthreads-win32.
4006         (gl_null_thread): New declaration.
4007         (gl_thread_self_pointer): New macro.
4008         * lib/glthread/thread.c (gl_null_thread): New constant.
4009         * tests/test-lock.c: Use gl_thread_self_pointer instead of
4010         gl_thread_self.
4011         * tests/test-tls.c: Likewise.
4012         Suggested by Paul Eggert. Reported by Eric Blake.
4013
4014 2011-06-09  Bruno Haible  <bruno@clisp.org>
4015
4016         thread: Fix confusion between NULL and 0.
4017         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
4018         Reported by Paul Eggert.
4019
4020 2011-06-09  Bruno Haible  <bruno@clisp.org>
4021
4022         spawn-pipe tests: Avoid test failure on HP-UX 11.
4023         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
4024         is closed.
4025
4026 2011-06-09  Bruno Haible  <bruno@clisp.org>
4027
4028         acl tests: Fix compilation error on HP-UX 11.
4029         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
4030
4031 2011-06-09  Bruno Haible  <bruno@clisp.org>
4032
4033         rmdir: Avoid test failure on HP-UX 10.20.
4034         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
4035         EEXIST.
4036
4037 2011-06-08  Eric Blake  <eblake@redhat.com>
4038
4039         perror: fix test on mingw
4040         * modules/perror-tests (Depends-on): Add dup2.
4041
4042         strerror_r-posix: fix on MacOS
4043         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
4044         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
4045         logic bug.
4046         * lib/strerror_r.c (strerror_r): Fix the bug.
4047         * lib/strerror.c (strerror): Likewise.
4048         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
4049         problem.
4050         * doc/posix-functions/strerror.texi (strerror): Likewise.
4051         * doc/posix-functions/perror.texi (perror): Likewise.
4052         * tests/test-strerror.c (main): Enhance test.
4053         * tests/test-strerror_r.c (main): Likewise.
4054
4055 2011-06-08  Bruno Haible  <bruno@clisp.org>
4056
4057         gnulib-tool: Better isolation between different gnulib-tool invocations.
4058         * gnulib-tool: New option --witness-c-macro.
4059         (witness_c_macro): New variable.
4060         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
4061         AM_CPPFLAGS define it as a C macro.
4062         (func_emit_tests_Makefile_am): Likewise.
4063         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
4064         read it from there.
4065         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
4066         m4_define, not AC_DEFUN.
4067         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
4068         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
4069         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
4070         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
4071         s|...|...|, to substitute the values of the GNULIB_* module indicator
4072         variables.
4073         * modules/dirent (Makefile.am): Likewise.
4074         * modules/fcntl-h (Makefile.am): Likewise.
4075         * modules/iconv-h (Makefile.am): Likewise.
4076         * modules/langinfo (Makefile.am): Likewise.
4077         * modules/locale (Makefile.am): Likewise.
4078         * modules/math (Makefile.am): Likewise.
4079         * modules/netdb (Makefile.am): Likewise.
4080         * modules/poll-h (Makefile.am): Likewise.
4081         * modules/pty (Makefile.am): Likewise.
4082         * modules/search (Makefile.am): Likewise.
4083         * modules/signal (Makefile.am): Likewise.
4084         * modules/spawn (Makefile.am): Likewise.
4085         * modules/stdio (Makefile.am): Likewise.
4086         * modules/stdlib (Makefile.am): Likewise.
4087         * modules/string (Makefile.am): Likewise.
4088         * modules/sys_ioctl (Makefile.am): Likewise.
4089         * modules/sys_select (Makefile.am): Likewise.
4090         * modules/sys_socket (Makefile.am): Likewise.
4091         * modules/sys_stat (Makefile.am): Likewise.
4092         * modules/sys_times (Makefile.am): Likewise.
4093         * modules/sys_utsname (Makefile.am): Likewise.
4094         * modules/sys_wait (Makefile.am): Likewise.
4095         * modules/termios (Makefile.am): Likewise.
4096         * modules/time (Makefile.am): Likewise.
4097         * modules/unistd (Makefile.am): Likewise.
4098         * modules/wchar (Makefile.am): Likewise.
4099
4100 2011-06-08  Eric Blake  <eblake@redhat.com>
4101
4102         strerror: simplify replacement
4103         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
4104         * modules/strerror (configure.ac): No prereqs needed here...
4105         * modules/strerror-override (configure.ac): ...but this needs it.
4106         (Files): Add file for needed prereq macro.
4107
4108 2011-06-08  Bruno Haible  <bruno@clisp.org>
4109
4110         strerror_r-posix: Tweaks.
4111         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
4112         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
4113         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
4114         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
4115         (gl_FUNC_STRERROR_R): ... to here.
4116         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
4117
4118 2011-06-07  Eric Blake  <eblake@redhat.com>
4119
4120         perror: document fixed bugs
4121         * doc/posix-functions/perror.texi (perror): Document recent
4122         patches.
4123
4124 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
4125
4126         stat-time: get_stat_birthtime failure is better-defined
4127         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
4128         return a timestamp whose tv_sec and tv_nsec values are both -1.
4129         Previously, the spec said only that the tv_nsec value was negative.
4130         This upward-compatible change simplifies GNU tar a bit.
4131
4132 2011-06-07  Eric Blake  <eblake@redhat.com>
4133
4134         strerror_r-posix: work around cygwin 1.7.9
4135         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
4136         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
4137         bug without replacing strerror_r.
4138         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
4139         strerror_r is buggy, but without requiring strerror_r compilation.
4140         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
4141
4142         test-perror: relax test to ignore cygwin bug
4143         * tests/test-perror2.c (main): Relax test on requiring detection
4144         of stream errors, and use unbuffered stream.
4145         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
4146         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
4147         * doc/posix-functions/fputc.texi (fputc): Likewise.
4148         * doc/posix-functions/fputs.texi (fputs): Likewise.
4149         * doc/posix-functions/fputws.texi (fputws): Likewise.
4150         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
4151         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
4152         * doc/posix-functions/getopt.texi (getopt): Likewise.
4153         * doc/posix-functions/perror.texi (perror): Likewise.
4154         * doc/posix-functions/printf.texi (printf): Likewise.
4155         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
4156         * doc/posix-functions/psignal.texi (psignal): Likewise.
4157         * doc/posix-functions/putc.texi (putc): Likewise.
4158         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
4159         Likewise.
4160         * doc/posix-functions/putchar.texi (putchar): Likewise.
4161         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
4162         Likewise.
4163         * doc/posix-functions/puts.texi (puts): Likewise.
4164         * doc/posix-functions/putwc.texi (putwc): Likewise.
4165         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
4166         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
4167         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
4168         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
4169         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
4170         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
4171         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
4172         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
4173
4174 2011-05-22  Bruno Haible  <bruno@clisp.org>
4175
4176         strerror: Move AC_LIBOBJ invocations to module description.
4177         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
4178         gl_PREREQ_STRERROR invocations from here...
4179         * modules/strerror (configure.ac): ... to here.
4180
4181 2011-05-21  Bruno Haible  <bruno@clisp.org>
4182
4183         perror: Use common idiom.
4184         * modules/perror (configure.ac): Reorder statements.
4185
4186 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
4187
4188         tests: fix usage message in 'mktempd_'
4189         * tests/init.sh (mktempd_): In the usage message, use literal
4190         'mktempd_', not '$ME' (which is even undefined), as the name of
4191         the subroutine.
4192
4193 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
4194
4195         tests init: new function 'fatal_', for hard errors
4196         Before this patch, the only way offered by tests/init.sh to
4197         properly signal a hard error was the `framework_failure_'
4198         function.  But the error message issued by that function,
4199         as its name would suggest, refers to a set-up failure in the
4200         testsuite, while hard errors can obviously also be due to
4201         other reasons.  The best way to fix this inconsistency is to
4202         introduce a new function with a more general error message.
4203         * tests/init.sh (fatal_): New function.
4204
4205 2011-06-06  Eric Blake  <eblake@redhat.com>
4206
4207         canonicalize-lgpl: use common idiom
4208         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
4209         over newer POSIX -Rf.
4210         Reported by Bruno Haible.
4211
4212         canonicalize-lgpl: work around AIX realpath bug
4213         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
4214         * doc/posix-functions/realpath.texi (realpath): Document it.
4215         Reported by Bruno Haible.
4216
4217         strerror: work around FreeBSD bug
4218         * lib/strerror.c (strerror): Special case 0.
4219         Reported by Bruno Haible.
4220
4221         strerror-override: avoid bloating errno module
4222         * modules/errno (Files, configure.ac): Move replacement strings...
4223         * modules/strerror-override: ...to new module.
4224         * modules/strerror (Depends-on): Add strerror-override.
4225         * modules/strerror_r-posix (Depends-on): Likewise.
4226         * MODULES.html.sh: Document new module.
4227         Reported by Bruno Haible.
4228
4229 2011-06-06  Bruno Haible  <bruno@clisp.org>
4230
4231         spawn-pipe tests: Rename program.
4232         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
4233         * tests/test-spawn-pipe-child.c: Update comment.
4234         * tests/test-spawn-pipe.sh: Update.
4235         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
4236
4237         spawn-pipe tests: Link the child program only against libc.
4238         * tests/test-spawn-pipe-child.c: New file, extracted from
4239         tests/test-spawn-pipe.c.
4240         (main): Expect only one argument.
4241         (is_open): New function, copied from tests/test-pipe.c.
4242         * tests/test-spawn-pipe.c: Don't include <errno.h>.
4243         (child_main): Remove function.
4244         (test_pipe): Pass only one argument to the child program.
4245         (main): Remove child process code. Expect the child program's name as
4246         first argument.
4247         * tests/test-spawn-pipe.sh: Pass the child program's name as first
4248         argument.
4249         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
4250         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
4251         test-spawn-pipe-child against no libraries.
4252
4253 2011-06-06  Bruno Haible  <bruno@clisp.org>
4254
4255         careadlinkat: Avoid mismatch between ssize_t and int.
4256         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
4257         * lib/careadlinkat.c (careadlinkatcwd): Define always.
4258
4259 2011-06-06  Jim Meyering  <meyering@redhat.com>
4260
4261         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
4262         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
4263         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
4264
4265 2011-06-05  Bruno Haible  <bruno@clisp.org>
4266
4267         ansi-c++-opt: Interoperability with libtool.
4268         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
4269         set the variable to "no", not to ":".
4270         * NEWS: Mention the change.
4271
4272 2011-06-05  Bruno Haible  <bruno@clisp.org>
4273
4274         acl: Fix test failure on AIX 7.
4275         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
4276         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
4277
4278 2011-06-05  Bruno Haible  <bruno@clisp.org>
4279
4280         pipe-filter-ii: Fix test failure on AIX and IRIX.
4281         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
4282         with EAGAIN, retry with a smaller buffer size.
4283
4284 2011-06-05  Bruno Haible  <bruno@clisp.org>
4285
4286         localename: Fix link dependencies.
4287         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
4288         * modules/localename-tests (Makefile.am): Link test-localename with
4289         $(LIBTHREAD).
4290
4291 2011-06-05  Bruno Haible  <bruno@clisp.org>
4292
4293         error: Avoid gcc warning.
4294         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
4295
4296 2011-06-05  Bruno Haible  <bruno@clisp.org>
4297
4298         unsetenv: Avoid gcc warning.
4299         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
4300
4301 2011-06-05  Bruno Haible  <bruno@clisp.org>
4302
4303         setenv: Avoid gcc warning.
4304         * lib/setenv.c (setenv): Provide declaration if system lacks it.
4305
4306 2011-06-05  Bruno Haible  <bruno@clisp.org>
4307
4308         sys_select: Ensure memset is declared also on AIX 7.
4309         * lib/sys_select.in.h: Include <string.h> also on AIX.
4310         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
4311         self-contained also on AIX 7.1.
4312
4313 2011-06-04  Jim Meyering  <meyering@redhat.com>
4314
4315         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
4316         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
4317         function name, "error".
4318         (_gl_translatable_diag_func_re): New configurable variable.
4319
4320 2011-06-04  Bruno Haible  <bruno@clisp.org>
4321
4322         getopt: Avoid gcc warning.
4323         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
4324
4325 2011-06-04  Bruno Haible  <bruno@clisp.org>
4326
4327         strerror_r: Fix comments.
4328         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
4329         commit.
4330
4331 2011-06-04  Bruno Haible  <bruno@clisp.org>
4332
4333         perror: Fix compilation error.
4334         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
4335         Undefine fprintf, not sprintf.
4336         * modules/perror (Depends-on): Remove intprops, verify.
4337
4338 2011-06-04  Bruno Haible  <bruno@clisp.org>
4339
4340         setlocale: Enable replacement on Cygwin 1.5.
4341         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
4342         Cygwin 1.5.x.
4343         * doc/posix-functions/setlocale.texi: Mention that the problem with the
4344         LC_CTYPE category also exists on Cygwin 1.5.x.
4345
4346 2011-06-04  Bruno Haible  <bruno@clisp.org>
4347
4348         strerror-override: Don't disable symbol renamings.
4349         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
4350         * lib/strerror-override.c: Include config.h.
4351         (strerror_override): Don't undefine.
4352
4353 2011-06-03  Bruno Haible  <bruno@clisp.org>
4354
4355         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
4356         * lib/localename.h: Update copyright header.
4357         * lib/localename.c: Likewise.
4358         * lib/relocatable.h: Likewise.
4359         * lib/relocatable.c: Likewise.
4360
4361 2011-06-02  Bruno Haible  <bruno@clisp.org>
4362
4363         doc: Fix a module name.
4364         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
4365
4366 2011-06-02  Bruno Haible  <bruno@clisp.org>
4367
4368         pipe2: Remove dependency on 'nonblocking' module.
4369         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
4370         O_NONBLOCK is defined by gnulib.
4371         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
4372         is zero.
4373         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
4374         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
4375         defined by gnulib.
4376         (get_nonblocking_flag): New function.
4377         (main): Test O_NONBLOCK flag only if it is nonzero.
4378         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
4379
4380 2011-06-03  Jim Meyering  <meyering@redhat.com>
4381
4382         maint: three new prohibit-header-without-use rules
4383         Prohibit use of cloexec.h, posixver.h, same.h without use.
4384         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
4385         (sc_prohibit_posixver_without_use): Likewise.
4386         (sc_prohibit_same_without_use): Likewise.
4387
4388 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
4389
4390         allocator: 'die' routine is now given requested size
4391         * lib/allocator.h (struct allocator.die): New size arg.
4392         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
4393         If the actual problem is an ssize_t limitation, not a size_t or
4394         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
4395
4396 2011-06-01  Eric Blake  <eblake@redhat.com>
4397
4398         strerror: drop strerror_r dependency
4399         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
4400         * lib/strerror-override.c (strerror_override): ...to new file.
4401         * lib/strerror-override.h: Add prototype.
4402         * lib/strerror-impl.h: Delete.
4403         * lib/strerror.c (strerror): New implementation.
4404         * modules/errno (Files): Add new files.
4405         (configure.ac): Compile new file as appropriate.
4406         * modules/strerror (Files): Drop unused file.
4407         (Depends-on): Drop strerror_r-posix.
4408         * MODULES.html.sh: Document strerror_r-posix.
4409         Requested by Sam Steingold.
4410
4411         perror: call strerror_r directly
4412         * modules/perror (Files): Drop strerror-impl.h.
4413         * lib/perror.c (perror): Use our own stack buffer, rather than
4414         calling a wrapper that uses static storage.
4415         * doc/posix-functions/perror.texi (perror): Document a limitation
4416         of our replacement.
4417
4418         strerror_r: fix includes for FreeBSD
4419         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
4420         since we use abort on some platforms.
4421         Reported by Matthias Bolte.
4422
4423 2011-05-31  Bruno Haible  <bruno@clisp.org>
4424
4425         Fix link errors in tests: openat-die uses gettext-h.
4426         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
4427         against $(LIBINTL).
4428         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
4429         against $(LIBINTL).
4430         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
4431         $(LIBINTL).
4432         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
4433         against $(LIBINTL).
4434         * modules/linkat-tests (Makefile.am): Link test-linkat against
4435         $(LIBINTL).
4436         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
4437         $(LIBINTL).
4438         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
4439         against $(LIBINTL).
4440         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
4441         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
4442         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
4443         $(LIBINTL).
4444         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
4445         $(LIBINTL).
4446         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
4447         $(LIBINTL).
4448         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4449
4450 2011-05-31  Bruno Haible  <bruno@clisp.org>
4451
4452         Fix link errors in tests: wait-process uses gettext-h.
4453         * modules/nonblocking-pipe-tests (Makefile.am): Set
4454         test_nonblocking_pipe_main_LDADD.
4455         * modules/nonblocking-socket-tests (Makefile.am): Link
4456         test-nonblocking-socket-main against $(LIBINTL).
4457         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4458
4459 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
4460
4461         assert-h: work around 'verify' incompatibility
4462         * lib/verify.h: Use @...@ directives, not ifdef.
4463         * modules/assert-h (assert.h): Implement the directives.
4464         (assert.h): Substitute the symbol-prefix more consistently.
4465
4466 2011-05-29  Jim Meyering  <meyering@redhat.com>
4467
4468         trim: remove three superfluous assignments
4469         * lib/trim.c (trim2): Remove three superfluous assignments
4470         and correct brace positioning.
4471
4472 2011-05-29  Bruno Haible  <bruno@clisp.org>
4473
4474         wctype-h: Avoid namespace pollution on Solaris 2.6.
4475         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
4476         identifiers.
4477         * doc/posix-headers/wctype.texi: Mention the problem.
4478         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4479
4480 2011-05-28  Jim Meyering  <meyering@redhat.com>
4481
4482         parse-datetime.y: accommodate -Wstrict-overflow
4483         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
4484         placate -Wstrict-overflow.
4485
4486         trim: avoid a warning from -O2 -Wstrict-overflow
4487         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
4488
4489 2011-05-29  Bruno Haible  <bruno@clisp.org>
4490
4491         gnulib-tool: Fix bug in yesterday's commit.
4492         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
4493         twice.
4494
4495 2011-05-29  Bruno Haible  <bruno@clisp.org>
4496
4497         Allow multiple gnulib generated include files to be combined.
4498         * gnulib-tool (func_compute_include_guard_prefix): New function.
4499         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
4500         ${gl_include_guard_prefix} references.
4501         (func_import, func_create_testdir): Invoke
4502         func_compute_include_guard_prefix.
4503         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
4504         * lib/ctype.in.h: Likewise.
4505         * lib/dirent.in.h: Likewise.
4506         * lib/errno.in.h: Likewise.
4507         * lib/fcntl.in.h: Likewise.
4508         * lib/float.in.h: Likewise.
4509         * lib/getopt.in.h: Likewise.
4510         * lib/iconv.in.h: Likewise.
4511         * lib/langinfo.in.h: Likewise.
4512         * lib/locale.in.h: Likewise.
4513         * lib/math.in.h: Likewise.
4514         * lib/netdb.in.h: Likewise.
4515         * lib/netinet_in.in.h: Likewise.
4516         * lib/poll.in.h: Likewise.
4517         * lib/pthread.in.h: Likewise.
4518         * lib/pty.in.h: Likewise.
4519         * lib/sched.in.h: Likewise.
4520         * lib/se-selinux.in.h: Likewise.
4521         * lib/search.in.h: Likewise.
4522         * lib/signal.in.h: Likewise.
4523         * lib/spawn.in.h: Likewise.
4524         * lib/stdarg.in.h: Likewise.
4525         * lib/stddef.in.h: Likewise.
4526         * lib/stdint.in.h: Likewise.
4527         * lib/stdio.in.h: Likewise.
4528         * lib/stdlib.in.h: Likewise.
4529         * lib/string.in.h: Likewise.
4530         * lib/strings.in.h: Likewise.
4531         * lib/sys_file.in.h: Likewise.
4532         * lib/sys_ioctl.in.h: Likewise.
4533         * lib/sys_select.in.h: Likewise.
4534         * lib/sys_socket.in.h: Likewise.
4535         * lib/sys_stat.in.h: Likewise.
4536         * lib/sys_time.in.h: Likewise.
4537         * lib/sys_times.in.h: Likewise.
4538         * lib/sys_uio.in.h: Likewise.
4539         * lib/sys_utsname.in.h: Likewise.
4540         * lib/sys_wait.in.h: Likewise.
4541         * lib/sysexits.in.h: Likewise.
4542         * lib/termios.in.h: Likewise.
4543         * lib/time.in.h: Likewise.
4544         * lib/unistd.in.h: Likewise.
4545         * lib/wchar.in.h: Likewise.
4546         * lib/wctype.in.h: Likewise.
4547         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
4548         * modules/ctype (Makefile.am): Likewise.
4549         * modules/dirent (Makefile.am): Likewise.
4550         * modules/errno (Makefile.am): Likewise.
4551         * modules/fcntl-h (Makefile.am): Likewise.
4552         * modules/float (Makefile.am): Likewise.
4553         * modules/getopt-posix (Makefile.am): Likewise.
4554         * modules/iconv-h (Makefile.am): Likewise.
4555         * modules/langinfo (Makefile.am): Likewise.
4556         * modules/locale (Makefile.am): Likewise.
4557         * modules/math (Makefile.am): Likewise.
4558         * modules/netdb (Makefile.am): Likewise.
4559         * modules/netinet_in (Makefile.am): Likewise.
4560         * modules/poll-h (Makefile.am): Likewise.
4561         * modules/pthread (Makefile.am): Likewise.
4562         * modules/pty (Makefile.am): Likewise.
4563         * modules/sched (Makefile.am): Likewise.
4564         * modules/search (Makefile.am): Likewise.
4565         * modules/selinux-h (Makefile.am): Likewise.
4566         * modules/signal (Makefile.am): Likewise.
4567         * modules/spawn (Makefile.am): Likewise.
4568         * modules/stdarg (Makefile.am): Likewise.
4569         * modules/stddef (Makefile.am): Likewise.
4570         * modules/stdint (Makefile.am): Likewise.
4571         * modules/stdio (Makefile.am): Likewise.
4572         * modules/stdlib (Makefile.am): Likewise.
4573         * modules/string (Makefile.am): Likewise.
4574         * modules/strings (Makefile.am): Likewise.
4575         * modules/sys_file (Makefile.am): Likewise.
4576         * modules/sys_ioctl (Makefile.am): Likewise.
4577         * modules/sys_select (Makefile.am): Likewise.
4578         * modules/sys_socket (Makefile.am): Likewise.
4579         * modules/sys_stat (Makefile.am): Likewise.
4580         * modules/sys_time (Makefile.am): Likewise.
4581         * modules/sys_times (Makefile.am): Likewise.
4582         * modules/sys_uio (Makefile.am): Likewise.
4583         * modules/sys_utsname (Makefile.am): Likewise.
4584         * modules/sys_wait (Makefile.am): Likewise.
4585         * modules/sysexits (Makefile.am): Likewise.
4586         * modules/termios (Makefile.am): Likewise.
4587         * modules/time (Makefile.am): Likewise.
4588         * modules/unistd (Makefile.am): Likewise.
4589         * modules/wchar (Makefile.am): Likewise.
4590         * modules/wctype-h (Makefile.am): Likewise.
4591         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
4592
4593 2011-05-29  Bruno Haible  <bruno@clisp.org>
4594
4595         assert-h: Allow multiple gnulib generated replacements to coexist.
4596         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
4597
4598 2011-05-29  Bruno Haible  <bruno@clisp.org>
4599
4600         argp: Allow coexistence with strerror_r-posix module.
4601         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
4602         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
4603         by gnulib's <string.h> replacement), assume it has the POSIX signature,
4604         not the glibc signature.
4605
4606 2011-05-28  Bruno Haible  <bruno@clisp.org>
4607
4608         gnulib-tool: Alternative structure of testdirs, similar to --import.
4609         * gnulib-tool: New option --single-configure.
4610         (func_usage): Document it.
4611         (single_configure): New variable.
4612         (func_modules_transitive_closure_separately,
4613         func_modules_transitive_closure_separately,
4614         func_determine_use_libtests, func_modules_add_dummy_separately,
4615         func_modules_to_filelist_separately): New functions, extracted from
4616         func_import.
4617         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
4618         (func_import): Use the new functions.
4619         (func_create_testdir): Set final_modules. Handle $single_configure =
4620         true case.
4621
4622 2011-05-28  Bruno Haible  <bruno@clisp.org>
4623
4624         getloadavg: Remove an unreliable safety check.
4625         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
4626         getloadavg.c is in place.
4627         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
4628         Reported by Sam Steingold <sds@gnu.org>.
4629
4630 2011-05-28  Bruno Haible  <bruno@clisp.org>
4631
4632         doc: Cleanup yet another file produced by texinfo.tex.
4633         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
4634
4635 2011-05-28  Bruno Haible  <bruno@clisp.org>
4636
4637         Finish the conditional dependencies mechanism.
4638         * gnulib-tool: New option --no-conditional-dependencies.
4639         (func_usage): Document it. Don't mark --conditional-dependencies as
4640         experimental.
4641         (cond_dependencies): The possible values can now be true, false, empty.
4642         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
4643         (func_import): Store setting in gnulib-cache.m4 and read it from there.
4644         * doc/gnulib-tool.texi (Conditional dependencies): New section.
4645
4646 2011-05-28  Bruno Haible  <bruno@clisp.org>
4647
4648         doc: Use a recent texinfo.tex.
4649         * doc/Makefile (tex_opts): New variable.
4650         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
4651
4652 2011-05-28  Jim Meyering  <meyering@redhat.com>
4653
4654         intprops.h: adjust comment to match code change
4655         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
4656         only once, it *may* have side effects.  Also fix an unrelated typo.
4657         (_GL_INT_SIGNED): Likewise.
4658
4659 2011-05-26  Simon Josefsson  <simon@josefsson.org>
4660
4661         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
4662
4663 2011-05-26  Bruno Haible  <bruno@clisp.org>
4664
4665         mbsrchr: Avoid collision with system function on Interix.
4666         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
4667         Reported by Markus Duft <mduft@gentoo.org>.
4668
4669 2011-05-15  James Youngman  <jay@gnu.org>
4670
4671         getopt: for ambiguous options, enumerate the possibilities.
4672         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
4673         the ambiguous options when an ambiguous prefix is given. This was
4674         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
4675         glibc change was
4676         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
4677
4678 2011-05-25  Eric Blake  <eblake@redhat.com>
4679
4680         getcwd: work around mingw bug
4681         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
4682         * doc/posix-functions/getcwd.texi (getcwd): Document it.
4683         Reported by Matthias Bolte.
4684
4685 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
4686
4687         test-intprops: disable -Wtype-limits diagnostics
4688         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
4689         diagnostics.  Otherwise, the integer overflow macros generate many
4690         diagnostics.  Reported by Jim Meyering in
4691         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
4692
4693         intprops: shorten, to pacify gcc -Woverlength-strings
4694         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
4695         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
4696         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
4697         likely to run afoul of C compiler limits for string constant lengths.
4698         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
4699
4700 2011-05-24  Eric Blake  <eblake@redhat.com>
4701
4702         docs: document recently fixed glibc printf bug
4703         * doc/posix-functions/fprintf.texi (fprintf): Document it.
4704         * doc/posix-functions/printf.texi (printf): Likewise.
4705         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
4706         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
4707
4708         closein-tests: convert to init.sh
4709         * modules/closein-tests (Files): Add init.sh
4710         * tests/test-closein.sh Use it.
4711
4712         yesno-tests: convert to init.sh
4713         * modules/yesno-tests (Files): Add init.sh.
4714         * tests/test-yesno.sh: Use it.
4715
4716         atexit-tests: ensure reliable exit status
4717         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
4718         Reported by Bruno Haible.
4719
4720 2011-05-24  Bruno Haible  <bruno@clisp.org>
4721
4722         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
4723         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
4724         gl_PREREQ_STRERROR_R invocations from here...
4725         * modules/strerror_r-posix (configure.ac): ... to here.
4726
4727 2011-05-24  Eric Blake  <eblake@redhat.com>
4728
4729         strerror_r: fix missing header
4730         * lib/strerror_r.c: Avoid compiler warning about snprintf.
4731
4732         strerror_r: fix AIX test failures
4733         * lib/strerror_r.c (strerror_r): Convert silent truncation to
4734         ERANGE failure.
4735
4736         strerror_r: fix Solaris test failures
4737         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
4738         failures.
4739         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
4740
4741         strerror_r: enforce POSIX recommendations
4742         * lib/strerror_r.c (safe_copy): New helper method.
4743         (strerror_r): Guarantee a non-empty string.
4744         * tests/test-strerror_r.c (main): Enhance tests to incorporate
4745         recent POSIX rulings and to match our strerror guarantees.
4746         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
4747
4748 2011-05-24  Jim Meyering  <meyering@redhat.com>
4749
4750         test-perror2.c: avoid warning about unused variable
4751         * tests/test-perror2.c (main): Remove declaration of unused "fp".
4752
4753 2011-05-24  Eric Blake  <eblake@redhat.com>
4754
4755         perror: avoid spurious test failure on HP-UX
4756         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
4757
4758         tests: fix logic bug in init.sh
4759         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
4760         shell.
4761
4762 2011-05-24  Jim Meyering  <meyering@redhat.com>
4763
4764         utimensat: do not reference an out-of-scope buffer
4765         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
4766         declared in an inner scope, yet "times" would be dereferenced outside
4767         the scope in which "ts" was valid.
4768         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
4769         of ts[2] "out/up", so that the use of aliased "times" (via
4770         "times = ts;") does not end up referencing an out-of-scope "ts"
4771
4772         opendir-safer.c: don't clobber errno; don't close negative FD
4773         * lib/opendir-safer.c (opendir_safer):
4774         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
4775         file descriptor, and more importantly, don't clobber the
4776         offending errno value with EINVAL.  Before, upon failure
4777         of dup_safer, we would pass the negative file descriptor to
4778         fdopendir, which would clobber errno.
4779
4780 2011-05-23  Bruno Haible  <bruno@clisp.org>
4781
4782         idcache: Fix module description.
4783         * modules/idcache (Include): Set to "idcache.h".
4784
4785 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
4786
4787         gnulib-tool: fix portability problem with MacOS sed
4788         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
4789         before the "}".  Problem reported by Leo in
4790         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
4791         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
4792         sed_extract_condition1, sed_extract_condition2.
4793
4794 2011-05-23  Bruno Haible  <bruno@clisp.org>
4795
4796         hash: Simplify autoconf macro.
4797         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
4798
4799 2011-05-23  Bruno Haible  <bruno@clisp.org>
4800
4801         getugroups: Fix module description.
4802         * modules/getugroups (Include): Set to "getugroups.h".
4803
4804 2011-05-23  Bruno Haible  <bruno@clisp.org>
4805
4806         linkat: Simplify autoconf macro.
4807         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
4808
4809 2011-05-23  Bruno Haible  <bruno@clisp.org>
4810             Eric Blake  <eblake@redhat.com>
4811
4812         linkat, renameat: Update dependencies.
4813         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
4814         * modules/linkat (Depends-on): Likewise. Remove also readlink,
4815         symlinkat.
4816
4817 2011-05-23  Jim Meyering  <meyering@redhat.com>
4818
4819         maint.mk: more tight_scope improvements
4820         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
4821         (_gl_TS_headers): Define only in if-0'd block.
4822         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
4823         sometimes we must *not* use it.  Adjust uses accordingly.
4824         (sc_tight_scope): Use much simpler grep-based test to determine
4825         whether we skip this rule.
4826
4827         maint.mk: generalize/improve the tight-scope rule
4828         * top/maint.mk: Emit a warning when the test is skipped.
4829         (_gl_TS_dir): Add $(srcdir)/ prefix.
4830         (_gl_TS_function_match): Simplify, rather than trying
4831         to enumerate common types.  Otherwise, it would fail to match an
4832         "extern unsigned char const *" declaration in idutils.
4833         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
4834         a way to support use of that type of macro.
4835         (_gl_TS_var_match): Simplify regexp.
4836         (_gl_TS_obj_files): New configurable variable.
4837         (_gl_TS_headers): Likewise.
4838
4839 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
4840
4841         verify: fix bug when gnulib <assert.h> is also included
4842         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
4843         is defined, not if _GL_STATIC_ASSERT_H is not defined.
4844         Perhaps there's a better way, but this fixes the immediate problem.
4845         Problem reported by Bruno Haible in
4846         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
4847
4848 2011-05-22  Bruno Haible  <bruno@clisp.org>
4849
4850         xgetcwd: Simplify autoconf macro.
4851         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
4852
4853 2011-05-22  Bruno Haible  <bruno@clisp.org>
4854
4855         New module 'mktime-internal'.
4856         * modules/mktime-internal: New file.
4857         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
4858         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
4859         mktime_internal as a C macro if libc has __mktime_internal.
4860         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
4861         conditions.
4862         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
4863
4864 2011-05-22  Bruno Haible  <bruno@clisp.org>
4865
4866         timegm: Correct mktime replacement statements.
4867         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
4868         defining mktime as a C macro. This completes a 2009-07-28 commit.
4869
4870 2011-05-22  Bruno Haible  <bruno@clisp.org>
4871
4872         timegm: Simplify autoconf macro.
4873         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
4874
4875 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
4876
4877         clock-time: change to LGPLv2+.
4878         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
4879         BSD-like but we have no mark for that; this is good enough for now.
4880
4881 2011-05-21  Bruno Haible  <bruno@clisp.org>
4882
4883         strerror_r: Fix comments.
4884         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
4885
4886 2011-05-21  Bruno Haible  <bruno@clisp.org>
4887
4888         relocatable-prog-wrapper: Fix possible link error.
4889         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
4890         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
4891         (gl_FUNC_SETENV): ... to here.
4892         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
4893         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
4894
4895 2011-05-21  Bruno Haible  <bruno@clisp.org>
4896
4897         relocatable-prog-wrapper: Assume strerror() exists.
4898         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
4899         m4/strerror.m4.
4900         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
4901         * lib/relocwrapper.c: Remove mention of strerror module.
4902         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
4903         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
4904         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
4905         C macro.
4906
4907 2011-05-21  Bruno Haible  <bruno@clisp.org>
4908
4909         select: Simplify replacement idiom.
4910         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
4911         Win32 platforms.
4912         * lib/sys_select.in.h (select): Simplify accordingly.
4913         * modules/select (Depends-on): Likewise.
4914
4915 2011-05-21  Bruno Haible  <bruno@clisp.org>
4916
4917         mkdir-p: Simplify autoconf macro.
4918         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
4919         gl_FUNC_LCHOWN.
4920
4921 2011-05-21  Eric Blake  <eblake@redhat.com>
4922
4923         strerror_r: avoid clobbering strerror on cygwin
4924         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
4925         fall back instead to sys_errlist.
4926         * modules/strerror (configure.ac): Add witness.
4927         * tests/test-strerror_r.c (main): Enhance test.
4928         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
4929         * tests/test-perror2.c (main): Free memory before exit.
4930
4931 2011-05-21  Bruno Haible  <bruno@clisp.org>
4932
4933         mkdtemp: Use gnulib naming conventions.
4934         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
4935         * modules/mkdtemp (configure.ac): Update.
4936
4937 2011-05-20  Eric Blake  <eblake@redhat.com>
4938
4939         strerror_r: avoid corrupting errno on Solaris
4940         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
4941         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
4942
4943         strerror_r: avoid compiler warning
4944         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
4945
4946         strerror_r: simplify AIX code
4947         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
4948
4949         test-perror: avoid spurious failure on FreeBSD
4950         * modules/perror-tests (Depends-on): Add strerror, now that
4951         strerror_r no longer pulls it in.
4952
4953 2011-05-20  Bruno Haible  <bruno@clisp.org>
4954
4955         strerror_r-posix: Remove unused dependencies.
4956         * modules/strerror_r-posix (Depends-on): Remove strerror.
4957         Reported by Eric Blake.
4958
4959 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
4960
4961         intprops: remove assumption about A|B representation
4962         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
4963         is a valid integer if both A and B are.  Although this is true for
4964         all known practical hosts, the C standard doesn't guarantee it,
4965         and the code need not assume it.  Also, this change may work around
4966         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
4967         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
4968
4969 2011-05-20  Eric Blake  <eblake@redhat.com>
4970
4971         perror: work around FreeBSD bug
4972         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
4973         is broken.  Move AC_LIBOBJ...
4974         * modules/perror (configure.ac): Here.
4975         * doc/posix-functions/perror.texi (perror): Document this.
4976         * tests/test-perror2.c (main): Enhance test.
4977
4978         test-perror: check for strerror interactions
4979         * tests/macros.h (STREQ): Add macro.
4980         * modules/perror-tests (Files): Add second test.
4981         * tests/test-perror2.c (main): New file.
4982         * doc/posix-functions/perror.texi (perror): Document glibc bug.
4983
4984         test-perror: rewrite to use init script
4985         * modules/perror-tests (Files): Add init.sh.
4986         * tests/test-perror.sh: Use temporary directory.
4987
4988 2011-05-20  Jim Meyering  <meyering@redhat.com>
4989
4990         maint: replace misused "a" with "an"
4991         * doc/intprops.texi: "a integer"
4992         * doc/regex.texi: "a explanation"
4993         * lib/alignof.h: "a object"
4994         * lib/argmatch.h: "a explanation"
4995         * lib/argp-help.c: "a option" and "a OPTION_DOC"
4996         * lib/stdint.in.h: "a integer"
4997         * lib/userspec.c: "a owner"
4998         * doc/gnulib.texi: Fix "a idea", and reword.
4999
5000 2011-05-19  Jim Meyering  <meyering@redhat.com>
5001
5002         maint: correct misuse of "a" and "an"
5003         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
5004         * lib/argp-help.c: "an docum...": s/an/a/
5005         * lib/argp-parse.c: "An vector": s/An/A/
5006         * lib/execute.c: "an native": s/an/a/
5007         * lib/spawn-pipe.c: Likewise.
5008         * lib/gc.h: "an Gc_rc": s/an/a/
5009         * lib/unigbrk.in.h: "an grapheme": s/an/a/
5010         * lib/fts.c: "an stat.st_dev": s/an/a/
5011
5012 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
5013
5014         intprops-tests: work around HP-UX 11.23 cc bug with constants
5015         * tests/test-intprops.c (VERIFY): New macro.
5016         (main): Use it, instead of verify, to work around the compiler bug; see
5017         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
5018
5019         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
5020         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
5021         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
5022         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
5023         (_GL_REMAINDER_OVERFLOW): Use it.
5024
5025         intprops-tests: revert unsigned part of previous change
5026         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
5027         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
5028         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
5029         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
5030
5031 2011-05-19  Bruno Haible  <bruno@clisp.org>
5032
5033         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
5034         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
5035         strerror_r() returned without filling the buffer.
5036         Reported by Eric Blake.
5037
5038 2011-05-19  Eric Blake  <eblake@redhat.com>
5039
5040         strerror_r: guarantee unchanged errno
5041         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
5042         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
5043         failure.
5044         * tests/test-strerror_r.c (main): Enhance test.
5045
5046 2011-05-19  Bruno Haible  <bruno@clisp.org>
5047
5048         strerror_r: Reorder #if blocks.
5049         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
5050         for consistency with the previous commit.
5051
5052 2011-05-19  Bruno Haible  <bruno@clisp.org>
5053
5054         perror: Avoid clobbering the strerror buffer when possible.
5055         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
5056         * lib/strerror.c: Include it.
5057         * modules/strerror (Files): Add lib/strerror-impl.h.
5058         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
5059         (my_strerror): New function, defined through lib/strerror-impl.h.
5060         (perror): Use it instead of strerror.
5061         * modules/perror (Files): Add lib/strerror-impl.h.
5062         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
5063
5064 2011-05-19  Eric Blake  <eblake@redhat.com>
5065
5066         strerror_r: fix on newer cygwin
5067         * lib/strerror_r.c (strerror_r): Cygwin now has
5068         __xpg_strerror_r, use it.
5069
5070 2011-05-19  Bruno Haible  <bruno@clisp.org>
5071
5072         strerror_r: Avoid clobbering the strerror buffer when possible.
5073         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
5074         (sys_nerr, sys_errlist): New declarations.
5075         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
5076         HP-UX, native Win32, IRIX, and 32-bit Solaris.
5077         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
5078
5079 2011-05-19  Bruno Haible  <bruno@clisp.org>
5080
5081         strerror_r: Fix test failure on mingw.
5082         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
5083         EXTEND_STRERROR_R.
5084         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
5085         macros from errno.in.h instead.
5086
5087 2011-05-19  Eric Blake  <eblake@redhat.com>
5088
5089         strerror: relax test for Solaris
5090         * tests/test-strerror.c (main): Permit Solaris behavior.
5091         * tests/test-strerror_r.c (main): Likewise.
5092
5093         strerror: enforce POSIX ruling on strerror(0)
5094         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
5095         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
5096         * lib/strerror_r.c (rpl_strerror_r): Work around it.
5097         * doc/posix-functions/strerror.texi (strerror): Document it.
5098         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
5099         * tests/test-strerror.c (main): Strengthen test.
5100         * tests/test-strerror_r.c (main): Likewise.
5101
5102 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
5103
5104         intprop-tests: port to older and more-pedantic compilers
5105         * modules/intprops-tests (Files): Add tests/macros.h.
5106         * tests/test-intprops.c: Include macros.h.
5107         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
5108         it's no longer documented to expand to an integer constant expression.
5109         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
5110         argument is floating point, as it's no longer documented to expand
5111         to an integer constant expression in that case.
5112         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
5113         compiler bugs reported by Bruno Haible.  See
5114         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
5115         (U0, U1): New constants, to work around the same bugs.  Also,
5116         in tests, use e.g., "(unsigned int) 39" rather than "39u".
5117
5118         intprops: work around C compiler bugs
5119         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
5120         bug in Sun C 5.11 2010/08/13 and other compilers; see
5121         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
5122
5123         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
5124         * doc/intprops.texi (Integer Type Determination): Fix
5125         documentation for TYPE_IS_INTEGER: it returns an constant
5126         expression, not an integer constant expression.  Fix doc for
5127         TYPE_SIGNED: it returns an integer constant expression only if its
5128         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
5129         hardly worth documented that way....)
5130
5131 2011-05-18  Bruno Haible  <bruno@clisp.org>
5132
5133         strerror_r: Avoid clobbering the strerror buffer when possible.
5134         * lib/strerror_r.c (strerror_r): Merge the three implementations.
5135         Handle gnulib defined errno values here. When strerror() returns NULL
5136         or an empty string, return EINVAL.
5137         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
5138         gnulib defined errno values here.
5139         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
5140
5141 2011-05-18  Eric Blake  <eblake@redhat.com>
5142
5143         fnmatch: avoid compiler warning
5144         * lib/fnmatch_loop.c (FCT): Use correct type.
5145         Reported by Matthias Bolte.
5146
5147 2011-05-13  Jim Meyering  <meyering@redhat.com>
5148
5149         maint.mk: three new prohibit_<HDR>_without_use rules
5150         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
5151         (sc_prohibit_stdio-safer_without_use): Likewise.
5152         (sc_prohibit_xfreopen_without_use): Likewise.
5153
5154 2011-05-17  Jim Meyering  <meyering@redhat.com>
5155
5156         announce-gen: fail if the NEWS delta is empty
5157         If there's nothing noteworthy in NEWS, then either you forgot
5158         or you shouldn't be releasing.
5159         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
5160
5161 2011-05-17  Pádraig Brady <P@draigBrady.com>
5162
5163         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
5164         reserved symbols starting with double underscore from the check.
5165
5166 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
5167
5168         intprops: add doc
5169         * doc/intprops.texi: New file, documenting intprops.
5170         * doc/gnulib.texi (Particular Modules): Include it.
5171
5172         verify: add doc to gnulib manual and fix example
5173         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
5174         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
5175         (Compile-time Assertions): Fix example so it can't overflow.
5176
5177 2011-05-17  Jim Meyering  <meyering@redhat.com>
5178
5179         warnings.m4: don't usurp save_CPPFLAGS variable name
5180         * m4/warnings.m4: Prefix local temporary variable name with gl_.
5181
5182         doc: fix typo
5183         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
5184
5185 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
5186             Bruno Haible  <bruno@clisp.org>
5187
5188         doc: Tweak recent change.
5189         * README (Portability guidelines): Tweak new text.
5190         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
5191         Interix 6.1.
5192
5193 2011-05-16  Eric Blake  <eblake@redhat.com>
5194
5195         inttypes: avoid autoconf warning
5196         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
5197         * m4/stdint.m4 (gl_STDINT_H): Likewise.
5198
5199 2011-05-16  Sam Steingold <sds@gnu.org>
5200         and Eric Blake  <eblake@redhat.com>
5201
5202         vc-list-files: accept multiple directory operands
5203         * build-aux/vc-list-files: Iterate over all remaining operands.
5204
5205 2011-05-16  Bruno Haible  <bruno@clisp.org>
5206
5207         Fix confusion regarding deprecated modules.
5208         * modules/calloc (Status, Notice): Mark module as deprecated, not
5209         obsolete.
5210         * modules/fnmatch-posix (Status, Notice): Likewise.
5211         * modules/getdate (Status, Notice): Likewise.
5212         * modules/getopt (Status, Notice): Likewise.
5213         * modules/malloc (Status, Notice): Likewise.
5214         * modules/pipe (Status, Notice): Likewise.
5215         * modules/realloc (Status, Notice): Likewise.
5216         * modules/rename-dest-slash (Status, Notice): Likewise.
5217         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
5218         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
5219         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
5220         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
5221         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
5222
5223 2011-05-16  Bruno Haible  <bruno@clisp.org>
5224
5225         doc: List the target platforms.
5226         * doc/gnulib-intro.texi (Target Platforms): New section.
5227         * doc/gnulib.texi (Introduction): Update menu.
5228         * README (Portability guidelines): Refer to the new section. Update
5229         statement about oldest supported environment. Remove rationale why
5230         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
5231         unportable C89 function.
5232         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
5233         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
5234
5235 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
5236
5237         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
5238
5239 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
5240
5241         intprops-tests: new module
5242         * modules/intprops-tests, tests/test-intprops.c: New files.
5243
5244         intprops: add safe, portable integer overflow checking
5245         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
5246         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
5247         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
5248         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
5249         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
5250         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
5251         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
5252         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
5253         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
5254         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
5255         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
5256
5257 2011-05-12  James Youngman  <jay@gnu.org>
5258
5259         Add a test for glibc's Bugzilla bug #12378.
5260         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
5261         doesn't allow the literal matching of a lone "[" (which is
5262         required by POSIX).
5263         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
5264
5265 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
5266
5267         Sync glibc change fixing Bugzilla bug #12378.
5268         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
5269         beginning and fall back to matching as normal character if the
5270         string ends before the matching ']' is found.  This is what POSIX
5271         requires.
5272
5273 2011-05-13  Eric Blake  <eblake@redhat.com>
5274
5275         getcwd-lgpl: relax test for FreeBSD
5276         * doc/posix-functions/getcwd.texi (getcwd): Document portability
5277         issue.
5278         * tests/test-getcwd-lgpl.c (main): Relax test.
5279         Reported by Matthias Bolte.
5280
5281 2011-05-11  Eric Blake  <eblake@redhat.com>
5282
5283         test-fflush: silence compiler warning
5284         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
5285
5286 2011-05-11  Bruno Haible  <bruno@clisp.org>
5287
5288         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
5289         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
5290         * modules/canonicalize (Depends-on): Add 'nocrash'.
5291         * modules/canonicalize-lgpl (Depends-on): Likewise.
5292         * doc/posix-functions/realpath.texi: Update platforms list.
5293         Reported by Ryan Schmidt <ryandesign@macports.org>.
5294
5295 2011-05-11  Bruno Haible  <bruno@clisp.org>
5296
5297         group-member: Declare function in <unistd.h>.
5298         * lib/unistd.in.h (group_member): New declaration.
5299         * lib/group-member.h: Remove file.
5300         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
5301         * tests/test-unistd-c++.cc: Check signature of group_member.
5302         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
5303         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
5304         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
5305         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
5306         HAVE_GROUP_MEMBER.
5307         * modules/group-member (Files): Remove lib/group-member.h.
5308         (Depends-on): Add unistd. Specify conditions.
5309         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
5310         (Include): Change to <unistd.h>.
5311         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
5312         HAVE_GROUP_MEMBER.
5313         * NEWS: Mention the change.
5314         * lib/euidaccess.c: Don't include group-member.h.
5315
5316 2011-05-11  Bruno Haible  <bruno@clisp.org>
5317
5318         group-member: Document module.
5319         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
5320         module.
5321
5322 2011-05-11  Bruno Haible  <bruno@clisp.org>
5323
5324         fclose: Fix mistake earlier today.
5325         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
5326
5327 2011-05-11  Eric Blake  <eblake@redhat.com>
5328
5329         fclose: preserve fflush errors
5330         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
5331         Reported by Jim Meyering.
5332
5333         bootstrap: support a prereq of 'rpcgen -' on RHEL5
5334         * build-aux/bootstrap (check_versions): When no specific version
5335         is required, merely check that the app produces an exit status
5336         that indicates its existence.
5337
5338         maint.mk: drop redundant check
5339         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
5340         the same but better.
5341
5342 2011-05-11  Bruno Haible  <bruno@clisp.org>
5343
5344         fclose: Fix possible link error.
5345         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
5346         unregister_shadow_fd. Improve comments.
5347         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
5348         Eric Blake.
5349
5350 2011-05-11  Jim Meyering  <meyering@redhat.com>
5351
5352         maint.mk: improve "can not" detection and generalize rule name
5353         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
5354         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
5355         Use the same technique as in sc_prohibit_doubled_word, so that
5356         we recognize "can not" also when the words are separated by a newline.
5357         Suggested by Eric Blake.
5358         (perl_filename_lineno_text_): Define.  Factored out of...
5359         (prohibit_doubled_word_): ...here.  Use the new definition.
5360         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
5361         (prohibit_undesirable_word_seq_RE_): New overridable variable.
5362         (ignore_undesirable_word_sequence_RE_): New overridable variable.
5363
5364 2011-05-10  Eric Blake  <eblake@redhat.com>
5365
5366         fclose: avoid double close race when possible
5367         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
5368         all but WINDOWS_SOCKETS.
5369
5370 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
5371
5372         openat: correct new comment
5373         * lib/openat-proc.c (openat_proc_name): Correct the comment.
5374
5375 2011-05-10  Jim Meyering  <meyering@redhat.com>
5376
5377         openat: add comments
5378         * lib/openat-proc.c (openat_proc_name): Add comments,
5379         mostly from Eric Blake.
5380
5381 2011-05-09  Eric Blake  <eblake@redhat.com>
5382
5383         openat: reduce syscalls in first probe of /proc
5384         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
5385         be a directory.  Simplify the probe for .. bugs.
5386         * modules/openat (Depends-on): Drop same-inode.
5387         Reported by Bastien ROUCARIES.
5388
5389 2011-05-09  Jim Meyering  <meyering@redhat.com>
5390
5391         maint.mk: change semantics/name of tight_scope variables
5392         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
5393         Rename variables to align with semantics that make them more useful.
5394
5395         maint.mk: tweak new rule's name not to impinge
5396         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
5397         (sc_tight_scope): Use new rule name rather than $@-0.
5398
5399         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
5400         * top/maint.mk (sc_tight_scope): New rule.
5401         (sc_tight_scope-0): New rule, ifdef'd out.
5402         (_gl_TS_dir): Default.
5403         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
5404         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
5405
5406 2011-05-09  Simon Josefsson  <simon@josefsson.org>
5407
5408         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
5409         Haible <bruno@clisp.org>.
5410
5411 2011-05-08  Bruno Haible  <bruno@clisp.org>
5412
5413         Comments.
5414         * m4/isnanf.m4: Add comment.
5415         * m4/isnanl.m4: Likewise.
5416
5417 2011-05-08  Bruno Haible  <bruno@clisp.org>
5418
5419         glob: Remove obsolete macro.
5420         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
5421
5422 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
5423
5424         intprops: Sun C 5.11 supports __typeof__
5425         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
5426         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
5427         which is new.
5428         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
5429
5430         intprops: switch to usual gnulib indenting and naming
5431         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
5432         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
5433
5434         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
5435
5436 2011-05-08  Jim Meyering  <meyering@redhat.com>
5437
5438         maint.mk: suppress "Entering/Leaving directory" diag in announcement
5439         * top/maint.mk (release-prep): Use make's --no-print-directory
5440         option when generating the announcement.  This eliminates the
5441         pesky "make[2]: Entering/Leaving directory" diagnostics in the
5442         generated announcement template.
5443
5444 2011-05-08  Bruno Haible  <bruno@clisp.org>
5445
5446         tzset: Fix gettimeofday wrapper on Solaris 2.6.
5447         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
5448         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
5449
5450 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
5451
5452         ignore-value, verify: Omit include files from lib_SOURCES.
5453         * modules/ignore-value, modules/verify (Makefile.am):
5454         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
5455         that leads Automake to duplicate use of am__objects_... variables
5456         in Makefile.in.  See
5457         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
5458
5459 2011-05-07  Bruno Haible  <bruno@clisp.org>
5460
5461         fclose: Simplify autoconf macro.
5462         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
5463         defined.
5464
5465 2011-05-07  Bruno Haible  <bruno@clisp.org>
5466
5467         canonicalize-lgpl: Fix autoconf macro ordering bug.
5468         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
5469         gl_STDLIB_H_DEFAULTS.
5470
5471 2011-05-06  Eric Blake  <eblake@redhat.com>
5472
5473         maintainer-makefile: make sc_po_check easier to tune
5474         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
5475         to probe for strings, such as an alternate location for gnulib.
5476
5477         fclose: guarantee behavior on seekable stdin
5478         * modules/fclose (Depends-on): Add fflush.
5479         * doc/posix-functions/fclose.texi (fclose): Document this.
5480         * tests/test-fclose.c (main): Make test for this unconditional.
5481
5482 2011-05-06  Bruno Haible  <bruno@clisp.org>
5483
5484         fflush, fpurge: Relicense under LGPLv2+.
5485         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
5486         * modules/fpurge (License): Likewise.
5487         With permission from Eric Blake and Jim Meyering.
5488         Suggested by Eric Blake.
5489
5490 2011-05-06  Karl Berry  <karl@gnu.org>
5491
5492         * MODULES.html.sh (func_all_modules): remove exit.
5493
5494 2011-05-06  Jim Meyering  <meyering@redhat.com>
5495
5496         maint.mk: use info-gnu@ as the default only for a stable release
5497         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
5498         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
5499         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
5500         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
5501
5502 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
5503
5504         assert-h: new module, which supports C1X-style static_assert
5505         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
5506         * lib/verify.h: Revamp so that this can be copied into assert.h,
5507         while retaining the ability to use it standalone as before.
5508         Rename private identifiers so as not to encroach on the
5509         standard C namespace, since this is now used by assert.h.
5510         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
5511         the old verify_true.
5512         (_GL_VERIFY_TRUE): New macro, with much of the contents of
5513         the old verify_true.  Use _GL_VERIFY_TYPE.
5514         (_GL_VERIFY): New macro, with much of the contents of the old verify.
5515         (static_assert): New macro, if _GL_STATIC_ASSERT_H
5516         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
5517         defined when this file is copied into the replacement assert.h.
5518         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
5519         and _Static_assert is not built in.
5520         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
5521         defined, and use the new macros mentioned above.
5522         * doc/posix-headers/assert.texi: Document this.
5523
5524 2011-05-05  Bruno Haible  <bruno@clisp.org>
5525
5526         fclose, fflush: Respect rules for use of AC_LIBOBJ.
5527         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
5528         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
5529         gl_REPLACE_FCLOSE here.
5530         * modules/fflush (Depends-on): Remove fclose.
5531         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
5532         combination with module 'fclose'.
5533
5534 2011-05-05  Bruno Haible  <bruno@clisp.org>
5535
5536         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
5537         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
5538         gl_FUNC_FFLUSH.
5539         (gl_FUNC_FFLUSH): Use it.
5540         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
5541         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
5542         gl_REPLACE_FSEEKO here.
5543
5544 2011-05-05  Bruno Haible  <bruno@clisp.org>
5545
5546         tzset: Relicense under LGPL.
5547         * modules/tzset (License): Change to LGPL.
5548         No agreement needed; it's a no-op.
5549
5550         strtoimax, strtoumax: Relicense under LGPL.
5551         * modules/strtoimax (License): Change to LGPL.
5552         * modules/strtoumax (License): Likewise.
5553         With permission from Jim Meyering, Paul Eggert:
5554         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
5555         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
5556
5557         getgroups: Relicense under LGPL.
5558         * modules/getgroups (License): Change to LGPL.
5559         With permission from Jim Meyering, Paul Eggert, Eric Blake:
5560         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
5561         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
5562         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
5563
5564         nanosleep: Relicense under LGPL.
5565         * modules/nanosleep (License): Change to LGPL.
5566         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
5567         Haible:
5568         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
5569         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
5570         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
5571         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
5572
5573         futimens: Relicense under LGPL.
5574         * modules/futimens (License): Change to LGPL.
5575         With permission from Eric Blake:
5576         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
5577
5578         fflush: Relicense under LGPL.
5579         * modules/fflush (License): Change to LGPL.
5580         With permission from Eric Blake, Bruno Haible, Jim Meyering:
5581         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
5582         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
5583         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
5584
5585         tmpfile: Relicense under LGPL.
5586         * modules/tmpfile (License): Change to LGPL.
5587         With permission from Ben Pfaff:
5588         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
5589
5590         isfinite: Relicense under LGPL.
5591         * modules/isfinite (License): Change to LGPL.
5592         With permission from Ben Pfaff, Bruno Haible:
5593         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
5594         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
5595
5596         acosl..tanl: Relicense under LGPL.
5597         * modules/acosl (License): Change to LGPL.
5598         * modules/asinl (License): Likewise.
5599         * modules/atanl (License): Likewise.
5600         * modules/cosl (License): Likewise.
5601         * modules/expl (License): Likewise.
5602         * modules/logl (License): Likewise.
5603         * modules/sinl (License): Likewise.
5604         * modules/sqrtl (License): Likewise.
5605         * modules/tanl (License): Likewise.
5606         Source code originally from glibc and Paolo Bonzini. Agreements:
5607         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
5608         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
5609
5610 2011-05-05  Bruno Haible  <bruno@clisp.org>
5611
5612         signal: Define sighandler_t.
5613         * lib/signal.in.h (sighandler_t): New type.
5614         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
5615         whether sighandler_t is defined.
5616         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
5617         * modules/signal (Depends-on): Add extensions.
5618         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
5619         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
5620         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
5621
5622 2011-05-05  Eric Blake  <eblake@redhat.com>
5623
5624         maint: remove useless REPLACE_*_H macros
5625         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
5626         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
5627         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
5628         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
5629         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
5630         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
5631         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
5632         * m4/btowc.m4: Update callers.
5633         * m4/dirfd.m4: Likewise.
5634         * m4/duplocale.m4: Likewise.
5635         * m4/fchdir.m4: Likewise.
5636         * m4/fdopendir.m4: Likewise.
5637         * m4/inet_ntop.m4: Likewise.
5638         * m4/inet_pton.m4: Likewise.
5639         * m4/ioctl.m4: Likewise.
5640         * m4/mbrlen.m4: Likewise.
5641         * m4/mbrtowc.m4: Likewise.
5642         * m4/mbsinit.m4: Likewise.
5643         * m4/mbsnrtowcs.m4: Likewise.
5644         * m4/mbsrtowcs.m4: Likewise.
5645         * m4/poll.m4: Likewise.
5646         * m4/setlocale.m4: Likewise.
5647         * m4/wcrtomb.m4: Likewise.
5648         * m4/wcsnrtombs.m4: Likewise.
5649         * m4/wcsrtombs.m4: Likewise.
5650         * m4/wctob.m4: Likewise.
5651         * m4/wcwidth.m4: Likewise.
5652         * modules/posix_spawn: Likewise.
5653         * modules/posix_spawn_file_actions_addclose: Likewise.
5654         * modules/posix_spawn_file_actions_adddup2: Likewise.
5655         * modules/posix_spawn_file_actions_addopen: Likewise.
5656         * modules/posix_spawn_file_actions_destroy: Likewise.
5657         * modules/posix_spawn_file_actions_init: Likewise.
5658         * modules/posix_spawnattr_destroy: Likewise.
5659         * modules/posix_spawnattr_getflags: Likewise.
5660         * modules/posix_spawnattr_getpgroup: Likewise.
5661         * modules/posix_spawnattr_getschedparam: Likewise.
5662         * modules/posix_spawnattr_getschedpolicy: Likewise.
5663         * modules/posix_spawnattr_getsigdefault: Likewise.
5664         * modules/posix_spawnattr_getsigmask: Likewise.
5665         * modules/posix_spawnattr_init: Likewise.
5666         * modules/posix_spawnattr_setflags: Likewise.
5667         * modules/posix_spawnattr_setpgroup: Likewise.
5668         * modules/posix_spawnattr_setschedparam: Likewise.
5669         * modules/posix_spawnattr_setschedpolicy: Likewise.
5670         * modules/posix_spawnattr_setsigdefault: Likewise.
5671         * modules/posix_spawnattr_setsigmask: Likewise.
5672         * modules/posix_spawnp: Likewise.
5673
5674 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
5675
5676         Add option to do-release-commit-and-tag to specify branch.
5677         * build-aux/do-release-commit-and-tag: Add --branch.
5678
5679 2011-05-03  Bruno Haible  <bruno@clisp.org>
5680
5681         Avoid unnecessary compilation units, through conditional dependencies.
5682         * modules/accept (Depends-on): Add conditions to the dependencies.
5683         * modules/acosl (Depends-on): Likewise.
5684         * modules/argz (Depends-on): Likewise.
5685         * modules/asinl (Depends-on): Likewise.
5686         * modules/atanl (Depends-on): Likewise.
5687         * modules/atoll (Depends-on): Likewise.
5688         * modules/bind (Depends-on): Likewise.
5689         * modules/btowc (Depends-on): Likewise.
5690         * modules/canonicalize-lgpl (Depends-on): Likewise.
5691         * modules/ceil (Depends-on): Likewise.
5692         * modules/ceilf (Depends-on): Likewise.
5693         * modules/ceill (Depends-on): Likewise.
5694         * modules/chdir-long (Depends-on): Likewise.
5695         * modules/chown (Depends-on): Likewise.
5696         * modules/close (Depends-on): Likewise.
5697         * modules/connect (Depends-on): Likewise.
5698         * modules/cosl (Depends-on): Likewise.
5699         * modules/dirfd (Depends-on): Likewise.
5700         * modules/dprintf (Depends-on): Likewise.
5701         * modules/dprintf-posix (Depends-on): Likewise.
5702         * modules/error (Depends-on): Likewise.
5703         * modules/euidaccess (Depends-on): Likewise.
5704         * modules/expl (Depends-on): Likewise.
5705         * modules/faccessat (Depends-on): Likewise.
5706         * modules/fchdir (Depends-on): Likewise.
5707         * modules/fclose (Depends-on): Likewise.
5708         * modules/fcntl (Depends-on): Likewise.
5709         * modules/fdopendir (Depends-on): Likewise.
5710         * modules/fflush (Depends-on): Likewise.
5711         * modules/floor (Depends-on): Likewise.
5712         * modules/floorf (Depends-on): Likewise.
5713         * modules/floorl (Depends-on): Likewise.
5714         * modules/fnmatch (Depends-on): Likewise.
5715         * modules/fopen (Depends-on): Likewise.
5716         * modules/fprintf-posix (Depends-on): Likewise.
5717         * modules/frexp (Depends-on): Likewise.
5718         * modules/frexp-nolibm (Depends-on): Likewise.
5719         * modules/frexpl (Depends-on): Likewise.
5720         * modules/frexpl-nolibm (Depends-on): Likewise.
5721         * modules/fseek (Depends-on): Likewise.
5722         * modules/fsusage (Depends-on): Likewise.
5723         * modules/ftell (Depends-on): Likewise.
5724         * modules/ftello (Depends-on): Likewise.
5725         * modules/futimens (Depends-on): Likewise.
5726         * modules/getcwd (Depends-on): Likewise.
5727         * modules/getcwd-lgpl (Depends-on): Likewise.
5728         * modules/getdelim (Depends-on): Likewise.
5729         * modules/getdomainname (Depends-on): Likewise.
5730         * modules/getgroups (Depends-on): Likewise.
5731         * modules/gethostname (Depends-on): Likewise.
5732         * modules/getline (Depends-on): Likewise.
5733         * modules/getlogin_r (Depends-on): Likewise.
5734         * modules/getopt-posix (Depends-on): Likewise.
5735         * modules/getpeername (Depends-on): Likewise.
5736         * modules/getsockname (Depends-on): Likewise.
5737         * modules/getsockopt (Depends-on): Likewise.
5738         * modules/getsubopt (Depends-on): Likewise.
5739         * modules/getusershell (Depends-on): Likewise.
5740         * modules/glob (Depends-on): Likewise.
5741         * modules/grantpt (Depends-on): Likewise.
5742         * modules/iconv_open (Depends-on): Likewise.
5743         * modules/iconv_open-utf (Depends-on): Likewise.
5744         * modules/inet_ntop (Depends-on): Likewise.
5745         * modules/inet_pton (Depends-on): Likewise.
5746         * modules/ioctl (Depends-on): Likewise.
5747         * modules/isapipe (Depends-on): Likewise.
5748         * modules/isfinite (Depends-on): Likewise.
5749         * modules/isinf (Depends-on): Likewise.
5750         * modules/lchown (Depends-on): Likewise.
5751         * modules/ldexpl (Depends-on): Likewise.
5752         * modules/link (Depends-on): Likewise.
5753         * modules/linkat (Depends-on): Likewise.
5754         * modules/listen (Depends-on): Likewise.
5755         * modules/logl (Depends-on): Likewise.
5756         * modules/lstat (Depends-on): Likewise.
5757         * modules/mbrlen (Depends-on): Likewise.
5758         * modules/mbrtowc (Depends-on): Likewise.
5759         * modules/mbsinit (Depends-on): Likewise.
5760         * modules/mbsnrtowcs (Depends-on): Likewise.
5761         * modules/mbsrtowcs (Depends-on): Likewise.
5762         * modules/mbtowc (Depends-on): Likewise.
5763         * modules/memcmp (Depends-on): Likewise.
5764         * modules/mkdir (Depends-on): Likewise.
5765         * modules/mkdtemp (Depends-on): Likewise.
5766         * modules/mkfifo (Depends-on): Likewise.
5767         * modules/mkfifoat (Depends-on): Likewise.
5768         * modules/mknod (Depends-on): Likewise.
5769         * modules/mkostemp (Depends-on): Likewise.
5770         * modules/mkostemps (Depends-on): Likewise.
5771         * modules/mkstemp (Depends-on): Likewise.
5772         * modules/mkstemps (Depends-on): Likewise.
5773         * modules/mktime (Depends-on): Likewise.
5774         * modules/nanosleep (Depends-on): Likewise.
5775         * modules/open (Depends-on): Likewise.
5776         * modules/openat (Depends-on): Likewise.
5777         * modules/perror (Depends-on): Likewise.
5778         * modules/poll (Depends-on): Likewise.
5779         * modules/popen (Depends-on): Likewise.
5780         * modules/posix_spawn (Depends-on): Likewise.
5781         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
5782         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
5783         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
5784         * modules/posix_spawnp (Depends-on): Likewise.
5785         * modules/pread (Depends-on): Likewise.
5786         * modules/printf-posix (Depends-on): Likewise.
5787         * modules/ptsname (Depends-on): Likewise.
5788         * modules/putenv (Depends-on): Likewise.
5789         * modules/pwrite (Depends-on): Likewise.
5790         * modules/readline (Depends-on): Likewise.
5791         * modules/readlink (Depends-on): Likewise.
5792         * modules/readlinkat (Depends-on): Likewise.
5793         * modules/recv (Depends-on): Likewise.
5794         * modules/recvfrom (Depends-on): Likewise.
5795         * modules/regex (Depends-on): Likewise.
5796         * modules/remove (Depends-on): Likewise.
5797         * modules/rename (Depends-on): Likewise.
5798         * modules/renameat (Depends-on): Likewise.
5799         * modules/rmdir (Depends-on): Likewise.
5800         * modules/round (Depends-on): Likewise.
5801         * modules/roundf (Depends-on): Likewise.
5802         * modules/roundl (Depends-on): Likewise.
5803         * modules/rpmatch (Depends-on): Likewise.
5804         * modules/select (Depends-on): Likewise.
5805         * modules/send (Depends-on): Likewise.
5806         * modules/sendto (Depends-on): Likewise.
5807         * modules/setenv (Depends-on): Likewise.
5808         * modules/setlocale (Depends-on): Likewise.
5809         * modules/setsockopt (Depends-on): Likewise.
5810         * modules/shutdown (Depends-on): Likewise.
5811         * modules/sigaction (Depends-on): Likewise.
5812         * modules/signbit (Depends-on): Likewise.
5813         * modules/sigprocmask (Depends-on): Likewise.
5814         * modules/sinl (Depends-on): Likewise.
5815         * modules/sleep (Depends-on): Likewise.
5816         * modules/snprintf (Depends-on): Likewise.
5817         * modules/snprintf-posix (Depends-on): Likewise.
5818         * modules/socket (Depends-on): Likewise.
5819         * modules/sprintf-posix (Depends-on): Likewise.
5820         * modules/sqrtl (Depends-on): Likewise.
5821         * modules/stat (Depends-on): Likewise.
5822         * modules/strchrnul (Depends-on): Likewise.
5823         * modules/strdup-posix (Depends-on): Likewise.
5824         * modules/strerror (Depends-on): Likewise.
5825         * modules/strerror_r-posix (Depends-on): Likewise.
5826         * modules/strndup (Depends-on): Likewise.
5827         * modules/strnlen (Depends-on): Likewise.
5828         * modules/strptime (Depends-on): Likewise.
5829         * modules/strsep (Depends-on): Likewise.
5830         * modules/strsignal (Depends-on): Likewise.
5831         * modules/strstr-simple (Depends-on): Likewise.
5832         * modules/strtod (Depends-on): Likewise.
5833         * modules/strtoimax (Depends-on): Likewise.
5834         * modules/strtok_r (Depends-on): Likewise.
5835         * modules/strtoumax (Depends-on): Likewise.
5836         * modules/symlink (Depends-on): Likewise.
5837         * modules/symlinkat (Depends-on): Likewise.
5838         * modules/tanl (Depends-on): Likewise.
5839         * modules/tcgetsid (Depends-on): Likewise.
5840         * modules/tmpfile (Depends-on): Likewise.
5841         * modules/trunc (Depends-on): Likewise.
5842         * modules/truncf (Depends-on): Likewise.
5843         * modules/truncl (Depends-on): Likewise.
5844         * modules/uname (Depends-on): Likewise.
5845         * modules/unlink (Depends-on): Likewise.
5846         * modules/unlockpt (Depends-on): Likewise.
5847         * modules/unsetenv (Depends-on): Likewise.
5848         * modules/usleep (Depends-on): Likewise.
5849         * modules/utimensat (Depends-on): Likewise.
5850         * modules/vasprintf (Depends-on): Likewise.
5851         * modules/vdprintf (Depends-on): Likewise.
5852         * modules/vdprintf-posix (Depends-on): Likewise.
5853         * modules/vfprintf-posix (Depends-on): Likewise.
5854         * modules/vprintf-posix (Depends-on): Likewise.
5855         * modules/vsnprintf (Depends-on): Likewise.
5856         * modules/vsnprintf-posix (Depends-on): Likewise.
5857         * modules/vsprintf-posix (Depends-on): Likewise.
5858         * modules/wcrtomb (Depends-on): Likewise.
5859         * modules/wcscasecmp (Depends-on): Likewise.
5860         * modules/wcscspn (Depends-on): Likewise.
5861         * modules/wcsdup (Depends-on): Likewise.
5862         * modules/wcsncasecmp (Depends-on): Likewise.
5863         * modules/wcsnrtombs (Depends-on): Likewise.
5864         * modules/wcspbrk (Depends-on): Likewise.
5865         * modules/wcsrtombs (Depends-on): Likewise.
5866         * modules/wcsspn (Depends-on): Likewise.
5867         * modules/wcsstr (Depends-on): Likewise.
5868         * modules/wcstok (Depends-on): Likewise.
5869         * modules/wcswidth (Depends-on): Likewise.
5870         * modules/wctob (Depends-on): Likewise.
5871         * modules/wctomb (Depends-on): Likewise.
5872         * modules/wctype (Depends-on): Likewise.
5873         * modules/wcwidth (Depends-on): Likewise.
5874         * modules/write (Depends-on): Likewise.
5875
5876 2011-05-03  Bruno Haible  <bruno@clisp.org>
5877
5878         Support for conditional dependencies.
5879         * doc/gnulib.texi (Module description): Document the syntax of
5880         conditional dependencies.
5881         * gnulib-tool: New option --conditional-dependencies.
5882         (func_usage): Document it.
5883         (cond_dependencies): New variable.
5884         (func_get_automake_snippet_conditional,
5885         func_get_automake_snippet_unconditional): New functions, extracted from
5886         func_get_automake_snippet.
5887         (func_get_automake_snippet): Use them.
5888         (sed_first_32_chars): New variable.
5889         (func_module_shellfunc_name): New function.
5890         (func_module_shellvar_name): New function.
5891         (func_module_conditional_name): New function.
5892         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
5893         func_cond_module_condition): New functions.
5894         (func_modules_transitive_closure): Add support for conditional
5895         dependencies.
5896         (func_emit_lib_Makefile_am): For a conditional module, enclose the
5897         conditional automake snippet in an automake conditional.
5898         (func_emit_autoconf_snippets): Emit shell functions that contain the
5899         code for conditional modules.
5900         (func_import, func_create_testdir): Update specification.
5901
5902 2011-05-03  Eric Blake  <eblake@redhat.com>
5903
5904         test-getaddrinfo: report error information
5905         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
5906
5907 2011-05-03  Jim Meyering  <meyering@redhat.com>
5908
5909         bootstrap: avoid build failure when $GZIP is set
5910         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
5911         program name.  If defined at all, it is supposed to list gzip options.
5912         Reported by Alan Curry in http://debbugs.gnu.org/8609
5913
5914 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
5915
5916         readme-release: new module with release instructions
5917         * modules/readme-release: New module.
5918         * top/README-release: New file, from coreutils, grep, diffutils.
5919         * MODULES.html.sh (Support for maintaining and releasing): Add it.
5920
5921 2011-05-02  Eric Blake  <eblake@redhat.com>
5922
5923         fflush: also replace fclose when fixing fflush
5924         * modules/fflush (Depends-on): Add fclose.
5925         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
5926         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
5927         memstreams with no backing fd.
5928         * doc/posix-functions/fclose.texi (fclose): Document the use of
5929         fflush module to fix the bug.
5930         * tests/test-fclose.c (main): Relax test when fclose is used in
5931         isolation.
5932
5933         fclose: add some tests
5934         * modules/fclose-tests: New test module.
5935         * tests/test-fclose.c: New file.
5936         * doc/posix-functions/fclose.texi (fclose): Document the bug.
5937
5938         fclose: reduced dependencies
5939         * modules/fclose (Depends-on): Switch from fflush/fseeko to
5940         simpler lseek.
5941         * lib/fclose.c (rpl_fclose): Likewise.
5942         Reported by Simon Josefsson.
5943
5944         exit: drop remaining clients
5945         * modules/argmatch (Depends-on): Replace exit with stdlib.
5946         * modules/copy-file (Depends-on): Likewise.
5947         * modules/execute (Depends-on): Likewise.
5948         * modules/exitfail (Depends-on): Likewise.
5949         * modules/obstack (Depends-on): Likewise.
5950         * modules/pagealign_alloc (Depends-on): Likewise.
5951         * modules/pipe-filter-gi (Depends-on): Likewise.
5952         * modules/pipe-filter-ii (Depends-on): Likewise.
5953         * modules/savewd (Depends-on): Likewise.
5954         * modules/spawn-pipe (Depends-on): Likewise.
5955         * modules/wait-process (Depends-on): Likewise.
5956         * modules/xsetenv (Depends-on): Likewise.
5957         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
5958         * modules/git-merge-changelog (Depends-on): Likewise.
5959         * modules/long-options (Depends-on): Likewise.
5960         * modules/pt_chown (Depends-on): Likewise.
5961         * modules/sysexits (Depends-on): Likewise.
5962
5963         freading: relax license from LGPLv3+ to LGPLv2+
5964         * modules/freading (License): Relax LGPL version.
5965
5966 2011-05-02  Bruno Haible  <bruno@clisp.org>
5967
5968         fchdir: Remove unused dependencies.
5969         * modules/fchdir (Depends-on): Remove include_next.
5970
5971 2011-05-02  Bruno Haible  <bruno@clisp.org>
5972
5973         gnulib-tool: Refactor.
5974         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
5975         from func_emit_autoconf_snippets.
5976         (func_emit_autoconf_snippets): Use it.
5977
5978 2011-05-02  Simon Josefsson  <simon@josefsson.org>
5979
5980         * NEWS: Document removal of 'exit'.
5981         * modules/exit: Remove file.
5982
5983 2011-05-01  Bruno Haible  <bruno@clisp.org>
5984
5985         Update DEPENDENCIES.
5986         * DEPENDENCIES (gettext): Recommend the newest release.
5987         Reported by Simon Josefsson.
5988
5989 2011-05-01  Bruno Haible  <bruno@clisp.org>
5990
5991         gnulib-tool: Reduce code duplication.
5992         * gnulib-tool (func_emit_autoconf_snippets): New function.
5993         (func_import, func_create_testdir): Use it.
5994
5995 2011-04-30  Eric Blake  <eblake@redhat.com>
5996
5997         fclose: don't fail on non-seekable input stream
5998         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
5999         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
6000         since fflush is allowed to fail in that case.
6001
6002 2011-04-30  Bruno Haible  <bruno@clisp.org>
6003
6004         dup3: cleanup
6005         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
6006
6007 2011-04-30  Bruno Haible  <bruno@clisp.org>
6008
6009         netdb: Make it work in C++ mode.
6010         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
6011         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
6012         module.
6013         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
6014         gl_MODULE_INDICATOR_FOR_TESTS.
6015         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
6016         * modules/netdb-c++-tests: New file.
6017         * tests/test-netdb-c++.cc: New file.
6018
6019 2011-04-30  Bruno Haible  <bruno@clisp.org>
6020
6021         New modules 'vfscanf', 'vscanf'.
6022         * modules/vfscanf: New file.
6023         * modules/vscanf: New file.
6024         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
6025         here.
6026         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
6027         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
6028
6029 2011-04-30  Bruno Haible  <bruno@clisp.org>
6030
6031         passfd: Add comments.
6032         * lib/passfd.c: Add comments about platforms.
6033
6034 2011-04-30  Bruno Haible  <bruno@clisp.org>
6035
6036         sys_uio: Make <sys/uio.h> self-contained.
6037         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
6038         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
6039
6040 2011-04-30  Bruno Haible  <bruno@clisp.org>
6041
6042         sys_socket: Ensure 'struct iovec' definition.
6043         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
6044         <sys/socket.h>.
6045         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
6046
6047 2011-04-30  Bruno Haible  <bruno@clisp.org>
6048
6049         sys_uio: Protect definition of 'struct iovec'.
6050         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
6051         it as a C struct.
6052
6053 2011-04-30  Bruno Haible  <bruno@clisp.org>
6054
6055         manywarnings: fix indentation
6056         * m4/manywarnings.m4: Indent by 2 spaces consistently.
6057
6058 2011-04-30  Pádraig Brady <P@draigBrady.com>
6059
6060         manywarnings: add -Wno-missing-field-initializers if needed.
6061         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
6062         option if it's needed to allow initialization with { 0, }
6063
6064 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
6065
6066         announce-gen: cosmetic improvement
6067         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
6068
6069 2011-04-29  Jim Meyering  <meyering@redhat.com>
6070
6071         vc-list-files: indent with spaces, not TABs
6072         * build-aux/vc-list-files: Convert leading TABs to spaces,
6073         to match the style of most other files in gnulib.
6074
6075         announce-gen: indent with spaces, not TABs
6076         * build-aux/announce-gen: Convert all TABs to spaces, to match
6077         the style of most other files in gnulib.
6078
6079 2011-04-29  Eric Blake  <eblake@redhat.com>
6080
6081         quotearg: avoid uninitialized variable use
6082         * lib/quotearg.c (quoting_options_from_style): Initialize
6083         remaining fields, and ensure that custom styles are only used via
6084         quoting_options rather than quoting_style.
6085
6086 2011-04-29  Jim Meyering  <meyering@redhat.com>
6087
6088         maint.mk: remove unused VC-tag variable
6089         * top/maint.mk (VC-tag): Remove unused variable.
6090
6091 2011-04-29  Bruno Haible  <bruno@clisp.org>
6092
6093         netdb: fix gai_strerror replacements
6094         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
6095         * modules/netdb: Substitute it.
6096
6097 2011-04-29  Jim Meyering  <meyering@redhat.com>
6098
6099         test-getcwd.c: avoid new set-but-not-used warning
6100         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
6101         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
6102         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
6103         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
6104
6105         test-hash.c: avoid a new shadowing warning
6106         * tests/test-hash.c (main): Don't shadow "dup".
6107
6108 2011-04-28  Eric Blake  <eblake@redhat.com>
6109
6110         getaddrinfo: fix gai_strerror signature
6111         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
6112         and work around mingw with UNICODE defined.
6113         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
6114         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
6115         * modules/netdb (Makefile.am): Substitute it.
6116         * lib/netdb.in.h (gai_strerror): Declare replacement.
6117         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
6118         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
6119         the fix.
6120
6121         getsockopt: avoid compiler warning
6122         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
6123         Reported by Matthias Bolte.
6124
6125         tests: drop unused link dependency
6126         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
6127         * modules/dirent-safer-tests (Makefile.am): Likewise.
6128         * modules/fdopendir-tests (Makefile.am): Likewise.
6129         * modules/mkfifoat-tests (Makefile.am): Likewise.
6130         * modules/openat-safer-tests (Makefile.am): Likewise.
6131         * modules/openat-tests (Makefile.am): Likewise.
6132         * modules/readlinkat-tests (Makefile.am): Likewise.
6133         * modules/symlinkat-tests (Makefile.am): Likewise.
6134         * modules/linkat-tests (Makefile.am): Likewise.
6135         (Depends-on): Switch to filenamecat-lgpl.
6136         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
6137         LIBINTL.
6138         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
6139         * tests/test-linkat.c (main): Don't require xalloc.
6140
6141         hash, mgetgroups: drop xalloc dependency
6142         * lib/hash.c (includes): Adjust includes.
6143         * lib/mgetgroups.c (includes): Likewise.
6144         (xgetgroups): Move...
6145         * lib/xgetgroups.c: ...to new file.
6146         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
6147         * modules/xgetgroups: New file, split from...
6148         * modules/mgetgroups: ...here.
6149         (Depends-on): Add xalloc-oversized.
6150         * modules/hash (Depends-on): Likewise.
6151         * modules/hash-tests (Depends-on): Drop xalloc.
6152         (test_hash_LDADD): Drop unused library.
6153         * tests/test-hash.c (main): Break xalloc dependency.
6154         (includes): Drop unused include.
6155
6156         xalloc-oversized: new module
6157         * modules/xalloc-oversized: New module.
6158         * modules/xalloc (Depends-on): Add it.
6159         * lib/xalloc.h (xalloc_oversized): Move...
6160         * lib/xalloc-oversized.h: ...into new file.
6161
6162         utimecmp: drop dependency on xmalloc
6163         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
6164         due to memory pressure.
6165         * modules/utimecmp (Depends-on): Drop xalloc.
6166
6167 2011-04-27  Eric Blake  <eblake@redhat.com>
6168
6169         getcwd: fix mingw bugs
6170         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
6171         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
6172         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
6173
6174 2011-04-27  Bruno Haible  <bruno@clisp.org>
6175
6176         mkstemps: Ensure declaration on MacOS X 10.5.
6177         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
6178         * doc/glibc-functions/mkstemps.texi: Document header file problem on
6179         MacOS X.
6180
6181 2011-04-27  Bruno Haible  <bruno@clisp.org>
6182
6183         mkstemp: More documentation.
6184         * doc/posix-functions/mkstemp.texi: Document header file problem on
6185         MacOS X.
6186
6187 2011-04-27  Bruno Haible  <bruno@clisp.org>
6188
6189         mkstemp: Tweak configure message when cross-compiling.
6190         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
6191         result as a guess.
6192
6193 2011-04-27  Bruno Haible  <bruno@clisp.org>
6194
6195         clean-temp: Clarify what it does.
6196         * lib/clean-temp.h: Add more comments.
6197         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
6198         module.
6199         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
6200         * doc/glibc-functions/mkstemps.texi: Likewise.
6201         * doc/glibc-functions/mkostemps.texi: Likewise.
6202
6203 2011-04-27  Eric Blake  <eblake@redhat.com>
6204
6205         fchdir: avoid extra chdir and fix test
6206         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
6207         getcwd-lgpl.
6208         * lib/fchdir.c (get_name): Any absolute name will do; it does not
6209         have to be canonical.
6210         (canonicalize_file_name): Drop unused macro.
6211         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
6212
6213         filenamecat-lgpl: fix licence
6214         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
6215         when it was first created.
6216
6217         linkat, renameat: add missing dependency
6218         * modules/linkat (Depends-on): Require getcwd-lgpl.
6219         * modules/renameat (Depends-on): Likewise.
6220
6221         tests: reduce dependencies
6222         * tests/test-linkat.c (main): Use lighter-weight getcwd.
6223         * tests/test-renameat.c (main): Likewise.
6224         * modules/linkat-tests (Depends-on): Relax dependency.
6225         * modules/renameat-tests (Depends-on): Likewise.
6226         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
6227         dependency explicit.
6228
6229         save-cwd: reduce default dependency
6230         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
6231         * lib/save-cwd.c: Update comments.
6232         * NEWS: Document the semantic change.
6233
6234         getcwd: enhance tests
6235         * tests/test-getcwd-lgpl.c: New file, taken from...
6236         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
6237         repeat long path stress tests from m4 probe.
6238         * modules/getcwd-lgpl-tests: New module.
6239         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
6240         * m4/getcwd-abort-bug.m4: Update comment.
6241         * m4/getcwd-path-max.m4: Likewise.
6242
6243         getcwd-lgpl: new module
6244         * modules/getcwd-lgpl: New module.
6245         * lib/getcwd-lgpl.c: New file.
6246         * doc/posix-functions/getcwd.texi (getcwd): Document it.
6247         * MODULES.html.sh (lacking POSIX:2008): Likewise.
6248         * modules/getcwd (configure.ac): Set C witness.
6249         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
6250
6251         getcwd: tweak comments
6252         * m4/getcwd-abort-bug.m4: Fix comments.
6253         * m4/getcwd-path-max.m4: Likewise.
6254         * m4/getcwd.m4: Likewise.
6255
6256 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
6257         and Eric Blake  <eblake@redhat.com>
6258
6259         mkstemp: replace if system version uses wrong permissions
6260         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
6261         read/write mode bits set in file created by mkstemp.
6262         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
6263
6264 2011-04-27  Eric Blake  <eblake@redhat.com>
6265
6266         passfd: avoid compiler warning
6267         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
6268         Reported by Laine Stump.
6269
6270 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
6271
6272         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
6273         required by the NetBSD (and perhaps other 4.4BSD derived) join.
6274
6275 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
6276         and Eric Blake  <eblake@redhat.com>
6277
6278         mkstemp: mention clean-temp module
6279         * lib/mkstemp.c: Add comment.
6280         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
6281
6282 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
6283
6284         inttypes: also provide default values for 32-bit tests
6285         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
6286         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
6287
6288 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
6289
6290         strtoumax: remove dependency on strtoimax
6291         This is like the strtoull change of yesterday.
6292         * modules/strtoumax (Files): Add lib/strtoimax.c.
6293         (Depends-on): Remove strtoimax and add verify.
6294
6295         inttypes-incomplete: new module
6296         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
6297         all but the PRI* and SCN* parts of gl_INTTYPES_H.
6298         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
6299         of gl_INTTYPES_H.
6300         (gl_INTTYPES_H): Rewrite in terms of these new macros.
6301         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
6302         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
6303         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
6304         * modules/strtoumax, modules/xstrtol (Depends-on):
6305         Depend on inttypes-incomplete, not inttypes.
6306         * modules/inttypes-incomplete: New module, containing the contents
6307         of the old modules/inttypes module, except that the Files: section
6308         omits m4/inttypes-pri.m4, and the configure.ac section invokes
6309         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
6310         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
6311         (Depends-on): Depend only on inttypes-incomplete.
6312         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
6313
6314         inttypes: omit now-redundant strtoimax and strtoumax work
6315         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
6316         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
6317
6318         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
6319         This supports apps that need pointers to strtoimax and strtoumax,
6320         and ports to HP-UX 11.00 64.bit, which has macros that expand to
6321         nonexistent functions.  See
6322         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
6323         et seq.
6324         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
6325         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
6326         a macro.
6327         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
6328
6329 2011-04-25  Simon Josefsson  <simon@josefsson.org>
6330
6331         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
6332
6333 2011-04-25  Bruno Haible  <bruno@clisp.org>
6334
6335         strtol, strtoul: Mark modules as obsolete.
6336         * modules/strtol (Status, Notice): New sections.
6337         * modules/strtoul (Status, Notice): New sections.
6338
6339 2011-04-25  Bruno Haible  <bruno@clisp.org>
6340
6341         strtod: Remove check for strtod, unless supporting old platforms.
6342         * modules/strtod-obsolete: New file.
6343         * m4/strtod-obsolete.m4: New file.
6344         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
6345         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
6346         * modules/strtod (Depends-on): Add strtod-obsolete.
6347         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
6348
6349 2011-04-25  Bruno Haible  <bruno@clisp.org>
6350
6351         strcase: Make module obsolete.
6352         * modules/strcase (Status, Notice): New sections.
6353
6354 2011-04-25  Bruno Haible  <bruno@clisp.org>
6355
6356         dup2: Remove check for dup2, unless supporting old obsolete platforms.
6357         * modules/dup2-obsolete: New file.
6358         * m4/dup2-obsolete.m4: New file.
6359         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
6360         gl_FUNC_DUP2_OBSOLETE is not also defined.
6361         * modules/dup2 (Depends-on): Add dup2-obsolete.
6362         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
6363
6364 2011-04-25  Bruno Haible  <bruno@clisp.org>
6365
6366         strnlen: Avoid memchr related link error on old obsolete platforms.
6367         * modules/memchr-obsolete: New file.
6368         * m4/memchr-obsolete.m4: New file.
6369         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
6370         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
6371         * modules/memchr (Depends-on): Add memchr-obsolete.
6372         * modules/strnlen (Depends-on): Likewise.
6373         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
6374
6375 2011-04-25  Jim Meyering  <meyering@redhat.com>
6376
6377         maint.mk: makefile_at_at_check extend and clean up
6378         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
6379         in addition to */Makefile.am.
6380         Exempt legitimate uses of @VAR@ notation, e.g.,
6381         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
6382         Remove obsolete coreutils-specific comment.
6383         Prompted by discussion here:
6384         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
6385
6386 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
6387
6388         strtoul: remove dependency on strtol
6389         This is so that 'configure' need not check for strtol merely because
6390         the application needs strtoul.
6391         * modules/strtoul (Files): Add lib/strtol.c.
6392         (Depends-on): Remove strtol.
6393
6394         strtoull: remove dependency on strtoul
6395         This is like the strtoll change.
6396         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
6397         (Depends-on): Remove strtoul.
6398
6399         strtoll: remove dependency on strtol
6400         This is so that 'configure' need not check for strtol merely because
6401         the application needs strtoll.
6402         * modules/strtoll (Files): Add lib/strtol.c.
6403         (Depends-on): Remove strtol.
6404
6405 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
6406
6407         inttypes: Move some configure check to module 'imaxdiv'.
6408         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
6409         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
6410         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
6411
6412 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
6413
6414         inttypes: Move some configure check to module 'imaxabs'.
6415         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
6416         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
6417         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
6418
6419 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
6420
6421         inttypes: Remove configure tests that are not needed since 2009-12-31.
6422         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
6423         gl_cv_header_working_inttypes_h.
6424
6425 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
6426
6427         * modules/strnlen (Depends-on): Remove memchr.
6428         The strnlen implementation doesn't need the memchr module's fixes; see
6429         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
6430
6431         strtol: remove dependency on wchar
6432         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
6433         * modules/strtol (Depends-on): Remove wchar.
6434
6435 2011-04-21  Eric Blake  <eblake@redhat.com>
6436
6437         passfd: fix test regression on Linux
6438         * modules/passfd-tests (configure.ac): Correct socketpair check.
6439
6440         passfd: speed up configure and drop unused code
6441         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
6442         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
6443         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
6444         Instead of probing at configure for unix_scm_rights_bsd44_way,
6445         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
6446         check to a struct member probe.
6447         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
6448         (sendfd, recvfd): Update preprocessor checks.
6449         * modules/passfd (Files): Reflect rename, and drop unused file.
6450         (Depends-on): Drop unused dependency.
6451
6452         passfd: allow compilation on mingw
6453         * modules/sys_socket (Depends-on): Add sys_uio.
6454         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
6455         iovec and a minimal struct msghdr.
6456         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
6457         * tests/test-sys_socket.c (main): Enhance test.
6458         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
6459         guaranteed to provide what we need.
6460         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
6461         * modules/passfd-tests (Depends-on): Add sys_wait.
6462         * tests/test-passfd.c (main): Skip test on mingw, for now.
6463         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
6464         partial 'struct msghdr' implementation.
6465
6466         sys_uio: new module
6467         * modules/sys_uio: New module.
6468         * modules/sys_uio-tests: Likewise.
6469         * lib/sys_uio.in.h: New file.
6470         * m4/sys_uio_h.m4: Likewise.
6471         * tests/test-sys_uio.c: Likewise.
6472         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
6473         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
6474
6475 2011-04-20  Jim Meyering  <meyering@redhat.com>
6476
6477         useless-if-before-free: avoid false-positive
6478         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
6479         disjunct so that it too requires a terminating ";".  Without that,
6480         this script would identify as useless one statement from gcc that
6481         was not:
6482           if (aligned_ptr)
6483             free (((void **) aligned_ptr) [-1]);
6484
6485 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
6486
6487         doc: update users.txt.
6488         * users.txt: Add barcode.
6489
6490 2011-04-19  Bruno Haible  <bruno@clisp.org>
6491
6492         ioctl: Remove link dependency on native Windows.
6493         * lib/fd-hook.h: Renamed from lib/close-hook.h.
6494         (gl_close_fn, gl_ioctl_fn): New types.
6495         (struct fd_hook): Renamed from struct close_hook. Change type of
6496         private_close_fn field. Add private_ioctl_fn field.
6497         (close_hook_fn): Add parameter for primary close method.
6498         (execute_close_hooks, execute_all_close_hooks): Likewise.
6499         (ioctl_hook_fn): New type.
6500         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
6501         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
6502         argument.
6503         (unregister_fd_hook): Renamed from unregister_close_hook.
6504         * lib/fd-hook.c: Renamed from lib/close-hook.c.
6505         Don't include <unistd.h>.
6506         (close): Remove undef.
6507         (anchor): Update.
6508         (execute_close_hooks): Add argument for primary close method.
6509         (execute_all_close_hooks): Likewise.
6510         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
6511         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
6512         argument. Allow each argument to be NULL.
6513         (unregister_fd_hook): Renamed from unregister_close_hook.
6514         * lib/close.c (rpl_close): Pass 'close' function pointer to
6515         execute_all_close_hooks.
6516         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
6517         (primary_ioctl): New function.
6518         (ioctl): Don't call ioctlsocket here. Instead, call
6519         execute_all_ioctl_hooks.
6520         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
6521         close method.
6522         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
6523         (fd_sockets_hook): Renamed from close_sockets_hook.
6524         (gl_sockets_startup, gl_sockets_cleanup): Update.
6525         * modules/fd-hook: Renamed from modules/close-hook. Update.
6526         * modules/close (Depends-on): Add fd-hook, remove close-hook.
6527         * modules/sockets (Depends-on): Likewise.
6528         * modules/ioctl (Depends-on): Add fd-hook.
6529         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
6530         GNULIB_SOCKET.
6531
6532 2011-04-19  Bruno Haible  <bruno@clisp.org>
6533
6534         Move the support of O_NONBLOCK in open() to the 'open' module.
6535         * modules/nonblocking (Depends-on): Remove 'open'.
6536         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
6537         gl_cv_have_open_O_NONBLOCK.
6538         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
6539         O_NONBLOCK support.
6540         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
6541
6542 2011-04-17  Bruno Haible  <bruno@clisp.org>
6543
6544         pipe2: Simplify code.
6545         * lib/pipe2.c (pipe2): Reduce code duplication.
6546
6547 2011-04-17  Bruno Haible  <bruno@clisp.org>
6548
6549         nonblocking: Add comment.
6550         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
6551
6552 2011-04-17  Bruno Haible  <bruno@clisp.org>
6553
6554         nonblocking: Add tests for sockets.
6555         * tests/test-nonblocking-socket.sh: New file.
6556         * tests/test-nonblocking-socket-main.c: New file.
6557         * tests/test-nonblocking-socket-child.c: New file.
6558         * tests/test-nonblocking-socket.h: New file.
6559         * tests/socket-server.h: New file.
6560         * tests/socket-client.h: New file.
6561         * modules/nonblocking-socket-tests: New file.
6562         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
6563
6564 2011-04-17  Bruno Haible  <bruno@clisp.org>
6565
6566         nonblocking: Add tests for pipes.
6567         * tests/test-nonblocking-pipe.sh: New file.
6568         * tests/test-nonblocking-pipe-main.c: New file.
6569         * tests/test-nonblocking-pipe-child.c: New file.
6570         * tests/test-nonblocking-pipe.h: New file.
6571         * tests/test-nonblocking-writer.h: New file.
6572         * tests/test-nonblocking-reader.h: New file.
6573         * tests/test-nonblocking-misc.h: New file.
6574         * modules/nonblocking-pipe-tests: New file.
6575         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
6576
6577 2011-04-16  Bruno Haible  <bruno@clisp.org>
6578
6579         gettext: Clarify the needed programmer actions.
6580         * modules/gettext (Notice): New field.
6581         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
6582
6583 2011-04-16  Bruno Haible  <bruno@clisp.org>
6584
6585         strchrnul: Tweak last commit.
6586         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
6587         bug.
6588         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
6589         as in _GL_FUNCDECL_SYS.
6590         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
6591         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
6592
6593 2011-04-15  Eric Blake  <eblake@redhat.com>
6594
6595         strchrnul: work around cygwin bug
6596         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
6597         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
6598         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
6599         * modules/string (Makefile.am): Substitute it.
6600         * lib/string.in.h (strchrnul): Use it.
6601
6602 2011-04-15  Bruno Haible  <bruno@clisp.org>
6603
6604         Don't require lib/stdio-write.c when only module 'stdio' is used.
6605         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
6606         invocation.
6607         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
6608
6609 2011-04-14  Bruno Haible  <bruno@clisp.org>
6610
6611         Support non-blocking pipe I/O in read() on native Windows.
6612         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
6613         (read): New declaration.
6614         * lib/read.c: New file.
6615         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
6616         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
6617         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
6618         vscanf): New declarations.
6619         * lib/stdio-read.c: New file.
6620         * m4/read.m4: New file.
6621         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
6622         REPLACE_READ.
6623         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
6624         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
6625         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
6626         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
6627         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
6628         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
6629         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
6630         * modules/read: New file.
6631         * modules/nonblocking (Files): Add lib/stdio-read.c.
6632         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
6633         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
6634         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
6635         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
6636         * modules/pread (Depends-on): Add read.
6637         * modules/safe-read (Depends-on): Likewise.
6638         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
6639         gets, scanf, vfscanf, vscanf): Verify signatures.
6640         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
6641         problem with non-blocking pipes.
6642         * doc/posix-functions/fgetc.texi: Likewise.
6643         * doc/posix-functions/fgets.texi: Likewise.
6644         * doc/posix-functions/fread.texi: Likewise.
6645         * doc/posix-functions/fscanf.texi: Likewise.
6646         * doc/posix-functions/getc.texi: Likewise.
6647         * doc/posix-functions/getchar.texi: Likewise.
6648         * doc/posix-functions/gets.texi: Likewise.
6649         * doc/posix-functions/scanf.texi: Likewise.
6650         * doc/posix-functions/vfscanf.texi: Likewise.
6651         * doc/posix-functions/vscanf.texi: Likewise.
6652
6653 2011-04-14  Bruno Haible  <bruno@clisp.org>
6654
6655         Support non-blocking pipe I/O in write() on native Windows.
6656         * lib/write.c (rpl_write): Split a write request that failed merely
6657         because the byte count was larger than the pipe buffer's size.
6658         * doc/posix-functions/write.texi: Mention the problem with large byte
6659         counts.
6660
6661 2011-04-14  Bruno Haible  <bruno@clisp.org>
6662
6663         wchar: Ensure that wchar_t gets defined on uClibc.
6664         * lib/wchar.in.h: On uClibc, include <stddef.h>.
6665         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
6666
6667 2011-04-13  Bruno Haible  <bruno@clisp.org>
6668
6669         safe-write, full-read: Avoid unnecessary compilation units.
6670         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
6671         (Depends-on): Remove safe-read. Add ssize_t.
6672         * modules/full-read (Files): Add lib/full-write.c.
6673         (Depends-on): Add full-write.
6674
6675 2011-04-13  Bruno Haible  <bruno@clisp.org>
6676
6677         Support non-blocking pipe I/O and SIGPIPE in pwrite().
6678         * modules/pwrite (Depends-on): Add 'write'.
6679
6680 2011-04-13  Bruno Haible  <bruno@clisp.org>
6681
6682         Support non-blocking pipe I/O in write() on native Windows.
6683         * lib/unistd.in.h (write): Enable replacement also if
6684         GNULIB_UNISTD_H_NONBLOCKING is 1.
6685         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
6686         (rpl_write): When failing to write on a non-blocking pipe, change
6687         errno from ENOSPC to EAGAIN.
6688         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
6689         putchar, puts, vfprintf, vprintf): Enable replacement also if
6690         GNULIB_STDIO_H_NONBLOCKING is 1.
6691         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
6692         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
6693         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
6694         CALL_WITH_SIGPIPE_EMULATION.
6695         (CALL_WITH_SIGPIPE_EMULATION): Use them.
6696         * m4/nonblocking.m4: New file.
6697         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
6698         for non-blocking I/O support.
6699         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6700         GNULIB_UNISTD_H_NONBLOCKING.
6701         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
6702         required for non-blocking I/O support.
6703         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
6704         * modules/nonblocking (Files): Add m4/nonblocking.m4,
6705         lib/stdio-write.c, m4/asm-underscore.m4.
6706         (Depends-on): Add stdio, unistd.
6707         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
6708         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
6709         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
6710         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
6711         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
6712         problem with non-blocking pipes.
6713         * doc/posix-functions/fputc.texi: Likewise.
6714         * doc/posix-functions/fputs.texi: Likewise.
6715         * doc/posix-functions/fwrite.texi: Likewise.
6716         * doc/posix-functions/printf.texi: Likewise.
6717         * doc/posix-functions/putc.texi: Likewise.
6718         * doc/posix-functions/putchar.texi: Likewise.
6719         * doc/posix-functions/puts.texi: Likewise.
6720         * doc/posix-functions/vfprintf.texi: Likewise.
6721         * doc/posix-functions/vprintf.texi: Likewise.
6722         * doc/posix-functions/write.texi: Likewise.
6723
6724 2011-04-10  Jim Meyering  <meyering@redhat.com>
6725
6726         maint.mk: prohibit doubled words
6727         Detect them also when they're separated by a newline.
6728         There are 3 ways to customize it:
6729           - disable the test on a per file basis, as usual with rules using
6730             $(VC_LIST_EXCEPT)
6731           - replace the default doubled-word-selecting regexp (affects all files)
6732           - ignore a particular file-vs-doubled-word match
6733         I nearly used that last one to ignore the "is is" match in
6734         coreutils' NEWS file, since the text was "ls -is is ..."
6735         To do that, I would have added this line to cfg.mk:
6736           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
6737         but it would have ignored any "is is" match in NEWS.
6738         Low probability, but still...
6739         Instead, I changed the text, slightly:
6740           -  ls -is is now consistent with ls -lis in ignoring values returned
6741           +  "ls -is" is now consistent with ls -lis in ignoring values returned
6742         * top/maint.mk (prohibit_double_word_RE_): Provide default.
6743         (prohibit_doubled_word_): Define.
6744         (sc_prohibit_doubled_word): New rule.
6745         (sc_prohibit_the_the): Remove.  Subsumed by the above.
6746
6747 2011-04-10  Jim Meyering  <meyering@redhat.com>
6748
6749         maint: fix doubled-word typo in comment
6750         * m4/gethostname.m4: s/is is/it is/
6751         * m4/getdomainname.m4: Likewise.
6752
6753 2011-04-10  Jim Meyering  <meyering@redhat.com>
6754
6755         maint: remove doubled word: s/it it/it/
6756         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
6757
6758 2011-04-10  Jim Meyering  <meyering@redhat.com>
6759
6760         maint.mk: remove useless semicolon and backslash
6761         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
6762         semicolon and backslash.
6763
6764 2011-04-10  Bruno Haible  <bruno@clisp.org>
6765
6766         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
6767         * modules/stdint-tests (Depends-on): Add wchar.
6768
6769 2011-04-10  Jim Meyering  <meyering@redhat.com>
6770
6771         maint: remove doubled words in comments, e.g., s/a a/a/
6772         * lib/strptime.c (day_of_the_week): s/the the/the/
6773         * tests/test-chown.h (test_chown): s/a a/a/
6774
6775         test-chown.h: correct a cast
6776         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
6777         when the destination is a stat.st_gid.
6778
6779 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
6780
6781         getaddrinfo: Fix test for sa_len member.
6782         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
6783         include <sys/types.h> before <sys/socket.h>.
6784
6785 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
6786
6787         maint: change "can not" to "cannot"
6788         * doc/posix-functions/iconv.texi (iconv): This one crossed line
6789         boundaries.
6790
6791 2011-04-09  Jim Meyering  <meyering@redhat.com>
6792
6793         maint: change "a a" to "a"
6794         * tests/test-lchown.h (test_lchown): s/a a/a/
6795
6796         maint.mk: prohibit \<the the\>
6797         * top/maint.mk (sc_prohibit_the_the): New rule.
6798
6799         maint: fix "the the" in comment
6800         * lib/count-one-bits.h: s/the the/the/
6801
6802         maint: change "can not" to "cannot"
6803         But do not change the occurrences in maintain.texi or in
6804         build-aux/po/Makefile.in.in, which I presume comes from gettext.
6805         * doc/gnulib-tool.texi: s/can not/cannot/
6806         * doc/posix-functions/accept.texi (accept): Likewise.
6807         * doc/posix-functions/socket.texi (socket): Likewise.
6808         * lib/mbrtowc.c: Likewise.
6809
6810         maint.mk: prohibit use of "can not"
6811         * top/maint.mk (sc_prohibit_can_not): New rule.
6812         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
6813
6814 2011-04-09  Bruno Haible  <bruno@clisp.org>
6815
6816         careadlinkat: Guard against misuse of careadlinkatcwd.
6817         * lib/careadlinkat.c: Include <stdlib.h>.
6818         (careadlinkatcwd): Check that the fd argument is as expected.
6819
6820 2011-04-09  Bruno Haible  <bruno@clisp.org>
6821
6822         careadlinkat: Use common coding style.
6823         * lib/careadlinkat.c: Move gnulib includes after system includes.
6824
6825 2011-04-09  Bruno Haible  <bruno@clisp.org>
6826
6827         careadlinkat: Clarify specification.
6828         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
6829         (careadlinkatcwd): Add comment.
6830         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
6831
6832 2011-04-09  Bruno Haible  <bruno@clisp.org>
6833
6834         areadlinkat: Avoid link error on many platforms.
6835         * modules/areadlinkat (Depends-on): Add areadlink.
6836
6837 2011-04-09  Bruno Haible  <bruno@clisp.org>
6838
6839         allocator, careadlinkat: Fix double-inclusion guard.
6840         * lib/allocator.h: Fix double-inclusion guard.
6841         * lib/careadlinkat.h: Likewise.
6842
6843 2011-04-09  Bruno Haible  <bruno@clisp.org>
6844
6845         relocatable-prog-wrapper: Update after module 'areadlink' changed.
6846         * lib/relocwrapper.c: Update dependencies hierarchy.
6847         * build-aux/install-reloc: Update list of files to be compiled.
6848         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
6849         lib/allocator.[hc].
6850
6851 2011-04-08  Eric Blake  <eblake@redhat.com>
6852
6853         strftime: silence gnulib-tool warning
6854         * modules/strftime-tests (Depends-on): Drop automatic dependency.
6855
6856 2011-04-08  Bruno Haible  <bruno@clisp.org>
6857
6858         verify: Fix syntax error with GCC 4.6 in C++ mode.
6859         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
6860         (HAVE_STATIC_ASSERT): New macro.
6861         (verify_true, verify): Use 'static_assert' if it is supported and
6862         '_Static_assert' is not supported.
6863
6864 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
6865
6866         allocator: New module.
6867         * modules/allocator, lib/allocator.c: New files.
6868         * lib/allocator.h (stdlib_allocator): New decl.
6869         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
6870         Remove.  Do not include <stdlib.h>.
6871         (careadlinkat): Use stdlib_allocator instead of rolling our own.
6872         * modules/careadlinkat (Files): Remove lib/allocator.h.
6873         (Depends-on): Add allocator.
6874
6875         stdlib: let modules use system malloc, realloc
6876         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
6877         if !_GL_USE_STDLIB_ALLOC.
6878         (malloc, realloc): Limit this change to a smaller scope.
6879
6880         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
6881         (malloc, realloc): Don't #undef; no longer needed.
6882         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6883         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6884         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
6885         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6886         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6887         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6888         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6889         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
6890
6891         careadlinkat: rename members to avoid problem
6892         * lib/allocator.h (struct allocator): Rename members from
6893         malloc/realloc to allocate/reallocate, to avoid problems if malloc
6894         and realloc are #define'd.  Reported by Eric Blake in
6895         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
6896         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
6897
6898 2011-04-08  Eric Blake  <eblake@redhat.com>
6899
6900         nonblocking: reduce dependency
6901         * tests/test-nonblocking.c: Only test sockets when in use.
6902         * modules/nonblocking-tests (Depends-on): Drop socket.
6903         (Makefile.am): Link even if sockets are not present.
6904         * modules/pipe2-tests (Makefile.am): Likewise.
6905         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
6906
6907         pipe2: fix O_NONBLOCK support on mingw
6908         * modules/pipe2 (Depends-on): Add nonblocking.
6909         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
6910         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
6911         * tests/test-nonblocking.c (main): Likewise.
6912         * modules/pipe2-tests (Makefile.am): Avoid link failure.
6913
6914         fcntl-h: fix O_ACCMODE on cygwin
6915         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
6916         * lib/fcntl.in.h (O_ACCMODE): Fix it.
6917
6918         pipe-filter: drop O_NONBLOCK workarounds
6919         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
6920         * modules/pipe-filter-ii (Depends-on): Likewise.
6921         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
6922
6923         nonblocking: provide O_NONBLOCK for mingw
6924         * modules/nonblocking (Depends-on): Add open.
6925         (configure.ac): Set new witness macro.
6926         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
6927         * modules/fcntl-h (Makefile.am): Substitute it.
6928         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
6929         nonblocking module is in use.
6930         * lib/nonblocking.c: Adjust portability test.
6931         * lib/open.c (open): Don't let native open see gnulib flag.
6932         * tests/test-fcntl-h.c (main): Enhance test.
6933         * tests/test-open.h (test_open): Likewise.
6934         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
6935
6936         careadlinkat: fix compilation error on mingw
6937         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
6938         within struct allocator.
6939
6940 2011-04-06  Eric Blake  <eblake@redhat.com>
6941
6942         binary-io: relicense under LGPLv2+
6943         * modules/binary-io (License): Relax to LGPLv2+.
6944         Requested for libvirt, and required by pipe2.
6945
6946 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
6947
6948         verify: use _Static_assert if available
6949         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
6950         (verify_true, verify): Use it if available.  This generates better
6951         diagnostics with GCC 4.6.0 and later.
6952
6953 2011-04-05  Bruno Haible  <bruno@clisp.org>
6954
6955         Remove leftover generated .h files after config.status changed.
6956
6957         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
6958         GL_GENERATE_ALLOCA_H.
6959         * modules/alloca-opt (Makefile.am): Remove alloca.h if
6960         GL_GENERATE_ALLOCA_H evaluates to false.
6961
6962         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
6963         GL_GENERATE_ARGZ_H.
6964         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
6965         evaluates to false.
6966
6967         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
6968         GL_GENERATE_BYTESWAP_H.
6969         * modules/byteswap (Makefile.am): Remove byteswap.h if
6970         GL_GENERATE_BYTESWAP_H evaluates to false.
6971
6972         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
6973         GL_GENERATE_ERRNO_H.
6974         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
6975         evaluates to false.
6976
6977         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
6978         GL_GENERATE_FLOAT_H.
6979         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
6980         evaluates to false.
6981
6982         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
6983         GL_GENERATE_FNMATCH_H.
6984         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
6985         GL_GENERATE_FNMATCH_H evaluates to false.
6986
6987         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
6988         GL_GENERATE_GLOB_H.
6989         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
6990         evaluates to false.
6991
6992         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
6993         automake conditional GL_GENERATE_ICONV_H.
6994         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
6995         evaluates to false.
6996
6997         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
6998         GL_GENERATE_NETINET_IN_H.
6999         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
7000         GL_GENERATE_NETINET_IN_H evaluates to false.
7001
7002         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
7003         conditional GL_GENERATE_PTHREAD_H.
7004         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
7005         * modules/pthread (Makefile.am): Remove pthread.h if
7006         GL_GENERATE_PTHREAD_H evaluates to false.
7007
7008         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
7009         GL_GENERATE_SCHED_H.
7010         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
7011         evaluates to false.
7012
7013         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
7014         conditional GL_GENERATE_SELINUX_CONTEXT_H.
7015         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
7016         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
7017
7018         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
7019         GL_GENERATE_STDARG_H.
7020         * modules/stdarg (Makefile.am): Remove stdarg.h if
7021         GL_GENERATE_STDARG_H evaluates to false.
7022
7023         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
7024         GL_GENERATE_STDBOOL_H.
7025         * modules/stdbool (Makefile.am): Remove stdbool.h if
7026         GL_GENERATE_STDBOOL_H evaluates to false.
7027
7028         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
7029         conditional GL_GENERATE_STDDEF_H.
7030         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
7031         * modules/stddef (Makefile.am): Remove stddef.h if
7032         GL_GENERATE_STDDEF_H evaluates to false.
7033
7034         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
7035         GL_GENERATE_STDINT_H.
7036         * modules/stdint (Makefile.am): Remove stdint.h if
7037         GL_GENERATE_STDINT_H evaluates to false.
7038
7039         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
7040         GL_GENERATE_SYSEXITS_H.
7041         * modules/sysexits (Makefile.am): Remove sysexits.h if
7042         GL_GENERATE_SYSEXITS_H evaluates to false.
7043
7044         Reported by Karl Berry and Ralf Wildenhues.
7045
7046 2011-04-05  Bruno Haible  <bruno@clisp.org>
7047
7048         Ensure to rebuild generated .h files when config.status has changed.
7049         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
7050         config.status.
7051         * modules/ctype (Makefile.am): Likewise.
7052         * modules/dirent (Makefile.am): Likewise.
7053         * modules/errno (Makefile.am): Likewise.
7054         * modules/fcntl-h (Makefile.am): Likewise.
7055         * modules/float (Makefile.am): Likewise.
7056         * modules/getopt-posix (Makefile.am): Likewise.
7057         * modules/glob (Makefile.am): Likewise.
7058         * modules/iconv-h (Makefile.am): Likewise.
7059         * modules/inttypes (Makefile.am): Likewise.
7060         * modules/langinfo (Makefile.am): Likewise.
7061         * modules/locale (Makefile.am): Likewise.
7062         * modules/math (Makefile.am): Likewise.
7063         * modules/netdb (Makefile.am): Likewise.
7064         * modules/netinet_in (Makefile.am): Likewise.
7065         * modules/poll-h (Makefile.am): Likewise.
7066         * modules/pthread (Makefile.am): Likewise.
7067         * modules/pty (Makefile.am): Likewise.
7068         * modules/sched (Makefile.am): Likewise.
7069         * modules/search (Makefile.am): Likewise.
7070         * modules/selinux-h (Makefile.am): Likewise.
7071         * modules/signal (Makefile.am): Likewise.
7072         * modules/spawn (Makefile.am): Likewise.
7073         * modules/stdarg (Makefile.am): Likewise.
7074         * modules/stdbool (Makefile.am): Likewise.
7075         * modules/stddef (Makefile.am): Likewise.
7076         * modules/stdint (Makefile.am): Likewise.
7077         * modules/stdio (Makefile.am): Likewise.
7078         * modules/stdlib (Makefile.am): Likewise.
7079         * modules/string (Makefile.am): Likewise.
7080         * modules/strings (Makefile.am): Likewise.
7081         * modules/sys_file (Makefile.am): Likewise.
7082         * modules/sys_ioctl (Makefile.am): Likewise.
7083         * modules/sys_select (Makefile.am): Likewise.
7084         * modules/sys_socket (Makefile.am): Likewise.
7085         * modules/sys_stat (Makefile.am): Likewise.
7086         * modules/sys_time (Makefile.am): Likewise.
7087         * modules/sys_times (Makefile.am): Likewise.
7088         * modules/sys_utsname (Makefile.am): Likewise.
7089         * modules/sys_wait (Makefile.am): Likewise.
7090         * modules/sysexits (Makefile.am): Likewise.
7091         * modules/termios (Makefile.am): Likewise.
7092         * modules/time (Makefile.am): Likewise.
7093         * modules/unistd (Makefile.am): Likewise.
7094         * modules/wchar (Makefile.am): Likewise.
7095         * modules/wctype-h (Makefile.am): Likewise.
7096         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
7097
7098 2011-04-05  Bruno Haible  <bruno@clisp.org>
7099
7100         pipe2: Relicense under LGPLv2+.
7101         * modules/pipe2 (License): Change to LGPLv2+.
7102         Requested by Eric Blake, for libvirt.
7103
7104 2011-04-05  Bruce Korb  <bkorb@gnu.org>
7105
7106         bootstrap: compute gnulib_extra_files after updating build_aux
7107         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
7108         change build_aux or also supply gnulib_extra_files.  Handle correctly.
7109
7110 2011-04-05  Eric Blake  <eblake@redhat.com>
7111
7112         bootstrap: preserve git whitelist item sorting
7113         * build-aux/bootstrap (sort_patterns): New function.
7114         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
7115
7116 2011-04-05  Simon Josefsson  <simon@josefsson.org>
7117
7118         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
7119         sc_space_tab check.
7120
7121 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
7122
7123         areadlink, areadlinkat: rewrite in terms of careadlinkat
7124         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
7125         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
7126         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
7127         (malloc, realloc): Remove #undefs.
7128         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
7129         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
7130         readlink, ssize_t, stdint, unistd.
7131         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
7132         areadlink, stdint.
7133
7134         careadlinkat: new module
7135         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
7136         * modules/careadlinkat: New files, written by me with
7137         a review and feedback from Ben Pfaff in
7138         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
7139
7140 2011-04-01  Bruno Haible  <bruno@clisp.org>
7141
7142         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
7143         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
7144         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
7145         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
7146         Reported by Bruce Korb <bruce.korb@gmail.com>.
7147
7148 2011-04-01  Bruno Haible  <bruno@clisp.org>
7149
7150         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
7151         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
7152         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
7153         * modules/wcpcpy (Depends-on): Add extensions.
7154         * modules/wcpncpy (Depends-on): Likewise.
7155         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
7156         systems.
7157         * doc/posix-functions/wcpncpy.texi: Likewise.
7158         * doc/posix-functions/wcwidth.texi: Likewise.
7159
7160 2011-03-31  Eric Blake  <eblake@redhat.com>
7161
7162         nonblocking: fix mingw test failures
7163         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
7164         non-blocking flag on regular file.
7165         (get_nonblocking_flag): Set errno on invalid fd.
7166         * tests/test-nonblocking.c (main): Avoid test failure on
7167         directories if fchdir is not active.
7168         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
7169
7170 2011-03-31  Bruno Haible  <bruno@clisp.org>
7171
7172         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
7173         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
7174         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
7175         Reported by Simon Josefsson <simon@josefsson.org>.
7176
7177 2011-03-31  Bruno Haible  <bruno@clisp.org>
7178         and Eric Blake  <eblake@redhat.com>
7179
7180         nonblocking: new module
7181         * modules/nonblocking: New module.
7182         * modules/nonblocking-tests: Likewise.
7183         * lib/nonblocking.h: New file.
7184         * lib/nonblocking.c: Likewise.
7185         * tests/test-nonblocking.c: New test.
7186         * lib/ioctl.c (ioctl) [mingw]: Update comment.
7187
7188 2011-03-30  Bruno Haible  <bruno@clisp.org>
7189
7190         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
7191         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
7192         instead of 'printf' format for GCC >= 4.4.
7193         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
7194         (fprintf, printf, vfprintf, vprintf): Declare with
7195         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
7196         the system's vfprintf() function.
7197         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
7198
7199 2011-03-30  Eric Blake  <eblake@redhat.com>
7200
7201         passfd: fix scoping bug
7202         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
7203         before sendmsg/recvmsg.
7204
7205         passfd: standardize coding conventions
7206         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
7207         can be learned at compile time.
7208         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
7209         ifdefs.
7210         (sendfd, recvfd): Follow gnulib code conventions.
7211
7212         passfd: fix incorrect sendmsg arguments
7213         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
7214         incorrect msg_controllen value.
7215         * modules/passfd-tests (Depends-on): Check for alarm.
7216         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
7217         Reported by Bastien ROUCARIES.
7218
7219 2011-03-30  Bruno Haible  <bruno@clisp.org>
7220
7221         c-strcasestr: Relicense under LGPLv2+.
7222         * modules/c-strcasestr (License): Change to LGPLv2+.
7223         Requested by Eric Blake, for libvirt.
7224
7225 2011-03-30  Simon Josefsson  <simon@josefsson.org>
7226
7227         * users.txt: Add libidn2.  Fix libtasn1 link.
7228
7229 2011-03-30  Jim Meyering  <meyering@redhat.com>
7230
7231         tests: readlink* ("",... fails with EINVAL on newer kernels
7232         readlink and readlinkat have typically failed with ENOENT for
7233         the invalid, empty file name,  "".  However, with the advent
7234         of linux-2.6.39, they fail with EINVAL.
7235         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
7236         when operating on the empty file name.
7237         * tests/test-readlink.h (test_readlink): Likewise.
7238
7239 2011-03-29  Bruno Haible  <bruno@clisp.org>
7240
7241         Relicense some modules under LGPLv2+, for libidn2.
7242         * modules/array-mergesort (License): Change to LGPLv2+.
7243         * modules/c-strcaseeq (License): Likewise.
7244         * modules/striconveh (License): Likewise.
7245         * modules/striconveha (License): Likewise.
7246         * modules/uniconv/base (License): Likewise.
7247         * modules/uniconv/u8-conv-from-enc (License): Likewise.
7248         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
7249         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
7250         * modules/unictype/base (License): Likewise.
7251         * modules/unictype/bidiclass-of (License): Likewise.
7252         * modules/unictype/category-M (License): Likewise.
7253         * modules/unictype/category-none (License): Likewise.
7254         * modules/unictype/category-of (License): Likewise.
7255         * modules/unictype/category-test (License): Likewise.
7256         * modules/unictype/category-test-withtable (License): Likewise.
7257         * modules/unictype/combining-class (License): Likewise.
7258         * modules/unictype/joiningtype-of (License): Likewise.
7259         * modules/unictype/scripts (License): Likewise.
7260         * modules/uninorm/base (License): Likewise.
7261         * modules/uninorm/canonical-decomposition (License): Likewise.
7262         * modules/uninorm/composition (License): Likewise.
7263         * modules/uninorm/decompose-internal (License): Likewise.
7264         * modules/uninorm/decomposition-table (License): Likewise.
7265         * modules/uninorm/nfc (License): Likewise.
7266         * modules/uninorm/nfd (License): Likewise.
7267         * modules/uninorm/u32-normalize (License): Likewise.
7268         * modules/unistr/base (License): Likewise.
7269         * modules/unistr/u32-cpy (License): Likewise.
7270         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
7271         * modules/unistr/u32-to-u8 (License): Likewise.
7272         * modules/unistr/u32-uctomb (License): Likewise.
7273         * modules/unistr/u8-check (License): Likewise.
7274         * modules/unistr/u8-mblen (License): Likewise.
7275         * modules/unistr/u8-mbtouc (License): Likewise.
7276         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
7277         * modules/unistr/u8-mbtoucr (License): Likewise.
7278         * modules/unistr/u8-prev (License): Likewise.
7279         * modules/unistr/u8-strlen (License): Likewise.
7280         * modules/unistr/u8-to-u32 (License): Likewise.
7281         * modules/unistr/u8-uctomb (License): Likewise.
7282         * modules/unitypes (License): Likewise.
7283         Requested by Simon Josefsson.
7284
7285 2011-03-29  Simon Josefsson  <simon@josefsson.org>
7286
7287         lib-symbol-visibility: Add a notice.
7288         * modules/lib-symbol-visibility (Notice): New field.
7289
7290 2011-03-29  Bruno Haible  <bruno@clisp.org>
7291
7292         getaddrinfo: Doc fix.
7293         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
7294         section "fixed in Gnulib".
7295
7296 2011-03-28  Simon Josefsson  <simon@josefsson.org>
7297
7298         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
7299         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
7300
7301 2011-03-26  Bruno Haible  <bruno@clisp.org>
7302
7303         unictype/property-byname: Reduce the number of load-time relocations.
7304         * lib/unictype/pr_byname.c: Include <stdlib.h>.
7305         (UC_PROPERTY_INDEX_*): New enumeration values.
7306         (uc_property_byname): Convert an index from the lookup table to an
7307         uc_property_t.
7308         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
7309         values.
7310
7311 2011-03-26  Bruno Haible  <bruno@clisp.org>
7312
7313         unictype/property-byname: Allow omitted word separators and aliases.
7314         * lib/unictype/pr_byname.gperf: Add property names without word
7315         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
7316         for 'space'.
7317
7318 2011-03-26  Bruno Haible  <bruno@clisp.org>
7319
7320         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
7321         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
7322         also hyphens to space.
7323         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
7324         without spaces.
7325         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
7326
7327 2011-03-26  Bruno Haible  <bruno@clisp.org>
7328
7329         unictype/joiningtype-byname: Recognize long names as well.
7330         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
7331         a long name.
7332         * lib/unictype/joiningtype_byname.c: Include <string.h>,
7333         unictype/joiningtype_byname.h.
7334         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
7335         * lib/unictype/joiningtype_byname.gperf: New file.
7336         * modules/unictype/joiningtype-byname (Files): Add
7337         lib/unictype/joiningtype_byname.gperf.
7338         (Depends-on): Add gperf.
7339         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
7340         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
7341         long names.
7342
7343         Tests for module 'unictype/joiningtype-longname'.
7344         * modules/unictype/joiningtype-longname-tests: New file.
7345         * tests/unictype/test-joiningtype_longname.c: New file.
7346
7347         New module 'unictype/joiningtype-longname'.
7348         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
7349         * lib/unictype/joiningtype_longname.c: New file.
7350         * modules/unictype/joiningtype-longname: New file.
7351         * modules/unictype/joiningtype-all (Depends-on): Add
7352         unictype/joiningtype-longname.
7353
7354 2011-03-26  Bruno Haible  <bruno@clisp.org>
7355
7356         unictype/bidiclass-byname: Recognize long names as well.
7357         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
7358         name.
7359         * lib/unictype/bidi_byname.c: Include <string.h>,
7360         unictype/bidi_byname.h.
7361         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
7362         * lib/unictype/bidi_byname.gperf: New file.
7363         * modules/unictype/bidiclass-byname (Files): Add
7364         lib/unictype/bidi_byname.gperf.
7365         (Depends-on): Add gperf.
7366         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
7367         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
7368         long names.
7369
7370         Tests for module 'unictype/bidiclass-longname'.
7371         * modules/unictype/bidiclass-longname-tests: New file.
7372         * tests/unictype/test-bidi_longname.c: New file.
7373
7374         New module 'unictype/bidiclass-longname'.
7375         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
7376         * lib/unictype/bidi_longname.c: New file.
7377         * modules/unictype/bidiclass-longname: New file.
7378         * modules/unictype/bidiclass-all (Depends-on): Add
7379         unictype/bidiclass-longname.
7380
7381 2011-03-26  Bruno Haible  <bruno@clisp.org>
7382
7383         unictype/bidi*: Rename modules.
7384         * modules/unictype/bidiclass-all: Renamed from
7385         modules/unictype/bidicategory-all.
7386         * modules/unictype/bidiclass-name: Renamed from
7387         modules/unictype/bidiclass-name.
7388         (Description): Update.
7389         * modules/unictype/bidiclass-name-tests: Renamed from
7390         modules/unictype/bidicategory-name-tests.
7391         * modules/unictype/bidiclass-byname: Renamed from
7392         modules/unictype/bidicategory-byname.
7393         (Description): Update.
7394         * modules/unictype/bidiclass-byname-tests: Renamed from
7395         modules/unictype/bidicategory-byname-tests.
7396         * modules/unictype/bidiclass-of: Renamed from
7397         modules/unictype/bidicategory-of.
7398         (Description): Update.
7399         * modules/unictype/bidiclass-of-tests: Renamed from
7400         modules/unictype/bidicategory-of-tests.
7401         * modules/unictype/bidiclass-test: Renamed from
7402         modules/unictype/bidicategory-test.
7403         (Description): Update.
7404         * modules/unictype/bidiclass-test-tests: Renamed from
7405         modules/unictype/bidicategory-test-tests.
7406         * modules/unictype/bidicategory-all: New file, a simple redirection.
7407         * modules/unictype/bidicategory-name: Likewise.
7408         * modules/unictype/bidicategory-byname: Likewise.
7409         * modules/unictype/bidicategory-of: Likewise.
7410         * modules/unictype/bidicategory-test: Likewise.
7411         * modules/unictype/property-bidi-* (Dependencies): Update.
7412         * lib/unictype/bidi_*.c: Update comment.
7413
7414 2011-03-26  Bruno Haible  <bruno@clisp.org>
7415
7416         unictype/bidi*: Rename functions, part 2.
7417         * modules/unictype/bidicategory-name (configure.ac): Update required
7418         libunistring version.
7419         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
7420
7421 2011-03-25  Bruno Haible  <bruno@clisp.org>
7422
7423         New module 'unictype/combining-class-all'.
7424         * modules/unictype/combining-class-all: New file.
7425
7426         Tests for module 'unictype/combining-class-byname'.
7427         * modules/unictype/combining-class-byname-tests: New file.
7428         * tests/unictype/test-combiningclass_byname.c: New file.
7429
7430         New module 'unictype/combining-class-byname'.
7431         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
7432         * lib/unictype/combiningclass_byname.c: New file.
7433         * lib/unictype/combiningclass_byname.gperf: New file.
7434         * modules/unictype/combining-class-byname: New file.
7435
7436         Tests for module 'unictype/combining-class-longname'.
7437         * modules/unictype/combining-class-longname-tests: New file.
7438         * tests/unictype/test-combiningclass_longname.c: New file.
7439
7440         New module 'unictype/combining-class-longname'.
7441         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
7442         * lib/unictype/combiningclass_longname.c: New file.
7443         * modules/unictype/combining-class-longname: New file.
7444
7445         Tests for module 'unictype/combining-class-name'.
7446         * modules/unictype/combining-class-name-tests: New file.
7447         * tests/unictype/test-combiningclass_name.c: New file.
7448
7449         New module 'unictype/combining-class-name'.
7450         * lib/unictype.in.h (uc_combining_class_name): New declaration.
7451         * lib/unictype/combiningclass_name.c: New file.
7452         * modules/unictype/combining-class-name: New file.
7453
7454 2011-03-25  Bruno Haible  <bruno@clisp.org>
7455
7456         unictype/combining-class: Rename source files.
7457         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
7458         of unictype/combining.h.
7459         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
7460         Update.
7461         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
7462         * modules/unictype/combining-class (Description): Fix.
7463         (Files, Makefile.am): Update.
7464         * tests/unictype/test-combiningclass.c: Renamed from
7465         tests/unictype/test-combining.c.
7466         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
7467
7468 2011-03-25  Bruno Haible  <bruno@clisp.org>
7469
7470         unictype: Update list of canonical combining classes.
7471         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
7472
7473 2011-03-25  Bruno Haible  <bruno@clisp.org>
7474
7475         unictype/category-byname: Recognize long names as well.
7476         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
7477         a long name.
7478         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
7479         unictype/categ_byname.h.
7480         (UC_CATEGORY_INDEX_*): New enumeration values.
7481         (uc_general_category_byname): Use uc_general_category_lookup and
7482         convert from index to value.
7483         * lib/unictype/categ_byname.gperf: New file.
7484         * modules/unictype/category-byname (Files): Add
7485         lib/unictype/categ_byname.gperf.
7486         (Depends-on): Add gperf.
7487         (Makefile.am): Add rule for generating unictype/categ_byname.h.
7488         * tests/unictype/test-categ_byname.c (main): Test the recognition of
7489         long names.
7490
7491         Tests for module 'unictype/category-longname'.
7492         * modules/unictype/category-longname-tests: New file.
7493         * tests/unictype/test-categ_longname.c: New file.
7494
7495         New module 'unictype/category-longname'.
7496         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
7497         * lib/unictype/categ_longname.c: New file.
7498         * modules/unictype/category-longname: New file.
7499         * modules/unictype/category-all (Depends-on): Add it.
7500
7501 2011-03-25  Bruno Haible  <bruno@clisp.org>
7502
7503         Tests for module 'unictype/category-LC'.
7504         * modules/unictype/category-LC-tests: New file.
7505         * tests/unictype/test-categ_LC.c: New file, automatically generated.
7506
7507         New module 'unictype/category-LC'.
7508         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
7509         (UC_CATEGORY_LC): New declaration.
7510         (UC_CASED_LETTER): New macro.
7511         * lib/gen-uni-tables.c (is_category_LC): New function.
7512         (output_categories): Also handle category LC.
7513         (UC_CATEGORY_MASK_LC): New enumeration value.
7514         (general_category_byname): Also handle category LC.
7515         * lib/unictype/categ_LC.c: New file.
7516         * lib/unictype/categ_LC.h: New file, automatically generated.
7517         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
7518         category LC.
7519         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
7520         * modules/unictype/category-LC: New file.
7521         * modules/unictype/category-byname (Depends-on): Add
7522         unictype/category-LC.
7523         * modules/unictype/category-all (Depends-on): Likewise.
7524
7525 2011-03-25  Eric Blake  <eblake@redhat.com>
7526
7527         xmalloc: revert yesterday's regression
7528         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
7529         realloc's underlying behavior (allowing allocation of zero-size
7530         objects, especially if malloc-gnu is also in use).
7531
7532 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
7533
7534         maint.mk: add missing version to VC-tag
7535         * top/maint.mk: git tag was missing actual tag name; add it.
7536
7537         valgrind: do leak checking, and exit with code 1 on error (not 0)
7538         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
7539         to VALGRIND.
7540
7541 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
7542
7543         posix-modules: say what it does.
7544         * posix-modules: Add a line to the --help output saying what it does.
7545
7546 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
7547
7548         xmalloc: Do not leak if underlying realloc is C99 compatible.
7549         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
7550         This avoids a leak on C99-based systems.  See
7551         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
7552
7553 2011-03-24  Eric Blake  <eblake@redhat.com>
7554
7555         realloc: document portability problem
7556         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
7557         passing 0 size to realloc.
7558
7559 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
7560
7561         doc: update users.txt
7562         * users.txt: Add cvsps, tmpwatch
7563
7564 2011-03-23  Matt Rice  <ratmice@gmail.com>
7565
7566         doc: update users.txt
7567         * users.txt: Add gdb.
7568
7569 2011-03-23  Jim Meyering  <meyering@redhat.com>
7570
7571         doc: update users.txt
7572         Looking through matches up to the following URL (there are still
7573         several more pages), I found several projects that use gnulib:
7574         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
7575         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
7576         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
7577
7578 2011-03-22  Bruno Haible  <bruno@clisp.org>
7579
7580         unictype/bidi*: Rename functions.
7581         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
7582         uc_bidi_class, uc_is_bidi_class): New declarations.
7583         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
7584         uc_bidi_category_byname.
7585         (uc_bidi_category_byname): New function.
7586         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
7587         u_bidi_category_name.
7588         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
7589         (uc_bidi_category_name): New function.
7590         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
7591         uc_bidi_category.
7592         (uc_bidi_category): New function.
7593         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
7594         uc_is_bidi_category. Invoke uc_bidi_class.
7595         (uc_is_bidi_category): New function.
7596         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
7597         instead of uc_bidi_category_byname.
7598         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
7599         instead of uc_bidi_category_name.
7600         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
7601         uc_bidi_category.
7602         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
7603         instead of uc_is_bidi_category.
7604
7605 2011-03-21  Bruno Haible  <bruno@clisp.org>
7606
7607         New module 'unictype/joininggroup-all'.
7608         * modules/unictype/joininggroup-all: New file.
7609
7610         Tests for module 'unictype/joininggroup-of'.
7611         * modules/unictype/joininggroup-of-tests: New file.
7612         * tests/unictype/test-joininggroup_of.c: New file.
7613         * tests/unictype/test-joininggroup_of.h: New file, automatically
7614         generated by gen-uni-tables.
7615
7616         New module 'unictype/joininggroup-of'.
7617         * modules/unictype/joininggroup-of: New file.
7618         * lib/unictype/joininggroup_of.c: New file.
7619         * lib/unictype/joininggroup_of.h: New file, automatically generated by
7620         gen-uni-tables.
7621
7622         Tests for module 'unictype/joininggroup-byname'.
7623         * modules/unictype/joininggroup-byname-tests: New file.
7624         * tests/unictype/test-joininggroup_byname.c: New file.
7625
7626         New module 'unictype/joininggroup-byname'.
7627         * modules/unictype/joininggroup-byname: New file.
7628         * lib/unictype/joininggroup_byname.c: New file.
7629         * lib/unictype/joininggroup_byname.gperf: New file.
7630
7631         Tests for module 'unictype/joininggroup-name'.
7632         * modules/unictype/joininggroup-name-tests: New file.
7633         * tests/unictype/test-joininggroup_name.c: New file.
7634
7635         New module 'unictype/joininggroup-name'.
7636         * modules/unictype/joininggroup-name: New file.
7637         * lib/unictype/joininggroup_name.c: New file.
7638         * lib/unictype/joininggroup_name.h: New file.
7639
7640         New module 'unictype/joiningtype-all'.
7641         * modules/unictype/joiningtype-all: New file.
7642
7643         Tests for module 'unictype/joiningtype-of'.
7644         * modules/unictype/joiningtype-of-tests: New file.
7645         * tests/unictype/test-joiningtype_of.c: New file.
7646         * tests/unictype/test-joiningtype_of.h: New file, automatically
7647         generated by gen-uni-tables.
7648
7649         New module 'unictype/joiningtype-of'.
7650         * modules/unictype/joiningtype-of: New file.
7651         * lib/unictype/joiningtype_of.c: New file.
7652         * lib/unictype/joiningtype_of.h: New file, automatically generated by
7653         gen-uni-tables.
7654
7655         Tests for module 'unictype/joiningtype-byname'.
7656         * modules/unictype/joiningtype-byname-tests: New file.
7657         * tests/unictype/test-joiningtype_byname.c: New file.
7658
7659         New module 'unictype/joiningtype-byname'.
7660         * modules/unictype/joiningtype-byname: New file.
7661         * lib/unictype/joiningtype_byname.c: New file.
7662
7663         Tests for module 'unictype/joiningtype-name'.
7664         * modules/unictype/joiningtype-name-tests: New file.
7665         * tests/unictype/test-joiningtype_name.c: New file.
7666
7667         New module 'unictype/joiningtype-name'.
7668         * modules/unictype/joiningtype-name: New file.
7669         * lib/unictype/joiningtype_name.c: New file.
7670
7671         unictype: Add support for Arabic shaping properties.
7672         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
7673         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
7674         declarations.
7675         (UC_JOINING_GROUP_*): New enumeration values.
7676         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
7677         declarations.
7678         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
7679         (unicode_joining_type): New variable.
7680         (UC_JOINING_GROUP_*): New enumeration values.
7681         (unicode_joining_group): New variable.
7682         (fill_arabicshaping, joining_type_as_c_identifier,
7683         output_joining_type_test, output_joining_type,
7684         joining_group_as_c_identifier, output_joining_group_test,
7685         output_joining_group): New functions.
7686         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
7687         fill_arabicshaping and output_joining_type_test, output_joining_type,
7688         output_joining_group_test, output_joining_group.
7689         Reported by Simon Josefsson.
7690
7691 2011-03-21  Jim Meyering  <meyering@redhat.com>
7692
7693         strftime: fix a bug in yesterday's change
7694         * lib/strftime.c (add): Accommodate width's initial value of -1.
7695         Otherwise, nstrftime would copy uninitialized data into
7696         the result buffer.
7697
7698 2011-03-21  Jim Meyering  <meyering@redhat.com>
7699
7700         tests: add strftime-tests module
7701         * tests/test-strftime.c: New file.
7702         * modules/strftime-tests: New module.
7703
7704 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
7705
7706         strftime: don't assume a byte count fits in 'int'
7707         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
7708         found this problem by static analysis, using gcc -Wstrict-overflow
7709         (GCC 4.5.2, x86-64).  This reported an optimization that depended
7710         on an integer overflow having undefined behavior, but it turns out
7711         that the argument is a size, which might not fit in 'int' anyway,
7712
7713 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
7714
7715         stdio: don't require ignore_value around fwrite
7716
7717         This patch works around libc bug 11959
7718         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
7719         Without this patch, applications must often write
7720         ignore_value (fwrite (...)) even though the ignore_value is
7721         not helpful here.  It's common to write many objects, using
7722         fwrite/printf/etc., and then use ferror to detect output error.
7723
7724         I considered making this patch optional, but decided against it,
7725         because libc is obviously being inconsistent here: there is no
7726         reason libc should insist that user code must inspect fwrite
7727         return's value without also insisting that it inspect printf's,
7728         putchar's, etc.  If user code wants to have a strict style where
7729         all these functions' values are checked (so that ferror need not
7730         be checked), we could add support for that style in a new gnulib
7731         module, but in the meantime it's better to be consistent and to
7732         support common usage.
7733
7734         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
7735         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
7736         that we are compiling in checking mode, and if not C++, and
7737         if not already wrapping fwrite for some other reason.
7738         (fwrite): #define to rpl_fwrite if the latter is defined.
7739
7740 2011-03-20  Bruno Haible  <bruno@clisp.org>
7741
7742         verror: Fix compilation error introduced on 2011-02-13.
7743         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
7744         instead of __attribute__.
7745         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7746
7747 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
7748             Bruno Haible  <bruno@clisp.org>
7749
7750         socklen: do not depend on sys_socket
7751         While trying to modify Emacs to use gnulib's socklen module,
7752         I discovered a circular dependency: socklen depends on sys_socket
7753         and vice versa.  Emacs can use socklen, but it does not need
7754         sys_socket because it has its own substitute for sys/socket.h.
7755         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
7756         gl_TYPE_SOCKLEN_T.
7757         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
7758         gl_PREREQ_SYS_H_SOCKET.
7759         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
7760         gl_PREREQ_SYS_H_SOCKET.
7761         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
7762         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
7763         * modules/socklen (Depends-on): Do not depend on sys_socket.
7764         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
7765
7766 2011-03-20  Jim Meyering  <meyering@redhat.com>
7767
7768         maint.mk: sort file names *after* new transformation
7769         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
7770         prefix would have led to an unwarranted failure in GNU parted.
7771         Sort after that transformation.
7772
7773 2011-03-19  Jim Meyering  <meyering@redhat.com>
7774
7775         maint.mk: fix po-file syntax-check rule
7776         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
7777         Patch by Bruno Haible.
7778
7779 2011-03-19  Bruno Haible  <bruno@clisp.org>
7780
7781         socklen: Update comment.
7782         * m4/socklen.m4: Update comment about platforms.
7783
7784 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
7785             Bruno Haible  <bruno@clisp.org>
7786
7787         inet_ntop, inet_pton: Simplify.
7788         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
7789         documented to provide socklen_t and we already depend on sys_socket.
7790         * modules/inet_pton (Depends-on): Likewise.
7791         * lib/arpa_inet.in.h: Adjust comment.
7792
7793 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
7794             Bruno Haible  <bruno@clisp.org>
7795
7796         netdb: Simplify.
7797         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
7798         documented to provide socklen_t and we already depend on sys_socket.
7799         * lib/netdb.in.h: Adjust comment.
7800
7801 2011-03-19  Bruno Haible  <bruno@clisp.org>
7802
7803         sys_socket, netdb: Document problem with socklen_t.
7804         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
7805         platforms.
7806         * doc/posix-headers/netdb.texi: Likewise.
7807
7808 2011-03-18  Eric Blake  <eblake@redhat.com>
7809
7810         maint.mk: let po check work in VPATH build
7811         * top/maint.mk (po_file): Allow cfg.mk override.
7812         (sc_po_check): Allow VPATH use.
7813         Reported by Jiri Denemark.
7814
7815 2011-03-16  Jim Meyering  <meyering@redhat.com>
7816
7817         maint.mk: allow fine-grained syntax-check exclusion via Make variables
7818         Before, you would have had to create one .x-sc_ file per rule in order
7819         to exempt offending files.  Now, you may instead use a Make variable --
7820         usually defined in cfg.mk -- whose name identifies the affected rule.
7821         * top/maint.mk (_sc_excl): Define.
7822         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
7823         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
7824
7825 2011-03-13  Bruno Haible  <bruno@clisp.org>
7826
7827         ignore-value tests: Avoid warnings.
7828         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
7829         empty for gcc < 3.4.
7830
7831 2011-03-13  Bruno Haible  <bruno@clisp.org>
7832
7833         passfd: Fix link error on Solaris.
7834         * modules/passfd (Description): Correct.
7835         (Depends-on): Add socketlib.
7836         (Link): New section.
7837         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
7838
7839 2011-03-13  Bruno Haible  <bruno@clisp.org>
7840
7841         passfd: Fix link error on AIX 5.2.
7842         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
7843
7844 2011-03-13  Bruno Haible  <bruno@clisp.org>
7845
7846         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
7847         * lib/sys_socket.in.h: Include <stddef.h>.
7848         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
7849         CMSG_FIRSTHDR. Remove unused variable.
7850
7851 2011-03-13  Bruno Haible  <bruno@clisp.org>
7852
7853         passfd: Fix compilation error on OpenBSD.
7854         * lib/passfd.c: Include <sys/uio.h>.
7855
7856 2011-03-13  Bruno Haible  <bruno@clisp.org>
7857
7858         passfd test: Fix warnings.
7859         * tests/test-passfd.c: Include <sys/wait.h>.
7860         (main): Fix typo.
7861
7862 2011-03-13  Bruno Haible  <bruno@clisp.org>
7863
7864         passfd module, part 4, tweaks.
7865         * tests/test-passfd.c: Reorder includes.
7866         (main): Fix perror and printf calls.
7867
7868 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
7869
7870         passfd module, part 4.
7871         * modules/passfd-tests: New file.
7872         * tests/test-passfd.c: New file.
7873
7874 2011-03-13  Jim Meyering  <meyering@redhat.com>
7875
7876         Makefile: rely on GNU make; derive syntax-check rule names
7877         Rather than requiring that each sc_ rule be listed as a dependent
7878         of "check", use features of GNU make to derive the list.
7879         * Makefile (syntax-check-rules): Define.
7880         (check): Depend on the new variable, not the hard-coded list.
7881
7882 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
7883             Bruno Haible  <bruno@clisp.org>
7884
7885         passfd module, part 3.
7886         * lib/passfd.h (recvfd): Add a flags argument.
7887         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
7888         (recvfd): Add a flags argument.
7889         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
7890         exists.
7891         * modules/passfd (Depends-on): Add cloexec.
7892         Suggested by Eric Blake.
7893
7894 2011-03-13  Bruno Haible  <bruno@clisp.org>
7895
7896         passfd module, part 2, tweaks.
7897         * modules/passfd (Files): Reorder.
7898         (Depends-on): Remove errno.
7899         (Include): Remove <sys/socket.h>, <sys/un.h>.
7900         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
7901         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
7902         specification header. Include <sys/socket.h> always. Don't include
7903         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
7904         (sendfd): Clarify that it sets errno when it fails.
7905         (recvfd): Fix specification.
7906
7907 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
7908
7909         passfd module, part 2.
7910         * modules/passfd: New file.
7911         * lib/passfd.h: New file.
7912         * lib/passfd.c: New file.
7913
7914 2011-03-12  Bruno Haible  <bruno@clisp.org>
7915
7916         wcswidth, mbswidth: Avoid integer overflow.
7917         * lib/wcswidth.c: Include <limits.h>.
7918         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
7919         * lib/mbswidth.c: Include <limits.h>.
7920         (mbsnwidth): Avoid 'int' overflow.
7921         Reported by Jim Meyering.
7922
7923 2011-03-12  Bruno Haible  <bruno@clisp.org>
7924
7925         futimens, utimensat: Avoid endless recursion on Solaris 10.
7926         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
7927         Solaris.
7928         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
7929         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
7930
7931 2011-03-11  Jim Meyering  <meyering@redhat.com>
7932
7933         maint.mk: relax a regexp to accommodate other formatting styles
7934         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
7935         between "ngettext" and the following "(".
7936
7937 2011-03-11  Pádraig Brady <P@draigBrady.com>
7938
7939         maint.mk: suppress a false positive warning
7940         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
7941         diagnostics are marked with ngettext.
7942
7943 2011-03-10  Eric Blake  <eblake@redhat.com>
7944
7945         wchar: add explicit dependencies, for Tru64
7946         * modules/mbmemcasecoll (Depends-on): Add wchar.
7947         * modules/mbtowc (Depends-on): Likewise.
7948         * modules/vasnprintf (Depends-on): Likewise.
7949         * modules/unistdio/u-printf-args (Depends-on): Likewise.
7950         * modules/wctomb (Depends-on): Likewise.
7951         Reported by Peter O'Gorman.
7952
7953 2011-03-08  Bruno Haible  <bruno@clisp.org>
7954
7955         passfd module, part 1, tweaks.
7956         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
7957         Improve indentation. Improve AC_MSG_CHECKING messages.
7958         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
7959         gl_SOCKET_FAMILIES.
7960
7961 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
7962
7963         passfd module, part 1.
7964         * m4/afunix.m4: New file.
7965         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
7966         sockets.
7967
7968 2011-03-08  Bruno Haible  <bruno@clisp.org>
7969
7970         regex-quote: New API.
7971         * lib/regex-quote.h: Include <stdbool.h>.
7972         (struct regex_quote_spec): New type.
7973         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
7974         New declarations.
7975         (regex_quote_length, regex_quote_copy, regex_quote): Take a
7976         'const struct regex_quote_spec *' argument.
7977         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
7978         (pcre_special): New constant.
7979         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
7980         New functions.
7981         (regex_quote_length, regex_quote_copy, regex_quote): Take a
7982         'const struct regex_quote_spec *' argument.
7983         * modules/regex-quote (Depends-on): Add stdbool.
7984         * tests/test-regex-quote.c (check): Update for new API. Add test for
7985         anchored results.
7986         * NEWS: Mention the API change.
7987         Reported by Reuben Thomas and Eric Blake.
7988
7989 2011-03-06  Bruno Haible  <bruno@clisp.org>
7990
7991         regex-quote: Fix creation of POSIX extended regular expressions.
7992         * lib/regex-quote.c (ere_special): Add grouping and alternation
7993         operators.
7994
7995 2011-03-05  Bruno Haible  <bruno@clisp.org>
7996
7997         doc: Improve doc regarding autopoint vs. gnulib.
7998         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
7999         disable autopoint while running autoreconf.
8000         Suggested by Ralf Wildenhues.
8001
8002 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8003
8004         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
8005         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
8006
8007 2011-03-03  Bruce Korb  <bkorb@gnu.org>
8008
8009         parse-duration: remove xalloc.h dependency
8010         * lib/parse-duration.c (parse_period): handle NULL return from
8011         strdup instead of calling xstrdup().
8012         * modules/parse-duration: remove "xalloc" dependency
8013
8014 2011-03-03  Matthew Booth  <mbooth@redhat.com>
8015
8016         bootstrap: honor m4_base when running aclocal
8017         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
8018
8019 2011-03-02  Jim Meyering  <meyering@redhat.com>
8020
8021         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
8022         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
8023         on request from Matt Booth.
8024
8025 2011-03-01  Eric Blake  <eblake@redhat.com>
8026
8027         test-link: work on Hurd
8028         * tests/test-link.h (test_link): Hurd rejects linking directories
8029         with EISDIR instead of the POSIX-mandated EPERM.
8030
8031 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
8032
8033         stdio: simplify by moving files to printf-posix, sigpipe
8034         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
8035         since this symbol is needed only if printf is replaced.
8036         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
8037         Require gl_ASM_SYMBOL_PREFIX.
8038         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
8039         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
8040         (Depends-on): Add 'raise'.
8041         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
8042         * modules/stdio (Files): Remove lib/stdio-write.c,
8043         m4/asm-underscore.m4.
8044         (Depends-on): Remove 'raise'.
8045
8046         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
8047         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
8048         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
8049         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
8050
8051 2011-02-28  Bruno Haible  <bruno@clisp.org>
8052
8053         localcharset: Assume ANSI C behaviour of free().
8054         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
8055         calling free().
8056         Suggested by Simon Josefsson <simon@josefsson.org>.
8057
8058 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
8059             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
8060             Bruno Haible  <bruno@clisp.org>  (tiny change)
8061
8062         On Cygwin, use /proc file system instead of win32 API.
8063         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
8064         Win32 file names.
8065         (DllMain): Simplify by removing Cygwin specific code.
8066         (find_shared_library_fullname): Use Linux specific implementation also
8067         for Cygwin.
8068         (get_shared_library_fullname): Update accordingly.
8069         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
8070         Win32 file names.
8071         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
8072         Cygwin specific code.
8073
8074 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
8075             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
8076
8077         Fix OpenMP flag detection for various Fortran compilers.
8078         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
8079         OpenMP-conditional compilation construct, to force compile
8080         failure with missing OpenMP flag.
8081         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
8082
8083 2011-02-25  Eric Blake  <eblake@redhat.com>
8084
8085         strstr: expand test coverage
8086         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
8087         compilation.
8088         * tests/test-memmem.c (main): Duplicate tests.
8089         * tests/test-strcasestr.c (main): Likewise.
8090         * tests/test-c-strcasestr.c (main): Likewise.
8091
8092 2011-02-25  Jim Meyering  <meyering@redhat.com>
8093
8094         maint.mk: detect missing-NL-at-EOF, too
8095         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
8096         it also detects when a file lacks a newline at EOF.
8097         (require_exactly_one_NL_at_EOF_): Renamed from
8098         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
8099         since people may well have .x-sc_... file names tied to the
8100         existing name.  Suggested by Eric Blake.
8101
8102 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
8103
8104         dirname: move m4/dos.m4 functionality into lib/dosname.h
8105
8106         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
8107         extracts symbols from it, puts them into config.h; but it's much
8108         easier to use the symbols directly.  filename.h already does this,
8109         but it disagrees with dos.m4 in some respects.  This patch
8110         introduces a different include file dosname.h that packages up
8111         dos.m4, and then later we can work on merging filename.h and
8112         dosname.h.  Applications that need only the easy-to-configure
8113         symbols should consider including dosname.h rather than dirname.h.
8114         * NEWS: Mention incompatible changes.
8115         * m4/dos.m4: Remove.
8116         * lib/dosname.h, modules/dosname: New files.
8117         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
8118         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
8119         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
8120         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
8121         Include dosname.h, not dirname.h.
8122         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
8123         Include dosname.h, for definitions of symbols like ISSLASH
8124         that used to be in config.h.
8125         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
8126         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
8127         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
8128         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
8129         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
8130         * modules/rmdir (Files): Likewise.
8131         * modules/stat (Files): Likewise.
8132         * modules/unlink (Files): Likewise.
8133         * modules/dirname-lgpl (Depends-on): Add dosname.
8134         * modules/lstat (Depends-on): Likewise.
8135         * modules/openat (Depends-on): Likewise.
8136         * modules/rmdir (Depends-on): Likewise.
8137         * modules/savewd (Depends-on): Likewise.
8138         * modules/stat (Depends-on): Likewise.
8139         * modules/unlink (Depends-on): Likewise.
8140         * modules/openat (Depends-on): Remove dirname-lgpl.
8141         * modules/savewd (Depends-on): Likewise.
8142         * tests/test-dirname.c: Do not use removed symbols like
8143         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
8144         the remaining symbols, e.g., ISSLASH ('\\').
8145
8146 2011-02-25  Eric Blake  <eblake@redhat.com>
8147
8148         strstr: revert patches that introduced bug and pessimization
8149         * lib/str-two-way.h: Add another reference.
8150         (two_way_short_needle, two_way_long_needle): Revert changes from
8151         2011-02-24; they pessimize search speed.
8152         (critical_factorization): Partially revert changes from
8153         2010-06-22; they violate the requirement that the left half of the
8154         needle be smaller than the period of the needle.
8155
8156 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
8157
8158         filenamecat: remove unnecessary dependency on dirname-lgpl
8159         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
8160         is no direct dependency, just an indirect one via filenamecat-lgpl.
8161
8162         remove: remove unnecessary use of m4/dos.m4
8163         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
8164         * modules/remove (FILES): Remove m4/dos.m4.
8165
8166         * lib/openat-proc.c: Don't include dirname.h; not needed.
8167
8168         backupfile: remove unnecessary use of m4/dos.m4
8169         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
8170         of its symbols are used by the backupfile code.  backupfile.c does
8171         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
8172         for the rare case of programs that want all their backup file
8173         names to live within 8+3 limits, and dos.m4 doesn't address that.
8174         * modules/backupfile (Files): Remove m4/dos.m4.
8175
8176 2011-02-24  Jim Meyering  <meyering@redhat.com>
8177
8178         strstr: fix a bug whereby strstr would mistakenly return NULL
8179         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
8180         in period calculation.
8181         (two_way_long_needle): Likewise.
8182         The original problem was reported by Mike Stump in
8183         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
8184         Ralf Wildenhues provided the short needle and haystack.
8185         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
8186         Add a more involved test to trigger the bug in two_way_long_needle.
8187
8188 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
8189
8190         gnulib-tool: remove use of bold display in help screen
8191         * gnulib-tool (func_usage): Do not use bold display anymore in the
8192         help screen.  That was just meant to be a temporary emphasis for a
8193         backward-incompatible change.
8194
8195 2011-02-23  Bruno Haible  <bruno@clisp.org>
8196
8197         Fix misindentation of preprocessor directives.
8198         * lib/argp-namefrob.h: Reindent preprocessor directives.
8199         * lib/getopt_int.h (struct _getopt_data): Likewise.
8200         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
8201         * lib/vasnprintf.c (decode_long_double): Likewise.
8202         * tests/test-argmatch.c: Insert blank lines, for clarity.
8203         * tests/test-exclude.c: Likewise.
8204
8205 2011-02-22  Bruno Haible  <bruno@clisp.org>
8206
8207         ioctl: Fix for MacOS X in 64-bit mode.
8208         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
8209         value.
8210         Suggested by Eric Blake.
8211         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
8212
8213 2011-02-22  Jim Meyering  <meyering@redhat.com>
8214
8215         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
8216         * Makefile (sc_cpp_indent_check): Don't limit the check to files
8217         in lib/.
8218
8219 2011-02-22  Eric Blake  <eblake@redhat.com>
8220
8221         maint: avoid any CDPATH issue
8222         * Makefile (sc_cpp_indent_check): Anchor cd argument.
8223
8224         maint: adjust cpp indentation for my modules, as well
8225         * Makefile (sc_cpp_indent_check): Add my name.
8226         * lib/fbufmode.c: Filter through cppi.
8227         * lib/fpurge.c: Likewise.
8228         * lib/freadable.c: Likewise.
8229         * lib/freading.c: Likewise.
8230         * lib/fwritable.c: Likewise.
8231         * lib/fwriting.c: Likewise.
8232         * lib/sigaction.c: Likewise.
8233
8234 2011-02-22  Jim Meyering  <meyering@redhat.com>
8235
8236         maint: adjust cpp indentation to reflect nesting depth
8237         I.e., in a block of code that begins with an unnested "#if",
8238         put one space between the "#" in column 1 and following token.
8239         For example,
8240         -#include <sys/vfs.h>
8241         +# include <sys/vfs.h>
8242         Do this only in .c files that are part of a module I maintain.
8243         * lib/linkat.c: Filter through cppi.
8244         * lib/nanosleep.c: Likewise.
8245         * lib/openat.c: Likewise.
8246         * lib/openat-die.c: Likewise.
8247         * lib/dup3.c: Likewise.
8248         * lib/fchownat.c: Likewise.
8249         * lib/flock.c: Likewise.
8250         * lib/fsync.c: Likewise.
8251         * lib/fts.c: Likewise.
8252         * lib/getpass.c: Likewise.
8253         * lib/gettimeofday.c: Likewise.
8254         * lib/userspec.c: Likewise.
8255         * Makefile (sc_cpp_indent_check): New rule, to check this.
8256
8257 2011-02-22  Bruno Haible  <bruno@clisp.org>
8258
8259         New module 'wctomb'.
8260         * lib/stdlib.in.h (wctomb): New declaration.
8261         * lib/wctomb.c: New file.
8262         * lib/wctomb-impl.h: New file.
8263         * m4/wctomb.m4: New file.
8264         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
8265         REPLACE_WCTOMB.
8266         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
8267         REPLACE_WCTOMB.
8268         * modules/wctomb: New file.
8269         * tests/test-stdlib-c++.cc: Test signature of wctomb.
8270         * doc/posix-functions/wctomb.texi: Mention the new module.
8271         * modules/wctob (Depends-on): Add wctomb.
8272
8273 2011-02-22  Bruno Haible  <bruno@clisp.org>
8274
8275         New module 'mbtowc'.
8276         * lib/stdlib.in.h (mbtowc): New declaration.
8277         * lib/mbtowc.c: New file.
8278         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
8279         * m4/mbtowc.m4: New file.
8280         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
8281         REPLACE_MBTOWC.
8282         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
8283         REPLACE_MBTOWC.
8284         * modules/mbtowc: New file.
8285         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
8286         * doc/posix-functions/mbtowc.texi: Mention the new module.
8287         * modules/btowc (Depends-on): Add mbtowc.
8288
8289 2011-02-22  Bruno Haible  <bruno@clisp.org>
8290
8291         wcrtomb: Add more tests for native Windows platforms.
8292         * tests/test-wcrtomb-w32-1.sh: New file.
8293         * tests/test-wcrtomb-w32-2.sh: New file.
8294         * tests/test-wcrtomb-w32-3.sh: New file.
8295         * tests/test-wcrtomb-w32-4.sh: New file.
8296         * tests/test-wcrtomb-w32-5.sh: New file.
8297         * tests/test-wcrtomb-w32.c: New file.
8298         * modules/wcrtomb-tests (Files): Add them.
8299         (Makefile.am): Arrange to run these tests.
8300         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
8301         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
8302
8303 2011-02-20  Bruno Haible  <bruno@clisp.org>
8304
8305         wcrtomb: Enhance test.
8306         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
8307
8308 2011-02-20  Bruno Haible  <bruno@clisp.org>
8309
8310         mbrtowc: Tiny optimization.
8311         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
8312
8313 2011-02-20  Jim Meyering  <meyering@redhat.com>
8314
8315         test-exclude.c: remove unmatched #endif
8316         * tests/test-exclude.c: Remove stray #endif, left over from
8317         the change of a week ago.
8318
8319 2011-02-19  Jim Meyering  <meyering@redhat.com>
8320
8321         git-version-gen: skip "-dirty" check when appropriate
8322         * build-aux/git-version-gen: Don't run any git commands when the
8323         version string comes from .tarball-version.  Prior to this, we
8324         would run git update-index --refresh even from a just-unpacked
8325         tarball directory, and that could affect a .git/ directory in a
8326         parent of the build directory.  Reported by Mike Frysinger.
8327
8328 2011-02-19  Bruno Haible  <bruno@clisp.org>
8329
8330         unictype/property-byname: Reduce the size of the 'data' segment.
8331         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
8332
8333 2011-02-19  Bruno Haible  <bruno@clisp.org>
8334
8335         unictype/scripts: Reduce the size of the 'data' segment.
8336         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
8337         '%pic'.
8338         * lib/unictype/scripts_byname.gperf: Regenerated.
8339
8340 2011-02-19  Bruno Haible  <bruno@clisp.org>
8341
8342         stdint: Update documentation.
8343         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
8344
8345 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
8346
8347         stdint: omit redundant check for wchar.h
8348         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
8349         always tests whether wchar.h exists, so remove the now-redundant test.
8350
8351 2011-02-18  Bruno Haible  <bruno@clisp.org>
8352
8353         stdint: Cut dependency to module 'wchar'.
8354         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
8355         include the necessary prerequisites.
8356         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
8357         * modules/stdint (Depends-on): Remove wchar.
8358         (Makefile.am): Substitute HAVE_WCHAR_H.
8359         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
8360
8361 2011-02-18  Eric Blake  <eblake@redhat.com>
8362
8363         longlong: skip, rather than fail, on cross-compilation
8364         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
8365         when cross-compiling; regression from 2011-02-16.
8366
8367 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
8368
8369         * NEWS: Mention 2011-02-08 change to stdlib.
8370
8371 2011-02-17  Bruno Haible  <bruno@clisp.org>
8372
8373         getloadavg: Add comments about platforms.
8374         * m4/getloadavg.m4: Add comment.
8375         * lib/getloadavg.c: Likewise.
8376
8377 2011-02-17  Bruno Haible  <bruno@clisp.org>
8378
8379         getloadavg: Fix link error on Solaris 2.6.
8380         * modules/getloadavg (Link): New section.
8381         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
8382         linking test-getloadavg.
8383         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
8384         getloadavg.
8385
8386 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
8387
8388         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
8389         It was 'int', but this doesn't match the IRIX 6.5 manual.
8390         Suggested by Bruno Haible in
8391         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
8392
8393 2011-02-17  Bruno Haible  <bruno@clisp.org>
8394
8395         havelib: Fix comments.
8396         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
8397         change.
8398
8399 2011-02-17  Bruno Haible  <bruno@clisp.org>
8400
8401         havelib: Update config.rpath.
8402         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
8403
8404 2011-02-17  Bruno Haible  <bruno@clisp.org>
8405
8406         getloadavg test: Add some plausibility checks.
8407         * tests/test-getloadavg.c (check_avg): Print a warning when the value
8408         is improbable.
8409
8410 2011-02-16  Eric Blake  <eblake@redhat.com>
8411
8412         maintainer-makefile: make syntax-check a no-op from tarballs
8413         * top/maint.mk (no-vc-detected): New rule.
8414         (local-checks-available): Use it to avoid hanging if someone tries
8415         'make syntax-check' from a tarball.  Also append to any non-syntax
8416         checks already defined in cfg.mk.
8417
8418 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
8419
8420         longlong: tune, particularly for common case of c99
8421
8422         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
8423         or running anything if c99, or if unsigned long long int does not
8424         work.  In either case, we know the answer without further tests.
8425         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
8426         it at most once, and use its results for both long long int and
8427         unsigned long long int.  This is more likely to be efficient in
8428         the common case where the program wants to check for both long
8429         long int and unsigned long long int.
8430         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
8431         since the answer is already known.
8432
8433 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
8434
8435         getloadavg: set errno
8436         * lib/getloadavg.c: Set errno when returning -1.  If no other
8437         error number looks appropriate, set it to ENOSYS if the getloadavg
8438         looks like it can't possibly ever work, ENOTSUP otherwise.
8439         Suggested by Bruno Haible in
8440         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
8441
8442         getloadavg: trim unused parts and speed up 'configure'
8443         * NEWS: Document this.
8444         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
8445         always compiled if getloadavg is absent.
8446         Move test code to ...
8447         * tests/test-getloadavg.c: New file, containing previous
8448         contents of test from lib/getloadavg.c.  It also contains
8449         suggestions by Bruno Haible in
8450         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
8451         * modules/getloadavg-tests: New file.
8452         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
8453         Do tests in the same order as they're needed for getloadavg.c.
8454         Omit setgid-related tests that generate symbols KMEM_GROUP,
8455         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
8456         Do only the tests that are needed to see whether the system has
8457         getloadavg, moving the other tests into ...
8458         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
8459         NLIST_NAME_UNION; nobody should be using it.  Do not define
8460         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
8461         relevant, as the user of this module shouldn't care how getloadavg
8462         is implemented.
8463
8464         getloadavg: omit unused var
8465         * lib/getloadavg.c (getloadavg): Omit unused local variable.
8466
8467 2011-02-15  Jim Meyering  <meyering@redhat.com>
8468
8469         doc: update users.txt
8470         * users.txt: Update iwhd's URL.
8471
8472 2011-02-13  Bruno Haible  <bruno@clisp.org>
8473
8474         Consistent macro naming for macros that use GCC __attribute__.
8475         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
8476         _ATTRIBUTE_NONNULL_.
8477         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
8478         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
8479         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
8480         ATTRIBUTE_DEPRECATED.
8481         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
8482         ATTRIBUTE_NORETURN.
8483         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
8484         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
8485         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
8486         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
8487         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
8488         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
8489         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
8490         ATTRIBUTE_SENTINEL.
8491         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
8492         ATTRIBUTE_RETURN_CHECK.
8493         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
8494         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
8495         ATTRIBUTE_NORETURN.
8496         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
8497         Reported by Paul Eggert.
8498
8499 2011-02-13  Bruno Haible  <bruno@clisp.org>
8500
8501         Don't interfere with a program's definition of __attribute__.
8502         * lib/argp.h (__attribute__): Remove definition.
8503         (_GL_ATTRIBUTE_FORMAT): New macro.
8504         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
8505         * lib/argp-fmtstream.h (__attribute__): Remove definition.
8506         (_GL_ATTRIBUTE_FORMAT): New macro.
8507         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
8508         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
8509         GCC 3 or newer.
8510         * lib/error.h (__attribute__): Remove definition.
8511         (_GL_ATTRIBUTE_FORMAT): New macro.
8512         (error, error_at_line): Use it.
8513         * lib/hash.h (__attribute__): Remove definition.
8514         (ATTRIBUTE_WUR): Update definition. Define always.
8515         * lib/openat.h (__attribute__): Remove definition.
8516         (ATTRIBUTE_NORETURN): Update definition. Define always.
8517         * lib/sigpipe-die.h (__attribute__): Remove definition.
8518         (ATTRIBUTE_NORETURN): Update definition. Define always.
8519         * lib/vasnprintf.h (__attribute__): Remove definition.
8520         (_GL_ATTRIBUTE_FORMAT): New macro.
8521         (asnprintf, vasnprintf): Use it.
8522         * lib/xalloc.h (__attribute__): Remove definition.
8523         (ATTRIBUTE_NORETURN): Update definition. Define always.
8524         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
8525         * lib/xmemdup0.h (__attribute__): Remove definition.
8526         (ATTRIBUTE_NORETURN): Update definition. Define always.
8527         * lib/xprintf.h (__attribute__): Remove definition.
8528         (_GL_ATTRIBUTE_FORMAT): New macro.
8529         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
8530         * lib/xstrtol.h (__attribute__): Remove definition.
8531         (ATTRIBUTE_NORETURN): Update definition. Define always.
8532         * lib/xvasprintf.h (__attribute__): Remove definition.
8533         (_GL_ATTRIBUTE_FORMAT): New macro.
8534         (xasprintf, xvasprintf): Use it.
8535         * tests/test-argmatch.c (__attribute__): Remove definition.
8536         (ATTRIBUTE_NORETURN): Update definition. Define always.
8537         * tests/test-exclude.c (__attribute__): Remove definition.
8538         (ATTRIBUTE_NORETURN): Update definition. Define always.
8539         Reported by Paul Eggert.
8540
8541 2011-02-13  Bruno Haible  <bruno@clisp.org>
8542
8543         mbrtowc: Add more tests for native Windows platforms.
8544         * tests/test-mbrtowc-w32-1.sh: New file.
8545         * tests/test-mbrtowc-w32-2.sh: New file.
8546         * tests/test-mbrtowc-w32-3.sh: New file.
8547         * tests/test-mbrtowc-w32-4.sh: New file.
8548         * tests/test-mbrtowc-w32-5.sh: New file.
8549         * tests/test-mbrtowc-w32.c: New file.
8550         * modules/mbrtowc-tests (Files): Add them.
8551         (Makefile.am): Arrange to run these tests.
8552         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
8553         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
8554
8555 2011-02-13  Bruno Haible  <bruno@clisp.org>
8556
8557         mbrtowc: Work around native Windows bug.
8558         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
8559         guess when no suitable locale for testing was found.
8560         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
8561
8562 2011-02-13  Bruno Haible  <bruno@clisp.org>
8563
8564         mbsinit: Work around mingw bug.
8565         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
8566         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
8567         Windows.
8568         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
8569
8570 2011-02-13  Bruno Haible  <bruno@clisp.org>
8571
8572         mbsinit: Don't crash for a NULL argument.
8573         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
8574         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
8575
8576 2011-02-13  Bruno Haible  <bruno@clisp.org>
8577
8578         Don't interfere with a program's definition of __attribute__.
8579         * lib/stdio.in.h (__attribute__): Remove definition.
8580         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
8581         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
8582         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
8583         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
8584         * lib/string.in.h (__attribute__): Remove definition.
8585         Reported by Paul Eggert.
8586
8587 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
8588
8589         stdlib: don't get in the way of non-GCC __attribute__
8590         See thread starting at
8591         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
8592         Revert previous stdlib change, installing the following instead:
8593         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
8594         to get in the way of a non-GCC compiler that supports __attribute__.
8595         (_GL_ATTRIBUTE_RETURN): New macro.
8596         (_Exit): Use it instead of __attribute__.
8597
8598 2011-02-12  Bruno Haible  <bruno@clisp.org>
8599
8600         quotearg test: Avoid test failure on mingw.
8601         * tests/test-quotearg.sh: Convert the locale identifier from native
8602         Windows syntax to Unix syntax.
8603
8604 2011-02-12  Bruno Haible  <bruno@clisp.org>
8605
8606         setlocale: Prefer gnulib's override over libintl's override.
8607         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
8608         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
8609         GNULIB_defined_setlocale is set.
8610
8611 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
8612
8613         stdlib: support non-GCC __attribute__
8614
8615         Fix a serious and tricky problem encountered when attempting to
8616         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
8617         5.5, but it crashed due to memory corruption on Solaris 10 with
8618         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
8619         bits that are otherwise zero.  This tagging is optional inside
8620         Emacs but is preferred and is used when __attribute__ ((__aligned
8621         (8))) works, as it does with both recent-enough GCC and with Sun C
8622         5.11.  However, Sun C 5.11 is not GCC and does not #define
8623         __GNUC__ and __GNUC_MINOR__.
8624
8625         When I added the getloadavg module to Emacs, it brought in
8626         stdlib.in.h, which contained this fragment:
8627
8628            #ifndef __attribute__
8629            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
8630            #  define __attribute__(Spec)   /* empty */
8631            # endif
8632            #endif
8633
8634         When files that include <stdlib.h> were compiled with Sun C 5.11,
8635         the above code disabled __attribute__ ((__aligned (8))), which
8636         caused variables to not be properly aligned, which eventually led
8637         to the pointer corruption mentioned above.  (This was a bit hard
8638         to diagnose, unfortunately.)
8639
8640         Several "#define __attribute__(X) /* empty */" code snippets need
8641         to be eradicated from Gnulib to work with non-GCC compilers that
8642         support __attribute__.  The Autoconf way to do this is to test for
8643         each kind of attribute that we want support for, and selectively
8644         enable that in source code.
8645
8646         Fix this problem just for stdlib.h, by adding a test for the
8647         __noreturn__ attribute, and change stdlib.in.h to use that test
8648         when needed.  This technique can be easily generalized to the
8649         other *.in.h files and attributes, and a similar technique can be
8650         used for *.h and *.c files.  This patch is enough to solve the
8651         problem for Emacs + getloadavg, and I thought I'd publish it for
8652         feedback before undertaking further, similar fixes in other
8653         modules.
8654
8655         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
8656         because it's not needed for stdlib.h.  It merely substitutes the
8657         value directly into stdlib.h.  We may well need to #define it, or
8658         similar symbols, for other modules, but it's nice to also have an
8659         option to not #define it for applications like Emacs that do not
8660         need it.
8661
8662         * lib/stdlib.in.h (__attribute__): Do not #define.
8663         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
8664         be defined only if the _Exit module is also used.
8665         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
8666         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
8667         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
8668         platforms.
8669         * modules/_Exit (Files): Add m4/attribute.m4.
8670         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
8671         * m4/attribute.m4: New file.
8672
8673 2011-02-12  Bruno Haible  <bruno@clisp.org>
8674
8675         wcsrtombs: Work around bug on native Windows.
8676         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
8677         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
8678         instead of len.
8679         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
8680
8681 2011-02-12  Bruno Haible  <bruno@clisp.org>
8682
8683         mbsrtowcs: Work around bug on native Windows.
8684         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
8685         against mingw bug.
8686         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
8687
8688 2011-02-12  Bruno Haible  <bruno@clisp.org>
8689
8690         Avoid setlocale bugs in tests.
8691         * modules/btowc (Dependencies): Add setlocale.
8692         * modules/c-strcase (Dependencies): Likewise.
8693         * modules/mbmemcasecmp (Dependencies): Likewise.
8694         * modules/mbmemcasecoll (Dependencies): Likewise.
8695         * modules/mbrtowc (Dependencies): Likewise.
8696         * modules/mbscasecmp (Dependencies): Likewise.
8697         * modules/mbscasestr (Dependencies): Likewise.
8698         * modules/mbschr (Dependencies): Likewise.
8699         * modules/mbscspn (Dependencies): Likewise.
8700         * modules/mbsinit (Dependencies): Likewise.
8701         * modules/mbsncasecmp (Dependencies): Likewise.
8702         * modules/mbsnrtowcs (Dependencies): Likewise.
8703         * modules/mbspbrk (Dependencies): Likewise.
8704         * modules/mbspcasecmp (Dependencies): Likewise.
8705         * modules/mbsrchr (Dependencies): Likewise.
8706         * modules/mbsrtowcs (Dependencies): Likewise.
8707         * modules/mbsspn (Dependencies): Likewise.
8708         * modules/mbsstr (Dependencies): Likewise.
8709         * modules/nl_langinfo (Dependencies): Likewise.
8710         * modules/quotearg (Dependencies): Likewise.
8711         * modules/unicase/locale-language (Dependencies): Likewise.
8712         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
8713         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
8714         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
8715         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
8716         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
8717         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
8718         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
8719         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
8720         * modules/vasnprintf-posix (Dependencies): Likewise.
8721         * modules/wcrtomb (Dependencies): Likewise.
8722         * modules/wcsnrtombs (Dependencies): Likewise.
8723         * modules/wcsrtombs (Dependencies): Likewise.
8724
8725 2011-02-12  Bruno Haible  <bruno@clisp.org>
8726
8727         setlocale: Workaround native Windows bug.
8728         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
8729         succeeds but sets LC_CTYPE to "C", report a failure.
8730         * tests/test-setlocale2.sh: New file.
8731         * tests/test-setlocale2.c: New file.
8732         * modules/setlocale-tests (Files): Add the new files.
8733         (Makefile.am): Enable test-setlocale2.sh test.
8734         * doc/posix-functions/setlocale.texi: Mention workaround.
8735
8736 2011-02-11  Bruno Haible  <bruno@clisp.org>
8737
8738         Tests for module 'setlocale'.
8739         * modules/setlocale-tests: New file.
8740         * tests/test-setlocale1.sh: New file.
8741         * tests/test-setlocale1.c: New file.
8742
8743         New module 'setlocale'.
8744         * lib/locale.in.h (setlocale): New declaration.
8745         * lib/setlocale.c: New file, based on
8746         gettext/gettext-runtime/intl/setlocale.c.
8747         * m4/setlocale.m4: New file.
8748         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
8749         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
8750         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
8751         REPLACE_SETLOCALE.
8752         * modules/setlocale: New file.
8753         * tests/test-locale-c++.cc: Test the declaration of setlocale.
8754         * doc/posix-functions/setlocale.texi: Mention the new module.
8755
8756 2011-02-11  Bruno Haible  <bruno@clisp.org>
8757
8758         Prepare for locale dependent tests on mingw.
8759         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
8760         because it has the wrong locale encoding.
8761         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
8762         French_France.1252 instead of "fr".
8763         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
8764         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
8765         because it has the wrong locale encoding.
8766         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
8767         native Windows, try Turkish_Turkey.65001.
8768         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
8769         Chinese_China.54936.
8770
8771         Prepare for locale dependent tests on mingw.
8772         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
8773         differently.
8774         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
8775         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
8776         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
8777         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
8778
8779 2011-02-11  Eric Blake  <eblake@redhat.com>
8780
8781         strptime: avoid compiler warnings
8782         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
8783         compiler warnings about dead code.
8784         Reported by Daniel P. Berrange.
8785
8786 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
8787
8788         doc: update users.txt
8789         * users.txt: Add rcs.
8790
8791 2011-02-10  John W. Eaton  <jwe@gnu.org>
8792
8793         doc: update users.txt
8794         * users.txt: Add octave.
8795
8796 2011-02-10  Jim Meyering  <meyering@redhat.com>
8797
8798         doc: update users.txt
8799         * users.txt: Add iwhd.
8800
8801 2011-02-09  Bruno Haible  <bruno@clisp.org>
8802
8803         gnulib-tool: Make copyright notice adjustment more robust.
8804         * gnulib-tool (func_import): In sed_transform_main_lib_file,
8805         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
8806         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
8807         License".
8808         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
8809
8810 2011-02-06  Bruno Haible  <bruno@clisp.org>
8811
8812         New module 'towctrans'.
8813         * modules/towctrans: New file.
8814         * lib/wctype.in.h (towctrans): New declaration.
8815         * lib/towctrans.c: New file.
8816         * lib/towctrans-impl.h: New file.
8817         * m4/towctrans.m4: New file.
8818         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
8819         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
8820         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
8821         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
8822         * doc/posix-functions/towctrans.texi: Mention the new module.
8823
8824 2011-02-06  Bruno Haible  <bruno@clisp.org>
8825
8826         New module 'wctrans'.
8827         * modules/wctrans: New file.
8828         * lib/wctype.in.h (wctrans): New declaration.
8829         * lib/wctrans.c: New file.
8830         * lib/wctrans-impl.h: New file.
8831         * m4/wctrans.m4: New file.
8832         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
8833         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
8834         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
8835         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
8836         * doc/posix-functions/wctrans.texi: Mention the new module.
8837
8838 2011-02-06  Bruno Haible  <bruno@clisp.org>
8839
8840         New module 'iswctype'.
8841         * modules/iswctype: New file.
8842         * lib/wctype.in.h (iswctype): New declaration.
8843         * lib/iswctype.c: New file.
8844         * lib/iswctype-impl.h: New file.
8845         * m4/iswctype.m4: New file.
8846         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
8847         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
8848         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
8849         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
8850         * doc/posix-functions/iswctype.texi: Mention the new module and the
8851         HP-UX 11.00 problem.
8852
8853 2011-02-06  Bruno Haible  <bruno@clisp.org>
8854
8855         New module 'wctype'.
8856         * modules/wctype: Change to represent the wctype() substitute.
8857         * lib/wctype.in.h (wctype): New declaration.
8858         * lib/wctype.c: New file.
8859         * lib/wctype-impl.h: New file.
8860         * m4/wctype.m4: New file.
8861         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
8862         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
8863         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
8864         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
8865         * doc/posix-functions/wctype.texi: Mention the new module and the
8866         HP-UX 11.00 problem.
8867
8868 2011-02-06  Bruno Haible  <bruno@clisp.org>
8869
8870         wctype-h: Ensure wctype_t and wctrans_t are defined.
8871         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
8872         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
8873         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
8874         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
8875         HAVE_WCTRANS_T.
8876         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
8877
8878 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
8879
8880         flock: fix license typo
8881
8882         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
8883         omitted.
8884
8885 2011-02-08  Bruno Haible  <bruno@clisp.org>
8886
8887         Split large sed scripts, for HP-UX sed.
8888         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
8889         to avoid HP-UX limit of 99 commands, in the near future.
8890         * modules/stdlib (Makefile.am): Likewise.
8891         * modules/unistd (Makefile.am): Likewise.
8892         * modules/wchar (Makefile.am): Likewise.
8893         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
8894         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
8895         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
8896
8897 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
8898             Bruno Haible  <bruno@clisp.org>
8899
8900         stdlib: improve random_r modularization
8901         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
8902         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
8903         you also need the random_r module to get this material right.
8904         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
8905         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
8906         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
8907
8908 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
8909
8910         stdlib: don't depend on stdint
8911         * lib/stdlib.in.h: Don't include <stdint.h> merely because
8912         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
8913         be independent of whether stdint.h is needed.
8914         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
8915         here, instead of ...
8916         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
8917         struct random_data should be using the random_r module, not just
8918         the stdlib module (which wouldn't make sense: what package needs
8919         just struct random_data without also needing random_r?).
8920         * modules/stdlib (Depends-on): Remove stdint.
8921
8922         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
8923         See the thread rooted at
8924         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
8925         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
8926         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
8927         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
8928         __VMS)); previously it was always included (via fcntl--.h).
8929         (getloadavg): Do not use c_strtod.  Instead, approximate it by
8930         hand; this is good enough for load averages.  Also, do not use
8931         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
8932         flags directly if available and don't bother otherwise.  (Packages
8933         that need the extra reliability should use the modules that define
8934         these flags on older platforms that lack them.)
8935         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
8936         fcntl-safer.
8937
8938 2011-02-08  Jim Meyering  <meyering@redhat.com>
8939
8940         di-set.h, ino-map.h: add multiple-inclusion guard
8941         Technically, the guard is required only for ino-map.h, due to its
8942         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
8943         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
8944         * lib/ino-map.h: Likewise.
8945
8946 2011-02-06  Bruno Haible  <bruno@clisp.org>
8947
8948         iswblank: Ensure declaration on glibc systems.
8949         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
8950         * modules/iswblank (Dependencies): Add 'extensions'.
8951         * doc/posix-functions/iswblank.texi: Document the glibc problem.
8952
8953 2011-02-06  Bruno Haible  <bruno@clisp.org>
8954
8955         New module 'iswblank'.
8956         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
8957         * modules/iswblank: New file.
8958         * modules/wctype-h (Files): Remove lib/iswblank.c.
8959         (Makefile.am): Substitute GNULIB_ISWBLANK.
8960         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
8961         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
8962         (gl_WCTYPE_H_DEFAULTS): New macro.
8963         (gl_WCTYPE_H): Require it. Remove iswblank related code.
8964         * modules/iswblank-tests: New file.
8965         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
8966         * tests/test-wctype-h.c (main): Remove iswblank tests.
8967         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
8968         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
8969         of 'wctype-h'.
8970         * NEWS: Mention the change.
8971         * modules/mbchar (Depends-on): Add iswblank.
8972
8973 2011-02-08  Bruno Haible  <bruno@clisp.org>
8974
8975         di-set tests: Refactor.
8976         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
8977         unnecessary includes.
8978         (ASSERT): Remove macro.
8979         (main): Make C90 compliant by avoiding variable declaration after
8980         statement.
8981         * modules/di-set-tests (Files): Add tests/macros.h.
8982
8983 2011-02-08  Bruno Haible  <bruno@clisp.org>
8984
8985         ino-map tests: Refactor.
8986         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
8987         unnecessary includes.
8988         (ASSERT): Remove macro.
8989         (main): Make C90 compliant by avoiding variable declaration after
8990         statement.
8991         * modules/ino-map-tests (Files): Add tests/macros.h.
8992
8993 2011-02-08  Jim Meyering  <meyering@redhat.com>
8994
8995         di-set: add "const" to a cast
8996         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
8997         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
8998
8999 2011-02-06  Bruno Haible  <bruno@clisp.org>
9000
9001         Rename module 'wctype' to 'wctype-h'.
9002         * modules/wctype-h: Renamed from modules/wctype.
9003         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
9004         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
9005         (Files, Depends-on, Makefile.am): Update.
9006         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
9007         (Files, Makefile.am): Update.
9008         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
9009         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
9010         * doc/posix-headers/wctype.texi: Update.
9011         * doc/posix-functions/iswalnum.texi: Update.
9012         * doc/posix-functions/iswalpha.texi: Update.
9013         * doc/posix-functions/iswblank.texi: Update.
9014         * doc/posix-functions/iswcntrl.texi: Update.
9015         * doc/posix-functions/iswdigit.texi: Update.
9016         * doc/posix-functions/iswgraph.texi: Update.
9017         * doc/posix-functions/iswlower.texi: Update.
9018         * doc/posix-functions/iswprint.texi: Update.
9019         * doc/posix-functions/iswpunct.texi: Update.
9020         * doc/posix-functions/iswspace.texi: Update.
9021         * doc/posix-functions/iswupper.texi: Update.
9022         * doc/posix-functions/iswxdigit.texi: Update.
9023         * doc/posix-functions/towlower.texi: Update.
9024         * doc/posix-functions/towupper.texi: Update.
9025         * NEWS: Mention the change.
9026         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
9027         * modules/mbchar (Dependencies): Likewise.
9028         * modules/mbswidth (Dependencies): Likewise.
9029         * modules/quotearg (Dependencies): Likewise.
9030         * modules/regex (Dependencies): Likewise.
9031         * modules/wcscasecmp (Dependencies): Likewise.
9032         * modules/wcsncasecmp (Dependencies): Likewise.
9033         * modules/wcwidth (Dependencies): Likewise.
9034
9035 2011-02-06  Bruno Haible  <bruno@clisp.org>
9036
9037         New module 'wcswidth'.
9038         * modules/wcswidth: New file.
9039         * lib/wchar.in.h (wcswidth): New declaration.
9040         * lib/wcswidth.c: New file.
9041         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
9042         * m4/wcswidth.m4: New file.
9043         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
9044         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
9045         REPLACE_WCSWIDTH.
9046         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
9047         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
9048         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
9049         * doc/posix-functions/wcswidth.texi: Mention the new module.
9050
9051 2011-02-06  Bruno Haible  <bruno@clisp.org>
9052
9053         New module 'wcstok'.
9054         * modules/wcstok: New file.
9055         * lib/wchar.in.h (wcstok): New declaration.
9056         * lib/wcstok.c: New file.
9057         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
9058         * m4/wcstok.m4: New file.
9059         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
9060         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
9061         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
9062         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
9063         * doc/posix-functions/wcstok.texi: Mention the new module.
9064
9065 2011-02-06  Bruno Haible  <bruno@clisp.org>
9066
9067         New module 'wcsstr'.
9068         * modules/wcsstr: New file.
9069         * lib/wchar.in.h (wcsstr): New declaration.
9070         * lib/wcsstr.c: New file.
9071         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
9072         * m4/wcsstr.m4: New file.
9073         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
9074         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
9075         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
9076         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
9077         * doc/posix-functions/wcsstr.texi: Mention the new module.
9078
9079 2011-02-06  Bruno Haible  <bruno@clisp.org>
9080
9081         New module 'wcspbrk'.
9082         * modules/wcspbrk: New file.
9083         * lib/wchar.in.h (wcspbrk): New declaration.
9084         * lib/wcspbrk.c: New file.
9085         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
9086         * m4/wcspbrk.m4: New file.
9087         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
9088         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
9089         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
9090         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
9091         * doc/posix-functions/wcspbrk.texi: Mention the new module.
9092
9093 2011-02-06  Bruno Haible  <bruno@clisp.org>
9094
9095         New module 'wcsspn'.
9096         * modules/wcsspn: New file.
9097         * lib/wchar.in.h (wcsspn): New declaration.
9098         * lib/wcsspn.c: New file.
9099         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
9100         * m4/wcsspn.m4: New file.
9101         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
9102         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
9103         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
9104         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
9105         * doc/posix-functions/wcsspn.texi: Mention the new module.
9106
9107 2011-02-06  Bruno Haible  <bruno@clisp.org>
9108
9109         New module 'wcscspn'.
9110         * modules/wcscspn: New file.
9111         * lib/wchar.in.h (wcscspn): New declaration.
9112         * lib/wcscspn.c: New file.
9113         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
9114         * m4/wcscspn.m4: New file.
9115         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
9116         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
9117         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
9118         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
9119         * doc/posix-functions/wcscspn.texi: Mention the new module.
9120
9121 2011-02-06  Bruno Haible  <bruno@clisp.org>
9122
9123         New module 'wcsrchr'.
9124         * modules/wcsrchr: New file.
9125         * lib/wchar.in.h (wcsrchr): New declaration.
9126         * lib/wcsrchr.c: New file.
9127         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
9128         * m4/wcsrchr.m4: New file.
9129         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
9130         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
9131         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
9132         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
9133         * doc/posix-functions/wcsrchr.texi: Mention the new module.
9134
9135 2011-02-06  Bruno Haible  <bruno@clisp.org>
9136
9137         New module 'wcschr'.
9138         * modules/wcschr: New file.
9139         * lib/wchar.in.h (wcschr): New declaration.
9140         * lib/wcschr.c: New file.
9141         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
9142         * m4/wcschr.m4: New file.
9143         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
9144         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
9145         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
9146         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
9147         * doc/posix-functions/wcschr.texi: Mention the new module.
9148
9149 2011-02-06  Bruno Haible  <bruno@clisp.org>
9150
9151         New module 'wcsdup'.
9152         * modules/wcsdup: New file.
9153         * lib/wchar.in.h (wcsdup): New declaration.
9154         * lib/wcsdup.c: New file.
9155         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
9156         * m4/wcsdup.m4: New file.
9157         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
9158         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
9159         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
9160         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
9161         * doc/posix-functions/wcsdup.texi: Mention the new module.
9162
9163 2011-02-06  Bruno Haible  <bruno@clisp.org>
9164
9165         New module 'wcsxfrm'.
9166         * modules/wcsxfrm: New file.
9167         * lib/wchar.in.h (wcsxfrm): New declaration.
9168         * lib/wcsxfrm.c: New file.
9169         * lib/wcsxfrm-impl.h: New file.
9170         * m4/wcsxfrm.m4: New file.
9171         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
9172         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
9173         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
9174         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
9175         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
9176
9177 2011-02-06  Bruno Haible  <bruno@clisp.org>
9178
9179         New module 'wcscoll'.
9180         * modules/wcscoll: New file.
9181         * lib/wchar.in.h (wcscoll): New declaration.
9182         * lib/wcscoll.c: New file.
9183         * lib/wcscoll-impl.h: New file.
9184         * m4/wcscoll.m4: New file.
9185         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
9186         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
9187         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
9188         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
9189         * doc/posix-functions/wcscoll.texi: Mention the new module.
9190
9191 2011-02-06  Bruno Haible  <bruno@clisp.org>
9192
9193         New module 'wcsncasecmp'.
9194         * modules/wcsncasecmp: New file.
9195         * lib/wchar.in.h (wcsncasecmp): New declaration.
9196         * lib/wcsncasecmp.c: New file.
9197         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
9198         * m4/wcsncasecmp.m4: New file.
9199         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
9200         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
9201         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
9202         HAVE_WCSNCASECMP.
9203         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
9204         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
9205
9206 2011-02-06  Bruno Haible  <bruno@clisp.org>
9207
9208         New module 'wcscasecmp'.
9209         * modules/wcscasecmp: New file.
9210         * lib/wchar.in.h (wcscasecmp): New declaration.
9211         * lib/wcscasecmp.c: New file.
9212         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
9213         * m4/wcscasecmp.m4: New file.
9214         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
9215         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
9216         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
9217         HAVE_WCSCASECMP.
9218         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
9219         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
9220
9221 2011-02-05  Bruno Haible  <bruno@clisp.org>
9222
9223         New module 'wcsncmp'.
9224         * modules/wcsncmp: New file.
9225         * lib/wchar.in.h (wcsncmp): New declaration.
9226         * lib/wcsncmp.c: New file.
9227         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
9228         * m4/wcsncmp.m4: New file.
9229         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
9230         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
9231         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
9232         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
9233         * doc/posix-functions/wcsncmp.texi: Mention the new module.
9234
9235 2011-02-05  Bruno Haible  <bruno@clisp.org>
9236
9237         New module 'wcscmp'.
9238         * modules/wcscmp: New file.
9239         * lib/wchar.in.h (wcscmp): New declaration.
9240         * lib/wcscmp.c: New file.
9241         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
9242         * m4/wcscmp.m4: New file.
9243         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
9244         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
9245         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
9246         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
9247         * doc/posix-functions/wcscmp.texi: Mention the new module.
9248
9249 2011-02-05  Bruno Haible  <bruno@clisp.org>
9250
9251         New module 'wcsncat'.
9252         * modules/wcsncat: New file.
9253         * lib/wchar.in.h (wcsncat): New declaration.
9254         * lib/wcsncat.c: New file.
9255         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
9256         * m4/wcsncat.m4: New file.
9257         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
9258         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
9259         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
9260         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
9261         * doc/posix-functions/wcsncat.texi: Mention the new module.
9262
9263 2011-02-05  Bruno Haible  <bruno@clisp.org>
9264
9265         New module 'wcscat'.
9266         * modules/wcscat: New file.
9267         * lib/wchar.in.h (wcscat): New declaration.
9268         * lib/wcscat.c: New file.
9269         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
9270         * m4/wcscat.m4: New file.
9271         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
9272         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
9273         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
9274         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
9275         * doc/posix-functions/wcscat.texi: Mention the new module.
9276
9277 2011-02-05  Bruno Haible  <bruno@clisp.org>
9278
9279         New module 'wcpncpy'.
9280         * modules/wcpncpy: New file.
9281         * lib/wchar.in.h (wcpncpy): New declaration.
9282         * lib/wcpncpy.c: New file.
9283         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
9284         * m4/wcpncpy.m4: New file.
9285         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
9286         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
9287         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
9288         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
9289         * doc/posix-functions/wcpncpy.texi: Mention the new module.
9290
9291 2011-02-05  Bruno Haible  <bruno@clisp.org>
9292
9293         New module 'wcsncpy'.
9294         * modules/wcsncpy: New file.
9295         * lib/wchar.in.h (wcsncpy): New declaration.
9296         * lib/wcsncpy.c: New file.
9297         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
9298         * m4/wcsncpy.m4: New file.
9299         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
9300         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
9301         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
9302         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
9303         * doc/posix-functions/wcsncpy.texi: Mention the new module.
9304
9305 2011-02-05  Bruno Haible  <bruno@clisp.org>
9306
9307         New module 'wcpcpy'.
9308         * modules/wcpcpy: New file.
9309         * lib/wchar.in.h (wcpcpy): New declaration.
9310         * lib/wcpcpy.c: New file.
9311         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
9312         * m4/wcpcpy.m4: New file.
9313         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
9314         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
9315         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
9316         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
9317         * doc/posix-functions/wcpcpy.texi: Mention the new module.
9318
9319 2011-02-05  Bruno Haible  <bruno@clisp.org>
9320
9321         New module 'wcscpy'.
9322         * modules/wcscpy: New file.
9323         * lib/wchar.in.h (wcscpy): New declaration.
9324         * lib/wcscpy.c: New file.
9325         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
9326         * m4/wcscpy.m4: New file.
9327         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
9328         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
9329         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
9330         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
9331         * doc/posix-functions/wcscpy.texi: Mention the new module.
9332
9333 2011-02-05  Bruno Haible  <bruno@clisp.org>
9334
9335         New module 'wcsnlen'.
9336         * modules/wcsnlen: New file.
9337         * lib/wchar.in.h (wcsnlen): New declaration.
9338         * lib/wcsnlen.c: New file.
9339         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
9340         * m4/wcsnlen.m4: New file.
9341         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
9342         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
9343         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
9344         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
9345         * doc/posix-functions/wcsnlen.texi: Mention the new module.
9346
9347 2011-02-05  Bruno Haible  <bruno@clisp.org>
9348
9349         New module 'wcslen'.
9350         * modules/wcslen: New file.
9351         * lib/wchar.in.h (wcslen): New declaration.
9352         * lib/wcslen.c: New file.
9353         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
9354         * m4/wcslen.m4: New file.
9355         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
9356         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
9357         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
9358         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
9359         * doc/posix-functions/wcslen.texi: Mention the new module.
9360
9361 2011-02-05  Bruno Haible  <bruno@clisp.org>
9362
9363         New module 'wmemset'.
9364         * modules/wmemset: New file.
9365         * lib/wchar.in.h (wmemset): New declaration.
9366         * lib/wmemset.c: New file.
9367         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
9368         * m4/wmemset.m4: New file.
9369         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
9370         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
9371         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
9372         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
9373         * doc/posix-functions/wmemset.texi: Mention the new module.
9374
9375 2011-02-05  Bruno Haible  <bruno@clisp.org>
9376
9377         New module 'wmemmove'.
9378         * modules/wmemmove: New file.
9379         * lib/wchar.in.h (wmemmove): New declaration.
9380         * lib/wmemmove.c: New file.
9381         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
9382         * m4/wmemmove.m4: New file.
9383         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
9384         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
9385         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
9386         HAVE_WMEMMOVE.
9387         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
9388         * doc/posix-functions/wmemmove.texi: Mention the new module.
9389
9390 2011-02-05  Bruno Haible  <bruno@clisp.org>
9391
9392         New module 'wmemcpy'.
9393         * modules/wmemcpy: New file.
9394         * lib/wchar.in.h (wmemcpy): New declaration.
9395         * lib/wmemcpy.c: New file.
9396         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
9397         * m4/wmemcpy.m4: New file.
9398         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
9399         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
9400         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
9401         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
9402         * doc/posix-functions/wmemcpy.texi: Mention the new module.
9403
9404 2011-02-05  Bruno Haible  <bruno@clisp.org>
9405
9406         New module 'wmemcmp'.
9407         * modules/wmemcmp: New file.
9408         * lib/wchar.in.h (wmemcmp): New declaration.
9409         * lib/wmemcmp.c: New file.
9410         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
9411         * m4/wmemcmp.m4: New file.
9412         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
9413         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
9414         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
9415         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
9416         * doc/posix-functions/wmemcmp.texi: Mention the new module.
9417
9418 2011-02-07  Jim Meyering  <meyering@redhat.com>
9419
9420         di-set, ino-map: new modules, from coreutils
9421         * lib/di-set.c: New file.
9422         * lib/di-set.h: Likewise.
9423         * lib/ino-map.c: Likewise.
9424         * lib/ino-map.h: Likewise.
9425         * modules/di-set: Likewise.
9426         * modules/di-set-tests: Likewise.
9427         * modules/ino-map: Likewise.
9428         * modules/ino-map-tests: Likewise.
9429         * tests/test-di-set.c: Likewise.
9430         * tests/test-ino-map.c: Likewise.
9431
9432 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
9433
9434         getloadavg: merge minor changes from Emacs
9435
9436         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
9437         (getloadavg): Use memset, not bzero.
9438
9439         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
9440         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
9441         clash (bug#86).
9442
9443 2010-11-14  Bruno Haible  <bruno@clisp.org>
9444
9445         Allow multiple gnulib generated replacements to coexist.
9446         * lib/getopt.in.h (struct option): Avoid identical redefinition.
9447         * lib/inttypes.in.h (imaxdiv_t): Likewise.
9448         * lib/langinfo.in.h (nl_item): Likewise.
9449         * lib/math.in.h (_NaN, NAN): Likewise.
9450         * lib/netdb.in.h (struct addrinfo): Likewise.
9451         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
9452         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
9453         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
9454         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
9455         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
9456         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
9457         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
9458         pthread_mutexattr_init, pthread_mutexattr_settype,
9459         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
9460         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
9461         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
9462         pthread_spin_trylock, pthread_spin_unlock): Likewise.
9463         * lib/sched.in.h (struct sched_param): Likewise.
9464         * lib/se-selinux.in.h (security_class_t, security_context_t,
9465         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
9466         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
9467         lsetfilecon, fsetfilecon, security_check_context,
9468         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
9469         Likewise.
9470         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
9471         Likewise.
9472         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
9473         _gl_function_taking_int_returning_void_t, union sigval,
9474         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
9475         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
9476         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
9477         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
9478         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
9479         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
9480         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
9481         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
9482         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
9483         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
9484         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
9485         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
9486         socklen_t, rpl_fd_isset): Likewise.
9487         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
9488         * lib/sys_time.in.h (struct timeval): Likewise.
9489         * lib/sys_times.in.h (struct tms): Likewise.
9490         * lib/sys_utsname.in.h (struct utsname):
9491         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
9492         * lib/unistd.in.h (getpagesize): Likewise.
9493         * lib/wchar.in.h (mbstate_t): Likewise.
9494         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
9495         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
9496         towlower, towupper): Likewise.
9497         Reported by Sam Steingold <sds@gnu.org>.
9498
9499 2011-02-05  Eric Blake  <eblake@redhat.com>
9500
9501         unsetenv: work around Haiku issues
9502         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
9503         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
9504
9505 2010-12-30  Bruce Korb  <bkorb@gnu.org>
9506
9507         libposix: avoid calling error() within libposix
9508         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
9509         is defined.
9510
9511 2011-02-05  Eric Blake  <eblake@redhat.com>
9512
9513         strerror_r-posix: port to cygwin
9514         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
9515         implementation.
9516         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
9517         * tests/test-strerror_r.c (main): Fix test.
9518         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
9519         issue.
9520
9521 2011-02-05  Bruno Haible  <bruno@clisp.org>
9522
9523         New module 'wmemchr'.
9524         * modules/wmemchr: New file.
9525         * lib/wchar.in.h (wmemchr): New declaration.
9526         * lib/wmemchr.c: New file.
9527         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
9528         * m4/wmemchr.m4: New file.
9529         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
9530         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
9531         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
9532         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
9533         * doc/posix-functions/wmemchr.texi: Mention the new module.
9534
9535 2011-02-04  Eric Blake  <eblake@redhat.com>
9536
9537         fdopendir: detect FreeBSD bug
9538         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
9539         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
9540
9541 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
9542
9543         stdbool: do not define HAVE_STDBOOL_H
9544         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
9545         AC_HEADER_STDBOOL.  All uses changed.  Do not define
9546         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
9547         imported from the latest Autoconf git.  It was motivated by Emacs,
9548         which uses gnulib but does not need HAVE_STDBOOL_H.
9549
9550 2011-02-04  Bruno Haible  <bruno@clisp.org>
9551
9552         wcsnrtombs: Prepare for new module wwcsnrtombs.
9553         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
9554         * lib/wcsnrtombs.c: Include it.
9555         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
9556
9557         wcsrtombs: Prepare for new module wwcsrtombs.
9558         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
9559         * lib/wcsrtombs.c: Include it.
9560         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
9561
9562         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
9563         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
9564         * lib/mbsnrtowcs.c: Include it.
9565         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
9566
9567         mbsrtowcs: Prepare for new module mbsrtowwcs.
9568         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
9569         * lib/mbsrtowcs.c: Include it.
9570         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
9571
9572 2011-02-04  Bruno Haible  <bruno@clisp.org>
9573
9574         vasnprintf: Reduce use of malloc for small format strings.
9575         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
9576         (arguments): Add room for the first 7 arguments.
9577         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
9578         (char_directives, u8_directives, u16_directives, u32_directives): Add
9579         room for the first 7 directives.
9580         * lib/printf-parse.c: Include <string.h>.
9581         (PRINTF_PARSE): Change memory handling code so that it uses the first
9582         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
9583         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
9584         Reported by Pádraig Brady <P@draigbrady.com>.
9585
9586 2011-01-31  Eric Blake  <eblake@redhat.com>
9587
9588         dup2: work around Haiku bug
9589         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
9590         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
9591         * doc/posix-functions/dup2.texi (dup2): Document the bug.
9592         * tests/test-dup2.c (main): Enhance test.
9593
9594 2011-01-31  Simon Josefsson  <simon@josefsson.org>
9595
9596         doc: off_t is not available in eglibc 2.11.2 stdio.h.
9597         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
9598         declared by eglibc 2.11.2.
9599         * lib/stdio.in.h: Likewise.
9600
9601 2011-01-31  Eric Blake  <eblake@redhat.com>
9602
9603         ignore-value: add missing test dependency
9604         * tests/test-ignore-value.c: Revert previous change; stdio.h
9605         provides off_t.
9606         * modules/ignore-value-tests (Depends-on): Add missing dependency.
9607
9608 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
9609
9610         mktime: clarify long_int width checking
9611         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
9612         the top level, to make it clearer that the assumption about
9613         long_int width is being checked.  See
9614         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
9615
9616 2011-01-30  Simon Josefsson  <simon@josefsson.org>
9617
9618         ignore-value: Fix self-test.
9619         * tests/test-ignore-value.c: Include sys/types.h for off_t.
9620
9621 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
9622
9623         TYPE_MAXIMUM: avoid theoretically undefined behavior
9624         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
9625         negative number, which the C Standard says has undefined behavior.
9626         In practice this is not a problem, but might as well do it by the book.
9627         Reported by Rich Felker and Eric Blake; see
9628         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
9629         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
9630         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
9631         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9632         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
9633         * m4/stdint.m4 (gl_STDINT_H): Likewise.
9634         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
9635
9636         mktime: #undef mktime before #defining it
9637         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
9638
9639         mktime: systematically normalize tm_isdst comparisons
9640         * lib/mktime.c (isdst_differ): New function.
9641         (__mktime_internal): Use it systematically for all isdst comparisons.
9642         This completes the fix for libc BZ #6723, and removes the need for
9643         normalizing tm_isdst.  See
9644         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
9645         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
9646
9647         mktime: fix some integer overflow issues and sidestep the rest
9648
9649         This was prompted by a bug report by Benjamin Lindner for MinGW
9650         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
9651         His bug is due to signed integer overflow (0 - INT_MIN), and I
9652         I scanned through mktime.c looking for other integer overflow
9653         problems, fixing all the bugs I found.
9654
9655         Although the C Standard says the resulting code is still not safe
9656         in the presence of integer overflow, in practice it should be good
9657         enough for all real-world two's-complement implementations, except
9658         for debugging environments that deliberately trap on integer
9659         overflow (e.g., gcc -ftrapv).
9660
9661         * lib/mktime.c (WRAPV): New macro.
9662         (SHR): Also check that long_int and time_t shift right in the
9663         usual way, before using the fast-but-unportable method.
9664         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
9665         used.  The code already assumed two's complement, so there's
9666         no need to test for alternatives.  All uses removed.
9667         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
9668         the C standard.  Problem reported by Rich Felker in
9669         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
9670         (twos_complement_arithmetic): Also check long_int and time_t.
9671         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
9672         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
9673         (__mktime_internal): Avoid integer overflow with unary subtraction
9674         in two instances where -1 - X is an adequate replacement for -X,
9675         since the calculations are approximate.
9676
9677 2011-01-29  Eric Blake  <eblake@redhat.com>
9678
9679         mktime: avoid infinite loop
9680         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
9681         type; behavior is still undefined but portable to all known targets.
9682         Reported by Rich Felker.
9683
9684 2011-01-29  Simon Josefsson  <simon@josefsson.org>
9685
9686         rename, unlink, same-inode: Relicense.
9687         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
9688         * modules/unlink (License): Likewise.
9689         * modules/same-inode (License): Likewise.
9690
9691 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
9692
9693         mktime: avoid problems on NetBSD 5 / i386
9694         * lib/mktime.c (long_int): New type.  This works around a problem
9695         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
9696         but time_t is 64 bits, and where I expect the existing code is
9697         wrong in some cases.
9698         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
9699         (ydhms_diff): Bring back the compile-time check for wide-enough
9700         year and yday.
9701
9702         mktime: fix misspelling in comment
9703         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
9704         This merges all recent glibc changes of importance.
9705
9706 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9707
9708         move-if-change: cope with concurrent mv of identical file.
9709         * build-aux/move-if-change (CMPPROG): Accept environment
9710         variable as an override for `cmp'.
9711         (usage): Document CMPPROG.
9712         Adjust comparison to drop stdout.  Cope with failure of mv if
9713         the target file exists and is identical to the source, for
9714         parallel builds.
9715         Report from H.J. Lu against binutils in PR binutils/12283.
9716
9717 2011-01-28  Bruce Korb  <bkorb@gnu.org>
9718
9719         * users.txt: Mention sharutils.
9720
9721 2011-01-28  Simon Josefsson  <simon@josefsson.org>
9722
9723         * users.txt: Mention OATH Toolkit.
9724
9725 2011-01-27  Bruno Haible  <bruno@clisp.org>
9726
9727         Prepare for supporting FreeBSD 10.
9728         * build-aux/config.libpath: Remove handling of freebsd1*.
9729
9730 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
9731
9732         Prepare for supporting FreeBSD 10.
9733         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
9734         match FreeBSD 10.0.
9735
9736 2011-01-27  Bruno Haible  <bruno@clisp.org>
9737
9738         vma-iter, get-rusage-as: Add OpenBSD support.
9739         * modules/vma-iter (configure.ac): Test for mquery.
9740         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
9741         * lib/vma-iter.c: Include <sys/mman.h>.
9742         (vma_iterate): Add an implementation based on mquery().
9743         * lib/resource-ext.h (get_rusage_as): Update comments.
9744         * lib/get-rusage-as.c: Likewise.
9745         * lib/get-rusage-data.c: Likewise.
9746
9747 2011-01-26  Karl Berry  <karl@gnu.org>
9748
9749         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
9750         variables to make it easier to override the makeinfo program used.
9751
9752 2011-01-26  Eric Blake  <eblake@redhat.com>
9753
9754         fcntl: work around Haiku F_DUPFD bugs
9755         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
9756         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
9757         cloexec bit on duplication.
9758         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
9759
9760 2011-01-26  Bruno Haible  <bruno@clisp.org>
9761
9762         Enable memory leak tests on AIX.
9763         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
9764         * tests/test-fprintf-posix3.c (main): Likewise.
9765
9766 2011-01-26  Bruno Haible  <bruno@clisp.org>
9767
9768         Tests for module 'get-rusage-data'.
9769         * modules/get-rusage-data-tests: New file.
9770         * tests/test-get-rusage-data.c: New file.
9771
9772         New module 'get-rusage-data'.
9773         * lib/resource-ext.h (get_rusage_data): New declaration.
9774         * lib/get-rusage-data.c: New file.
9775         * modules/get-rusage-data: New file.
9776
9777 2011-01-25  Bruno Haible  <bruno@clisp.org>
9778
9779         get-rusage-as: Allow for easier testing.
9780         * lib/resource-ext.h (get_rusage_as): Add comment.
9781         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
9782         (main): New function for interactive testing.
9783
9784 2011-01-25  Bruno Haible  <bruno@clisp.org>
9785
9786         vma-iter: Treat Haiku like BeOS.
9787         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
9788         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
9789
9790 2011-01-25  Eric Blake  <eblake@redhat.com>
9791
9792         c-stack: fix regression on cygwin when libsigsegv is present
9793         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
9794
9795 2011-01-24  Bruno Haible  <bruno@clisp.org>
9796
9797         vma-iter: Avoid empty intervals.
9798         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
9799         on an empty interval.
9800
9801 2011-01-24  Jim Meyering  <meyering@redhat.com>
9802
9803         u64: remove unnecessary #include
9804         * lib/u64.h: Don't include <stddef.h>.  It was not used.
9805
9806 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
9807
9808         Allow the user to avoid the HAVE_RAW_DECL_* macros.
9809         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
9810
9811 2011-01-23  Bruno Haible  <bruno@clisp.org>
9812
9813         New module 'vma-iter'.
9814         * lib/vma-iter.h: New file.
9815         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
9816         * modules/vma-iter: New file.
9817         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
9818         for get_rusage_as_via_iterator.
9819         (vma_iterate_callback): New function.
9820         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
9821         * modules/get-rusage-as (Depends-on): Add vma-iter.
9822
9823 2011-01-23  Bruno Haible  <bruno@clisp.org>
9824
9825         uninorm: Tweak includes.
9826         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
9827         Reported by Jim Meyering.
9828
9829 2011-01-23  Bruno Haible  <bruno@clisp.org>
9830
9831         get-rusage-as: Improve on NetBSD.
9832         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
9833         /proc, like on FreeBSD.
9834
9835 2011-01-23  Jim Meyering  <meyering@redhat.com>
9836
9837         xreadlink.h: remove unnecessary #include
9838         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
9839
9840         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
9841         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
9842
9843 2011-01-23  Bruno Haible  <bruno@clisp.org>
9844
9845         get-rusage-as: Fix bug.
9846         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
9847         original limit when aborting the first loop.
9848
9849 2011-01-23  Bruno Haible  <bruno@clisp.org>
9850
9851         wctype: Ensure valid C syntax.
9852         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
9853         unconditionally, instead of gl_NEXT_HEADERS conditionally.
9854
9855 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
9856
9857         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
9858         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
9859         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
9860         as they are needed only for configure's test case.
9861         This removes two unnecessary symbols from config.h.
9862
9863         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
9864         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
9865         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
9866         AC_CHECK_HEADERS_ONCE on a header that we also invoke
9867         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
9868         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
9869         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
9870         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
9871         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
9872         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9873         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
9874         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9875         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
9876         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
9877         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
9878         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9879         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
9880         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
9881
9882 2011-01-21  Eric Blake  <eblake@redhat.com>
9883
9884         maintainer-makefile: work with older git for submodule check
9885         * top/maint.mk (public-submodule-commit): Rewrite to avoid
9886         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
9887         Reported by Matthias Bolte.
9888
9889         bootstrap: minor portability fixes
9890         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
9891         (usage): Omit leading capital and trailing . on help phrases, per
9892         GNU Coding Standards.
9893         (check_versions, top level): Prefix messages with script name.
9894
9895 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
9896
9897         bootstrap: support --no-git option
9898         * build-aux/bootstrap: Add --no-git option, to be used when
9899         --gnulib-srcdir points to the exact desired checkout.
9900
9901 2011-01-21  Eric Blake  <eblake@redhat.com>
9902
9903         strerror_r-posix: work with glibc 2.13
9904         * lib/strerror_r.c (strerror_r): Fix return type.
9905
9906 2011-01-21  Pádraig Brady  <P@draigBrady.com>
9907             Bruno Haible  <bruno@clisp.org>
9908
9909         uN_strstr: New unit tests.
9910         * modules/unistr/u8-strstr-tests: New file.
9911         * modules/unistr/u16-strstr-tests: New file.
9912         * modules/unistr/u32-strstr-tests: New file.
9913         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
9914         * tests/unistr/test-u8-strstr.c: New file.
9915         * tests/unistr/test-u16-strstr.c: New file.
9916         * tests/unistr/test-u32-strstr.c: New file.
9917
9918 2011-01-21  Pádraig Brady  <P@draigBrady.com>
9919             Bruno Haible  <bruno@clisp.org>
9920
9921         Make uN_strstr functions O(n) worst-case.
9922         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
9923         16-bit and 32-bit unit cases, use the unibyte algorithm from
9924         lib/mbsstr.c.
9925         * lib/unistr/u8-strstr.c: Include <string.h>.
9926         (UNIT_IS_UINT8_T): New macro.
9927         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
9928         (U_STRLEN, U_STRNLEN): New macros.
9929         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
9930         (U_STRLEN, U_STRNLEN): New macros.
9931         * modules/unistr/u8-strstr (Depends-on): Add strstr.
9932         (configure.ac): Update required libunistring version.
9933         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
9934         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
9935         malloca.
9936         (configure.ac): Update required libunistring version.
9937         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
9938         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
9939         malloca.
9940         (configure.ac): Update required libunistring version.
9941
9942 2011-01-21  Pádraig Brady  <P@draigBrady.com>
9943             Bruno Haible  <bruno@clisp.org>
9944
9945         Prepare for faster uN_strstr functions.
9946         * lib/str-kmp.h: Support definable UNITs.
9947         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
9948         needle_len argument.
9949         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
9950         * lib/mbscasestr.c (mbscasestr): Likewise.
9951
9952 2011-01-21  Pádraig Brady <P@draigBrady.com>
9953
9954         malloca-tests: make faster by unsetting MALLOC_PERTURB_
9955         * tests/test-malloca.c (main): Unset the environment variable
9956         to greatly speed up the test.
9957         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
9958         * modules/malloca-tests: Depend on unsetenv.
9959
9960 2011-01-21  Pádraig Brady <P@draigBrady.com>
9961
9962         ignore-value: remove stdint dependency
9963         * lib/ignore-value.h: Remove <stdint.h>
9964         * modules/ignore-value: Remove stdint dependency.
9965
9966 2011-01-21  Jim Meyering  <meyering@redhat.com>
9967
9968         maint.mk: adjust variable name to be consistent with other gl_ vars
9969         * top/maint.mk (gl_public_submodule_commit): Rename the variable
9970         to be lower case.
9971
9972 2011-01-20  Jim Meyering  <meyering@redhat.com>
9973
9974         maint.mk: make "check" depend on public-submodule-commit by default
9975         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
9976
9977 2011-01-20  Bruno Haible  <bruno@clisp.org>
9978
9979         mbfile, mbiter: Complete change from 2008-12-21.
9980         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
9981         * m4/mbiter.m4 (gl_MBITER): Likewise.
9982
9983 2011-01-20  Jim Meyering  <meyering@redhat.com>
9984
9985         init.sh: insert space between each function name and "()"
9986         * tests/init.sh: Make it a little easier to see that a function's
9987         name is "warn_", and not "warn" when looking at the first part of
9988         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
9989
9990 2011-01-20  Jim Meyering  <meyering@redhat.com>
9991
9992         mountlist: clean up code formatting
9993         * lib/mountlist.c (read_file_system_list): Split a long line,
9994         correct bracing style, use NULL in place of "(struct statfs *)0",
9995         don't parenthesize return value, add spaces around "=" and after
9996         ";-in-for-stmt".
9997
9998 2011-01-14  Markus Duft <mduft@gentoo.org>
9999
10000         mountlist: add support for Interix
10001         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
10002         Apply statvfs to all entries of /dev/fs.
10003         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
10004         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
10005
10006 2011-01-20  Jim Meyering  <meyering@redhat.com>
10007
10008         maint.mk: improve the public-submodule-commit rule
10009         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
10010         to suppress printing of its commands... unless V=1.
10011         Add git submodule's --quiet option to suppress printing of e.g.,
10012         "Entering gnulib" output.
10013         "cd" into $(srcdir) before running git submodule.
10014
10015 2011-01-20  Bruno Haible  <bruno@clisp.org>
10016
10017         include_next: Fix bug introduced on 2011-01-18.
10018         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
10019         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
10020         ac_cv_header_... variable if the second argument is not 'check'.
10021         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
10022         gl_NEXT_HEADERS_INTERNAL.
10023
10024 2011-01-20  Bruno Haible  <bruno@clisp.org>
10025
10026         Allow the user to avoid the GNULIB_TEST_* macros.
10027         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
10028         Suggested by Paul Eggert.
10029
10030 2011-01-14  Jim Meyering  <meyering@redhat.com>
10031
10032         bootstrap: avoid failure when there is no .gitmodules file
10033         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
10034         has been assigned to, even when its value is the empty string.
10035         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
10036         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
10037         Reported by John W. Eaton <jwe@gnu.org>.
10038
10039 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
10040
10041         assume <ctype.h>, ..., <time.h> exist
10042         For years gnulib has been assuming the existence of the headers
10043         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
10044         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
10045         them, since they don't appear to be needed.
10046         * README (Portability guidelines): Document this.
10047         * lib/flock.c: Assume <fcntl.h> exists.
10048         * lib/regex_internal.h: Assume <locale.h> exists.
10049         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
10050         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
10051         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
10052         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
10053         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
10054         * m4/regex.m4 (gl_REGEX): Likewise.
10055         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
10056         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
10057         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
10058         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
10059         * tests/test-argp.c: Likewise.
10060         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
10061
10062         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
10063         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
10064         AA_APPLE_UNIVERSAL_BUILD.  See
10065         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
10066         * NEWS: Document this.
10067
10068 2011-01-19  Eric Blake  <eblake@redhat.com>
10069
10070         c-stack: assume stack overflow if SA_SIGINFO unsupported
10071         * lib/c-stack.c (SIGACTION_WORKS): Rename...
10072         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
10073         sigaction will work.
10074         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
10075         behavior match Linux.
10076         * tests/test-c-stack.c (main): Prefer NULL for pointers.
10077
10078         stdbool-tests: accomodate Haiku
10079         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
10080
10081         binary-io: fix O_TEXT on Haiku
10082         * modules/binary-io (Depends-on): Add fcntl-h.
10083         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
10084         than blindly undefining O_TEXT.
10085         Reported by Scott McCreary.
10086
10087 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
10088
10089         include_next: do not check for standard headers like stddef.h
10090
10091         I found this problem when modifying Emacs to use gnulib.
10092         I noticed that it added HAVE_STDDEF_H to config.h, even though
10093         gnulib always assumes <stddef.h> exists as per README and this
10094         symbol is unnecessary.
10095         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
10096         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
10097         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
10098         faster for headers like stddef.h that are known to exist.
10099         (gl_CHECK_NEXT_HEADERS): Use it.
10100         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
10101         rather than gl_CHECK_NEXT_HEADERS.
10102         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
10103         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
10104
10105 2011-01-18  Eric Blake  <eblake@redhat.com>
10106
10107         ansi-c++-opt: skip C++ dependency style if C++ is unused
10108         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
10109         tests when we know C++ compilation is not desired.
10110         Reported by Scott McCreary.
10111
10112 2011-01-18  Bruno Haible  <bruno@clisp.org>
10113
10114         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
10115         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
10116         (main): Perform test also when getrlimit and setrlimit don't exist or
10117         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
10118         limiting the address space size using setrlimit, compare the address
10119         space size before and after the the test.
10120         * tests/test-dprintf-posix2.c: Likewise.
10121         * tests/test-fprintf-posix3.sh: Update skip messages.
10122         * tests/test-dprintf-posix2.sh: Likewise.
10123         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
10124         * modules/dprintf-posix-tests (Depends-on): Likewise.
10125         Reported by Bruce Korb <bkorb@gnu.org> and
10126         Gary V. Vaughan <gary@gnu.org>.
10127
10128 2011-01-18  Bruno Haible  <bruno@clisp.org>
10129
10130         get-rusage-as: Improvement for Cygwin.
10131         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
10132         areas that are merely reserved.
10133
10134 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
10135
10136         strftime: remove dependencies on multibyte modules
10137
10138         strftime depended on mbrlen, mbsinit, and wchar, but these modules
10139         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
10140         only if __osf__ is defined, and I suspect OSF doesn't need these
10141         other modules.  If my guess is wrong, we'll need to come up with a
10142         variant of strftime that doesn't need the multibyte modules.
10143
10144         I discovered this problem when attempting modify Emacs to use the
10145         strftime module.  With the previous gnulib, this caused Emacs to
10146         need 31 new files, ranging from lib/config.charset to
10147         m4/wint_t.m4.  This was overkill and I expect would be offputting
10148         to the Emacs maintainers.  After this change, only 6 new files are
10149         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
10150         stdbool.m4, and tm_gmtoff.m4.
10151
10152         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
10153         Suggested by Bruno Haible in
10154         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
10155         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
10156         and do not check for wchar.h.
10157         * modules/strftime (Files): Remove m4/mbstate_t.m4.
10158         (Depends-on): Remove mbrlen, mbsinit, wchar.
10159
10160 2011-01-18  Bruno Haible  <bruno@clisp.org>
10161
10162         Tests for module 'get-rusage-as'.
10163         * modules/get-rusage-as-tests: New file.
10164         * tests/test-get-rusage-as.c: New file.
10165
10166         New module 'get-rusage-as'.
10167         * modules/get-rusage-as: New file.
10168         * lib/resource-ext.h: New file.
10169         * lib/get-rusage-as.c: New file.
10170
10171 2011-01-17  Eric Blake  <eblake@redhat.com>
10172
10173         sigaction: relax license from LGPLv3+ to LGPLv2+
10174         * modules/sigaction (License): Relax to LGPLv2+.
10175
10176 2011-01-14  Bruno Haible  <bruno@clisp.org>
10177
10178         filemode: Make function declarations usable in C++ mode.
10179         * lib/filemode.h: Enclose function declarations in extern "C" block.
10180         Reported by John W. Eaton <jwe@gnu.org>.
10181
10182 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
10183
10184         save-cwd: no longer include "xgetcwd.h"
10185         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
10186         This avoids a compilation failure in projects that use save-cwd
10187         without also using the xgetcwd module.
10188
10189 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
10190
10191         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
10192         This is so that a program like Emacs, which needs only dtoastr,
10193         does not have to bother with distributing and compiling ftoastr
10194         and ldtoastr.
10195         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
10196         * modules/dtoastr, modules/ldtoastr: New files.
10197         * modules/ftoastr: Now works just for 'float'.
10198         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
10199         (Makefile.am): Remove ftoastr.h (not needed and no effect),
10200         dtoastr.c, ldtoastr.c.
10201
10202 2011-01-11  Jim Meyering  <meyering@redhat.com>
10203
10204         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
10205         There is no need to work around the lack of the fchdir function,
10206         since gnulib can now provide a replacement when required.
10207         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
10208         * modules/save-cwd (Depends-on): Add fchdir.
10209
10210 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
10211
10212         openat, save-cwd: avoid xmalloc
10213
10214         This removes a direct (but undocumented) dependency of openat on
10215         xalloc, along with an indirect dependency via save-cwd.  It also
10216         removes a dependency of save-cwd on xgetcwd, and thereby
10217         indirectly on xalloc.  This change causes the openat substitute
10218         to fall back on save_cwd when memory is tight, and for save_cwd to
10219         fail instead of dying when memory is tight, but that's good enough.
10220         Problem and initial idea for fix reported by Bastien Roucaries in
10221         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
10222
10223         * lib/openat-proc.c: Include stdlib.h (for malloc), not
10224         xalloc.h (for xmalloc).
10225         (openat_proc_name): Use malloc, not xmalloc.
10226         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
10227         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
10228
10229         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
10230         This avoids heap allocation for file names whose lengths are in
10231         the range 512..1023, with the upper bound increasing to at most
10232         4031 depending on the platform's PATH_MAX.  (We do not want
10233         pathmax.h here as it might supply a non-constant PATH_MAX.)
10234         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
10235         Perhaps they should be moved to malloca.h?
10236         (OPENAT_BUFFER_SIZE): Use them.
10237
10238 2011-01-10  Bruno Haible  <bruno@clisp.org>
10239
10240         doc: Update users.txt.
10241         * users.txt: Add recutils.
10242
10243 2011-01-09  Karl Berry  <karl@gnu.org>
10244
10245         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
10246
10247         * doc/configmake.texi: New file.
10248         * doc/gnulib.texi: Include it.
10249         * modules/configmake: Move documentation from here.
10250
10251 2011-01-09  Bruno Haible  <bruno@clisp.org>
10252
10253         Update to Unicode 6.0.0.
10254         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
10255         (get_lbp): Update for Unicode 6.0.0.
10256         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
10257         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
10258         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
10259         U+11001, U+11038..U+11046. Remove U+06DE.
10260         (uc_width): Fix bounds of planes.
10261         * tests/uniwidth/test-uc_width2.sh: Same updates as in
10262         lib/uniwidth/width.c.
10263         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
10264         trailing whitespace removed.
10265         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
10266         without comments, but with the original copyright notice.
10267         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
10268         * lib/unicase/ignorable.h: Likewise.
10269         * lib/unicase/tocasefold.h: Likewise.
10270         * lib/unicase/tolower.h: Likewise.
10271         * lib/unicase/totitle.h: Likewise.
10272         * lib/unicase/toupper.h: Likewise.
10273         * lib/unictype/bidi_of.h: Likewise.
10274         * lib/unictype/blocks.h: Likewise.
10275         * lib/unictype/categ_C.h: Likewise.
10276         * lib/unictype/categ_Cn.h: Likewise.
10277         * lib/unictype/categ_L.h: Likewise.
10278         * lib/unictype/categ_Ll.h: Likewise.
10279         * lib/unictype/categ_Lm.h: Likewise.
10280         * lib/unictype/categ_Lo.h: Likewise.
10281         * lib/unictype/categ_Lu.h: Likewise.
10282         * lib/unictype/categ_M.h: Likewise.
10283         * lib/unictype/categ_Mc.h: Likewise.
10284         * lib/unictype/categ_Me.h: Likewise.
10285         * lib/unictype/categ_Mn.h: Likewise.
10286         * lib/unictype/categ_N.h: Likewise.
10287         * lib/unictype/categ_Nd.h: Likewise.
10288         * lib/unictype/categ_No.h: Likewise.
10289         * lib/unictype/categ_P.h: Likewise.
10290         * lib/unictype/categ_Po.h: Likewise.
10291         * lib/unictype/categ_S.h: Likewise.
10292         * lib/unictype/categ_Sc.h: Likewise.
10293         * lib/unictype/categ_Sk.h: Likewise.
10294         * lib/unictype/categ_Sm.h: Likewise.
10295         * lib/unictype/categ_So.h: Likewise.
10296         * lib/unictype/categ_of.h: Likewise.
10297         * lib/unictype/combining.h: Likewise.
10298         * lib/unictype/ctype_alnum.h: Likewise.
10299         * lib/unictype/ctype_alpha.h: Likewise.
10300         * lib/unictype/ctype_graph.h: Likewise.
10301         * lib/unictype/ctype_lower.h: Likewise.
10302         * lib/unictype/ctype_print.h: Likewise.
10303         * lib/unictype/ctype_punct.h: Likewise.
10304         * lib/unictype/ctype_upper.h: Likewise.
10305         * lib/unictype/decdigit.h: Likewise.
10306         * lib/unictype/digit.h: Likewise.
10307         * lib/unictype/numeric.h: Likewise.
10308         * lib/unictype/pr_alphabetic.h: Likewise.
10309         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
10310         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
10311         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
10312         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
10313         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
10314         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
10315         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
10316         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
10317         * lib/unictype/pr_case_ignorable.h: Likewise.
10318         * lib/unictype/pr_cased.h: Likewise.
10319         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
10320         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
10321         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
10322         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
10323         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
10324         * lib/unictype/pr_combining.h: Likewise.
10325         * lib/unictype/pr_composite.h: Likewise.
10326         * lib/unictype/pr_currency_symbol.h: Likewise.
10327         * lib/unictype/pr_decimal_digit.h: Likewise.
10328         * lib/unictype/pr_deprecated.h: Likewise.
10329         * lib/unictype/pr_format_control.h: Likewise.
10330         * lib/unictype/pr_grapheme_base.h: Likewise.
10331         * lib/unictype/pr_grapheme_extend.h: Likewise.
10332         * lib/unictype/pr_grapheme_link.h: Likewise.
10333         * lib/unictype/pr_id_continue.h: Likewise.
10334         * lib/unictype/pr_id_start.h: Likewise.
10335         * lib/unictype/pr_ideographic.h: Likewise.
10336         * lib/unictype/pr_lowercase.h: Likewise.
10337         * lib/unictype/pr_math.h: Likewise.
10338         * lib/unictype/pr_numeric.h: Likewise.
10339         * lib/unictype/pr_other_alphabetic.h: Likewise.
10340         * lib/unictype/pr_other_id_continue.h: Likewise.
10341         * lib/unictype/pr_other_math.h: Likewise.
10342         * lib/unictype/pr_punctuation.h: Likewise.
10343         * lib/unictype/pr_sentence_terminal.h: Likewise.
10344         * lib/unictype/pr_terminal_punctuation.h: Likewise.
10345         * lib/unictype/pr_unassigned_code_value.h: Likewise.
10346         * lib/unictype/pr_unified_ideograph.h: Likewise.
10347         * lib/unictype/pr_uppercase.h: Likewise.
10348         * lib/unictype/pr_xid_continue.h: Likewise.
10349         * lib/unictype/pr_xid_start.h: Likewise.
10350         * lib/unictype/scripts.h: Likewise.
10351         * lib/unictype/scripts_byname.gperf: Likewise.
10352         * lib/unictype/sy_java_ident.h: Likewise.
10353         * lib/unigbrk/gbrkprop.h: Likewise.
10354         * lib/unilbrk/lbrkprop1.h: Likewise.
10355         * lib/unilbrk/lbrkprop2.h: Likewise.
10356         * lib/uninorm/decomposition-table2.h: Likewise.
10357         * lib/uniwbrk/wbrkprop.h: Likewise.
10358         * tests/unicase/test-cased.c: Likewise.
10359         * tests/unicase/test-ignorable.c: Likewise.
10360         * tests/unicase/test-uc_tolower.c: Likewise.
10361         * tests/unicase/test-uc_totitle.c: Likewise.
10362         * tests/unicase/test-uc_toupper.c: Likewise.
10363         * tests/unictype/test-categ_C.c: Likewise.
10364         * tests/unictype/test-categ_Cn.c: Likewise.
10365         * tests/unictype/test-categ_L.c: Likewise.
10366         * tests/unictype/test-categ_Ll.c: Likewise.
10367         * tests/unictype/test-categ_Lm.c: Likewise.
10368         * tests/unictype/test-categ_Lo.c: Likewise.
10369         * tests/unictype/test-categ_Lu.c: Likewise.
10370         * tests/unictype/test-categ_M.c: Likewise.
10371         * tests/unictype/test-categ_Mc.c: Likewise.
10372         * tests/unictype/test-categ_Me.c: Likewise.
10373         * tests/unictype/test-categ_Mn.c: Likewise.
10374         * tests/unictype/test-categ_N.c: Likewise.
10375         * tests/unictype/test-categ_Nd.c: Likewise.
10376         * tests/unictype/test-categ_No.c: Likewise.
10377         * tests/unictype/test-categ_P.c: Likewise.
10378         * tests/unictype/test-categ_Po.c: Likewise.
10379         * tests/unictype/test-categ_S.c: Likewise.
10380         * tests/unictype/test-categ_Sc.c: Likewise.
10381         * tests/unictype/test-categ_Sk.c: Likewise.
10382         * tests/unictype/test-categ_Sm.c: Likewise.
10383         * tests/unictype/test-categ_So.c: Likewise.
10384         * tests/unictype/test-ctype_alnum.c: Likewise.
10385         * tests/unictype/test-ctype_alpha.c: Likewise.
10386         * tests/unictype/test-ctype_graph.c: Likewise.
10387         * tests/unictype/test-ctype_lower.c: Likewise.
10388         * tests/unictype/test-ctype_print.c: Likewise.
10389         * tests/unictype/test-ctype_punct.c: Likewise.
10390         * tests/unictype/test-ctype_upper.c: Likewise.
10391         * tests/unictype/test-decdigit.h: Likewise.
10392         * tests/unictype/test-digit.h: Likewise.
10393         * tests/unictype/test-numeric.h: Likewise.
10394         * tests/unictype/test-pr_alphabetic.c: Likewise.
10395         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
10396         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
10397         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
10398         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
10399         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
10400         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
10401         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
10402         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
10403         * tests/unictype/test-pr_case_ignorable.c: Likewise.
10404         * tests/unictype/test-pr_cased.c: Likewise.
10405         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
10406         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
10407         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
10408         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
10409         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
10410         * tests/unictype/test-pr_combining.c: Likewise.
10411         * tests/unictype/test-pr_composite.c: Likewise.
10412         * tests/unictype/test-pr_currency_symbol.c: Likewise.
10413         * tests/unictype/test-pr_decimal_digit.c: Likewise.
10414         * tests/unictype/test-pr_deprecated.c: Likewise.
10415         * tests/unictype/test-pr_format_control.c: Likewise.
10416         * tests/unictype/test-pr_grapheme_base.c: Likewise.
10417         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
10418         * tests/unictype/test-pr_grapheme_link.c: Likewise.
10419         * tests/unictype/test-pr_id_continue.c: Likewise.
10420         * tests/unictype/test-pr_id_start.c: Likewise.
10421         * tests/unictype/test-pr_ideographic.c: Likewise.
10422         * tests/unictype/test-pr_lowercase.c: Likewise.
10423         * tests/unictype/test-pr_math.c: Likewise.
10424         * tests/unictype/test-pr_numeric.c: Likewise.
10425         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
10426         * tests/unictype/test-pr_other_id_continue.c: Likewise.
10427         * tests/unictype/test-pr_other_math.c: Likewise.
10428         * tests/unictype/test-pr_punctuation.c: Likewise.
10429         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
10430         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
10431         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
10432         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
10433         * tests/unictype/test-pr_uppercase.c: Likewise.
10434         * tests/unictype/test-pr_xid_continue.c: Likewise.
10435         * tests/unictype/test-pr_xid_start.c: Likewise.
10436         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
10437         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
10438         changes.
10439         * lib/unictype/categ_Cc.h: Likewise.
10440         * lib/unictype/categ_Cf.h: Likewise.
10441         * lib/unictype/categ_Co.h: Likewise.
10442         * lib/unictype/categ_Cs.h: Likewise.
10443         * lib/unictype/categ_Lt.h: Likewise.
10444         * lib/unictype/categ_Nl.h: Likewise.
10445         * lib/unictype/categ_Pc.h: Likewise.
10446         * lib/unictype/categ_Pd.h: Likewise.
10447         * lib/unictype/categ_Pe.h: Likewise.
10448         * lib/unictype/categ_Pf.h: Likewise.
10449         * lib/unictype/categ_Pi.h: Likewise.
10450         * lib/unictype/categ_Ps.h: Likewise.
10451         * lib/unictype/categ_Z.h: Likewise.
10452         * lib/unictype/categ_Zl.h: Likewise.
10453         * lib/unictype/categ_Zp.h: Likewise.
10454         * lib/unictype/categ_Zs.h: Likewise.
10455         * lib/unictype/ctype_blank.h: Likewise.
10456         * lib/unictype/ctype_cntrl.h: Likewise.
10457         * lib/unictype/ctype_digit.h: Likewise.
10458         * lib/unictype/ctype_space.h: Likewise.
10459         * lib/unictype/ctype_xdigit.h: Likewise.
10460         * lib/unictype/mirror.h: Likewise.
10461         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
10462         * lib/unictype/pr_bidi_block_separator.h: Likewise.
10463         * lib/unictype/pr_bidi_common_separator.h: Likewise.
10464         * lib/unictype/pr_bidi_control.h: Likewise.
10465         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
10466         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
10467         * lib/unictype/pr_bidi_european_digit.h: Likewise.
10468         * lib/unictype/pr_bidi_pdf.h: Likewise.
10469         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
10470         * lib/unictype/pr_bidi_whitespace.h: Likewise.
10471         * lib/unictype/pr_dash.h: Likewise.
10472         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
10473         * lib/unictype/pr_diacritic.h: Likewise.
10474         * lib/unictype/pr_extender.h: Likewise.
10475         * lib/unictype/pr_hex_digit.h: Likewise.
10476         * lib/unictype/pr_hyphen.h: Likewise.
10477         * lib/unictype/pr_ids_binary_operator.h: Likewise.
10478         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
10479         * lib/unictype/pr_ignorable_control.h: Likewise.
10480         * lib/unictype/pr_iso_control.h: Likewise.
10481         * lib/unictype/pr_join_control.h: Likewise.
10482         * lib/unictype/pr_left_of_pair.h: Likewise.
10483         * lib/unictype/pr_line_separator.h: Likewise.
10484         * lib/unictype/pr_logical_order_exception.h: Likewise.
10485         * lib/unictype/pr_non_break.h: Likewise.
10486         * lib/unictype/pr_not_a_character.h: Likewise.
10487         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
10488         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
10489         * lib/unictype/pr_other_id_start.h: Likewise.
10490         * lib/unictype/pr_other_lowercase.h: Likewise.
10491         * lib/unictype/pr_other_uppercase.h: Likewise.
10492         * lib/unictype/pr_paired_punctuation.h: Likewise.
10493         * lib/unictype/pr_paragraph_separator.h: Likewise.
10494         * lib/unictype/pr_pattern_syntax.h: Likewise.
10495         * lib/unictype/pr_pattern_white_space.h: Likewise.
10496         * lib/unictype/pr_private_use.h: Likewise.
10497         * lib/unictype/pr_quotation_mark.h: Likewise.
10498         * lib/unictype/pr_radical.h: Likewise.
10499         * lib/unictype/pr_soft_dotted.h: Likewise.
10500         * lib/unictype/pr_space.h: Likewise.
10501         * lib/unictype/pr_titlecase.h: Likewise.
10502         * lib/unictype/pr_variation_selector.h: Likewise.
10503         * lib/unictype/pr_white_space.h: Likewise.
10504         * lib/unictype/pr_zero_width.h: Likewise.
10505         * lib/unictype/sy_c_ident.h: Likewise.
10506         * lib/unictype/sy_c_whitespace.h: Likewise.
10507         * lib/unictype/sy_java_whitespace.h: Likewise.
10508         * lib/uninorm/composition-table.gperf: Likewise.
10509         * lib/uninorm/decomposition-table1.h: Likewise.
10510         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
10511         LB8.
10512         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
10513         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
10514         * modules/unictype/*: Bump version number of expected libunistring
10515         version.
10516
10517 2011-01-09  Bruno Haible  <bruno@clisp.org>
10518
10519         Update to Unicode 5.2.0.
10520         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
10521         trailing whitespace removed.
10522
10523 2011-01-09  Bruno Haible  <bruno@clisp.org>
10524
10525         New Unicode character properties, from Unicode 5.2.0.
10526         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
10527         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
10528         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
10529         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
10530         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
10531         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
10532         uc_is_property_cased, uc_is_property_case_ignorable,
10533         uc_is_property_changes_when_lowercased,
10534         uc_is_property_changes_when_uppercased,
10535         uc_is_property_changes_when_titlecased,
10536         uc_is_property_changes_when_casefolded,
10537         uc_is_property_changes_when_casemapped): New declarations.
10538         * lib/unictype/pr_byname.gperf: Add the new properties.
10539         * modules/unictype/property-byname (Depends-on): Depend on the new
10540         properties modules.
10541         * modules/unictype/property-all (Depends-on): Likewise.
10542         * MODULES.html.sh (Unicode string functions): Add
10543         unictype/property-case-ignorable, unictype/property-cased,
10544         unictype/property-changes-when-casefolded,
10545         unictype/property-changes-when-casemapped,
10546         unictype/property-changes-when-lowercased,
10547         unictype/property-changes-when-titlecased,
10548         unictype/property-changes-when-uppercased.
10549
10550         New module 'unictype/property-changes-when-casemapped'.
10551         * modules/unictype/property-changes-when-casemapped: New file.
10552         * lib/unictype/pr_changes_when_casemapped.c: New file.
10553         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
10554         generated by gen-uni-tables.
10555         * modules/unictype/property-changes-when-casemapped-tests: New file.
10556         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
10557         automatically generated by gen-uni-tables.
10558
10559         New module 'unictype/property-changes-when-casefolded'.
10560         * modules/unictype/property-changes-when-casefolded: New file.
10561         * lib/unictype/pr_changes_when_casefolded.c: New file.
10562         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
10563         generated by gen-uni-tables.
10564         * modules/unictype/property-changes-when-casefolded-tests: New file.
10565         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
10566         automatically generated by gen-uni-tables.
10567
10568         New module 'unictype/property-changes-when-titlecased'.
10569         * modules/unictype/property-changes-when-titlecased: New file.
10570         * lib/unictype/pr_changes_when_titlecased.c: New file.
10571         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
10572         generated by gen-uni-tables.
10573         * modules/unictype/property-changes-when-titlecased-tests: New file.
10574         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
10575         automatically generated by gen-uni-tables.
10576
10577         New module 'unictype/property-changes-when-uppercased'.
10578         * modules/unictype/property-changes-when-uppercased: New file.
10579         * lib/unictype/pr_changes_when_uppercased.c: New file.
10580         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
10581         generated by gen-uni-tables.
10582         * modules/unictype/property-changes-when-uppercased-tests: New file.
10583         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
10584         automatically generated by gen-uni-tables.
10585
10586         New module 'unictype/property-changes-when-lowercased'.
10587         * modules/unictype/property-changes-when-lowercased: New file.
10588         * lib/unictype/pr_changes_when_lowercased.c: New file.
10589         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
10590         generated by gen-uni-tables.
10591         * modules/unictype/property-changes-when-lowercased-tests: New file.
10592         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
10593         automatically generated by gen-uni-tables.
10594
10595         New module 'unictype/property-case-ignorable'.
10596         * modules/unictype/property-case-ignorable: New file.
10597         * lib/unictype/pr_case_ignorable.c: New file.
10598         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
10599         by gen-uni-tables.
10600         * modules/unictype/property-case-ignorable-tests: New file.
10601         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
10602         generated by gen-uni-tables.
10603
10604         New module 'unictype/property-cased'.
10605         * modules/unictype/property-cased: New file.
10606         * lib/unictype/pr_cased.c: New file.
10607         * lib/unictype/pr_cased.h: New file, automatically generated by
10608         gen-uni-tables.
10609         * modules/unictype/property-cased-tests: New file.
10610         * tests/unictype/test-pr_cased.c: New file, automatically generated by
10611         gen-uni-tables.
10612
10613 2011-01-09  Bruno Haible  <bruno@clisp.org>
10614
10615         Update to Unicode 5.2.0.
10616         * lib/gen-uni-tables.c (output_predicate, output_category,
10617         output_combclass, output_bidi_category, output_decimal_digit_test,
10618         output_decimal_digit, output_digit_test, output_digit,
10619         output_numeric_test, output_numeric, output_mirror, output_scripts,
10620         output_scripts_byname, output_blocks, output_ident_category): Fix
10621         comment header.
10622         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
10623         get_wbp.
10624         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
10625         items.
10626         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
10627         Changes_When_Lowercased, Changes_When_Uppercased,
10628         Changes_When_Titlecased, Changes_When_Casefolded,
10629         Changes_When_Casemapped.
10630         (is_property_alphabetic, is_property_default_ignorable_code_point):
10631         Update for Unicode 5.2.0.
10632         (is_property_cased, is_property_case_ignorable,
10633         is_property_changes_when_lowercased,
10634         is_property_changes_when_uppercased,
10635         is_property_changes_when_titlecased,
10636         is_property_changes_when_casefolded,
10637         is_property_changes_when_casemapped): New functions.
10638         (output_properties): Output also the properties cased, case_ignorable,
10639         changes_when_lowercased, changes_when_uppercased,
10640         changes_when_titlecased, changes_when_casefolded,
10641         changes_when_casemapped.
10642         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
10643         Unicode TR#11 revision 17 -> 19.
10644         (LBP_CP): New enumeration value.
10645         (LBP_*): Adjust values accordingly.
10646         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
10647         TR#14 revision 22 -> 24.
10648         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
10649         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
10650         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
10651         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
10652         is_WBP_MIDLETTER.
10653         (output_composition_tables): Allow for 24 bits instead of 16 bits in
10654         the code1 and code2 of each composition rule.
10655         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
10656         * lib/unicase/ignorable.h: Likewise.
10657         * lib/unicase/tocasefold.h: Likewise.
10658         * lib/unicase/tolower.h: Likewise.
10659         * lib/unicase/totitle.h: Likewise.
10660         * lib/unicase/toupper.h: Likewise.
10661         * lib/unictype/bidi_of.h: Likewise.
10662         * lib/unictype/blocks.h: Likewise.
10663         * lib/unictype/categ_C.h: Likewise.
10664         * lib/unictype/categ_Cf.h: Likewise.
10665         * lib/unictype/categ_Cn.h: Likewise.
10666         * lib/unictype/categ_L.h: Likewise.
10667         * lib/unictype/categ_Ll.h: Likewise.
10668         * lib/unictype/categ_Lm.h: Likewise.
10669         * lib/unictype/categ_Lo.h: Likewise.
10670         * lib/unictype/categ_Lu.h: Likewise.
10671         * lib/unictype/categ_M.h: Likewise.
10672         * lib/unictype/categ_Mc.h: Likewise.
10673         * lib/unictype/categ_Mn.h: Likewise.
10674         * lib/unictype/categ_N.h: Likewise.
10675         * lib/unictype/categ_Nd.h: Likewise.
10676         * lib/unictype/categ_Nl.h: Likewise.
10677         * lib/unictype/categ_No.h: Likewise.
10678         * lib/unictype/categ_P.h: Likewise.
10679         * lib/unictype/categ_Pd.h: Likewise.
10680         * lib/unictype/categ_Po.h: Likewise.
10681         * lib/unictype/categ_S.h: Likewise.
10682         * lib/unictype/categ_Sc.h: Likewise.
10683         * lib/unictype/categ_So.h: Likewise.
10684         * lib/unictype/categ_of.h: Likewise.
10685         * lib/unictype/combining.h: Likewise.
10686         * lib/unictype/ctype_alnum.h: Likewise.
10687         * lib/unictype/ctype_alpha.h: Likewise.
10688         * lib/unictype/ctype_graph.h: Likewise.
10689         * lib/unictype/ctype_lower.h: Likewise.
10690         * lib/unictype/ctype_print.h: Likewise.
10691         * lib/unictype/ctype_punct.h: Likewise.
10692         * lib/unictype/ctype_upper.h: Likewise.
10693         * lib/unictype/decdigit.h: Likewise.
10694         * lib/unictype/digit.h: Likewise.
10695         * lib/unictype/numeric.h: Likewise.
10696         * lib/unictype/pr_alphabetic.h: Likewise.
10697         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
10698         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
10699         * lib/unictype/pr_bidi_european_digit.h: Likewise.
10700         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
10701         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
10702         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
10703         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
10704         * lib/unictype/pr_combining.h: Likewise.
10705         * lib/unictype/pr_composite.h: Likewise.
10706         * lib/unictype/pr_currency_symbol.h: Likewise.
10707         * lib/unictype/pr_dash.h: Likewise.
10708         * lib/unictype/pr_decimal_digit.h: Likewise.
10709         * lib/unictype/pr_deprecated.h: Likewise.
10710         * lib/unictype/pr_diacritic.h: Likewise.
10711         * lib/unictype/pr_extender.h: Likewise.
10712         * lib/unictype/pr_grapheme_base.h: Likewise.
10713         * lib/unictype/pr_grapheme_extend.h: Likewise.
10714         * lib/unictype/pr_grapheme_link.h: Likewise.
10715         * lib/unictype/pr_id_continue.h: Likewise.
10716         * lib/unictype/pr_id_start.h: Likewise.
10717         * lib/unictype/pr_ideographic.h: Likewise.
10718         * lib/unictype/pr_ignorable_control.h: Likewise.
10719         * lib/unictype/pr_logical_order_exception.h: Likewise.
10720         * lib/unictype/pr_lowercase.h: Likewise.
10721         * lib/unictype/pr_numeric.h: Likewise.
10722         * lib/unictype/pr_other_alphabetic.h: Likewise.
10723         * lib/unictype/pr_punctuation.h: Likewise.
10724         * lib/unictype/pr_sentence_terminal.h: Likewise.
10725         * lib/unictype/pr_terminal_punctuation.h: Likewise.
10726         * lib/unictype/pr_unassigned_code_value.h: Likewise.
10727         * lib/unictype/pr_unified_ideograph.h: Likewise.
10728         * lib/unictype/pr_uppercase.h: Likewise.
10729         * lib/unictype/pr_xid_continue.h: Likewise.
10730         * lib/unictype/pr_xid_start.h: Likewise.
10731         * lib/unictype/pr_zero_width.h: Likewise.
10732         * lib/unictype/scripts.h: Likewise.
10733         * lib/unictype/scripts_byname.gperf: Likewise.
10734         * lib/unictype/sy_java_ident.h: Likewise.
10735         * lib/unigbrk/gbrkprop.h: Likewise.
10736         * lib/unilbrk/lbrkprop1.h: Likewise.
10737         * lib/unilbrk/lbrkprop2.h: Likewise.
10738         * lib/unilbrk/lbrktables.h: Likewise.
10739         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
10740         LBP_CP. Implement rule LB30.
10741         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
10742         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
10743         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
10744         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
10745         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
10746         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
10747         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
10748         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
10749         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
10750         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
10751         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
10752         bits instead of 16 bits in the code1 and code2 of each composition
10753         rule.
10754         (uc_composition): Update for Unicode 5.2.0.
10755         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
10756         * lib/uninorm/decomposition-table2.h: Likewise.
10757         * lib/uniwbrk/wbrkprop.h: Likewise.
10758         * tests/unicase/test-cased.c: Likewise.
10759         * tests/unicase/test-ignorable.c: Likewise.
10760         * tests/unicase/test-uc_tolower.c: Likewise.
10761         * tests/unicase/test-uc_totitle.c: Likewise.
10762         * tests/unicase/test-uc_toupper.c: Likewise.
10763         * tests/unictype/test-categ_C.c: Likewise.
10764         * tests/unictype/test-categ_Cf.c: Likewise.
10765         * tests/unictype/test-categ_Cn.c: Likewise.
10766         * tests/unictype/test-categ_L.c: Likewise.
10767         * tests/unictype/test-categ_Ll.c: Likewise.
10768         * tests/unictype/test-categ_Lm.c: Likewise.
10769         * tests/unictype/test-categ_Lo.c: Likewise.
10770         * tests/unictype/test-categ_Lu.c: Likewise.
10771         * tests/unictype/test-categ_M.c: Likewise.
10772         * tests/unictype/test-categ_Mc.c: Likewise.
10773         * tests/unictype/test-categ_Mn.c: Likewise.
10774         * tests/unictype/test-categ_N.c: Likewise.
10775         * tests/unictype/test-categ_Nd.c: Likewise.
10776         * tests/unictype/test-categ_Nl.c: Likewise.
10777         * tests/unictype/test-categ_No.c: Likewise.
10778         * tests/unictype/test-categ_P.c: Likewise.
10779         * tests/unictype/test-categ_Pd.c: Likewise.
10780         * tests/unictype/test-categ_Po.c: Likewise.
10781         * tests/unictype/test-categ_S.c: Likewise.
10782         * tests/unictype/test-categ_Sc.c: Likewise.
10783         * tests/unictype/test-categ_So.c: Likewise.
10784         * tests/unictype/test-ctype_alnum.c: Likewise.
10785         * tests/unictype/test-ctype_alpha.c: Likewise.
10786         * tests/unictype/test-ctype_graph.c: Likewise.
10787         * tests/unictype/test-ctype_lower.c: Likewise.
10788         * tests/unictype/test-ctype_print.c: Likewise.
10789         * tests/unictype/test-ctype_punct.c: Likewise.
10790         * tests/unictype/test-ctype_upper.c: Likewise.
10791         * tests/unictype/test-decdigit.h: Likewise.
10792         * tests/unictype/test-digit.h: Likewise.
10793         * tests/unictype/test-numeric.h: Likewise.
10794         * tests/unictype/test-pr_alphabetic.c: Likewise.
10795         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
10796         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
10797         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
10798         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
10799         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
10800         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
10801         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
10802         * tests/unictype/test-pr_combining.c: Likewise.
10803         * tests/unictype/test-pr_composite.c: Likewise.
10804         * tests/unictype/test-pr_currency_symbol.c: Likewise.
10805         * tests/unictype/test-pr_dash.c: Likewise.
10806         * tests/unictype/test-pr_decimal_digit.c: Likewise.
10807         * tests/unictype/test-pr_deprecated.c: Likewise.
10808         * tests/unictype/test-pr_diacritic.c: Likewise.
10809         * tests/unictype/test-pr_extender.c: Likewise.
10810         * tests/unictype/test-pr_grapheme_base.c: Likewise.
10811         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
10812         * tests/unictype/test-pr_grapheme_link.c: Likewise.
10813         * tests/unictype/test-pr_id_continue.c: Likewise.
10814         * tests/unictype/test-pr_id_start.c: Likewise.
10815         * tests/unictype/test-pr_ideographic.c: Likewise.
10816         * tests/unictype/test-pr_ignorable_control.c: Likewise.
10817         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
10818         * tests/unictype/test-pr_lowercase.c: Likewise.
10819         * tests/unictype/test-pr_numeric.c: Likewise.
10820         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
10821         * tests/unictype/test-pr_punctuation.c: Likewise.
10822         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
10823         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
10824         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
10825         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
10826         * tests/unictype/test-pr_uppercase.c: Likewise.
10827         * tests/unictype/test-pr_xid_continue.c: Likewise.
10828         * tests/unictype/test-pr_xid_start.c: Likewise.
10829         * tests/unictype/test-pr_zero_width.c: Likewise.
10830         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
10831         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
10832         changed behaviour: line breaking is now disallowed between a letter
10833         or '=' and '('.
10834         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
10835         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
10836         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
10837         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
10838         * tests/uniwidth/test-uc_width2.sh: Same updates as in
10839         lib/uniwidth/width.c.
10840         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
10841         without comments, but with the original copyright notice.
10842         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
10843         changes.
10844         * lib/unictype/categ_Cc.h: Likewise.
10845         * lib/unictype/categ_Co.h: Likewise.
10846         * lib/unictype/categ_Cs.h: Likewise.
10847         * lib/unictype/categ_Lt.h: Likewise.
10848         * lib/unictype/categ_Me.h: Likewise.
10849         * lib/unictype/categ_Pc.h: Likewise.
10850         * lib/unictype/categ_Pe.h: Likewise.
10851         * lib/unictype/categ_Pf.h: Likewise.
10852         * lib/unictype/categ_Pi.h: Likewise.
10853         * lib/unictype/categ_Ps.h: Likewise.
10854         * lib/unictype/categ_Sk.h: Likewise.
10855         * lib/unictype/categ_Sm.h: Likewise.
10856         * lib/unictype/categ_Z.h: Likewise.
10857         * lib/unictype/categ_Zl.h: Likewise.
10858         * lib/unictype/categ_Zp.h: Likewise.
10859         * lib/unictype/categ_Zs.h: Likewise.
10860         * lib/unictype/ctype_blank.h: Likewise.
10861         * lib/unictype/ctype_cntrl.h: Likewise.
10862         * lib/unictype/ctype_digit.h: Likewise.
10863         * lib/unictype/ctype_space.h: Likewise.
10864         * lib/unictype/ctype_xdigit.h: Likewise.
10865         * lib/unictype/mirror.h: Likewise.
10866         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
10867         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
10868         * lib/unictype/pr_bidi_block_separator.h: Likewise.
10869         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
10870         * lib/unictype/pr_bidi_common_separator.h: Likewise.
10871         * lib/unictype/pr_bidi_control.h: Likewise.
10872         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
10873         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
10874         * lib/unictype/pr_bidi_pdf.h: Likewise.
10875         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
10876         * lib/unictype/pr_bidi_whitespace.h: Likewise.
10877         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
10878         * lib/unictype/pr_format_control.h: Likewise.
10879         * lib/unictype/pr_hex_digit.h: Likewise.
10880         * lib/unictype/pr_hyphen.h: Likewise.
10881         * lib/unictype/pr_ids_binary_operator.h: Likewise.
10882         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
10883         * lib/unictype/pr_iso_control.h: Likewise.
10884         * lib/unictype/pr_join_control.h: Likewise.
10885         * lib/unictype/pr_left_of_pair.h: Likewise.
10886         * lib/unictype/pr_line_separator.h: Likewise.
10887         * lib/unictype/pr_math.h: Likewise.
10888         * lib/unictype/pr_non_break.h: Likewise.
10889         * lib/unictype/pr_not_a_character.h: Likewise.
10890         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
10891         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
10892         * lib/unictype/pr_other_id_continue.h: Likewise.
10893         * lib/unictype/pr_other_id_start.h: Likewise.
10894         * lib/unictype/pr_other_lowercase.h: Likewise.
10895         * lib/unictype/pr_other_math.h: Likewise.
10896         * lib/unictype/pr_other_uppercase.h: Likewise.
10897         * lib/unictype/pr_paired_punctuation.h: Likewise.
10898         * lib/unictype/pr_paragraph_separator.h: Likewise.
10899         * lib/unictype/pr_pattern_syntax.h: Likewise.
10900         * lib/unictype/pr_pattern_white_space.h: Likewise.
10901         * lib/unictype/pr_private_use.h: Likewise.
10902         * lib/unictype/pr_quotation_mark.h: Likewise.
10903         * lib/unictype/pr_radical.h: Likewise.
10904         * lib/unictype/pr_soft_dotted.h: Likewise.
10905         * lib/unictype/pr_space.h: Likewise.
10906         * lib/unictype/pr_titlecase.h: Likewise.
10907         * lib/unictype/pr_variation_selector.h: Likewise.
10908         * lib/unictype/pr_white_space.h: Likewise.
10909         * lib/unictype/sy_c_ident.h: Likewise.
10910         * lib/unictype/sy_c_whitespace.h: Likewise.
10911         * lib/unictype/sy_java_whitespace.h: Likewise.
10912         * modules/uni*/*: Bump version number of expected libunistring version.
10913         Reported by Simon Josefsson.
10914
10915 2011-01-09  Karl Heuer  <kwzh@gnu.org>
10916
10917         useless-if-before-free: fix typo in --help and make the internal,
10918         automatic version date update process work once again.
10919         --help output contained a NUL character instead of the
10920         backslash-zero that was intended.  Also, the "must lie within
10921         the first 8 lines" line is on line 9, and hence not getting
10922         automatically updated.
10923         * build-aux/useless-if-before-free: Fix the former by adding a
10924         backslash, and the latter by condensing the three lines of what-it-does
10925         to a single line, leaving one line of slack for the future.
10926
10927 2011-01-09  Bruno Haible  <bruno@clisp.org>
10928
10929         uniwidth/width: Fix width of U+1D173..U+1D17A.
10930         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
10931         symbolic_width, output_width_property_test): New functions.
10932         (main): Invoke output_nonspacing_property, output_width_property_test.
10933         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
10934         U+1D173..U+1D17A.
10935         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
10936         1.
10937         * modules/uniwidth/*: Bump version number of expected libunistring
10938         version.
10939         * modules/unilbrk/*: Likewise.
10940
10941 2011-01-08  Bruno Haible  <bruno@clisp.org>
10942
10943         uninorm tests: Preserve copyright of Unicode data file.
10944         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
10945         Mention modifications.
10946
10947 2011-01-08  Bruno Haible  <bruno@clisp.org>
10948
10949         gen-uni-tables: Prepare for Unicode 5.2.0.
10950         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
10951         (debug_output_lbp, output_lbp): Update.
10952
10953 2011-01-08  Bruno Haible  <bruno@clisp.org>
10954
10955         unilbrk: Clarify gen-uni-tables.c code.
10956         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
10957         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
10958         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
10959
10960 2011-01-07  Bruno Haible  <bruno@clisp.org>
10961
10962         strtod: Restore errno when successfully parsing Infinity or NaN.
10963         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
10964         restore the original errno.
10965
10966 2011-01-07  Bruno Haible  <bruno@clisp.org>
10967
10968         remove test: Avoid failure on HP-UX 11.
10969         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
10970
10971 2011-01-07  Bruno Haible  <bruno@clisp.org>
10972
10973         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
10974         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
10975         error code.
10976
10977 2011-01-07  Pádraig Brady <P@draigBrady.com>
10978
10979         ignore-value: fixup comments, and add Eric Blake
10980         as an author since he rewrote the macros.
10981         * lib/ignore-value.h (ignore_value):  State that
10982         we now support aggregates.  Also specify exactly
10983         when the GCC warn_unused_result feature was added.
10984
10985 2011-01-06  Eric Blake  <eblake@redhat.com>
10986
10987         ignore-value: support aggregate types
10988         * lib/ignore-value.h (ignore_value): Provide separate gcc
10989         definition.
10990         * modules/ignore-value-tests: New test module.
10991         * tests/test-ignore-value.c: New test.
10992
10993         maint.mk: improve sc_prohibit_strcmp regex
10994         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
10995         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
10996         definition of STRNEQ.
10997
10998         signal: work around Haiku issue with SIGBUS
10999         * lib/siglist.h: Add comment.
11000         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
11001         strsignal's favoring of SIGSEGV.
11002         * tests/test-signal.c (main): Avoid test failure.
11003         * doc/posix-headers/signal.texi (signal.h): Document the issue.
11004         Reported by Scott McCreary.
11005
11006         maint.mk: add pre-release check to ensure submodule commits are public
11007         * top/maint.mk (public-submodule-commit): New rule.
11008         (submodule-checks): New variable.
11009         (alpha beta stable): Depend on the variable.
11010
11011 2011-01-05  Pádraig Brady <P@draigBrady.com>
11012         and Jim Meyering  <meyering@redhat.com>
11013
11014         ignore-value: make ignore_value more generic; deprecate ignore_ptr
11015         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
11016         (ATTRIBUTE_DEPRECATED): Define.
11017         (_ignore_case): New function.
11018         (ignore_value): New macro, to replace the old function.
11019         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
11020         * modules/ignore-value (Depends-on): Add stdint.
11021
11022 2011-01-04  Eric Blake  <eblake@redhat.com>
11023
11024         doc: regenerate INSTALL
11025         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
11026         @firstparagraphindent support, now that autoconf dropped it.
11027         (INSTALL_PRELUDE): Reinstate old macro.
11028         * doc/install.texi: Resync from autoconf.
11029         * doc/INSTALL: Reflect recent autoconf update.
11030         * doc/INSTALL.ISO: Likewise.
11031         * doc/INSTALL.UTF-8: Likewise.
11032         Reported by Karl Berry.
11033
11034 2011-01-04  Bruce Korb  <address@hidden>
11035
11036         git-version-gen: avoid a sub-shell
11037         * build-aux/git-version-gen: Redirect stderr in `...` via
11038         "exec 2>...", rather than via an added sub-shell.
11039
11040 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
11041
11042         git-version-gen: use (...) rather than sh -c '...'
11043         * build-aux/git-version-gen: Rather than hard-coding a shell's name
11044         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
11045
11046 2011-01-03  Jim Meyering  <meyering@redhat.com>
11047
11048         git-version-gen: convert leading TABs to spaces
11049         * build-aux/git-version-gen: Expand leading TABs.
11050
11051         git-version-gen: handle failed "git rev-list"
11052         * build-aux/git-version-gen: Rather than leaking a "fatal" error
11053         from git and proceeding as if it had succeeded but printed no SHA1
11054         checksums, suppress the diagnostic and handle the failure.
11055         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
11056
11057         git-version-gen: include command name in one more diagnostic
11058         * build-aux/git-version-gen: When the required .tarball-version file
11059         was missing or unreadable, you might see the diagnostic from "cat",
11060         but no trace of the name of the invoking script.  Now, you still see
11061         the diagnostic from cat, but also get one from "git-version-gen: ".
11062         Inspired by a patch from Bruce Korb.
11063
11064         update-copyright: adjust test to match changed code
11065         * tests/test-update-copyright.sh: Change test's expected output
11066         to match new actual output.
11067
11068 2011-01-02  Bruno Haible  <bruno@clisp.org>
11069
11070         getlogin_r: Avoid test failure on HP-UX 11.
11071         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
11072         ERANGE when the second argument is zero.
11073         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
11074         portability problem.
11075
11076 2011-01-02  Bruce Korb  <bkorb@gnu.org>
11077
11078         * build-aux/update-copyright: doc Simon's changes
11079
11080 2011-01-02  Simon Josefsson  <simon@josefsson.org>
11081
11082         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
11083         environment variable.
11084
11085 2011-01-02  Bruno Haible  <bruno@clisp.org>
11086
11087         unigbrk: Avoid gcc warnings.
11088         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
11089         unused variable.
11090         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
11091         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
11092         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
11093         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
11094         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
11095         Change type of first argument to 'const char *'.
11096         (main): Remove unused variable.
11097         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
11098         type of first argument to 'const char *'.
11099         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
11100         Likewise.
11101         (main): Change type of variable 's'.
11102         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
11103         to 'int'.
11104
11105 2011-01-02  Bruno Haible  <bruno@clisp.org>
11106
11107         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
11108         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
11109         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
11110         bug.
11111         * lib/pwrite.c: Undo 2010-12-31 patch.
11112         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
11113
11114 2011-01-02  Bruno Haible  <bruno@clisp.org>
11115
11116         pread: Fix test whether it works.
11117         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
11118
11119 2011-01-02  Bruno Haible  <bruno@clisp.org>
11120
11121         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
11122         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
11123         ends in "6". Don't require a specific month name. Try also the locale
11124         names found on HP-UX 11 and Solaris 7.
11125
11126 2011-01-02  Bruno Haible  <bruno@clisp.org>
11127
11128         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
11129         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
11130         C linkage.
11131         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
11132
11133 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
11134
11135         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
11136         for consistency, since the "cluster" term is not used elsewhere.
11137         * lib/unigbrk.in.h: Update name.
11138         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
11139         * lib/unigbrk/u16-grapheme-next.c: Update name.
11140         * lib/unigbrk/u16-grapheme-prev.c: Update name.
11141         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
11142         * lib/unigbrk/u32-grapheme-next.c: Update name.
11143         * lib/unigbrk/u32-grapheme-prev.c: Update name.
11144         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
11145         * lib/unigbrk/u8-grapheme-next.c: Update name.
11146         * lib/unigbrk/u8-grapheme-prev.c: Update name.
11147         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
11148         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
11149         Suggested by Bruno Haible.
11150
11151 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
11152
11153         Remove module 'u8-grapheme-len' as too redundant with
11154         'u8-grapheme-next'.
11155         * modules/unigbrk/u8-grapheme-len: Delete file.
11156         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
11157         * lib/unigbrk.in.h: Remove prototype for deleted function.
11158         * lib/unigbrk/u8-grapheme-len.c: Delete file.
11159         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
11160
11161         Remove module 'u16-grapheme-len' as too redundant with
11162         'u16-grapheme-next'.
11163         * modules/unigbrk/u16-grapheme-len: Delete file.
11164         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
11165         * lib/unigbrk.in.h: Remove prototype for deleted function.
11166         * lib/unigbrk/u16-grapheme-len.c: Delete file.
11167         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
11168
11169         Remove module 'u32-grapheme-len' as too redundant with
11170         'u32-grapheme-next'.
11171         * modules/unigbrk/u32-grapheme-len: Delete file.
11172         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
11173         * lib/unigbrk.in.h: Remove prototype for deleted function.
11174         * lib/unigbrk/u32-grapheme-len.c: Delete file.
11175         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
11176
11177         Suggested by Bruno Haible.
11178
11179 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
11180
11181         * unigbrk.in.h: Fix typo: "ben" => "been".
11182         Reported by Bruno Haible.
11183
11184 2011-01-01  Jim Meyering  <meyering@redhat.com>
11185
11186         maint: update almost all copyright ranges to include 2011
11187         Run the new "make update-copyright" rule.
11188
11189 2011-01-01  Jim Meyering  <meyering@redhat.com>
11190
11191         maint: update-copyright: exempt doc/INSTALL*
11192         * Makefile (update-copyright): Also exclude doc/INSTALL*,
11193         since they are generated.  Suggested by Bruno Haible.
11194
11195 2011-01-01  Jim Meyering  <meyering@redhat.com>
11196
11197         maint: refine the update-copyright rule
11198         * Makefile (update-copyright): Also exclude any file that includes
11199         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
11200         code that merely generates the comment.
11201
11202 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
11203
11204         New module 'u8-grapheme-len'.
11205         * modules/unigbrk/u8-grapheme-len: New file.
11206         * modules/unigbrk/u8-grapheme-len-tests: New file.
11207         * lib/unigbrk.in.h: Add prototype for new function.
11208         * lib/unigbrk/u8-grapheme-len.c: New file.
11209         * tests/unigbrk/test-u8-grapheme-len.c: New file.
11210
11211         New module 'u16-grapheme-len'.
11212         * modules/unigbrk/u16-grapheme-len: New file.
11213         * modules/unigbrk/u16-grapheme-len-tests: New file.
11214         * lib/unigbrk.in.h: Add prototype for new function.
11215         * lib/unigbrk/u16-grapheme-len.c: New file.
11216         * tests/unigbrk/test-u16-grapheme-len.c: New file.
11217
11218         New module 'u32-grapheme-len'.
11219         * modules/unigbrk/u32-grapheme-len: New file.
11220         * modules/unigbrk/u32-grapheme-len-tests: New file.
11221         * lib/unigbrk.in.h: Add prototype for new function.
11222         * lib/unigbrk/u32-grapheme-len.c: New file.
11223         * tests/unigbrk/test-u32-grapheme-len.c: New file.
11224
11225         New module 'u8-grapheme-next'.
11226         * modules/unigbrk/u8-grapheme-next: New file.
11227         * modules/unigbrk/u8-grapheme-next-tests: New file.
11228         * lib/unigbrk.in.h: Add prototype for new function.
11229         * lib/unigbrk/u8-grapheme-next.c: New file.
11230         * tests/unigbrk/test-u8-grapheme-next.c: New file.
11231
11232         New module 'u16-grapheme-next'.
11233         * modules/unigbrk/u16-grapheme-next: New file.
11234         * modules/unigbrk/u16-grapheme-next-tests: New file.
11235         * lib/unigbrk.in.h: Add prototype for new function.
11236         * lib/unigbrk/u16-grapheme-next.c: New file.
11237         * tests/unigbrk/test-u16-grapheme-next.c: New file.
11238
11239         New module 'u32-grapheme-next'.
11240         * modules/unigbrk/u32-grapheme-next: New file.
11241         * modules/unigbrk/u32-grapheme-next-tests: New file.
11242         * lib/unigbrk.in.h: Add prototype for new function.
11243         * lib/unigbrk/u32-grapheme-next.c: New file.
11244         * tests/unigbrk/test-u32-grapheme-next.c: New file.
11245
11246         New module 'u8-grapheme-prev'.
11247         * modules/unigbrk/u8-grapheme-prev: New file.
11248         * modules/unigbrk/u8-grapheme-prev-tests: New file.
11249         * lib/unigbrk.in.h: Add prototype for new function.
11250         * lib/unigbrk/u8-grapheme-prev.c: New file.
11251         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
11252
11253         New module 'u16-grapheme-prev'.
11254         * modules/unigbrk/u16-grapheme-prev: New file.
11255         * modules/unigbrk/u16-grapheme-prev-tests: New file.
11256         * lib/unigbrk.in.h: Add prototype for new function.
11257         * lib/unigbrk/u16-grapheme-prev.c: New file.
11258         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
11259
11260         New module 'u32-grapheme-prev'.
11261         * modules/unigbrk/u32-grapheme-prev: New file.
11262         * modules/unigbrk/u32-grapheme-prev-tests: New file.
11263         * lib/unigbrk.in.h: Add prototype for new function.
11264         * lib/unigbrk/u32-grapheme-prev.c: New file.
11265         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
11266
11267         New module 'u8-grapheme-breaks'.
11268         * modules/unigbrk/u8-grapheme-breaks: New file.
11269         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
11270         * lib/unigbrk.in.h: Add prototype for new function.
11271         * lib/unigbrk/u8-grapheme-breaks.c: New file.
11272         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
11273
11274         New module 'u16-grapheme-breaks'.
11275         * modules/unigbrk/u16-grapheme-breaks: New file.
11276         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
11277         * lib/unigbrk.in.h: Add prototype for new function.
11278         * lib/unigbrk/u16-grapheme-breaks.c: New file.
11279         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
11280
11281         New module 'u32-grapheme-breaks'.
11282         * modules/unigbrk/u32-grapheme-breaks: New file.
11283         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
11284         * lib/unigbrk.in.h: Add prototype for new function.
11285         * lib/unigbrk/u32-grapheme-breaks.c: New file.
11286         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
11287
11288         New module 'ulc-grapheme-breaks'.
11289         * modules/unigbrk/ulc-grapheme-breaks: New file.
11290         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
11291         * m4/locale-ar.m4: New file.
11292         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
11293         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
11294         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
11295
11296 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
11297
11298         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
11299         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
11300         modified how this file was generated before I initially submitted
11301         the module, but failed to regenerate it.  This meant that several
11302         of the level2 entries were wrong.
11303         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
11304         Remove the division-by-2 that is folded into the table now that
11305         gbrkprop.h has been regenerated properly.  Now -1 entries are
11306         handled correctly.
11307
11308         New module 'unigbrk/uc-gbrk-prop-tests'.
11309         * modules/unigbrk/uc-gbrk-prop-tests: New file.
11310         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
11311         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
11312         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
11313
11314 2011-01-01  Bruno Haible  <bruno@clisp.org>
11315
11316         Avoid use of hexadecimal escapes.
11317         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
11318         instead of hexadecimal escapes.
11319
11320 2011-01-01  Jim Meyering  <meyering@redhat.com>
11321
11322         maint: new rule to update copyright year ranges
11323         * Makefile (update-copyright): New rule.
11324
11325         maint: indent with TABs in Makefile
11326         * Makefile: Expand leading sequences of spaces to TABs
11327
11328         version-etc: update the copyright year it reports
11329         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
11330
11331 2010-12-31  Bruno Haible  <bruno@clisp.org>
11332
11333         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
11334         * lib/isfinite.c (zerof, zerod, zerol): New variables.
11335         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
11336         zero.
11337
11338 2010-12-31  Bruno Haible  <bruno@clisp.org>
11339
11340         pwrite: Work around HP-UX 11.11 bug.
11341         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
11342         works and set REPLACE_PWRITE if not.
11343         * lib/pwrite.c (pwrite): Add an implementation that uses the system
11344         function.
11345         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
11346
11347 2010-12-31  Bruno Haible  <bruno@clisp.org>
11348
11349         pread: Work around HP-UX 11 bugs.
11350         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
11351         and set REPLACE_PREAD if not.
11352         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
11353
11354 2010-12-31  Eric Blake  <eblake@redhat.com>
11355
11356         nl_langinfo: fix YESEXPR on Irix 6.5
11357         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
11358         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
11359         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
11360         it.
11361
11362 2010-12-31  Bruno Haible  <bruno@clisp.org>
11363
11364         iconv: Document HP-UX 11 bug.
11365         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
11366
11367 2010-12-31  Bruno Haible  <bruno@clisp.org>
11368
11369         ldexpl: Fix link error on HP-UX 11.
11370         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
11371         LDEXPL_LIBM, using $ISNANL_LIBM.
11372
11373 2010-12-31  Eric Blake  <eblake@redhat.com>
11374
11375         ftello: avoid compilation failure with SunStudio c89
11376         * lib/ftello.c (ftello): Use lseek, not llseek.
11377
11378         tests: avoid failing coreutils tests on cygwin
11379         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
11380         (create_exe_shims_): Return 0 when skipping.
11381
11382 2010-12-31  Bruno Haible  <bruno@clisp.org>
11383
11384         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
11385         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
11386
11387 2010-12-31  Bruno Haible  <bruno@clisp.org>
11388
11389         waitpid: Fix link error in C++ mode.
11390         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
11391
11392 2010-12-31  Bruno Haible  <bruno@clisp.org>
11393
11394         isnan: Use GCC built-ins when possible.
11395         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
11396         __builtin_isnan.
11397         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
11398         (isnan): Define using GCC built-ins for GCC >= 4.0.
11399
11400 2010-12-31  Bruno Haible  <bruno@clisp.org>
11401
11402         isnand: Fix mistake.
11403         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
11404         __builtin_isnand.
11405
11406 2010-12-31  Bruno Haible  <bruno@clisp.org>
11407
11408         open: Avoid C++ error on HP-UX 11.
11409         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
11410
11411 2010-12-31  Bruno Haible  <bruno@clisp.org>
11412
11413         time_r: Add missing declarations on HP-UX 11.
11414         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
11415         instead of HAVE_LOCALTIME_R.
11416         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
11417         HAVE_LOCALTIME_R always.
11418         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
11419         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
11420         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
11421         HAVE_LOCALTIME_R.
11422         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
11423         * doc/posix-functions/localtime_r.texi: Likewise.
11424
11425 2010-12-29  Eric Blake  <eblake@redhat.com>
11426
11427         mountlist: tweak previous commit
11428         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
11429         Reported by Paul Eggert.
11430
11431         mountlist: fix local drive detection on cygwin
11432         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
11433         that works for cygwin.
11434
11435 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
11436
11437         ftoastr, snprintf: ftoastr + snprintf module
11438         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
11439         since the snprintf module now should be good enough here.
11440         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
11441         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
11442         and gl_MODULE_INDICATOR([snprintf]), but the former enables
11443         GNULIB_SNPRINTF only for the test directory, and the latter
11444         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
11445         seems to suffice by itself.
11446
11447 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
11448
11449         alloca: one step towards thread-safety
11450         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
11451         need for a static variable.  All callers changed.  This does not
11452         make the alloca replacement thread-safe, but it's one step.
11453
11454         tests: minor indenting change
11455         * tests/init.sh: Sync from coreutils housekeeping patch
11456         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
11457         to keep lines within 80 columns.
11458
11459 2010-12-28  Jim Meyering  <meyering@redhat.com>
11460
11461         regex: don't infloop on persistent failing calloc
11462         * lib/regexec.c (build_trtable): Return failure indication upon
11463         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
11464         In glibc, this was fixed for version 2.13:
11465         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
11466
11467 2010-12-28  Bruno Haible  <bruno@clisp.org>
11468             Paul Eggert <eggert@cs.ucla.edu>
11469
11470         linkat: Make implementation robust against system behaviour variations.
11471         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
11472         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
11473         way, and to -2 if it needs a generic runtime test.
11474         * lib/linkat.c (solaris_optimized_link_immediate,
11475         solaris_optimized_link_follow): New functions.
11476         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
11477         (check_same_link): Use it.
11478
11479 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
11480
11481         New module 'unigbrk/base'.
11482         * modules/unigbrk/base: New file.
11483         * lib/unigbrk.in.h: New file.
11484
11485         New module 'unigbrk/uc-gbrk-prop'.
11486         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
11487         * modules/unigbrk/uc-gbrk-prop: New file.
11488         * lib/unigbrk/gbrkprop.h: New file.
11489         * lib/unigbrk/uc-gbrk-prop.c: New file.
11490
11491         New module 'unigbrk/uc-is-grapheme-break'.
11492         * modules/unigbrk/uc-is-grapheme-break: New file.
11493         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
11494         * lib/unigbrk/uc-is-grapheme-break.c: New file.
11495         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
11496         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
11497         * tests/unigbrk/GraphemeBreakTest.txt: New file.
11498
11499         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
11500
11501 2010-12-27  Bruno Haible  <bruno@clisp.org>
11502
11503         linkat test: Avoid failure on Solaris 11 2010-11.
11504         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
11505
11506 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
11507
11508         utimens: work around glibc rounding bug on more platforms
11509         * lib/utimens.c (fdutimens): Work around rounding bug even if
11510         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
11511         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
11512
11513 2010-12-27  Bruno Haible  <bruno@clisp.org>
11514
11515         select tests: Improve comments.
11516         * tests/test-select.c (do_select): Add comments.
11517
11518 2010-12-27  Bruno Haible  <bruno@clisp.org>
11519
11520         select tests: Safer way of handling timeout.
11521         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
11522         at every invocation.
11523
11524 2010-12-27  Bruno Haible  <bruno@clisp.org>
11525
11526         select tests: Use 'bool' where appropriate.
11527         * tests/test-select.c (connect_to_socket): Change argument type to
11528         'bool'.
11529
11530 2010-12-27  Bruno Haible  <bruno@clisp.org>
11531
11532         select tests: Use existing modules.
11533         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
11534         (configure.ac): Don't test for unistd.h.
11535         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
11536         declared in <unistd.h>.
11537
11538 2010-12-27  Bruno Haible  <bruno@clisp.org>
11539
11540         mbrtowc: Work around a Solaris 7 bug.
11541         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
11542         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
11543         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
11544         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
11545         MBRTOWC_NULL_ARG1_BUG.
11546         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
11547         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
11548         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
11549         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
11550
11551 2010-12-27  Jim Meyering  <meyering@redhat.com>
11552
11553         read-file.c: tweak syntax
11554         * lib/read-file.c (fread_file): Remove space after "*" in function
11555         definitions.
11556
11557 2010-12-27  Bruno Haible  <bruno@clisp.org>
11558
11559         times test: Avoid gcc warnings on OSF/1.
11560         * tests/test-times.c (main): Cast printf arguments from clock_t to
11561         'long int'.
11562
11563 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
11564
11565         utimens: work around glibc rounding bug on older Linux kernels
11566         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
11567         on Linux with a glibc whose utimes might not work, then work
11568         around a longstanding glibc bug involving rounding rather than
11569         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
11570         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
11571
11572 2010-12-26  Bruno Haible  <bruno@clisp.org>
11573
11574         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
11575         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
11576         _GL_CXXALIAS_SYS.
11577         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11578
11579 2010-12-26  Bruno Haible  <bruno@clisp.org>
11580
11581         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
11582         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
11583         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
11584         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
11585         looking for the declaration.
11586         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
11587         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
11588         problem.
11589         * doc/posix-functions/inet_pton.texi: Likewise.
11590
11591 2010-12-26  Bruno Haible  <bruno@clisp.org>
11592
11593         arpa_inet: Use the common idioms with C++ support.
11594         * lib/arpa_inet.in.h: Include c++defs.h.
11595         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
11596         support.
11597         * modules/arpa_inet (Depends-on): Add c++defs.
11598         (Makefile.am): Substitute the contents of c++defs.h.
11599         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
11600         * modules/arpa_inet-c++-tests: New file.
11601         * tests/test-arpa_inet-c++.cc: New file.
11602
11603 2010-12-25  Bruno Haible  <bruno@clisp.org>
11604
11605         Fix more C++ link errors on Solaris 8.
11606         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
11607         $(LIB_EACCESS).
11608         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
11609         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
11610         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
11611         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
11612         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
11613
11614 2010-12-25  Bruno Haible  <bruno@clisp.org>
11615
11616         printf-posix: Fix link error when a non-GCC compiler is used.
11617         * lib/stdio.in.h (printf): When not using GCC, override printf
11618         correctly.
11619         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11620
11621 2010-12-25  Bruno Haible  <bruno@clisp.org>
11622
11623         strerror_r-posix: Update doc.
11624         * doc/posix-functions/strerror_r.texi: Update doc about the return
11625         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
11626
11627 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
11628
11629         utimens: simplify the logic of the previous change
11630         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
11631         This should not affect whether the test succeeds or fails.
11632
11633         utimens: configure better on hosts with NFS clock skew
11634         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
11635         uses the clock of the local host.  It might use the clock of the
11636         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
11637         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
11638
11639 2010-12-25  Bruno Haible  <bruno@clisp.org>
11640
11641         ptsname test: Avoid failure on Solaris.
11642         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
11643         open a pseudo-terminal; don't use BSD-style ptys.
11644         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
11645
11646 2010-12-25  Bruno Haible  <bruno@clisp.org>
11647
11648         ptsname: Avoid ERANGE failure on some systems.
11649         * lib/ptsname.c (buffer): Increase size.
11650
11651 2010-12-25  Bruno Haible  <bruno@clisp.org>
11652
11653         rename, renameat: Avoid test failures at NFS mounted locations.
11654         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
11655         so that subsequent mkdir calls succeed.
11656
11657 2010-12-25  Bruno Haible  <bruno@clisp.org>
11658
11659         iswblank: Fix C++ link error on Solaris 8.
11660         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
11661         _GL_FUNCDECL_SYS.
11662
11663 2010-12-25  Bruno Haible  <bruno@clisp.org>
11664
11665         unistd: Fix C++ link error on Solaris 8.
11666         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
11667
11668 2010-12-25  Bruno Haible  <bruno@clisp.org>
11669
11670         readlink doc: Mention an old glibc bug.
11671         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
11672
11673 2010-12-25  Bruno Haible  <bruno@clisp.org>
11674
11675         fcntl-h: Fix for use of C++ on glibc systems.
11676         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
11677         also on glibc systems in C++ mode.
11678         Reported by Gary V. Vaughan <gary@gnu.org>.
11679
11680 2010-12-25  Bruno Haible  <bruno@clisp.org>
11681
11682         roundl-ieee: Make it work on OSF/1 5.1 with cc.
11683         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
11684
11685 2010-12-25  Bruno Haible  <bruno@clisp.org>
11686
11687         truncl-ieee: Make it work on OSF/1 5.1 with cc.
11688         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
11689         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
11690         test whether truncl works according to ISO C 99 with IEC 60559.
11691         * m4/truncl-ieee.m4: New file.
11692         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
11693         m4/signbit.m4.
11694         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
11695
11696 2010-12-25  Bruno Haible  <bruno@clisp.org>
11697
11698         ceill-ieee: Make it work on OSF/1 5.1 with cc.
11699         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
11700         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
11701         test whether ceill works according to ISO C 99 with IEC 60559.
11702         * m4/ceill-ieee.m4: New file.
11703         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
11704         m4/signbit.m4.
11705         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
11706
11707 2010-12-25  Bruno Haible  <bruno@clisp.org>
11708
11709         Ensure all prerequisites of <wchar.h> are included.
11710         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
11711         before <wchar.h>.
11712         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
11713         gl_MBRLEN_NUL_RETVAL): Likewise.
11714         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
11715         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
11716         AC_FUNC_MBRTOWC): Likewise.
11717         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
11718         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
11719         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
11720         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
11721         Likewise.
11722         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
11723         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
11724         (gl_WCHAR_H): Improve comments.
11725         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
11726
11727 2010-12-25  Bruno Haible  <bruno@clisp.org>
11728
11729         strtok_r: Fix C syntax error in autoconf macro.
11730         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
11731         characters in test program.
11732
11733 2010-12-24  Bruno Haible  <bruno@clisp.org>
11734
11735         ceil, trunc, round: Fix gcc warnings.
11736         * lib/ceil.c (MIN): Undefine before redefining.
11737         * lib/trunc.c (MIN): Likewise.
11738         * lib/round.c (MIN): Likewise.
11739         Include <math.h> first.
11740
11741 2010-12-24  Bruno Haible  <bruno@clisp.org>
11742
11743         select tests: Avoid failures on OSF/1 5.1.
11744         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
11745         failure of closing the last socket; it may fail with ECONNRESET.
11746
11747 2010-12-24  Eric Blake  <eblake@redhat.com>
11748
11749         stdint: avoid HP-UX 10.20 preprocessor bug
11750         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
11751         than #if.
11752         * tests/test-floor2.c (main): Likewise.
11753         Reported by Peter O'Gorman.
11754
11755         pipe: make obsoletion transition easier
11756         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
11757         * modules/pipe (Files): Include revived file.
11758         (Include): Drop reference, to mirror getdate's behavior.
11759
11760 2010-12-24  Bruno Haible  <bruno@clisp.org>
11761
11762         sys_socket: Hide mismatch of declarations on NonStop Kernel.
11763         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
11764         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
11765         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11766
11767 2010-12-24  Bruno Haible  <bruno@clisp.org>
11768
11769         gethostname: Ensure declaration on NonStop Kernel.
11770         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
11771         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11772
11773 2010-12-24  Bruno Haible  <bruno@clisp.org>
11774
11775         sys_select: Ensure all necessary types on NonStop Kernel.
11776         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
11777         include <sys/time.h>.
11778         * doc/posix-headers/sys_select.texi: Mention that it's missing on
11779         NonStop Kernel.
11780         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11781
11782 2010-12-24  Bruno Haible  <bruno@clisp.org>
11783
11784         sys_select: Remove unneeded include.
11785         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
11786         have <sys/select.h>.
11787
11788 2010-12-24  Bruno Haible  <bruno@clisp.org>
11789
11790         gethostname: Provide a fallback for HOST_NAME_MAX.
11791         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
11792         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
11793         instead.
11794         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11795
11796 2010-12-24  Bruno Haible  <bruno@clisp.org>
11797
11798         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
11799         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
11800         (SA_RESTART): Likewise.
11801         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11802
11803 2010-12-24  Bruno Haible  <bruno@clisp.org>
11804
11805         signal: Define NSIG.
11806         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
11807         * tests/test-signal.c (nsig): New variable.
11808         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11809
11810 2010-12-24  Bruno Haible  <bruno@clisp.org>
11811
11812         rename, renameat: Avoid test failures on OSF/1 5.1.
11813         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
11814         alternative error codes.
11815         * tests/test-renameat.c (main): Likewise.
11816
11817 2010-12-24  Bruno Haible  <bruno@clisp.org>
11818
11819         *printf: Detect large precisions bug on Solaris 10/SPARC.
11820         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
11821         by Paul Eggert.
11822         * tests/test-snprintf-posix.h (test_function): Add this test code here
11823         too.
11824         * tests/test-sprintf-posix.h (test_function): Likewise.
11825         * tests/test-vasnprintf-posix.c (test_function): Likewise.
11826         * tests/test-vasprintf-posix.c (test_function): Likewise.
11827         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
11828         around by gnulib.
11829         * doc/posix-functions/printf.texi: Likewise.
11830         * doc/posix-functions/snprintf.texi: Likewise.
11831         * doc/posix-functions/sprintf.texi: Likewise.
11832         * doc/posix-functions/vfprintf.texi: Likewise.
11833         * doc/posix-functions/vprintf.texi: Likewise.
11834         * doc/posix-functions/vsnprintf.texi: Likewise.
11835         * doc/posix-functions/vsprintf.texi: Likewise.
11836         * doc/posix-functions/dprintf.texi: Undo last commit.
11837         * doc/posix-functions/vdprintf.texi: Likewise.
11838
11839 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
11840
11841         tests: port test-fdutimensat.c to Solaris 8
11842         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
11843         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
11844         On Solaris 8, it fails with errno == ENOSYS, because there is no
11845         futimens (so it can't use the fd), and there is no lutimens (so it
11846         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
11847
11848         vsnprintf: make more consistent with snprintf; doc fixes
11849
11850         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
11851         the byte count return problem was promoted from the snprintf-posix
11852         to the snprintf module.
11853         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
11854         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
11855         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
11856         * tests/test-snprintf.c (main): Check the byte count returned.
11857         * tests/test-vsnprintf.c (main): Likewise.
11858
11859 2010-12-23  Eric Blake  <eblake@redhat.com>
11860
11861         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
11862         * modules/sigpipe (License): Relax license.
11863
11864 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
11865
11866         doc: document Solaris printf bug with large float precisions
11867         * doc/posix-functions/dprintf.texi (dprintf):
11868         * doc/posix-functions/fprintf.texi (fprintf):
11869         * doc/posix-functions/printf.texi (printf):
11870         * doc/posix-functions/snprintf.texi (snprintf):
11871         * doc/posix-functions/sprintf.texi (sprintf):
11872         * doc/posix-functions/vdprintf.texi (vdprintf):
11873         * doc/posix-functions/vfprintf.texi (vfprintf):
11874         * doc/posix-functions/vprintf.texi (vprintf):
11875         * doc/posix-functions/vsnprintf.texi (vsnprintf):
11876         * doc/posix-functions/vsprintf.texi (vsprintf):
11877         Mention that these functions mishandle large floating point
11878         precisions on Solaris 10.  The same bug is also present in Solaris
11879         8, and I assume earlier.  This causes "cd gnulib-tests; make
11880         check" to fail on Solaris 8 (and I assume, later) when building
11881         the latest coreutils, in test-vasprintf-posix's call to
11882         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
11883         the wide flavors (e.g., wprintf) so this patch just updates the
11884         documentation for the narrow ones.
11885
11886         test-posixtm.c: add two tests
11887         * tests/test-posixtm.c: Add two tests, to highlight the
11888         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
11889         around this bug; this is merely to document it.
11890
11891 2010-12-22  Bruno Haible  <bruno@clisp.org>
11892
11893         getlogin_r: Work around portability problem on OSF/1.
11894         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
11895         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
11896         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
11897         test for a truncated result.
11898         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
11899         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
11900         * modules/getlogin_r (Depends-on): Add memchr.
11901         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
11902
11903 2010-12-22  Bruno Haible  <bruno@clisp.org>
11904
11905         ptsname: Avoid test failure on OSF/1 5.1.
11906         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
11907         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
11908         (same_slave): New function.
11909         (main): Use it to compare ptsname's result with the expected file name.
11910
11911 2010-12-22  Bruno Haible  <bruno@clisp.org>
11912
11913         Port extended stdio modules to HP NonStop Kernel.
11914         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
11915         macros.
11916         * lib/fbufmode.c: Update comments.
11917         * lib/fflush.c: Likewise.
11918         * lib/fpurge.c: Likewise.
11919         * lib/freadable.c: Likewise.
11920         * lib/freadahead.c: Likewise.
11921         * lib/freading.c: Likewise.
11922         * lib/freadptr.c: Likewise.
11923         * lib/freadseek.c: Likewise.
11924         * lib/fseeko.c: Likewise.
11925         * lib/fseterr.c: Likewise.
11926         * lib/fwritable.c: Likewise.
11927         * lib/fwriting.c: Likewise.
11928         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11929
11930 2010-12-22  Bruno Haible  <bruno@clisp.org>
11931
11932         ttyname_r: Work around bug on OSF/1 5.1.
11933         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
11934         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
11935         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
11936         present.
11937         * lib/ttyname_r.c (ttyname_r): Update comments.
11938
11939 2010-12-22  Bruno Haible  <bruno@clisp.org>
11940
11941         round: Implement result sign according to IEEE 754.
11942         * lib/round.c (MIN, MINUS_ZERO): New macros.
11943         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
11944         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
11945         * tests/test-round-ieee.c (main): Likewise.
11946         * tests/test-roundl-ieee.c (main): Likewise.
11947
11948         trunc: Implement result sign according to IEEE 754.
11949         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
11950         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
11951         * tests/test-trunc2.c: Include minus-zero.h.
11952         (MINUS_ZERO): New macro.
11953         (trunc_reference): Keep in sync with lib/trunc.c.
11954         * tests/test-truncf2.c: Include minus-zero.h.
11955         (MINUS_ZERO): New macro.
11956         (truncf_reference): Keep in sync with lib/trunc.c.
11957         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
11958         * tests/test-trunc-ieee.c (main): Likewise.
11959         * tests/test-truncl-ieee.c (main): Likewise.
11960
11961         ceil: Implement result sign according to IEEE 754.
11962         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
11963         (FUNC): Return -0.0 for -1 < x < 0.
11964         * tests/test-ceil2.c: Include minus-zero.h.
11965         (MINUS_ZERO): New macro.
11966         (ceil_reference): Keep in sync with lib/ceil.c.
11967         * tests/test-ceilf2.c: Include minus-zero.h.
11968         (MINUS_ZERO): New macro.
11969         (ceilf_reference): Keep in sync with lib/ceil.c.
11970         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
11971         * tests/test-ceil-ieee.c (main): Likewise.
11972         * tests/test-ceill-ieee.c (main): Likewise.
11973
11974         floor: Implement result sign according to IEEE 754.
11975         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
11976         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
11977         * tests/test-floorf2.c (floorf_reference): Likewise.
11978         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
11979         * tests/test-floor-ieee.c (main): Likewise.
11980         * tests/test-floorl-ieee.c (main): Likewise.
11981
11982 2010-12-22  Bruno Haible  <bruno@clisp.org>
11983
11984         getaddrinfo: Update doc.
11985         * doc/posix-functions/gai_strerror.texi: Return type is also different
11986         on AIX and HP-UX.
11987
11988 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
11989
11990         getaddrinfo, inet_ntop: Update doc for Solaris.
11991         * doc/posix-functions/gai_strerror.texi: Return type is also an
11992         issue on Solaris 9 and earlier.
11993         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
11994         on Solaris 10 and earlier.
11995
11996 2010-12-21  Bruno Haible  <bruno@clisp.org>
11997
11998         New module 'roundl-ieee'.
11999         * modules/roundl-ieee: New file.
12000         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
12001         test whether roundl works according to ISO C 99 with IEC 60559.
12002         * m4/roundl-ieee.m4: New file.
12003         * modules/roundl-ieee-tests: New file.
12004         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
12005         * tests/test-roundl.c (main): Remove signbit tests.
12006         * modules/roundl-tests (Depends-on): Remove signbit.
12007         * doc/posix-functions/roundl.texi: Mention the new module.
12008
12009 2010-12-21  Bruno Haible  <bruno@clisp.org>
12010
12011         New module 'truncl-ieee'.
12012         * modules/truncl-ieee: New file.
12013         * modules/truncl-ieee-tests: New file.
12014         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
12015         * tests/test-truncl.c (main): Remove signbit tests.
12016         * modules/truncl-tests (Depends-on): Remove signbit.
12017         * doc/posix-functions/truncl.texi: Mention the new module.
12018
12019 2010-12-21  Bruno Haible  <bruno@clisp.org>
12020
12021         New module 'ceill-ieee'.
12022         * modules/ceill-ieee: New file.
12023         * modules/ceill-ieee-tests: New file.
12024         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
12025         * tests/test-ceill.c (main): Remove signbit tests.
12026         * modules/ceill-tests (Depends-on): Remove signbit.
12027         * doc/posix-functions/ceill.texi: Mention the new module.
12028
12029 2010-12-21  Bruno Haible  <bruno@clisp.org>
12030
12031         New module 'floorl-ieee'.
12032         * modules/floorl-ieee: New file.
12033         * modules/floorl-ieee-tests: New file.
12034         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
12035         * tests/test-floorl.c (main): Remove signbit tests.
12036         * modules/floorl-tests (Depends-on): Remove signbit.
12037         * doc/posix-functions/floorl.texi: Mention the new module.
12038
12039 2010-12-21  Bruno Haible  <bruno@clisp.org>
12040
12041         New module 'round-ieee'.
12042         * modules/round-ieee: New file.
12043         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
12044         whether round works according to ISO C 99 with IEC 60559.
12045         * m4/round-ieee.m4: New file.
12046         * modules/round-ieee-tests: New file.
12047         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
12048         * tests/test-round1.c (main): Remove signbit tests.
12049         * modules/round-tests (Depends-on): Remove 'signbit'.
12050         * doc/posix-functions/round.texi: Mention the new module.
12051
12052 2010-12-21  Bruno Haible  <bruno@clisp.org>
12053
12054         New module 'trunc-ieee'.
12055         * modules/trunc-ieee: New file.
12056         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
12057         whether trunc works according to ISO C 99 with IEC 60559.
12058         * m4/trunc-ieee.m4: New file.
12059         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
12060         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
12061         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
12062         * modules/trunc-ieee-tests: New file.
12063         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
12064         * tests/test-trunc1.c (main): Remove signbit tests.
12065         * modules/trunc-tests (Depends-on): Remove 'signbit'.
12066         * doc/posix-functions/trunc.texi: Mention the new module.
12067
12068 2010-12-21  Bruno Haible  <bruno@clisp.org>
12069
12070         New module 'ceil-ieee'.
12071         * modules/ceil-ieee: New file.
12072         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
12073         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
12074         ISO C 99 with IEC 60559.
12075         * m4/ceil-ieee.m4: New file.
12076         * modules/ceil (Files): Add lib/ceil.c.
12077         (Depends-on): Add 'float'.
12078         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
12079         * lib/math.in.h (ceil): New declaration.
12080         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
12081         REPLACE_CEIL.
12082         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
12083         * modules/ceil-ieee-tests: New file.
12084         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
12085         * tests/test-math-c++.cc: Check the signature of 'ceil'.
12086         * doc/posix-functions/ceil.texi: Mention the new module.
12087
12088 2010-12-21  Bruno Haible  <bruno@clisp.org>
12089
12090         New module 'floor-ieee'.
12091         * modules/floor-ieee: New file.
12092         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
12093         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
12094         ISO C 99 with IEC 60559.
12095         * m4/floor-ieee.m4: New file.
12096         * modules/floor (Files): Add lib/floor.c.
12097         (Depends-on): Add 'float'.
12098         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
12099         * lib/math.in.h (floor): New declaration.
12100         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
12101         REPLACE_FLOOR.
12102         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
12103         * modules/floor-ieee-tests: New file.
12104         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
12105         * tests/test-math-c++.cc: Check the signature of 'floor'.
12106         * doc/posix-functions/floor.texi: Mention the new module.
12107
12108 2010-12-21  Bruno Haible  <bruno@clisp.org>
12109
12110         New module 'roundf-ieee'.
12111         * modules/roundf-ieee: New file.
12112         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
12113         test whether roundf works according to ISO C 99 with IEC 60559.
12114         * m4/roundf-ieee.m4: New file.
12115         * modules/roundf-ieee-tests: New file.
12116         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
12117         * tests/test-roundf1.c (main): Remove signbit tests.
12118         * modules/roundf-tests (Depends-on): Remove 'signbit'.
12119         * doc/posix-functions/roundf.texi: Mention the new module.
12120
12121 2010-12-21  Bruno Haible  <bruno@clisp.org>
12122
12123         New module 'truncf-ieee'.
12124         * modules/truncf-ieee: New file.
12125         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
12126         test whether truncf works according to ISO C 99 with IEC 60559.
12127         * m4/truncf-ieee.m4: New file.
12128         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
12129         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
12130         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
12131         * modules/truncf-ieee-tests: New file.
12132         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
12133         * tests/test-truncf1.c (main): Remove signbit tests.
12134         * modules/truncf-tests (Depends-on): Remove 'signbit'.
12135         * doc/posix-functions/truncf.texi: Mention the new module.
12136
12137 2010-12-21  Bruno Haible  <bruno@clisp.org>
12138
12139         New module 'ceilf-ieee'.
12140         * modules/ceilf-ieee: New file.
12141         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
12142         test whether ceilf works according to ISO C 99 with IEC 60559.
12143         * m4/ceilf-ieee.m4: New file.
12144         * modules/ceilf-ieee-tests: New file.
12145         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
12146         * tests/test-ceilf1.c (main): Remove signbit tests.
12147         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
12148         * doc/posix-functions/ceilf.texi: Mention the new module.
12149
12150 2010-12-21  Bruno Haible  <bruno@clisp.org>
12151
12152         New module 'floorf-ieee'.
12153         * modules/floorf-ieee: New file.
12154         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
12155         test whether floorf works according to ISO C 99 with IEC 60559.
12156         * m4/floorf-ieee.m4: New file.
12157         * modules/floorf-ieee-tests: New file.
12158         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
12159         * tests/test-floorf1.c (main): Remove signbit tests.
12160         * modules/floorf-tests (Depends-on): Remove 'signbit'.
12161         * doc/posix-functions/floorf.texi: Mention the new module.
12162
12163 2010-12-21  Bruno Haible  <bruno@clisp.org>
12164
12165         Support for minus zero in autoconf macros.
12166         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
12167         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
12168         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
12169         * tests/minus-zero.h: Update comments.
12170
12171 2010-12-21  Bruno Haible  <bruno@clisp.org>
12172
12173         Tests for module 'ceil'.
12174         * modules/ceil-tests: New file.
12175         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
12176         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
12177
12178 2010-12-21  Bruno Haible  <bruno@clisp.org>
12179
12180         Tests for module 'floor'.
12181         * modules/floor-tests: New file.
12182         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
12183         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
12184
12185 2010-12-21  Bruno Haible  <bruno@clisp.org>
12186
12187         math: Fix indentation.
12188         * lib/math.in.h (floorf): Fix indentation.
12189
12190 2010-12-21  Bruno Haible  <bruno@clisp.org>
12191
12192         Fix cross-compilation guesses on Solaris.
12193         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
12194         not match "solaris2.10".
12195         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
12196         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
12197         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
12198
12199 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
12200
12201         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
12202         This fixes a problem observed with the latest coreutils snapshot
12203         that caused a test to fail on Solaris 8.  src/csplit.c's call
12204         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
12205         earlier, instead of returning the number of bytes that would have
12206         been generated; this causes csplit to incorrectly report memory
12207         exhaustion.
12208         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
12209         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
12210         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
12211         comments to match.
12212         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
12213         Fix typo in matching older versions of Solaris: "solaris2.10"
12214         is matched by the shell pattern "solaris2.[0-9]*".  This matters
12215         only for guessing while cross-compiling.
12216         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
12217
12218 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
12219
12220         ftoastr: fix comment again
12221         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
12222         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
12223         Also, simplify example a bit by using flags = 0.
12224
12225 2010-12-20  Bruno Haible  <bruno@clisp.org>
12226
12227         round*, trunc*: Update documentation regarding glibc.
12228         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
12229         * doc/posix-functions/round.texi: Likewise.
12230         * doc/posix-functions/roundl.texi: Likewise.
12231         * doc/posix-functions/truncf.texi: Likewise.
12232         * doc/posix-functions/trunc.texi: Likewise.
12233         * doc/posix-functions/truncl.texi: Likewise.
12234
12235 2010-12-20  Bruno Haible  <bruno@clisp.org>
12236
12237         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
12238         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
12239         * doc/posix-functions/round.texi: Likewise.
12240         * doc/posix-functions/roundl.texi: Likewise.
12241
12242 2010-12-20  Bruno Haible  <bruno@clisp.org>
12243
12244         ttyname_r: Add missing declaration on HP-UX 11.
12245         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
12246         HAVE_TTYNAME_R.
12247         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
12248         declared. Set HAVE_TTYNAME_R always.
12249         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12250         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
12251         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
12252         HAVE_TTYNAME_R.
12253         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
12254
12255 2010-12-20  Bruno Haible  <bruno@clisp.org>
12256
12257         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
12258         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
12259         * doc/posix-functions/getlogin_r.texi: Likewise.
12260         * tests/test-getlogin.c: Include <errno.h>.
12261         (main): Avoid test failure on HP-UX 11.11.
12262         * tests/test-getlogin_r.c (main): Likewise.
12263
12264 2010-12-20  Bruno Haible  <bruno@clisp.org>
12265
12266         getlogin_r: Add missing declaration on HP-UX 11.
12267         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
12268         declared also when it exists as a function.
12269         * doc/posix-functions/getlogin_r.texi: Document this workaround.
12270
12271 2010-12-20  Bruno Haible  <bruno@clisp.org>
12272
12273         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
12274         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
12275         through wcrtomb.
12276
12277 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
12278
12279         ftoastr: fix comment
12280         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
12281         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
12282
12283 2010-12-19  Bruno Haible  <bruno@clisp.org>
12284
12285         isnan: Ensure it is a macro.
12286         * lib/math.in.h (isnan): Define as a macro if not already a macro.
12287         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
12288         Solaris.
12289
12290 2010-12-19  Bruno Haible  <bruno@clisp.org>
12291
12292         ldexpl test: Fix link error on OSF/1 5.1.
12293         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
12294
12295 2010-12-19  Bruno Haible  <bruno@clisp.org>
12296
12297         wctype: Make it work in C++ mode on OSF/1 5.1.
12298         * lib/wctype.in.h (iswblank): Declare but not define here.
12299         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
12300         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
12301         * modules/wctype (Files): Add lib/iswblank.c.
12302
12303 2010-12-19  Bruno Haible  <bruno@clisp.org>
12304
12305         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
12306         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
12307         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
12308
12309 2010-12-19  Bruno Haible  <bruno@clisp.org>
12310
12311         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
12312         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
12313         _POSIX_PII_SOCKET.
12314         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
12315         * doc/posix-functions/recvfrom.texi: Likewise.
12316         * doc/posix-functions/send.texi: Likewise.
12317         * doc/posix-functions/sendto.texi: Likewise.
12318
12319 2010-12-19  Bruno Haible  <bruno@clisp.org>
12320
12321         tcgetsid: Add missing declaration on OSF/1 5.1.
12322         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
12323         HAVE_TCGETSID.
12324         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
12325         Don't set HAVE_TCGETSID.
12326         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
12327         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
12328         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
12329         HAVE_TCGETSID.
12330         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
12331
12332 2010-12-19  Bruno Haible  <bruno@clisp.org>
12333
12334         stdio: Fix problem with popen() declaration on OSF/1 5.1.
12335         * lib/stdio.in.h: During the include_next statement, let recursive
12336         includes of this file include only the system header file.
12337
12338 2010-12-19  Bruno Haible  <bruno@clisp.org>
12339
12340         iconv_open: Fix regression from 2010-12-04.
12341         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
12342         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
12343
12344 2010-12-19  Bruno Haible  <bruno@clisp.org>
12345
12346         stdbool test: Avoid a gcc warning.
12347         * tests/test-stdbool.c (main): Fail if e1 is false.
12348         Reported by Jim Meyering.
12349
12350 2010-12-19  Jim Meyering  <meyering@redhat.com>
12351
12352         setenv: restore to working order
12353         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
12354         mistakenly removed.
12355         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
12356         HAVE_SETENV.
12357         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
12358         HAVE_SETENV.
12359
12360 2010-12-19  Bruno Haible  <bruno@clisp.org>
12361
12362         Document some different function declarations on OSF/1 5.1.
12363         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
12364         * doc/posix-functions/inet_ntop.texi: Likewise.
12365         * doc/posix-functions/gethostname.texi: Likewise.
12366         * lib/unistd.in.h (gethostname): Update comment.
12367
12368 2010-12-19  Bruno Haible  <bruno@clisp.org>
12369
12370         doc: Mention vasprintf-posix module.
12371         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
12372         the 'vasprintf-posix' module.
12373         * doc/glibc-functions/vasprintf.texi: Likewise.
12374
12375 2010-12-19  Bruno Haible  <bruno@clisp.org>
12376
12377         unsetenv: Add missing declaration on OSF/1 5.1.
12378         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
12379         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
12380         Don't set HAVE_UNSETENV. In the test program, set _BSD.
12381         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
12382         not HAVE_UNSETENV.
12383         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
12384         HAVE_UNSETENV.
12385         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
12386
12387 2010-12-19  Bruno Haible  <bruno@clisp.org>
12388
12389         setenv: Add missing declaration on OSF/1 5.1.
12390         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
12391         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
12392         declared. Don't set HAVE_SETENV.
12393         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
12394         not HAVE_SETENV.
12395         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
12396         HAVE_SETENV.
12397         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
12398
12399 2010-12-19  Bruno Haible  <bruno@clisp.org>
12400
12401         nl_langinfo tests: Avoid gcc warning.
12402         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
12403
12404 2010-12-19  Bruno Haible  <bruno@clisp.org>
12405
12406         mknod: Avoid error in C++ mode on OSF/1 with GCC.
12407         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
12408         _GL_CXXALIAS_SYS.
12409
12410 2010-12-19  Bruno Haible  <bruno@clisp.org>
12411
12412         stdbool: Relax test.
12413         * tests/test-stdbool.c (e): Don't require that casts from a variable's
12414         address to 'bool' work in static initializer, for compilers other than
12415         GCC.
12416
12417 2010-12-19  Bruno Haible  <bruno@clisp.org>
12418
12419         ftello: Add missing declaration on OSF/1 5.1.
12420         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
12421         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
12422         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
12423         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
12424         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
12425
12426 2010-12-19  Bruno Haible  <bruno@clisp.org>
12427
12428         fseeko: Add missing declaration on OSF/1 5.1.
12429         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
12430         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
12431         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
12432         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
12433         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
12434
12435 2010-12-19  Bruno Haible  <bruno@clisp.org>
12436
12437         fchdir: Add missing declaration on OSF/1 5.1.
12438         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
12439         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
12440         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
12441         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
12442         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
12443
12444 2010-12-19  Bruno Haible  <bruno@clisp.org>
12445
12446         relocatable-prog-wrapper: Separate from relocatable-prog.
12447         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
12448         uninstall-relocwrapper rule here.
12449         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
12450         Reported by Ian Beckwith <ianb@erislabs.net>.
12451
12452 2010-12-19  Bruno Haible  <bruno@clisp.org>
12453
12454         unistr/u8-mbsnlen: Add missing dependency.
12455         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
12456         Reported by Ian Beckwith <ianb@erislabs.net>.
12457
12458 2010-12-19  Bruno Haible  <bruno@clisp.org>
12459
12460         iconv: Make it possible again to use this module without 'iconv-h'.
12461         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
12462         if it is not defined.
12463         Reported by Ian Beckwith <ianb@erislabs.net>.
12464
12465 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
12466
12467         acl: port to Solaris 8 when copying from tmpfs to ufs
12468         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
12469         error number.  Problem observed on Solaris 8 with latest
12470         coreutils, with "mv A B", where A is on a tmpfs file system and B
12471         is on a ufs file system.  This caused coreutils' mv/part-symlink
12472         test to fail.
12473
12474         tests: set fail=0 at start
12475         * tests/init.sh (setup_): Move fail=0 initialization here ...
12476         (mktempd_): ... from here, so that tests can rely on fail being
12477         set to 0 initially.  This fixes a problem in coreutils; see:
12478         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
12479
12480 2010-12-18  Bruno Haible  <bruno@clisp.org>
12481
12482         memmem-simple: Stylistic changes.
12483         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
12484         Fix preprocessor directive indentation.
12485
12486 2010-12-15  Pádraig Brady <P@draigBrady.com>
12487
12488         memmem, memmem-simple: reorganize and expand empty needle check
12489         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
12490         functional checks to memmem-simple so that one has a fully functional
12491         memmem by using just this module.
12492         Restrict the performance only check to the memmem module.
12493         Also expand the empty needle check to ensure the correct
12494         pointer is returned, not just a non NULL pointer.
12495         * doc/glibc-functions/memmem.texi: Rearrange the portability
12496         documentation to correlate with the rearranged checks.
12497         Clarify exactly how the memmem and memmem-simple modules
12498         relate to each other.
12499
12500 2010-12-15  Pádraig Brady <P@draigBrady.com>
12501             Bruno Haible  <bruno@clisp.org>
12502
12503         Improve cross-compilation guesses for uClibc.
12504         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
12505         that uClibc does not have the glibc bug.
12506         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
12507         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
12508
12509 2010-12-14  Eric Blake  <eblake@redhat.com>
12510
12511         configmake: provide fallbacks for oldest supported autotools
12512         * m4/configmake.m4: New file.
12513         * modules/configmake (Files): Ship it.
12514         (configure.ac): Use it to guarantee fallbacks.
12515
12516 2010-12-13  Pádraig Brady <P@draigBrady.com>
12517
12518         read-file: Improve handling of large files
12519         * lib/read-file.c (fread_file): Minimize realloc()s
12520         for regular files, and better manage sizes around SIZE_MAX.
12521
12522 2010-12-13  Eric Blake  <eblake@redhat.com>
12523
12524         cloexec, fcntl: relax license
12525         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
12526         consent from all contributors.
12527         * modules/fcntl (License): Likewise.
12528
12529 2010-12-10  Bruno Haible  <bruno@clisp.org>
12530
12531         Tests for module 'pipe-posix'.
12532         * modules/pipe-posix-tests: New file.
12533         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
12534
12535 2010-12-10  Bruno Haible  <bruno@clisp.org>
12536
12537         pipe-posix: Make it work in C++ mode.
12538         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
12539         (pipe): Use common idiom, not a macro definition.
12540         * lib/pipe.c: New file.
12541         * m4/pipe.m4: New file.
12542         * modules/pipe-posix (Description): Enhance.
12543         (Files): Add lib/pipe.c, m4/pipe.m4.
12544         (configure.ac): Invoke gl_FUNC_PIPE.
12545         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
12546         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
12547         * tests/test-unistd-c++.cc: Check the signature of pipe.
12548
12549 2010-12-10  Bruno Haible  <bruno@clisp.org>
12550
12551         Rename module 'pipe' to 'spawn-pipe'.
12552         * modules/spawn-pipe: New file, renamed from modules/pipe.
12553         (Files, configure.ac, Makefile.am): Update.
12554         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
12555         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
12556         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
12557         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
12558         "spawn-pipe.h" instead of "pipe.h".
12559         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
12560         to gl_SPAWN_PIPE.
12561         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
12562         (Files, Makefile.am): Update.
12563         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
12564         Update.
12565         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
12566         Include "spawn-pipe.h" instead of "pipe.h".
12567         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
12568         * lib/javacomp.c: Likewise.
12569         * lib/javaversion.c: Likewise.
12570         * lib/pipe-filter-gi.c: Likewise.
12571         * lib/pipe-filter-ii.c: Likewise.
12572         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
12573         * modules/javacomp (Depends-on): Likewise.
12574         * modules/javaversion (Depends-on): Likewise.
12575         * modules/pipe-filter-gi (Depends-on): Likewise.
12576         * modules/pipe-filter-ii (Depends-on): Likewise.
12577         * MODULES.html.sh (Executing programs): Update.
12578         * NEWS: Mention the change.
12579
12580 2010-12-10  Eric Blake  <eblake@redhat.com>
12581
12582         pipe-posix: new module
12583         * modules/pipe-posix: New file.
12584         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
12585         (gl_UNISTD_H): Check for declaration.
12586         * modules/unistd (Makefile.am): Substitute it.
12587         * lib/unistd.in.h (pipe): Provide it for mingw.
12588         * doc/posix-functions/pipe.texi (pipe): Update documentation.
12589         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
12590
12591 2010-12-07  Bruno Haible  <bruno@clisp.org>
12592
12593         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
12594         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
12595         u8_strcmp_gnu.
12596         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
12597
12598 2010-12-06  Bruno Haible  <bruno@clisp.org>
12599
12600         Update internal documentation.
12601         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
12602
12603 2010-12-04  Bruno Haible  <bruno@clisp.org>
12604
12605         Put more information about failed tests into the test return codes.
12606         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
12607         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
12608         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
12609         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
12610         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
12611         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
12612         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
12613         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
12614         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
12615         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
12616         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
12617         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
12618         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
12619         * m4/stdint.m4 (gl_STDINT_H): Likewise.
12620         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
12621         returns a bit mask.
12622         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
12623         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
12624         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
12625         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
12626         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
12627         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
12628         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
12629         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
12630         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
12631         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
12632         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
12633         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
12634         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
12635         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
12636         * m4/link.m4 (gl_FUNC_LINK): Likewise.
12637         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
12638         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
12639         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
12640         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
12641         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
12642         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
12643         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
12644         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
12645         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
12646         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
12647         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
12648         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
12649         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
12650         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
12651         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
12652         gl_PRINTF_PRECISION): Likewise.
12653         * m4/regex.m4 (gl_REGEX): Likewise.
12654         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
12655         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
12656         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
12657         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
12658         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
12659         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
12660         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
12661         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
12662         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
12663         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
12664         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
12665         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
12666         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
12667         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
12668         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
12669         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
12670         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
12671         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
12672         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
12673         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
12674         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
12675         enumerated value.
12676         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
12677
12678 2010-12-04  Bruno Haible  <bruno@clisp.org>
12679
12680         Update for Solaris 11 2010-11.
12681         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
12682         Express, released in November 2010.
12683
12684 2010-12-04  Bruno Haible  <bruno@clisp.org>
12685
12686         nproc: Relax license.
12687         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
12688         and Paul Eggert.
12689         Requested by Ludovic Courtès <ludo@gnu.org>.
12690
12691 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
12692
12693         utimecmp: fine-grained src to nearby coarse-grained dest
12694
12695         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
12696         and the source is on a file system with higher-resolution time
12697         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
12698         not work, and the time stamps are close together, the algorithm to
12699         determine the exact resolution from the read-back mtime was buggy:
12700         it had a "!=" where it should have had an "==".  This bug has been
12701         in the code ever since it was introduced to gnulib.
12702         Problem reported by Dan Jacobson in
12703         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
12704
12705 2010-11-30  Bruno Haible  <bruno@clisp.org>
12706
12707         strerror_r-posix: Fix autoconf test.
12708         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
12709
12710 2010-11-28  Bruno Haible  <bruno@clisp.org>
12711             Paul Eggert  <eggert@cs.ucla.edu>
12712
12713         Tests for module 'getdomainname'.
12714         * modules/getdomainname-tests: New file.
12715         * tests/test-getdomainname.c: New file, based on
12716         tests/test-gethostname.c.
12717
12718 2010-11-28  Bruno Haible  <bruno@clisp.org>
12719             Paul Eggert  <eggert@cs.ucla.edu>
12720
12721         getdomainname: Use the system function when possible.
12722         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
12723         (getdomainname): Replace if needed. Provide the declaration if it is
12724         missing. Don't use _GL_CXXALIAS_SYS_CAST.
12725         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
12726         (getdomainname): When the system has getdomainname, call the system
12727         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
12728         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
12729         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
12730         found in libnsl. Look for the declaration also in <netdb.h>. Replace
12731         the function if its second argument is of type 'int' or if it is found
12732         in libnsl.
12733         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
12734         <sys/systeminfo.h> and sysinfo().
12735         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
12736         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12737         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
12738         HAVE_GETDOMAINNAME.
12739         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
12740         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
12741         * doc/glibc-functions/getdomainname.texi: Document the problems with
12742         the getdomainname declaration.
12743
12744 2010-11-28  Bruno Haible  <bruno@clisp.org>
12745
12746         sys_socket: Ensure ss_family field on AIX.
12747         * lib/sys_socket.in.h (ss_family): New macro definition.
12748         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
12749         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
12750         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
12751         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
12752         * modules/sys_socket (Makefile.am): Substitute
12753         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
12754         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
12755
12756 2010-11-27  Bruno Haible  <bruno@clisp.org>
12757
12758         readline: Improve configure output.
12759         * m4/readline.m4 (gl_FUNC_READLINE): Make the
12760         "checking for readline..." result understandable.
12761
12762 2010-11-27  Bruno Haible  <bruno@clisp.org>
12763
12764         *printf-posix: Detect a bug on Solaris 10/x86.
12765         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
12766         for floating-point output.
12767         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
12768         directive.
12769         * tests/test-snprintf-posix.h (test_function): Likewise.
12770         * tests/test-sprintf-posix.h (test_function): Likewise.
12771         * tests/test-vasprintf-posix.c (test_function): Likewise.
12772         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
12773         * doc/posix-functions/printf.texi: Likewise.
12774         * doc/posix-functions/snprintf.texi: Likewise.
12775         * doc/posix-functions/sprintf.texi: Likewise.
12776         * doc/posix-functions/vfprintf.texi: Likewise.
12777         * doc/posix-functions/vprintf.texi: Likewise.
12778         * doc/posix-functions/vsnprintf.texi: Likewise.
12779         * doc/posix-functions/vsprintf.texi: Likewise.
12780         * doc/glibc-functions/obstack_printf.texi: Likewise.
12781         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
12782
12783 2010-11-27  Bruno Haible  <bruno@clisp.org>
12784
12785         Fix link error when module libunistring-optional is in use.
12786         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
12787         * modules/striconveha-tests (Makefile.am): Likewise.
12788
12789 2010-11-27  Bruno Haible  <bruno@clisp.org>
12790
12791         regex: Mention link dependencies.
12792         * modules/regex (Link): New section.
12793         * modules/rpmatch (Link): Likewise.
12794         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
12795
12796 2010-11-27  Bruno Haible  <bruno@clisp.org>
12797
12798         ftoastr: Fix compilation error on Solaris.
12799         * lib/ftoastr.c: Include <config.h>.
12800
12801 2010-11-27  Bruno Haible  <bruno@clisp.org>
12802
12803         getloadavg: Update documentation.
12804         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
12805
12806 2010-11-27  Bruno Haible  <bruno@clisp.org>
12807
12808         sys_socket: Fix test whether the functions are declared.
12809         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
12810         not <sys/select.h>.
12811
12812 2010-11-27  Bruno Haible  <bruno@clisp.org>
12813
12814         getpass: Make sure to get system declaration on some platforms.
12815         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
12816         gl_USE_SYSTEM_EXTENSIONS.
12817         * modules/getpass (Depends-on): Add extensions.
12818
12819 2010-11-26  Bruno Haible  <bruno@clisp.org>
12820
12821         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
12822         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
12823         'iconv' module is present.
12824         (ICONV_CONST): New macro.
12825         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
12826         ICONV_CONST.
12827         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
12828         set ICONV_CONST.
12829         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
12830         here.
12831         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
12832         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
12833         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
12834         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
12835         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
12836         present.
12837
12838 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
12839
12840         ftoastr: comment fix
12841         * lib/ftoastr.c: "little" -> "little or no" in comment
12842
12843 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
12844
12845         stdint: port to GCC 4.3 + OSX + Octave
12846         On this platform, stdint.h is buggy and defines int64_t to long
12847         long int.  The replacement defined it to long int, causing
12848         problems with C++ style name mangling.  Instead, trust the system
12849         definition if INT64_MAX is defined, and likewise for the unsigned
12850         variant.   Problem reported by Jarno Rajahalme in
12851         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
12852         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
12853         and don't mess with int64_t and INT64_MAX in this case.
12854         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
12855
12856 2010-11-24  Bruno Haible  <bruno@clisp.org>
12857
12858         doc: Corrections regarding MacOS X 10.4 and 10.5.
12859         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
12860         MacOS X.
12861         Reported by Simon Josefsson.
12862
12863 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
12864
12865         Uninstall ".bin" files installed by relocwrapper.
12866         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
12867         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
12868         unless it is already there.
12869
12870 2010-11-21  Bruno Haible  <bruno@clisp.org>
12871
12872         Update for NetBSD 5.0.
12873         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
12874         NetBSD; the test fails on NetBSD 5.0.
12875         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
12876         about NetBSD.
12877
12878 2010-11-21  Bruno Haible  <bruno@clisp.org>
12879
12880         Update for HP-UX 11.23 and HP-UX 11.31.
12881         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
12882         HP-UX.
12883
12884 2010-11-21  Bruno Haible  <bruno@clisp.org>
12885
12886         Update for MacOS X 10.5.
12887         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
12888         MacOS X; the test fails on MacOS X 10.5.8.
12889         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
12890         about MacOS X.
12891
12892 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
12893
12894         bootstrap: add bootstrap_sync option.
12895         See discussion at
12896         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
12897         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
12898         * build-aux/bootstrap: Accept --bootstrap-sync to update
12899         bootstrap if it is not identical to the local gnulib's
12900         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
12901         enable this by default.  Accept --no-bootstrap-sync to disable
12902         it.
12903
12904 2010-11-20  Bruno Haible  <bruno@clisp.org>
12905
12906         Ensure that <features.h> is included before __GLIBC__ is tested.
12907         * lib/printf-parse.h: Include <features.h>.
12908         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
12909         Reported by Mike Frysinger <vapier@gentoo.org>.
12910
12911         Ensure that <features.h> is included before __GLIBC__ is tested.
12912         * lib/wchar.in.h: Include <features.h>.
12913         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
12914         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
12915         Reported by Mike Frysinger <vapier@gentoo.org>.
12916
12917         Ensure that <features.h> is included before __GLIBC__ is tested.
12918         * lib/arpa_inet.in.h: Include <features.h>.
12919         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
12920         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
12921         Reported by Mike Frysinger <vapier@gentoo.org>.
12922
12923         Ensure that <features.h> is included before __GLIBC__ is tested.
12924         * build-aux/link-warning.h: Include <features.h>.
12925         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
12926         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
12927         Reported by Mike Frysinger <vapier@gentoo.org>.
12928
12929         Ensure that <features.h> is included before __GLIBC__ is tested.
12930         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
12931         Reported by Mike Frysinger <vapier@gentoo.org>.
12932
12933 2010-11-20  Bruno Haible  <bruno@clisp.org>
12934
12935         memmem: Fix autoconf test.
12936         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
12937
12938 2010-11-20  Bruno Haible  <bruno@clisp.org>
12939
12940         Port to uClibc.
12941         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
12942         * lib/fcntl.in.h: Likewise.
12943         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
12944         * lib/mbrtowc.c (mbrtowc): Likewise.
12945         * lib/relocatable.c (find_shared_library_fullname): Likewise.
12946         * lib/strerror_r.c: Likewise.
12947         * lib/unistr/u8-strnlen.c: Likewise.
12948         * lib/vasnprintf.c (decimal_point_char): Likewise.
12949         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
12950         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
12951         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
12952         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
12953         * tests/test-sigaction.c (handler, main): Likewise.
12954         * lib/freading.h: Treat uClibc like a non-glibc platform.
12955         * lib/freading.c: Likewise.
12956         * lib/gettext.h: Likewise.
12957         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
12958         Likewise.
12959         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
12960         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
12961         * lib/propername.c (proper_name_utf8): Likewise.
12962         * lib/spawn.in.h: Likewise.
12963         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
12964         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
12965         mem_cd_iconveh_internal): Likewise.
12966         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
12967         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
12968         strstr, strcasestr): Likewise.
12969         * lib/unicodeio.c (unicode_to_mb): Likewise.
12970         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
12971         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
12972         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
12973         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
12974         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
12975         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
12976         * lib/unistr/u8-stpncpy.c: Likewise.
12977         * lib/vasnprintf.c (VASNPRINTF): Likewise.
12978         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
12979         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
12980         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
12981         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
12982         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
12983         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
12984         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
12985         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
12986         Likewise.
12987         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
12988         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
12989         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
12990         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
12991         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
12992         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
12993         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
12994         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
12995         * tests/test-getopt.h (OPTIND_MIN): Likewise.
12996         * tests/test-striconveha.c (main): Likewise.
12997         * tests/test-vasnprintf-posix.c (test_function): Likewise.
12998         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
12999         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
13000         * doc/posix-functions/getline.texi: Likewise.
13001         Reported by Mike Frysinger <vapier@gentoo.org>.
13002
13003 2010-11-20  Bruno Haible  <bruno@clisp.org>
13004
13005         nproc: Fix condition.
13006         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
13007         HAVE_PTHREAD_AFFINITY_NP.
13008
13009 2010-11-20  Bruno Haible  <bruno@clisp.org>
13010
13011         Fix a comment.
13012         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
13013
13014 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
13015
13016         ftoastr: don't assume snprintf
13017         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
13018         Implement a subset of snprintf here, by using sprintf safely.
13019         * modules/ftoastr (Depends-on): Remove snprintf.
13020
13021 2010-11-19  Jim Meyering  <meyering@redhat.com>
13022
13023         test-rename.h: fix compilation failure
13024         * tests/test-rename.h (test_rename): Add omitted "}".
13025
13026 2010-11-17  Jim Meyering  <meyering@redhat.com>
13027
13028         maint.mk: add a URL discussing the no-@acronym policy
13029         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
13030
13031 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
13032
13033         ftoastr: depend on snprintf, improve comments
13034         * lib/ftoastr.c: Also mention Loitsch's draft.
13035         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
13036         needed in the current implementation, but it might simplify
13037         speeding up the code later.
13038         * modules/ftoastr: Depend on snprintf; this improves portability.
13039         Suggested by Bruno Haible in the same email.
13040
13041         ftoastr: port to hosts lacking strtof and strtold
13042         Problem reported by Bruno Haible in
13043         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
13044         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
13045         environment and strtold (and presumably strtof) are not available.
13046         * modules/ftoastr (Files): Add m4/c-strtod.m4.
13047         (configure.ac): Require gl_C99_STRTOLD.
13048
13049 2010-11-18  Bruno Haible  <bruno@clisp.org>
13050
13051         c-strtold: Avoid link error on AIX 7.
13052         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
13053         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
13054         (gl_C_STRTOLD): Test whether strtold_l exists.
13055         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13056
13057 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
13058
13059         intprops: new macro INT_BITS_STRLEN_BOUND
13060         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
13061         ftoastr.h.  This exposes an internal of intprops.h that was formerly
13062         not exposed.  Also, it uses a slightly tighter bound than before;
13063         though this makes no practical difference, we might as well be as
13064         tight as we easily can.
13065
13066         ftoastr: new module, for lossless conversion of floats to short strings
13067         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
13068         * modules/ftoastr: New files.
13069
13070 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
13071
13072         bootstrap: port to Solaris sed
13073         * build-aux/bootstrap (get_version): Port to Solaris sed.
13074         See Ralf Wildenhues's note in
13075         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
13076
13077 2010-11-14  Jim Meyering  <meyering@redhat.com>
13078
13079         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
13080         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
13081         and move definition closer to sole use.
13082
13083 2010-11-13  Jim Meyering  <meyering@redhat.com>
13084
13085         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
13086         Now we require at least autoconf-2.59, which means the work-around
13087         is no longer needed.
13088         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
13089         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
13090         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
13091         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
13092         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
13093
13094 2010-11-13  Bruno Haible  <bruno@clisp.org>
13095
13096         rename, renameat: Avoid test failures at NFS mounted locations.
13097         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
13098         functions.
13099         (test_rename): Use assert_nonexistent.
13100         * tests/test-rename.c: Include <dirent.h>.
13101         * tests/test-renameat.c: Likewise.
13102         Reported by Gary V. Vaughan <gary@gnu.org>.
13103
13104         rename, renameat: Document Linux bug with NFS
13105         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
13106         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
13107         * doc/posix-functions/renameat.texi: Likewise.
13108         Suggested by Eric Blake.
13109
13110 2010-11-13  Bruno Haible  <bruno@clisp.org>
13111
13112         rename test: Add comments.
13113         * tests/test-rename.h (test_rename): Add structure and comments.
13114
13115 2010-11-13  Eric Blake  <eblake@redhat.com>
13116
13117         maintainer-makefile: cover a few more files
13118         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
13119         scripts generated within C files, for libvirt.
13120
13121 2010-11-13  Bruno Haible  <bruno@clisp.org>
13122
13123         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
13124         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
13125         character, return the number of bytes that belong together, not always
13126         1.
13127         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
13128         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
13129         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
13130         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
13131         number of bytes of an invalid character.
13132         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
13133         (main): Invoke it.
13134         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
13135         results.
13136         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
13137         malformed byte sequences.
13138         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
13139         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
13140         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
13141         Reported by Ben Pfaff and Paolo Bonzini.
13142
13143 2010-11-13  Bruno Haible  <bruno@clisp.org>
13144
13145         openat: Work around glibc bug with fchownat() and empty file names.
13146         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
13147         (gl_FUNC_FCHOWNAT): Invoke it.
13148         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
13149         * doc/posix-functions/fchownat.texi: Document the glibc bug.
13150         Reported by Gary V. Vaughan <gary@gnu.org>.
13151
13152 2010-11-13  Bruno Haible  <bruno@clisp.org>
13153
13154         openat: Ensure autoconf macro ordering.
13155         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
13156         gl_USE_SYSTEM_EXTENSIONS.
13157         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
13158
13159 2010-11-13  Bruno Haible  <bruno@clisp.org>
13160
13161         Update comments.
13162         * lib/unistr/u8-check.c: Update file name in comments.
13163         * lib/unistr/u8-mblen.c: Likewise.
13164         * lib/unistr/u8-prev.c: Likewise.
13165         * lib/unistr/u8-strmblen.c: Likewise.
13166         * lib/unistr/u8-strmbtouc.c: Likewise.
13167
13168 2010-11-13  Jim Meyering  <meyering@redhat.com>
13169
13170         tests: avoid test failure on Solaris 10 due to lack of PATH export
13171         * tests/test-update-copyright.sh: Don't forget to export PATH.
13172
13173         init.sh: ensure that IFS is defined, just in case...
13174         * tests/init.sh (setup_): Ensure that IFS is defined,
13175         so that saving and restoring it works as expected.  This
13176         appears to be useful at least for an old version of dash
13177         from a long time ago (RH 6).  See here for details:
13178         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
13179
13180         maint.mk: tighten "test a == b" check
13181         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
13182         test to files that contain something like #!/bin/sh.
13183         Without this, coreutils would get two false positives in
13184         the comments of C source files.
13185
13186 2010-11-12  Eric Blake  <eblake@redhat.com>
13187
13188         bootstrap: fix typo in previous attempt
13189         * build-aux/bootstrap (buildreq): Correct the grouping.
13190         Reported by Paul Eggert.
13191
13192         maintainer-makefile: prohibit test x == x
13193         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
13194         Based on a report by Matthias Bolte.
13195
13196         bootstrap: allow FreeBSD gzip
13197         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
13198         which has no '.' and goes to stderr.
13199         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
13200         Reported by Matthias Bolte.
13201
13202         maintainer-makefile: check for i18n setup
13203         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
13204         will likely work.
13205
13206 2010-11-12  Bruno Haible  <bruno@clisp.org>
13207
13208         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
13209         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
13210         * lib/nanosleep.c (nanosleep): Likewise.
13211
13212 2010-11-11  Bruno Haible  <bruno@clisp.org>
13213
13214         fcntl-h: Fix for use of C++ on glibc systems.
13215         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
13216         also on glibc systems in C++ mode.
13217         Reported by Gary V. Vaughan <gary@gnu.org>.
13218
13219 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
13220
13221         mknod: avoid false failure with dash
13222         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
13223
13224 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
13225
13226         unlink: Fix "is it should" typo in diagnostic.
13227         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
13228         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
13229
13230 2010-11-11  Bruno Haible  <bruno@clisp.org>
13231
13232         Tests for module 'strerror_r-posix'.
13233         * modules/strerror_r-posix-tests: New file.
13234         * tests/test-strerror_r.c: New file.
13235         * tests/test-string-c++.cc: Check the signature of strerror_r.
13236
13237         New module 'strerror_r-posix'.
13238         * lib/string.in.h (strerror_r): New declaration.
13239         * lib/strerror_r.c: New file.
13240         * m4/strerror_r.m4: New file.
13241         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
13242         of strerror_r.
13243         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
13244         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
13245         * modules/strerror_r-posix: New file.
13246         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
13247         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
13248         * doc/posix-functions/strerror_r.texi: Mention the new module and the
13249         portability problems.
13250
13251 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
13252
13253         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
13254         line is also considered for output. Quoted function name in shell
13255         command, so temporary files for functions like MyClass::operator()
13256         are removed correctly without errors.
13257
13258 2010-11-09  Bruno Haible  <bruno@clisp.org>
13259
13260         * doc/posix-functions/strerror.texi: List more failing platforms.
13261
13262         * doc/posix-functions/strerror.texi: Add a comment.
13263
13264 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
13265
13266         fdopendir: fix bug on MacOS X when low on file descriptors
13267
13268         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
13269         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
13270         All callers changed.
13271         (fdopendir): Invoke save_cwd at the top level, not after using
13272         multiple dup() calls to use up file descriptors.  Then retry
13273         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
13274         less than the maximum number of open file descriptors, because
13275         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
13276         on Mac OS X 10.6.4 for tar 1.24
13277         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
13278         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
13279         and for tar 1.25
13280         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
13281
13282 2010-11-07  Bruno Haible  <bruno@clisp.org>
13283
13284         vasnprintf: Support I flag on glibc systems.
13285         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
13286         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
13287         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
13288         snprintf function.
13289         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
13290         glibc systems.
13291         * tests/test-vasnprintf-posix3.c: New file.
13292         * modules/vasnprintf-posix-tests (Files): Add it.
13293         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
13294
13295 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
13296
13297         [html] Fix copy/paste bug: Use unique name for compiler warnings.
13298         * MODULES.html.sh: For compiler warnings, use name
13299         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
13300
13301 2010-11-05  Eric Blake  <eblake@redhat.com>
13302
13303         ceil, floor: avoid spurious failure with icc
13304         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
13305         [denormals-as-zero] when optimizing without -mieee-fp option.
13306         * tests/test-floorf2.c (floorf_reference): Likewise.
13307         * tests/test-ceilf1.c (dummy): New function.
13308         (main): Use it to outsmart icc's optimization.
13309         * tests/test-floorf1.c (dummy, main): Likewise.
13310
13311         tests: require working signbit
13312         * modules/ceilf-tests (Depends-on): Add signbit.
13313         * modules/ceill-tests (Depends-on): Likewise.
13314         * modules/floorf-tests (Depends-on): Likewise.
13315         * modules/floorl-tests (Depends-on): Likewise.
13316         * modules/round-tests (Depends-on): Likewise.
13317         * modules/roundf-tests (Depends-on): Likewise.
13318         * modules/roundl-tests (Depends-on): Likewise.
13319         * modules/trunc-tests (Depends-on): Likewise.
13320         * modules/truncf-tests (Depends-on): Likewise.
13321         * modules/truncl-tests (Depends-on): Likewise.
13322
13323         strtod: work around icc bug
13324         * lib/strtod.c (minus_zero): Define to working value.
13325         (strtod): Use it to avoid icc bug.
13326
13327         copysign: enhance tests
13328         * modules/copysign-tests (Files): Add minus-zero.h.
13329         * tests/test-copysign.c (main): Also test zeros.
13330
13331 2010-11-04  Eric Blake  <eblake@redhat.com>
13332
13333         ceil, floor, round, trunc: enhance tests of -0
13334         * tests/test-ceilf1.c (main): Ensure correct sign of result.
13335         * tests/test-ceill.c (main): Likewise.
13336         * tests/test-floorf1.c (main): Likewise.
13337         * tests/test-floorl.c (main): Likewise.
13338         * tests/test-round1.c (main): Likewise.
13339         * tests/test-roundf1.c (main): Likewise.
13340         * tests/test-roundl.c (main): Likewise.
13341         * tests/test-trunc1.c (main): Likewise.
13342         * tests/test-truncf1.c (main): Likewise.
13343         * tests/test-truncl.c (main): Likewise.
13344
13345 2010-11-04  Eric Blake  <eblake@redhat.com>
13346
13347         frexp, tests: work around ICC bug with -zero
13348         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
13349         works with more compilers.
13350         * tests/minus-zero.h: New file.
13351         * modules/ceilf-tests (Files): Include it.
13352         * modules/ceill-tests (Files): Likewise.
13353         * modules/floorf-tests (Files): Likewise.
13354         * modules/floorl-tests (Files): Likewise.
13355         * modules/frexp-nolibm-tests (Files): Likewise.
13356         * modules/frexp-tests (Files): Likewise.
13357         * modules/frexpl-nolibm-tests (Files): Likewise.
13358         * modules/frexpl-tests (Files): Likewise.
13359         * modules/isnan-tests (Files): Likewise.
13360         * modules/isnand-nolibm-tests (Files): Likewise.
13361         * modules/isnand-tests (Files): Likewise.
13362         * modules/isnanf-nolibm-tests (Files): Likewise.
13363         * modules/isnanf-tests (Files): Likewise.
13364         * modules/isnanl-nolibm-tests (Files): Likewise.
13365         * modules/isnanl-tests (Files): Likewise.
13366         * modules/round-tests (Files): Likewise.
13367         * modules/roundf-tests (Files): Likewise.
13368         * modules/roundl-tests (Files): Likewise.
13369         * modules/ldexpl-tests (Files): Likewise.
13370         * modules/signbit-tests (Files): Likewise.
13371         * modules/snprintf-posix-tests (Files): Likewise.
13372         * modules/sprintf-posix-tests (Files): Likewise.
13373         * modules/strtod-tests (Files): Likewise.
13374         * modules/trunc-tests (Files): Likewise.
13375         * modules/truncf-tests (Files): Likewise.
13376         * modules/truncl-tests (Files): Likewise.
13377         * modules/vsnprintf-posix-tests (Files): Likewise.
13378         * modules/vsprintf-posix-tests (Files): Likewise.
13379         * modules/vasnprintf-posix-tests (Files): Likewise.
13380         * modules/vasprintf-posix-tests (Files): Likewise.
13381         * tests/test-ceilf1.c (main): Use it.
13382         * tests/test-ceill.c (main): Likewise.
13383         * tests/test-floorf1.c (main): Likewise.
13384         * tests/test-floorl.c (main): Likewise.
13385         * tests/test-frexp.c (main): Likewise.
13386         * tests/test-frexpl.c (main): Likewise.
13387         * tests/test-isnan.c (main): Likewise.
13388         * tests/test-isnand.h (main): Likewise.
13389         * tests/test-isnanf.h (main): Likewise.
13390         * tests/test-isnanl.h (main): Likewise.
13391         * tests/test-ldexpl.c (main): Likewise.
13392         * tests/test-round.c (main): Likewise.
13393         * tests/test-roundf.c (main): Likewise.
13394         * tests/test-roundl.c (main): Likewise.
13395         * tests/test-signbit.c (test_signbitf, test_signbitd)
13396         (test_signbitl): Likewise.
13397         * tests/test-snprintf-posix.h (test_function): Likewise.
13398         * tests/test-sprintf-posix.h (test_function): Likewise.
13399         * tests/test-strtod.c (main): Likewise.
13400         * tests/test-trunc1.c (main): Likewise.
13401         * tests/test-truncf1.c (main): Likewise.
13402         * tests/test-truncl.c (main): Likewise.
13403
13404         isnanl: work around icc bug
13405         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
13406
13407 2010-11-03  Eric Blake  <eblake@redhat.com>
13408
13409         tests: fix compiler warnings
13410         * tests/test-getopt.h (test_getopt): Fix condition.
13411         * tests/test-getopt_long.h (test_getopt_long): Likewise.
13412         * tests/test-pipe2.c (main): Likewise.
13413         * tests/test-quotearg-simple.c (main): Avoid icc warning.
13414
13415         utimens: fix broken m4 test
13416         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
13417
13418 2010-10-28  Bruno Haible  <bruno@clisp.org>
13419
13420         posix_spawn*, getdtablesize: Relax license.
13421         * modules/posix_spawn (License): Change to LGPLv2+.
13422         * modules/posix_spawnp (License): Likewise.
13423         * modules/posix_spawn-internal (License): Likewise.
13424         * modules/posix_spawnattr_init (License): Likewise.
13425         * modules/posix_spawnattr_getflags (License): Likewise.
13426         * modules/posix_spawnattr_setflags (License): Likewise.
13427         * modules/posix_spawnattr_getpgroup (License): Likewise.
13428         * modules/posix_spawnattr_setpgroup (License): Likewise.
13429         * modules/posix_spawnattr_getschedparam (License): Likewise.
13430         * modules/posix_spawnattr_setschedparam (License): Likewise.
13431         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
13432         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
13433         * modules/posix_spawnattr_getsigdefault (License): Likewise.
13434         * modules/posix_spawnattr_setsigdefault (License): Likewise.
13435         * modules/posix_spawnattr_getsigmask (License): Likewise.
13436         * modules/posix_spawnattr_setsigmask (License): Likewise.
13437         * modules/posix_spawnattr_destroy (License): Likewise.
13438         * modules/posix_spawn_file_actions_init (License): Likewise.
13439         * modules/posix_spawn_file_actions_addclose (License): Likewise.
13440         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
13441         * modules/posix_spawn_file_actions_addopen (License): Likewise.
13442         * modules/posix_spawn_file_actions_destroy (License): Likewise.
13443         * modules/getdtablesize (License): Likewise.
13444         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
13445
13446 2010-10-26  Bruno Haible  <bruno@clisp.org>
13447
13448         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
13449         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
13450         Cygwin and mingw.
13451         Suggested by Eric Blake.
13452
13453 2010-10-26  Bruno Haible  <bruno@clisp.org>
13454
13455         stdio: Work around compilation error due to renameat() on Solaris 10.
13456         * lib/stdio.in.h: Include <unistd.h> on Solaris.
13457         * lib/renameat.c: Don't include <unistd.h> here.
13458         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
13459         Reported by Paul Eggert and Eric Blake.
13460
13461 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
13462
13463         renameat: port to Solaris 10, which declares renameat in unistd.h
13464
13465         * lib/renameat.c: Include unistd.h before stdio.h, because
13466         Solaris 10 declares renameat in unistd.h.  Problem encountered
13467         when building GNU tar 1.24 on Solaris 10.
13468
13469 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
13470
13471         fdopendir: fix C89 compilation
13472         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
13473         compilers.
13474
13475 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
13476
13477         inttostr: simplify by removing unnecessary redundancy
13478         * lib/anytostr.c: Don't include verify.h.
13479         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
13480         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
13481         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
13482         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
13483         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
13484         Likewise.
13485         * modules/inttostr (Depends-on): Remove 'verify'.
13486
13487 2010-10-23  Bruno Haible  <bruno@clisp.org>
13488
13489         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
13490         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
13491         Reported by Eric Blake.
13492
13493 2010-10-23  Bruno Haible  <bruno@clisp.org>
13494
13495         Tests: Fix LOCALE_JA on MirBSD 10.
13496         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
13497         to an UTF-8 locale.
13498         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
13499         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
13500         Reported by Eric Blake.
13501
13502 2010-10-21  Bruno Haible  <bruno@clisp.org>
13503
13504         nl_langinfo test: Avoid test failure on NetBSD 5.
13505         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
13506         Reported by Eric Blake.
13507
13508 2010-10-21  Eric Blake  <eblake@redhat.com>
13509
13510         c-stack: work around libsigsegv 2.8 bug
13511         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
13512         overflow on at least PowerPC64.
13513
13514 2010-10-17  Bruno Haible  <bruno@clisp.org>
13515
13516         userspec: Drop redundant file.
13517         * modules/userspec (Files): Remove lib/inttostr.h.
13518
13519 2010-10-17  Bruno Haible  <bruno@clisp.org>
13520
13521         nl_langinfo tests: Silence some warnings.
13522         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
13523         Reported by Jim Meyering.
13524
13525 2010-10-17  Bruno Haible  <bruno@clisp.org>
13526
13527         Make use of GCC's attribute __alloc_size__.
13528         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
13529         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
13530         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
13531         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
13532         __alloc_size__.
13533         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
13534         Suggested by Jim Meyering.
13535
13536 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
13537
13538         bootstrap: anchor .gitignore entries.
13539         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
13540         with...
13541         (insert_vc_ignore): ... this new function, which prepends `/' to
13542         all .gitignore entries before passing them to
13543         insert_sorted_if_absent.
13544
13545 2010-10-16  Bruno Haible  <bruno@clisp.org>
13546
13547         nextafter: Fix configure check.
13548         * modules/nextafter (configure.ac): Correct expected prototype.
13549
13550 2010-10-16  Bruno Haible  <bruno@clisp.org>
13551
13552         termios: Update documentation.
13553         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
13554
13555 2010-10-16  Bruno Haible  <bruno@clisp.org>
13556
13557         tests: Make them compile with TinyCC.
13558         * tests/test-strstr.c (main): Remove parentheses around array
13559         initializer.
13560
13561 2010-10-15  Eric Blake  <eblake@redhat.com>
13562
13563         ignore-value: make header idempotent
13564         * lib/ignore-value.h: Add double-inclusion guards.
13565         Reported by Stefan Berger.
13566
13567 2010-10-15  Jim Meyering  <meyering@redhat.com>
13568
13569         GNUmakefile: handle "stable" target, not "major"
13570         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
13571         lists in maint.mk and announce-gen.  Without this, "make stable"
13572         would fail to ensure that $(VERSION) is up to date.
13573
13574 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
13575
13576         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
13577         & co.
13578
13579 2010-10-14  Bruno Haible  <bruno@clisp.org>
13580
13581         vasnprintf: Don't set errno to 0.
13582         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
13583         block that sets it to 0.
13584         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
13585
13586 2010-10-14  Bruno Haible  <bruno@clisp.org>
13587
13588         socketlib: Fix.
13589         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
13590         gl_PREREQ_SYS_H_WINSOCK2.
13591         Reported by Ian Beckwith <ianb@erislabs.net>.
13592
13593 2010-10-13  Jim Meyering  <meyering@redhat.com>
13594
13595         test-select-stdin.c: avoid warn_unused_result warnings
13596         * tests/test-select-stdin.c: Include "macros.h".
13597         ASSERT that read and fflush succeed.
13598
13599 2010-10-13  Jim Meyering  <meyering@redhat.com>
13600
13601         git-version-gen: do require git-VC'd files in cwd
13602         * build-aux/git-version-gen: Reject a git version string
13603         if there are no commits associated with the current directory.
13604         This avoids an unlikely false-positive (unrelated dir whose parent
13605         repository also contains a tag matching v*), as pointed out
13606         by Giuseppe Scrivano in
13607         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
13608
13609 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
13610
13611         argv-iter: omit nonconforming declaration
13612         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
13613         enum arg_iter_err declaration, which doesn't conform to C99.
13614         Solaris 10 cc warns about this.
13615
13616 2010-10-13  Eric Blake  <eblake@redhat.com>
13617
13618         termios: fix compilation on mingw
13619         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
13620         (gl_TERMIOS_H): Adjust it on mingw.
13621         * modules/termios (Makefile.am): Substitute new key.
13622         * lib/termios.in.h (includes): Make include_next conditional.
13623         * doc/posix-headers/termios.texi (termios.h): Update
13624         documentation.
13625         Reported by Daniel P. Berrange.
13626
13627 2010-10-13  Jim Meyering  <meyering@redhat.com>
13628
13629         git-version-gen: don't require that .git/ be in the current dir
13630         * build-aux/git-version-gen: Adjust this script so that it works
13631         when run from any working directory beneath the top-level .git/-
13632         containing directory.  Inspired by a patch from Giuseppe Scrivano,
13633         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
13634
13635         test-select: avoid warn_unused_result warnings
13636         * tests/test-select.c: Include "macros.h".
13637         ASSERT that each call to read, write, and pipe succeeds.
13638         While not technically required, also check each "close".
13639         * modules/select-tests (Files): Add tests/macros.h.
13640
13641         test-symlinkat: remove declaration of unused local
13642         * tests/test-symlinkat.c (main): Remove unused local, "buf".
13643
13644         test-inttostr: avoid shadowing warnings
13645         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
13646         and use malloc rather than the stack for the same reason as
13647         mentioned in the comment justifying the other allocation.
13648
13649 2010-10-11  Bruno Haible  <bruno@clisp.org>
13650
13651         stdlib: Allow multiple gnulib generated replacements to coexist.
13652         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
13653         Reported by Sam Steingold <sds@gnu.org>.
13654
13655 2010-10-11  Jim Meyering  <meyering@redhat.com>
13656
13657         fix a documentation typo
13658         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
13659
13660 2010-10-11  Eric Blake  <eblake@redhat.com>
13661
13662         futimens: work around Solaris 11 bug
13663         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
13664         * tests/test-futimens.h (test_futimens): Enhance, rather than
13665         weaken test.
13666         * doc/posix-functions/futimens.texi (futimens): Document the bug.
13667
13668 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
13669
13670         Indentation.
13671         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
13672         higher-level operators more to the left.
13673
13674 2010-10-11  Jim Meyering  <meyering@redhat.com>
13675
13676         test-futimens: avoid unwarranted test failure on Solaris 5.11
13677         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
13678         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
13679         because it tries to dereference the NULL name argument.
13680
13681 2010-10-11  Bruno Haible  <bruno@clisp.org>
13682
13683         Indentation.
13684         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
13685         indentation.
13686
13687 2010-10-11  Jim Meyering  <meyering@redhat.com>
13688
13689         spawn.in.h: make indentation consistent with parentheses
13690         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
13691         Make indentation consistent with parentheses.
13692
13693 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
13694
13695         Fix mismatched parens in previous commit
13696         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
13697         parens.
13698
13699 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
13700
13701         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
13702
13703         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
13704         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
13705         * lib/malloca.c: Include "verify.h".
13706         (verify1): Remove, replacing with a verify call.
13707         * lib/relocwrapper.c (verify1): Likewise.
13708         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
13709         Likewise.
13710         * modules/malloca (Depends-on): Add 'verify'.
13711         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
13712         * modules/vasnprintf (Depends-on): Add 'verify'.
13713         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
13714         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
13715         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
13716         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
13717         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
13718         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
13719         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
13720
13721         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
13722
13723         Formerly the style was sometimes 2*X - 1, because the C standard
13724         was wrongly thought to disallow ?: in integral constant expressions.
13725         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
13726         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
13727         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
13728         * lib/stdint.in.h (_verify_intmax_size): Likewise.
13729         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
13730         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
13731         verify that time_t cannot be floating.
13732
13733 2010-10-08  Eric Blake  <eblake@redhat.com>
13734
13735         time: enforce recent POSIX ruling that time_t is integral
13736         * lib/time.in.h (__time_t_must_be_integral): Detect any
13737         problematic systems, allowing the rest of gnulib to assume POSIX.
13738
13739 2010-10-08  Jim Meyering  <meyering@redhat.com>
13740
13741         fdopendir: fix a bug on systems lacking openat and /proc support
13742         OpenBSD 4.7 is one such system.  The most noticeable effect was
13743         failure of any application making nontrivial use of fts: rm, du,
13744         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
13745           ./rm: traversal failed: `a': Bad file descriptor
13746         Debugging that, you see that even though FD 6 was closed just
13747         prior to the opendir call in fd_clone_opendir, its resulting
13748         dir->dd_fd was 8, rather than the expected value of 6:
13749
13750         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
13751         93                close (fd);
13752         (gdb) n
13753         94                dir = fd_clone_opendir (dupfd);
13754         (gdb) n
13755         95                saved_errno = errno;
13756         (gdb) p dir->dd_fd
13757         $11 = 8
13758
13759         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
13760         The problem is that on OpenBSD, fd_clone_opendir has to resort
13761         to using the old-style save/restore CWD mechanism, due to its
13762         lack of openat/proc support, and *that* would steal the FD (6)
13763         that opendir was supposed to use.
13764
13765         The fix is to squirrel away the desired FD so that save_cwd uses a
13766         different one, and then free the dest FD right before calling opendir.
13767         That guarantees opendir will use the required file descriptor.
13768
13769         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
13770
13771 2010-10-08  Bruno Haible  <bruno@clisp.org>
13772
13773         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
13774         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
13775
13776 2010-10-08  Bruno Haible  <bruno@clisp.org>
13777
13778         nanosleep: Make replacement POSIX compliant.
13779         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
13780         is out of range.
13781         Reported by Jim Meyering.
13782
13783 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
13784
13785         bootstrap: add hook for altering gnulib.mk, for Bison
13786         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
13787         the Bison bootstrapping process can rewrite file names and variables
13788         in this file before later parts of 'bootstrap' use the file.
13789         Bison wants to include lib/gnulib.mk from the top-level makefile,
13790         so it needs the file names in this file to be relative to the top
13791         level, not relative to lib; plus it needs variable names to be
13792         rewritten.
13793         (slurp): Use the new function.
13794
13795         bootstrap: reformat for readability
13796         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
13797
13798 2010-10-08  Eric Blake  <eblake@redhat.com>
13799
13800         docs: update cygwin progress
13801         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
13802         1.7.7.
13803         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
13804         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
13805         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
13806         * doc/posix-functions/carg.texi (carg): Likewise.
13807         * doc/posix-functions/cargf.texi (cargf): Likewise.
13808         * doc/posix-functions/casin.texi (casin): Likewise.
13809         * doc/posix-functions/casinf.texi (casinf): Likewise.
13810         * doc/posix-functions/casinh.texi (casinh): Likewise.
13811         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
13812         * doc/posix-functions/catan.texi (catan): Likewise.
13813         * doc/posix-functions/catanf.texi (catanf): Likewise.
13814         * doc/posix-functions/catanh.texi (catanh): Likewise.
13815         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
13816         * doc/posix-functions/ccos.texi (ccos): Likewise.
13817         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
13818         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
13819         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
13820         * doc/posix-functions/cexp.texi (cexp): Likewise.
13821         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
13822         * doc/posix-functions/cimag.texi (cimag): Likewise.
13823         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
13824         * doc/posix-functions/clog.texi (clog): Likewise.
13825         * doc/posix-functions/clogf.texi (clogf): Likewise.
13826         * doc/posix-functions/conj.texi (conj): Likewise.
13827         * doc/posix-functions/conjf.texi (conjf): Likewise.
13828         * doc/posix-functions/cpow.texi (cpow): Likewise.
13829         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
13830         * doc/posix-functions/cproj.texi (cproj): Likewise.
13831         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
13832         * doc/posix-functions/creal.texi (creal): Likewise.
13833         * doc/posix-functions/crealf.texi (crealf): Likewise.
13834         * doc/posix-functions/csin.texi (csin): Likewise.
13835         * doc/posix-functions/csinf.texi (csinf): Likewise.
13836         * doc/posix-functions/csinh.texi (csinh): Likewise.
13837         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
13838         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
13839         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
13840         * doc/posix-functions/ctan.texi (ctan): Likewise.
13841         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
13842         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
13843         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
13844         * doc/posix-headers/complex.texi (complex.h): Likewise.
13845
13846 2010-10-07  Jim Meyering  <meyering@redhat.com>
13847
13848         parse-datetime: avoid compilation failure on OpenBSD 4.7
13849         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
13850         This works around a compilation failure on OpenBSD 4.7:
13851         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
13852
13853 2010-10-07  Eric Blake  <eblake@redhat.com>
13854
13855         docs: update cygwin progress
13856         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
13857         1.7.6.
13858         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
13859         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
13860         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
13861         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
13862         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
13863         Likewise.
13864         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
13865         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
13866         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
13867         Likewise.
13868         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
13869         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
13870         Likewise.
13871         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
13872         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
13873         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
13874         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
13875         Likewise.
13876         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
13877         Likewise.
13878         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
13879
13880         docs: update parse-datetime history
13881         * doc/parse-datetime.texi (Authors of parse_datetime): Better
13882         documentation of this function's history and alternatives.
13883
13884         cygwin: use more robust version check
13885         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
13886         exclude an eventual cygwin 1.9.1.
13887         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
13888         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
13889         (gl_FUNC_STRCASESTR): Likewise.
13890         Reported by Bruno Haible.
13891
13892 2010-10-06  Bruno Haible  <bruno@clisp.org>
13893
13894         string, sys_select: Avoid #including large headers unless necessary.
13895         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
13896         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
13897         OSF/1, BeOS, Haiku.
13898         Reported by Jim Meyering.
13899
13900 2010-10-05  Eric Blake  <eblake@redhat.com>
13901
13902         memmem, strstr, strcasestr: fix bug with long periodic needle
13903         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
13904         periodic needle having false positive.
13905         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
13906         and cygwin 1.7.7.
13907         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
13908         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
13909         (gl_FUNC_STRCASESTR): Likewise.
13910         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
13911         * tests/test-memmem.c (main): Expose the bug.
13912         * tests/test-strcasestr.c (main): Likewise.
13913         * tests/test-strstr.c (main): Likewise.
13914         * tests/test-c-strcasestr.c (main): Likewise.
13915         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
13916         * doc/posix-functions/strstr.texi (strstr): Likewise.
13917         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
13918         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
13919
13920 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
13921
13922         parse-datetime: do some more renaming
13923         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
13924         parse_datetime, not get_date.  Mention the renaming.
13925         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
13926         in comments.
13927         * m4/bison.m4: Likewise.
13928
13929 2010-10-05  Eric Blake  <eblake@redhat.com>
13930
13931         parse-datetime: better name than get_date
13932         * NEWS: Reword the deprecation notice.
13933         * modules/get_date: Rename to modules/parse-datetime.
13934         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
13935         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
13936         * lib/get_date.y: Rename to lib/parse-datetime.y.
13937         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
13938         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
13939         * doc/getdate.texi: Provide fallback wrapper.
13940         * lib/getdate.h: Move guts, and wrap...
13941         * lib/parse-datetime.h: ...new file.
13942         * lib/parse-datetime.y (get_date): Rename...
13943         (parse_datetime): ...to this.
13944         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
13945         (gl_PARSE_DATETIME): ...to this.
13946         * doc/posix-functions/getdate.texi (get_date): Provide fallback
13947         documentation.
13948         * modules/getdate (Files): Provide fallback docs and header.
13949         (Notice, Depends-on): Update references.
13950         * tests/test-parse-datetime.c: Likewise.
13951         * DEPENDENCIES: Likewise.
13952         * MODULES.html.sh (Date and time <time.h>): Likewise.
13953         * doc/parse-datetime.texi (Date input formats)
13954         (Authors of parse_datetime): Likewise.
13955         * modules/parse-datetime (Files, configure.ac, Makefile.am)
13956         (Include): Likewise.
13957         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
13958         * gnulib-tool: Likewise.
13959         * m4/bison.m4 (gl_BISON): Likewise.
13960         Suggested by Bruno Haible.
13961
13962 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
13963
13964         more ports to Solaris tr, which needs [] around ranges
13965         * gnulib-tool: Solaris tr needs [] around ranges.
13966         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
13967         * tests/test-pipe-filter-gi1.c (main): Likewise.
13968         * tests/test-pipe-filter-ii1.c (main): Likewise.
13969
13970 2010-10-05  Eric Blake  <eblake@redhat.com>
13971
13972         bootstrap: fix Solaris regression
13973         * build-aux/bootstrap (check_versions): Solaris tr still needs []
13974         around ranges.
13975         Reported by Pádraig Brady.
13976
13977         bootstrap: work with pkg-config
13978         * build-aux/bootstrap (check_versions): Also transliterate - in
13979         prerequisite name.
13980         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
13981         prerequisites that were already found, to avoid confusion.
13982         Reported by Justin Clift.
13983
13984         faccessat: remove unused wrappers
13985         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
13986         presence of these wrappers dragged in -lgen on Solaris.
13987         Reported by Clemens Brogi; fix suggested by Paul Eggert.
13988
13989 2010-10-05  Jim Meyering  <meyering@redhat.com>
13990
13991         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
13992         * Makefile (sc_pragma_columns): New syntax-check rule.
13993
13994 2010-10-04  Bruno Haible  <bruno@clisp.org>
13995
13996         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
13997         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
13998         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
13999         Reported by Bruce Korb and Eric Blake.
14000
14001 2010-10-04  Bruno Haible  <bruno@clisp.org>
14002
14003         threadlib: Make option --with-libpth-prefix work.
14004         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
14005         use $LIBPTH, not just -lpth.
14006
14007 2010-10-04  Bruno Haible  <bruno@clisp.org>
14008
14009         Avoid line length limitation from HP NonStop system header files.
14010         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
14011         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
14012         * lib/ctype.in.h: Likewise.
14013         * lib/dirent.in.h: Likewise.
14014         * lib/errno.in.h: Likewise.
14015         * lib/fcntl.in.h: Likewise.
14016         * lib/float.in.h: Likewise.
14017         * lib/getopt.in.h: Likewise.
14018         * lib/iconv.in.h: Likewise.
14019         * lib/inttypes.in.h: Likewise.
14020         * lib/langinfo.in.h: Likewise.
14021         * lib/locale.in.h: Likewise.
14022         * lib/math.in.h: Likewise.
14023         * lib/netdb.in.h: Likewise.
14024         * lib/netinet_in.in.h: Likewise.
14025         * lib/poll.in.h: Likewise.
14026         * lib/pthread.in.h: Likewise.
14027         * lib/pty.in.h: Likewise.
14028         * lib/sched.in.h: Likewise.
14029         * lib/se-selinux.in.h: Likewise.
14030         * lib/search.in.h: Likewise.
14031         * lib/signal.in.h: Likewise.
14032         * lib/spawn.in.h: Likewise.
14033         * lib/stdarg.in.h: Likewise.
14034         * lib/stddef.in.h: Likewise.
14035         * lib/stdint.in.h: Likewise.
14036         * lib/stdio.in.h: Likewise.
14037         * lib/stdlib.in.h: Likewise.
14038         * lib/string.in.h: Likewise.
14039         * lib/strings.in.h: Likewise.
14040         * lib/sys_file.in.h: Likewise.
14041         * lib/sys_ioctl.in.h: Likewise.
14042         * lib/sys_select.in.h: Likewise.
14043         * lib/sys_socket.in.h: Likewise.
14044         * lib/sys_stat.in.h: Likewise.
14045         * lib/sys_time.in.h: Likewise.
14046         * lib/sys_times.in.h: Likewise.
14047         * lib/sys_utsname.in.h: Likewise.
14048         * lib/sys_wait.in.h: Likewise.
14049         * lib/sysexits.in.h: Likewise.
14050         * lib/termios.in.h: Likewise.
14051         * lib/time.in.h: Likewise.
14052         * lib/unistd.in.h: Likewise.
14053         * lib/wchar.in.h: Likewise.
14054         * lib/wctype.in.h: Likewise.
14055         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
14056         * modules/ctype (Makefile.am): Likewise.
14057         * modules/dirent (Makefile.am): Likewise.
14058         * modules/errno (Makefile.am): Likewise.
14059         * modules/fcntl-h (Makefile.am): Likewise.
14060         * modules/float (Makefile.am): Likewise.
14061         * modules/getopt-posix (Makefile.am): Likewise.
14062         * modules/iconv-h (Makefile.am): Likewise.
14063         * modules/inttypes (Makefile.am): Likewise.
14064         * modules/langinfo (Makefile.am): Likewise.
14065         * modules/locale (Makefile.am): Likewise.
14066         * modules/math (Makefile.am): Likewise.
14067         * modules/netdb (Makefile.am): Likewise.
14068         * modules/netinet_in (Makefile.am): Likewise.
14069         * modules/poll-h (Makefile.am): Likewise.
14070         * modules/pthread (Makefile.am): Likewise.
14071         * modules/pty (Makefile.am): Likewise.
14072         * modules/sched (Makefile.am): Likewise.
14073         * modules/search (Makefile.am): Likewise.
14074         * modules/selinux-h (Makefile.am): Likewise.
14075         * modules/signal (Makefile.am): Likewise.
14076         * modules/spawn (Makefile.am): Likewise.
14077         * modules/stdarg (Makefile.am): Likewise.
14078         * modules/stddef (Makefile.am): Likewise.
14079         * modules/stdint (Makefile.am): Likewise.
14080         * modules/stdio (Makefile.am): Likewise.
14081         * modules/stdlib (Makefile.am): Likewise.
14082         * modules/string (Makefile.am): Likewise.
14083         * modules/strings (Makefile.am): Likewise.
14084         * modules/sys_file (Makefile.am): Likewise.
14085         * modules/sys_ioctl (Makefile.am): Likewise.
14086         * modules/sys_select (Makefile.am): Likewise.
14087         * modules/sys_socket (Makefile.am): Likewise.
14088         * modules/sys_stat (Makefile.am): Likewise.
14089         * modules/sys_time (Makefile.am): Likewise.
14090         * modules/sys_times (Makefile.am): Likewise.
14091         * modules/sys_utsname (Makefile.am): Likewise.
14092         * modules/sys_wait (Makefile.am): Likewise.
14093         * modules/sysexits (Makefile.am): Likewise.
14094         * modules/termios (Makefile.am): Likewise.
14095         * modules/time (Makefile.am): Likewise.
14096         * modules/unistd (Makefile.am): Likewise.
14097         * modules/wchar (Makefile.am): Likewise.
14098         * modules/wctype (Makefile.am): Likewise.
14099
14100 2010-10-04  Bruno Haible  <bruno@clisp.org>
14101
14102         read-file tests: Avoid a test failure on NonStop Kernel.
14103         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
14104         a regular file.
14105         Reported by Joachim Schmitz <schmitz@hp.com>.
14106
14107 2010-10-03  Bruno Haible  <bruno@clisp.org>
14108
14109         gnulib-tool: Fixes for --create-testdir with --libtool.
14110         * gnulib-tool (func_get_automake_snippet): Don't augment
14111         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
14112         an executable.
14113         (func_create_testdir): Handle module 'alloca' like func_import.
14114         Reported by Bruce Korb <bruce.korb@gmail.com>.
14115
14116 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
14117
14118         Avoid some lines longer than 80 characters.
14119         * lib/stdint.in.h: Break long comment lines.
14120         * lib/math.in.h: Likewise.
14121         (_GL_NUM_UINT_WORDS): New macro, for readability.
14122         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
14123         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
14124         * lib/stdlib.in.h: Likewise.
14125         * lib/spawn.in.h: Likewise.
14126         * lib/sys_socket.in.h: Update an URL.
14127         * lib/sys_stat.in.h: Break long line.
14128
14129 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
14130
14131         Improve pmccabe2html.
14132         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
14133         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
14134         when the sources change. Remove the line in the HTML about "Used
14135         ranges" (which implied that there might be other unused ranges),
14136         rename "Resume" to "Summary" (easier to understand for more users).
14137         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
14138         styles, and some unnecessary blank lines.
14139
14140 2010-10-03  Bruno Haible  <bruno@clisp.org>
14141             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
14142
14143         acl: Add support for ACLs on NonStop Kernel.
14144         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
14145         Check whether the function aclsort() exists.
14146         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
14147         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
14148         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
14149         (acl_nontrivial [HAVE_ACLSORT]: New function.
14150         (file_has_acl): Implement for NonStop Kernel.
14151         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
14152         (qset_acl): Implement for NonStop Kernel.
14153         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
14154         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
14155         (main): Implement for NonStop Kernel.
14156         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
14157         Kernel. Handle this flavor.
14158         * tests/test-set-mode-acl.sh: Likewise.
14159         * tests/test-copy-acl.sh: Likewise.
14160         * tests/test-copy-file.sh: Likewise.
14161
14162 2010-10-03  Bruno Haible  <bruno@clisp.org>
14163
14164         Info about ACLs on NonStop Kernel.
14165         * doc/acl-resources.txt: Add info about NonStop Kernel.
14166         References by Joachim Schmitz <schmitz@hp.com>.
14167
14168 2010-10-02  Bruno Haible  <bruno@clisp.org>
14169
14170         Define missing EDQUOT on NonStop Kernel.
14171         * lib/errno.in.h (EDQUOT): Assign a value if missing.
14172         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
14173         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
14174         missing.
14175         * doc/posix-headers/errno.texi: Mention the NSK bug.
14176         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
14177         Reported by Joachim Schmitz <schmitz@hp.com>.
14178
14179 2010-10-02  Bruno Haible  <bruno@clisp.org>
14180
14181         Update doc for POSIX:2008.
14182         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
14183         Update URL of POSIX specification.
14184
14185 2010-10-02  Bruno Haible  <bruno@clisp.org>
14186
14187         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
14188         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
14189         from gnulib, not from Automake.
14190
14191 2010-10-02  Bruno Haible  <bruno@clisp.org>
14192
14193         New module 'system-posix'.
14194         * modules/system-posix: New file.
14195         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
14196         module is present.
14197         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
14198         GNULIB_SYSTEM_POSIX.
14199         * modules/stdlib (Depends-on): Remove sys_wait.
14200         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
14201         * doc/posix-functions/system.texi: Mention the new module.
14202         * doc/posix-headers/stdlib.texi: Likewise.
14203         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
14204         define test_sys_wait_macros to a no-op.
14205         Reported by Sam Steingold <sds@gnu.org>.
14206
14207 2010-09-30  Bruno Haible  <bruno@clisp.org>
14208
14209         More renaming from 'getdate' to 'get_date'.
14210         * doc/get_date.texi: Renamed from doc/getdate.texi.
14211         * modules/get_date (Files): Update.
14212         * MODULES.html.sh (Date and time <time.h>): Update.
14213         * DEPENDENCIES: Update.
14214         * gnulib-tool: Update comment.
14215         * m4/bison.m4 (gl_BISON): Likewise.
14216         * m4/get_date.m4 (gl_GET_DATE): Likewise.
14217
14218 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
14219
14220         bootstrap: support ACLOCAL_FLAGS during aclocal
14221         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
14222         can add additional -I dir for third-party .m4 files.
14223
14224 2010-09-30  Eric Blake  <eblake@redhat.com>
14225
14226         bootstrap: use glibtoolize on MacOS
14227         * build-aux/bootstrap (check_versions): Convert libtool into
14228         libtoolize.
14229         (tool search): Move libtool check earlier, and look for
14230         glibtoolize for MacOS.
14231         (gnulib_tool_options): Auto-add --libtool when appropriate.
14232         Reported by Justin Clift.
14233
14234         poll: fix typo that broke test on MacOS
14235         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
14236         Reported by Justin Clift.
14237
14238         getdate: rename to get_date
14239         Note: getdate.h is not renamed, to minimize client impact.
14240         * modules/getdate: Mark obsolete.  Move old contents...
14241         * modules/get_date: ...to new module name.
14242         * modules/getdate-tests: Move...
14243         * modules/get_date-tests: ...here.
14244         * m4/getdate.m4: Move...
14245         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
14246         * lib/getdate.y: Move...
14247         * lib/get_date.y: ...here.
14248         * tests/test-getdate.c: Move...
14249         * tests/test-get_date.c: ...here.
14250         * doc/posix-functions/getdate.texi (getdate): Update name.
14251         * NEWS: Mention the change.
14252
14253 2010-09-29  Bruno Haible  <bruno@clisp.org>
14254
14255         Separate the module 'waitpid' from the module 'sys_wait'.
14256         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
14257         present.
14258         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
14259         gl_MODULE_INDICATOR_FOR_TESTS.
14260         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
14261         * modules/sys_wait (Depends-on): Remove waitpid.
14262         (Makefile.am): Substitute GNULIB_WAITPID.
14263         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
14264         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
14265         signature only if the 'waitpid' module is present.
14266         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
14267         * NEWS: Mention the change.
14268         * modules/grantpt (Depends-on): Add waitpid.
14269         * modules/wait-process (Depends-on): Likewise.
14270
14271 2010-09-29  Bruno Haible  <bruno@clisp.org>
14272
14273         More tests for module 'sys_wait'.
14274         * modules/sys_wait-c++-tests: New file.
14275         * tests/test-sys_wait-c++.cc: New file.
14276         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
14277         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
14278
14279 2010-09-29  Bruno Haible  <bruno@clisp.org>
14280
14281         New module 'waitpid'.
14282         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
14283         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
14284         Don't include <process.h>.
14285         (waitpid): Declare only, using modern idiom.
14286         * m4/waitpid.m4: New file.
14287         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
14288         * modules/waitpid: New file.
14289         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
14290         (Makefile.am): Update.
14291         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
14292
14293 2010-09-28  Bruno Haible  <bruno@clisp.org>
14294
14295         poll: Assume ANSI C.
14296         * lib/poll.c (poll): Use an ANSI C declaration.
14297
14298 2010-09-28  Bruno Haible  <bruno@clisp.org>
14299
14300         poll-h: Create poll.h on all platforms.
14301         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
14302         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
14303         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
14304         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
14305         (gl_REPLACE_POLL_H): Don't set POLL_H.
14306         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
14307         * modules/poll-h (Depends-on): Add include_next.
14308         (Makefile.am): Create poll.h unconditionally. Substitute also
14309         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
14310
14311 2010-09-28  Bruno Haible  <bruno@clisp.org>
14312
14313         Tests for module 'poll-h'.
14314         * modules/poll-h-c++-tests: New file.
14315         * tests/test-poll-h-c++.cc: New file.
14316
14317         Tests for module 'poll-h'.
14318         * modules/poll-h-tests: New file.
14319         * tests/test-poll-h.c: New file.
14320
14321 2010-09-28  Bruno Haible  <bruno@clisp.org>
14322
14323         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
14324         * modules/poll-h (Depends-on): Add 'extensions'.
14325
14326 2010-09-28  Bruno Haible  <bruno@clisp.org>
14327
14328         New module 'poll-h'.
14329         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
14330         (poll): Use modern idiom.
14331         * modules/poll-h: New file.
14332         * modules/poll (Files): Remove lib/poll.in.h.
14333         (Depends-on): Add poll-h.
14334         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
14335         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
14336         * m4/poll_h.m4: New file.
14337         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
14338         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
14339         and invoke gl_REPLACE_POLL_H.
14340         * lib/poll.c: Use common idiom.
14341         * tests/test-poll.c: Likewise.
14342         * doc/posix-headers/poll.texi: Mention the poll-h module.
14343         Suggested by Eric Blake.
14344
14345 2010-09-26  Bruno Haible  <bruno@clisp.org>
14346
14347         sys_wait: Implement WSTOPSIG.
14348         * lib/sys_wait.in.h (WSTOPSIG): New macro.
14349         Reported by Simon Josefsson.
14350
14351 2010-09-26  Simon Josefsson  <simon@josefsson.org>
14352
14353         stdlib, sys_wait: Avoid compilation error on mingw.
14354         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
14355
14356 2010-09-26  Bruno Haible  <bruno@clisp.org>
14357
14358         stdlib tests: Avoid code duplication.
14359         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
14360         * modules/sys_wait-tests (Files): Likewise.
14361         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
14362         * tests/test-stdlib.c: Include test-sys_wait.h.
14363         (main): Invoke test_sys_wait_macros.
14364         * tests/test-sys_wait.c: Include test-sys_wait.h.
14365         (main): Invoke test_sys_wait_macros.
14366
14367 2010-09-25  Simon Josefsson  <simon@josefsson.org>
14368
14369         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
14370         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
14371         sure Windows sockets are working before calling getaddrinfo.
14372         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
14373         * doc/gnulib.texi (Windows sockets): Fix typo.
14374
14375 2010-09-25  Bruno Haible  <bruno@clisp.org>
14376
14377         Tests for module 'regex-quote'.
14378         * modules/regex-quote-tests: New file.
14379         * tests/test-regex-quote.c: New file.
14380
14381         New module 'regex-quote'.
14382         * lib/regex-quote.h: New file.
14383         * lib/regex-quote.c: New file.
14384         * modules/regex-quote: New file.
14385         Suggested by Reuben Thomas <rrt@sc3d.org>.
14386
14387 2010-09-24  Bruno Haible  <bruno@clisp.org>
14388
14389         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
14390         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
14391
14392 2010-09-23  Bruno Haible  <bruno@clisp.org>
14393
14394         setenv: Relax license.
14395         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
14396         Blake.
14397         Requested by Eric Blake.
14398
14399 2010-09-22  Bruno Haible  <bruno@clisp.org>
14400
14401         termios: Relax license.
14402         * modules/termios (License): Change to LGPLv2+.
14403         Requested by Eric Blake.
14404
14405 2010-09-22  Bruno Haible  <bruno@clisp.org>
14406
14407         threadlib: Allow the package to change the default to 'no'.
14408         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
14409         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
14410         Reported by Paul Eggert.
14411
14412 2010-09-22  Pádraig Brady  <P@draigbrady.com>
14413             Bruno Haible  <bruno@clisp.org>
14414
14415         Fix endless loop in mbmemcasecoll.
14416         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
14417         byte.
14418         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
14419
14420 2010-09-22  Bruno Haible  <bruno@clisp.org>
14421
14422         Tests for module 'memcoll'.
14423         * modules/memcoll-tests: New file.
14424         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
14425
14426         memcoll, xmemcoll: Clarify size vs. length.
14427         * modules/memcoll.c (memcoll0): Clarify specification.
14428         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
14429         passed to collate_error.
14430
14431 2010-09-22  Bruno Haible  <bruno@clisp.org>
14432
14433         Tests for module 'memcasecmp'.
14434         * modules/memcasecmp-tests: New file.
14435         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
14436
14437 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
14438
14439         * lib/pthread.in.h: Add split double-inclusion guard, and include
14440         system <pthread.h> if there is one.  Use @@-style as in other
14441         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
14442         pthread.h doesn't.
14443         (pthread_mutexattr_destroy, pthread_mutexattr_init):
14444         (pthread_mutexattr_settype, pthread_mutex_trylock):
14445         New static inline functions, if there's no system <pthread.h>.
14446         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
14447         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
14448         Approximate with mutexes if the system lacks spinlocks, as in
14449         MacOS.
14450         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
14451         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
14452         @@-style.  Check for spinlocks separately.
14453         (gl_PTHREAD_DEFAULTS): New macro.
14454         * modules/pthread: Redo to use a more typical style for in.h files.
14455
14456 2010-09-21  Eric Blake  <eblake@redhat.com>
14457
14458         net_if: enhance tests
14459         * tests/test-net_if.c (main): Move signature checks earlier.
14460         Print failures to stderr.
14461         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
14462         Document the bug that we do not yet fix.
14463
14464 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
14465
14466         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
14467         about gnulib, not GSS.
14468
14469 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
14470
14471         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
14472         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
14473         for Emacs.
14474         * build-aux/pmccabe2html: Make Makefile.am example code more
14475         cut-and-paste friendly.
14476
14477 2010-09-21  Simon Josefsson  <simon@josefsson.org>
14478
14479         * tests/test-net_if.c: New file.
14480         * modules/net_if-tests: New file.
14481
14482 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
14483
14484         pthread: add pthread_spin_destroy
14485         * lib/pthread.in.h (pthread_spin_destroy): New function.
14486
14487 2010-09-19  Bruno Haible  <bruno@clisp.org>
14488
14489         gnulib-tool: Fix --help output.
14490         * gnulib-tool (func_usage): Fix help message.
14491         Reported by Reuben Thomas <rrt@sc3d.org>.
14492
14493 2010-09-18  Jim Meyering  <meyering@redhat.com>
14494
14495         maint.mk: avoid unexpanded \n in two diagnostics
14496         * top/maint.mk (sc_prohibit_always_true_header_tests):
14497         Don't use a literal \n in a halt=... assignment.  It would not be
14498         expanded, and the two \n bytes would appear in the diagnostic output
14499         rather than the desired newline.  Use halt=$$(printf ... instead.
14500         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
14501
14502 2010-09-18  Bruno Haible  <bruno@clisp.org>
14503
14504         netinet_in: Doc tweak.
14505         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
14506         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14507
14508 2010-09-18  Jim Meyering  <meyering@redhat.com>
14509
14510         init.sh: correct an outdated comment
14511         * tests/init.sh (create_exe_shims_):  s/function/alias/
14512
14513         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
14514         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
14515         a file named "*.exe" is removed between the glob expansion and the
14516         processing of that oddly named file.
14517
14518 2010-09-17  Eric Blake  <eblake@redhat.com>
14519
14520         mirbsd: add some more support
14521         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
14522         in BSD family.
14523         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
14524         devices as OpenBSD.
14525         * m4/host-os.m4 (mirbsd): Add MirBSD.
14526
14527         tests: fix unportable assumption on sys/wait.h
14528         * tests/test-sys_wait.c (main): Relax test.
14529         * tests/test-stdlib.c (main): Likewise.
14530
14531         init.sh: accomodate directory with no .exes
14532         * tests/init.sh: Accomodate directory containing only scripts.
14533
14534         tests: avoid compiler warning
14535         * tests/test-stdlib.c (main): Use the variable.
14536
14537         fdutimens, fdutimensat: update signature, again
14538         * lib/utimens.h (gl_futimens): Delete, and move signature...
14539         (fdutimens): ...here.
14540         (fdutimensat): Rearrange signature.
14541         (lutimensat): Rename variable for clarity.
14542         * lib/fdutimensat.c (fdutimensat): Update signature.
14543         * lib/utimens.c (fdutimens): Likewise.
14544         (gl_futimens): Delete.
14545         (utimens, lutimens): Update callers.
14546         * lib/futimens.c (futimens): Likewise.
14547         * tests/test-fdutimensat.c: Likewise.
14548         * tests/test-utimens.c: Likewise.
14549         * tests/test-futimens.h: Update comment.
14550         * NEWS: Mention this.
14551         Suggested by Paul Eggert.
14552
14553 2010-09-17  Bruno Haible  <bruno@clisp.org>
14554
14555         Take over the maintenance of some older macros from Autoconf.
14556         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
14557         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
14558         GNU Autoconf.
14559         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
14560         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
14561
14562 2010-09-17  Eric Blake  <eblake@redhat.com>
14563
14564         fdutimensat: drop atflag validation
14565         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
14566         with valid fd, to close a race scenario where futimens is
14567         unsupported and FILE was replaced by a symlink.
14568         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
14569         accordingly.
14570         Suggested by Paul Eggert.
14571
14572 2010-09-16  Bruno Haible  <bruno@clisp.org>
14573
14574         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
14575         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
14576
14577 2010-09-16  Bruno Haible  <bruno@clisp.org>
14578
14579         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
14580         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
14581         login_tty exists.
14582         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14583
14584 2010-09-16  Bruno Haible  <bruno@clisp.org>
14585
14586         login_tty: Make the replacement code work on BSD systems.
14587         * lib/login_tty.c: Include <sys/ioctl.h>.
14588         (login_tty): Use ioctl TIOCSCTTY when available.
14589         * modules/login_tty (Depends-on): Add sys_ioctl.
14590         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14591
14592 2010-09-16  Bruno Haible  <bruno@clisp.org>
14593
14594         login_tty: Stricter unit test.
14595         * modules/login_tty-tests (Depends-on): Add tcgetsid.
14596         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
14597         and tcgetsid() after login_tty.
14598         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14599
14600 2010-09-16  Bruno Haible  <bruno@clisp.org>
14601
14602         New module 'tcgetsid'.
14603         * lib/tcgetsid.c: New file.
14604         * m4/tcgetsid.m4: New file.
14605         * modules/tcgetsid: New file.
14606         * modules/termios (Depends-on): Add c++defs, warn-on-use.
14607         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
14608         GNULIB_TCGETSID, HAVE_TCGETSID.
14609         * lib/termios.in.h: Include <sys/types.h>.
14610         (tcgetsid): New declaration.
14611         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
14612         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
14613         * doc/posix-functions/tcgetsid.texi: Mention the new module.
14614         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
14615
14616 2010-09-16  Bruno Haible  <bruno@clisp.org>
14617
14618         Tests for module 'termios'.
14619         * modules/termios-c++-tests: New file.
14620         * modules/termios-tests: New file.
14621         * tests/test-termios-c++.cc: New file.
14622         * tests/test-termios.c: New file.
14623
14624         New module 'termios'.
14625         * modules/termios: New file.
14626         * lib/termios.in.h: New file.
14627         * m4/termios_h.m4: New file.
14628         * doc/posix-headers/termios.texi: Mention the new module.
14629
14630 2010-09-16  Eric Blake  <eblake@redhat.com>
14631
14632         fdutimensat: add an atflag parameter
14633         * lib/fdutimensat.c (fdutimensat): Add new parameter.
14634         * lib/utimens.h (fdutimensat): Update prototype.
14635         * tests/test-fdutimensat.c: Adjust test to match.
14636         * NEWS: Document the change.
14637         Suggested by Paul Eggert.
14638
14639 2010-09-16  Bruno Haible  <bruno@clisp.org>
14640
14641         Fix typos in comments.
14642         * lib/striconveh.h: Fix typo in comment.
14643         * lib/login_tty.c (login_tty): Likewise.
14644
14645 2010-09-15  Bruno Haible  <bruno@clisp.org>
14646
14647         stdlib: clarify MirBSD WEXITSTATUS bug
14648         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
14649         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
14650
14651 2010-09-15  Eric Blake  <eblake@redhat.com>
14652
14653         stdlib: work around MirBSD WEXITSTATUS bug
14654         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
14655         * modules/stdlib (Depends-on): Add sys_wait.
14656         * tests/test-sys_wait.c (main): Enhance test.
14657         * tests/test-stdlib.c (main): Likewise.
14658         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
14659
14660         docs: mention MacOS issue with WEXITSTATUS(constant)
14661         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
14662         issue.
14663         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
14664
14665         strnlen: add tests
14666         * modules/strnlen-tests: New file.
14667         * tests/test-strnlen.c: Likewise.
14668
14669 2010-09-14  Bruno Haible  <bruno@clisp.org>
14670
14671         unistr/base: Avoid link errors when module 'libunistring' is also used.
14672         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
14673         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
14674         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
14675         Declare also when HAVE_LIBUNISTRING is set.
14676         Reported by Pádraig Brady <P@draigbrady.com>.
14677
14678 2010-09-14  Eric Blake  <eblake@redhat.com>
14679
14680         test-rawmemchr: make more robust
14681         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
14682         (Depends-on, configure.ac): Add needed prerequisites to use it.
14683         * modules/memchr-tests (Files, Depends-on, configure.ac):
14684         Likewise, to avoid implicit reliance on memchr module prereqs.
14685         * tests/test-memchr.c (main): Ensure proper masking.
14686         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
14687         reads.
14688
14689         memchr: detect glibc Alpha bug
14690         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
14691         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
14692         Alpha.
14693         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
14694         * tests/test-memchr.c (main): Enhance test.
14695         Reported by Nelson H. F. Beebe.
14696
14697 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
14698
14699         fts, getcwd, glob: audit for dirfd returning -1
14700         * lib/fts.c (opendir): Remove #define; no longer used.
14701         (opendirat): New arg PDIR_FD.  All callers changed.
14702         (fts_build, _opendir2): Use new opendirat to avoid the need for
14703         dirfd, or for checking whether dirfd returns a negative value.
14704         Don't use opendir; always use openat followed by fdopendir.
14705         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
14706         it.
14707         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
14708         returns -1 here.
14709         * modules/fts (Depends-on): Remove dirfd.
14710         * modules/getcwd (Depends-on): Likewise.
14711
14712 2010-09-13  Eric Blake  <eblake@redhat.com>
14713
14714         float: fix broken MirBSD header
14715         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
14716         * doc/posix-headers/float.texi (float.h): Document it.
14717
14718 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
14719
14720         fts: use O_NOFOLLOW to avoid race condition when opening a directory
14721         * lib/fts.c (opendirat): New arg extra_flags.
14722         (__opendir2): Use it to avoid following symlinks when opening
14723         a directory, if symlinks are not supposed to be followed.  See
14724         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
14725
14726         fdopendir: preserve argument fd before returning
14727         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
14728         (fdopendir_with_dup, fd_clone_opendir): New static functions.
14729         (fdopendir): Use them, arranging for FD to be open to the same
14730         directory that it was when it started.  (It might be temporarily
14731         closed while fdopendir is running, so this not thread- or
14732         signal-safe.)  Be careful to do the right thing even when file
14733         descriptors are scarce and dup fails with errno == EMFILE.  See
14734         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
14735
14736 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
14737
14738         regex: Pass the system regex if its only problem is 32-bit regoff_t.
14739         * NEWS: Document change.
14740         * m4/regex.m4: Disable test for regoff_t size.
14741
14742 2010-09-13  Jim Meyering  <meyering@redhat.com>
14743
14744         fts: don't operate on an invalid file descriptor after failed dup
14745         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
14746         negative file descriptor.
14747
14748 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
14749
14750         savedir: add streamsavedir, deprecate fdsavedir
14751         * NEWS: Mention deprecation of fdsavedir.
14752         * lib/savedir.c (streamsavedir): New extern function, whose name
14753         ends in "savedir" to be consistent with the others.  This differs
14754         from savedirstream in that it doesn't close its argument.  The
14755         next version of GNU tar will use this instead of fdsavedir, to
14756         avoid some race conditions and conserve file descriptors.
14757         (savedirstream): Reimplement as a wrapper around streamsavedir.
14758         (fdsavedir): Add a comment deprecating this function.  As far as
14759         I know, only GNU tar used it, and GNU tar doesn't need it any more.
14760         * lib/savedir.h (streamsavedir): New decl.
14761         (fdsavedir): Add a comment deprecating this.
14762
14763 2010-09-10  Bruno Haible  <bruno@clisp.org>
14764
14765         langinfo: Fix last commit.
14766         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
14767         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
14768         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14769
14770 2010-09-10  Bruno Haible  <bruno@clisp.org>
14771
14772         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
14773         * lib/progreloc.c (O_EXEC): Define fallback.
14774
14775 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
14776
14777         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
14778         * NEWS: Document recent changes to fcntl-h.
14779         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
14780         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
14781         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
14782         Similarly for O_SEARCH; this last was already true, but not documented.
14783         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
14784         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
14785         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
14786         Likewise.
14787         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
14788         is zero, not whether it is defined.
14789         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
14790         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
14791         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
14792
14793 2010-09-10  Bruno Haible  <bruno@clisp.org>
14794
14795         langinfo, nl_langinfo: Fix for IRIX 5.3.
14796         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
14797         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
14798         HAVE_LANGINFO_YESEXPR.
14799         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
14800         HAVE_LANGINFO_YESEXPR.
14801         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
14802         HAVE_LANGINFO_T_FMT_AMPM is 0.
14803         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
14804         HAVE_LANGINFO_YESEXPR is 0.
14805         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
14806         NOEXPR.
14807         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
14808         * doc/posix-functions/nl_langinfo.texi: Likewise.
14809         Reported by Eric Blake.
14810
14811 2010-09-10  Bruno Haible  <bruno@clisp.org>
14812
14813         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
14814         * doc/glibc-functions/login_tty.texi: Mention the include file problem
14815         on FreeBSD 8.0 and OpenBSD 4.6.
14816         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
14817         * m4/pty_h.m4 (gl_PTY_H): Likewise.
14818         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
14819         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
14820         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
14821         ac_includes_default.
14822         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14823
14824 2010-09-09  Eric Blake  <eblake@redhat.com>
14825
14826         strsignal: work around NetBSD bug
14827         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
14828         * lib/string.in.h (includes): Likewise.
14829         * doc/posix-functions/strsignal.texi (strsignal): Document the
14830         bug.
14831         Reported by Nelson H. F. Beebe.
14832
14833         gnulib-tool: work with NetBSD /bin/sh
14834         * gnulib-tool (func_cache_var, func_cache_lookup_module)
14835         (func_get_description, func_get_comment, func_get_status)
14836         (func_get_notice, func_get_applicability, func_get_filelist)
14837         (func_get_dependencies, func_get_autoconf_early_snippet)
14838         (func_get_autoconf_snippet, func_get_automake_snippet)
14839         (func_get_include_directive, func_get_link_directive)
14840         (func_get_license, func_get_maintainer, func_import): Avoid
14841         shell syntax errors from parsing syntax extensions.
14842
14843 2010-09-09  Bruno Haible  <bruno@clisp.org>
14844
14845         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
14846         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
14847         a reliable way to determine whether the 'alias' command works.
14848
14849 2010-09-08  Jim Meyering  <meyering@redhat.com>
14850
14851         init.sh: penalize a set-x-impaired shell; don't disqualify it
14852         * tests/init.sh: Too many shells corrupt application stderr when
14853         you set -x, so we can't afford to disqualify them, since at least
14854         on Irix-6.5, that would disqualify all bourne shells.
14855         Instead, use a two-pass approach.
14856         On the first pass, try to find a shell that meets the stricter
14857         condition that set -x does not corrupt stderr.
14858         If no shell meets the stricter condition, retest each candidate
14859         shell, but without that extra condition.  Finally, when
14860         VERBOSE=yes is requested and set -x might cause trouble, simply
14861         issue a warning and refrain from enabling debug output.
14862
14863 2010-09-08  Eric Blake  <eblake@redhat.com>
14864
14865         unsetenv: fix OpenBSD bug
14866         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
14867         * doc/posix-functions/unsetenv.texi (unsetenv): Update
14868         documentation.
14869         Reported by Jim Meyering.
14870
14871         strtod: work around IRIX 6.5 bug
14872         * lib/strtod.c (strtod): Reparse number on shorter string if
14873         exponent parse was invalid.
14874         * tests/test-strtod.c (main): Add check for "0x1p 2".
14875         Reported by Tom G. Christensen.
14876
14877         getopt: optimize previous patch
14878         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
14879         empty variable.  Speed up awk script.
14880         Reported by Paolo Bonzini.
14881
14882 2010-09-08  Jim Meyering  <meyering@redhat.com>
14883
14884         test.sh: disqualify shells for which set -x corrupts stderr
14885         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
14886         and OpenBSD 4.7.  They make it so with "set -x", environment settings
14887         appear in stderr output.  For example, this command:
14888             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
14889         prints "P=1" on those two systems:
14890
14891 2010-09-08  Bruno Haible  <bruno@clisp.org>
14892
14893         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
14894         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
14895         commands, because some shells ignore redirections when there is an
14896         error in the command lookup.
14897         Reported by Eric Blake.
14898
14899 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
14900
14901         * lib/regex.h: Fix a mention of `regex_compile' (should be
14902         `re_compile_pattern').
14903         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
14904         (re_set_registers): Correct name of parameter in comment.
14905
14906         * doc/regex.texi: Add documentation for missing syntax flags.
14907         Remove commented-out documentation of defunct syntax option
14908         RE_NO_EMPTY_ALTS.
14909         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
14910         Add documentation of re_set_registers.
14911         Document trick to re-use a pattern buffer by setting fastmap manually.
14912         Update documentation of struct re_pattern_buffer per public members.
14913         Uncomment documentation of equivalence class operators and
14914         collating symbol operators, since they are now implemented,
14915         Explain leftmost-longest matching in relation to alternatives.
14916         Tidy documentation of substring matching.
14917         Remove POSIX documentation, which is done better in
14918         glibc, and refer the reader there. Keep BSD API documentation, as
14919         that is not readily available elsewhere.
14920
14921 2010-09-07  Eric Blake  <eblake@redhat.com>
14922
14923         getopt: handle POSIXLY_CORRECT set but not exported
14924         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
14925         export state of POSIXLY_CORRECT, due to bash set -o posix.
14926         Reported by Dustin J. Mitchell.
14927
14928 2010-09-05  Bruno Haible  <bruno@clisp.org>
14929
14930         gnulib-tool: Highlight the changed options.
14931         * gnulib-tool (func_usage): Display the --import, --add-import,
14932         --remove-import explanations in bold font.
14933
14934 2010-09-06  Karl Berry  <karl@gnu.org>
14935
14936         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
14937
14938 2010-09-05  Bruno Haible  <bruno@clisp.org>
14939
14940         uniwidth/width: Update comment.
14941         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
14942         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
14943
14944 2010-09-05  Bruno Haible  <bruno@clisp.org>
14945
14946         isinf, isnan: Relax license.
14947         * modules/isinf (License): Change from GPL to LGPL, with consent from
14948         Ben Pfaff.
14949         * modules/isnan (License): Likewise.
14950         Requested by Ludovic Courtès.
14951
14952 2010-09-04  Bruno Haible  <bruno@clisp.org>
14953
14954         gnulib-tool: Help migration from --import to --add-import or --update.
14955         * gnulib-tool: Emit a verbose error message when --import is used
14956         without any module name.
14957
14958 2010-09-04  Bruno Haible  <bruno@clisp.org>
14959
14960         Update doc about gnulib-tool.
14961         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
14962         'gnulib-tool --update' in more detail.
14963         Reported by Eric Blake.
14964
14965 2010-09-04  Bruno Haible  <bruno@clisp.org>
14966
14967         gnulib-tool: Change --import. New options --add/remove-import.
14968         * gnulib-tool: New options --add-import, --remove-import.
14969         (func_usage): Document them.
14970         (have_associative): Define always.
14971         (func_import): In import mode, don't merge the specified settings with
14972         the cached settings. Implement remove-import mode.
14973         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
14974         Explain when to use them versus --import.
14975         (Simple update): Use --add-import instead of --import.
14976         * NEWS: Mention the change.
14977
14978 2010-09-04  Bruno Haible  <bruno@clisp.org>
14979
14980         * doc/gnulib-tool.texi (Initial import): Update paragraph about
14981         separate gnulib.mk.
14982
14983 2010-09-04  Bruno Haible  <bruno@clisp.org>
14984
14985         gnulib-tool: Don't talk about CVS any more.
14986         * gnulib-tool (func_usage, func_import): Write "version control"
14987         instead of CVS.
14988
14989 2010-09-04  Jim Meyering  <meyering@redhat.com>
14990
14991         maint.mk: avoid obscure sc_copyright_check failure in coreutils
14992         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
14993         false positives (whose names may be ill-chosen) when searching
14994         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
14995         would cause a false-positive.
14996
14997         avoid coreutils "make distcheck" failure
14998         Coreutils tests with an absolute build directory name that contains
14999         a space.  Not quoting this directory name caused a failure.
15000         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
15001         * tests/test-vc-list-files-cvs.sh: Likewise.
15002
15003 2010-09-04  Bruno Haible  <bruno@clisp.org>
15004
15005         gnulib-tool: Avoid error when run in a package without Makefile.am.
15006         * gnulib-tool: When collecting the m4dirs in a package that does not
15007         have a Makefile.am, eliminate those directories that contain no
15008         gnulib-cache.m4. Fix expression that counts these directories.
15009
15010 2010-09-04  Bruno Haible  <bruno@clisp.org>
15011
15012         update-copyright test: Improve output when perl is missing or too old.
15013         * tests/test-update-copyright.sh: Move test of Perl version down after
15014         the test whether Perl exists. Provide an explanation relating Perl's
15015         error message to Automake's SKIP: message.
15016
15017 2010-09-04  Bruno Haible  <bruno@clisp.org>
15018
15019         Don't augment PATH in TESTS_ENVIRONMENT.
15020         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
15021         set abs_aux_dir instead of augmenting PATH.
15022         * modules/vc-list-files-tests (Makefile.am): Likewise.
15023         * tests/test-update-copyright.sh: Augment PATH here.
15024         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
15025         path_prepend_.
15026         * tests/test-vc-list-files-git.sh: Likewise.
15027
15028 2010-09-04  Jim Meyering  <meyering@redhat.com>
15029
15030         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
15031         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
15032
15033 2010-09-04  Bruno Haible  <bruno@clisp.org>
15034
15035         strdup: Fix compilation error in C++ mode.
15036         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
15037         the macro.
15038
15039 2010-09-04  Bruno Haible  <bruno@clisp.org>
15040
15041         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
15042         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
15043         macro into a function.
15044         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15045
15046 2010-09-04  Bruno Haible  <bruno@clisp.org>
15047
15048         Set PATH_SEPARATOR the same way autoconf does.
15049         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
15050         the value of PATH_SEPARATOR the same way autoconf-generated configure
15051         scripts do.
15052         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
15053         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
15054
15055 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
15056
15057         Set PATH_SEPARATOR the same way autoconf does.
15058         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
15059         the same way autoconf-generated configure scripts do.
15060         * posix-modules: Likewise.
15061
15062 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
15063
15064         hash: fix safe_hasher const typo
15065         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
15066         const; otherwise, there is a type error later.
15067
15068 2010-09-02  Jim Meyering  <meyering@redhat.com>
15069
15070         test-update-copyright.sh: require perl 5.8.0
15071         * tests/test-update-copyright.sh: Require 5.8.0,
15072         which Tom G. Christensen has confirmed is adequate,
15073         while 5.6.1 is not.
15074
15075 2010-09-02  Eric Blake  <eblake@redhat.com>
15076
15077         tests: init.sh improvements for re-exec'ing with zsh
15078         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
15079         -vx through shell re-exec.
15080         Reported by Tom G. Christensen.
15081
15082         wctype: fix typo in previous commit
15083         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
15084         Reported by Ludovic Courtès.
15085
15086 2010-09-02  Jim Meyering  <meyering@redhat.com>
15087
15088         test-update-copyright.sh: skip test if Perl is too old
15089         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
15090         Reported by Tom G. Christensen.
15091
15092 2010-09-02  Bruno Haible  <bruno@clisp.org>
15093
15094         wctype: Avoid compilation error on IRIX 6.5.30.
15095         * lib/wctype.in.h (iswblank): Declare with a replacement if
15096         REPLACE_ISWBLANK is set.
15097         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
15098         declared. Set REPLACE_ISWBLANK.
15099         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
15100         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
15101         * doc/posix-headers/wctype.texi: Likewise.
15102         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15103
15104 2010-09-01  Bruno Haible  <bruno@clisp.org>
15105
15106         New module 'socketlib'.
15107         * modules/socketlib: New file.
15108         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
15109         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
15110         * modules/sockets (Depends-on): Add socketlib.
15111         Suggested by Sam Steingold <sds@gnu.org>.
15112
15113 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
15114
15115         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
15116
15117         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
15118         when one needs search access to a directory but not read access.
15119         On systems where it is available, it works in some cases where
15120         O_RDONLY does not, namely on directories that are searchable but
15121         not readable, and which need only to be searchable.  If O_SEARCH
15122         is not available, fall back to the traditional method of using
15123         O_RDONLY.
15124
15125         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
15126         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
15127         when opening a directory that needs only to be searchable.
15128         * lib/chdir-safer.c (chdir_no_follow): Likewise.
15129         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
15130         * lib/openat-proc.c (openat_proc_name): Likewise.
15131         * lib/openat.c (openat_needs_fchdir): Likewise.
15132         * lib/save-cwd.c (save_cwd): Likewise.
15133         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
15134
15135 2010-08-28  Bruno Haible  <bruno@clisp.org>
15136
15137         New module 'host-cpu-c-abi'.
15138         * modules/host-cpu-c-abi: New file.
15139         * m4/host-cpu-c-abi.m4: New file, based on part of
15140         clisp/src/m4/general.m4.
15141         Requested by Sam Steingold <sds@gnu.org>.
15142
15143 2010-08-31  Eric Blake  <eblake@redhat.com>
15144         and Jim Meyering  <meyering@redhat.com>
15145
15146         hash: factor, and guard against misbehaving hasher function
15147         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
15148         of table->hasher's return value.  Also protect against a hash value
15149         so large that adding it to table->bucket results in a NULL pointer.
15150         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
15151         Use it in place of open-coded check-and-abort.
15152
15153 2010-08-30  Bruno Haible  <bruno@clisp.org>
15154
15155         hash: silence spurious clang warning
15156         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
15157         Reported by Eric Blake.
15158
15159 2010-08-30  Eric Blake  <eblake@redhat.com>
15160
15161         strstr, memmem, strcasestr: avoid leaked shell message
15162         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
15163         FreeBSD.
15164         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
15165         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
15166
15167         tests: silence clang warning
15168         * tests/test-malloca.c (do_allocation): Avoid dead store.
15169
15170 2010-08-29  Bruno Haible  <bruno@clisp.org>
15171
15172         gettext: Fix recent mistake.
15173         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
15174
15175 2010-08-29  Bruno Haible  <bruno@clisp.org>
15176
15177         selinux-h: Offer a --without-selinux option.
15178         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
15179         --without-selinux was specified, skip all tests and define
15180         HAVE_SELINUX_SELINUX_H to 0.
15181         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
15182         set LIB_SELINUX to empty.
15183         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
15184         gl_LIBSELINUX. If --without-selinux was specified, replace
15185         selinux/context.h.
15186         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
15187
15188 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15189             Bruno Haible  <bruno@clisp.org>
15190
15191         Make the module 'realloc-gnu' work again on AIX and OSF/1.
15192         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
15193         of HAVE_REALLOC.
15194         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
15195         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
15196         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
15197         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
15198
15199 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15200             Bruno Haible  <bruno@clisp.org>
15201
15202         Make the module 'calloc-gnu' work again on AIX and OSF/1.
15203         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
15204         HAVE_CALLOC.
15205         * lib/xmalloc.c: Update accordingly.
15206         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
15207         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
15208         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
15209
15210 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15211             Bruno Haible  <bruno@clisp.org>
15212
15213         Make the module 'malloc-gnu' work again on AIX and OSF/1.
15214         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
15215         HAVE_MALLOC.
15216         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
15217         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
15218         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
15219
15220 2010-08-29  Bruno Haible  <bruno@clisp.org>
15221
15222         Update modules list.
15223         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
15224         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
15225         (String handling <string.h>): Add astrxfrm.
15226         (File system functions): Add readlinkat.
15227
15228 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15229
15230         Tests for module 'realloc-gnu'.
15231         * modules/realloc-gnu-tests: New file.
15232         * tests/test-realloc-gnu.c: New file.
15233
15234         Tests for module 'calloc-gnu'.
15235         * modules/calloc-gnu-tests: New file.
15236         * tests/test-calloc-gnu.c: New file.
15237
15238         Tests for module 'malloc-gnu'.
15239         * modules/malloc-gnu-tests: New file.
15240         * tests/test-malloc-gnu.c: New file.
15241
15242 2010-08-28  Bruno Haible  <bruno@clisp.org>
15243
15244         Rename module 'realloc' -> 'realloc-gnu'.
15245         * modules/realloc-gnu: New file, copied from modules/realloc.
15246         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
15247         obsolete.
15248         * modules/mgetgroups (Depends-on): Update.
15249         * doc/posix-functions/realloc.texi: Update.
15250         * NEWS: Mention the change.
15251
15252         Rename module 'calloc' -> 'calloc-gnu'.
15253         * modules/calloc-gnu: New file, copied from modules/calloc.
15254         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
15255         obsolete.
15256         * doc/posix-functions/calloc.texi: Update.
15257         * NEWS: Mention the change.
15258
15259         Rename module 'malloc' -> 'malloc-gnu'.
15260         * modules/malloc-gnu: New file, copied from modules/malloc.
15261         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
15262         obsolete.
15263         * modules/argp (Depends-on): Update.
15264         * modules/regex (Depends-on): Update.
15265         * doc/posix-functions/malloc.texi: Update.
15266         * NEWS: Mention the change.
15267
15268 2010-08-28  Eric Blake  <eblake@redhat.com>
15269
15270         pread, pwrite: add missing dependency
15271         * modules/pread (Depends-on): Add extensions.
15272         * modules/pwrite (Depends-on): Likewise.
15273
15274 2010-08-28  Bruno Haible  <bruno@clisp.org>
15275
15276         unistr/u*-strchr: Fix tests dependencies.
15277         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
15278         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
15279         Reported by Ian Beckwith <ianb@erislabs.net>.
15280
15281 2010-08-28  Bruno Haible  <bruno@clisp.org>
15282
15283         read-file: Don't occupy too much unused memory.
15284         * lib/read-file.c (fread_file): Shrink the buffer at the end.
15285
15286 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
15287             Eric Blake  <eblake@redhat.com>
15288             Bruno Haible  <bruno@clisp.org>
15289
15290         read-file: Avoid memory reallocations with regular files.
15291         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
15292         (fread_file): With regular files, use the remaining length as the
15293         initial buffer size.  Check against overflow.
15294         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
15295         sys_stat.
15296
15297 2010-08-28  Bruno Haible  <bruno@clisp.org>
15298
15299         ftello: Relax license.
15300         * modules/ftello (License): Relax to LGPLv2+.
15301         Reported by Eric Blake.
15302
15303 2010-08-28  Bruno Haible  <bruno@clisp.org>
15304
15305         Avoid relocwrapper link errors due to gnulib replacement functions.
15306         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
15307         function.
15308         Reported by Ben Pfaff <blp@cs.stanford.edu>.
15309
15310 2010-08-28  Bruno Haible  <bruno@clisp.org>
15311
15312         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
15313         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
15314         defined.
15315         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
15316         Suggested by Eric Blake.
15317
15318 2010-08-28  Bruno Haible  <bruno@clisp.org>
15319
15320         sys_socket, netdb: Ensure socklen_t gets defined.
15321         * modules/sys_socket (Depends-on): Add socklen.
15322         * modules/netdb (Depends-on): Likewise.
15323         * modules/getaddrinfo (Depends-on): Remove socklen.
15324         * modules/getsockopt (Depends-on): Likewise.
15325         * modules/setsockopt (Depends-on): Likewise.
15326         * tests/test-sys_socket.c: Check that socklen_t is defined.
15327         * tests/test-netdb.c: Likewise.
15328         * m4/socklen.m4: Update comments.
15329         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15330
15331 2010-08-27  Eric Blake  <eblake@redhat.com>
15332
15333         login_tty: add missing dependency
15334         * modules/login_tty (Depends-on): Add pty.
15335
15336 2010-08-26  Eric Blake  <eblake@redhat.com>
15337
15338         lib-symbol-versions: fix m4 quoting
15339         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
15340         format for AC_LINK_IFELSE.
15341
15342         glob: fix compile test
15343         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
15344
15345         btowc: fix missing file
15346         * modules/btowc (Files): Also ship locale-fr.m4.
15347
15348         lseek: fix link test
15349         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
15350         AC_LINK_IFELSE.
15351
15352         include_next: silence autoconf 2.68 warning
15353         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
15354         AC_COMPILE_IFELSE as special.
15355         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
15356         autoconf < 2.68.
15357
15358         acl: fix compilation test
15359         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
15360         AC_COMPILE_IFELSE.
15361
15362 2010-08-26  Bruno Haible  <bruno@clisp.org>
15363
15364         Modernize AC_TRY_RUN invocations.
15365         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
15366         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
15367         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
15368         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
15369         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
15370         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
15371         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
15372         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
15373         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
15374         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
15375         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
15376         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
15377         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
15378         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
15379         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
15380         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
15381         gl_MBRLEN_NUL_RETVAL): Likewise.
15382         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
15383         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
15384         Likewise.
15385         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
15386         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
15387         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
15388         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
15389         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
15390         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
15391         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
15392         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
15393         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
15394         Likewise.
15395         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
15396         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
15397         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
15398         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
15399         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15400         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
15401         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
15402         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
15403         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
15404         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
15405
15406 2010-08-26  Bruno Haible  <bruno@clisp.org>
15407
15408         Modernize AC_TRY_LINK invocations.
15409         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
15410         AC_TRY_LINK.
15411         * m4/argp.m4 (gl_ARGP): Likewise.
15412         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
15413         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
15414         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
15415         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
15416         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
15417         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
15418         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
15419         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
15420         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
15421         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
15422         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
15423         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
15424         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
15425         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
15426         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
15427         * m4/hostent.m4 (gl_HOSTENT): Likewise.
15428         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
15429         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
15430         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
15431         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
15432         Likewise.
15433         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
15434         Likewise.
15435         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
15436         Likewise.
15437         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
15438         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
15439         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
15440         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
15441         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
15442         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
15443         * m4/servent.m4 (gl_SERVENT): Likewise.
15444         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
15445         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
15446         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
15447         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
15448         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
15449         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
15450         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
15451         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15452         * modules/tsearch-tests (configure.ac): Likewise.
15453
15454 2010-08-26  Bruno Haible  <bruno@clisp.org>
15455
15456         Modernize AC_TRY_COMPILE invocations.
15457         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
15458         AC_TRY_COMPILE.
15459         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
15460         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
15461         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
15462         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
15463         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
15464         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
15465         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
15466         * m4/lock.m4 (gl_LOCK): Likewise.
15467         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
15468         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
15469         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
15470         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
15471         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
15472         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
15473         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
15474         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
15475         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
15476         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
15477         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
15478         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
15479         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
15480         extraneous semicolon.
15481
15482 2010-08-26  Jim Meyering  <meyering@redhat.com>
15483
15484         stat-time: relax license LGPL
15485         * modules/stat-time (License): Change from GPL to LGPL,
15486         with consent from all contributors, for use in libguile.
15487         Requested by Ludovic Courtès.
15488
15489 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
15490
15491         poll: return immediately on POLLHUP.
15492         * lib/poll.c (poll): Always set timeout before wait_timeout is
15493         computed.
15494
15495 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15496
15497         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
15498         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
15499         rmdir ("dir/.//"), unlinkat.
15500
15501 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
15502
15503         stdbool: avoid spurious failure with modern xlc
15504         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
15505
15506 2010-08-24  Bruno Haible  <bruno@clisp.org>
15507
15508         getloadavg: simplify code
15509         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
15510         gl_have_func. Update comments.
15511
15512 2010-08-24  Eric Blake  <eblake@redhat.com>
15513
15514         getloadavg: don't define SVR4 on cygwin
15515         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
15516         only define SVR4 when -lkvm is required.
15517         Reported by Yaakov Selkowitz.
15518
15519 2010-08-24  Bruno Haible  <bruno@clisp.org>
15520
15521         priv-set: fix comment
15522         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
15523
15524 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
15525
15526         priv-set: fix comments
15527         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
15528         to match code, as suggested by David Bartley in:
15529         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
15530
15531 2010-08-23  Eric Blake  <eblake@redhat.com>
15532
15533         stdbool: avoid rejecting clang
15534         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
15535         * tests/test-stdbool.c: Enable more tests if using the system
15536         <stdbool.h> instead of the gnulib replacement.
15537         (main): Move xlc bug test to a runtime test for all compilers.
15538         Reported by Anders Kaseorg.
15539
15540         argz: fix shell quoting issue
15541         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
15542         Reported by Charles Wilson.
15543
15544 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
15545             Erik Faye-Lund <kusmabite@gmail.com>
15546
15547         poll, select: handle ERROR_BROKEN_PIPE.
15548         * lib/poll.c (win32_compute_revents): Return POLLHUP when
15549         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
15550         * lib/select.c (win32_compute_revents): Do not mark a pipe
15551         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
15552
15553 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
15554
15555         fts: allow compilation with C++
15556         * lib/fts_.h: Specify extern "C" linkage with C++.
15557
15558 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15559
15560         Fix gnulib-tool sed script de-commentation for AIX sed.
15561         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
15562         sed.
15563
15564 2010-08-17  Eric Blake  <eblake@redhat.com>
15565
15566         test-stddef: test for (some) offsetof bugs
15567         * tests/test-stddef.c: Enhance test to ensure correct type of
15568         offsetof.
15569         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
15570         that we are not fixing at this time.
15571
15572 2010-08-15  Bruno Haible  <bruno@clisp.org>
15573
15574         stpncpy: Allow stpncpy to be defined as a macro.
15575         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
15576         if it's already correctly declared.
15577         * lib/string.in.h (stpncpy): Undefine before redefining.
15578         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
15579
15580 2010-08-14  Bruno Haible  <bruno@clisp.org>
15581
15582         Rename module 'memxfrm' to 'amemxfrm'.
15583         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
15584         (amemxfrm): Renamed from memxfrm.
15585         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
15586         (amemxfrm): Renamed from memxfrm.
15587         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
15588         * NEWS: Mention the change.
15589         * MODULES.html.sh (String handling <string.h>): Update.
15590         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
15591         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
15592         * lib/unicase/u16-casexfrm.c: Likewise.
15593         * lib/unicase/u32-casexfrm.c: Likewise.
15594         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
15595         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
15596         * lib/uninorm/u16-normxfrm.c: Likewise.
15597         * lib/uninorm/u32-normxfrm.c: Likewise.
15598         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
15599         memxfrm.
15600         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
15601         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
15602         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
15603         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
15604         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
15605         Suggested by Paul Eggert.
15606
15607 2010-08-14  Bruno Haible  <bruno@clisp.org>
15608
15609         Tests for module 'astrxfrm'.
15610         * modules/astrxfrm-tests: New file.
15611         * tests/test-astrxfrm.c: New file.
15612
15613         New module 'astrxfrm'.
15614         * lib/astrxfrm.h: New file.
15615         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
15616         * modules/astrxfrm: New file.
15617
15618 2010-08-14  Reuben Thomas <rrt@sc3d.org>
15619
15620         regex: Tweak doc.
15621         * doc/regex.texi (Overview): Don't mention regex.c.
15622         (GNU Regular Expression Compiling): Likewise.
15623         (Match-end-of-line Operator): Mention 'not_eol'.
15624
15625 2010-08-14  Brian Gough  <bjg@gnu.org>
15626             Bruno Haible  <bruno@clisp.org>
15627
15628         git-merge-changelog: add doc relating to use with bzr and hg.
15629         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
15630
15631 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
15632
15633         pthread: fix pthread.h creation for srcdir != builddir
15634         * modules/pthread (Makefile.am): Fix the rule to work also in a
15635         non-srcdir build.
15636
15637 2010-08-13  Karl Berry  <karl@gnu.org>
15638
15639         * doc/regex.texi (Predefined Syntaxes): @smallexample.
15640         * doc/posix-*/*: force line break before @url of POSIX
15641         specifications.
15642         Suggested by Werner Lemberg.
15643
15644 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
15645
15646         strtod: fix const diagnostic
15647         * lib/strtod.c (strtod): Don't assign const char * to char *,
15648         as this elicits a warning from GCC when warnings are enabled.
15649
15650 2010-08-10  Pádraig Brady <P@draigbrady.com>
15651         and Eric Blake  <eblake@redhat.com>
15652
15653         copy-acl: ignore ENOTSUP on HP-UX
15654         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
15655         so that it is available for HP-UX.
15656         * lib/copy-acl.c (qcopy_acl): Use it.
15657         Reported by Patrick M. Callahan.
15658
15659 2010-08-10  Eric Blake  <eblake@redhat.com>
15660
15661         open, chown: relax license
15662         * modules/open (License): Change to LGPLv2+, with consent by all
15663         authors, for use in augeas.
15664         * modules/chown (License): Likewise.
15665         * modules/lchown (Likewise): Likewise.
15666         Requested by Adam Stokes.
15667
15668 2010-08-09  Karl Berry  <karl@gnu.org>
15669
15670         * build-aux/ar-lib: new file, import from Automake.
15671         * config/srclist.txt: autocheck for updates.
15672
15673 2010-08-09  Eric Blake  <eblake@redhat.com>
15674
15675         readlinkat: adjust client modules
15676         * modules/areadlinkat (Depends-on): Use readlinkat, not
15677         symlinkat.
15678         * modules/areadlinkat-with-size (Depends-on): Likewise.
15679
15680         mknod: be more vocal about danger of running tests as root
15681         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
15682         root, since that is just asking for problems.
15683         Suggested by Bruno Haible, based on a report by Rainer Tammer.
15684
15685         readlinkat: split into its own module
15686         * modules/symlinkat: Split readlinkat...
15687         * modules/readlinkat: ...into separate module.
15688         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
15689         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
15690         * lib/symlinkat.c (readlinkat): Move...
15691         * lib/readlinkat.c: ...into new file.
15692         * modules/symlinkat-tests: Split readlinkat test...
15693         * modules/readlinkat-tests: ...into separate module.
15694         * tests/test-symlinkat.c: Split...
15695         * tests/test-readlinkat.c: ...into new file.
15696         * NEWS: Document the split.
15697         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
15698         * lib/unistd.in.h (readlinkat): Likewise.
15699         Suggested by Bruno Haible.
15700
15701 2010-08-08  Bruno Haible  <bruno@clisp.org>
15702
15703         memxfrm: Speed up.
15704         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
15705         that usually only one call to strxfrm is necessary for each string
15706         part.
15707         Reported by Paul Eggert <eggert@cs.ucla.edu>.
15708
15709 2010-08-07  Karl Berry  <karl@gnu.org>
15710
15711         * doc/posix-headers/limits.texi,
15712         * doc/posix-functions/malloc.texi,
15713         * doc/posix-functions/strsignal.texi: missing @item.
15714         * doc/ld-version-script.texi: spurious leading i.
15715         * doc/regex.texi (Interval Operators): no commas inside @var.
15716
15717 2010-08-01  Bruno Haible  <bruno@clisp.org>
15718
15719         Integrate the regex documentation.
15720         * doc/gnulib.texi: Define 'cn' index.
15721         (Regular expressions): New a chapter that includes regex.texi and
15722         regexprops-generic.texi.
15723         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
15724         syntax.
15725
15726         Whitespace cleanup.
15727         * doc/regex.texi: Remove trailing spaces.
15728
15729         Add regex documentation.
15730         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
15731         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
15732         Written by Kathy A. Hargreaves and Karl Berry.
15733
15734 2010-08-01  Bruno Haible  <bruno@clisp.org>
15735
15736         link: Update documentation.
15737         * doc/posix-functions/link.texi: Update regarding Solaris.
15738
15739 2010-07-31  Bruno Haible  <bruno@clisp.org>
15740
15741         Update modules list.
15742         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
15743         (String handling <string.h>): Add memcmp2, memxfrm.
15744         (Container data structures): Add xlist, xsublist, xoset.
15745         (Core language properties): Add alignof, unused-parameter.
15746         (Process control, Numeric conversion functions <stdlib.h>): Renamed
15747         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
15748         (Unibyte characters <ctype.h>): New section.
15749         (String handling <string.h>): New section.
15750         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
15751         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
15752         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
15753         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
15754         tan, tanh, tanl, y0, y1, yn.
15755         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
15756         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
15757         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
15758         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
15759         unlockpt, vdprintf, vdprintf-posix.
15760         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
15761         (File system functions): Add concat-filename, sys_file, sys_ioctl,
15762         xconcat-filename.
15763         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
15764         getdtablesize, pipe2, pipe2-safer.
15765         (Security): New section.
15766         (Networking functions): Add accept4.
15767         (Signal handling): Add sigpipe.
15768         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
15769         mbmemcasecoll.
15770         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
15771         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
15772         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
15773         pipe-filter-ii.
15774         (Misc): Add argp-version-etc, login_tty, parse-duration.
15775
15776 2010-07-31  Bruno Haible  <bruno@clisp.org>
15777
15778         Improve doc in MODULES.html.
15779         * modules/linkat (Description): Add the word "function".
15780         * modules/mkfifo (Description): Likewise.
15781         * modules/mknod (Description): Likewise.
15782         * modules/remove (Description): Likewise.
15783         * modules/renameat (Description): Likewise.
15784         * modules/stat (Description): Likewise.
15785         * modules/symlink (Description): Likewise.
15786         * modules/unlink (Description): Likewise.
15787
15788 2010-07-31  Bruno Haible  <bruno@clisp.org>
15789
15790         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
15791         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
15792         option --enable/disable-c++ instead of --enable/disable-cxx.
15793         * NEWS: Mention the change.
15794
15795 2010-07-31  Bruno Haible  <bruno@clisp.org>
15796
15797         readlink, areadlink: Relax test a bit.
15798         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
15799         alternative to ENOTDIR.
15800         * tests/test-areadlink.h (test_areadlink): Likewise.
15801         Reported by Rainer Tammer.
15802
15803 2010-07-31  Bruno Haible  <bruno@clisp.org>
15804
15805         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
15806         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
15807         character, perform the search using U_STRCHR.
15808         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
15809         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
15810         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
15811         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
15812         Suggested by Paolo Bonzini.
15813
15814 2010-07-31  Bruno Haible  <bruno@clisp.org>
15815
15816         unistr/u*-strstr: Fix dependencies.
15817         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
15818         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
15819         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
15820
15821 2010-07-31  Bruno Haible  <bruno@clisp.org>
15822
15823         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
15824         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
15825         the beginning of the loop.
15826         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
15827         cases in 'switch' statement.
15828
15829         unistr/u8-strchr: Fix several bugs.
15830         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
15831         the string. When not found, return NULL, not a pointer near the end.
15832
15833         More tests for unistr/u8-strchr.
15834         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
15835         that the function does not read past the first occurrence of the byte
15836         being searched.
15837         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
15838         * tests/unistr/test-u16-strchr.c (main): New function.
15839         * tests/unistr/test-u32-strchr.c (main): New function.
15840
15841 2010-07-31  Bruno Haible  <bruno@clisp.org>
15842
15843         posix-modules: Ignore backup files of documentation files.
15844         * posix-modules: grep only through files named *.texi.
15845
15846 2010-07-31  Bruno Haible  <bruno@clisp.org>
15847
15848         symlinkat: Fix documentation.
15849         * doc/posix-functions/readlinkat.texi: Fix module name.
15850
15851 2010-07-31  Bruno Haible  <bruno@clisp.org>
15852
15853         fchownat: Replace also when chown has the trailing slash bug.
15854         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
15855         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
15856         introduced on 2010-04-10.
15857         Reported by Rainer Tammer.
15858
15859 2010-07-31  Bruno Haible  <bruno@clisp.org>
15860
15861         linkat: Work around AIX 7.1 bug.
15862         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
15863         whether linkat handles trailing slash correctly. If not, replace linkat
15864         and define LINKAT_TRAILING_SLASH_BUG.
15865         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
15866         check whether (fd1,file1) points to a directory if file1 or file2 ends
15867         in a slash. Code taken from lib/link.c.
15868         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
15869         Reported by Rainer Tammer.
15870
15871 2010-07-31  Bruno Haible  <bruno@clisp.org>
15872
15873         Correctly determine whether pow is available in libc on AIX 7 with xlc.
15874         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
15875         This disables an xlc optimization that was causing wrong test results.
15876         Reported by Rainer Tammer.
15877
15878 2010-07-31  Bruno Haible  <bruno@clisp.org>
15879
15880         iconv: Work around AIX 6.1..7.1 bug.
15881         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
15882         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
15883         cross-compiling, guess no on all versions of AIX.
15884         Reported by Rainer Tammer.
15885
15886 2010-07-31  Bruno Haible  <bruno@clisp.org>
15887
15888         readlink: Relax test a bit.
15889         * tests/test-readlink.h (test_readlink): Allow different errno value
15890         when readlink is called with a file name that ends in / and refers to
15891         a file.
15892         Suggested by Eric Blake.
15893         Reported by Rainer Tammer.
15894
15895 2010-07-31  Bruno Haible  <bruno@clisp.org>
15896
15897         copysign: Does not require -lm on glibc systems.
15898         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
15899         gl_COMMON_DOUBLE_MATHFUNC.
15900         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
15901
15902 2010-07-31  Bruno Haible  <bruno@clisp.org>
15903
15904         duplocale: Work around AIX 7.1 bug.
15905         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
15906         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
15907         * lib/duplocale.c (rpl_duplocale): Update comment.
15908         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
15909         Reported by Rainer Tammer.
15910
15911 2010-07-30  Bruno Haible  <bruno@clisp.org>
15912
15913         dirfd: Avoid link error on AIX 7.1.
15914         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
15915         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
15916         exist, set REPLACE_DIRFD.
15917         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
15918         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
15919         * doc/posix-functions/dirfd.texi: Update.
15920         Reported by Rainer Tammer.
15921
15922 2010-07-30  Eric Blake  <eblake@redhat.com>
15923
15924         strtod: next round of AIX fixes
15925         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
15926         exponent.
15927         * tests/test-strtod.c (main): Enhance tests.
15928         * doc/posix-functions/strtod.texi (strtod): Document next bug.
15929         Reported by Rainer Tammer.
15930
15931         futimens: fix configure check
15932         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
15933         Reported by Bruno Haible.
15934
15935 2010-07-30  Bruno Haible  <bruno@clisp.org>
15936
15937         getline: Update regarding AIX.
15938         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
15939         Reported by Rainer Tammer.
15940
15941 2010-07-30  Bruno Haible  <bruno@clisp.org>
15942
15943         wcwidth: Drop replacement on AIX 7.
15944         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
15945         AIX 7.
15946         Reported by Rainer Tammer.
15947
15948 2010-07-30  Bruno Haible  <bruno@clisp.org>
15949
15950         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
15951         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
15952         a 'char *'.
15953         Reported by Rainer Tammer.
15954
15955 2010-07-30  Bruno Haible  <bruno@clisp.org>
15956
15957         unlink: Update regarding AIX.
15958         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
15959         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
15960         Reported by Rainer Tammer.
15961
15962 2010-07-30  Bruno Haible  <bruno@clisp.org>
15963
15964         symlink: Update regarding AIX.
15965         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
15966         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
15967         Reported by Rainer Tammer.
15968
15969 2010-07-30  Bruno Haible  <bruno@clisp.org>
15970
15971         strndup: Update regarding AIX.
15972         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
15973         AIX 7.
15974         Reported by Rainer Tammer.
15975
15976 2010-07-30  Bruno Haible  <bruno@clisp.org>
15977
15978         stat: Update regarding AIX.
15979         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
15980         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
15981         Reported by Rainer Tammer.
15982
15983 2010-07-30  Bruno Haible  <bruno@clisp.org>
15984
15985         truncl: Fix autoconf test.
15986         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
15987         whether truncl works.
15988         Reported by Rainer Tammer.
15989
15990 2010-07-30  Bruno Haible  <bruno@clisp.org>
15991
15992         round: Update regarding AIX.
15993         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
15994         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
15995         Reported by Rainer Tammer.
15996
15997 2010-07-30  Bruno Haible  <bruno@clisp.org>
15998
15999         rename: Update regarding AIX.
16000         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
16001         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
16002         Reported by Rainer Tammer.
16003
16004 2010-07-30  Bruno Haible  <bruno@clisp.org>
16005
16006         printf.m4: Update regarding AIX.
16007         * m4/printf.m4: Update comments regarding AIX.
16008         Reported by Rainer Tammer.
16009
16010 2010-07-30  Bruno Haible  <bruno@clisp.org>
16011
16012         iconv: Update regarding AIX.
16013         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
16014         AIX 7.
16015         Reported by Rainer Tammer.
16016
16017 2010-07-30  Bruno Haible  <bruno@clisp.org>
16018
16019         getopt: Update regarding AIX.
16020         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
16021         no on AIX.
16022         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
16023         Reported by Rainer Tammer.
16024
16025 2010-07-30  Bruno Haible  <bruno@clisp.org>
16026
16027         ldexpl; Update regarding AIX.
16028         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
16029         on AIX 7.
16030         Reported by Rainer Tammer.
16031
16032 2010-07-30  Bruno Haible  <bruno@clisp.org>
16033
16034         frexpl: Update regarding AIX.
16035         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
16036         on AIX 7.
16037         Reported by Rainer Tammer.
16038
16039 2010-07-30  Bruno Haible  <bruno@clisp.org>
16040
16041         open, fopen: Update regarding AIX.
16042         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
16043         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
16044         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
16045         * doc/posix-functions/fopen.texi: Likewise.
16046         Reported by Rainer Tammer.
16047
16048 2010-07-30  Bruno Haible  <bruno@clisp.org>
16049
16050         chown: Update doc regarding AIX.
16051         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
16052         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
16053         Reported by Rainer Tammer.
16054
16055 2010-07-30  Eric Blake  <eblake@redhat.com>
16056
16057         strtod: fix bug in replacement function on AIX
16058         * lib/strtod.c (strtod): Special case broken "0x" parse in
16059         underlying strtod.
16060         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
16061         * doc/posix-functions/strtod.texi (strtod): Likewise.
16062         Reported by Rainer Tammer.
16063
16064 2010-07-30  Bruno Haible  <bruno@clisp.org>
16065
16066         mbrlen: Fix cross-compilation guess for AIX.
16067         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
16068         guess. Leftover from 2008-12-22.
16069
16070 2010-07-30  Bruno Haible  <bruno@clisp.org>
16071
16072         mbrtowc: Fix cross-compilation guess for AIX.
16073         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
16074         guess. Leftover from 2008-12-21.
16075
16076 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
16077
16078         init.sh: work around trap limitation of some shells
16079         * tests/init.sh (setup_): Move exit trap outside of shell function.
16080
16081 2010-07-29  Eric Blake  <eblake@redhat.com>
16082
16083         strtod: aid debugging
16084         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
16085         understanding why strtod is rejected.
16086
16087 2010-07-28  Bruno Haible  <bruno@clisp.org>
16088
16089         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
16090         * lib/unistr/u8-chr.c: Include <string.h>.
16091         * tests/unistr/test-u8-chr.c: Likewise.
16092         * tests/unistr/test-u16-chr.c: Likewise.
16093         * tests/unistr/test-u32-chr.c: Likewise.
16094         * tests/unistr/test-u8-strchr.c: Likewise.
16095         * tests/unistr/test-u16-strchr.c: Likewise.
16096         * tests/unistr/test-u32-strchr.c: Likewise.
16097         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
16098         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
16099         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
16100         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
16101
16102 2010-07-28  Bruno Haible  <bruno@clisp.org>
16103
16104         Use spaces for indentation, not tabs.
16105         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
16106
16107 2010-07-27  Bruno Haible  <bruno@clisp.org>
16108
16109         mbspcasecmp: Fix function specification.
16110         * lib/string.in.h (mbspcasecmp): Fix specification comment.
16111         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
16112         Reported by Eric Blake <eblake@redhat.com>.
16113
16114 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
16115
16116         timespec: use cast and not conditional, as truncation isn't possible
16117         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
16118         instead of a conditional.  Comment about the situation in more detail.
16119         This undoes most of the 2009-10-29 patch.
16120
16121 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
16122
16123         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
16124         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
16125         * lib/unistr/u8-strchr.c: Likewise.
16126         * modules/unistr/u8-chr: Depend on memchr.
16127
16128         unistr/u*-strchr: add tests
16129         * modules/unistr/u8-strchr-tests: New file.
16130         * modules/unistr/u16-strchr-tests: New file.
16131         * modules/unistr/u32-strchr-tests: New file.
16132         * tests/unistr/test-strchr.h: New file.
16133         * tests/unistr/test-u8-strchr.c: New file.
16134         * tests/unistr/test-u16-strchr.c: New file.
16135         * tests/unistr/test-u32-strchr.c: New file.
16136
16137         unistr/u*-chr: test multibyte sequences more
16138         * tests/unistr/test-chr.h: Do complete testing of the characters in the
16139         test vector.
16140         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
16141         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
16142         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
16143
16144         unistr/u*-chr: test multibyte sequences
16145         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
16146
16147         unistr/u*-chr: prepare for multibyte tests
16148         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
16149         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
16150         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
16151         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
16152         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
16153         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
16154
16155 2010-07-18  Bruno Haible  <bruno@clisp.org>
16156
16157         unistr/u8-strchr: Optimize non-ASCII argument case.
16158         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
16159         because the first byte often matches anyway.
16160         Reported by Pádraig Brady <P@draigbrady.com>.
16161
16162 2010-07-15  Karl Berry  <karl@gnu.org>
16163
16164         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
16165
16166 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
16167
16168         getcwd: on Solaris, work better if ancestors are inaccessible
16169         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
16170         buffer and size, try again with a large buffer.  This works better
16171         on Solaris, since its getcwd succeeds even if the path to the root
16172         is inaccessible, and this is helpful in common cases such as .zfs
16173         hidden directories.  Problem reported by J Chapman Flack in
16174         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
16175         Use system getcwd if it's declared, not merely if it's partly
16176         working; use the partly-working test only to avoid needless effort
16177         if the system getcwd fails.
16178         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
16179         comment that was already obsolete and is now even more obsolete.
16180         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
16181         now might call strdup.
16182
16183 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
16184
16185         pthread: Add enough so that coreutils/src/sort.c compiles.
16186         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
16187         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
16188         gnulib. Include <sched.h> and <time.h>, as per POSIX.
16189         Include <sys/types.h>, in case it defines pthread_t.
16190         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
16191         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
16192         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
16193         (pthread_rwlockattr_t, pthread_spinlock_t):
16194         New typedefs, if HAVE_PTHREAD_T is not defined.
16195         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
16196         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
16197         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
16198         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
16199         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
16200         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
16201         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
16202         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
16203         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
16204         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
16205         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
16206         New macros.
16207         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
16208         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
16209         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
16210         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
16211         (pthread_spin_unlock): New dummy functions.
16212         (pthread_create): Return EAGAIN; don't set errno.
16213         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
16214         require AC_C_INLINE.
16215         * modules/pthread (Depends-on): Add sched, time.
16216         (pthread.h): Use AM_V_GEN.
16217
16218 2010-07-13  Bruno Haible  <bruno@clisp.org>
16219
16220         striconveh: Don't malloc memory if the result buffer is sufficient.
16221         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
16222         buffer if its size is sufficient.
16223         Reported by Ludovic Courtès <ludo@gnu.org>.
16224
16225 2010-07-13  Bruno Haible  <bruno@clisp.org>
16226
16227         strtod: Add safety check.
16228         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
16229
16230 2010-07-12  Bruno Haible  <bruno@clisp.org>
16231
16232         Unify tests that set gl_cv_func_ldexpl_no_libm.
16233         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
16234         gl_FUNC_LDEXPL.
16235         (gl_FUNC_LDEXPL): Invoke it.
16236         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
16237
16238 2010-07-12  Bruno Haible  <bruno@clisp.org>
16239
16240         Unify tests that set gl_cv_func_ldexp_no_libm.
16241         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
16242         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
16243         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
16244         (configure.ac): Simply invoke gl_FUNC_LDEXP.
16245         * modules/strtod (Files): Add m4/ldexp.m4.
16246
16247 2010-07-12  Bruno Haible  <bruno@clisp.org>
16248
16249         Unify tests that set gl_cv_func_frexpl_no_libm.
16250         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
16251         gl_FUNC_FREXPL_NO_LIBM.
16252         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
16253         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
16254
16255 2010-07-12  Bruno Haible  <bruno@clisp.org>
16256
16257         Unify tests that set gl_cv_func_frexp_no_libm.
16258         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
16259         gl_FUNC_FREXP_NO_LIBM.
16260         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
16261         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
16262
16263 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
16264
16265         memcoll: clarify sizes versus lengths, document better, and tweak perf
16266         * lib/memcoll.c (strcoll_loop, memcoll0):
16267         Improve quality of descriptive comments.  Name variables
16268         consistently as to whether they are lengths (which do not include
16269         terminating null) versus sizes (which do).
16270         * lib/xmemcoll.c (xmemcoll0): Likewise.
16271         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
16272         returned when s1size == 0; this is easier to compile and saves
16273         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
16274
16275 2010-07-12  Bruno Haible  <bruno@clisp.org>
16276
16277         Tests for module '_Exit'.
16278         * modules/_Exit-tests: New file.
16279         * tests/test-_Exit.sh: New file.
16280         * tests/test-_Exit.c: New file.
16281
16282         New module '_Exit'.
16283         * lib/stdlib.in.h (__attribute__): New macro.
16284         (_Exit): New declaration.
16285         * lib/_Exit.c: New file.
16286         * m4/_Exit.m4: New file.
16287         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
16288         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
16289         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
16290         * modules/_Exit: New file.
16291         * tests/test-stdlib-c++.cc (_Exit): Check signature.
16292         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
16293
16294 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
16295
16296         strtod: make it more-accurate typically, and don't require libm
16297         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
16298         Include limits.h.  Don't include string.h.
16299         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
16300         (locale_isspace): New function, so that no casts are needed to
16301         check whether *s is a space.
16302         (ldexp): Provide an unused dummy if not available.
16303         (scale_radix_exp, parse_number, underlying_strtod): New functions.
16304         (strtod): Use them.  This implementation prefers to use the
16305         underlying strtod if available, falling back on our own code
16306         only to fix known bugs.  This is more likely to produce an
16307         accurate result.  Also, it avoids the use of libm functions.
16308         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
16309         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
16310         was absent, but it caused a test failure with coreutils.
16311         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
16312         with libm.
16313         * modules/strtod (Makefile.am, Link): libm is no longer needed.
16314         * modules/strtod-tests (Makefile.am): Likewise.
16315
16316 2010-07-11  Pádraig Brady  <P@draigBrady.com>
16317             Bruno Haible  <bruno@clisp.org>
16318
16319         unistr/u8-strchr: Optimize ASCII argument case.
16320         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
16321
16322 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
16323
16324         (x)memcoll: minor tweaks
16325         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
16326         is after the type that it qualifies.
16327         (memcoll0): Likewise.
16328         * lib/memcoll.h (memcoll0): Likewise.
16329         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
16330         * lib/xmemcoll.h (xmemcoll0): Likewise.
16331         * lib/memcoll.c (memcoll0): Correct the comment.  This function
16332         differs from memcoll in that the NUL byte is part of the argument.
16333         Omit the abort-checks, as performance is a real issue here.  Plus,
16334         the checks were wrong anyway (an off-by-one error).  Omit local
16335         variable 'diff', as it's a bit clearer that way.
16336         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
16337         no longer needed.
16338
16339 2010-07-08  Chen Guo <chenguo4@yahoo.com>
16340
16341         (x)memcoll: speedup when input is known to be NUL delimited
16342         * lib/memcoll.c: Include stdlib.
16343         (memcoll0): New function.
16344         (strcoll_loop): New function, refactored for use in both memcoll
16345         and memcoll0.
16346         * lib/memcoll.h (memcoll0): Add prototype.
16347         * lib/xmemcoll.c (xmemcoll0): New function.
16348         (collate_error): New function, refactored for use in both xmemcoll
16349         and xmemcoll0.
16350         * lib/xmemcoll.h (xmemcoll0): Add prototype.
16351         * m4/memcoll.m4: add inline invocation.
16352
16353 2010-07-06  Pádraig Brady  <P@draigBrady.com>
16354
16355         * build-aux/bootstrap: Remove any local translations
16356         from the translation project synchronization directory,
16357         so that local only translations are not distributed.
16358
16359 2010-07-04  Bruno Haible  <bruno@clisp.org>
16360
16361         fsusage: Clarify which code applies to which platforms.
16362         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
16363         platform.
16364         * lib/fsusage.c (get_fs_usage): Likewise.
16365
16366 2010-07-04  Bruno Haible  <bruno@clisp.org>
16367
16368         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
16369         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
16370         Reported by Martin Lambers <marlam@marlam.de>.
16371
16372 2010-07-04  Jim Meyering  <meyering@redhat.com>
16373
16374         hash: once again explicitly disallow insertion of NULL
16375         * lib/hash.c (hash_insert0): Reinstate just-removed test:
16376         inserting a NULL pointer cannot work with these functions.
16377         Add a comment with details.
16378         This reverts part of the 2010-07-01 commit, 5bef1a35
16379         "hash: extend module to deal with non-pointer keys".
16380
16381 2010-07-01  Bruno Haible  <bruno@clisp.org>
16382
16383         stdbool: Update doc.
16384         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
16385         Info from Christian Weisgerber <naddy@mips.inka.de>.
16386
16387 2010-07-01  Jim Meyering  <meyering@redhat.com>
16388
16389         hash: extend module to deal with non-pointer keys
16390         * lib/hash.c (hash_insert0): New interface, much like hash_insert
16391         but that allows insertion of non-pointer entries.
16392         Do not disallow an ENTRY value of NULL.
16393         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
16394         * lib/hash.h (hash_insert0): Declare.
16395
16396 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
16397
16398         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
16399         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
16400         not present (i.e. with autoconf 2.59 and when using gettextize, not
16401         gnulib), require AC_GNU_SOURCE instead.
16402
16403 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
16404
16405         idpriv-drop: Fix tests.
16406         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
16407         not to the test-idpriv-droptemp program.
16408
16409 2010-06-29  Bruno Haible  <bruno@clisp.org>
16410
16411         string: Fix syntax error with g++ 2.96.
16412         * lib/string.in.h (__pure__): Remove definition.
16413         (_GL_ATTRIBUTE_PURE): New macro.
16414         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
16415         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
16416         Reported by Christian Weisgerber <naddy@mips.inka.de>.
16417
16418 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
16419
16420         unitypes: Fix bug introduced on 2010-05-18.
16421         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
16422
16423 2010-06-22  Eric Blake  <eblake@redhat.com>
16424
16425         memmem: slight optimization
16426         * lib/str-two-way.h (critical_factorization): Update comments.
16427         Reduce work during factorization phase.
16428         Reported by Carlos Bueno <carlos@bueno.org>.
16429
16430 2010-06-21  Bruno Haible  <bruno@clisp.org>
16431
16432         Fix HAVE_CALLOC_POSIX misnomer.
16433         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
16434         !HAVE_CALLOC_POSIX.
16435         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
16436         HAVE_CALLOC_POSIX.
16437         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
16438         instead of HAVE_CALLOC_POSIX.
16439         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
16440         HAVE_CALLOC_POSIX.
16441
16442         Use modern idiom for calloc() replacement.
16443         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
16444         AC_FUNC_CALLOC.
16445         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
16446         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
16447         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
16448         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
16449         (gl_REPLACE_CALLOC): New macro.
16450
16451 2010-06-21  Bruno Haible  <bruno@clisp.org>
16452
16453         Fix HAVE_REALLOC_POSIX misnomer.
16454         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
16455         !HAVE_REALLOC_POSIX.
16456         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
16457         HAVE_REALLOC_POSIX.
16458         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
16459         instead of HAVE_REALLOC_POSIX.
16460         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
16461         HAVE_REALLOC_POSIX.
16462
16463         Use modern idiom for realloc() replacement.
16464         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
16465         AC_FUNC_REALLOC.
16466         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
16467         Autoconf's AC_FUNC_REALLOC.
16468         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
16469         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
16470         (gl_REPLACE_REALLOC): New macro.
16471         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
16472
16473 2010-06-21  Bruno Haible  <bruno@clisp.org>
16474
16475         Fix HAVE_MALLOC_POSIX misnomer.
16476         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
16477         !HAVE_MALLOC_POSIX.
16478         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
16479         HAVE_MALLOC_POSIX.
16480         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
16481         instead of HAVE_MALLOC_POSIX.
16482         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
16483         HAVE_MALLOC_POSIX.
16484
16485         Use modern idiom for malloc() replacement.
16486         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
16487         AC_FUNC_MALLOC.
16488         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
16489         Autoconf's AC_FUNC_MALLOC.
16490         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
16491         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
16492         (gl_REPLACE_MALLOC): New macro.
16493         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
16494
16495 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
16496
16497         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
16498         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
16499         This macro takes 3 arguments, not 4.
16500
16501 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
16502
16503         ipv6: fix detection under mingw
16504         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
16505         in6_addr.
16506
16507 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
16508
16509         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
16510         that strtod() works when cross-compiling to a glibc version known
16511         to work.
16512
16513 2010-06-15  Bruno Haible  <bruno@clisp.org>
16514
16515         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
16516
16517 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
16518
16519         select: Correct timeout.
16520         * lib/select.c (rpl_select): Compute wait_timeout correctly.
16521
16522 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
16523
16524         git-version-gen: init shell var to avoid env var influence
16525         * build-aux/git-version-gen (v): Init shell var to empty.
16526
16527 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
16528
16529         priv-set: Don't assume that priv.h exists merely because getppriv does.
16530         See Jan Andersen's bug report about AIX 5L in
16531         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
16532         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
16533         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
16534         * lib/priv-set.h: Likewise.
16535         * tests/test-priv-set.c: Likewise.
16536
16537 2010-06-13  Bruno Haible  <bruno@clisp.org>
16538
16539         relocatable: Make it easier to test whether to install wrappers.
16540         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
16541         RELOCATABLE_VIA_WRAPPER.
16542
16543 2010-06-13  Bruno Haible  <bruno@clisp.org>
16544
16545         gnulib-tool: Display specified modules and dependencies differently.
16546         * gnulib-tool (func_show_module_list): New function.
16547         (func_import, func_create_testdir): Invoke it.
16548         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
16549
16550 2010-06-13  Bruno Haible  <bruno@clisp.org>
16551
16552         gnulib-tool: Align code of func_import and func_create_testdir.
16553         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
16554         specified_modules.
16555
16556 2010-06-12  Jim Meyering  <meyering@redhat.com>
16557
16558         test-inttostr: avoid spurious failure on Solaris 9
16559         * tests/test-inttostr.c (main): Skip the test when snprintf fails
16560         to accept "%ju".  Reported by Bruno Haible.
16561
16562 2010-06-11  Jim Meyering  <meyering@redhat.com>
16563
16564         test-sys_socket: mark variables as used more readably
16565         * tests/test-sys_socket.c (main): Mark otherwise unused variables
16566         as "used" explicitly via (void) statement casts.  This is more
16567         readable than using them in an artificial return expression.
16568         Suggestion from Bruno Haible.
16569
16570 2010-06-11  Bruno Haible  <bruno@clisp.org>
16571
16572         Avoid some more warnings from "gcc -Wwrite-strings".
16573         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
16574         to 'const char *'.
16575         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
16576         * tests/test-c-strcasestr.c (main): Likewise.
16577         * tests/test-mbscasestr1.c (main): Likewise.
16578         * tests/test-mbscasestr2.c (main): Likewise.
16579         * tests/test-memmem.c (main): Likewise.
16580         * tests/test-strstr.c (main): Likewise.
16581         * tests/test-strcasestr.c (main): Likewise.
16582
16583 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16584
16585         init.sh: change framework_failure_ to fail with status 99, not 1
16586         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
16587         automake's parallel-tests rule that this is an unexpected failure,
16588         even if the test is listed in XFAIL_TESTS.
16589
16590 2010-06-11  Jim Meyering  <meyering@redhat.com>
16591
16592         test-inttostr: avoid warnings about 4-6KB literal strings
16593         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
16594         Include "macros.h", for its definition of ASSERT.
16595         (CK): s/assert/ASSERT/
16596         * modules/inttostr-tests (Files): Add macros.h.
16597
16598         init.sh: don't use $ME_ or skip_ before they are defined
16599         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
16600         their first uses.  Also hoist their companions: warn_, fail_,
16601         framework_failure_, $stderr_fileno.  Prompted by a patch from
16602         Stefano Lattarini.
16603
16604         test-sys_socket: avoid set-but-not-used warnings from gcc
16605         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
16606         avoid warning about set-but-not-used variables.
16607
16608         test-xvasprintf: avoid 'const' discard warnings
16609         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
16610         "const" when assigning from literal strings.
16611         (test_xasprintf): Add "void" in function argument list to placate
16612         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
16613
16614         tests: avoid compilation warnings in argmatch and exclude tests...
16615         in packages that define ARGMATCH_DIE_DECL, like coreutils.
16616         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
16617         Since it always exits, declare with the "noreturn" attribute.
16618         * tests/test-argmatch.c: Likewise.
16619
16620         tests: avoid 'const' discard warnings in mbsstr tests
16621         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
16622         * tests/test-mbsstr2.c (main): Likewise.
16623
16624         test-verify: avoid warning from gcc's -Wmissing-declarations
16625         * tests/test-verify.c (function): Declare to be static.
16626
16627         test-inttostr.c: include <string.h> for use of strcmp
16628         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
16629
16630         test-linkat: avoid failed assertion on "other" architectures
16631         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
16632         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
16633         sparc: https://bugs.launchpad.net/bugs/591968
16634
16635 2010-06-11  Jim Meyering  <meyering@redhat.com>
16636
16637         printf.m4: avoid autoconf's "Expanded Before Required" warning
16638         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
16639         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
16640         autoconf warning.
16641
16642 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
16643
16644         Replacement header templates are now named with ".in", not "_".
16645         * doc/gnulib-intro.texi: Correct.
16646
16647 2010-06-10  Jim Meyering  <meyering@redhat.com>
16648
16649         inttostr-tests: depend on snprintf, not snprintf-posix
16650         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
16651         snprintf-posix, to avoid this aclocal failure:
16652           missing file gnulib-tests/vasnprintf.c
16653           configure.ac:45: error: expected source file, required through \
16654           AC_LIBSOURCES, not found
16655
16656 2010-06-10  Jim Meyering  <meyering@redhat.com>
16657
16658         inttostr: add a new function, inttostr, and tests
16659         The namesake function was not available.  The existence of the
16660         template file, inttostr.c makes its addition nontrivial.
16661         * lib/anytostr.c: Rename from inttostr.c.
16662         (anytostr): Rename from inttostr.
16663         * lib/inttostr.c: New file.
16664         * modules/inttostr (Files): Add anytostr.c.
16665         (Makefile.am): Set lib_SOURCES instead of ...
16666         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
16667         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
16668         * lib/offtostr.c: Likewise.
16669         * lib/uinttostr.c: Likewise.
16670         * lib/umaxtostr.c: Likewise.
16671         * modules/inttostr-tests: New file.
16672         * tests/test-inttostr.c: New file.  Test these functions.
16673
16674 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
16675             Bruno Haible  <bruno@clisp.org>
16676
16677         Add "Extending Gnulib" chapter to manual.
16678         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
16679         chapter.
16680         (Extending Gnulib): New chapter.
16681         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
16682         chapter.
16683
16684 2010-06-09  Bruno Haible  <bruno@clisp.org>
16685
16686         Avoid relocwrapper link errors due to gnulib replacement functions.
16687         * lib/areadlink.c: Use the system's malloc, realloc functions.
16688         (areadlink): Set errno to ENOMEM explicitly.
16689         * modules/areadlink (Depends-on): Remove malloc-posix.
16690         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16691
16692 2010-06-09  Bruno Haible  <bruno@clisp.org>
16693
16694         Avoid relocwrapper link errors due to gnulib replacement functions.
16695         * lib/canonicalize-lgpl.c: Use the system's malloc function.
16696         * lib/malloca.c: Likewise.
16697         * lib/relocatable.c: Likewise.
16698         * lib/progreloc.c: Use the system's malloc, sprintf functions.
16699         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
16700         * lib/setenv.c: Use the system's malloc, realloc functions.
16701         * lib/strerror.c: Use the system's sprintf function.
16702         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16703
16704 2010-06-04  Bruno Haible  <bruno@clisp.org>
16705
16706         Prefer documented low-level autoconf macro names.
16707         * m4/lib-link.m4: Use m4_translit instead of translit.
16708         * m4/environ.m4: Likewise.
16709         * m4/mathfunc.m4: Likewise.
16710         * m4/onceonly.m4: Likewise.
16711         * m4/stdint.m4: Likewise.
16712         Suggested by Eric Blake.
16713
16714 2010-06-04  Martin Lambers  <marlam@marlam.de>
16715             Bruno Haible  <bruno@clisp.org>
16716
16717         havelib: Allow library names with '+' characters.
16718         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
16719         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
16720
16721 2010-06-09  Bruno Haible  <bruno@clisp.org>
16722
16723         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
16724         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
16725         realloc failed.
16726
16727 2010-06-08  Peter Simons  <simons@cryp.to>
16728
16729         maint.mk: make the news-check rule more configurable
16730         * top/maint.mk (news-check-lines-spec): New variable.
16731         (news-check): Use "sed -n 1,10p" in place of "head".
16732
16733 2010-06-07  Jim Meyering  <meyering@redhat.com>
16734
16735         do-release-commit-and-tag: fix typo in --help
16736         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
16737
16738         regex: avoid new dead-code warning with gcc-4.6.0
16739         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
16740         if-block containing a while-loop.  It's been unused for at least
16741         5 years.
16742
16743 2010-06-05  Bruno Haible  <bruno@clisp.org>
16744
16745         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
16746         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
16747
16748 2010-06-04  Bruno Haible  <bruno@clisp.org>
16749
16750         Update to GNU gettext 0.18.1.
16751         * modules/gettext (configure.ac): Require gettext infrastructure from
16752         version 0.18.1.
16753
16754 2010-06-03  Bruno Haible  <bruno@clisp.org>
16755
16756         Don't use AC_LIBOBJ with file names in subdirectories.
16757         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
16758         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
16759         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
16760         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
16761         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
16762         gl_LIBUNISTRING_LIBSOURCE.
16763         (Makefile.am): Augment lib_SOURCES here, conditionally.
16764         * NEWS: Drop requirement for Automake option 'subdir-objects'.
16765
16766 2010-06-03  Bruno Haible  <bruno@clisp.org>
16767
16768         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
16769         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
16770         expansion does not end with a newline.
16771         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
16772         unnecessary newline.
16773
16774 2010-06-03  Bruno Haible  <bruno@clisp.org>
16775
16776         Reduce dependencies.
16777         * tests/test-quotearg.h: New file, extracted from
16778         tests/test-quotearg.c.
16779         * tests/test-quotearg-simple.c: New file, extracted from
16780         tests/test-quotearg.c.
16781         * tests/test-quotearg.c: Don't include <ctype.h>.
16782         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
16783         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
16784         use_quote_double_quotes, use_quotearg_colon): Moved to
16785         tests/test-quotearg.h.
16786         (results_g, flag_results, custom_quotes, custom_results): Moved
16787         to tests/test-quotearg-simple.c.
16788         (main): Moved the part that does not depend on gettext to
16789         tests/test-quotearg-simple.c. Return 77 if the test cannot be
16790         performed.
16791         * modules/quotearg-simple: New file.
16792         * modules/quotearg-simple-tests: New file.
16793         * modules/quotearg (Depends-on): Add quotearg-simple.
16794         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
16795         (Files): Add tests/test-quotearg.h.
16796         Reported by Paolo Bonzini.
16797
16798 2010-06-03  Bruno Haible  <bruno@clisp.org>
16799
16800         Reduce dependencies.
16801         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
16802
16803 2010-06-03  Bruno Haible  <bruno@clisp.org>
16804
16805         time: Undefine more broken macros.
16806         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
16807         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
16808         Reported by Eric Blake.
16809
16810 2010-06-03  Bruno Haible  <bruno@clisp.org>
16811
16812         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
16813         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
16814         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
16815         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
16816         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
16817         Reported by Ludovic Courtès <ludo@gnu.org>.
16818
16819 2010-06-02  Eric Blake  <eblake@redhat.com>
16820
16821         time: work with mingw + pthreads-win32 library
16822         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
16823         if timespec is defined only in pthread.h.
16824         * modules/time (Makefile.am): Substitute it.
16825         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
16826         <pthread.h>, when needed.
16827         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
16828         from the library.
16829
16830 2010-05-31  Bruno Haible  <bruno@clisp.org>
16831
16832         Avoid expanding two macros in the wrong order.
16833         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
16834         gl_LIBUNISTRING if it is defined.
16835         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
16836         autoconf >= 2.64.
16837         Reported by Ludovic Courtès <ludo@gnu.org>.
16838
16839 2010-05-27  Jim Meyering  <meyering@redhat.com>
16840
16841         maint.mk: also prohibit "#undef" of always-defined symbols
16842         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
16843         Allow more than one space before the symbol name.
16844         (sc_prohibit_always-defined_macros): Use grep's -E, now that
16845         the regexp uses alternation.
16846
16847 2010-05-26  Eric Blake  <eblake@redhat.com>
16848
16849         maint.mk: avoid echo -e
16850         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
16851         Convert all uses of echo -* to printf.
16852         Reported by Matthias Bolte.
16853
16854 2010-05-25  Bruno Haible  <bruno@clisp.org>
16855
16856         Update to GNU gettext 0.18, part 2.
16857         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
16858         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
16859
16860 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16861
16862         Add missing include in test-pwrite.c.
16863         * tests/test-pwrite.c: Include string.h, for strcmp.
16864
16865 2010-05-24  Bruno Haible  <bruno@clisp.org>
16866
16867         * NEWS: Mention requirement for Automake option 'subdir-objects'.
16868
16869 2010-05-24  Bruno Haible  <bruno@clisp.org>
16870
16871         Don't use conversion with transliteration in u{8,16,32}_strcoll.
16872         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
16873         iconveh_error argument.
16874         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
16875         U_STRCONV_TO_LOCALE.
16876         * lib/unistr/u16-strcoll.c: Likewise.
16877         * lib/unistr/u32-strcoll.c: Likewise.
16878         * modules/unistr/u8-strcoll (Depends-on): Add
16879         uniconv/u8-strconv-to-enc, localcharset. Remove
16880         uniconv/u8-strconv-to-locale.
16881         (configure.ac): Bump version number.
16882         * modules/unistr/u16-strcoll (Depends-on): Add
16883         uniconv/u16-strconv-to-enc, localcharset. Remove
16884         uniconv/u16-strconv-to-locale.
16885         (configure.ac): Bump version number.
16886         * modules/unistr/u32-strcoll (Depends-on): Add
16887         uniconv/u32-strconv-to-enc, localcharset. Remove
16888         uniconv/u32-strconv-to-locale.
16889         (configure.ac): Bump version number.
16890
16891 2010-05-24  Bruno Haible  <bruno@clisp.org>
16892
16893         Avoid a test failure on NetBSD 5.0.
16894         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
16895         an iconv() bug.
16896
16897 2010-05-24  Bruno Haible  <bruno@clisp.org>
16898
16899         Adjust #include directive style.
16900         * modules/regex (Includes): Recommend to write <regex.h>.
16901
16902 2010-05-24  Bruno Haible  <bruno@clisp.org>
16903
16904         regex: Don't require alloca.
16905         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
16906         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
16907         only inside if (0).
16908
16909 2010-05-23  Jim Meyering  <meyering@redhat.com>
16910
16911         test-renameat.c: include <sys/stat.h>
16912         * tests/test-renameat.c: Include <sys/stat.h>; required for
16913         definition of S_IS* macros.
16914
16915 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
16916
16917         Update maintainer documentation for 'relocatable-prog' module.
16918         * doc/relocatable-maint.texi: Update.
16919         Comments by Bruno Haible.
16920
16921 2010-05-23  Bruno Haible  <bruno@clisp.org>
16922
16923         git-merge-changelog: Enable --split-merged-entry by default.
16924         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
16925         (usage): Don't mention this option any more.
16926         Reported by Ralf Wildenhues.
16927
16928 2010-05-23  Jim Meyering  <meyering@redhat.com>
16929
16930         test-pwrite: do not leave behind a test file named "out"
16931         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
16932         The trivial-looking use of init.sh is really necessary.
16933         It ensures that the temporary file, "out", is created in
16934         a temporary directory, and removed upon termination.
16935         * tests/test-pwrite.sh: Re-add file.
16936         * modules/pwrite-tests: Reference it.
16937
16938 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16939
16940         Fix output redirection buglet in init.sh.
16941         * tests/init.sh: Fix redirection of stderr.
16942
16943 2010-05-20  Simon Josefsson  <simon@josefsson.org>
16944
16945         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
16946
16947 2010-05-17  Simon Josefsson  <simon@josefsson.org>
16948
16949         * modules/valgrind-tests: New file.
16950         * m4/valgrind-tests.m4: New file.
16951         * doc/valgrind-tests.texi: New file.
16952         * doc/gnulib.texi (Running self-tests under valgrind): New
16953         section.
16954
16955 2010-05-19  Bruno Haible  <bruno@clisp.org>
16956
16957         Clean up dead code in recent commit.
16958         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
16959         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
16960         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
16961         Suggested by Paolo Bonzini.
16962
16963 2010-05-19  Bruno Haible  <bruno@clisp.org>
16964
16965         Avoid valgrind error reports from libunistring.
16966         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
16967         * modules/libunistring (Files): Add it.
16968         * modules/libunistring-optional (Files): Likewise.
16969
16970 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
16971             Bruno Haible  <bruno@clisp.org>
16972
16973         New module 'libunistring-optional'.
16974         * modules/libunistring-optional: New file.
16975         * m4/libunistring-base.m4: New file.
16976         * m4/libunistring-optional.m4: New file.
16977         * lib/unicase.in.h: Renamed from lib/unicase.h.
16978         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
16979         * lib/unictype.in.h: Renamed from lib/unictype.h.
16980         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
16981         * lib/uniname.in.h: Renamed from lib/uniname.h.
16982         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
16983         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
16984         * lib/unistr.in.h: Renamed from lib/unistr.h.
16985         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
16986         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
16987         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
16988         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
16989         gl_LIBUNISTRING. If the library was found, determine the installed
16990         version and set LIBUNISTRING_VERSION.
16991         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
16992         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
16993         handle a configuration option --with-included-libunistring.
16994         * modules/libunistring (Files): Add m4/absolute-header.m4.
16995         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
16996         Add m4/libunistring-base.m4.
16997         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16998         (Makefile.am): Build unicase.h from unicase.in.h.
16999         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
17000         Add m4/libunistring-base.m4.
17001         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17002         (Makefile.am): Build uniconv.h from uniconv.in.h.
17003         * modules/unictype/base (Files): Use unictype.in.h instead of
17004         unictype.h. Add m4/libunistring-base.m4.
17005         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17006         (Makefile.am): Build unictype.h from unictype.in.h.
17007         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
17008         Add m4/libunistring-base.m4.
17009         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17010         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
17011         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
17012         Add m4/libunistring-base.m4.
17013         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17014         (Makefile.am): Build uniname.h from uniname.in.h.
17015         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
17016         Add m4/libunistring-base.m4.
17017         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17018         (Makefile.am): Build uninorm.h from uninorm.in.h.
17019         * modules/unistdio/base (Files): Use unistdio.in.h instead of
17020         unistdio.h. Add m4/libunistring-base.m4.
17021         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17022         (Makefile.am): Build unistdio.h from unistdio.in.h.
17023         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
17024         Add m4/libunistring-base.m4.
17025         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17026         (Makefile.am): Build unistr.h from unistr.in.h.
17027         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
17028         Add m4/libunistring-base.m4.
17029         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17030         (Makefile.am): Build unitypes.h from unitypes.in.h.
17031         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
17032         Add m4/libunistring-base.m4.
17033         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17034         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
17035         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
17036         uniwidth.h. Add m4/libunistring-base.m4.
17037         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17038         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
17039         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
17040         instead of augmenting lib_SOURCES.
17041         * modules/unicase/empty-suffix-context: Likewise.
17042         * modules/unicase/locale-language: Likewise.
17043         * modules/unicase/tolower: Likewise.
17044         * modules/unicase/totitle: Likewise.
17045         * modules/unicase/toupper: Likewise.
17046         * modules/unicase/u8-casecmp: Likewise.
17047         * modules/unicase/u8-casecoll: Likewise.
17048         * modules/unicase/u8-casefold: Likewise.
17049         * modules/unicase/u8-casexfrm: Likewise.
17050         * modules/unicase/u8-ct-casefold: Likewise.
17051         * modules/unicase/u8-ct-tolower: Likewise.
17052         * modules/unicase/u8-ct-totitle: Likewise.
17053         * modules/unicase/u8-ct-toupper: Likewise.
17054         * modules/unicase/u8-is-cased: Likewise.
17055         * modules/unicase/u8-is-casefolded: Likewise.
17056         * modules/unicase/u8-is-lowercase: Likewise.
17057         * modules/unicase/u8-is-titlecase: Likewise.
17058         * modules/unicase/u8-is-uppercase: Likewise.
17059         * modules/unicase/u8-prefix-context: Likewise.
17060         * modules/unicase/u8-suffix-context: Likewise.
17061         * modules/unicase/u8-tolower: Likewise.
17062         * modules/unicase/u8-totitle: Likewise.
17063         * modules/unicase/u8-toupper: Likewise.
17064         * modules/unicase/u16-casecmp: Likewise.
17065         * modules/unicase/u16-casecoll: Likewise.
17066         * modules/unicase/u16-casefold: Likewise.
17067         * modules/unicase/u16-casexfrm: Likewise.
17068         * modules/unicase/u16-ct-casefold: Likewise.
17069         * modules/unicase/u16-ct-tolower: Likewise.
17070         * modules/unicase/u16-ct-totitle: Likewise.
17071         * modules/unicase/u16-ct-toupper: Likewise.
17072         * modules/unicase/u16-is-cased: Likewise.
17073         * modules/unicase/u16-is-casefolded: Likewise.
17074         * modules/unicase/u16-is-lowercase: Likewise.
17075         * modules/unicase/u16-is-titlecase: Likewise.
17076         * modules/unicase/u16-is-uppercase: Likewise.
17077         * modules/unicase/u16-prefix-context: Likewise.
17078         * modules/unicase/u16-suffix-context: Likewise.
17079         * modules/unicase/u16-tolower: Likewise.
17080         * modules/unicase/u16-totitle: Likewise.
17081         * modules/unicase/u16-toupper: Likewise.
17082         * modules/unicase/u32-casecmp: Likewise.
17083         * modules/unicase/u32-casecoll: Likewise.
17084         * modules/unicase/u32-casefold: Likewise.
17085         * modules/unicase/u32-casexfrm: Likewise.
17086         * modules/unicase/u32-ct-casefold: Likewise.
17087         * modules/unicase/u32-ct-tolower: Likewise.
17088         * modules/unicase/u32-ct-totitle: Likewise.
17089         * modules/unicase/u32-ct-toupper: Likewise.
17090         * modules/unicase/u32-is-cased: Likewise.
17091         * modules/unicase/u32-is-casefolded: Likewise.
17092         * modules/unicase/u32-is-lowercase: Likewise.
17093         * modules/unicase/u32-is-titlecase: Likewise.
17094         * modules/unicase/u32-is-uppercase: Likewise.
17095         * modules/unicase/u32-prefix-context: Likewise.
17096         * modules/unicase/u32-suffix-context: Likewise.
17097         * modules/unicase/u32-tolower: Likewise.
17098         * modules/unicase/u32-totitle: Likewise.
17099         * modules/unicase/u32-toupper: Likewise.
17100         * modules/unicase/ulc-casecmp: Likewise.
17101         * modules/unicase/ulc-casecoll: Likewise.
17102         * modules/unicase/ulc-casexfrm: Likewise.
17103         * modules/uniconv/u8-conv-from-enc: Likewise.
17104         * modules/uniconv/u8-conv-to-enc: Likewise.
17105         * modules/uniconv/u8-strconv-from-enc: Likewise.
17106         * modules/uniconv/u8-strconv-from-locale: Likewise.
17107         * modules/uniconv/u8-strconv-to-enc: Likewise.
17108         * modules/uniconv/u8-strconv-to-locale: Likewise.
17109         * modules/uniconv/u16-conv-from-enc: Likewise.
17110         * modules/uniconv/u16-conv-to-enc: Likewise.
17111         * modules/uniconv/u16-strconv-from-enc: Likewise.
17112         * modules/uniconv/u16-strconv-from-locale: Likewise.
17113         * modules/uniconv/u16-strconv-to-enc: Likewise.
17114         * modules/uniconv/u16-strconv-to-locale: Likewise.
17115         * modules/uniconv/u32-conv-from-enc: Likewise.
17116         * modules/uniconv/u32-conv-to-enc: Likewise.
17117         * modules/uniconv/u32-strconv-from-enc: Likewise.
17118         * modules/uniconv/u32-strconv-from-locale: Likewise.
17119         * modules/uniconv/u32-strconv-to-enc: Likewise.
17120         * modules/uniconv/u32-strconv-to-locale: Likewise.
17121         * modules/unictype/bidicategory-byname: Likewise.
17122         * modules/unictype/bidicategory-name: Likewise.
17123         * modules/unictype/bidicategory-of: Likewise.
17124         * modules/unictype/bidicategory-test: Likewise.
17125         * modules/unictype/block-list: Likewise.
17126         * modules/unictype/block-test: Likewise.
17127         * modules/unictype/category-C: Likewise.
17128         * modules/unictype/category-Cc: Likewise.
17129         * modules/unictype/category-Cf: Likewise.
17130         * modules/unictype/category-Cn: Likewise.
17131         * modules/unictype/category-Co: Likewise.
17132         * modules/unictype/category-Cs: Likewise.
17133         * modules/unictype/category-L: Likewise.
17134         * modules/unictype/category-Ll: Likewise.
17135         * modules/unictype/category-Lm: Likewise.
17136         * modules/unictype/category-Lo: Likewise.
17137         * modules/unictype/category-Lt: Likewise.
17138         * modules/unictype/category-Lu: Likewise.
17139         * modules/unictype/category-M: Likewise.
17140         * modules/unictype/category-Mc: Likewise.
17141         * modules/unictype/category-Me: Likewise.
17142         * modules/unictype/category-Mn: Likewise.
17143         * modules/unictype/category-N: Likewise.
17144         * modules/unictype/category-Nd: Likewise.
17145         * modules/unictype/category-Nl: Likewise.
17146         * modules/unictype/category-No: Likewise.
17147         * modules/unictype/category-P: Likewise.
17148         * modules/unictype/category-Pc: Likewise.
17149         * modules/unictype/category-Pd: Likewise.
17150         * modules/unictype/category-Pe: Likewise.
17151         * modules/unictype/category-Pf: Likewise.
17152         * modules/unictype/category-Pi: Likewise.
17153         * modules/unictype/category-Po: Likewise.
17154         * modules/unictype/category-Ps: Likewise.
17155         * modules/unictype/category-S: Likewise.
17156         * modules/unictype/category-Sc: Likewise.
17157         * modules/unictype/category-Sk: Likewise.
17158         * modules/unictype/category-Sm: Likewise.
17159         * modules/unictype/category-So: Likewise.
17160         * modules/unictype/category-Z: Likewise.
17161         * modules/unictype/category-Zl: Likewise.
17162         * modules/unictype/category-Zp: Likewise.
17163         * modules/unictype/category-Zs: Likewise.
17164         * modules/unictype/category-and: Likewise.
17165         * modules/unictype/category-and-not: Likewise.
17166         * modules/unictype/category-byname: Likewise.
17167         * modules/unictype/category-name: Likewise.
17168         * modules/unictype/category-none: Likewise.
17169         * modules/unictype/category-of: Likewise.
17170         * modules/unictype/category-or: Likewise.
17171         * modules/unictype/category-test: Likewise.
17172         * modules/unictype/combining-class: Likewise.
17173         * modules/unictype/ctype-alnum: Likewise.
17174         * modules/unictype/ctype-alpha: Likewise.
17175         * modules/unictype/ctype-blank: Likewise.
17176         * modules/unictype/ctype-cntrl: Likewise.
17177         * modules/unictype/ctype-digit: Likewise.
17178         * modules/unictype/ctype-graph: Likewise.
17179         * modules/unictype/ctype-lower: Likewise.
17180         * modules/unictype/ctype-print: Likewise.
17181         * modules/unictype/ctype-punct: Likewise.
17182         * modules/unictype/ctype-space: Likewise.
17183         * modules/unictype/ctype-upper: Likewise.
17184         * modules/unictype/ctype-xdigit: Likewise.
17185         * modules/unictype/decimal-digit: Likewise.
17186         * modules/unictype/digit: Likewise.
17187         * modules/unictype/mirror: Likewise.
17188         * modules/unictype/numeric: Likewise.
17189         * modules/unictype/property-alphabetic: Likewise.
17190         * modules/unictype/property-ascii-hex-digit: Likewise.
17191         * modules/unictype/property-bidi-arabic-digit: Likewise.
17192         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
17193         * modules/unictype/property-bidi-block-separator: Likewise.
17194         * modules/unictype/property-bidi-boundary-neutral: Likewise.
17195         * modules/unictype/property-bidi-common-separator: Likewise.
17196         * modules/unictype/property-bidi-control: Likewise.
17197         * modules/unictype/property-bidi-embedding-or-override: Likewise.
17198         * modules/unictype/property-bidi-eur-num-separator: Likewise.
17199         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
17200         * modules/unictype/property-bidi-european-digit: Likewise.
17201         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
17202         * modules/unictype/property-bidi-left-to-right: Likewise.
17203         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
17204         * modules/unictype/property-bidi-other-neutral: Likewise.
17205         * modules/unictype/property-bidi-pdf: Likewise.
17206         * modules/unictype/property-bidi-segment-separator: Likewise.
17207         * modules/unictype/property-bidi-whitespace: Likewise.
17208         * modules/unictype/property-byname: Likewise.
17209         * modules/unictype/property-combining: Likewise.
17210         * modules/unictype/property-composite: Likewise.
17211         * modules/unictype/property-currency-symbol: Likewise.
17212         * modules/unictype/property-dash: Likewise.
17213         * modules/unictype/property-decimal-digit: Likewise.
17214         * modules/unictype/property-default-ignorable-code-point: Likewise.
17215         * modules/unictype/property-deprecated: Likewise.
17216         * modules/unictype/property-diacritic: Likewise.
17217         * modules/unictype/property-extender: Likewise.
17218         * modules/unictype/property-format-control: Likewise.
17219         * modules/unictype/property-grapheme-base: Likewise.
17220         * modules/unictype/property-grapheme-extend: Likewise.
17221         * modules/unictype/property-grapheme-link: Likewise.
17222         * modules/unictype/property-hex-digit: Likewise.
17223         * modules/unictype/property-hyphen: Likewise.
17224         * modules/unictype/property-id-continue: Likewise.
17225         * modules/unictype/property-id-start: Likewise.
17226         * modules/unictype/property-ideographic: Likewise.
17227         * modules/unictype/property-ids-binary-operator: Likewise.
17228         * modules/unictype/property-ids-trinary-operator: Likewise.
17229         * modules/unictype/property-ignorable-control: Likewise.
17230         * modules/unictype/property-iso-control: Likewise.
17231         * modules/unictype/property-join-control: Likewise.
17232         * modules/unictype/property-left-of-pair: Likewise.
17233         * modules/unictype/property-line-separator: Likewise.
17234         * modules/unictype/property-logical-order-exception: Likewise.
17235         * modules/unictype/property-lowercase: Likewise.
17236         * modules/unictype/property-math: Likewise.
17237         * modules/unictype/property-non-break: Likewise.
17238         * modules/unictype/property-not-a-character: Likewise.
17239         * modules/unictype/property-numeric: Likewise.
17240         * modules/unictype/property-other-alphabetic: Likewise.
17241         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
17242         * modules/unictype/property-other-grapheme-extend: Likewise.
17243         * modules/unictype/property-other-id-continue: Likewise.
17244         * modules/unictype/property-other-id-start: Likewise.
17245         * modules/unictype/property-other-lowercase: Likewise.
17246         * modules/unictype/property-other-math: Likewise.
17247         * modules/unictype/property-other-uppercase: Likewise.
17248         * modules/unictype/property-paired-punctuation: Likewise.
17249         * modules/unictype/property-paragraph-separator: Likewise.
17250         * modules/unictype/property-pattern-syntax: Likewise.
17251         * modules/unictype/property-pattern-white-space: Likewise.
17252         * modules/unictype/property-private-use: Likewise.
17253         * modules/unictype/property-punctuation: Likewise.
17254         * modules/unictype/property-quotation-mark: Likewise.
17255         * modules/unictype/property-radical: Likewise.
17256         * modules/unictype/property-sentence-terminal: Likewise.
17257         * modules/unictype/property-soft-dotted: Likewise.
17258         * modules/unictype/property-space: Likewise.
17259         * modules/unictype/property-terminal-punctuation: Likewise.
17260         * modules/unictype/property-test: Likewise.
17261         * modules/unictype/property-titlecase: Likewise.
17262         * modules/unictype/property-unassigned-code-value: Likewise.
17263         * modules/unictype/property-unified-ideograph: Likewise.
17264         * modules/unictype/property-uppercase: Likewise.
17265         * modules/unictype/property-variation-selector: Likewise.
17266         * modules/unictype/property-white-space: Likewise.
17267         * modules/unictype/property-xid-continue: Likewise.
17268         * modules/unictype/property-xid-start: Likewise.
17269         * modules/unictype/property-zero-width: Likewise.
17270         * modules/unictype/scripts: Likewise.
17271         * modules/unictype/syntax-c-ident: Likewise.
17272         * modules/unictype/syntax-c-whitespace: Likewise.
17273         * modules/unictype/syntax-java-ident: Likewise.
17274         * modules/unictype/syntax-java-whitespace: Likewise.
17275         * modules/unilbrk/u8-possible-linebreaks: Likewise.
17276         * modules/unilbrk/u8-width-linebreaks: Likewise.
17277         * modules/unilbrk/u16-possible-linebreaks: Likewise.
17278         * modules/unilbrk/u16-width-linebreaks: Likewise.
17279         * modules/unilbrk/u32-possible-linebreaks: Likewise.
17280         * modules/unilbrk/u32-width-linebreaks: Likewise.
17281         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
17282         * modules/unilbrk/ulc-width-linebreaks: Likewise.
17283         * modules/uniname/uniname: Likewise.
17284         * modules/uninorm/canonical-decomposition: Likewise.
17285         * modules/uninorm/composition: Likewise.
17286         * modules/uninorm/decomposing-form: Likewise.
17287         * modules/uninorm/decomposition: Likewise.
17288         * modules/uninorm/filter: Likewise.
17289         * modules/uninorm/nfc: Likewise.
17290         * modules/uninorm/nfd: Likewise.
17291         * modules/uninorm/nfkc: Likewise.
17292         * modules/uninorm/nfkd: Likewise.
17293         * modules/uninorm/u8-normalize: Likewise.
17294         * modules/uninorm/u8-normcmp: Likewise.
17295         * modules/uninorm/u8-normcoll: Likewise.
17296         * modules/uninorm/u8-normxfrm: Likewise.
17297         * modules/uninorm/u16-normalize: Likewise.
17298         * modules/uninorm/u16-normcmp: Likewise.
17299         * modules/uninorm/u16-normcoll: Likewise.
17300         * modules/uninorm/u16-normxfrm: Likewise.
17301         * modules/uninorm/u32-normalize: Likewise.
17302         * modules/uninorm/u32-normcmp: Likewise.
17303         * modules/uninorm/u32-normcoll: Likewise.
17304         * modules/uninorm/u32-normxfrm: Likewise.
17305         * modules/unistdio/u8-asnprintf: Likewise.
17306         * modules/unistdio/u8-asprintf: Likewise.
17307         * modules/unistdio/u8-snprintf: Likewise.
17308         * modules/unistdio/u8-sprintf: Likewise.
17309         * modules/unistdio/u8-u8-asnprintf: Likewise.
17310         * modules/unistdio/u8-u8-asprintf: Likewise.
17311         * modules/unistdio/u8-u8-snprintf: Likewise.
17312         * modules/unistdio/u8-u8-sprintf: Likewise.
17313         * modules/unistdio/u8-u8-vasnprintf: Likewise.
17314         * modules/unistdio/u8-u8-vasprintf: Likewise.
17315         * modules/unistdio/u8-u8-vsnprintf: Likewise.
17316         * modules/unistdio/u8-u8-vsprintf: Likewise.
17317         * modules/unistdio/u8-vasnprintf: Likewise.
17318         * modules/unistdio/u8-vasprintf: Likewise.
17319         * modules/unistdio/u8-vsnprintf: Likewise.
17320         * modules/unistdio/u8-vsprintf: Likewise.
17321         * modules/unistdio/u16-asnprintf: Likewise.
17322         * modules/unistdio/u16-asprintf: Likewise.
17323         * modules/unistdio/u16-snprintf: Likewise.
17324         * modules/unistdio/u16-sprintf: Likewise.
17325         * modules/unistdio/u16-u16-asnprintf: Likewise.
17326         * modules/unistdio/u16-u16-asprintf: Likewise.
17327         * modules/unistdio/u16-u16-snprintf: Likewise.
17328         * modules/unistdio/u16-u16-sprintf: Likewise.
17329         * modules/unistdio/u16-u16-vasnprintf: Likewise.
17330         * modules/unistdio/u16-u16-vasprintf: Likewise.
17331         * modules/unistdio/u16-u16-vsnprintf: Likewise.
17332         * modules/unistdio/u16-u16-vsprintf: Likewise.
17333         * modules/unistdio/u16-vasnprintf: Likewise.
17334         * modules/unistdio/u16-vasprintf: Likewise.
17335         * modules/unistdio/u16-vsnprintf: Likewise.
17336         * modules/unistdio/u16-vsprintf: Likewise.
17337         * modules/unistdio/u32-asnprintf: Likewise.
17338         * modules/unistdio/u32-asprintf: Likewise.
17339         * modules/unistdio/u32-snprintf: Likewise.
17340         * modules/unistdio/u32-sprintf: Likewise.
17341         * modules/unistdio/u32-u32-asnprintf: Likewise.
17342         * modules/unistdio/u32-u32-asprintf: Likewise.
17343         * modules/unistdio/u32-u32-snprintf: Likewise.
17344         * modules/unistdio/u32-u32-sprintf: Likewise.
17345         * modules/unistdio/u32-u32-vasnprintf: Likewise.
17346         * modules/unistdio/u32-u32-vasprintf: Likewise.
17347         * modules/unistdio/u32-u32-vsnprintf: Likewise.
17348         * modules/unistdio/u32-u32-vsprintf: Likewise.
17349         * modules/unistdio/u32-vasnprintf: Likewise.
17350         * modules/unistdio/u32-vasprintf: Likewise.
17351         * modules/unistdio/u32-vsnprintf: Likewise.
17352         * modules/unistdio/u32-vsprintf: Likewise.
17353         * modules/unistdio/ulc-asnprintf: Likewise.
17354         * modules/unistdio/ulc-asprintf: Likewise.
17355         * modules/unistdio/ulc-fprintf: Likewise.
17356         * modules/unistdio/ulc-snprintf: Likewise.
17357         * modules/unistdio/ulc-sprintf: Likewise.
17358         * modules/unistdio/ulc-vasnprintf: Likewise.
17359         * modules/unistdio/ulc-vasprintf: Likewise.
17360         * modules/unistdio/ulc-vfprintf: Likewise.
17361         * modules/unistdio/ulc-vsnprintf: Likewise.
17362         * modules/unistdio/ulc-vsprintf: Likewise.
17363         * modules/unistr/u8-check: Likewise.
17364         * modules/unistr/u8-chr: Likewise.
17365         * modules/unistr/u8-cmp: Likewise.
17366         * modules/unistr/u8-cmp2: Likewise.
17367         * modules/unistr/u8-cpy: Likewise.
17368         * modules/unistr/u8-cpy-alloc: Likewise.
17369         * modules/unistr/u8-endswith: Likewise.
17370         * modules/unistr/u8-mblen: Likewise.
17371         * modules/unistr/u8-mbsnlen: Likewise.
17372         * modules/unistr/u8-mbtouc: Likewise.
17373         * modules/unistr/u8-mbtouc-unsafe: Likewise.
17374         * modules/unistr/u8-mbtoucr: Likewise.
17375         * modules/unistr/u8-move: Likewise.
17376         * modules/unistr/u8-next: Likewise.
17377         * modules/unistr/u8-prev: Likewise.
17378         * modules/unistr/u8-set: Likewise.
17379         * modules/unistr/u8-startswith: Likewise.
17380         * modules/unistr/u8-stpcpy: Likewise.
17381         * modules/unistr/u8-stpncpy: Likewise.
17382         * modules/unistr/u8-strcat: Likewise.
17383         * modules/unistr/u8-strchr: Likewise.
17384         * modules/unistr/u8-strcmp: Likewise.
17385         * modules/unistr/u8-strcoll: Likewise.
17386         * modules/unistr/u8-strcpy: Likewise.
17387         * modules/unistr/u8-strcspn: Likewise.
17388         * modules/unistr/u8-strdup: Likewise.
17389         * modules/unistr/u8-strlen: Likewise.
17390         * modules/unistr/u8-strmblen: Likewise.
17391         * modules/unistr/u8-strmbtouc: Likewise.
17392         * modules/unistr/u8-strncat: Likewise.
17393         * modules/unistr/u8-strncmp: Likewise.
17394         * modules/unistr/u8-strncpy: Likewise.
17395         * modules/unistr/u8-strnlen: Likewise.
17396         * modules/unistr/u8-strpbrk: Likewise.
17397         * modules/unistr/u8-strrchr: Likewise.
17398         * modules/unistr/u8-strspn: Likewise.
17399         * modules/unistr/u8-strstr: Likewise.
17400         * modules/unistr/u8-strtok: Likewise.
17401         * modules/unistr/u8-to-u16: Likewise.
17402         * modules/unistr/u8-to-u32: Likewise.
17403         * modules/unistr/u8-uctomb: Likewise.
17404         * modules/unistr/u16-check: Likewise.
17405         * modules/unistr/u16-chr: Likewise.
17406         * modules/unistr/u16-cmp: Likewise.
17407         * modules/unistr/u16-cmp2: Likewise.
17408         * modules/unistr/u16-cpy: Likewise.
17409         * modules/unistr/u16-cpy-alloc: Likewise.
17410         * modules/unistr/u16-endswith: Likewise.
17411         * modules/unistr/u16-mblen: Likewise.
17412         * modules/unistr/u16-mbsnlen: Likewise.
17413         * modules/unistr/u16-mbtouc: Likewise.
17414         * modules/unistr/u16-mbtouc-unsafe: Likewise.
17415         * modules/unistr/u16-mbtoucr: Likewise.
17416         * modules/unistr/u16-move: Likewise.
17417         * modules/unistr/u16-next: Likewise.
17418         * modules/unistr/u16-prev: Likewise.
17419         * modules/unistr/u16-set: Likewise.
17420         * modules/unistr/u16-startswith: Likewise.
17421         * modules/unistr/u16-stpcpy: Likewise.
17422         * modules/unistr/u16-stpncpy: Likewise.
17423         * modules/unistr/u16-strcat: Likewise.
17424         * modules/unistr/u16-strchr: Likewise.
17425         * modules/unistr/u16-strcmp: Likewise.
17426         * modules/unistr/u16-strcoll: Likewise.
17427         * modules/unistr/u16-strcpy: Likewise.
17428         * modules/unistr/u16-strcspn: Likewise.
17429         * modules/unistr/u16-strdup: Likewise.
17430         * modules/unistr/u16-strlen: Likewise.
17431         * modules/unistr/u16-strmblen: Likewise.
17432         * modules/unistr/u16-strmbtouc: Likewise.
17433         * modules/unistr/u16-strncat: Likewise.
17434         * modules/unistr/u16-strncmp: Likewise.
17435         * modules/unistr/u16-strncpy: Likewise.
17436         * modules/unistr/u16-strnlen: Likewise.
17437         * modules/unistr/u16-strpbrk: Likewise.
17438         * modules/unistr/u16-strrchr: Likewise.
17439         * modules/unistr/u16-strspn: Likewise.
17440         * modules/unistr/u16-strstr: Likewise.
17441         * modules/unistr/u16-strtok: Likewise.
17442         * modules/unistr/u16-to-u32: Likewise.
17443         * modules/unistr/u16-to-u8: Likewise.
17444         * modules/unistr/u16-uctomb: Likewise.
17445         * modules/unistr/u32-check: Likewise.
17446         * modules/unistr/u32-chr: Likewise.
17447         * modules/unistr/u32-cmp: Likewise.
17448         * modules/unistr/u32-cmp2: Likewise.
17449         * modules/unistr/u32-cpy: Likewise.
17450         * modules/unistr/u32-cpy-alloc: Likewise.
17451         * modules/unistr/u32-endswith: Likewise.
17452         * modules/unistr/u32-mblen: Likewise.
17453         * modules/unistr/u32-mbsnlen: Likewise.
17454         * modules/unistr/u32-mbtouc: Likewise.
17455         * modules/unistr/u32-mbtouc-unsafe: Likewise.
17456         * modules/unistr/u32-mbtoucr: Likewise.
17457         * modules/unistr/u32-move: Likewise.
17458         * modules/unistr/u32-next: Likewise.
17459         * modules/unistr/u32-prev: Likewise.
17460         * modules/unistr/u32-set: Likewise.
17461         * modules/unistr/u32-startswith: Likewise.
17462         * modules/unistr/u32-stpcpy: Likewise.
17463         * modules/unistr/u32-stpncpy: Likewise.
17464         * modules/unistr/u32-strcat: Likewise.
17465         * modules/unistr/u32-strchr: Likewise.
17466         * modules/unistr/u32-strcmp: Likewise.
17467         * modules/unistr/u32-strcoll: Likewise.
17468         * modules/unistr/u32-strcpy: Likewise.
17469         * modules/unistr/u32-strcspn: Likewise.
17470         * modules/unistr/u32-strdup: Likewise.
17471         * modules/unistr/u32-strlen: Likewise.
17472         * modules/unistr/u32-strmblen: Likewise.
17473         * modules/unistr/u32-strmbtouc: Likewise.
17474         * modules/unistr/u32-strncat: Likewise.
17475         * modules/unistr/u32-strncmp: Likewise.
17476         * modules/unistr/u32-strncpy: Likewise.
17477         * modules/unistr/u32-strnlen: Likewise.
17478         * modules/unistr/u32-strpbrk: Likewise.
17479         * modules/unistr/u32-strrchr: Likewise.
17480         * modules/unistr/u32-strspn: Likewise.
17481         * modules/unistr/u32-strstr: Likewise.
17482         * modules/unistr/u32-strtok: Likewise.
17483         * modules/unistr/u32-to-u16: Likewise.
17484         * modules/unistr/u32-to-u8: Likewise.
17485         * modules/unistr/u32-uctomb: Likewise.
17486         * modules/uniwbrk/u8-wordbreaks: Likewise.
17487         * modules/uniwbrk/u16-wordbreaks: Likewise.
17488         * modules/uniwbrk/u32-wordbreaks: Likewise.
17489         * modules/uniwbrk/ulc-wordbreaks: Likewise.
17490         * modules/uniwbrk/wordbreak-property: Likewise.
17491         * modules/uniwidth/u8-strwidth: Likewise.
17492         * modules/uniwidth/u8-width: Likewise.
17493         * modules/uniwidth/u16-strwidth: Likewise.
17494         * modules/uniwidth/u16-width: Likewise.
17495         * modules/uniwidth/u32-strwidth: Likewise.
17496         * modules/uniwidth/u32-width: Likewise.
17497         * modules/uniwidth/width: Likewise.
17498         * modules/unicase/cased-tests (Makefile.am): Link all test programs
17499         with $(LIBUNISTRING).
17500         * modules/unicase/ignorable-tests: Likewise.
17501         * modules/unicase/locale-language-tests: Likewise.
17502         * modules/unicase/tolower-tests: Likewise.
17503         * modules/unicase/totitle-tests: Likewise.
17504         * modules/unicase/toupper-tests: Likewise.
17505         * modules/unicase/u8-casecmp-tests: Likewise.
17506         * modules/unicase/u8-casecoll-tests: Likewise.
17507         * modules/unicase/u8-casefold-tests: Likewise.
17508         * modules/unicase/u8-is-cased-tests: Likewise.
17509         * modules/unicase/u8-is-casefolded-tests: Likewise.
17510         * modules/unicase/u8-is-lowercase-tests: Likewise.
17511         * modules/unicase/u8-is-titlecase-tests: Likewise.
17512         * modules/unicase/u8-is-uppercase-tests: Likewise.
17513         * modules/unicase/u8-tolower-tests: Likewise.
17514         * modules/unicase/u8-totitle-tests: Likewise.
17515         * modules/unicase/u8-toupper-tests: Likewise.
17516         * modules/unicase/u16-casecmp-tests: Likewise.
17517         * modules/unicase/u16-casecoll-tests: Likewise.
17518         * modules/unicase/u16-casefold-tests: Likewise.
17519         * modules/unicase/u16-is-cased-tests: Likewise.
17520         * modules/unicase/u16-is-casefolded-tests: Likewise.
17521         * modules/unicase/u16-is-lowercase-tests: Likewise.
17522         * modules/unicase/u16-is-titlecase-tests: Likewise.
17523         * modules/unicase/u16-is-uppercase-tests: Likewise.
17524         * modules/unicase/u16-tolower-tests: Likewise.
17525         * modules/unicase/u16-totitle-tests: Likewise.
17526         * modules/unicase/u16-toupper-tests: Likewise.
17527         * modules/unicase/u32-casecmp-tests: Likewise.
17528         * modules/unicase/u32-casecoll-tests: Likewise.
17529         * modules/unicase/u32-casefold-tests: Likewise.
17530         * modules/unicase/u32-is-cased-tests: Likewise.
17531         * modules/unicase/u32-is-casefolded-tests: Likewise.
17532         * modules/unicase/u32-is-lowercase-tests: Likewise.
17533         * modules/unicase/u32-is-titlecase-tests: Likewise.
17534         * modules/unicase/u32-is-uppercase-tests: Likewise.
17535         * modules/unicase/u32-tolower-tests: Likewise.
17536         * modules/unicase/u32-totitle-tests: Likewise.
17537         * modules/unicase/u32-toupper-tests: Likewise.
17538         * modules/unicase/ulc-casecmp-tests: Likewise.
17539         * modules/unicase/ulc-casecoll-tests: Likewise.
17540         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
17541         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
17542         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
17543         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
17544         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
17545         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
17546         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
17547         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
17548         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
17549         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
17550         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
17551         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
17552         * modules/unictype/bidicategory-byname-tests: Likewise.
17553         * modules/unictype/bidicategory-name-tests: Likewise.
17554         * modules/unictype/bidicategory-of-tests: Likewise.
17555         * modules/unictype/bidicategory-test-tests: Likewise.
17556         * modules/unictype/block-list-tests: Likewise.
17557         * modules/unictype/block-of-tests: Likewise.
17558         * modules/unictype/block-test-tests: Likewise.
17559         * modules/unictype/category-C-tests: Likewise.
17560         * modules/unictype/category-Cc-tests: Likewise.
17561         * modules/unictype/category-Cf-tests: Likewise.
17562         * modules/unictype/category-Cn-tests: Likewise.
17563         * modules/unictype/category-Co-tests: Likewise.
17564         * modules/unictype/category-Cs-tests: Likewise.
17565         * modules/unictype/category-L-tests: Likewise.
17566         * modules/unictype/category-Ll-tests: Likewise.
17567         * modules/unictype/category-Lm-tests: Likewise.
17568         * modules/unictype/category-Lo-tests: Likewise.
17569         * modules/unictype/category-Lt-tests: Likewise.
17570         * modules/unictype/category-Lu-tests: Likewise.
17571         * modules/unictype/category-M-tests: Likewise.
17572         * modules/unictype/category-Mc-tests: Likewise.
17573         * modules/unictype/category-Me-tests: Likewise.
17574         * modules/unictype/category-Mn-tests: Likewise.
17575         * modules/unictype/category-N-tests: Likewise.
17576         * modules/unictype/category-Nd-tests: Likewise.
17577         * modules/unictype/category-Nl-tests: Likewise.
17578         * modules/unictype/category-No-tests: Likewise.
17579         * modules/unictype/category-P-tests: Likewise.
17580         * modules/unictype/category-Pc-tests: Likewise.
17581         * modules/unictype/category-Pd-tests: Likewise.
17582         * modules/unictype/category-Pe-tests: Likewise.
17583         * modules/unictype/category-Pf-tests: Likewise.
17584         * modules/unictype/category-Pi-tests: Likewise.
17585         * modules/unictype/category-Po-tests: Likewise.
17586         * modules/unictype/category-Ps-tests: Likewise.
17587         * modules/unictype/category-S-tests: Likewise.
17588         * modules/unictype/category-Sc-tests: Likewise.
17589         * modules/unictype/category-Sk-tests: Likewise.
17590         * modules/unictype/category-Sm-tests: Likewise.
17591         * modules/unictype/category-So-tests: Likewise.
17592         * modules/unictype/category-Z-tests: Likewise.
17593         * modules/unictype/category-Zl-tests: Likewise.
17594         * modules/unictype/category-Zp-tests: Likewise.
17595         * modules/unictype/category-Zs-tests: Likewise.
17596         * modules/unictype/category-and-not-tests: Likewise.
17597         * modules/unictype/category-and-tests: Likewise.
17598         * modules/unictype/category-byname-tests: Likewise.
17599         * modules/unictype/category-name-tests: Likewise.
17600         * modules/unictype/category-none-tests: Likewise.
17601         * modules/unictype/category-of-tests: Likewise.
17602         * modules/unictype/category-or-tests: Likewise.
17603         * modules/unictype/category-test-withtable-tests: Likewise.
17604         * modules/unictype/combining-class-tests: Likewise.
17605         * modules/unictype/ctype-alnum-tests: Likewise.
17606         * modules/unictype/ctype-alpha-tests: Likewise.
17607         * modules/unictype/ctype-blank-tests: Likewise.
17608         * modules/unictype/ctype-cntrl-tests: Likewise.
17609         * modules/unictype/ctype-digit-tests: Likewise.
17610         * modules/unictype/ctype-graph-tests: Likewise.
17611         * modules/unictype/ctype-lower-tests: Likewise.
17612         * modules/unictype/ctype-print-tests: Likewise.
17613         * modules/unictype/ctype-punct-tests: Likewise.
17614         * modules/unictype/ctype-space-tests: Likewise.
17615         * modules/unictype/ctype-upper-tests: Likewise.
17616         * modules/unictype/ctype-xdigit-tests: Likewise.
17617         * modules/unictype/decimal-digit-tests: Likewise.
17618         * modules/unictype/digit-tests: Likewise.
17619         * modules/unictype/mirror-tests: Likewise.
17620         * modules/unictype/numeric-tests: Likewise.
17621         * modules/unictype/property-alphabetic-tests: Likewise.
17622         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
17623         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
17624         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
17625         * modules/unictype/property-bidi-block-separator-tests: Likewise.
17626         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
17627         * modules/unictype/property-bidi-common-separator-tests: Likewise.
17628         * modules/unictype/property-bidi-control-tests: Likewise.
17629         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
17630         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
17631         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
17632         * modules/unictype/property-bidi-european-digit-tests: Likewise.
17633         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
17634         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
17635         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
17636         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
17637         * modules/unictype/property-bidi-pdf-tests: Likewise.
17638         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
17639         * modules/unictype/property-bidi-whitespace-tests: Likewise.
17640         * modules/unictype/property-byname-tests: Likewise.
17641         * modules/unictype/property-combining-tests: Likewise.
17642         * modules/unictype/property-composite-tests: Likewise.
17643         * modules/unictype/property-currency-symbol-tests: Likewise.
17644         * modules/unictype/property-dash-tests: Likewise.
17645         * modules/unictype/property-decimal-digit-tests: Likewise.
17646         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
17647         * modules/unictype/property-deprecated-tests: Likewise.
17648         * modules/unictype/property-diacritic-tests: Likewise.
17649         * modules/unictype/property-extender-tests: Likewise.
17650         * modules/unictype/property-format-control-tests: Likewise.
17651         * modules/unictype/property-grapheme-base-tests: Likewise.
17652         * modules/unictype/property-grapheme-extend-tests: Likewise.
17653         * modules/unictype/property-grapheme-link-tests: Likewise.
17654         * modules/unictype/property-hex-digit-tests: Likewise.
17655         * modules/unictype/property-hyphen-tests: Likewise.
17656         * modules/unictype/property-id-continue-tests: Likewise.
17657         * modules/unictype/property-id-start-tests: Likewise.
17658         * modules/unictype/property-ideographic-tests: Likewise.
17659         * modules/unictype/property-ids-binary-operator-tests: Likewise.
17660         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
17661         * modules/unictype/property-ignorable-control-tests: Likewise.
17662         * modules/unictype/property-iso-control-tests: Likewise.
17663         * modules/unictype/property-join-control-tests: Likewise.
17664         * modules/unictype/property-left-of-pair-tests: Likewise.
17665         * modules/unictype/property-line-separator-tests: Likewise.
17666         * modules/unictype/property-logical-order-exception-tests: Likewise.
17667         * modules/unictype/property-lowercase-tests: Likewise.
17668         * modules/unictype/property-math-tests: Likewise.
17669         * modules/unictype/property-non-break-tests: Likewise.
17670         * modules/unictype/property-not-a-character-tests: Likewise.
17671         * modules/unictype/property-numeric-tests: Likewise.
17672         * modules/unictype/property-other-alphabetic-tests: Likewise.
17673         * modules/unictype/property-other-default-ignorable-code-point-tests:
17674         Likewise.
17675         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
17676         * modules/unictype/property-other-id-continue-tests: Likewise.
17677         * modules/unictype/property-other-id-start-tests: Likewise.
17678         * modules/unictype/property-other-lowercase-tests: Likewise.
17679         * modules/unictype/property-other-math-tests: Likewise.
17680         * modules/unictype/property-other-uppercase-tests: Likewise.
17681         * modules/unictype/property-paired-punctuation-tests: Likewise.
17682         * modules/unictype/property-paragraph-separator-tests: Likewise.
17683         * modules/unictype/property-pattern-syntax-tests: Likewise.
17684         * modules/unictype/property-pattern-white-space-tests: Likewise.
17685         * modules/unictype/property-private-use-tests: Likewise.
17686         * modules/unictype/property-punctuation-tests: Likewise.
17687         * modules/unictype/property-quotation-mark-tests: Likewise.
17688         * modules/unictype/property-radical-tests: Likewise.
17689         * modules/unictype/property-sentence-terminal-tests: Likewise.
17690         * modules/unictype/property-soft-dotted-tests: Likewise.
17691         * modules/unictype/property-space-tests: Likewise.
17692         * modules/unictype/property-terminal-punctuation-tests: Likewise.
17693         * modules/unictype/property-test-tests: Likewise.
17694         * modules/unictype/property-titlecase-tests: Likewise.
17695         * modules/unictype/property-unassigned-code-value-tests: Likewise.
17696         * modules/unictype/property-unified-ideograph-tests: Likewise.
17697         * modules/unictype/property-uppercase-tests: Likewise.
17698         * modules/unictype/property-variation-selector-tests: Likewise.
17699         * modules/unictype/property-white-space-tests: Likewise.
17700         * modules/unictype/property-xid-continue-tests: Likewise.
17701         * modules/unictype/property-xid-start-tests: Likewise.
17702         * modules/unictype/property-zero-width-tests: Likewise.
17703         * modules/unictype/scripts-tests: Likewise.
17704         * modules/unictype/syntax-c-ident-tests: Likewise.
17705         * modules/unictype/syntax-c-whitespace-tests: Likewise.
17706         * modules/unictype/syntax-java-ident-tests: Likewise.
17707         * modules/unictype/syntax-java-whitespace-tests: Likewise.
17708         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
17709         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
17710         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
17711         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
17712         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
17713         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
17714         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
17715         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
17716         * modules/uniname/uniname-tests: Likewise.
17717         * modules/uninorm/canonical-decomposition-tests: Likewise.
17718         * modules/uninorm/compat-decomposition-tests: Likewise.
17719         * modules/uninorm/composition-tests: Likewise.
17720         * modules/uninorm/decomposing-form-tests: Likewise.
17721         * modules/uninorm/decomposition-tests: Likewise.
17722         * modules/uninorm/filter-tests: Likewise.
17723         * modules/uninorm/nfc-tests: Likewise.
17724         * modules/uninorm/nfd-tests: Likewise.
17725         * modules/uninorm/nfkc-tests: Likewise.
17726         * modules/uninorm/nfkd-tests: Likewise.
17727         * modules/uninorm/u8-normcmp-tests: Likewise.
17728         * modules/uninorm/u8-normcoll-tests: Likewise.
17729         * modules/uninorm/u16-normcmp-tests: Likewise.
17730         * modules/uninorm/u16-normcoll-tests: Likewise.
17731         * modules/uninorm/u32-normcmp-tests: Likewise.
17732         * modules/uninorm/u32-normcoll-tests: Likewise.
17733         * modules/unistdio/u8-asnprintf-tests: Likewise.
17734         * modules/unistdio/u8-vasnprintf-tests: Likewise.
17735         * modules/unistdio/u8-vasprintf-tests: Likewise.
17736         * modules/unistdio/u8-vsnprintf-tests: Likewise.
17737         * modules/unistdio/u8-vsprintf-tests: Likewise.
17738         * modules/unistdio/u16-asnprintf-tests: Likewise.
17739         * modules/unistdio/u16-vasnprintf-tests: Likewise.
17740         * modules/unistdio/u16-vasprintf-tests: Likewise.
17741         * modules/unistdio/u16-vsnprintf-tests: Likewise.
17742         * modules/unistdio/u16-vsprintf-tests: Likewise.
17743         * modules/unistdio/u32-asnprintf-tests: Likewise.
17744         * modules/unistdio/u32-vasnprintf-tests: Likewise.
17745         * modules/unistdio/u32-vasprintf-tests: Likewise.
17746         * modules/unistdio/u32-vsnprintf-tests: Likewise.
17747         * modules/unistdio/u32-vsprintf-tests: Likewise.
17748         * modules/unistdio/ulc-asnprintf-tests: Likewise.
17749         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
17750         * modules/unistdio/ulc-vasprintf-tests: Likewise.
17751         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
17752         * modules/unistdio/ulc-vsprintf-tests: Likewise.
17753         * modules/unistr/u8-check-tests: Likewise.
17754         * modules/unistr/u8-chr-tests: Likewise.
17755         * modules/unistr/u8-cmp-tests: Likewise.
17756         * modules/unistr/u8-cmp2-tests: Likewise.
17757         * modules/unistr/u8-cpy-alloc-tests: Likewise.
17758         * modules/unistr/u8-cpy-tests: Likewise.
17759         * modules/unistr/u8-mblen-tests: Likewise.
17760         * modules/unistr/u8-mbsnlen-tests: Likewise.
17761         * modules/unistr/u8-mbtouc-tests: Likewise.
17762         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
17763         * modules/unistr/u8-mbtoucr-tests: Likewise.
17764         * modules/unistr/u8-move-tests: Likewise.
17765         * modules/unistr/u8-next-tests: Likewise.
17766         * modules/unistr/u8-prev-tests: Likewise.
17767         * modules/unistr/u8-set-tests: Likewise.
17768         * modules/unistr/u8-stpcpy-tests: Likewise.
17769         * modules/unistr/u8-stpncpy-tests: Likewise.
17770         * modules/unistr/u8-strcat-tests: Likewise.
17771         * modules/unistr/u8-strcmp-tests: Likewise.
17772         * modules/unistr/u8-strcoll-tests: Likewise.
17773         * modules/unistr/u8-strcpy-tests: Likewise.
17774         * modules/unistr/u8-strdup-tests: Likewise.
17775         * modules/unistr/u8-strlen-tests: Likewise.
17776         * modules/unistr/u8-strmblen-tests: Likewise.
17777         * modules/unistr/u8-strmbtouc-tests: Likewise.
17778         * modules/unistr/u8-strncat-tests: Likewise.
17779         * modules/unistr/u8-strncmp-tests: Likewise.
17780         * modules/unistr/u8-strncpy-tests: Likewise.
17781         * modules/unistr/u8-strnlen-tests: Likewise.
17782         * modules/unistr/u8-to-u16-tests: Likewise.
17783         * modules/unistr/u8-to-u32-tests: Likewise.
17784         * modules/unistr/u8-uctomb-tests: Likewise.
17785         * modules/unistr/u16-check-tests: Likewise.
17786         * modules/unistr/u16-chr-tests: Likewise.
17787         * modules/unistr/u16-cmp-tests: Likewise.
17788         * modules/unistr/u16-cmp2-tests: Likewise.
17789         * modules/unistr/u16-cpy-alloc-tests: Likewise.
17790         * modules/unistr/u16-cpy-tests: Likewise.
17791         * modules/unistr/u16-mblen-tests: Likewise.
17792         * modules/unistr/u16-mbsnlen-tests: Likewise.
17793         * modules/unistr/u16-mbtouc-tests: Likewise.
17794         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
17795         * modules/unistr/u16-mbtoucr-tests: Likewise.
17796         * modules/unistr/u16-move-tests: Likewise.
17797         * modules/unistr/u16-next-tests: Likewise.
17798         * modules/unistr/u16-prev-tests: Likewise.
17799         * modules/unistr/u16-set-tests: Likewise.
17800         * modules/unistr/u16-stpcpy-tests: Likewise.
17801         * modules/unistr/u16-stpncpy-tests: Likewise.
17802         * modules/unistr/u16-strcat-tests: Likewise.
17803         * modules/unistr/u16-strcmp-tests: Likewise.
17804         * modules/unistr/u16-strcoll-tests: Likewise.
17805         * modules/unistr/u16-strcpy-tests: Likewise.
17806         * modules/unistr/u16-strdup-tests: Likewise.
17807         * modules/unistr/u16-strlen-tests: Likewise.
17808         * modules/unistr/u16-strmblen-tests: Likewise.
17809         * modules/unistr/u16-strmbtouc-tests: Likewise.
17810         * modules/unistr/u16-strncat-tests: Likewise.
17811         * modules/unistr/u16-strncmp-tests: Likewise.
17812         * modules/unistr/u16-strncpy-tests: Likewise.
17813         * modules/unistr/u16-strnlen-tests: Likewise.
17814         * modules/unistr/u16-to-u32-tests: Likewise.
17815         * modules/unistr/u16-to-u8-tests: Likewise.
17816         * modules/unistr/u16-uctomb-tests: Likewise.
17817         * modules/unistr/u32-check-tests: Likewise.
17818         * modules/unistr/u32-chr-tests: Likewise.
17819         * modules/unistr/u32-cmp-tests: Likewise.
17820         * modules/unistr/u32-cmp2-tests: Likewise.
17821         * modules/unistr/u32-cpy-alloc-tests: Likewise.
17822         * modules/unistr/u32-cpy-tests: Likewise.
17823         * modules/unistr/u32-mblen-tests: Likewise.
17824         * modules/unistr/u32-mbsnlen-tests: Likewise.
17825         * modules/unistr/u32-mbtouc-tests: Likewise.
17826         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
17827         * modules/unistr/u32-mbtoucr-tests: Likewise.
17828         * modules/unistr/u32-move-tests: Likewise.
17829         * modules/unistr/u32-next-tests: Likewise.
17830         * modules/unistr/u32-prev-tests: Likewise.
17831         * modules/unistr/u32-set-tests: Likewise.
17832         * modules/unistr/u32-stpcpy-tests: Likewise.
17833         * modules/unistr/u32-stpncpy-tests: Likewise.
17834         * modules/unistr/u32-strcat-tests: Likewise.
17835         * modules/unistr/u32-strcmp-tests: Likewise.
17836         * modules/unistr/u32-strcoll-tests: Likewise.
17837         * modules/unistr/u32-strcpy-tests: Likewise.
17838         * modules/unistr/u32-strdup-tests: Likewise.
17839         * modules/unistr/u32-strlen-tests: Likewise.
17840         * modules/unistr/u32-strmblen-tests: Likewise.
17841         * modules/unistr/u32-strmbtouc-tests: Likewise.
17842         * modules/unistr/u32-strncat-tests: Likewise.
17843         * modules/unistr/u32-strncmp-tests: Likewise.
17844         * modules/unistr/u32-strncpy-tests: Likewise.
17845         * modules/unistr/u32-strnlen-tests: Likewise.
17846         * modules/unistr/u32-to-u16-tests: Likewise.
17847         * modules/unistr/u32-to-u8-tests: Likewise.
17848         * modules/unistr/u32-uctomb-tests: Likewise.
17849         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
17850         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
17851         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
17852         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
17853         * modules/uniwidth/u8-strwidth-tests: Likewise.
17854         * modules/uniwidth/u8-width-tests: Likewise.
17855         * modules/uniwidth/u16-strwidth-tests: Likewise.
17856         * modules/uniwidth/u16-width-tests: Likewise.
17857         * modules/uniwidth/u32-strwidth-tests: Likewise.
17858         * modules/uniwidth/u32-width-tests: Likewise.
17859         * modules/uniwidth/width-tests: Likewise.
17860
17861 2010-05-18  Richard Jones  <rjones@redhat.com>
17862
17863         doc: users.txt: list hivex
17864         * users.txt: Add hivex.
17865
17866 2010-05-18  Richard Jones  <rjones@redhat.com>
17867
17868         doc: users.txt: list febootstrap
17869         * users.txt: Add febootstrap.
17870
17871 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
17872
17873         bootstrap: fix an error when gnulib is not used as a git submodule
17874         * build-aux/bootstrap (gnulib_path): If its length is zero then
17875         assign "gnulib" to it.
17876         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
17877
17878 2010-05-16  Bruno Haible  <bruno@clisp.org>
17879
17880         Avoid autoconf warnings about AM_ICONV.
17881         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
17882         2.64.
17883
17884 2010-05-16  Bruno Haible  <bruno@clisp.org>
17885
17886         absolute-header: Make the macro usable in more situations.
17887         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
17888         from gl_ABSOLUTE_HEADER.
17889         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
17890
17891 2010-05-16  James Youngman  <jay@gnu.org>
17892
17893         doc: update users.txt
17894         * users.txt: Add CSSC.
17895
17896 2010-05-16  Jim Meyering  <meyering@redhat.com>
17897
17898         init.sh: fix an error in the previous change; add more comments
17899         * tests/init.sh: Compare exit code in loop against 9, not 2.
17900         Patch by Bruno Haible.
17901         Make the two tests more similar by adding an empty "then" clause.
17902         Add comments.
17903
17904         init.sh: avoid unnecessary shell re-exec
17905         * tests/init.sh: Improve the re-exec-required check to first test the
17906         current shell.  If it passes the test, do not search for a shell that
17907         does pass, and do not re-exec.  This test is particularly contorted to
17908         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
17909         of $(...) evokes a syntax error and causes immediate shell exit with
17910         status 2.  Bruno Haible reported that the re-exec made it impossible
17911         to single-step through any init.sh-using script.
17912
17913 2010-05-16  Bruno Haible  <bruno@clisp.org>
17914
17915         Fix collision between gnulib's and libintl's printf replacements.
17916         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
17917         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
17918         (printf): When using GNU C, map the __printf__ function to rpl_printf
17919         via __asm__. When not using GNU C, define rpl_printf instead of
17920         __printf__.
17921         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
17922         commit.
17923         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
17924         commit.
17925         * m4/asm-underscore.m4: New file.
17926         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
17927         * modules/stdio (Files): Add m4/asm-underscore.m4.
17928         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
17929         Reported by Ben Pfaff.
17930
17931 2010-05-16  Bruno Haible  <bruno@clisp.org>
17932
17933         verify: Avoid skipping the test on openSUSE 11.0.
17934         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
17935
17936 2010-05-13  Bruno Haible  <bruno@clisp.org>
17937
17938         Avoid useless warnings from G++.
17939         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
17940         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
17941         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
17942
17943 2010-05-11  Jim Meyering  <meyering@redhat.com>
17944
17945         maint.mk: tweak preceding change
17946         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
17947         regexps tighter by anchoring at EOL, and make the new group "shy"
17948         for slightly decreased overhead.
17949
17950 2010-05-11  Eric Blake  <eblake@redhat.com>
17951
17952         maint.mk: gnulib doesn't guarantee NSIG
17953         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
17954
17955 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
17956
17957         test-pwrite.c: Remove unused variable declaration.
17958         * tests/test-pwrite.c (main): Remove read_buf declaration.
17959
17960         Remove useless test-pwrite.sh file.
17961         * tests/test-pwrite.sh: Delete file.
17962         * modules/pwrite-tests: Remove references.
17963         Reported by Bruno Haible.
17964
17965 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
17966
17967         init.sh: fix a typo
17968         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
17969
17970 2010-05-10  Jim Meyering  <meyering@redhat.com>
17971
17972         maint.mk: avoid using a temporary file in the always-defined-macros check
17973         * top/maint.mk (.re-defmac): Remove rule.
17974         (gl_trap_): Remove definition.
17975         (sc_prohibit_always-defined_macros): Rewrite not to create and
17976         depend on a temporary file.  Instead, depend on GNU grep's ability
17977         to read a list of regular expressions from stdin when given "-f -".
17978
17979 2010-05-09  Bruno Haible  <bruno@clisp.org>
17980
17981         Update to GNU gettext 0.18, part 1.
17982         * m4/gettext.m4: Update to GNU gettext 0.18.
17983         * m4/intl.m4: Likewise.
17984         * m4/po.m4: Likewise.
17985         * modules/gettext (Files): Add m4/fcntl-o.m4.
17986         (configure.ac): Require gettext infrastructure from version 0.18.
17987
17988 2010-05-09  Jim Meyering  <meyering@redhat.com>
17989
17990         init.sh: enable MALLOC_PERTURB_
17991         * tests/init.sh: Enable glibc's malloc-perturbing option.
17992
17993         maint.mk: improve sc_cross_check_PATH_usage_in_tests
17994         With my recent change in init.sh from the two-line form:
17995             -#   : ${srcdir=.}
17996             -#   . "$srcdir/init.sh"; path_prepend_ .
17997             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
17998         I noticed that using the one-line form would cause this test
17999         to fail with a false-positive, or to stop working altogether,
18000         depending on whether help-version changed or all the tests did.
18001         * top/maint.mk (_hv_regex): Remove this definition.
18002         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
18003         (_hv_regex_strong): Use a stronger regex to check for conformance.
18004         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
18005         Give a separate diagnostic for lack of conforming use.
18006
18007         maint.mk: prohibit definition of symbols defined by gnulib
18008         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
18009         definition of symbols defined by gnulib.
18010
18011 2010-05-09  Bruno Haible  <bruno@clisp.org>
18012
18013         acl: Avoid test failure on Cygwin-hosted mingw.
18014         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
18015
18016 2010-05-09  Bruno Haible  <bruno@clisp.org>
18017
18018         error: Use system's fcntl function.
18019         * lib/error.c (fcntl): Undefine.
18020
18021 2010-05-09  Jim Meyering  <meyering@redhat.com>
18022
18023         verify: adjust formatting to be more consistent
18024         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
18025         argument-list '('s, and after one comma.
18026
18027 2010-05-09  Bruno Haible  <bruno@clisp.org>
18028
18029         error: More reliable output on mingw.
18030         * lib/error.c: Include <windows.h>.
18031         (is_open): New function.
18032         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
18033         defined.
18034
18035 2010-05-09  Bruno Haible  <bruno@clisp.org>
18036
18037         vasnprintf: Fix syntax errors in libintl build on mingw.
18038         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
18039         pad_ourselves and prec_ourselves after use.
18040
18041 2010-05-08  Bruno Haible  <bruno@clisp.org>
18042
18043         * lib/config.charset: Update comments for Cygwin 1.7.
18044         * lib/localcharset.c: Likewise.
18045
18046 2010-05-07  Jim Meyering  <meyering@redhat.com>
18047
18048         init.sh: improve comments
18049         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
18050         . "${srcdir=.}/init.sh"; path_prepend_ .
18051         Add a note about path_prepend_ and the alternative of using
18052         TESTS_ENVIRONMENT.
18053
18054 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
18055
18056         exclude: Unescape hashed patterns in wildcard mode.
18057         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
18058         to the hash list.
18059         * tests/test-exclude8.sh: New test case.
18060         * modules/exclude-tests: Add new test.
18061
18062 2010-05-05  Eric Blake  <eblake@redhat.com>
18063
18064         verify: automate tests
18065         * modules/verify-tests: New module.
18066         * tests/test-verify.sh: New file.
18067         * tests/test-verify.c: Guard each negative test with a unique id.
18068         Also avoid warning about unused left hand of comma expressions.
18069
18070 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
18071
18072         Further improvements to verify.h, suggested by Eric Blake.
18073         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
18074         the GL_* versions, to avoid collision with OpenGL.
18075         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
18076         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
18077         than testing merely whether it's defined.
18078
18079         Modify verify.h to pacify gcc -Wredundant_decls.
18080         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
18081         These use the prefix "GL_" since they're likely to be useful elsewhere.
18082         We may need to break them out into a different .h file.
18083         (__COUNTER__): Define to 0 if the compiler doesn't support it.
18084         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
18085         of verify_function__.
18086
18087 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
18088
18089         Tests for module pwrite.
18090         * modules/pwrite-tests: New file.
18091         * tests/test-pwrite.sh: New file.
18092         * tests/test-pwrite.c: New file.
18093
18094         New module pwrite.
18095         * lib/unistd.in.h (pwrite): New declaration.
18096         * lib/pwrite.c: New file, from glibc with modifications.
18097         * m4/pwrite.m4: New file.
18098         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
18099         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
18100         REPLACE_PWRITE.
18101         * modules/pwrite: New file.
18102         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
18103         REPLACE_PWRITE.
18104         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
18105         * doc/posix-functions/pwrite.texi: Mention the new module.
18106
18107 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
18108
18109         pread: Update documentation.
18110         * doc/posix-functions/pread.texi: Mention the 'pread' module.
18111
18112 2010-05-04  Eric Blake  <eblake@redhat.com>
18113
18114         docs: update cygwin progress
18115         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
18116         this bug.
18117         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
18118         Added in cygwin 1.7.2.
18119         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
18120         Likewise.
18121         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
18122         Likewise.
18123         * doc/glibc-functions/dup3.texi (dup3): Likewise.
18124         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
18125         * doc/glibc-functions/accept4.texi (accept4): Likewise.
18126         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
18127         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
18128         Mention nproc module.
18129         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
18130         bug in cygwin 1.7.5 addition.
18131         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
18132         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
18133         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
18134         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
18135         1.7.5.
18136         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
18137         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
18138         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
18139         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
18140         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
18141         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
18142         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
18143         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
18144         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
18145         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
18146         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
18147         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
18148         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
18149         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
18150         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
18151         Likewise.
18152         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
18153         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
18154         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
18155         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
18156         Likewise.
18157         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
18158         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
18159         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
18160         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
18161         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
18162         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
18163         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
18164         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
18165         Likewise.
18166         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
18167         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
18168         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
18169         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
18170         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
18171         Likewise.
18172         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
18173         Likewise.
18174         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
18175         Likewise.
18176         * doc/glibc-functions/xdrrec_endofrecord.texi
18177         (xdrrec_endofrecord): Likewise.
18178         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
18179         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
18180         Likewise.
18181         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
18182         Likewise.
18183
18184 2010-05-04  Jim Meyering  <meyering@redhat.com>
18185
18186         gendocs.sh: make its "-s FILE" option more useful
18187         * build-aux/gendocs.sh: When honoring the -s FILE option, update
18188         $PACKAGE to reflect the probably-different basename of "FILE".
18189
18190 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
18191
18192         bootstrap: don't ignore download_po_files failure
18193         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
18194         failure.
18195
18196 2010-05-03  Jim Meyering  <meyering@redhat.com>
18197
18198         maint.mk: allow to pass options to gendocs.sh
18199         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
18200         (gendocs_options_): New overridable variable.
18201
18202         gnu-web-doc-update: don't ignore configure or build failure
18203         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
18204
18205         announce-gen: backslash-escape '@'s in --help output
18206         * build-aux/announce-gen: Fix syntax errors.
18207
18208         maint.mk, announce-gen: allow project-specific announcement mail headers
18209         * top/maint.mk (translation_project_): Define default.
18210         (announcement_Cc_, announcement_mail_headers_): Likewise.
18211         (announcement): Invoke announce-gen with new --mail-headers option.
18212         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
18213
18214         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
18215         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
18216         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
18217         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
18218         line in the "err2" output file when running "make check" in verbose
18219         mode (i.e., with set -x enabled).
18220
18221 2010-05-03  Bruno Haible  <bruno@clisp.org>
18222
18223         wctob: Fix for weird platforms.
18224         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
18225         argument value.
18226
18227 2010-05-03  Jim Meyering  <meyering@redhat.com>
18228
18229         maint.mk: prohibit unwarranted use of <strings.h>
18230         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
18231         strings.h in a file that does not also use strcasecmp, strncasecmp,
18232         ffs or ffsll.
18233
18234         maint.mk: remove obsolete comments
18235         * top/maint.mk: Remove stale, commented-out rules.
18236
18237 2010-05-02  Bruno Haible  <bruno@clisp.org>
18238
18239         wcwidth: Declare also when it's aliased.
18240         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
18241         macro.
18242
18243 2010-05-02  Bruno Haible  <bruno@clisp.org>
18244
18245         Fix regression from 2010-04-25.
18246         * gnulib-tool (func_modules_transitive_closure): Check the status of
18247         all modules, not only of the tests that are of the form foo-tests where
18248         foo is a module.
18249
18250 2010-05-02  Bruno Haible  <bruno@clisp.org>
18251
18252         wctob: Work around nasty Cygwin 1.7.2 bug.
18253         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
18254         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
18255
18256 2010-05-01  Bruno Haible  <bruno@clisp.org>
18257
18258         fpurge: Sharper test.
18259         * tests/test-fpurge.c (main): Add one more ftell check.
18260         * modules/fpurge-tests (Depends-on): Add ftell.
18261         Suggested by Eric Blake.
18262
18263 2010-05-01  Bruno Haible  <bruno@clisp.org>
18264
18265         ftello: Another test.
18266         * tests/test-ftello3.c: New file.
18267         * modules/ftello-tests (Files): Add it.
18268         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
18269         MOSTLYCLEANFILES.
18270
18271         ftell: Another test.
18272         * tests/test-ftell3.c: New file.
18273         * modules/ftell-tests (Files): Add it.
18274         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
18275         MOSTLYCLEANFILES.
18276
18277 2010-05-01  Bruno Haible  <bruno@clisp.org>
18278
18279         ftell, ftello: Work around Solaris bug.
18280         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
18281         * lib/ftello.c: Include stdio-impl.h.
18282         (ftello): On Solaris, when _IOWRT is set, compute the result without
18283         looking at _IOREAD.
18284         * modules/ftello (Files): Add lib/stdio-impl.h.
18285         * doc/posix-functions/ftell.texi: Mention Solaris bug.
18286         * doc/posix-functions/ftello.texi: Likewise.
18287         Reported by Eric Blake.
18288
18289 2010-05-01  Bruno Haible  <bruno@clisp.org>
18290
18291         freading: Adapt to special meaning of _IOREAD flag on Solaris.
18292         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
18293         the _IOWRT flag is also set.
18294
18295 2010-05-01  Bruno Haible  <bruno@clisp.org>
18296
18297         Fix doc about a HP-UX stdio bug.
18298         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
18299         * doc/posix-functions/ftello.texi: Likewise.
18300
18301 2010-05-01  Bruno Haible  <bruno@clisp.org>
18302
18303         lseek test: Fix failure on Solaris.
18304         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
18305         output.
18306
18307 2010-04-30  Jim Meyering  <meyering@redhat.com>
18308
18309         bootstrap: don't ignore failure to generate po*/Makevars
18310         * build-aux/bootstrap (with_gettext): Don't ignore failure
18311         to create po/Makevars or runtime-po/Makevars.
18312
18313 2010-04-29  Eric Blake  <eblake@redhat.com>
18314
18315         headers: relax license to LGPLv2+
18316         * modules/fcntl-h (License): Relax license.
18317         * modules/getopt-posix (License): Likewise.
18318         * modules/locale (License): Likewise.
18319         * modules/math (License): Likewise.
18320         * modules/pty (License): Likewise.
18321         * modules/sched (License): Likewise.
18322         * modules/search (License): Likewise.
18323         * modules/spawn (License): Likewise.
18324         * modules/stdarg (License): Likewise.
18325         * modules/sysexits (License): Likewise.
18326
18327 2010-04-29  Jim Meyering  <meyering@redhat.com>
18328
18329         inttypes: relax license to LGPLv2+
18330         * modules/inttypes (License): Relax license.
18331
18332 2010-04-29  Simon Josefsson  <simon@josefsson.org>
18333
18334         * top/maint.mk (indent): Run twice to produce idempotent results.
18335
18336 2010-04-28  Bruno Haible  <bruno@clisp.org>
18337
18338         getdate: Generate getdate.c in the source directory.
18339         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
18340         MOSTLYCLEANFILES.
18341         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
18342
18343 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
18344
18345         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
18346         is not declared as a const *; avoid warnings in that case.
18347
18348 2010-04-28  Eric Blake  <eblake@redhat.com>
18349
18350         canonicalize-lgpl: avoid compiler warning
18351         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
18352         declaration' / 'extraneous semicolon' warning with some compilers.
18353         Reported by Andreas Gruenbacher.
18354
18355 2010-04-28  Jim Meyering  <meyering@redhat.com>
18356
18357         init.sh: ensure a more reliable exit status when exiting via trap
18358         * tests/init.sh (setup_): Don't rely on $? in signal handler.
18359         Inspired by patches from Dmitry V. Levin.
18360         Also trap on signal 3 (SIGQUIT).
18361
18362 2010-04-27  Bruno Haible  <bruno@clisp.org>
18363
18364         Update doc about utimes().
18365         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
18366         'utimens' module.
18367         Reported by Andreas Gruenbacher <agruen@suse.de>.
18368
18369 2010-04-27  Eric Blake  <eblake@redhat.com>
18370
18371         full-read, full-write: relax license
18372         * modules/full-read (License): Drop to LGPLv2+.
18373         * modules/full-write (License): Likewise.
18374         * modules/safe-read (License): Likewise.
18375         * modules/safe-write (License): Likewise.
18376
18377         pthread: mention library for linking
18378         * modules/pthread (Link): Mention $(LIB_PTHREAD).
18379
18380 2010-04-27  Jim Meyering  <meyering@redhat.com>
18381
18382         maint.mk: fix a bug introduced in last change
18383         * top/maint.mk (gl_assured_headers_): Now that all names are on
18384         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
18385         is not anchored to end of word, it should be adequate.
18386
18387         maint.mk: avoid side-effect in latest syntax-check
18388         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
18389         to run commands via $(shell...), and hence to incur cost only when
18390         the new rule is actually run.
18391
18392         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
18393         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
18394         and use that to create a regexp used to detect all #if HAVE_..._H uses.
18395         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
18396         (gl_assured_headers_, az_, AZ_): Define.
18397         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
18398
18399 2010-04-26  Jim Meyering  <jim@meyering.net>
18400             Bruno Haible  <bruno@clisp.org>
18401
18402         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
18403         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
18404         Prompted by an exchange with Gilles Espinasse.
18405
18406 2010-04-26  Jim Meyering  <meyering@redhat.com>
18407
18408         git-version-gen: aesthetic tweak
18409         * build-aux/git-version-gen: Use "$nl" rather than a literal,
18410         so that the command remains on a single line.
18411
18412 2010-04-26  Eric Blake  <eblake@redhat.com>
18413
18414         git-version-gen: allow use on EBCDIC hosts
18415         * build-aux/git-version-gen (dirty): Use literal rather than tying
18416         ourselves to ascii.
18417         Reported by Steve Goetze.
18418
18419 2010-04-25  Bruno Haible  <bruno@clisp.org>
18420
18421         netdb: Add support for GNULIB_POSIXCHECK.
18422         * lib/netdb.in.h: Include warn-on-use.h.
18423         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
18424         functions are used when GNULIB_POSIXCHECK is defined and the
18425         getaddrinfo module is not in use.
18426         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
18427         freeaddrinfo, gai_strerror, getnameinfo are declared.
18428         * modules/netdb (Depends-on): Add warn-on-use.
18429         (Makefile.am): Include warn-on-use.h in netdb.h.
18430
18431 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
18432
18433         build: avoid "make check" failure without .git/ directory
18434         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
18435         there is no .git/ directory.
18436
18437 2010-04-25  Bruno Haible  <bruno@clisp.org>
18438
18439         ptsname: Fix misuse of ttyname_r.
18440         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
18441         of errno.
18442
18443 2010-04-25  Bruno Haible  <bruno@clisp.org>
18444
18445         ttyname_r: Make it work on Solaris 10.
18446         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
18447         if the system function has the POSIX declaration. Test whether the
18448         function fails if the buffer is less than 128 bytes large.
18449         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
18450         system's ttyname_r function. Provide a reasonably large buffer.
18451         * modules/ttyname_r (Depends-on): Add extensions.
18452         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
18453
18454 2010-04-25  Bruno Haible  <bruno@clisp.org>
18455
18456         Use the 'extensions' module for some more functions on Solaris.
18457         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
18458         module.
18459         * doc/posix-functions/ctime_r.texi: Likewise.
18460         * doc/posix-functions/getgrgid_r.texi: Likewise.
18461         * doc/posix-functions/getgrnam_r.texi: Likewise.
18462         * doc/posix-functions/getpwnam_r.texi: Likewise.
18463         * doc/posix-functions/getpwuid_r.texi: Likewise.
18464         * doc/posix-functions/readdir_r.texi: Likewise.
18465         * doc/posix-functions/sigwait.texi: Likewise.
18466         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
18467         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
18468
18469 2010-04-25  Bruno Haible  <bruno@clisp.org>
18470
18471         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
18472         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
18473         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
18474         * lib/ttyname_r.c: Include <limits.h>.
18475         (ttyname_r): Define using the system's ttyname_r function, if it exists
18476         and not on Solaris.
18477         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
18478         set.
18479         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
18480         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
18481         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
18482         Reported by Simon Josefsson.
18483
18484 2010-04-25  Bruno Haible  <bruno@clisp.org>
18485
18486         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
18487         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
18488         * doc/posix-functions/ctime_r.texi: Likewise.
18489         * doc/posix-functions/getgrgid_r.texi: Likewise.
18490         * doc/posix-functions/getgrnam_r.texi: Likewise.
18491         * doc/posix-functions/getlogin_r.texi: Likewise.
18492         * doc/posix-functions/getpwnam_r.texi: Likewise.
18493         * doc/posix-functions/getpwuid_r.texi: Likewise.
18494         * doc/posix-functions/readdir_r.texi: Likewise.
18495         * doc/posix-functions/sigwait.texi: Likewise.
18496         * doc/posix-functions/ttyname_r.texi: Likewise.
18497         Reported by Simon Josefsson.
18498
18499 2010-04-25  Bruno Haible  <bruno@clisp.org>
18500
18501         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
18502         * gnulib-tool (func_usage): Document that --with-*-tests options apply
18503         also to --create-testdir.
18504         (func_acceptable): Don't consider the status of *-tests modules here.
18505         (func_modules_transitive_closure): Consider it here, before including a
18506         test module.
18507         (func_import, func_create_testdir): Set inc_all_direct_tests,
18508         inc_all_indirect_tests.
18509         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
18510         --create-testdir and --create-megatestdir.
18511
18512 2010-04-25  Bruno Haible  <bruno@clisp.org>
18513
18514         gnulib-tool: Add --without-*-tests options.
18515         * gnulib-tool (func_usage): Document the --without-*-tests options.
18516         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
18517         excl_unportable_tests): New variables.
18518         Fail if they are specified with --import or --update.
18519         (func_acceptable): Respect the excl_*_tests variables.
18520         (func_import): Set the excl_*_tests variables to empty.
18521
18522 2010-04-25  Simon Josefsson  <simon@josefsson.org>
18523             Bruno Haible  <bruno@clisp.org>
18524
18525         Work around a MacOS X 10.4 bug with openpty.
18526         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
18527         * tests/test-openpty.c (main): Close the master side explicitly.
18528
18529 2010-04-25  Bruno Haible  <bruno@clisp.org>
18530
18531         strnlen: Fix a C++ test error on MacOS X and Solaris.
18532         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
18533         the function is not declared.
18534         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
18535         Simon Josefsson.
18536
18537 2010-04-24  Bruno Haible  <bruno@clisp.org>
18538
18539         Avoid a gcc warning.
18540         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
18541         of correct type for %08lx directive.
18542         Reported by Eric Blake.
18543
18544 2010-04-24  Bruno Haible  <bruno@clisp.org>
18545
18546         vasnprintf: Correct errno value in case of out-of-memory.
18547         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
18548         or sprintf. Use the errno value from SNPRINTF or sprintf.
18549         Reported by Ian Beckwith <ianb@erislabs.net>.
18550
18551 2010-04-24  Bruno Haible  <bruno@clisp.org>
18552
18553         ansi-c++-opt: Find correct compiler when cross-compiling.
18554         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
18555         AC_CHECK_PROGS.
18556         Reported by Simon Josefsson.
18557
18558 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
18559
18560         vc-list-files: Add support for subversion
18561         * build-aux/vc-list-files: Use "svn list" to generate the list of
18562         files controlled by subversion.
18563
18564 2010-04-23  Jim Meyering  <meyering@redhat.com>
18565
18566         vc-list-files tests: convert to use init.sh
18567         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
18568         path_prepend_.
18569         Use Exit, not exit.
18570         Use skip_ rather than open coding it.
18571         Remove trap set-up and compare definitions.
18572         * tests/test-vc-list-files-git.sh: Likewise.
18573         * modules/vc-list-files-tests (Files): Add tests/init.sh.
18574
18575 2010-04-22  Simon Josefsson  <simon@josefsson.org>
18576
18577         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
18578         backup files.
18579
18580 2010-04-21  Simon Josefsson  <simon@josefsson.org>
18581
18582         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
18583
18584 2010-04-20  Eric Blake  <eblake@redhat.com>
18585
18586         tests: be robust to ignored SIGPIPE
18587         * tests/test-select-in.sh: Consume all output.
18588         * tests/test-lseek.sh: Check correct exit status, while avoiding
18589         EPIPE.
18590
18591 2010-04-20  Simon Josefsson  <simon@josefsson.org>
18592             Bruno Haible  <bruno@clisp.org>
18593
18594         visibility: Don't use -fvisibility if it leads to a warning.
18595         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
18596         yes, don't pretend that visibility works if it leads to a warning.
18597         Reported by Mike Gran <spk121@yahoo.com>.
18598
18599 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
18600
18601         * build-aux/bootstrap: Use "git -h" for testing for supported options
18602         instead of "git --help".  The short-form option only shows a summary,
18603         and doesn't layout the full man page.  Grep for the full option name
18604         in the summary, too.
18605
18606 2010-04-19  Bruno Haible  <bruno@clisp.org>
18607
18608         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
18609         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
18610         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
18611         mention of RELOCATABLE_STRIP.
18612         Reported by Sylvain Beucler <beuc@beuc.net>.
18613
18614 2010-04-19  Bruno Haible  <bruno@clisp.org>
18615
18616         * lib/diffseq.h: Fix typo in comment.
18617         Reported by Eric Blake.
18618
18619 2010-04-19  Bruno Haible  <bruno@clisp.org>
18620
18621         ioctl: Move autoconf macro to a .m4 file.
18622         * m4/ioctl.m4: New file, extracted from modules/ioctl.
18623         * modules/ioctl (Files): Add it.
18624         (configure.ac): Simply invoke gl_FUNC_IOCTL.
18625         Reported by Ian Beckwith <ianb@erislabs.net>.
18626
18627 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
18628             Bruno Haible  <bruno@clisp.org>
18629
18630         diffseq: Accommodate use-case with abstract arrays.
18631         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
18632         is not defined.
18633         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
18634         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
18635
18636 2010-04-18  Bruno Haible  <bruno@clisp.org>
18637
18638         * doc/posix-headers/stdbool.texi: More precise wording.
18639
18640 2010-04-17  Jim Meyering  <meyering@redhat.com>
18641
18642         maint.mk: use gnu-style indentation in an embedded perl script
18643         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
18644         Rename variable: s/two/last_two_bytes/
18645
18646 2010-04-16  Eric Blake  <eblake@redhat.com>
18647
18648         test-stdbool: skip test that fails with Solaris CC
18649         * tests/test-stdbool.c (f): Skip test that causes compilation
18650         error under buggy C++ compiler.
18651         * lib/stdbool.in.h: Document the limitation.
18652         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
18653
18654         setenv: allow compilation with C++
18655         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
18656         register keyword.
18657
18658         stdint: allow test to pass with C++
18659         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
18660
18661         getopt: allow compilation with C++
18662         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
18663         struct.
18664         * lib/getopt.c (_getopt_internal_r): Use correct type.
18665         Reported by Dagobert Michelson, via Joel E. Denny.
18666
18667 2010-04-16  Bruno Haible  <bruno@clisp.org>
18668
18669         Override netdb.h always.
18670         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
18671         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
18672         Reported by Ludovic Courtès <ludo@gnu.org>.
18673
18674 2010-04-15  Bruno Haible  <bruno@clisp.org>
18675
18676         openpty: Fix mistake from 2010-03-21.
18677         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
18678         Reported by Simon Josefsson.
18679
18680 2010-04-15  Eric Blake  <eblake@redhat.com>
18681
18682         test-forkpty: fix expected signature
18683         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
18684         Reported by Simon Josefsson.
18685
18686 2010-04-15  Jim Meyering  <meyering@redhat.com>
18687
18688         maint.mk: texinfo_suffix_re_: correct the default regexp
18689         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
18690
18691         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
18692         make it configurable via texinfo_suffix_re_.
18693
18694 2010-04-14  Eric Blake  <eblake@redhat.com>
18695
18696         strtok_r: relax license to LGPLv2+
18697         * modules/strtok_r (License): Relax license.
18698         Reported by Matthias Bolte.
18699
18700 2010-04-14  Simon Josefsson  <simon@josefsson.org>
18701
18702         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
18703         version 1.4.4 by default instead of requiring the libgcrypt
18704         version used during build.  This makes it possible to use the
18705         application with older but still binary compatible libgcrypt
18706         versions.
18707
18708 2010-04-13  Eric Blake  <eblake@redhat.com>
18709
18710         getopt-gnu: match recent glibc fixes and posix ruling
18711         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
18712         '+' handling, when requesting extensions.
18713         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
18714         'W;' handling.
18715         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
18716         * doc/posix-functions/getopt.texi (getopt): Document this.
18717         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
18718         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
18719         Likewise.
18720
18721         getopt: merge bug fixes from glibc
18722         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
18723         diagnostics.  Honor '+:' correctly.  Reject ';'.
18724
18725         getopt-posix: detect MacOS bug
18726         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
18727         optind when missing a required argument.
18728         * doc/posix-functions/getopt.texi (getopt): Document the bug.
18729         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
18730         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
18731         Likewise.
18732
18733         getopt-posix: avoid spurious failure on Solaris
18734         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
18735         an indicator that setting optind=1 is sufficient for reset.
18736
18737         getopt-posix: avoid spurious failure on FreeBSD
18738         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
18739         in POSIX mode, since the m4 test uses it.
18740
18741         gnulib-tool: silence warning on BSD sh
18742         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
18743
18744 2010-04-13  Jim Meyering  <meyering@redhat.com>
18745
18746         doc: users.txt: GNU patch now uses gnulib
18747         * users.txt: Add patch.
18748
18749 2010-04-12  Jim Meyering  <meyering@redhat.com>
18750
18751         maint.mk: generate more concise timing data for syntax-check rules
18752         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
18753         " done" from each line that reports a syntax-check test duration.
18754
18755 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
18756
18757         git-version-gen: use "git update-index..." rather than "git status"
18758         * build-aux/git-version-gen: Use git update-index --refresh, not
18759         "git status".  With some versions of git, "git status" would fail
18760         to update the index and result in an unwarranted "-dirty" suffix.
18761
18762 2010-04-11  Jim Meyering  <meyering@redhat.com>
18763
18764         openat: correct formatting (no semantic change)
18765         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
18766         Suggested by Bruno Haible.
18767
18768 2010-04-11  Bruno Haible  <bruno@clisp.org>
18769
18770         Stricter declaration checking in testdirs.
18771         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
18772         If for_tests is true, augment AM_CPPFLAGS to define
18773         GNULIB_STRICT_CHECKING.
18774         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
18775         GNULIB_STRICT_CHECKING is defined, verify that the function is
18776         declared.
18777
18778 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
18779             Bruno Haible  <bruno@clisp.org>
18780
18781         libunistring: Improve configure output.
18782         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
18783         Don't say "consider installing GNU libunistring" when checking again
18784         with libiconv.
18785
18786 2010-04-11  Bruno Haible  <bruno@clisp.org>
18787
18788         libunistring: Correct value of $LTLIBUNISTRING.
18789         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
18790         correct the value of $LTLIBUNISTRING.
18791
18792 2010-04-11  Bruno Haible  <bruno@clisp.org>
18793
18794         havelib: Add static libraries to LIBS in the right order.
18795         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
18796         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
18797
18798 2010-04-11  Bruno Haible  <bruno@clisp.org>
18799
18800         libunistring: Detect libunistring also when it depends on libiconv.
18801         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
18802         the second AC_LIB_HAVE_LINKFLAGS invocation.
18803
18804 2010-04-11  James Youngman  <jay@gnu.org>
18805
18806         close-stream: declare local scalars to be "const"
18807         * lib/close-stream.c (close_stream): Make boolean variables const
18808         to document the fact that we set but do not change them.
18809
18810 2010-04-11  Bruno Haible  <bruno@clisp.org>
18811
18812         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
18813
18814 2010-04-11  Jim Meyering  <meyering@redhat.com>
18815
18816         maint.mk: don't include dist-check.mk
18817         * top/maint.mk: Remove bogus include directive.
18818
18819         maint.mk: improve empty-line-at-EOF check
18820         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
18821         solution, rather than tail+Perl-based one.  The latter would read
18822         a few kilobytes from the end of each file, and did not handle empty
18823         files properly.
18824
18825         maint.mk: print the elapsed time for each syntax-check rule
18826         * top/maint.mk (sc_m_rules_): Save start time in a file.
18827         (sc_z_rules_): New rules: remove temp file and print elapsed time.
18828         (local-check): Interpose the .z rules
18829
18830 2010-04-11  Jim Meyering  <meyering@redhat.com>
18831
18832         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
18833         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
18834         empty file with one that ends in an empty line.
18835
18836 2010-04-10  Bruno Haible  <bruno@clisp.org>
18837
18838         mkdir: Make it work on mingw64.
18839         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
18840         * lib/mkdir.c: Update comment.
18841         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
18842
18843 2010-04-10  Bruno Haible  <bruno@clisp.org>
18844
18845         Don't override improved macro from newer autoconf.
18846         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
18847         autoconf >= 2.62.
18848         Reported by Joel E. Denny <jdenny@clemson.edu>.
18849
18850 2010-04-10  Jim Meyering  <meyering@redhat.com>
18851
18852         maint.mk: new syntax-check rule: prohibit empty lines at end of file
18853         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
18854
18855         maint.mk: correct a diagnostic
18856         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
18857         in diagnostic; now use $prohibit.
18858
18859 2010-04-10  Bruno Haible  <address@hidden>
18860
18861         fchownat: Fix a C++ test error on Solaris 8.
18862         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
18863         the function does not exist.
18864
18865 2010-04-10  Bruno Haible  <bruno@clisp.org>
18866
18867         vasnprintf: Add more tests.
18868         * tests/test-vasnprintf-posix.c: Include <errno.h>.
18869         (test_function): Test converting an invalid wide string.
18870
18871         vasnprintf: Correct handling of unconvertible wide string arguments.
18872         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
18873         VASNPRINTF.
18874         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
18875         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
18876         smaller than the expected maximum need for the directive. Set errno to
18877         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
18878         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
18879         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
18880         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
18881         * modules/vasnprintf (Files): Add m4/printf.m4.
18882         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18883
18884 2010-04-10  Bruno Haible  <bruno@clisp.org>
18885
18886         vasnprintf: Fix crash in %ls directive.
18887         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
18888         string is passed as argument to %ls, with no precision and no width.
18889         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18890
18891 2010-04-10  Bruno Haible  <bruno@clisp.org>
18892
18893         vasnprintf: Fix multiple test failures on mingw.
18894         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
18895         _snprintf, or snwprintf, not _snwprintf.
18896
18897 2010-04-10  Bruno Haible  <bruno@clisp.org>
18898
18899         write: Fix a C++ test error on mingw.
18900         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
18901
18902 2010-04-10  Bruno Haible  <bruno@clisp.org>
18903
18904         vasnprintf test: Reduce code duplication.
18905         * tests/test-vasnprintf.c (test_function): New function, extracted from
18906         test_vasnprintf.
18907         (test_vasnprintf, test_asnprintf): Invoke it.
18908
18909 2010-04-10  Bruno Haible  <bruno@clisp.org>
18910
18911         strnlen: Fix warning in C++ mode on MacOS X.
18912         * lib/string.in.h (strnlen): Use the modern idiom.
18913         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
18914         defining strnlen as a macro already in <config.h>.
18915         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
18916         REPLACE_STRNLEN.
18917         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
18918         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18919
18920 2010-04-08  James Youngman  <jay@gnu.org>
18921
18922         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
18923         the example.
18924
18925 2010-04-09  Jim Meyering  <meyering@redhat.com>
18926
18927         maint.mk: print better diagnostic when there is no $(_hv_file)
18928         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
18929         announce that when $(_hv_file) (aka help-version) does not exist.
18930
18931         init.sh: run tr in the "C" locale to avoid multibyte interpretation
18932         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
18933         not try to interpret its random input bytes.  Jarno Rajahalme reported
18934         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
18935         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
18936         (mktempd_): Likewise, just in case.
18937
18938         ftruncate: add two years to projected module removal date: 2012
18939         * m4/ftruncate.m4: Adjust comments.
18940
18941         ftruncate: mark module as obsolete; even MinGW provides it, now
18942         * modules/ftruncate (Status): Obsolete.
18943         (Notice): Say that.
18944         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
18945         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
18946
18947 2010-04-08  Bruno Haible  <bruno@clisp.org>
18948
18949         Fix side effects from tests-related modules.
18950         * modules/dprintf-posix (Comment): New section.
18951         * modules/fprintf-posix (Comment): Likewise.
18952         * modules/obstack-printf-posix (Comment): Likewise.
18953         * modules/printf-posix (Comment): Likewise.
18954         * modules/snprintf-posix (Comment): Likewise.
18955         * modules/sprintf-posix (Comment): Likewise.
18956         * modules/vasnprintf-posix (Comment): Likewise.
18957         * modules/vasprintf-posix (Comment): Likewise.
18958         * modules/vdprintf-posix (Comment): Likewise.
18959         * modules/vfprintf-posix (Comment): Likewise.
18960         * modules/vprintf-posix (Comment): Likewise.
18961         * modules/vsnprintf-posix (Comment): Likewise.
18962         * modules/vsprintf-posix (Comment): Likewise.
18963         * modules/xprintf-posix (Comment): Likewise.
18964         * modules/xvasprintf-posix (Comment): Likewise.
18965         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
18966         * modules/floorf-tests (Depends-on): Likewise.
18967         * modules/round-tests (Depends-on): Likewise.
18968         * modules/roundf-tests (Depends-on): Likewise.
18969         * modules/trunc-tests (Depends-on): Likewise.
18970         * modules/truncf-tests (Depends-on): Likewise.
18971         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
18972         'fprintf-posix' module is not present.
18973         * tests/test-floorf2.c (check): Likewise.
18974         * tests/test-trunc2.c (check): Likewise.
18975         * tests/test-truncf2.c (check): Likewise.
18976         * tests/test-round2.c (equal): Likewise.
18977         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18978
18979 2010-04-07  Karl Berry  <karl@gnu.org>
18980
18981         * config/srclist.txt,
18982         * config/srclistvars.sh,
18983         * config/srclist-update: doc fixes.
18984
18985 2010-04-07  Jim Meyering  <meyering@redhat.com>
18986
18987         maint.mk: add a PATH crosschecking syntax-check rule
18988         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
18989         Useful if you use a test like the one in help-version (coreutils,
18990         diffutils, grep, gzip) that ensures $(VERSION) matches what is
18991         printed by prog --version.
18992
18993 2010-04-06  Bruno Haible  <bruno@clisp.org>
18994
18995         Fix link error on mingw.
18996         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
18997         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
18998
18999 2010-04-06  Bruno Haible  <bruno@clisp.org>
19000
19001         Assume rmdir exists.
19002         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
19003
19004 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
19005
19006         doc: update users.txt
19007         * users.txt: Add gcal.
19008
19009 2010-04-06  Jim Meyering  <meyering@redhat.com>
19010
19011         init.sh: simply unset TMPDIR rather than risking env -i
19012         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
19013         although it probably works fine on all Unix-based systems, some
19014         systems (Cygwin?) cannot tolerate a totally cleared environment.
19015         Suggestion from Eric Blake.
19016
19017 2010-04-06  Jim Meyering  <meyering@redhat.com>
19018
19019         init.sh: portability fix: use env's POSIX-specified -i option not -u
19020         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
19021         than unportable env -u.  Solaris 5.11's env lacks support for -u.
19022
19023 2010-04-05  Bruno Haible  <bruno@clisp.org>
19024
19025         btowc: Work around Cygwin 1.7.2 bug.
19026         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
19027         does not map NUL to 0.
19028         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
19029
19030 2010-04-05  Bruno Haible  <bruno@clisp.org>
19031
19032         Make the multithread modules work on Cygwin 1.7.2.
19033         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
19034         imported symbols can be declared weak, so that it returns "no" on
19035         Cygwin 1.7.2.
19036
19037 2010-04-05  Bruno Haible  <bruno@clisp.org>
19038
19039         Use the module 'strncat'.
19040         * modules/unistr/u8-strncat (Depends-on): Add strncat.
19041
19042         Tests for module 'strncat'.
19043         * modules/strncat-tests: New file.
19044         * tests/test-strncat.c: New file.
19045
19046         New module 'strncat'.
19047         * lib/string.in.h (strncat): New declaration.
19048         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
19049         * m4/strncat.m4: New file, based on m4/memchr.m4.
19050         * modules/strncat: New file.
19051         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
19052         is declared.
19053         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
19054         REPLACE_STRNCAT.
19055         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
19056         REPLACE_STRNCAT.
19057         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
19058         module.
19059         * tests/test-string-c++.cc: Check signature of strncat.
19060
19061 2010-04-05  Jim Meyering  <meyering@redhat.com>
19062
19063         xstrtoumax-tests: convert to use init.sh
19064         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
19065         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
19066         Use Exit, not exit.
19067         Remove uses of $EXEEXT and "./" to run a program in the current dir.
19068
19069         xstrtoimax-tests: convert to use init.sh
19070         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
19071         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
19072         Use Exit, not exit.
19073         Remove uses of $EXEEXT and "./" to run a program in the current dir.
19074
19075 2010-04-05  Bruno Haible  <bruno@clisp.org>
19076
19077         sys_socket: Avoid #define replacements in C++ mode.
19078         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
19079         warning to the function if possible, rather than #defining the symbol
19080         to a dysfunctional alias.
19081
19082 2010-04-05  Bruno Haible  <bruno@clisp.org>
19083
19084         fseeko: Fix C++ test error on mingw.
19085         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
19086         gl_FUNC_FSEEKO.
19087         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
19088         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
19089         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
19090         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
19091
19092 2010-04-05  Bruno Haible  <bruno@clisp.org>
19093
19094         duplocale: Improve test output.
19095         * tests/test-duplocale.c (main): Print reason for skipped test.
19096
19097 2010-04-05  Bruno Haible  <bruno@clisp.org>
19098
19099         Assume rmdir exists.
19100         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
19101         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
19102
19103 2010-04-05  Bruno Haible  <bruno@clisp.org>
19104
19105         Fix link error on Solaris 8 with cc.
19106         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
19107
19108 2010-04-05  Bruno Haible  <bruno@clisp.org>
19109
19110         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
19111         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
19112
19113 2010-04-05  Bruno Haible  <bruno@clisp.org>
19114
19115         vasprintf: Update documentation.
19116         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
19117
19118 2010-04-05  Bruno Haible  <bruno@clisp.org>
19119
19120         ptsname: Improve test.
19121         * tests/test-ptsname.c (main): Also try the various master names of BSD
19122         systems.
19123
19124 2010-04-05  Bruno Haible  <bruno@clisp.org>
19125
19126         memchr: Avoid a possible C++ test error.
19127         * lib/string.in.h (memchr): Provide declaration if function is missing.
19128         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
19129         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
19130         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
19131         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
19132
19133 2010-04-05  Bruno Haible  <bruno@clisp.org>
19134
19135         strtok_r: Improve idiom.
19136         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
19137         AC_LIBOBJ is used.
19138
19139 2010-04-05  Bruno Haible  <bruno@clisp.org>
19140
19141         strdup: Improve idiom.
19142         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
19143         AC_LIBOBJ is used.
19144         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
19145         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
19146         when AC_LIBOBJ is used.
19147
19148 2010-04-05  Bruno Haible  <bruno@clisp.org>
19149
19150         mbsinit, mbrtowc, wcrtomb: Improve idioms.
19151         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
19152         don't set REPLACE_MBSINIT to 1.
19153         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
19154         don't set REPLACE_MBRTOWC to 1.
19155         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
19156         exist, don't set REPLACE_MBSRTOWCS to 1.
19157         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
19158         exist, don't set REPLACE_MBSNRTOWCS to 1.
19159         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
19160         don't set REPLACE_WCRTOMB to 1.
19161         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
19162         exist, don't set REPLACE_WCSRTOMBS to 1.
19163         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
19164         exist, don't set REPLACE_WCSNRTOMBS to 1.
19165
19166 2010-04-05  Bruno Haible  <bruno@clisp.org>
19167
19168         ldexpl: Improve idiom.
19169         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
19170         make sure to set HAVE_DECL_LDEXPL to 0.
19171
19172 2010-04-05  Jim Meyering  <meyering@redhat.com>
19173
19174         xstrtol-tests: convert to use init.sh
19175         * modules/xstrtol-tests (Files): Add tests/init.sh.
19176         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
19177         Use Exit, not exit.
19178         Remove uses of $EXEEXT and "./" to run a program in the current dir.
19179
19180         atexit-tests: convert to use init.sh
19181         * modules/atexit-tests (Files): Add tests/init.sh.
19182         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
19183         Use Exit, not exit.
19184         Remove uses of $EXEEXT and "./" to run a program in the current dir.
19185
19186         init.sh: fix typo
19187         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
19188
19189         init.sh: make it easier for a test script to write to the tty, ...
19190         when using automake's parallel-tests mode.
19191         * tests/init.sh (stderr_fileno_): Define overridable variable.
19192         (warn_): New function, to use it.
19193         (fail_, skip_, framework_failure_): Use warn_.
19194
19195 2010-04-04  Bruno Haible  <bruno@clisp.org>
19196
19197         btowc: Avoid warning.
19198         * lib/btowc.c: Include <stdlib.h>.
19199         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
19200
19201 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
19202             Bruno Haible  <bruno@clisp.org>
19203
19204         wchar: Port to NetBSD 1.5.
19205         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
19206         * lib/wctype.in.h (WEOF): Likewise.
19207
19208 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
19209             Bruno Haible  <bruno@clisp.org>
19210
19211         Port extended stdio to NetBSD 1.5.
19212         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
19213         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
19214         older.
19215
19216 2010-04-04  Bruno Haible  <bruno@clisp.org>
19217
19218         string: Remove unused substitution.
19219         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
19220         HAVE_DECL_STRERROR.
19221         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
19222
19223 2010-04-04  Bruno Haible  <bruno@clisp.org>
19224
19225         strtod: Avoid a possible C++ test error.
19226         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
19227         set REPLACE_STRTOD.
19228
19229 2010-04-04  Bruno Haible  <bruno@clisp.org>
19230
19231         strerror: Update documentation.
19232         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
19233
19234 2010-04-04  Bruno Haible  <bruno@clisp.org>
19235
19236         stdio: Fix some C++ test errors on Solaris 8 with GCC.
19237         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
19238         _GL_CXXALIAS_SYS_CAST.
19239
19240 2010-04-04  Bruno Haible  <bruno@clisp.org>
19241
19242         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
19243         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
19244         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
19245         REPLACE_FREXPL to 1.
19246         * doc/posix-functions/frexpl.texi: Update documentation.
19247
19248 2010-04-04  Bruno Haible  <bruno@clisp.org>
19249
19250         math: Fix some C++ test errors on Solaris 8 and Cygwin.
19251         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
19252
19253 2010-04-04  Bruno Haible  <bruno@clisp.org>
19254
19255         Implement nanosleep for native Windows.
19256         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
19257
19258 2010-04-04  Bruno Haible  <bruno@clisp.org>
19259
19260         math: Fix some C++ test errors on Solaris 8.
19261         * lib/math.in.h (truncf, trunc): Use simpler idiom.
19262
19263 2010-04-04  Bruno Haible  <bruno@clisp.org>
19264
19265         math: Fix some C++ test errors on Cygwin.
19266         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
19267         truncl): Provide declaration if the system does not have it.
19268         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
19269         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
19270         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
19271         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
19272         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
19273         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
19274         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
19275         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
19276         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
19277         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
19278         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
19279         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
19280         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
19281         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
19282         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
19283         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
19284         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
19285         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
19286         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
19287         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
19288         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
19289         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
19290
19291 2010-04-04  Bruno Haible  <bruno@clisp.org>
19292
19293         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
19294         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
19295         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
19296         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
19297         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
19298         * m4/isinf.m4 (gl_ISINF): Likewise.
19299         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
19300
19301 2010-04-04  Bruno Haible  <bruno@clisp.org>
19302
19303         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
19304         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
19305
19306 2010-04-04  Bruno Haible  <bruno@clisp.org>
19307
19308         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
19309         * modules/tmpfile (configure.ac): Update.
19310
19311         tmpfile: Fix C++ test error on mingw.
19312         * lib/stdio.in.h (tmpfile): New declaration.
19313         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
19314         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
19315         * modules/tmpfile (Depends-on): Add stdio.
19316         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
19317         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
19318         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
19319         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
19320         REPLACE_TMPFILE.
19321         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
19322
19323 2010-04-04  Bruno Haible  <bruno@clisp.org>
19324
19325         ioctl: Fix C++ test error on mingw.
19326         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
19327         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
19328         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
19329
19330 2010-04-03  Bruno Haible  <bruno@clisp.org>
19331
19332         wcwidth: Fix C++ test error on mingw.
19333         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
19334         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
19335         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
19336
19337 2010-04-03  Bruno Haible  <bruno@clisp.org>
19338
19339         nanosleep: Fix C++ test error on mingw.
19340         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
19341         * lib/time.in.h (nanosleep): Use modern idiom.
19342         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
19343         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
19344         REPLACE_NANOSLEEP to 1.
19345         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
19346         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
19347
19348 2010-04-03  Bruno Haible  <bruno@clisp.org>
19349
19350         strptime: Fix C++ test error on mingw.
19351         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
19352         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
19353         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
19354         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
19355         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
19356         not REPLACE_STRPTIME.
19357         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
19358         REPLACE_STRPTIME.
19359
19360 2010-04-03  Bruno Haible  <bruno@clisp.org>
19361
19362         timegm: Fix C++ test error on mingw.
19363         * lib/time.in.h (timegm): Use modern idiom.
19364         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
19365         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
19366         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
19367         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
19368
19369 2010-04-03  Bruno Haible  <bruno@clisp.org>
19370
19371         timegm: Assume declaration if function exists.
19372         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
19373         if it exists. Don't clobber ac_cv_func_timegm.
19374
19375 2010-04-03  Bruno Haible  <bruno@clisp.org>
19376
19377         time_r: Fix C++ test error on mingw.
19378         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
19379         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
19380         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
19381         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
19382         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
19383
19384 2010-04-03  Bruno Haible  <bruno@clisp.org>
19385
19386         time_r: Minor updates.
19387         * modules/time_r (Description): Mention the provided functions.
19388         * lib/time_r.c: Don't include <string.h>.
19389         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
19390         * doc/posix-functions/localtime_r.texi: Likewise.
19391
19392 2010-04-03  Bruno Haible  <bruno@clisp.org>
19393
19394         time: Fix regression introduced on 2010-03-08.
19395         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
19396         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
19397
19398 2010-04-03  Jim Meyering  <meyering@redhat.com>
19399
19400         maint.mk: don't silently disable project-specific syntax-check rules
19401         * top/maint.mk (_prohibit_regexp): Define, to help people realize
19402         that they need to convert their project-specific syntax-check rules
19403         to use the new _sc_search_regexp.
19404
19405 2010-04-03  Bruno Haible  <bruno@clisp.org>
19406
19407         fchdir: Fix regression introduced on 2010-03-08.
19408         * lib/unistd.in.h (fchdir): Fix declaration.
19409         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
19410         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
19411         REPLACE_FCHDIR.
19412         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
19413         REPLACE_FCHDIR.
19414
19415 2010-04-03  Bruno Haible  <bruno@clisp.org>
19416
19417         getpagesize: Fix C++ test error on mingw.
19418         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
19419         system does not declare the function.
19420         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
19421         declared.
19422         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19423         HAVE_DECL_GETPAGESIZE.
19424         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
19425
19426 2010-04-03  Bruno Haible  <bruno@clisp.org>
19427
19428         stdio: Make C++ tests work on mingw.
19429         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
19430         does not declare the function.
19431
19432 2010-04-03  Bruno Haible  <bruno@clisp.org>
19433
19434         ftello: Fix C++ test error on mingw.
19435         * lib/stdio.in.h (ftello): Use modern idiom.
19436         * lib/ftello.c (ftello): Renamed from rpl_ftello.
19437         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
19438         is missing and that it needs to be replaced.
19439         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
19440         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
19441         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
19442
19443 2010-04-03  Bruno Haible  <bruno@clisp.org>
19444
19445         fseeko: Fix C++ test error on mingw.
19446         * lib/stdio.in.h (fseeko): Use modern idiom.
19447         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
19448         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
19449         is missing and that it needs to be replaced.
19450         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
19451         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
19452         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
19453
19454 2010-04-03  Bruno Haible  <bruno@clisp.org>
19455
19456         mkstemp: Fix C++ test error on mingw.
19457         * lib/stdlib.in.h (mkstemp): Use modern idiom.
19458         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
19459         function is missing and that it needs to be replaced.
19460         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
19461         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
19462
19463 2010-04-03  Bruno Haible  <bruno@clisp.org>
19464
19465         stpncpy: Fix C++ test error on mingw.
19466         * lib/string.in.h (stpncpy): Use modern idiom.
19467         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
19468         function is missing and that it needs to be replaced.
19469         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
19470         REPLACE_STPNCPY.
19471         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
19472
19473 2010-04-03  Bruno Haible  <bruno@clisp.org>
19474
19475         sys_stat: Fix C++ test error on mingw.
19476         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
19477         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
19478
19479 2010-04-03  Bruno Haible  <bruno@clisp.org>
19480
19481         pty: Update doc.
19482         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
19483
19484 2010-04-03  Bruno Haible  <bruno@clisp.org>
19485
19486         unistd: Fix C++ test error on mingw.
19487         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
19488
19489 2010-04-03  Bruno Haible  <bruno@clisp.org>
19490
19491         Update doc regarding mingw.
19492         * doc/glibc-functions/openpty.texi: Update regarding mingw.
19493         * doc/glibc-functions/login_tty.texi: Likewise.
19494         * doc/glibc-functions/forkpty.texi: Likewise.
19495
19496 2010-04-03  Bruno Haible  <bruno@clisp.org>
19497
19498         stdlib: Avoid compilation failure of c-strtold on mingw.
19499         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
19500
19501 2010-04-03  Bruno Haible  <bruno@clisp.org>
19502
19503         locale: Make C++ tests work on Cygwin and mingw.
19504         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
19505         cannot provide the function.
19506         Reported by Simon Josefsson.
19507
19508 2010-04-03  Bruno Haible  <bruno@clisp.org>
19509
19510         localename: Port to MacOS X 10.6.
19511         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
19512         memory layout of the locales in MacOS X 10.6 as well.
19513         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
19514
19515 2010-04-02  Bruno Haible  <bruno@clisp.org>
19516
19517         gnulib-tool: Ensure that long-running tests are executed last.
19518         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
19519         running tests after the one for the other tests.
19520
19521 2010-04-02  Bruno Haible  <bruno@clisp.org>
19522
19523         gnulib-tool: Ensure the tests in the main directory are executed first.
19524         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
19525         start with the current directory.
19526
19527 2010-04-02  Bruno Haible  <bruno@clisp.org>
19528
19529         Tests for module 'havelib', moved here from GNU gettext.
19530         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
19531         modifications.
19532         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
19533         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
19534         with modifications.
19535         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
19536         modifications.
19537         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
19538         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
19539         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
19540         with modifications.
19541         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
19542         with modifications.
19543         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
19544         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
19545         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
19546         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
19547         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
19548         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
19549         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
19550         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
19551         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
19552         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
19553         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
19554         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
19555         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
19556         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
19557         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
19558         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
19559         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
19560         with modifications.
19561         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
19562         with modifications.
19563         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
19564         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
19565         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
19566         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
19567         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
19568         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
19569         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
19570         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
19571         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
19572         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
19573         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
19574         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
19575         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
19576         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
19577         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
19578         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
19579         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
19580         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
19581         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
19582         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
19583         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
19584         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
19585         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
19586         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
19587         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
19588         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
19589         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
19590         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
19591         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
19592         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
19593         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
19594         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
19595         * tests/havelib/rpathx/rpathx.c: New file, from
19596         gettext/autoconf-lib-link.
19597         * tests/havelib/rpathx/Makefile.am: New file, from
19598         gettext/autoconf-lib-link.
19599         * tests/havelib/rpathx/configure.ac: New file, from
19600         gettext/autoconf-lib-link with modifications.
19601         * tests/havelib/rpathy/rpathy.c: New file, from
19602         gettext/autoconf-lib-link.
19603         * tests/havelib/rpathy/Makefile.am: New file, from
19604         gettext/autoconf-lib-link.
19605         * tests/havelib/rpathy/configure.ac: New file, from
19606         gettext/autoconf-lib-link with modifications.
19607         * tests/havelib/rpathz/rpathz.c: New file, from
19608         gettext/autoconf-lib-link.
19609         * tests/havelib/rpathz/Makefile.am: New file, from
19610         gettext/autoconf-lib-link.
19611         * tests/havelib/rpathz/configure.ac: New file, from
19612         gettext/autoconf-lib-link with modifications.
19613         * tests/havelib/rpathlx/usex.c: New file, from
19614         gettext/autoconf-lib-link.
19615         * tests/havelib/rpathlx/Makefile.am: New file, from
19616         gettext/autoconf-lib-link.
19617         * tests/havelib/rpathlx/configure.ac: New file, from
19618         gettext/autoconf-lib-link with modifications.
19619         * tests/havelib/rpathly/usey.c: New file, from
19620         gettext/autoconf-lib-link.
19621         * tests/havelib/rpathly/Makefile.am: New file, from
19622         gettext/autoconf-lib-link.
19623         * tests/havelib/rpathly/configure.ac: New file, from
19624         gettext/autoconf-lib-link with modifications.
19625         * tests/havelib/rpathlz/usez.c: New file, from
19626         gettext/autoconf-lib-link.
19627         * tests/havelib/rpathlz/Makefile.am: New file, from
19628         gettext/autoconf-lib-link.
19629         * tests/havelib/rpathlz/configure.ac: New file, from
19630         gettext/autoconf-lib-link with modifications.
19631         * tests/havelib/rpathlyx/usey.c: New file, from
19632         gettext/autoconf-lib-link.
19633         * tests/havelib/rpathlyx/Makefile.am: New file, from
19634         gettext/autoconf-lib-link.
19635         * tests/havelib/rpathlyx/configure.ac: New file, from
19636         gettext/autoconf-lib-link with modifications.
19637         * tests/havelib/rpathlzyx/usez.c: New file, from
19638         gettext/autoconf-lib-link.
19639         * tests/havelib/rpathlzyx/Makefile.am: New file, from
19640         gettext/autoconf-lib-link.
19641         * tests/havelib/rpathlzyx/configure.ac: New file, from
19642         gettext/autoconf-lib-link with modifications.
19643         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
19644         with modifications.
19645
19646 2010-04-02  Bruno Haible  <bruno@clisp.org>
19647
19648         gnulib-tool: Create distributed built sources also for the tests.
19649         * gnulib-tool (func_create_testdir): Also generate distributed built
19650         sources in the tests directory.
19651
19652 2010-04-02  Bruno Haible  <bruno@clisp.org>
19653
19654         gnulib-tool: Obey user's environment variables.
19655         * gnulib-tool (func_create_testdir): When creating built sources,
19656         respect the environment variables for autoconf, automake, etc. given by
19657         the user.
19658
19659 2010-04-02  Bruno Haible  <bruno@clisp.org>
19660
19661         gnulib-tool: Provide the value of --m4-base to modules.
19662         * gnulib-tool (func_import, func_create_testdir): Emit a definition
19663         of gl_m4_base.
19664
19665 2010-04-02  Eric Blake  <eblake@redhat.com>
19666
19667         maint.mk: fix some fallout
19668         * NEWS: Document the incompatible change, and its effect on cfg.mk.
19669         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
19670
19671 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
19672
19673         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
19674         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
19675         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
19676         (sc_cast_of_x_alloc_return_value): Likewise.
19677         (sc_cast_of_alloca_return_value): Likewise.
19678         (sc_space_tab): Likewise.
19679         (sc_prohibit_atoi_atof): Likewise.
19680         (sc_prohibit_magic_number_exit): Likewise.
19681         (sc_error_exit_success): Likewise.
19682         (sc_file_system): Likewise.
19683         (sc_prohibit_have_config_h): Likewise.
19684         (sc_require_config_h): Likewise.
19685         (sc_prohibit_HAVE_MBRTOWC): Likewise.
19686         (sc_obsolete_symbols): Likewise.
19687         (sc_changelog): Likewise.
19688         (sc_program_name): Likewise.
19689         (sc_the_the): Likewise.
19690         (sc_trailing_blank): Likewise.
19691         (sc_two_space_separator_in_usage): Likewise.
19692         (sc_useless_cpp_parens): Likewise.
19693         (sc_GPL_version): Likewise.
19694         (sc_GFDL_version): Likewise.
19695         (sc_texinfo_acronym): Likewise.
19696         (sc_prohibit_cvs_keyword): Likewise.
19697         (sc_prohibit_stat_st_blocks): Likewise.
19698         (sc_prohibit_S_IS_definition): Likewise.
19699         (sc_redundant_const): Likewise.
19700         (sc_makefile_TAB_only_indentation): Likewise.
19701         (sc_m4_quote_check): Likewise.
19702         (sc_makefile_path_separator_check): Likewise.
19703         (sc_copyright_check): Likewise.
19704         (sc_Wundef_boolean): Likewise.
19705         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
19706
19707         maint.mk: match 0 or more whitespace-before-function-call '('
19708         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
19709         that have zero or two-and-more spaces between the function name
19710         and the open parenthesis.
19711         (sc_error_message_warn_fatal): Likewise.
19712         (sc_error_message_uppercase): Likewise.
19713         (sc_error_message_period): Likewise.
19714
19715 2010-03-31  Eric Blake  <eblake@redhat.com>
19716
19717         maint.mk: check for [ as well as test
19718         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
19719         Based on a libvirt report by Matthias Bolte.
19720
19721         gnumakefile: don't squelch _version output
19722         * top/GNUmakefile (_version): Create one-shot dependency rather
19723         than using $(shell) when version must be regenerated.
19724         (_autoreconf): Run verbosely, by default.
19725
19726         sys_time: avoid compiler warnings
19727         * lib/sys_time.in.h (includes): Ensure gcc pragma is
19728         unconditional, fixing regression from 2010-03-29.
19729         Reported by Simon Josefsson.
19730
19731 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
19732
19733         maint.mk: s/_header_without_use/_sc_header_without_use/
19734         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
19735         (sc_prohibit_assert_without_use): Use the new name.
19736         (sc_prohibit_close_stream_without_use): Likewise.
19737         (sc_prohibit_getopt_without_use): Likewise.
19738         (sc_prohibit_quotearg_without_use): Likewise.
19739         (sc_prohibit_quote_without_use): Likewise.
19740         (sc_prohibit_long_options_without_use): Likewise.
19741         (sc_prohibit_inttostr_without_use): Likewise.
19742         (sc_prohibit_ignore_value_without_use): Likewise.
19743         (sc_prohibit_error_without_use): Likewise.
19744         (sc_prohibit_xalloc_without_use): Likewise.
19745         (sc_prohibit_hash_without_use): Likewise.
19746         (sc_prohibit_hash_pjw_without_use): Likewise.
19747         (sc_prohibit_safe_read_without_use): Likewise.
19748         (sc_prohibit_argmatch_without_use): Likewise.
19749         (sc_prohibit_canonicalize_without_use): Likewise.
19750         (sc_prohibit_root_dev_ino_without_use): Likewise.
19751         (sc_prohibit_openat_without_use): Likewise.
19752         (sc_prohibit_c_ctype_without_use): Likewise.
19753         (sc_prohibit_signal_without_use): Likewise.
19754         (sc_prohibit_intprops_without_use): Likewise.
19755
19756 2010-03-30  Eric Blake  <eblake@redhat.com>
19757
19758         maint: improve module indicators
19759         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
19760         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
19761         columns, and avoid extra macro expansion.
19762
19763         fdopendir: work around FreeBSD bug
19764         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
19765         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
19766         * modules/dirent (Makefile.am): Substitute it.
19767         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
19768         declaration.
19769         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
19770         fix.
19771         Reported by Christian Weisgerber <naddy@mips.inka.de>.
19772
19773 2010-03-29  Bruno Haible  <bruno@clisp.org>
19774
19775         Emit #pragma system_header after the inclusion guard, not before.
19776         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
19777         guard that spans the entire file, not before. This enables an
19778         optimization in GCC's preprocessor.
19779         * lib/ctype.in.h: Likewise.
19780         * lib/dirent.in.h: Likewise.
19781         * lib/errno.in.h: Likewise.
19782         * lib/float.in.h: Likewise.
19783         * lib/getopt.in.h: Likewise.
19784         * lib/iconv.in.h: Likewise.
19785         * lib/langinfo.in.h: Likewise.
19786         * lib/locale.in.h: Likewise.
19787         * lib/math.in.h: Likewise.
19788         * lib/netdb.in.h: Likewise.
19789         * lib/netinet_in.in.h: Likewise.
19790         * lib/pty.in.h: Likewise.
19791         * lib/sched.in.h: Likewise.
19792         * lib/se-selinux.in.h: Likewise.
19793         * lib/search.in.h: Likewise.
19794         * lib/spawn.in.h: Likewise.
19795         * lib/stdarg.in.h: Likewise.
19796         * lib/stdint.in.h: Likewise.
19797         * lib/string.in.h: Likewise.
19798         * lib/strings.in.h: Likewise.
19799         * lib/sys_file.in.h: Likewise.
19800         * lib/sys_ioctl.in.h: Likewise.
19801         * lib/sys_time.in.h: Likewise.
19802         * lib/sys_times.in.h: Likewise.
19803         * lib/sys_utsname.in.h: Likewise.
19804         * lib/sys_wait.in.h: Likewise.
19805         * lib/sysexits.in.h: Likewise.
19806         * lib/wctype.in.h: Likewise.
19807
19808 2010-03-28  James Youngman  <jay@gnu.org>
19809
19810         save-cwd: don't leak a file descriptor when the caller execs.
19811         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
19812         saved file descriptor.
19813         * modules/save-cwd (Depends-on): Depend on cloexec.
19814
19815 2010-03-29  Bruno Haible  <bruno@clisp.org>
19816
19817         Remove vestiges of fts-lgpl module.
19818         * lib/fts_.h: Assume GNULIB_FTS is 1.
19819         * lib/fts.c: Likewise.
19820         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
19821
19822 2010-03-28  Bruno Haible  <bruno@clisp.org>
19823
19824         Fix definition of tests witness macro.
19825         * gnulib-tool (func_import): Fix definition of witness macro.
19826
19827 2010-03-28  Bruno Haible  <bruno@clisp.org>
19828
19829         Fix ioctl's protoype on glibc systems.
19830         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
19831         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
19832         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
19833         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
19834         signature. If not, arrange to replace the ioctl function.
19835         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
19836         REPLACE_IOCTL.
19837         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
19838         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
19839         Reported by Ludovic Courtès <ludo@gnu.org>.
19840
19841 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
19842
19843         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
19844         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
19845         made it so grep -r --include=GLOB* ... did not work.
19846
19847 2010-03-26  Jim Meyering  <meyering@redhat.com>
19848             Eric Blake  <eblake@redhat.com>
19849
19850         maint.mk: prohibit use of test's -o and -a operators
19851         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
19852
19853 2010-03-28  Bruno Haible  <bruno@clisp.org>
19854
19855         Remove unused GNULIB_XYZ macro definitions.
19856         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
19857         invocation.
19858
19859 2010-03-28  Bruno Haible  <bruno@clisp.org>
19860
19861         Mark privileged tests modules.
19862         * modules/idpriv-drop-tests (Status): New section.
19863         * modules/idpriv-droptemp-tests (Status): New section.
19864
19865 2010-03-28  Bruno Haible  <bruno@clisp.org>
19866
19867         Split C++ tests into separate tests modules.
19868         * modules/dirent-c++-tests: New file, extracted from
19869         modules/dirent-tests.
19870         * modules/dirent-tests: Depend on it.
19871         * modules/fcntl-h-c++-tests: New file, extracted from
19872         modules/fcntl-h-tests.
19873         * modules/fcntl-h-tests: Depend on it.
19874         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
19875         * modules/glob-tests: Depend on it.
19876         * modules/iconv-h-c++-tests: New file, extracted from
19877         modules/iconv-h-tests.
19878         * modules/iconv-h-tests: Depend on it.
19879         * modules/langinfo-c++-tests: New file, extracted from
19880         modules/langinfo-tests.
19881         * modules/langinfo-tests: Depend on it.
19882         * modules/locale-c++-tests: New file, extracted from
19883         modules/locale-tests.
19884         * modules/locale-tests: Depend on it.
19885         * modules/math-c++-tests: New file, extracted from modules/math-tests.
19886         * modules/math-tests: Depend on it.
19887         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
19888         * modules/pty-tests: Depend on it.
19889         * modules/search-c++-tests: New file, extracted from
19890         modules/search-tests.
19891         * modules/search-tests: Depend on it.
19892         * modules/signal-c++-tests: New file, extracted from
19893         modules/signal-tests.
19894         * modules/signal-tests: Depend on it.
19895         * modules/spawn-c++-tests: New file, extracted from
19896         modules/spawn-tests.
19897         * modules/spawn-tests: Depend on it.
19898         * modules/stdio-c++-tests: New file, extracted from
19899         modules/stdio-tests.
19900         * modules/stdio-tests: Depend on it.
19901         * modules/stdlib-c++-tests: New file, extracted from
19902         modules/stdlib-tests.
19903         * modules/stdlib-tests: Depend on it.
19904         * modules/string-c++-tests: New file, extracted from
19905         modules/string-tests.
19906         * modules/string-tests: Depend on it.
19907         * modules/sys_ioctl-c++-tests: New file, extracted from
19908         modules/sys_ioctl-tests.
19909         * modules/sys_ioctl-tests: Depend on it.
19910         * modules/sys_select-c++-tests: New file, extracted from
19911         modules/sys_select-tests.
19912         * modules/sys_select-tests: Depend on it.
19913         * modules/sys_socket-c++-tests: New file, extracted from
19914         modules/sys_socket-tests.
19915         * modules/sys_socket-tests: Depend on it.
19916         * modules/sys_stat-c++-tests: New file, extracted from
19917         modules/sys_stat-tests.
19918         * modules/sys_stat-tests: Depend on it.
19919         * modules/sys_time-c++-tests: New file, extracted from
19920         modules/sys_time-tests.
19921         * modules/sys_time-tests: Depend on it.
19922         * modules/time-c++-tests: New file, extracted from modules/time-tests.
19923         * modules/time-tests: Depend on it.
19924         * modules/unistd-c++-tests: New file, extracted from
19925         modules/unistd-tests.
19926         * modules/unistd-tests: Depend on it.
19927         * modules/wchar-c++-tests: New file, extracted from
19928         modules/wchar-tests.
19929         * modules/wchar-tests: Depend on it.
19930         * modules/wctype-c++-tests: New file, extracted from
19931         modules/wctype-tests.
19932         * modules/wctype-tests: Depend on it.
19933         Reported by Simon Josefsson.
19934
19935 2010-03-28  Bruno Haible  <bruno@clisp.org>
19936
19937         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
19938         * gnulib-tool (func_exists_module): New function, extracted from
19939         func_verify_module.
19940         (func_verify_module): Use it.
19941         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
19942         'foo' only if 'foo' exists.
19943         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
19944         module.
19945
19946 2010-03-28  Bruno Haible  <bruno@clisp.org>
19947
19948         gnulib-tool: Add support for special categories of tests.
19949         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
19950         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
19951         (func_usage): Document them.
19952         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
19953         inc_unportable_tests, inc_all_tests): New variables.
19954         (func_acceptable): Consider these variables.
19955         (func_modules_transitive_closure): Make it work when the 'Status' field
19956         consists of multiple words.
19957         (func_import): Store and restore the values of inc_cxx_tests,
19958         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
19959         inc_all_tests in gnulib-comp.m4.
19960         (func_create_testdir): Set inc_all_tests to true.
19961         * doc/gnulib.texi (Extra tests modules): New section.
19962         Suggested by Jim Meyering.
19963
19964 2010-03-28  Bruno Haible  <bruno@clisp.org>
19965
19966         ansi-c++-opt: Allow turning off the C++ build by default.
19967         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
19968         gl_CXX_CHOICE_DEFAULT_NO is defined.
19969         Requested by Eric Blake.
19970
19971 2010-03-28  Bruno Haible  <bruno@clisp.org>
19972
19973         unistd: Avoid #define replacements in C++ mode.
19974         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
19975         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
19976         setsockopt, shutdown, select): In C++, attach a warning to the function
19977         if possible, rather than #defining the symbol to a dysfunctional alias.
19978         Reported by John W. Eaton <jwe@gnu.org>.
19979
19980 2010-03-28  Bruno Haible  <bruno@clisp.org>
19981
19982         Fix link errors on mingw.
19983         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
19984         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
19985         $(LIBSOCKET).
19986         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
19987         $(LIBSOCKET).
19988
19989 2010-03-28  Bruno Haible  <bruno@clisp.org>
19990             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19991
19992         lib-ignore: Determine different options for different compilers.
19993         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
19994         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
19995         Add comments.
19996         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
19997         * NEWS: Mention the change.
19998
19999 2010-03-27  Bruno Haible  <bruno@clisp.org>
20000
20001         Remove unused GNULIB_XYZ macro definitions.
20002         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
20003         * modules/fseek (configure.ac): Likewise.
20004         * modules/ioctl (configure.ac): Likewise.
20005         * modules/open (configure.ac): Likewise.
20006         * modules/stdlib-safer (configure.ac): Likewise.
20007
20008 2010-03-27  Bruno Haible  <bruno@clisp.org>
20009
20010         Add a remark about certain modules.
20011         * modules/malloc (Comment): New section.
20012         * modules/realloc (Comment): Likewise.
20013         * modules/sigpipe (Comment): Likewise.
20014
20015 2010-03-27  Bruno Haible  <bruno@clisp.org>
20016
20017         Resolve conflict between the two kinds of module indicators.
20018         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
20019         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
20020         * modules/canonicalize (configure.ac): Invoke
20021         gl_MODULE_INDICATOR_FOR_TESTS.
20022         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
20023         GNULIB_XYZ.
20024         * tests/test-dirent-c++.cc: Likewise.
20025         * tests/test-dirent-safer.c: Likewise.
20026         * tests/test-dup2.c: Likewise.
20027         * tests/test-fchdir.c: Likewise.
20028         * tests/test-fcntl-h-c++.cc: Likewise.
20029         * tests/test-getopt.c: Likewise.
20030         * tests/test-getopt.h: Likewise.
20031         * tests/test-langinfo-c++.cc: Likewise.
20032         * tests/test-locale-c++.cc: Likewise.
20033         * tests/test-math-c++.cc: Likewise.
20034         * tests/test-pty-c++.cc: Likewise.
20035         * tests/test-search-c++.cc: Likewise.
20036         * tests/test-signal-c++.cc: Likewise.
20037         * tests/test-spawn-c++.cc: Likewise.
20038         * tests/test-stdio-c++.cc: Likewise.
20039         * tests/test-stdlib-c++.cc: Likewise.
20040         * tests/test-string-c++.cc: Likewise.
20041         * tests/test-sys_ioctl-c++.cc: Likewise.
20042         * tests/test-sys_select-c++.cc: Likewise.
20043         * tests/test-sys_socket-c++.cc: Likewise.
20044         * tests/test-sys_stat-c++.cc: Likewise.
20045         * tests/test-sys_time-c++.cc: Likewise.
20046         * tests/test-time-c++.cc: Likewise.
20047         * tests/test-unistd-c++.cc: Likewise.
20048         * tests/test-wchar-c++.cc: Likewise.
20049         * tests/uninorm/test-u8-nfc.c: Likewise.
20050         * tests/uninorm/test-u8-nfd.c: Likewise.
20051         * tests/uninorm/test-u8-nfkc.c: Likewise.
20052         * tests/uninorm/test-u8-nfkd.c: Likewise.
20053         * tests/uninorm/test-u16-nfc.c: Likewise.
20054         * tests/uninorm/test-u16-nfd.c: Likewise.
20055         * tests/uninorm/test-u16-nfkc.c: Likewise.
20056         * tests/uninorm/test-u16-nfkd.c: Likewise.
20057         * tests/uninorm/test-u32-nfc.c: Likewise.
20058         * tests/uninorm/test-u32-nfc-big.c: Likewise.
20059         * tests/uninorm/test-u32-nfd.c: Likewise.
20060         * tests/uninorm/test-u32-nfd-big.c: Likewise.
20061         * tests/uninorm/test-u32-nfkc.c: Likewise.
20062         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
20063         * tests/uninorm/test-u32-nfkd.c: Likewise.
20064         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
20065         * tests/uninorm/test-u32-normalize-big.c: Likewise.
20066
20067 2010-03-27  Bruno Haible  <bruno@clisp.org>
20068
20069         Distinguish two kinds of module indicators.
20070         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
20071         gl_MODULE_INDICATOR.
20072         (gl_MODULE_INDICATOR): New macro.
20073         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
20074         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
20075         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
20076         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
20077         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
20078         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
20079         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
20080         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
20081         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
20082         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
20083         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
20084         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
20085         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
20086         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
20087         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
20088         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
20089         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
20090         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
20091         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
20092         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
20093         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
20094         * modules/cloexec (configure.ac): Likewise.
20095         * modules/getopt-gnu (configure.ac): Likewise.
20096         * modules/uninorm/u8-normalize (configure.ac): Likewise.
20097         * modules/uninorm/u16-normalize (configure.ac): Likewise.
20098         * modules/uninorm/u32-normalize (configure.ac): Likewise.
20099         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
20100
20101 2010-03-27  Bruno Haible  <bruno@clisp.org>
20102
20103         New module description field 'Comment'.
20104         * gnulib-tool: New option --extract-comment.
20105         (func_usage): Document it.
20106         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
20107         (func_get_comment): New function.
20108         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
20109
20110 2010-03-27  Bruno Haible  <bruno@clisp.org>
20111
20112         Addendum to 2010-02-07 commit.
20113         * gnulib-tool (func_usage): Document --extract-applicability option.
20114
20115 2010-03-27  Bruno Haible  <bruno@clisp.org>
20116
20117         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
20118         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
20119         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
20120         rather than link errors.
20121
20122 2010-03-27  Bruno Haible  <bruno@clisp.org>
20123
20124         Avoid side effects from tests-related modules on the compilation of lib.
20125         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
20126         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
20127         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
20128         parameter. Emit into AM_CPPFLAGS a definition of the designated C
20129         macro.
20130         (func_import): Define a witness macro. Assign it a value that depends
20131         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
20132         tests-related modules.
20133         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
20134         Reported by Jim Meyering.
20135
20136 2010-03-27  Bruno Haible  <bruno@clisp.org>
20137
20138         Factorize common .m4 code.
20139         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
20140         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
20141         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
20142         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
20143         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
20144         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
20145         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
20146         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
20147         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
20148         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
20149         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
20150         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
20151         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
20152         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
20153         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
20154         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
20155         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
20156         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
20157         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
20158         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
20159         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
20160         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
20161         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
20162         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
20163         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
20164         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
20165         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
20166         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
20167         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
20168         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
20169         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
20170         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
20171
20172 2010-03-27  Bruno Haible  <bruno@clisp.org>
20173
20174         Fix a compilation error on Cygwin with g++ >= 4.3.
20175         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
20176         if it is undefined or if we alias it to chmod.
20177         (lstat): Don't warn about the use of this function if it is undefined
20178         or if we alias it to stat.
20179         Reported by Simon Josefsson.
20180
20181 2010-03-27  Bruno Haible  <bruno@clisp.org>
20182
20183         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
20184         * modules/getlogin (configure.ac): Update.
20185
20186         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
20187         * modules/getlogin_r (configure.ac): Update.
20188
20189         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
20190         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
20191         * modules/inet_ntop (configure.ac): Update.
20192
20193         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
20194         * modules/inet_pton (configure.ac): Update.
20195
20196         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
20197         * modules/mbslen (configure.ac): Update.
20198
20199         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
20200         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
20201         * modules/forkpty (configure.ac): Update.
20202         * modules/openpty (configure.ac): Update.
20203
20204 2010-03-26  Simon Josefsson  <simon@josefsson.org>
20205
20206         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
20207         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
20208
20209 2010-03-25  Eric Blake  <eblake@redhat.com>
20210
20211         maint: use pragma consistently across replacement headers
20212         * lib/ctype.in.h (system_header): Hoist for consistent placement.
20213         * lib/dirent.in.h (system_header): Likewise.
20214         * lib/errno.in.h (system_header): Likewise.
20215         * lib/float.in.h (system_header): Likewise.
20216         * lib/getopt.in.h (system_header): Likewise.
20217         * lib/iconv.in.h (system_header): Likewise.
20218         * lib/inttypes.in.h (system_header): Likewise.
20219         * lib/langinfo.in.h (system_header): Likewise.
20220         * lib/locale.in.h (system_header): Likewise.
20221         * lib/math.in.h (system_header): Likewise.
20222         * lib/netdb.in.h (system_header): Likewise.
20223         * lib/netinet_in.in.h (system_header): Likewise.
20224         * lib/pty.in.h (system_header): Likewise.
20225         * lib/sched.in.h (system_header): Likewise.
20226         * lib/se-selinux.in.h (system_header): Likewise.
20227         * lib/search.in.h (system_header): Likewise.
20228         * lib/spawn.in.h (system_header): Likewise.
20229         * lib/stdarg.in.h (system_header): Likewise.
20230         * lib/stdint.in.h (system_header): Likewise.
20231         * lib/string.in.h (system_header): Likewise.
20232         * lib/strings.in.h (system_header): Likewise.
20233         * lib/sys_file.in.h (system_header): Likewise.
20234         * lib/sys_ioctl.in.h (system_header): Likewise.
20235         * lib/sys_socket.in.h (system_header): Likewise.
20236         * lib/sys_times.in.h (system_header): Likewise.
20237         * lib/sys_utsname.in.h (system_header): Likewise.
20238         * lib/sys_wait.in.h (system_header): Likewise.
20239         * lib/sysexits.in.h (system_header): Likewise.
20240         * lib/unistd.in.h (system_header): Likewise.
20241         * lib/wctype.in.h (system_header): Likewise.
20242
20243         arpa/inet: fix mingw compilation warning
20244         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
20245         Reported by Matthew Bolte.
20246
20247 2010-03-25  Bruno Haible  <bruno@clisp.org>
20248
20249         Avoid collision between gnulib wrapper and libintl wrapper.
20250         * lib/printf.c (printf): Don't define if a printf wrapper is already
20251         defined in intl/printf.c.
20252         Reported by Michel Boaventura <michel@michelboaventura.com>.
20253
20254 2010-03-25  Bruno Haible  <bruno@clisp.org>
20255
20256         Use ANSI C.
20257         * lib/readutmp.h (getutent): Provide ANSI C prototype.
20258
20259 2010-03-25  Bruno Haible  <bruno@clisp.org>
20260
20261         Minor formatting changes.
20262         * lib/acosl.c: Insert space before function argument list.
20263         * lib/argz.c: Likewise.
20264         * lib/asinl.c: Likewise.
20265         * lib/expl.c: Likewise.
20266         * lib/gen-uni-tables.c: Likewise.
20267         * lib/gettext.h: Likewise.
20268         * lib/glthread/lock.h: Likewise.
20269         * lib/tanl.c: Likewise.
20270         * lib/uniname/uniname.c: Likewise.
20271         * tests/test-idpriv-drop.c: Likewise.
20272         * tests/test-idpriv-droptemp.c: Likewise.
20273         * tests/test-lock.c: Likewise.
20274         * tests/test-tls.c: Likewise.
20275         * lib/argp-help.c: Insert space before function-like macro argument
20276         list.
20277         * lib/memcmp.c: Likewise.
20278         * tests/test-base64.c: Likewise.
20279         * lib/localename.c: Insert space before sizeof's argument list.
20280         * lib/safe-alloc.h: Likewise.
20281         * lib/file-set.h: Insert space before macro argument list.
20282         * tests/test-argp.c: Likewise.
20283         * lib/argp-namefrob.h: Insert space before function parameter list.
20284         * lib/getaddrinfo.c: Likewise.
20285         * lib/netdb.in.h: Likewise.
20286         * lib/parse-duration.h: Likewise.
20287         * lib/parse-duration.c: Likewise.
20288         * lib/poll.c: Likewise.
20289         * lib/select.c: Likewise.
20290         * lib/trim.h: Likewise.
20291         * tests/test-usleep.c: Likewise.
20292         * lib/ldexpl.c: Insert space before function parameter list and before
20293         function argument list.
20294         * lib/logl.c: Likewise.
20295         * lib/sqrtl.c: Likewise.
20296         * lib/trim.c: Likewise.
20297         * lib/cosl.c: Use GNU style indentation. Insert space before function
20298         argument list.
20299         * lib/sinl.c: Likewise.
20300         * lib/tsearch.c: Insert space after 'for'.
20301         Reported by Jim Meyering.
20302
20303 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
20304
20305         * maint.mk (sc_Wundef_boolean): Check for the presence of the
20306         config header before grepping, as it's not present before
20307         autoreconf/configure are run.  Reported by Simon Josefsson.
20308
20309 2010-03-23  Bruno Haible  <bruno@clisp.org>
20310
20311         pt_chown: Make it work with automake < 1.11.
20312         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
20313         Reported by Simon Josefsson.
20314
20315 2010-03-23  Bruno Haible  <bruno@clisp.org>
20316
20317         pt_chown: Don't depend on GPLed modules.
20318         * lib/pt_chown.c: Don't include idpriv.h.
20319         (main): Don't drop privileges.
20320         * modules/pt_chown (Depends-on): Remove idpriv-drop.
20321         Reported by Simon Josefsson.
20322
20323 2010-03-24  Simon Josefsson  <simon@josefsson.org>
20324
20325         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
20326         suggestions from karl@freefriends.org (Karl Berry).
20327
20328 2010-03-22  Eric Blake  <eblake@redhat.com>
20329
20330         gethostname: further tweaks
20331         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
20332         are overriding gethostname.
20333         Suggested by Bruno Haible.
20334
20335 2010-03-21  Bruno Haible  <bruno@clisp.org>
20336
20337         Fix comments.
20338         * lib/forkpty.c (rpl_forkpty): Fix comment.
20339         * lib/openpty.c (rpl_openpty): Likewise.
20340         Reported by Eric Blake.
20341
20342 2010-03-22  Eric Blake  <eblake@redhat.com>
20343
20344         gethostname: fix build on mingw
20345         * lib/unistd.in.h (includes): Work around fact that mingw
20346         <winsock2.h> re-includes <unistd.h>, by avoiding any
20347         redeclarations if we are being included by <winsock2.h>.
20348         Reported by Matthias Bolte.
20349
20350 2010-03-21  Bruno Haible  <bruno@clisp.org>
20351
20352         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
20353         * lib/forkpty.c (forkpty): New replacement function, from glibc with
20354         modifications.
20355         * lib/pty.in.h (forkpty): Update declaration. Add comments.
20356         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
20357         provide the replacement.
20358         * modules/forkpty (Depends-on): Add openpty, login_tty.
20359         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
20360         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
20361         * doc/glibc-functions/forkpty.texi: More supported platforms.
20362         * config/srclist.txt: Add forkpty.c (commented).
20363
20364 2010-03-21  Bruno Haible  <bruno@clisp.org>
20365
20366         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
20367         (Makefile.am): Verify that PTY_LIB is defined.
20368
20369         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
20370
20371 2010-03-21  Bruno Haible  <bruno@clisp.org>
20372
20373         Tests for module 'login_tty'.
20374         * modules/login_tty-tests: New file.
20375         * tests/test-login_tty.c: New file.
20376
20377         New module 'login_tty'.
20378         * lib/login_tty.c: New file.
20379         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
20380         * modules/login_tty: New file.
20381         * doc/glibc-functions/login_tty.texi: Mention the new module.
20382
20383 2010-03-21  Bruno Haible  <bruno@clisp.org>
20384
20385         login_tty: Documentation.
20386         * doc/glibc-functions/login_tty.texi: New file.
20387         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
20388
20389 2010-03-21  Bruno Haible  <bruno@clisp.org>
20390
20391         pty: Consistent macro naming.
20392         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
20393         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
20394         * modules/pty (configure.ac): Update.
20395
20396 2010-03-21  Bruno Haible  <bruno@clisp.org>
20397
20398         Tests for openpty: Make stricter.
20399         * tests/test-openpty.c (main): Add test of canonical processing and
20400         erase.
20401         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
20402
20403         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
20404         * lib/openpty.c (openpty): New replacement function.
20405         * lib/pty.in.h: Include <termios.h>.
20406         (openpty): Update declaration. Add comments.
20407         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
20408         is not declared, arrange to provide the replacement. Check for _getpty
20409         and posix_openpt.
20410         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
20411         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
20412         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
20413         * modules/pty-tests (test_pty_c___LDADD): New variable.
20414         * doc/glibc-functions/openpty.texi: More supported platforms.
20415
20416 2010-03-21  Bruno Haible  <bruno@clisp.org>
20417
20418         setenv: Tweaks.
20419         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
20420         the test program.
20421         * doc/posix-functions/setenv.texi: Update platforms list.
20422
20423 2010-03-21  Bruno Haible  <bruno@clisp.org>
20424
20425         New module 'unlockpt'.
20426         * lib/unlockpt.c: New file, from glibc with modifications.
20427         * m4/unlockpt.m4: New file.
20428         * modules/unlockpt: New file.
20429         * lib/stdlib.in.h (unlockpt): New declaration.
20430         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
20431         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
20432         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
20433         HAVE_UNLOCKPT.
20434         * doc/posix-functions/unlockpt.texi: Mention the new module.
20435         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
20436         * config/srclist.txt: Add unlockpt.c (commented).
20437
20438 2010-03-21  Jim Meyering  <meyering@redhat.com>
20439
20440         maint.mk: prohibit inclusion of "intprops.h" without use
20441         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
20442
20443 2010-03-21  Bruno Haible  <bruno@clisp.org>
20444
20445         New module 'grantpt'.
20446         * lib/grantpt.c: New file, from glibc with modifications.
20447         * m4/grantpt.m4: New file.
20448         * modules/grantpt: New file.
20449         * lib/stdlib.in.h (grantpt): New declaration.
20450         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
20451         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
20452         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
20453         HAVE_GRANTPT.
20454         * doc/posix-functions/grantpt.texi: Mention the new module.
20455         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
20456         * config/srclist.txt: Add grantpt.c (commented).
20457
20458 2010-03-21  Bruno Haible  <bruno@clisp.org>
20459
20460         New module 'pt_chown'.
20461         * lib/pt_chown.c: New file, from glibc with modifications.
20462         * lib/pty-private.h: New file, from glibc with modifications.
20463         * modules/pt_chown: New file.
20464         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
20465
20466 2010-03-21  Bruno Haible  <bruno@clisp.org>
20467
20468         Tests for module 'ptsname'.
20469         * modules/ptsname-tests: New file.
20470         * tests/test-ptsname.c: New file.
20471
20472         New module 'ptsname'.
20473         * lib/ptsname.c: New file, from glibc with modifications.
20474         * m4/ptsname.m4: New file.
20475         * modules/ptsname: New file.
20476         * lib/stdlib.in.h (ptsname): New declaration.
20477         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
20478         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
20479         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
20480         HAVE_PTSNAME.
20481         * doc/posix-functions/ptsname.texi: Mention the new module.
20482         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
20483         * config/srclist.txt: Add ptsname.c (commented).
20484
20485 2010-03-21  Bruno Haible  <bruno@clisp.org>
20486
20487         Tests for module 'ttyname_r'.
20488         * modules/ttyname_r-tests: New file.
20489         * tests/test-ttyname_r.c: New file.
20490
20491         New module 'ttyname_r'.
20492         * lib/ttyname_r.c: New file.
20493         * m4/ttyname_r.m4: New file.
20494         * modules/ttyname_r: New file.
20495         * lib/unistd.in.h (ttyname_r): New declaration.
20496         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
20497         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
20498         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
20499         HAVE_TTYNAME_R.
20500         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
20501         * doc/posix-functions/ttyname_r.texi: Mention the new module.
20502
20503 2010-03-20  Bruno Haible  <bruno@clisp.org>
20504
20505         signal: Undefine macro definitions in C++ mode.
20506         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
20507         sigfillset): Undefine macro definitions from the system header in C++
20508         mode.
20509         Reported by John W. Eaton <jwe@gnu.org>.
20510
20511 2010-03-20  Bruno Haible  <bruno@clisp.org>
20512
20513         Ensure no #include statements inside extern "C" { ... }.
20514         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
20515         contain #include statements.
20516         * lib/time.in.h: Likewise.
20517
20518 2010-03-20  Bruno Haible  <bruno@clisp.org>
20519
20520         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
20521         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
20522         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
20523         Reported by John W. Eaton <jwe@gnu.org>.
20524
20525 2010-03-20  Bruno Haible  <bruno@clisp.org>
20526
20527         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
20528         Reported by Jim Meyering.
20529
20530 2010-03-20  Bruno Haible  <bruno@clisp.org>
20531
20532         pipe: Set errno upon failure.
20533         * lib/pipe.h: Specify that when -1 is returned, errno is set.
20534         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
20535         errno value in error message.
20536
20537 2010-03-20  Bruno Haible  <bruno@clisp.org>
20538             Jim Meyering  <meyering@redhat.com>
20539
20540         lchown: Avoid "unused variable" warning.
20541         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
20542
20543 2010-03-20  Bruno Haible  <bruno@clisp.org>
20544
20545         Work around unlink() bug on MacOS X 10.5.6.
20546         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
20547         attempting to unlink a parent directory.
20548         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
20549         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
20550         activate for the replacement function.
20551         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
20552
20553 2010-03-20  Bruno Haible  <bruno@clisp.org>
20554
20555         Fix link errors on Solaris 8.
20556         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
20557         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
20558
20559 2010-03-19  Jim Meyering  <meyering@redhat.com>
20560
20561         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
20562         The _LIBC implementation of build_range_exp correctly honors the
20563         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
20564         However, the non-_LIBC implementation would ignore that syntax-bit
20565         flag and return REG_ERANGE unconditionally.
20566         This change makes it honor that flag.
20567         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
20568         Make two pointer parameters "const".
20569         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
20570         (parse_bracket_exp): Update caller.
20571
20572         regex.m4: correct the reversed range endpoint ([b-a]) test
20573         * m4/regex.m4: When requiring that [b-a] evoke failure,
20574         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
20575         test pass once again for x86-based systems.
20576
20577 2010-03-19  Bruno Haible  <bruno@clisp.org>
20578
20579         scandir: Fix link error on Solaris 8.
20580         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
20581         macros.
20582
20583 2010-03-19  Bruno Haible  <bruno@clisp.org>
20584
20585         getusershell: Fix documentation.
20586         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
20587         module.
20588         * doc/glibc-functions/setusershell.texi: Likewise.
20589
20590         getusershell: Provide declaration, missing on Solaris 9.
20591         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
20592         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
20593         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
20594         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
20595         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20596         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
20597         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
20598         HAVE_GETUSERSHELL.
20599         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
20600
20601 2010-03-19  Bruno Haible  <bruno@clisp.org>
20602
20603         wctype: Provide iswblank function.
20604         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
20605         exists and is fine.
20606         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
20607         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
20608         * tests/test-wctype.c (main): Re-enable the iswblank tests.
20609         * doc/posix-functions/iswblank.texi: Update.
20610
20611 2010-03-19  Bruno Haible  <bruno@clisp.org>
20612
20613         Tests of module 'pty' in C++ mode.
20614         * modules/pty-tests: New file.
20615         * tests/test-pty-c++.cc: New file.
20616         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
20617
20618 2010-03-19  Eric Blake  <eblake@redhat.com>
20619
20620         logb: fix documentation
20621         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
20622         1.5 declaration bug.
20623
20624         forkpty, openpty: prefer glibc's const-safe prototype
20625         * lib/forkpty.c (rpl_forkpty): New file.
20626         * lib/openpty.c (rpl_openpty): Likewise.
20627         * modules/forkpty (Files): Distribute it.
20628         * modules/openpty (Files): Likewise.
20629         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
20630         check...
20631         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
20632         replacement for for non-const BSD signature.
20633         * modules/pty (Makefile.am): Substitute witnesses.
20634         * lib/pty.in.h (forkpty, openpty): Declare replacements.
20635         * tests/test-forkpty.c: Update signature check.
20636         * tests/test-openpty.c: Likewise.
20637         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
20638         * doc/glibc-functions/openpty.texi (openpty): Likewise.
20639
20640         forkpty, openpty: split functions into new modules
20641         * modules/pty (Makefile.am): Substitute new witnesses.
20642         (Libraries): Move library detection...
20643         * modules/forkpty: ...into new module.
20644         * modules/openpty: Another new module.
20645         * modules/pty-tests: Rename and split...
20646         * modules/forkpty-tests: ...to this...
20647         * modules/openpty-tests: ...and this.
20648         * tests/test-pty.c: Rename and split...
20649         * tests/test-forkpty.c: ...to this...
20650         * tests/test-openpty.c: ...and this.
20651         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
20652         (gl_PTY): Split library searching...
20653         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
20654         (gl_FORKPTY, gl_OPENPTY): New macros.
20655         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
20656         * NEWS: Mention the split.
20657         * MODULES.html.sh (Misc): Document the modules.
20658         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
20659         * doc/glibc-functions/openpty.texi (openpty): Likewise.
20660
20661         pty: improve replacement header
20662         * lib/pty.in.h: New file.
20663         * modules/pty (Files): Ship it.
20664         (Makefile.am): Always build replacement.
20665         * m4/pty.m4: Rename...
20666         * m4/pty_h.m4: ...to this.
20667         (gl_PTY): Modernize setting of witness macros; update check of
20668         forkpty to take proper advantage of cache.
20669         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
20670
20671         getopt: avoid compiler warning
20672         * lib/getopt.c (attribute_hidden): Remove unused macro.
20673
20674 2010-03-18  Bruno Haible  <bruno@clisp.org>
20675
20676         Fix link errors on Solaris 8.
20677         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
20678         * modules/search-tests (test_search_c___LDADD): Likewise.
20679         * modules/signal-tests (test_signal_c___LDADD): Likewise.
20680         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
20681         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
20682         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
20683         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
20684         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
20685         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
20686
20687 2010-03-18  Bruno Haible  <bruno@clisp.org>
20688
20689         Fix bug introduced on 2010-03-14.
20690         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
20691         (gl_SPAWN_H): Require it.
20692         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
20693         Reported by Simon Josefsson.
20694
20695 2010-03-18  Bruno Haible  <bruno@clisp.org>
20696
20697         Fix typo introduced on 2009-12-31.
20698         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
20699         posix_spawn_file_actions_adddup2.
20700
20701 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
20702         and Eric Blake  <eblake@redhat.com>
20703
20704         test-vc-list-files-git: make more robust
20705         * tests/test-vc-list-files-git.sh: Unset problematic environment
20706         variables.  Chain commands together.
20707
20708 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
20709
20710         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
20711         `AC_CHECK_DECL' invocation.
20712
20713 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
20714
20715         * lib/inttostr.c (inttostr): Make sure the invocation of verify
20716         appears before executable statements. Suggested by Petr Sumbera
20717         <Petr.Sumbera@Sun.COM>.
20718
20719 2010-03-14  Bruno Haible  <bruno@clisp.org>
20720
20721         * tests/test-flock.c (test_exclusive): Comment out a test that causes
20722         portability problems. Instead use a simpler test.
20723         (main): Check that invalid arguments are rejected only on Linux.
20724
20725 2010-03-14  Bruno Haible  <bruno@clisp.org>
20726
20727         Fix bug introduced on 2009-12-31.
20728         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
20729         gl_PREREQ_SYS_H_WINSOCK2 always.
20730         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
20731         SYS_SOCKET_H variable.
20732         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
20733         Update comments.
20734         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
20735         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
20736         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20737         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
20738         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
20739
20740 2010-03-14  Bruno Haible  <bruno@clisp.org>
20741
20742         Fix values returned by sinl, cosl.
20743         * lib/trigl.h: Add specification comments.
20744         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
20745         that combines the values from the precomputed table with the values of
20746         the Chebyshev polynomials.
20747
20748 2010-03-14  Bruno Haible  <bruno@clisp.org>
20749
20750         Fix compilation error when modules 'posix_spawn[p]' are not used.
20751         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
20752         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
20753
20754 2010-03-14  Bruno Haible  <bruno@clisp.org>
20755
20756         Fix compilation error on mingw when module 'time_r' is not used.
20757         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
20758         is 1.
20759         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
20760         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
20761         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
20762         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
20763
20764 2010-03-14  Bruno Haible  <bruno@clisp.org>
20765
20766         Fix compilation error with Sun C.
20767         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
20768         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
20769         instead of GCC specific ULONG_LONG_MAX.
20770         * lib/xstrtoll.c: Likewise.
20771         * lib/xstrtoull.c: Likewise.
20772
20773 2010-03-13  Bruno Haible  <bruno@clisp.org>
20774
20775         Allow the user to disable C++ code and tests.
20776         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
20777         (gl_PROG_ANSI_CXX): Require it.
20778
20779 2010-03-13  Bruno Haible  <bruno@clisp.org>
20780
20781         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
20782         cases.
20783
20784 2010-03-13  Bruno Haible  <bruno@clisp.org>
20785
20786         Test that gnulib does not break the standard C++ headers.
20787         * tests/test-locale-c++2.cc: New file.
20788         * modules/locale-tests (Files): Add it.
20789         (Makefile.am): Compile it for test-locale-c++.
20790         * tests/test-math-c++2.cc: New file.
20791         * modules/math-tests (Files): Add it.
20792         (Makefile.am): Compile it for test-math-c++.
20793         * tests/test-signal-c++2.cc: New file.
20794         * modules/signal-tests (Files): Add it.
20795         (Makefile.am): Compile it for test-signal-c++.
20796         * tests/test-stdio-c++2.cc: New file.
20797         * modules/stdio-tests (Files): Add it.
20798         (Makefile.am): Compile it for test-stdio-c++.
20799         * tests/test-stdlib-c++2.cc: New file.
20800         * modules/stdlib-tests (Files): Add it.
20801         (Makefile.am): Compile it for test-stdlib-c++.
20802         * tests/test-string-c++2.cc: New file.
20803         * modules/string-tests (Files): Add it.
20804         (Makefile.am): Compile it for test-string-c++.
20805         * tests/test-time-c++2.cc: New file.
20806         * modules/time-tests (Files): Add it.
20807         (Makefile.am): Compile it for test-time-c++.
20808         Reported by John W. Eaton <jwe@gnu.org>.
20809
20810 2010-03-13  Bruno Haible  <bruno@clisp.org>
20811
20812         * gnulib-tool (func_usage): Clarify which options are available for
20813         --create-testdir and --create-megatestdir.
20814
20815 2010-03-13  Bruno Haible  <bruno@clisp.org>
20816
20817         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
20818         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
20819         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
20820         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
20821         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
20822         when appropriate.
20823         Reported by Jim Meyering.
20824
20825 2010-03-12  Simon Josefsson  <simon@josefsson.org>
20826
20827         * gnulib-tool (func_import): Explain origin of code.
20828
20829 2010-03-12  Bruno Haible  <bruno@clisp.org>
20830
20831         Fix problem with automake's definition of CXXLINK.
20832         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
20833         Reported by Simon Josefsson and Ludovic Courtès.
20834
20835 2010-03-12  Bruno Haible  <bruno@clisp.org>
20836
20837         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
20838         stable releases.
20839
20840 2010-03-11  Bruno Haible  <bruno@clisp.org>
20841
20842         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
20843         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
20844         whether the system provides one variant or multiple variants of the
20845         function.
20846         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
20847         C++ compilers.
20848         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
20849         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
20850         Reported by Jim Meyering.
20851
20852 2010-03-09  Simon Josefsson  <simon@josefsson.org>
20853
20854         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
20855
20856 2010-03-08  Bruno Haible  <bruno@clisp.org>
20857
20858         gnulib-tool: Add support for --libtool in --create-testdir.
20859         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
20860         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
20861
20862 2010-03-08  Eric Blake  <eblake@redhat.com>
20863
20864         gnulib-tool.texi: mention possibility of git submodule
20865         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
20866         submodules.
20867         * doc/.gitignore: Ignore another generated file.
20868
20869 2010-03-08  Karl Berry  <karl@gnu.org>
20870
20871         * doc/gnulib-tool.texi (VCS Issues): Mention third option
20872         of committing gnulib files while skipping others.
20873
20874 2010-03-07  Bruno Haible  <bruno@clisp.org>
20875
20876         Tests of module 'wctype' in C++ mode.
20877         * tests/test-wctype-c++.cc: New file.
20878         * modules/wctype-tests (Files): Add it and tests/signature.h.
20879         (Depends-on): Add ansi-c++-opt.
20880         (Makefile.am): Arrange to compile and run test-wctype-c++.
20881
20882         Tests of module 'wchar' in C++ mode.
20883         * tests/test-wchar-c++.cc: New file.
20884         * modules/wchar-tests (Files): Add it and tests/signature.h.
20885         (Depends-on): Add ansi-c++-opt.
20886         (Makefile.am): Arrange to compile and run test-wchar-c++.
20887         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
20888         gl_MODULE_INDICATOR.
20889
20890         Tests of module 'unistd' in C++ mode.
20891         * tests/test-unistd-c++.cc: New file.
20892         * modules/unistd-tests (Files): Add it and tests/signature.h.
20893         (Depends-on): Add ansi-c++-opt.
20894         (Makefile.am): Arrange to compile and run test-unistd-c++.
20895         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
20896         gl_MODULE_INDICATOR.
20897
20898         Tests of module 'time' in C++ mode.
20899         * tests/test-time-c++.cc: New file.
20900         * modules/time-tests (Files): Add it and tests/signature.h.
20901         (Depends-on): Add ansi-c++-opt.
20902         (Makefile.am): Arrange to compile and run test-time-c++.
20903         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
20904
20905         Tests of module 'sys_time' in C++ mode.
20906         * tests/test-sys_time-c++.cc: New file.
20907         * modules/sys_time-tests (Files): Add it and tests/signature.h.
20908         (Depends-on): Add ansi-c++-opt.
20909         (Makefile.am): Arrange to compile and run test-sys_time-c++.
20910         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
20911         gl_MODULE_INDICATOR.
20912
20913         Tests of module 'sys_stat' in C++ mode.
20914         * tests/test-sys_stat-c++.cc: New file.
20915         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
20916         (Depends-on): Add ansi-c++-opt.
20917         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
20918         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
20919         gl_MODULE_INDICATOR.
20920
20921         Tests of module 'sys_socket' in C++ mode.
20922         * tests/test-sys_socket-c++.cc: New file.
20923         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
20924         (Depends-on): Add ansi-c++-opt.
20925         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
20926         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
20927         gl_MODULE_INDICATOR.
20928
20929         Tests of module 'sys_select' in C++ mode.
20930         * tests/test-sys_select-c++.cc: New file.
20931         * modules/sys_select-tests (Files): Add it and tests/signature.h.
20932         (Depends-on): Add ansi-c++-opt.
20933         (Makefile.am): Arrange to compile and run test-sys_select-c++.
20934         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
20935         gl_MODULE_INDICATOR.
20936
20937         Tests of module 'sys_ioctl' in C++ mode.
20938         * tests/test-sys_ioctl-c++.cc: New file.
20939         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
20940         (Depends-on): Add ansi-c++-opt.
20941         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
20942         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
20943         gl_MODULE_INDICATOR.
20944
20945         Tests of module 'string' in C++ mode.
20946         * tests/test-string-c++.cc: New file.
20947         * modules/string-tests (Files): Add it and tests/signature.h.
20948         (Depends-on): Add ansi-c++-opt.
20949         (Makefile.am): Arrange to compile and run test-string-c++.
20950         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
20951         gl_MODULE_INDICATOR.
20952
20953         Tests of module 'stdlib' in C++ mode.
20954         * tests/test-stdlib-c++.cc: New file.
20955         * modules/stdlib-tests (Files): Add it and tests/signature.h.
20956         (Depends-on): Add ansi-c++-opt.
20957         (Makefile.am): Arrange to compile and run test-stdlib-c++.
20958         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
20959         gl_MODULE_INDICATOR.
20960
20961         Tests of module 'stdio' in C++ mode.
20962         * tests/test-stdio-c++.cc: New file.
20963         * modules/stdio-tests (Files): Add it and tests/signature.h.
20964         (Depends-on): Add ansi-c++-opt.
20965         (Makefile.am): Arrange to compile and run test-stdio-c++.
20966         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
20967         gl_MODULE_INDICATOR.
20968
20969         Tests of module 'spawn' in C++ mode.
20970         * tests/test-spawn-c++.cc: New file.
20971         * modules/spawn-tests (Files): Add it and tests/signature.h.
20972         (Depends-on): Add ansi-c++-opt.
20973         (Makefile.am): Arrange to compile and run test-spawn-c++.
20974         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
20975         gl_MODULE_INDICATOR.
20976
20977         Tests of module 'signal' in C++ mode.
20978         * tests/test-signal-c++.cc: New file.
20979         * modules/signal-tests (Files): Add it and tests/signature.h.
20980         (Depends-on): Add ansi-c++-opt.
20981         (Makefile.am): Arrange to compile and run test-signal-c++.
20982         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
20983         gl_MODULE_INDICATOR.
20984
20985         Tests of module 'search' in C++ mode.
20986         * tests/test-search-c++.cc: New file.
20987         * modules/search-tests (Files): Add it and tests/signature.h.
20988         (Depends-on): Add ansi-c++-opt.
20989         (Makefile.am): Arrange to compile and run test-search-c++.
20990         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
20991         gl_MODULE_INDICATOR.
20992
20993         Tests of module 'math' in C++ mode.
20994         * tests/test-math-c++.cc: New file.
20995         * modules/math-tests (Files): Add it and tests/signature.h.
20996         (Depends-on): Add ansi-c++-opt.
20997         (Makefile.am): Arrange to compile and run test-math-c++.
20998         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
20999
21000         Tests of module 'locale' in C++ mode.
21001         * tests/test-locale-c++.cc: New file.
21002         * modules/locale-tests (Files): Add it and tests/signature.h.
21003         (Depends-on): Add ansi-c++-opt.
21004         (Makefile.am): Arrange to compile and run test-locale-c++.
21005         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
21006         gl_MODULE_INDICATOR.
21007
21008         Tests of module 'langinfo' in C++ mode.
21009         * tests/test-langinfo-c++.cc: New file.
21010         * modules/langinfo-tests (Files): Add it and tests/signature.h.
21011         (Depends-on): Add ansi-c++-opt.
21012         (Makefile.am): Arrange to compile and run test-langinfo-c++.
21013         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
21014         gl_MODULE_INDICATOR.
21015
21016         Tests of module 'iconv-h' in C++ mode.
21017         * tests/test-iconv-h-c++.cc: New file.
21018         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
21019         (Depends-on): Add ansi-c++-opt.
21020         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
21021
21022         Tests of module 'glob' in C++ mode.
21023         * tests/test-glob-c++.cc: New file.
21024         * modules/glob-tests (Files): Add it.
21025         (Depends-on): Add ansi-c++-opt.
21026         (Makefile.am): Arrange to compile and run test-glob-c++.
21027
21028         Tests of module 'fcntl-h' in C++ mode.
21029         * tests/test-fcntl-h-c++.cc: New file.
21030         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
21031         (Depends-on): Add ansi-c++-opt.
21032         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
21033         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
21034         gl_MODULE_INDICATOR.
21035
21036         Tests of module 'dirent' in C++ mode.
21037         * tests/test-dirent-c++.cc: New file.
21038         * modules/dirent-tests (Files): Add it and tests/signature.h.
21039         (Depends-on): Add ansi-c++-opt.
21040         (Makefile.am): Arrange to compile and run test-dirent-c++.
21041         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
21042         gl_MODULE_INDICATOR.
21043
21044         New module 'ansi-c++-opt'.
21045         * modules/ansi-c++-opt: New file.
21046         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
21047
21048         Document C++ namespace mode.
21049         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
21050
21051         wctype: Avoid #define replacements in C++ mode.
21052         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
21053         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
21054         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
21055         In C++, define a namespaced alias symbol.
21056         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
21057         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
21058         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
21059         rule.
21060
21061         wchar: Avoid #define replacements in C++ mode.
21062         * lib/wchar.in.h: Include c++defs.h.
21063         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
21064         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
21065         symbol.
21066         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
21067         * modules/wchar (Depends-on): Add c++defs.
21068         (Makefile.am): Update wchar.h rule.
21069
21070         unistd: Avoid #define replacements in C++ mode.
21071         * lib/unistd.in.h: Include c++defs.h.
21072         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
21073         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
21074         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
21075         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
21076         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
21077         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
21078         symbol.
21079         (environ): Update.
21080         * modules/unistd (Depends-on): Add c++defs.
21081         (Makefile.am): Update unistd.h rule.
21082
21083         time: Avoid #define replacements in C++ mode.
21084         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
21085         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
21086         define a namespaced alias symbol.
21087         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
21088         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
21089         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
21090         * modules/time (Depends-on): Add c++defs, warn-on-use.
21091         (Makefile.am): Update time.h rule.
21092         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
21093         * modules/nanosleep (configure.ac): Likewise.
21094         * modules/strptime (configure.ac): Likewise.
21095         * modules/timegm (configure.ac): Likewise.
21096
21097         sys_time: Avoid #define replacements in C++ mode.
21098         * lib/sys_time.in.h: Include c++defs.h.
21099         (gettimeofday): In C++, define a namespaced alias symbol.
21100         * modules/sys_time (Depends-on): Add c++defs.
21101         (Makefile.am): Update sys/time.h rule.
21102
21103         sys_stat: Avoid #define replacements in C++ mode.
21104         * lib/sys_stat.in.h: Include c++defs.h.
21105         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
21106         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
21107         namespaced alias symbol.
21108         In C++, define a namespaced alias symbol.
21109         * modules/sys_stat (Depends-on): Add c++defs.
21110         (Makefile.am): Update sys/stat.h rule.
21111
21112         sys_socket: Avoid #define replacements in C++ mode.
21113         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
21114         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
21115         definitions also when the system has a <sys/socket.h>.
21116         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
21117         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
21118         In C++, define a namespaced alias symbol.
21119         * modules/sys_socket (Depends-on): Add c++defs.
21120         (Makefile.am): Update sys/socket.h rule.
21121
21122         sys_select: Avoid #define replacements in C++ mode.
21123         * lib/sys_select.in.h: Include c++defs.h. Enable the function
21124         definitions also when the system has a <sys/select.h>.
21125         (select): In C++, define a namespaced alias symbol.
21126         * modules/sys_select (Depends-on): Add c++defs.
21127         (Makefile.am): Update sys/select.h rule.
21128
21129         sys_ioctl: Avoid #define replacements in C++ mode.
21130         * lib/sys_ioctl.in.h: Include c++defs.h.
21131         (ioctl): In C++, define a namespaced alias symbol.
21132         * modules/sys_ioctl (Depends-on): Add c++defs.
21133         (Makefile.am): Update sys/ioctl.h rule.
21134
21135         string: Avoid #define replacements in C++ mode.
21136         * lib/string.in.h: Include c++defs.h.
21137         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
21138         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
21139         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
21140         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
21141         strsignal, strverscmp): In C++, define a namespaced alias symbol.
21142         * modules/string (Depends-on): Add c++defs.
21143         (Makefile.am): Update string.h rule.
21144
21145         stdlib: Avoid #define replacements in C++ mode.
21146         * lib/stdlib.in.h: Include c++defs.h.
21147         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
21148         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
21149         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
21150         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
21151         symbol.
21152         * modules/stdlib (Depends-on): Add c++defs.
21153         (Makefile.am): Update stdlib.h rule.
21154
21155         stdio: Avoid #define replacements in C++ mode.
21156         * lib/stdio.in.h: Include c++defs.h.
21157         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
21158         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
21159         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
21160         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
21161         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
21162         namespaced alias symbol.
21163         * modules/stdio (Depends-on): Add c++defs.
21164         (Makefile.am): Update stdio.h rule.
21165
21166         spawn: Avoid #define replacements in C++ mode.
21167         * lib/spawn.in.h: Include c++defs.h.
21168         (posix_spawn, posix_spawnp, posix_spawnattr_init,
21169         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
21170         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
21171         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
21172         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
21173         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
21174         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
21175         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
21176         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
21177         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
21178         In C++, define a namespaced alias symbol.
21179         * modules/spawn (Depends-on): Add c++defs.
21180         (Makefile.am): Update spawn.h rule.
21181
21182         signal: Avoid #define replacements in C++ mode.
21183         * lib/signal.in.h: Include c++defs.h.
21184         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
21185         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
21186         namespaced alias symbol.
21187         * modules/signal (Depends-on): Add c++defs.
21188         (Makefile.am): Update signal.h rule.
21189
21190         search: Avoid #define replacements in C++ mode.
21191         * lib/search.in.h: Include c++defs.h.
21192         (_gl_search_compar_fn, _gl_search_action_fn): New types.
21193         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
21194         symbol.
21195         * modules/search (Depends-on): Add c++defs.
21196         (Makefile.am): Update search.h rule.
21197
21198         math: Avoid #define replacements in C++ mode.
21199         * lib/math.in.h: Include c++defs.h.
21200         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
21201         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
21202         trunc, truncl): In C++, define a namespaced alias symbol.
21203         * modules/math (Depends-on): Add c++defs.
21204         (Makefile.am): Update math.h rule.
21205
21206         locale: Avoid #define replacements in C++ mode.
21207         * lib/locale.in.h: Include c++defs.h.
21208         (duplocale): In C++, define a namespaced alias symbol.
21209         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
21210         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
21211         * modules/locale (Depends-on): Add c++defs.
21212         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
21213
21214         langinfo: Avoid #define replacements in C++ mode.
21215         * lib/langinfo.in.h: Include c++defs.h.
21216         (nl_langinfo): In C++, define a namespaced alias symbol.
21217         * modules/langinfo (Depends-on): Add c++defs.
21218         (Makefile.am): Update langinfo.h rule.
21219
21220         iconv-h: Avoid #define replacements in C++ mode.
21221         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
21222         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
21223         symbol.
21224         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
21225         whenever iconv is present.
21226         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
21227         (Makefile.am): Update iconv.h rule.
21228
21229         glob: Avoid #define replacements in C++ mode.
21230         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
21231         (_gl_glob_errfunc_fn): New type.
21232         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
21233         symbol.
21234         * modules/glob (Depends-on): Add c++defs, warn-on-use.
21235         (Makefile.am): Update glob.h rule.
21236
21237         fcntl-h: Avoid #define replacements in C++ mode.
21238         * lib/fcntl.in.h: Include c++defs.h.
21239         (fcntl, open, openat): In C++, define a namespaced alias symbol.
21240         * modules/fcntl-h (Depends-on): Add c++defs.
21241         (Makefile.am): Update fcntl.h rule.
21242
21243         dirent: Avoid #define replacements in C++ mode.
21244         * lib/dirent.in.h: Include c++defs.h.
21245         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
21246         namespaced alias symbol.
21247         (dirfd): Update declaration.
21248         * modules/dirent (Depends-on): Add c++defs.
21249         (Makefile.am): Update dirent.h rule.
21250
21251         ctype: Make it usable in C++ code.
21252         * lib/ctype.in.h: Include c++defs.h.
21253         (isblank): Declare as extern "C".
21254         * modules/ctype (Depends-on): Add c++defs.
21255         (Makefile.am): Update ctype.h rule.
21256
21257         New module 'c++defs'.
21258         * modules/c++defs: New file.
21259         * build-aux/c++defs.h: New file.
21260         Reported by John W. Eaton <jwe@gnu.org>.
21261
21262 2010-03-07  Bruno Haible  <bruno@clisp.org>
21263
21264         logb: Provide missing declaration for Cygwin.
21265         * lib/math.in.h (logb): New declaration.
21266         * m4/logb.m4: New file.
21267         * modules/logb (Files): Add m4/logb.m4.
21268         (Depends-on): Add math.
21269         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
21270         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
21271         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
21272         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
21273         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
21274
21275 2010-03-07  Bruno Haible  <bruno@clisp.org>
21276
21277         Fix test-cond link error.
21278         * tests/test-cond.c: Include <stdio.h>.
21279
21280 2010-03-07  Bruno Haible  <bruno@clisp.org>
21281
21282         Fix test-dirent-safer link error.
21283         * modules/dirent-safer-tests (Makefile.am): Define
21284         test_dirent_safer_LDADD.
21285
21286 2010-03-07  Bruno Haible  <bruno@clisp.org>
21287
21288         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
21289         among default module list.
21290
21291 2010-03-07  Bruno Haible  <bruno@clisp.org>
21292
21293         Fix link error on platforms with GNU libiconv.
21294         * modules/unistr/u8-strcoll-tests (Makefile): Define
21295         test_u8_strcoll_LDADD.
21296         * modules/unistr/u16-strcoll-tests (Makefile): Define
21297         test_u16_strcoll_LDADD.
21298         * modules/unistr/u32-strcoll-tests (Makefile): Define
21299         test_u32_strcoll_LDADD.
21300
21301 2010-03-07  Bruno Haible  <bruno@clisp.org>
21302
21303         Use POSIX declarations for socket functions.
21304         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
21305         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
21306         rpl_sendto): Change declaration to match POSIX.
21307         * lib/connect.c (rpl_connect): Likewise.
21308         * lib/accept.c (rpl_accept): Likewise.
21309         * lib/bind.c (rpl_bind): Likewise.
21310         * lib/getpeername.c (rpl_getpeername): Likewise.
21311         * lib/getsockname.c (rpl_getsockname): Likewise.
21312         * lib/recv.c (rpl_recv): Likewise.
21313         * lib/send.c (rpl_send): Likewise.
21314         * lib/recvfrom.c (rpl_recvfrom): Likewise.
21315         * lib/sendto.c (rpl_sendto): Likewise.
21316
21317 2010-03-06  Bruno Haible  <bruno@clisp.org>
21318
21319         Clarify access, euidaccess, faccessat.
21320         * doc/posix-functions/faccessat.texi: Mention security problem under
21321         "Other problems", not "Portability problems".
21322         * doc/posix-functions/access.texi: Likewise. Mention a related security
21323         problem.
21324         * doc/glibc-functions/euidaccess.texi: Mention security problems.
21325         * lib/euidaccess.c: Add comments about platforms.
21326         * lib/unistd.in.h (access, euidaccess): Add warnings.
21327
21328 2010-03-07  Bruno Haible  <bruno@clisp.org>
21329
21330         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
21331         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
21332         (POSIX_SPAWN_SETSCHEDULER): Likewise.
21333         (POSIX_SPAWN_USEVFORK): Define in a way that works when
21334         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
21335         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
21336         declare when POSIX_SPAWN_SETSCHEDULER is zero.
21337         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
21338         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
21339         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
21340         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
21341         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
21342         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
21343         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
21344         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
21345         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
21346         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
21347         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
21348         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
21349         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
21350         Likewise.
21351         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
21352         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
21353         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
21354         Likewise.
21355         * tests/test-spawn.c (main): Make it work when
21356         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
21357
21358 2010-03-07  Bruno Haible  <bruno@clisp.org>
21359
21360         Fix incorrect Makefile.am generation in German locale.
21361         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
21362         Execute sed command with character range in C locale.
21363
21364 2010-03-06  Bruno Haible  <bruno@clisp.org>
21365
21366         Tests for module 'iconv-h'.
21367         * modules/iconv-h-tests: New file.
21368         * tests/test-iconv-h.c: New file.
21369
21370         New module 'iconv-h'.
21371         * modules/iconv-h: New file.
21372         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
21373         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
21374         (configure.ac): Remove gl_ICONV_H.
21375         (Makefile.am): Remove rule for iconv.h.
21376
21377 2010-03-06  Bruno Haible  <bruno@clisp.org>
21378
21379         More consistent naming of *.m4 files.
21380         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
21381         * modules/wctype (Files): Update.
21382
21383         More consistent naming of *.m4 files.
21384         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
21385         * modules/wchar (Files): Update.
21386
21387 2010-03-06  Jim Meyering  <meyering@redhat.com>
21388
21389         euidaccess: relax license to LGPLv2+
21390         * modules/euidaccess (License): Relax to LGPLv2+.
21391
21392 2010-03-06  Bruno Haible  <bruno@clisp.org>
21393
21394         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
21395         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
21396         (Makefile.am): Augment lib_SOURCES instead.
21397
21398 2010-03-04  Jim Meyering  <meyering@redhat.com>
21399
21400         utime: remove obsolete module
21401         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
21402         unnecessary for years, and has been marked as obsolete for 10 months.
21403         * modules/utime: Remove file.
21404         * lib/utime.c: Remove file.
21405         * m4/utime.m4: Remove file.
21406         * m4/utimes-null.m4: Remove file.
21407         * doc/posix-functions/utime.texi (utime): Remove reference to
21408         the module.  Move the sole "fixed by gnulib" item into the
21409         "problems not fixed by Gnulib" list.
21410         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
21411
21412 2010-03-05  Simon Josefsson  <simon@josefsson.org>
21413
21414         * modules/exit (License): Relax license to LGPLv2+.
21415         (Status): Mark as obsolete.
21416         * NEWS: Mention deprecated 'exit' module.
21417         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
21418         of now obsolete 'exit'.
21419
21420 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21421
21422         fts-lgpl: remove unused module
21423         * modules/fts-lgpl: Remove.
21424         * MODULES.html.sh (func_all_modules): Adjust.
21425         * check-module (find_included_lib_files): Adjust.
21426         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
21427
21428 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
21429
21430         copy-acl: enhance Solaris ACL error handling
21431         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
21432         * lib/set-mode-acl.c (qset_acl): Likewise.
21433
21434 2010-03-02  Bruno Haible  <bruno@clisp.org>
21435
21436         spawn: Don't override the system defined values on FreeBSD 8.
21437         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
21438         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
21439         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
21440         if HAVE_POSIX_SPAWN is 1.
21441         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
21442
21443 2010-03-01  Bruno Haible  <bruno@clisp.org>
21444
21445         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
21446         regarding Automake.
21447
21448 2010-02-25  Bruno Haible  <bruno@clisp.org>
21449
21450         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
21451         * gnulib-tool: Define 'echo' as a function only before the ksh alias
21452         setting, not afterwards.
21453         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
21454
21455 2010-02-24  Eric Blake  <eblake@redhat.com>
21456
21457         bootstrap, git-version-gen: use timestamp
21458         * build-aux/git-version-gen (scriptversion): Force UTC.
21459         * build-aux/bootstrap (scriptversion): New variable.
21460
21461         bootstrap: allow older git
21462         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
21463         older than 1.6.4.  Requested by the libvirt project.
21464
21465 2010-02-23  Eric Blake  <eblake@redhat.com>
21466
21467         warn-on-use: work with old autoconf
21468         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
21469         AS_VAR semantics of autoconf 2.60.
21470         Reported by Bruno Haible.
21471
21472         bootstrap: improve some comments
21473         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
21474         clarification comments.
21475
21476         gettimeofday: provide correct function
21477         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
21478         when replacement is declared, otherwise provide gettimeofday.
21479         Reported by Michael Goffioul.
21480
21481 2010-02-23  Jim Meyering  <meyering@redhat.com>
21482
21483         lib-ignore: relax license to "unlimited", not LGPLv2+
21484         * modules/lib-ignore (License): Relax to "unlimited".
21485
21486 2010-02-23  Jim Meyering  <meyering@redhat.com>
21487
21488         lib-ignore: relax license to LGPLv2+
21489         * modules/lib-ignore (License): Relax to LGPLv2+.
21490
21491 2010-02-22  Eric Blake  <eblake@redhat.com>
21492
21493         lseek: avoid bash 3.2 broken pipe bug
21494         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
21495         warning from bash 3.2.
21496         Reported by Ben Pfaff, with analysis from Bruno Haible.
21497
21498         bootstrap: support non-FSF copyright holder
21499         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
21500         bootstrap.conf override of COPYRIGHT_HOLDER.
21501         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
21502
21503         bootstrap: interoperate with gettext 0.14.1
21504         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
21505
21506         bootstrap: allow for alternate submodule location
21507         * build-aux/bootstrap (gnulib_path): New variable; use instead of
21508         hardcoding submodule location.
21509         (gnulib_mk): Allow direct use of Makefile.am.
21510
21511         bootstrap: use GNULIB_SRCDIR to reduce disk usage
21512         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
21513         rather than reconfiguring where the submodule points.
21514
21515         gettimeofday: restore support for platforms that lack function
21516         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
21517         replacement if function is missing.
21518         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
21519         * modules/sys_time (Makefile.am): Substitute it.
21520         * lib/sys_time.in.h (gettimeofday): Check it.
21521         Reported by Michael Goffioul.
21522
21523 2010-02-21  Bruno Haible  <bruno@clisp.org>
21524
21525         * lib/stdio.in.h (obstack_printf): Fix typo.
21526
21527 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
21528
21529         vc-list-files: use bzr ls's -R option
21530         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
21531         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
21532
21533 2010-02-21  Jim Meyering  <meyering@redhat.com>
21534
21535         init.sh: fix EXEEXT shims to work also for names like test-prog
21536         * tests/init.sh: Re-exec a better shell, when needed.
21537         If the current shell lacks support for posix $(...), an init.sh-using
21538         test will now try to find a shell that supports that.  If EXEEXT is
21539         nonempty, we also require support for hyphen-in-alias-name and shell
21540         substitutions like ${var#glob}.  Failure to find such a shell results
21541         in a skipped test.
21542
21543 2010-02-21  Bruno Haible  <bruno@clisp.org>
21544
21545         Really work around around "broken pipe" error message from bash 3.2.
21546         * gnulib-tool (func_reset_sigpipe): Remove function.
21547         (echo): In bash 3.2, define to a function that uses printf.
21548         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
21549
21550 2010-02-20  Bruno Haible  <bruno@clisp.org>
21551
21552         Restore support for automake 1.9.6 with autoconf 2.61.
21553         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
21554         Reported by James Youngman <jay@gnu.org>.
21555
21556 2010-02-20  Bruno Haible  <bruno@clisp.org>
21557
21558         Improve *printf warning condition.
21559         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
21560         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
21561         and the function is overridden due to SIGPIPE emulation.
21562
21563 2010-02-20  Bruno Haible  <bruno@clisp.org>
21564
21565         * lib/stdio.in.h: Tweak comments.
21566
21567 2010-02-19  Bruno Haible  <bruno@clisp.org>
21568
21569         Make it easier to find modules. New gnulib-tool option '--find'.
21570         * gnulib-tool: New option --find.
21571         (func_usage): Document it.
21572         (func_sanitize_modulelist): New function, extracted from
21573         func_all_modules.
21574         (func_all_modules): Invoke it.
21575         * doc/gnulib-tool.texi (Which modules?): New node.
21576
21577 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
21578
21579         * lib/sys_select.in.h: Provide select replacement even if
21580         sys/select.h exists on a system, for Interix.
21581
21582 2010-02-18  Jim Meyering  <meyering@redhat.com>
21583
21584         init.sh: don't use $(...) just yet
21585         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
21586         to accommodate e.g., Solaris' /bin/sh.
21587
21588 2010-02-17  Bruno Haible  <bruno@clisp.org>
21589
21590         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
21591         Reported by Ludovic Courtès <ludo@gnu.org>.
21592
21593 2010-02-16  Simon Josefsson  <simon@josefsson.org>
21594
21595         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
21596         linking with -lintl.
21597
21598 2010-02-17  Simon Josefsson  <simon@josefsson.org>
21599
21600         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
21601         if not provided by the system's netdb.h.  Reported by
21602         ludo@gnu.org (Ludovic Courtès).
21603
21604 2010-02-15  Jim Meyering  <meyering@redhat.com>
21605
21606         init.sh: improve portability and efficiency
21607         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
21608         "dummy" in a for loop.
21609         Use '!', not '^' to select the complement of a character set used
21610         in a "case" statement.
21611         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
21612         Suggestions from Eric Blake.
21613
21614         init.sh: automatically accommodate programs with the .exe suffix
21615         Automatically arrange for an invocation of "prog" to execute the
21616         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
21617         may use the simpler "prog", yet still work when built on a system
21618         that requires specifying the added suffix.
21619         Do this by constructing a function named "prog" that invokes
21620         "prog.exe" for each .exe file in selected directories.
21621         * tests/init.sh (find_exe_basenames_): New function.
21622         (create_exe_shim_functions_): New function.
21623         (path_prepend_): Use it.
21624
21625         maint.mk: mark syntax-check sc_*.m rules as .PHONY
21626         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
21627         "make -t syntax-check" doesn't create a ton of sc_*.m files.
21628
21629 2010-02-14  Jim Meyering  <meyering@redhat.com>
21630
21631         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
21632         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
21633         (sc_prohibit_hash_pjw_without_use): New rule.
21634
21635         maint.mk: allow the default upload destination dir to be overridden
21636         * top/maint.mk (upload_dest_dir_): Define with a default that
21637         preserves the status quo.
21638         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
21639         Reported by Peter Simons.
21640
21641         maint.mk: prohibit inclusion of "hash.h" without_use
21642         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
21643
21644 2010-02-10  Jim Meyering  <meyering@redhat.com>
21645
21646         maint.mk: prohibit inclusion of "ignore-value.h" without_use
21647         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
21648
21649 2010-02-09  Eric Blake  <ebb9@byu.net>
21650         and Bruno Haible  <bruno@clisp.org>
21651
21652         obstack-printf-posix: ensure declaration
21653         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
21654         extracted from gl_FUNC_OBSTACK_PRINTF.
21655         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
21656         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
21657         Likewise.
21658         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
21659         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
21660         0.
21661
21662 2010-02-08  Bruno Haible  <bruno@clisp.org>
21663
21664         gnulib-tool: Fix typo in 2010-02-07 commit.
21665         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
21666         Reported by Eric Blake.
21667
21668 2010-02-07  Bruno Haible  <bruno@clisp.org>
21669
21670         gnulib-tool: Fix up caching patches.
21671         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
21672         option --no-cache. Use associative arrays when supported by the shell.
21673         (sed_comments): New variable.
21674         (modcache): Renamed from do_cache.
21675         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
21676         abbreviate unnecessarily.
21677         (have_associative): New variable.
21678         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
21679         way also for ksh and zsh.
21680         (func_init_sed_convert_to_cache_statements): New function, extracted
21681         from func_cache_lookup_module. Add support for associative arrays.
21682         Don't set the c_MODULE_cached variable here. Ignore all lines before
21683         the first field header. Remove only the final newline, not all trailing
21684         newlines. Support empty fields correctly. Limit the use of 'eval' to
21685         assignments.
21686         (func_get_description, func_get_status, func_get_notice,
21687         func_get_applicability, func_get_filelist, func_get_dependencies,
21688         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
21689         func_get_automake_snippet, func_get_include_directive,
21690         func_get_link_directive, func_get_license, func_get_maintainer):
21691         Update documentation. List the unoptimized code first. Add support for
21692         associative arrays. Limit the use of 'eval' to assignments.
21693         (func_get_applicability): Undo stylistic pessimisations.
21694         (func_get_automake_snippet, func_get_include_directive): Reduce code
21695         duplication.
21696         (func_modules_transitive_closure, func_modules_add_dummy,
21697         func_modules_notice, func_modules_to_filelist, func_add_file,
21698         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
21699         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
21700         func_create_testdir, func_create_megatestdir): Update documentation.
21701
21702 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21703
21704         * gnulib-tool (func_cache_lookup_module): Store the module name
21705         belonging to the cache variable; error out if two different
21706         module names map to the same cache variable name.
21707
21708 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21709
21710         gnulib-tool: Make caching optional.
21711         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
21712         Update matching short versions of --no-changelog.
21713         (func_usage): Update.
21714         (sed_extract_cache_prog): Renamed from ...
21715         (sed_extract_prog): ... this; revert to old extraction script.
21716         (func_get_description, func_get_status)
21717         (func_get_notice, func_get_applicability, func_get_filelist)
21718         (func_get_dependencies, func_get_autoconf_early_snippet)
21719         (func_get_autoconf_snippet, func_get_automake_snippet)
21720         (func_get_include_directive, func_get_link_directive)
21721         (func_get_license, func_get_maintainer): If $do_cache is false,
21722         use old, non-caching extraction scripts.
21723         Suggestion by Bruno Haible.
21724
21725 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21726
21727         gnulib-tool: cache module metainformation.
21728         * gnulib-tool (sed_extract_prog): Match newline before each
21729         header, and rewrite header to a shell variable suffix.
21730         (func_cache_var, func_cache_lookup_module): New functions,
21731         to turn a module name into a cache variable prefix, and to
21732         look up and cache module metainformation.
21733         (func_get_description, func_get_status)
21734         (func_get_notice, func_get_applicability, func_get_filelist)
21735         (func_get_dependencies, func_get_autoconf_early_snippet)
21736         (func_get_autoconf_snippet, func_get_automake_snippet)
21737         (func_get_include_directive, func_get_link_directive)
21738         (func_get_license, func_get_maintainer): Use
21739         func_cache_lookup_module.
21740
21741 2010-02-07  Bruno Haible  <bruno@clisp.org>
21742
21743         fnctl: Fix missing dependency.
21744         * modules/fcntl (Depends-on): Add getdtablesize.
21745         Reported by John W. Eaton <jwe@gnu.org>.
21746
21747 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
21748
21749         Argp: fix recognition of short alias options.
21750
21751         * lib/argp-parse.c (convert_options): Fix improper use of
21752         `|' between character values.
21753         * tests/test-argp.c (group1_option): New alias option
21754         --read (-r).
21755         (group1_parser): Special handling for 'r'.
21756         (test15): New test case.
21757         (test_fun): Add test15.
21758         * tests/test-argp-2.sh: Update expected --help and --usage
21759         outputs.
21760
21761 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
21762
21763         * tests/test-argp.c: Fix indentation.
21764
21765 2010-02-04  Eric Blake  <ebb9@byu.net>
21766
21767         gettimeofday: expose type of second argument
21768         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
21769         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
21770         * tests/test-gettimeofday.c: Use it to silence warning.
21771         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
21772         the issue.
21773
21774 2010-02-03  Jim Meyering  <meyering@redhat.com>
21775
21776         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
21777         * lib/regcomp.c (TYPE_SIGNED): Define.
21778         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
21779
21780         regcomp.c: avoid a new -Wshadow warning
21781         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
21782
21783 2010-02-01  Jim Meyering  <meyering@redhat.com>
21784
21785         removing useless parentheses in cpp #define directives
21786         For motivation, see commit c0221df4, "define STREQ(a,b)
21787         consistently, removing useless parentheses"
21788         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
21789         * lib/mountlist.c (MNT_IGNORE): Likewise.
21790         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
21791
21792 2010-02-01  Eric Blake  <ebb9@byu.net>
21793
21794         sys_time: use link-warning
21795         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
21796         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
21797         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
21798         * modules/sys_time (Depends-on): Add warn-on-use.
21799         (Makefile.am): Always build replacement.
21800         (configure.ac): Update substitutions.
21801         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
21802         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
21803         bother with SYS_TIME_H.
21804         * modules/gettimeofday (configure.ac): Declare indicator.
21805         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
21806         in use.
21807
21808         closein-tests: silence compiler warning
21809         * tests/test-closein.c (main): Ignore fread result.
21810         * modules/closein-tests (Depends-on): Add ignore-value.
21811
21812         tests: silence warning about system return
21813         * tests/test-areadlink-with-size.c (main): Ignore system result.
21814         * tests/test-areadlink.c (main): Likewise.
21815         * tests/test-areadlinkat-with-size.c (main): Likewise.
21816         * tests/test-areadlinkat.c (main): Likewise.
21817         * tests/test-canonicalize-lgpl.c (main): Likewise.
21818         * tests/test-canonicalize.c (main): Likewise.
21819         * tests/test-chown.c (main): Likewise.
21820         * tests/test-fchownat.c (main): Likewise.
21821         * tests/test-fdutimensat.c (main): Likewise.
21822         * tests/test-fstatat.c (main): Likewise.
21823         * tests/test-futimens.c (main): Likewise.
21824         * tests/test-lchown.c (main): Likewise.
21825         * tests/test-link.c (main): Likewise.
21826         * tests/test-linkat.c (main): Likewise.
21827         * tests/test-lstat.c (main): Likewise.
21828         * tests/test-mkdir.c (main): Likewise.
21829         * tests/test-mkdirat.c (main): Likewise.
21830         * tests/test-mkfifo.c (main): Likewise.
21831         * tests/test-mkfifoat.c (main): Likewise.
21832         * tests/test-mknod.c (main): Likewise.
21833         * tests/test-readlink.c (main): Likewise.
21834         * tests/test-remove.c (main): Likewise.
21835         * tests/test-rename.c (main): Likewise.
21836         * tests/test-renameat.c (main): Likewise.
21837         * tests/test-rmdir.c (main): Likewise.
21838         * tests/test-symlink.c (main): Likewise.
21839         * tests/test-symlinkat.c (main): Likewise.
21840         * tests/test-unlink.c (main): Likewise.
21841         * tests/test-unlinkat.c (main): Likewise.
21842         * tests/test-utimens.c (main): Likewise.
21843         * tests/test-utimensat.c (main): Likewise.
21844         * modules/areadlink-tests (Depends-on): Add ignore-value.
21845         * modules/areadlink-with-size-tests (Depends-on): Likewise.
21846         * modules/areadlinkat-tests (Depends-on): Likewise.
21847         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
21848         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
21849         * modules/canonicalize-tests (Depends-on): Likewise.
21850         * modules/chown-tests (Depends-on): Likewise.
21851         * modules/fdutimensat-tests (Depends-on): Likewise.
21852         * modules/futimens-tests (Depends-on): Likewise.
21853         * modules/lchown-tests (Depends-on): Likewise.
21854         * modules/link-tests (Depends-on): Likewise.
21855         * modules/linkat-tests (Depends-on): Likewise.
21856         * modules/lstat-tests (Depends-on): Likewise.
21857         * modules/mkdir-tests (Depends-on): Likewise.
21858         * modules/mkfifo-tests (Depends-on): Likewise.
21859         * modules/mkfifoat-tests (Depends-on): Likewise.
21860         * modules/mknod-tests (Depends-on): Likewise.
21861         * modules/openat-tests (Depends-on): Likewise.
21862         * modules/readlink-tests (Depends-on): Likewise.
21863         * modules/remove-tests (Depends-on): Likewise.
21864         * modules/rename-tests (Depends-on): Likewise.
21865         * modules/renameat-tests (Depends-on): Likewise.
21866         * modules/rmdir-tests (Depends-on): Likewise.
21867         * modules/symlink-tests (Depends-on): Likewise.
21868         * modules/symlinkat-tests (Depends-on): Likewise.
21869         * modules/unlink-tests (Depends-on): Likewise.
21870         * modules/utimens-tests (Depends-on): Likewise.
21871         * modules/utimensat-tests (Depends-on): Likewise.
21872
21873 2010-01-31  Bruno Haible  <bruno@clisp.org>
21874
21875         Perform the same test for many <math.h> functions.
21876         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
21877         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
21878         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
21879         of gl_MATHFUNC.
21880         * modules/acos (configure.ac): Likewise.
21881         * modules/asin (configure.ac): Likewise.
21882         * modules/atan (configure.ac): Likewise.
21883         * modules/atan2 (configure.ac): Likewise.
21884         * modules/cbrt (configure.ac): Likewise.
21885         * modules/copysign (configure.ac): Likewise.
21886         * modules/cos (configure.ac): Likewise.
21887         * modules/cosh (configure.ac): Likewise.
21888         * modules/erf (configure.ac): Likewise.
21889         * modules/erfc (configure.ac): Likewise.
21890         * modules/exp (configure.ac): Likewise.
21891         * modules/fmod (configure.ac): Likewise.
21892         * modules/hypot (configure.ac): Likewise.
21893         * modules/j0 (configure.ac): Likewise.
21894         * modules/j1 (configure.ac): Likewise.
21895         * modules/jn (configure.ac): Likewise.
21896         * modules/lgamma (configure.ac): Likewise.
21897         * modules/log (configure.ac): Likewise.
21898         * modules/log10 (configure.ac): Likewise.
21899         * modules/log1p (configure.ac): Likewise.
21900         * modules/pow (configure.ac): Likewise.
21901         * modules/remainder (configure.ac): Likewise.
21902         * modules/sin (configure.ac): Likewise.
21903         * modules/sinh (configure.ac): Likewise.
21904         * modules/tan (configure.ac): Likewise.
21905         * modules/tanh (configure.ac): Likewise.
21906         * modules/y0 (configure.ac): Likewise.
21907         * modules/y1 (configure.ac): Likewise.
21908         * modules/yn (configure.ac): Likewise.
21909         Suggested by Paolo Bonzini.
21910
21911 2010-01-31  Bruno Haible  <bruno@clisp.org>
21912
21913         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
21914
21915 2010-01-31  Bruno Haible  <bruno@clisp.org>
21916
21917         Work around getdelim() bug on FreeBSD 8.0.
21918         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
21919         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
21920         not work.
21921         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
21922         is 1.
21923         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
21924         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
21925         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
21926         a non-zero size.
21927         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
21928
21929 2010-01-31  Bruno Haible  <bruno@clisp.org>
21930
21931         Work around getline() bug on FreeBSD 8.0.
21932         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
21933         and a non-zero size.
21934         * tests/test-getline.c (main): Likewise.
21935         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
21936         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
21937
21938 2010-01-28  Eric Blake  <ebb9@byu.net>
21939
21940         regex: fix build failure
21941         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
21942         platforms.
21943
21944 2010-01-28  Jim Meyering  <meyering@redhat.com>
21945
21946         regex: do not ignore memory allocation failure
21947         * lib/regex_internal.c (create_cd_newstate): Detect
21948         re_node_set_init_copy failure.   Extracted from glibc commit
21949         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
21950
21951         regex: sync more white-space changes from libc
21952         * lib/regex_internal.c: White-space only changes.
21953         * lib/regexec.c: Likewise.
21954
21955         regex: add many uses of __attribute_warn_unused_result__
21956         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
21957         * lib/regexec.c: Likewise.
21958         Extracted from a messy glibc commit.
21959
21960         regcomp.c: spelling and merge-artifact from glibc
21961         * lib/regcomp.c: Merge remainder of glibc's
21962         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
21963
21964         regcomp.c: sync white-space changes from glibc
21965         * lib/regcomp.c: Merge to accommodate white space
21966         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
21967
21968         regcomp.c: do not ignore internal return values
21969         * lib/regcomp.c: Do not ignore internal return values.
21970         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
21971         but without its white-space changes and spelling fixes.
21972
21973         regex_internal.h: define __attribute_warn_unused_result__
21974         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
21975
21976         maint: add a syntax-check rule to check for vulnerable Makefile.in
21977         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
21978
21979 2010-01-27  Jim Meyering  <meyering@redhat.com>
21980
21981         ncftpput-ftp: clean up spaces
21982         * build-aux/ncftpput-ftp: Make Copyright line consistent.
21983         Remove trailing blanks.
21984
21985 2010-01-27  Simon Josefsson  <simon@josefsson.org>
21986
21987         * build-aux/git-version-gen: Fix copyright statement.
21988         * build-aux/gnupload: Likewise.
21989         * tests/test-arcfour.c: Likewise.
21990         * tests/test-arctwo.c: Likewise.
21991         * tests/test-count-one-bits.c: Likewise.
21992         * tests/test-crc.c: Likewise.
21993         * tests/test-des.c: Likewise.
21994         * tests/test-gc-arcfour.c: Likewise.
21995         * tests/test-gc-arctwo.c: Likewise.
21996         * tests/test-gc-des.c: Likewise.
21997         * tests/test-gc-hmac-md5.c: Likewise.
21998         * tests/test-gc-hmac-sha1.c: Likewise.
21999         * tests/test-gc-md2.c: Likewise.
22000         * tests/test-gc-md4.c: Likewise.
22001         * tests/test-gc-md5.c: Likewise.
22002         * tests/test-gc-pbkdf2-sha1.c: Likewise.
22003         * tests/test-gc-rijndael.c: Likewise.
22004         * tests/test-gc-sha1.c: Likewise.
22005         * tests/test-gc.c: Likewise.
22006         * tests/test-gethostname.c: Likewise.
22007         * tests/test-gettimeofday.c: Likewise.
22008         * tests/test-hash.c: Likewise.
22009         * tests/test-hmac-md5.c: Likewise.
22010         * tests/test-hmac-sha1.c: Likewise.
22011         * tests/test-md2.c: Likewise.
22012         * tests/test-md4.c: Likewise.
22013         * tests/test-md5.c: Likewise.
22014         * tests/test-memchr.c: Likewise.
22015         * tests/test-memchr2.c: Likewise.
22016         * tests/test-memcmp.c: Likewise.
22017         * tests/test-memmem.c: Likewise.
22018         * tests/test-memrchr.c: Likewise.
22019         * tests/test-rawmemchr.c: Likewise.
22020         * tests/test-read-file.c: Likewise.
22021         * tests/test-rijndael.c: Likewise.
22022         * tests/test-sockets.c: Likewise.
22023         * tests/test-strchrnul.c: Likewise.
22024         * tests/test-strstr.c: Likewise.
22025         * tests/test-strtod.c: Likewise.
22026         * build-aux/ncftpput-ftp: Likewise.
22027
22028 2010-01-26  Eric Blake  <ebb9@byu.net>
22029
22030         ignore-value: update recommended header name
22031         * modules/ignore-value (Include): Only use <> for headers that
22032         exist in glibc.
22033
22034 2010-01-26  Jim Meyering  <meyering@redhat.com>
22035
22036         test-userspec.c: avoid compiler warnings
22037         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
22038         and "initialization discards qualifiers..." warnings.
22039         Put the first "uid" in its own scope, and make char* members "const".
22040
22041 2010-01-25  Bruno Haible  <bruno@clisp.org>
22042
22043         gnulib-tool: Make warning diagnostics consistent.
22044         * gnulib-tool (func_warning): New function.
22045         Use it everywhere where gnulib-tool produces output to stderr and it is
22046         not a fatal error.
22047
22048 2010-01-25  Bruno Haible  <bruno@clisp.org>
22049
22050         Fix test dependencies.
22051         * modules/xstrtol-tests (Depends-on): Add inttypes.
22052         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
22053
22054 2010-01-25 Pádraig Brady <P@draigBrady.com>
22055
22056         syntax-check: detect incorrect boolean macro values in config.h
22057         * modules/maintainer-makefile (configure.ac): Parameterize the location
22058         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
22059         The logic is from Eric Blake and the location indicated by Jim Meyering.
22060         Note the more natural CONFIG_HEADER name is prohibited by automake
22061         for backwards compatibility reasons.
22062         * top/maint.mk (sc_Wundef_boolean): New rule.
22063
22064 2010-01-25  Jim Meyering  <meyering@redhat.com>
22065
22066         bootstrap: detect MacOS 10.6's shasum, too
22067         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
22068         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
22069
22070 2010-01-23  Jim Meyering  <meyering@redhat.com>
22071
22072         xstrtoll: new module
22073         * modules/xstrtoll: New file.
22074         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
22075         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
22076         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
22077         ./configure fails if you use this module and lack "long long".
22078         * modules/xstrtoll-tests: New module.
22079         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
22080         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
22081         new init.sh-based test framework.
22082
22083 2010-01-24  Bruno Haible  <bruno@clisp.org>
22084
22085         Tests for module 'yn'.
22086         * modules/yn-tests: New file.
22087         * tests/test-yn.c: New file.
22088
22089         Tests for module 'y1'.
22090         * modules/y1-tests: New file.
22091         * tests/test-y1.c: New file.
22092
22093         Tests for module 'y0'.
22094         * modules/y0-tests: New file.
22095         * tests/test-y0.c: New file.
22096
22097         Tests for module 'tanh'.
22098         * modules/tanh-tests: New file.
22099         * tests/test-tanh.c: New file.
22100
22101         Tests for module 'tan'.
22102         * modules/tan-tests: New file.
22103         * tests/test-tan.c: New file.
22104
22105         Tests for module 'sqrt'.
22106         * modules/sqrt-tests: New file.
22107         * tests/test-sqrt.c: New file.
22108
22109         Tests for module 'sinh'.
22110         * modules/sinh-tests: New file.
22111         * tests/test-sinh.c: New file.
22112
22113         Tests for module 'sin'.
22114         * modules/sin-tests: New file.
22115         * tests/test-sin.c: New file.
22116
22117         Tests for module 'rint'.
22118         * modules/rint-tests: New file.
22119         * tests/test-rint.c: New file.
22120
22121         Tests for module 'remainder'.
22122         * modules/remainder-tests: New file.
22123         * tests/test-remainder.c: New file.
22124
22125         Tests for module 'pow'.
22126         * modules/pow-tests: New file.
22127         * tests/test-pow.c: New file.
22128
22129         Tests for module 'nextafter'.
22130         * modules/nextafter-tests: New file.
22131         * tests/test-nextafter.c: New file.
22132
22133         Tests for module 'modf'.
22134         * modules/modf-tests: New file.
22135         * tests/test-modf.c: New file.
22136
22137         Tests for module 'logb'.
22138         * modules/logb-tests: New file.
22139         * tests/test-logb.c: New file.
22140
22141         Tests for module 'log1p'.
22142         * modules/log1p-tests: New file.
22143         * tests/test-log1p.c: New file.
22144
22145         Tests for module 'log10'.
22146         * modules/log10-tests: New file.
22147         * tests/test-log10.c: New file.
22148
22149         Tests for module 'log'.
22150         * modules/log-tests: New file.
22151         * tests/test-log.c: New file.
22152
22153         Tests for module 'lgamma'.
22154         * modules/lgamma-tests: New file.
22155         * tests/test-lgamma.c: New file.
22156
22157         Tests for module 'ldexp'.
22158         * modules/ldexp-tests: New file.
22159         * tests/test-ldexp.c: New file.
22160
22161         Tests for module 'jn'.
22162         * modules/jn-tests: New file.
22163         * tests/test-jn.c: New file.
22164
22165         Tests for module 'j1'.
22166         * modules/j1-tests: New file.
22167         * tests/test-j1.c: New file.
22168
22169         Tests for module 'j0'.
22170         * modules/j0-tests: New file.
22171         * tests/test-j0.c: New file.
22172
22173         Tests for module 'hypot'.
22174         * modules/hypot-tests: New file.
22175         * tests/test-hypot.c: New file.
22176
22177         Tests for module 'fmod'.
22178         * modules/fmod-tests: New file.
22179         * tests/test-fmod.c: New file.
22180
22181         Tests for module 'fabs'.
22182         * modules/fabs-tests: New file.
22183         * tests/test-fabs.c: New file.
22184
22185         Tests for module 'exp'.
22186         * modules/exp-tests: New file.
22187         * tests/test-exp.c: New file.
22188
22189         Tests for module 'erfc'.
22190         * modules/erfc-tests: New file.
22191         * tests/test-erfc.c: New file.
22192
22193         Tests for module 'erf'.
22194         * modules/erf-tests: New file.
22195         * tests/test-erf.c: New file.
22196
22197         Tests for module 'cosh'.
22198         * modules/cosh-tests: New file.
22199         * tests/test-cosh.c: New file.
22200
22201         Tests for module 'cos'.
22202         * modules/cos-tests: New file.
22203         * tests/test-cos.c: New file.
22204
22205         Tests for module 'copysign'.
22206         * modules/copysign-tests: New file.
22207         * tests/test-copysign.c: New file.
22208
22209         Tests for module 'cbrt'.
22210         * modules/cbrt-tests: New file.
22211         * tests/test-cbrt.c: New file.
22212
22213         Tests for module 'atan2'.
22214         * modules/atan2-tests: New file.
22215         * tests/test-atan2.c: New file.
22216
22217         Tests for module 'atan'.
22218         * modules/atan-tests: New file.
22219         * tests/test-atan.c: New file.
22220
22221         Tests for module 'asin'.
22222         * modules/asin-tests: New file.
22223         * tests/test-asin.c: New file.
22224
22225         Tests for module 'acos'.
22226         * modules/acos-tests: New file.
22227         * tests/test-acos.c: New file.
22228
22229 2010-01-24  Bruno Haible  <bruno@clisp.org>
22230
22231         Fix tests for common <math.h> functions.
22232         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
22233         code snippet that references the function pointer, rather than merely
22234         calling the function. Substitute the FUNC_LIBM variable.
22235         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
22236         * modules/acos (configure.ac): Likewise.
22237         * modules/asin (configure.ac): Likewise.
22238         * modules/atan (configure.ac): Likewise.
22239         * modules/atan2 (configure.ac): Likewise.
22240         * modules/cbrt (configure.ac): Likewise.
22241         * modules/copysign (configure.ac): Likewise.
22242         * modules/cos (configure.ac): Likewise.
22243         * modules/cosh (configure.ac): Likewise.
22244         * modules/erf (configure.ac): Likewise.
22245         * modules/erfc (configure.ac): Likewise.
22246         * modules/exp (configure.ac): Likewise.
22247         * modules/fabs (configure.ac): Likewise.
22248         * modules/fmod (configure.ac): Likewise.
22249         * modules/hypot (configure.ac): Likewise.
22250         * modules/j0 (configure.ac): Likewise.
22251         * modules/j1 (configure.ac): Likewise.
22252         * modules/jn (configure.ac): Likewise.
22253         * modules/ldexp (configure.ac): Likewise.
22254         * modules/lgamma (configure.ac): Likewise.
22255         * modules/log (configure.ac): Likewise.
22256         * modules/log10 (configure.ac): Likewise.
22257         * modules/log1p (configure.ac): Likewise.
22258         * modules/logb (configure.ac): Likewise.
22259         * modules/modf (configure.ac): Likewise.
22260         * modules/nextafter (configure.ac): Likewise.
22261         * modules/pow (configure.ac): Likewise.
22262         * modules/remainder (configure.ac): Likewise.
22263         * modules/rint (configure.ac): Likewise.
22264         * modules/sin (configure.ac): Likewise.
22265         * modules/sinh (configure.ac): Likewise.
22266         * modules/tan (configure.ac): Likewise.
22267         * modules/tanh (configure.ac): Likewise.
22268         * modules/y0 (configure.ac): Likewise.
22269         * modules/y1 (configure.ac): Likewise.
22270         * modules/yn (configure.ac): Likewise.
22271
22272 2010-01-24  Bruno Haible  <bruno@clisp.org>
22273
22274         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
22275         * tests/test-acosl.c (x): New variable.
22276         (main): Store argument in x and fetch it from x.
22277         * tests/test-asinl.c (x): New variable.
22278         (main): Store argument in x and fetch it from x.
22279         * tests/test-atanl.c (x): New variable.
22280         (main): Store argument in x and fetch it from x.
22281         * tests/test-cosl.c (x): New variable.
22282         (main): Store argument in x and fetch it from x.
22283         * tests/test-expl.c (x): New variable.
22284         (main): Store argument in x and fetch it from x.
22285         * tests/test-logl.c (x): New variable.
22286         (main): Store argument in x and fetch it from x.
22287         * tests/test-sinl.c (x): New variable.
22288         (main): Store argument in x and fetch it from x.
22289         * tests/test-sqrtl.c (x): New variable.
22290         (main): Store argument in x and fetch it from x.
22291         * tests/test-tanl.c (x): New variable.
22292         (main): Store argument in x and fetch it from x.
22293
22294 2010-01-24  Bruno Haible  <bruno@clisp.org>
22295
22296         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
22297         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
22298         assignments to the initial TESTS_ENVIRONMENT.
22299         * doc/gnulib.texi (Unit test modules): Document it.
22300         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
22301         TESTS_ENVIRONMENT.
22302         * modules/btowc-tests (Makefile.am): Likewise.
22303         * modules/c-stack-tests (Makefile.am): Likewise.
22304         * modules/c-strcase-tests (Makefile.am): Likewise.
22305         * modules/copy-file-tests (Makefile.am): Likewise.
22306         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
22307         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
22308         * modules/mbrtowc-tests (Makefile.am): Likewise.
22309         * modules/mbscasecmp-tests (Makefile.am): Likewise.
22310         * modules/mbscasestr-tests (Makefile.am): Likewise.
22311         * modules/mbschr-tests (Makefile.am): Likewise.
22312         * modules/mbscspn-tests (Makefile.am): Likewise.
22313         * modules/mbsinit-tests (Makefile.am): Likewise.
22314         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
22315         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
22316         * modules/mbspbrk-tests (Makefile.am): Likewise.
22317         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
22318         * modules/mbsrchr-tests (Makefile.am): Likewise.
22319         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
22320         * modules/mbsspn-tests (Makefile.am): Likewise.
22321         * modules/mbsstr-tests (Makefile.am): Likewise.
22322         * modules/nl_langinfo-tests (Makefile.am): Likewise.
22323         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
22324         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
22325         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
22326         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
22327         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
22328         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
22329         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
22330         * modules/wcrtomb-tests (Makefile.am): Likewise.
22331         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
22332         * modules/wcsrtombs-tests (Makefile.am): Likewise.
22333         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
22334         assignments from TESTS_ENVIRONMENT.
22335         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
22336         augmentation.
22337         * modules/argp-version-etc-tests (Makefile.am): Likewise.
22338         * modules/atexit-tests (Makefile.am): Likewise.
22339         * modules/binary-io-tests (Makefile.am): Likewise.
22340         * modules/closein-tests (Makefile.am): Likewise.
22341         * modules/dprintf-posix-tests (Makefile.am): Likewise.
22342         * modules/exclude-tests (Makefile.am): Likewise.
22343         * modules/fflush-tests (Makefile.am): Likewise.
22344         * modules/fpending-tests (Makefile.am): Likewise.
22345         * modules/fprintf-posix-tests (Makefile.am): Likewise.
22346         * modules/freadahead-tests (Makefile.am): Likewise.
22347         * modules/freadptr-tests (Makefile.am): Likewise.
22348         * modules/freadseek-tests (Makefile.am): Likewise.
22349         * modules/fseek-tests (Makefile.am): Likewise.
22350         * modules/fseeko-tests (Makefile.am): Likewise.
22351         * modules/ftell-tests (Makefile.am): Likewise.
22352         * modules/ftello-tests (Makefile.am): Likewise.
22353         * modules/idpriv-drop-tests (Makefile.am): Likewise.
22354         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
22355         * modules/lseek-tests (Makefile.am): Likewise.
22356         * modules/parse-duration-tests (Makefile.am): Likewise.
22357         * modules/perror-tests (Makefile.am): Likewise.
22358         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
22359         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
22360         * modules/pipe-tests (Makefile.am): Likewise.
22361         * modules/pread-tests (Makefile.am): Likewise.
22362         * modules/printf-posix-tests (Makefile.am): Likewise.
22363         * modules/select-tests (Makefile.am): Likewise.
22364         * modules/sigpipe-tests (Makefile.am): Likewise.
22365         * modules/tsearch-tests (Makefile.am): Likewise.
22366         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
22367         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
22368         * modules/uniname/uniname-tests (Makefile.am): Likewise.
22369         * modules/uniwidth/width-tests (Makefile.am): Likewise.
22370         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
22371         * modules/version-etc-tests (Makefile.am): Likewise.
22372         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
22373         * modules/vprintf-posix-tests (Makefile.am): Likewise.
22374         * modules/xalloc-die-tests (Makefile.am): Likewise.
22375         * modules/xprintf-posix-tests (Makefile.am): Likewise.
22376         * modules/xstrtoimax-tests (Makefile.am): Likewise.
22377         * modules/xstrtol-tests (Makefile.am): Likewise.
22378         * modules/xstrtoumax-tests (Makefile.am): Likewise.
22379         * modules/yesno-tests (Makefile.am): Likewise.
22380         Suggested by Jim Meyering.
22381
22382 2010-01-24  Bruno Haible  <bruno@clisp.org>
22383
22384         More documentation.
22385         * doc/gnulib.texi (Writing modules): New chapter.
22386         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
22387         the new chapter.
22388
22389 2010-01-24  Jim Meyering  <meyering@redhat.com>
22390
22391         maint.mk: do not prepend "./" after filtering
22392         * top/maint.mk (_prepend_srcdir_prefix): New variable
22393         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
22394         "./" when $(srcdir) is ".".
22395
22396         define STREQ(a,b) consistently, removing useless parentheses
22397         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
22398         since the only risk is that "a" or "b" contains an unparenthesized
22399         comma, but if either did that, STREQ would have 3 or more arguments.
22400         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
22401         * lib/fts.c (STREQ): Remove unnecessary parentheses.
22402         * lib/hash-triple.c (STREQ): Likewise.
22403         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
22404         * lib/getugroups.c (STREQ): Likewise.
22405
22406 2010-01-23  Jim Meyering  <meyering@redhat.com>
22407
22408         maint.mk: fix syntax-check in a non-srcdir build directory
22409         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
22410         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
22411
22412 2010-01-22  Jim Meyering  <meyering@redhat.com>
22413
22414         userspec: add unit tests
22415         * tests/test-userspec.c: New file.
22416         * modules/userspec-tests: Likewise.
22417
22418 2010-01-21  Jim Meyering  <meyering@redhat.com>
22419
22420         maint.mk: handle source file names containing "." robustly
22421         * top/maint.mk (_dot_escaped_srcdir): Define.
22422         (VC_LIST): Use it in LHS of sed substitution.
22423
22424 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
22425
22426         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
22427         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
22428         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
22429         from a non-srcdir build.
22430
22431 2010-01-20  Eric Blake  <ebb9@byu.net>
22432
22433         warn-on-use: use instead of link-warning
22434         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
22435         * modules/unistd (Depends-on, Makefile.am): Likewise.
22436         * modules/arpa_inet (Depends-on): Replace link-warning with
22437         warn-on-use.
22438         (Makefile.am): Update rules accordingly.
22439         * modules/ctype (Depends-on, Makefile.am): Likewise.
22440         * modules/dirent (Depends-on, Makefile.am): Likewise.
22441         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
22442         * modules/inttypes (Depends-on, Makefile.am): Likewise.
22443         * modules/langinfo (Depends-on, Makefile.am): Likewise.
22444         * modules/locale (Depends-on, Makefile.am): Likewise.
22445         * modules/math (Depends-on, Makefile.am): Likewise.
22446         * modules/search (Depends-on, Makefile.am): Likewise.
22447         * modules/signal (Depends-on, Makefile.am): Likewise.
22448         * modules/spawn (Depends-on, Makefile.am): Likewise.
22449         * modules/stdlib (Depends-on, Makefile.am): Likewise.
22450         * modules/string (Depends-on, Makefile.am): Likewise.
22451         * modules/strings (Depends-on, Makefile.am): Likewise.
22452         * modules/sys_file (Depends-on, Makefile.am): Likewise.
22453         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
22454         * modules/sys_select (Depends-on, Makefile.am): Likewise.
22455         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
22456         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
22457         * modules/sys_times (Depends-on, Makefile.am): Likewise.
22458         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
22459         * modules/wchar (Depends-on, Makefile.am): Likewise.
22460         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
22461         should be poisoned.
22462         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
22463         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
22464         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
22465         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
22466         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
22467         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
22468         * m4/math_h.m4 (gl_MATH_H): Likewise.
22469         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
22470         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
22471         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
22472         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
22473         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
22474         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
22475         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
22476         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
22477         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
22478         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22479         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
22480         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
22481         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
22482         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
22483         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
22484         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
22485         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
22486         GL_LINK_WARNING.
22487         * lib/ctype.in.h: Likewise.
22488         * lib/dirent.in.h: Likewise.
22489         * lib/fcntl.in.h: Likewise.
22490         * lib/inttypes.in.h: Likewise.
22491         * lib/langinfo.in.h: Likewise.
22492         * lib/locale.in.h: Likewise.
22493         * lib/math.in.h: Likewise.
22494         * lib/search.in.h: Likewise.
22495         * lib/signal.in.h: Likewise.
22496         * lib/spawn.in.h: Likewise.
22497         * lib/stdio.in.h: Likewise.
22498         * lib/stdlib.in.h: Likewise.
22499         * lib/string.in.h: Likewise.
22500         * lib/strings.in.h: Likewise.
22501         * lib/sys_file.in.h: Likewise.
22502         * lib/sys_ioctl.in.h: Likewise.
22503         * lib/sys_select.in.h: Likewise.
22504         * lib/sys_socket.in.h: Likewise.
22505         * lib/sys_stat.in.h: Likewise.
22506         * lib/sys_times.in.h: Likewise.
22507         * lib/sys_utsname.in.h: Likewise.
22508         * lib/unistd.in.h: Likewise.
22509         * lib/wchar.in.h: Likewise.
22510
22511 2010-01-20  Bruno Haible  <bruno@clisp.org>
22512
22513         Avoid duplicate -lm.
22514         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
22515         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
22516         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
22517         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
22518         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
22519         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
22520         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
22521         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
22522         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
22523         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
22524         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
22525         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
22526         Reported by Paolo Bonzini.
22527
22528 2010-01-19  Bruno Haible  <bruno@clisp.org>
22529
22530         langinfo, nl_langinfo: Relicense under LGPLv2+.
22531         * modules/langinfo (License): Change to LGPLv2+.
22532         * modules/nl_langinfo (License): Likewise.
22533         Patch by David Lutterkort <lutter@redhat.com>.
22534
22535 2010-01-19  Bruno Haible  <bruno@clisp.org>
22536
22537         Avoid compilation error with cc on OSF/1 5.1.
22538         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
22539         statement, not before.
22540         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22541
22542 2010-01-18  Bruno Haible  <bruno@clisp.org>
22543
22544         Avoid a link error due to the __printf__ symbol.
22545         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
22546         and 2.6.x.
22547         (__format__, __printf__): Remove definitions.
22548         * lib/argp-fmtstream.h: Likewise.
22549         * lib/argp.h: Likewise.
22550         * lib/error.h: Likewise.
22551         * lib/vasnprintf.h: Likewise.
22552         * lib/xprintf.h: Likewise.
22553         * lib/xvasprintf.h: Likewise.
22554         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22555
22556 2010-01-18  Bruno Haible  <bruno@clisp.org>
22557
22558         Tests for module 'tanl'.
22559         * modules/tanl-tests: New file.
22560         * tests/test-tanl.c: New file.
22561
22562         Tests for module 'sqrtl'.
22563         * modules/sqrtl-tests: New file.
22564         * tests/test-sqrtl.c: New file.
22565
22566         Tests for module 'sinl'.
22567         * modules/sinl-tests: New file.
22568         * tests/test-sinl.c: New file.
22569
22570         Tests for module 'logl'.
22571         * modules/logl-tests: New file.
22572         * tests/test-logl.c: New file.
22573
22574         Tests for module 'expl'.
22575         * modules/expl-tests: New file.
22576         * tests/test-expl.c: New file.
22577
22578         Tests for module 'cosl'.
22579         * modules/cosl-tests: New file.
22580         * tests/test-cosl.c: New file.
22581
22582         Tests for module 'atanl'.
22583         * modules/atanl-tests: New file.
22584         * tests/test-atanl.c: New file.
22585
22586         Tests for module 'asinl'.
22587         * modules/asinl-tests: New file.
22588         * tests/test-asinl.c: New file.
22589
22590         Tests for module 'acosl'.
22591         * modules/acosl-tests: New file.
22592         * tests/test-acosl.c: New file.
22593
22594         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
22595         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
22596         tanl): Use the standard gnulib idiom.
22597         * lib/cosl.c: Don't include trigl.c and sincosl.c.
22598         * lib/sinl.c: Likewise.
22599         * lib/tanl.c: Don't include trigl.c.
22600         (kernel_tanl): Make static.
22601         * lib/sincosl.c: Include trigl.h first.
22602         * lib/trigl.c: Likewise.
22603         * m4/acosl.m4: New file.
22604         * m4/asinl.m4: New file.
22605         * m4/atanl.m4: New file.
22606         * m4/cosl.m4: New file.
22607         * m4/expl.m4: New file.
22608         * m4/logl.m4: New file.
22609         * m4/sinl.m4: New file.
22610         * m4/sqrtl.m4: New file.
22611         * m4/tanl.m4: New file.
22612         * m4/mathl.m4: Remove file.
22613         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
22614         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
22615         Don't initialize GNULIB_MATHL.
22616         * modules/acosl: New file.
22617         * modules/asinl: New file.
22618         * modules/atanl: New file.
22619         * modules/cosl: New file.
22620         * modules/expl: New file.
22621         * modules/logl: New file.
22622         * modules/sinl: New file.
22623         * modules/sqrtl: New file.
22624         * modules/tanl: New file.
22625         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
22626         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
22627         substitute GNULIB_MATHL.
22628         * modules/mathl: Rewritten.
22629         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
22630         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
22631         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
22632         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
22633         * doc/posix-functions/expl.texi: Mention the 'expl' module.
22634         * doc/posix-functions/logl.texi: Mention the 'logl' module.
22635         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
22636         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
22637         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
22638
22639 2010-01-18  Bruno Haible  <bruno@clisp.org>
22640
22641         sqrt: Make gl_FUNC_SQRT requirable.
22642         * m4/sqrt.m4: New file.
22643         * modules/sqrt (Files): Add it.
22644         (configure.ac): Invoke gl_FUNC_SQRT.
22645
22646 2010-01-18  Bruno Haible  <bruno@clisp.org>
22647
22648         New modules for common <math.h> functions.
22649         * m4/mathfunc.m4: New file.
22650         * modules/acos: New file.
22651         * modules/asin: New file.
22652         * modules/atan: New file.
22653         * modules/atan2: New file.
22654         * modules/cbrt: New file.
22655         * modules/copysign: New file.
22656         * modules/cos: New file.
22657         * modules/cosh: New file.
22658         * modules/erf: New file.
22659         * modules/erfc: New file.
22660         * modules/exp: New file.
22661         * modules/fabs: New file.
22662         * modules/fmod: New file.
22663         * modules/hypot: New file.
22664         * modules/j0: New file.
22665         * modules/j1: New file.
22666         * modules/jn: New file.
22667         * modules/ldexp: New file.
22668         * modules/lgamma: New file.
22669         * modules/log: New file.
22670         * modules/log10: New file.
22671         * modules/log1p: New file.
22672         * modules/logb: New file.
22673         * modules/modf: New file.
22674         * modules/nextafter: New file.
22675         * modules/pow: New file.
22676         * modules/remainder: New file.
22677         * modules/rint: New file.
22678         * modules/sin: New file.
22679         * modules/sinh: New file.
22680         * modules/sqrt: New file.
22681         * modules/tan: New file.
22682         * modules/tanh: New file.
22683         * modules/y0: New file.
22684         * modules/y1: New file.
22685         * modules/yn: New file.
22686         * doc/posix-functions/acos.texi: Mention the 'acos' module.
22687         * doc/posix-functions/asin.texi: Mention the 'asin' module.
22688         * doc/posix-functions/atan.texi: Mention the 'atan' module.
22689         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
22690         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
22691         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
22692         * doc/posix-functions/cos.texi: Mention the 'cos' module.
22693         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
22694         * doc/posix-functions/erf.texi: Mention the 'erf' module.
22695         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
22696         * doc/posix-functions/exp.texi: Mention the 'exp' module.
22697         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
22698         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
22699         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
22700         * doc/posix-functions/j0.texi: Mention the 'j0' module.
22701         * doc/posix-functions/j1.texi: Mention the 'j1' module.
22702         * doc/posix-functions/jn.texi: Mention the 'jn' module.
22703         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
22704         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
22705         * doc/posix-functions/log.texi: Mention the 'log' module.
22706         * doc/posix-functions/log10.texi: Mention the 'log10' module.
22707         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
22708         * doc/posix-functions/logb.texi: Mention the 'logb' module.
22709         * doc/posix-functions/modf.texi: Mention the 'modf' module.
22710         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
22711         * doc/posix-functions/pow.texi: Mention the 'pow' module.
22712         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
22713         * doc/posix-functions/rint.texi: Mention the 'rint' module.
22714         * doc/posix-functions/sin.texi: Mention the 'sin' module.
22715         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
22716         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
22717         * doc/posix-functions/tan.texi: Mention the 'tan' module.
22718         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
22719         * doc/posix-functions/y0.texi: Mention the 'y0' module.
22720         * doc/posix-functions/y1.texi: Mention the 'y1' module.
22721         * doc/posix-functions/yn.texi: Mention the 'yn' module.
22722
22723 2010-01-18  Jim Meyering  <meyering@redhat.com>
22724
22725         ignore-value: relax license to LGPLv2+
22726         * modules/ignore-value (License): Relax to LGPLv2+.
22727
22728         getdate: don't leak when TZ contains two or more '"'s
22729         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
22730         double quote in TZ after the first one.
22731
22732         readtokens: do not leak internal token_lengths buffer
22733         * lib/readtokens.c (readtokens): Free the local, lengths,
22734         when the supplied "token_lengths" parameter is NULL.
22735
22736 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22737
22738         Fix a couple of missing LIBTHREAD link failures on AIX.
22739         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
22740         $(LIBTHREAD).
22741         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
22742
22743         Link test-poll against INET_PTON_LIB.
22744         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
22745         for inet_pton on Solaris 10.
22746
22747 2010-01-17  Bruno Haible  <bruno@clisp.org>
22748
22749         unistdio/*-sprintf: Fix typo in module description.
22750         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
22751         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
22752         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
22753         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
22754         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
22755         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
22756         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
22757         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22758
22759 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22760
22761         gnulib-tool: fix filelist for AIX, HP-UX ksh.
22762         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
22763         variables in shell case patterns, for AIX and HP-UX ksh.
22764
22765         Split large sed scripts, for HP-UX sed.
22766         * modules/stdio: Split sed scripts around 50 sed commands,
22767         to avoid HP-UX limit of 99 commands, in the near future.
22768         * modules/string: Likewise.
22769         * modules/unistd: Likewise.
22770
22771         gnulib-tool: avoid writing in the current directory.
22772         * gnulib-tool (func_emit_lib_Makefile_am)
22773         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
22774         not in the current directory, so concurrent gnulib-tool
22775         instances do not interfere.
22776
22777 2010-01-16  Jim Meyering  <meyering@redhat.com>
22778
22779         doc: update users.txt
22780         * users.txt: Add grep.
22781         (diffutils, gzip): Update URLs.
22782
22783 2010-01-12  Bruno Haible  <bruno@clisp.org>
22784
22785         posix_spawn: Avoid test failure on Cygwin.
22786         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
22787         characters.
22788         Reported by Simon Josefsson.
22789
22790 2010-01-12  Bruno Haible  <bruno@clisp.org>
22791
22792         * tests/test-cond.c (main): When skipping the test, show the reason.
22793
22794 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22795
22796         * lib/striconv.c (str_cd_iconv): Avoid if before free.
22797
22798 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22799
22800         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
22801         VC_LIST_ALWAYS_EXCLUDE_REGEX.
22802
22803 2010-01-12  Eric Blake  <ebb9@byu.net>
22804
22805         build: guarantee AS_VAR_IF
22806         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
22807         (gl_AS_VAR_IF): Move...
22808         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
22809         Reported by Simon Josefsson.
22810
22811 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22812
22813         * lib/stdio.in.h: Fix typo.
22814
22815 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22816
22817         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
22818         libgpg-error.
22819
22820 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22821
22822         * tests/test-xalloc-die.sh: Use $EXEEXT.
22823
22824 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22825             Bruno Haible  <bruno@clisp.org>
22826
22827         getlogin, getlogin_r: Avoid test failure.
22828         * tests/test-getlogin.c: Include <stdio.h>.
22829         (main): Skip the test when the function fails because stdin is not a
22830         tty.
22831         * tests/test-getlogin_r.c: Include <stdio.h>.
22832         (main): Skip the test when the function fails because stdin is not a
22833         tty.
22834
22835 2010-01-11  Eric Blake  <ebb9@byu.net>
22836
22837         tests: avoid more large file warnings
22838         * tests/test-fflush.c: Avoid warning about ftell use.
22839         * tests/test-fseek.c: Avoid warning about fseek use.
22840
22841 2010-01-10  Bruno Haible  <bruno@clisp.org>
22842
22843         nproc: Work better on Linux when /proc and /sys are not mounted.
22844         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
22845         as lower bound when, on glibc/Linux systems,
22846         sysconf (_SC_NPROCESSORS_CONF) returns 1.
22847         Suggested by Pádraig Brady <P@draigbrady.com>.
22848         Reported by Dmitry V. Levin <ldv@altlinux.org>.
22849
22850         nproc: Refactor.
22851         * lib/nproc.c (num_processors_via_affinity_mask): New function,
22852         extracted from num_processors.
22853         (num_processors): Call it.
22854
22855 2010-01-11  Jim Meyering  <meyering@redhat.com>
22856
22857         utimecmp: avoid new warning from upcoming gcc-4.5.0
22858         * lib/utimecmp.c (BILLION): Define using #define rather than an
22859         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
22860
22861 2010-01-11  Eric Blake  <ebb9@byu.net>
22862
22863         math: add portability warnings for classification macros
22864         * modules/math (Depends-on): Add warn-on-use.
22865         (Makefile.am): Provide new substitutions.
22866         * m4/math_h.m4 (gl_MATH_H): Require inline.
22867         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
22868         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
22869         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
22870         implement warnings.
22871
22872         unistd: warn on use of environ without module
22873         * modules/unistd (Depends-on): Add warn-on-use.
22874         (Makefile.am): Provide new substitutions.
22875         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
22876         * lib/unistd.in.h (environ): Wrap with a warning helper function.
22877
22878         stdio: warn on suspicious uses
22879         * modules/stdio (Depends-on): Add warn-on-use.
22880         (Makefile.am): Provide new substitutions.
22881         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
22882         fseeko.
22883         * lib/stdio.in.h (gets): Always warn on use.
22884         (fseek, ftell): Adjust when warnings are issued, and honor
22885         _GL_NO_LARGE_FILES as a way to silence the warning.
22886         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
22887         any warning about large file offsets.
22888         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
22889         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
22890         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
22891         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
22892         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
22893         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
22894         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
22895         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
22896
22897         warn-on-use: new module
22898         * modules/warn-on-use: New file.
22899         * build-aux/warn-on-use.h: Likewise.
22900         * m4/warn-on-use.m4: Likewise.
22901         * MODULES.html.sh (Support for building): Mention it.
22902
22903 2010-01-10  Bruno Haible  <bruno@clisp.org>
22904
22905         Tests for module 'unistr/u32-strdup'.
22906         * modules/unistr/u32-strdup-tests: New file.
22907         * tests/unistr/test-u32-strdup.c: New file.
22908
22909         Tests for module 'unistr/u16-strdup'.
22910         * modules/unistr/u16-strdup-tests: New file.
22911         * tests/unistr/test-u16-strdup.c: New file.
22912
22913         Tests for module 'unistr/u8-strdup'.
22914         * modules/unistr/u8-strdup-tests: New file.
22915         * tests/unistr/test-u8-strdup.c: New file.
22916         * tests/unistr/test-strdup.h: New file.
22917
22918         Tests for module 'unistr/u32-strncmp'.
22919         * modules/unistr/u32-strncmp-tests: New file.
22920         * tests/unistr/test-u32-strncmp.c: New file.
22921
22922         Tests for module 'unistr/u16-strncmp'.
22923         * modules/unistr/u16-strncmp-tests: New file.
22924         * tests/unistr/test-u16-strncmp.c: New file.
22925
22926         Tests for module 'unistr/u8-strncmp'.
22927         * modules/unistr/u8-strncmp-tests: New file.
22928         * tests/unistr/test-u8-strncmp.c: New file.
22929         * tests/unistr/test-strncmp.h: New file.
22930
22931         Tests for module 'unistr/u32-strcoll'.
22932         * modules/unistr/u32-strcoll-tests: New file.
22933         * tests/unistr/test-u32-strcoll.c: New file.
22934
22935         Tests for module 'unistr/u16-strcoll'.
22936         * modules/unistr/u16-strcoll-tests: New file.
22937         * tests/unistr/test-u16-strcoll.c: New file.
22938
22939         Tests for module 'unistr/u8-strcoll'.
22940         * modules/unistr/u8-strcoll-tests: New file.
22941         * tests/unistr/test-u8-strcoll.c: New file.
22942
22943         Tests for module 'unistr/u32-strcmp'.
22944         * modules/unistr/u32-strcmp-tests: New file.
22945         * tests/unistr/test-u32-strcmp.c: New file.
22946         * tests/unistr/test-u32-strcmp.h: New file.
22947
22948         Tests for module 'unistr/u16-strcmp'.
22949         * modules/unistr/u16-strcmp-tests: New file.
22950         * tests/unistr/test-u16-strcmp.c: New file.
22951         * tests/unistr/test-u16-strcmp.h: New file.
22952
22953         Tests for module 'unistr/u8-strcmp'.
22954         * modules/unistr/u8-strcmp-tests: New file.
22955         * tests/unistr/test-u8-strcmp.c: New file.
22956         * tests/unistr/test-u8-strcmp.h: New file.
22957         * tests/unistr/test-strcmp.h: New file.
22958
22959         Tests for module 'unistr/u32-strncat'.
22960         * modules/unistr/u32-strncat-tests: New file.
22961         * tests/unistr/test-u32-strncat.c: New file.
22962
22963         Tests for module 'unistr/u16-strncat'.
22964         * modules/unistr/u16-strncat-tests: New file.
22965         * tests/unistr/test-u16-strncat.c: New file.
22966
22967         Tests for module 'unistr/u8-strncat'.
22968         * modules/unistr/u8-strncat-tests: New file.
22969         * tests/unistr/test-u8-strncat.c: New file.
22970         * tests/unistr/test-strncat.h: New file.
22971
22972         Tests for module 'unistr/u32-strcat'.
22973         * modules/unistr/u32-strcat-tests: New file.
22974         * tests/unistr/test-u32-strcat.c: New file.
22975
22976         Tests for module 'unistr/u16-strcat'.
22977         * modules/unistr/u16-strcat-tests: New file.
22978         * tests/unistr/test-u16-strcat.c: New file.
22979
22980         Tests for module 'unistr/u8-strcat'.
22981         * modules/unistr/u8-strcat-tests: New file.
22982         * tests/unistr/test-u8-strcat.c: New file.
22983         * tests/unistr/test-strcat.h: New file.
22984
22985         Tests for module 'unistr/u32-stpncpy'.
22986         * modules/unistr/u32-stpncpy-tests: New file.
22987         * tests/unistr/test-u32-stpncpy.c: New file.
22988
22989         Tests for module 'unistr/u16-stpncpy'.
22990         * modules/unistr/u16-stpncpy-tests: New file.
22991         * tests/unistr/test-u16-stpncpy.c: New file.
22992
22993         Tests for module 'unistr/u8-stpncpy'.
22994         * modules/unistr/u8-stpncpy-tests: New file.
22995         * tests/unistr/test-u8-stpncpy.c: New file.
22996         * tests/unistr/test-stpncpy.h: New file.
22997
22998         Tests for module 'unistr/u32-strncpy'.
22999         * modules/unistr/u32-strncpy-tests: New file.
23000         * tests/unistr/test-u32-strncpy.c: New file.
23001
23002         Tests for module 'unistr/u16-strncpy'.
23003         * modules/unistr/u16-strncpy-tests: New file.
23004         * tests/unistr/test-u16-strncpy.c: New file.
23005
23006         Tests for module 'unistr/u8-strncpy'.
23007         * modules/unistr/u8-strncpy-tests: New file.
23008         * tests/unistr/test-u8-strncpy.c: New file.
23009         * tests/unistr/test-strncpy.h: New file.
23010
23011         Tests for module 'unistr/u32-stpcpy'.
23012         * modules/unistr/u32-stpcpy-tests: New file.
23013         * tests/unistr/test-u32-stpcpy.c: New file.
23014
23015         Tests for module 'unistr/u16-stpcpy'.
23016         * modules/unistr/u16-stpcpy-tests: New file.
23017         * tests/unistr/test-u16-stpcpy.c: New file.
23018
23019         Tests for module 'unistr/u8-stpcpy'.
23020         * modules/unistr/u8-stpcpy-tests: New file.
23021         * tests/unistr/test-u8-stpcpy.c: New file.
23022         * tests/unistr/test-stpcpy.h: New file.
23023
23024         Tests for module 'unistr/u32-strcpy'.
23025         * modules/unistr/u32-strcpy-tests: New file.
23026         * tests/unistr/test-u32-strcpy.c: New file.
23027
23028         Tests for module 'unistr/u16-strcpy'.
23029         * modules/unistr/u16-strcpy-tests: New file.
23030         * tests/unistr/test-u16-strcpy.c: New file.
23031
23032         Tests for module 'unistr/u8-strcpy'.
23033         * modules/unistr/u8-strcpy-tests: New file.
23034         * tests/unistr/test-u8-strcpy.c: New file.
23035         * tests/unistr/test-strcpy.h: New file.
23036
23037         Tests for module 'unistr/u32-strnlen'.
23038         * modules/unistr/u32-strnlen-tests: New file.
23039         * tests/unistr/test-u32-strnlen.c: New file.
23040
23041         Tests for module 'unistr/u16-strnlen'.
23042         * modules/unistr/u16-strnlen-tests: New file.
23043         * tests/unistr/test-u16-strnlen.c: New file.
23044
23045         Tests for module 'unistr/u8-strnlen'.
23046         * modules/unistr/u8-strnlen-tests: New file.
23047         * tests/unistr/test-u8-strnlen.c: New file.
23048         * tests/unistr/test-strnlen.h: New file.
23049
23050         Tests for module 'unistr/u32-strlen'.
23051         * modules/unistr/u32-strlen-tests: New file.
23052         * tests/unistr/test-u32-strlen.c: New file.
23053
23054         Tests for module 'unistr/u16-strlen'.
23055         * modules/unistr/u16-strlen-tests: New file.
23056         * tests/unistr/test-u16-strlen.c: New file.
23057
23058         Tests for module 'unistr/u8-strlen'.
23059         * modules/unistr/u8-strlen-tests: New file.
23060         * tests/unistr/test-u8-strlen.c: New file.
23061
23062         Tests for module 'unistr/u32-prev'.
23063         * modules/unistr/u32-prev-tests: New file.
23064         * tests/unistr/test-u32-prev.c: New file.
23065
23066         Tests for module 'unistr/u16-prev'.
23067         * modules/unistr/u16-prev-tests: New file.
23068         * tests/unistr/test-u16-prev.c: New file.
23069
23070         Tests for module 'unistr/u8-prev'.
23071         * modules/unistr/u8-prev-tests: New file.
23072         * tests/unistr/test-u8-prev.c: New file.
23073
23074         Tests for module 'unistr/u32-next'.
23075         * modules/unistr/u32-next-tests: New file.
23076         * tests/unistr/test-u32-next.c: New file.
23077
23078         Tests for module 'unistr/u16-next'.
23079         * modules/unistr/u16-next-tests: New file.
23080         * tests/unistr/test-u16-next.c: New file.
23081
23082         Tests for module 'unistr/u8-next'.
23083         * modules/unistr/u8-next-tests: New file.
23084         * tests/unistr/test-u8-next.c: New file.
23085
23086         Tests for module 'unistr/u32-strmbtouc'.
23087         * modules/unistr/u32-strmbtouc-tests: New file.
23088         * tests/unistr/test-u32-strmbtouc.c: New file.
23089
23090         Tests for module 'unistr/u16-strmbtouc'.
23091         * modules/unistr/u16-strmbtouc-tests: New file.
23092         * tests/unistr/test-u16-strmbtouc.c: New file.
23093
23094         Tests for module 'unistr/u8-strmbtouc'.
23095         * modules/unistr/u8-strmbtouc-tests: New file.
23096         * tests/unistr/test-u8-strmbtouc.c: New file.
23097
23098         Tests for module 'unistr/u32-strmblen'.
23099         * modules/unistr/u32-strmblen-tests: New file.
23100         * tests/unistr/test-u32-strmblen.c: New file.
23101
23102         Tests for module 'unistr/u16-strmblen'.
23103         * modules/unistr/u16-strmblen-tests: New file.
23104         * tests/unistr/test-u16-strmblen.c: New file.
23105
23106         Tests for module 'unistr/u8-strmblen'.
23107         * modules/unistr/u8-strmblen-tests: New file.
23108         * tests/unistr/test-u8-strmblen.c: New file.
23109
23110         Tests for module 'unistr/u32-cpy-alloc'.
23111         * modules/unistr/u32-cpy-alloc-tests: New file.
23112         * tests/unistr/test-u32-cpy-alloc.c: New file.
23113
23114         Tests for module 'unistr/u16-cpy-alloc'.
23115         * modules/unistr/u16-cpy-alloc-tests: New file.
23116         * tests/unistr/test-u16-cpy-alloc.c: New file.
23117
23118         Tests for module 'unistr/u8-cpy-alloc'.
23119         * modules/unistr/u8-cpy-alloc-tests: New file.
23120         * tests/unistr/test-u8-cpy-alloc.c: New file.
23121         * tests/unistr/test-cpy-alloc.h: New file.
23122
23123         Tests for module 'unistr/u32-mbsnlen'.
23124         * modules/unistr/u32-mbsnlen-tests: New file.
23125         * tests/unistr/test-u32-mbsnlen.c: New file.
23126
23127         Tests for module 'unistr/u16-mbsnlen'.
23128         * modules/unistr/u16-mbsnlen-tests: New file.
23129         * tests/unistr/test-u16-mbsnlen.c: New file.
23130
23131         Tests for module 'unistr/u8-mbsnlen'.
23132         * modules/unistr/u8-mbsnlen-tests: New file.
23133         * tests/unistr/test-u8-mbsnlen.c: New file.
23134
23135         Tests for module 'unistr/u32-chr'.
23136         * modules/unistr/u32-chr-tests: New file.
23137         * tests/unistr/test-u32-chr.c: New file.
23138
23139         Tests for module 'unistr/u16-chr'.
23140         * modules/unistr/u16-chr-tests: New file.
23141         * tests/unistr/test-u16-chr.c: New file.
23142
23143         Tests for module 'unistr/u8-chr'.
23144         * modules/unistr/u8-chr-tests: New file.
23145         * tests/unistr/test-u8-chr.c: New file.
23146         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
23147
23148         Tests for module 'unistr/u32-cmp2'.
23149         * modules/unistr/u32-cmp2-tests: New file.
23150         * tests/unistr/test-u32-cmp2.c: New file.
23151
23152         Tests for module 'unistr/u16-cmp2'.
23153         * modules/unistr/u16-cmp2-tests: New file.
23154         * tests/unistr/test-u16-cmp2.c: New file.
23155
23156         Tests for module 'unistr/u8-cmp2'.
23157         * modules/unistr/u8-cmp2-tests: New file.
23158         * tests/unistr/test-u8-cmp2.c: New file.
23159         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
23160
23161         Tests for module 'unistr/u32-cmp'.
23162         * modules/unistr/u32-cmp-tests: New file.
23163         * tests/unistr/test-u32-cmp.c: New file.
23164
23165         Tests for module 'unistr/u16-cmp'.
23166         * modules/unistr/u16-cmp-tests: New file.
23167         * tests/unistr/test-u16-cmp.c: New file.
23168
23169         Tests for module 'unistr/u8-cmp'.
23170         * modules/unistr/u8-cmp-tests: New file.
23171         * tests/unistr/test-u8-cmp.c: New file.
23172         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
23173
23174         Tests for module 'unistr/u32-set'.
23175         * modules/unistr/u32-set-tests: New file.
23176         * tests/unistr/test-u32-set.c: New file.
23177
23178         Tests for module 'unistr/u16-set'.
23179         * modules/unistr/u16-set-tests: New file.
23180         * tests/unistr/test-u16-set.c: New file.
23181
23182         Tests for module 'unistr/u8-set'.
23183         * modules/unistr/u8-set-tests: New file.
23184         * tests/unistr/test-u8-set.c: New file.
23185         * tests/unistr/test-set.h: New file.
23186
23187         Tests for module 'unistr/u32-move'.
23188         * modules/unistr/u32-move-tests: New file.
23189         * tests/unistr/test-u32-move.c: New file.
23190
23191         Tests for module 'unistr/u16-move'.
23192         * modules/unistr/u16-move-tests: New file.
23193         * tests/unistr/test-u16-move.c: New file.
23194
23195         Tests for module 'unistr/u8-move'.
23196         * modules/unistr/u8-move-tests: New file.
23197         * tests/unistr/test-u8-move.c: New file.
23198         * tests/unistr/test-move.h: New file.
23199
23200         Tests for module 'unistr/u32-cpy'.
23201         * modules/unistr/u32-cpy-tests: New file.
23202         * tests/unistr/test-u32-cpy.c: New file.
23203
23204         Tests for module 'unistr/u16-cpy'.
23205         * modules/unistr/u16-cpy-tests: New file.
23206         * tests/unistr/test-u16-cpy.c: New file.
23207
23208         Tests for module 'unistr/u8-cpy'.
23209         * modules/unistr/u8-cpy-tests: New file.
23210         * tests/unistr/test-u8-cpy.c: New file.
23211         * tests/unistr/test-cpy.h: New file.
23212
23213 2010-01-09  Bruno Haible  <bruno@clisp.org>
23214
23215         Tests for module 'unistr/u32-uctomb'.
23216         * modules/unistr/u32-uctomb-tests: New file.
23217         * tests/unistr/test-u32-uctomb.c: New file.
23218
23219         Tests for module 'unistr/u16-uctomb'.
23220         * modules/unistr/u16-uctomb-tests: New file.
23221         * tests/unistr/test-u16-uctomb.c: New file.
23222
23223         Tests for module 'unistr/u8-uctomb'.
23224         * modules/unistr/u8-uctomb-tests: New file.
23225         * tests/unistr/test-u8-uctomb.c: New file.
23226
23227         Tests for module 'unistr/u32-mbtoucr'.
23228         * modules/unistr/u32-mbtoucr-tests: New file.
23229         * tests/unistr/test-u32-mbtoucr.c: New file.
23230
23231         Tests for module 'unistr/u16-mbtoucr'.
23232         * modules/unistr/u16-mbtoucr-tests: New file.
23233         * tests/unistr/test-u16-mbtoucr.c: New file.
23234
23235         Tests for module 'unistr/u8-mbtoucr'.
23236         * modules/unistr/u8-mbtoucr-tests: New file.
23237         * tests/unistr/test-u8-mbtoucr.c: New file.
23238
23239         Tests for module 'unistr/u32-mbtouc'.
23240         * modules/unistr/u32-mbtouc-tests: New file.
23241         * tests/unistr/test-u32-mbtouc.c: New file.
23242
23243         Tests for module 'unistr/u16-mbtouc'.
23244         * modules/unistr/u16-mbtouc-tests: New file.
23245         * tests/unistr/test-u16-mbtouc.c: New file.
23246
23247         Tests for module 'unistr/u8-mbtouc'.
23248         * modules/unistr/u8-mbtouc-tests: New file.
23249         * tests/unistr/test-u8-mbtouc.c: New file.
23250
23251         Tests for module 'unistr/u32-mbtouc-unsafe'.
23252         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
23253         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
23254         * tests/unistr/test-u32-mbtouc.h: New file.
23255
23256         Tests for module 'unistr/u16-mbtouc-unsafe'.
23257         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
23258         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
23259         * tests/unistr/test-u16-mbtouc.h: New file.
23260
23261         Tests for module 'unistr/u8-mbtouc-unsafe'.
23262         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
23263         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
23264         * tests/unistr/test-u8-mbtouc.h: New file.
23265
23266         Tests for module 'unistr/u32-mblen'.
23267         * modules/unistr/u32-mblen-tests: New file.
23268         * tests/unistr/test-u32-mblen.c: New file.
23269
23270         Tests for module 'unistr/u16-mblen'.
23271         * modules/unistr/u16-mblen-tests: New file.
23272         * tests/unistr/test-u16-mblen.c: New file.
23273
23274         Tests for module 'unistr/u8-mblen'.
23275         * modules/unistr/u8-mblen-tests: New file.
23276         * tests/unistr/test-u8-mblen.c: New file.
23277
23278         Tests for module 'unistr/u32-to-u16'.
23279         * modules/unistr/u32-to-u16-tests: New file.
23280         * tests/unistr/test-u32-to-u16.c: New file.
23281
23282         Tests for module 'unistr/u32-to-u8'.
23283         * modules/unistr/u32-to-u8-tests: New file.
23284         * tests/unistr/test-u32-to-u8.c: New file.
23285
23286         Tests for module 'unistr/u16-to-u32'.
23287         * modules/unistr/u16-to-u32-tests: New file.
23288         * tests/unistr/test-u16-to-u32.c: New file.
23289
23290         Tests for module 'unistr/u16-to-u8'.
23291         * modules/unistr/u16-to-u8-tests: New file.
23292         * tests/unistr/test-u16-to-u8.c: New file.
23293
23294         Tests for module 'unistr/u8-to-u32'.
23295         * modules/unistr/u8-to-u32-tests: New file.
23296         * tests/unistr/test-u8-to-u32.c: New file.
23297
23298         Tests for module 'unistr/u8-to-u16'.
23299         * modules/unistr/u8-to-u16-tests: New file.
23300         * tests/unistr/test-u8-to-u16.c: New file.
23301
23302         Tests for module 'unistr/u32-check'.
23303         * modules/unistr/u32-check-tests: New file.
23304         * tests/unistr/test-u32-check.c: New file.
23305
23306         Tests for module 'unistr/u16-check'.
23307         * modules/unistr/u16-check-tests: New file.
23308         * tests/unistr/test-u16-check.c: New file.
23309
23310         Tests for module 'unistr/u8-check'.
23311         * modules/unistr/u8-check-tests: New file.
23312         * tests/unistr/test-u8-check.c: New file.
23313
23314         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
23315         (category_equals): New function.
23316         (main): Add more tests.
23317         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
23318
23319         * tests/unictype/test-bidi_byname.c (main): Add more tests.
23320
23321 2010-01-10  Bruno Haible  <bruno@clisp.org>
23322
23323         unistr/u*-strcoll: Try harder to distinguish different strings.
23324         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
23325         compare s1 and s2 to see if they are different.
23326
23327 2010-01-10  Bruno Haible  <bruno@clisp.org>
23328
23329         unistr/u*-stpncpy: Fix the return value.
23330         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
23331         description of the return value consistent with stpncpy in glibc.
23332         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
23333         written non-NUL unit.
23334
23335 2010-01-10  Bruno Haible  <bruno@clisp.org>
23336
23337         unistr/u*-next: Add missing dependencies.
23338         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
23339         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
23340         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
23341
23342 2010-01-10  Bruno Haible  <bruno@clisp.org>
23343
23344         unistr/u8-mbsnlen: Fix return value for incomplete character.
23345         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
23346         u8_mblen.
23347         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
23348         Remove unistr/u8-mblen.
23349         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
23350         u16_mblen.
23351         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
23352         Remove unistr/u16-mblen.
23353
23354 2010-01-10  Bruno Haible  <bruno@clisp.org>
23355
23356         wchar: Fix compilation error when <wchar.h> is used from coreutils.
23357         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
23358         Reported by Brian Gough <bjg@gnu.org> and
23359         Chris Clayton <chris2553@googlemail.com> via
23360         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
23361
23362 2010-01-09  Bruno Haible  <bruno@clisp.org>
23363
23364         unistr/u16-to-u32: Reject invalid input.
23365         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
23366         u16_mbtouc.
23367         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
23368         Remove unistr/u16-mbtouc.
23369
23370         unistr/u16-to-u8: Reject invalid input.
23371         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
23372         u16_mbtouc.
23373         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
23374         Remove unistr/u16-mbtouc.
23375
23376         unistr/u8-to-u32: Reject invalid input.
23377         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
23378         u8_mbtouc.
23379         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
23380         Remove unistr/u8-mbtouc.
23381
23382         unistr/u8-to-u16: Reject invalid input.
23383         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
23384         u8_mbtouc.
23385         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
23386         Remove unistr/u8-mbtouc.
23387
23388 2010-01-09  Bruno Haible  <bruno@clisp.org>
23389
23390         Tests for module 'getlogin'.
23391         * modules/getlogin-tests: New file.
23392         * tests/test-getlogin.c: New file.
23393
23394         New module 'getlogin'.
23395         * lib/unistd.in.h (getlogin): New declaration.
23396         * lib/getlogin.c: New file.
23397         * m4/getlogin.m4: New file.
23398         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
23399         HAVE_GETLOGIN.
23400         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
23401         HAVE_GETLOGIN.
23402         * modules/getlogin: New file.
23403         * doc/posix-functions/getlogin.texi: Mention the new module.
23404         Reported by John W. Eaton <jwe@gnu.org>.
23405
23406 2010-01-09  Bruno Haible  <bruno@clisp.org>
23407
23408         getlogin_r: Support for native Windows.
23409         * lib/getlogin_r.c: Include <windows.h>
23410         (getlogin_r): Implement for native Windows.
23411         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
23412         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
23413         via John W. Eaton <jwe@gnu.org>.
23414
23415 2010-01-09  Bruno Haible  <bruno@clisp.org>
23416
23417         getlogin_r: Small fixes.
23418         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
23419         succeeds.
23420         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
23421         before testing whether getlogin_r is declared. No need to set
23422         HAVE_DECL_GETLOGIN_R to 1.
23423         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
23424
23425 2010-01-09  Bruno Haible  <bruno@clisp.org>
23426
23427         * lib/unistd.in.h (getlogin_r): Add comment.
23428
23429 2010-01-09  Bruno Haible  <bruno@clisp.org>
23430
23431         Tests for module 'getlogin_r'.
23432         * modules/getlogin_r-tests: New file.
23433         * tests/test-getlogin_r.c: New file.
23434
23435 2010-01-09  Jim Meyering  <meyering@redhat.com>
23436
23437         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
23438         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
23439         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
23440
23441 2010-01-08  Simon Josefsson  <simon@josefsson.org>
23442
23443         * lib/dup2.c (rpl_dup2): Improve comment.
23444
23445 2010-01-08  Eric Blake  <ebb9@byu.net>
23446
23447         maint.mk: allow packages to add makefile @@ exceptions
23448         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
23449         (sc_makefile_check): Rename...
23450         (sc_makefile_at_at_check): ...to this, and use hook.
23451
23452         dup2: work around mingw bug
23453         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
23454         Reported by Simon Josefsson.
23455
23456 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
23457
23458         glob: Fix C++ compilation.
23459         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
23460         C++.
23461
23462 2010-01-07  Bruno Haible  <bruno@clisp.org>
23463
23464         Fix indentation of wctype.in.h, broken since 2007-01-06.
23465         * lib/wctype.in.h: Fix indentation of preprocessor directives.
23466
23467 2010-01-07  Bruno Haible  <bruno@clisp.org>
23468
23469         mbslen: Avoid collision with system function.
23470         * lib/string.in.h [MirBSD]: Include <wchar.h>.
23471         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
23472         * m4/mbslen.m4: New file.
23473         * modules/mbslen (Files): Add it.
23474         (configure.ac): Invoke gl_MBSLEN.
23475         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
23476         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
23477         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
23478         via Ian Beckwith <ianb@erislabs.net>.
23479
23480 2010-01-07  Bruno Haible  <bruno@clisp.org>
23481
23482         dirent: Document the last fix.
23483         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
23484
23485 2010-01-07  Bruno Haible  <bruno@clisp.org>
23486
23487         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
23488         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
23489         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
23490         va_list are defined.
23491         * doc/posix-headers/stdio.texi: Document the bug of missing types.
23492         Reported by Eric Blake.
23493
23494 2010-01-07  Bruno Haible  <bruno@clisp.org>
23495
23496         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
23497         * modules/xlist (Depends-on): Add 'list',
23498         * modules/xoset (Depends-on): Add 'oset'.
23499         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23500
23501 2010-01-07  Bruno Haible  <bruno@clisp.org>
23502
23503         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
23504         * doc/posix-functions/strncasecmp.texi: Likewise.
23505
23506 2010-01-07  Bruno Haible  <bruno@clisp.org>
23507
23508         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
23509
23510 2010-01-07  John W. Eaton  <jwe@octave.org>
23511
23512         wctype: allow C++ use
23513         * lib/wctype.in.h: Add extern "C" block for C++.
23514
23515 2010-01-06  Eric Blake  <ebb9@byu.net>
23516
23517         maint.mk: detect incorrect GFDL usage
23518         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
23519
23520 2010-01-06  Jim Meyering  <meyering@redhat.com>
23521         and Eric Blake  <ebb9@byu.net>
23522
23523         maint.mk: ignore multi-line copyright in NEWS
23524         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
23525
23526 2010-01-06  Eric Blake  <ebb9@byu.net>
23527
23528         select: add missing dependency
23529         * modules/select-tests (Depends-on): Move sockets dependency...
23530         * modules/select (Depends-on): ...here.
23531         Reported by Ian Beckwith.
23532
23533         doc: regenerate INSTALL
23534         * doc/INSTALL: Reflect recent autoconf update.
23535         * doc/INSTALL.ISO: Likewise.
23536         * doc/INSTALL.UTF-8: Likewise.
23537
23538         pread: fix compilation on glibc
23539         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
23540         Reported by Ralf Wildenhues.
23541
23542         dirent: fix test failure
23543         * lib/dirent.in.h (includes): Guarantee ino_t.
23544         Reported by Ralf Wildenhues.
23545
23546 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
23547
23548         linkat, renameat: avoid bad free
23549         * lib/at-func2.c (at_func2): Fix typo.
23550         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
23551
23552 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23553
23554         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
23555         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
23556         to avoid failure of symlink test later.
23557
23558 2010-01-06  Eric Blake  <ebb9@byu.net>
23559
23560         stdio, unistd: guarantee ssize_t
23561         * lib/unistd.in.h (includes): Ensure that types required by POSIX
23562         2008 are exposed when needed.
23563         * lib/stdio.in.h (includes): Likewise.
23564         Reported by Ralf Wildenhues.
23565
23566 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
23567
23568         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
23569         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
23570         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
23571
23572 2010-01-06  Jim Meyering  <meyering@redhat.com>
23573
23574         readtokens: this module *does* require xalloc.h
23575         It uses only functions that were omitted by the old syntax-check rule.
23576         * lib/readtokens.c: Include "xalloc.h" once again.
23577         * modules/readtokens (Depends-on): Add xalloc.
23578         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
23579
23580 2010-01-05  Eric Blake  <ebb9@byu.net>
23581
23582         maint: support 'make announcement' from a VPATH build
23583         * top/maint.mk (announcement): Look for correct NEWS file.
23584
23585 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
23586
23587         utimens (fdutimens): ignore a negative FD, per contract
23588         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
23589         when we have a valid file descriptor.  Otherwise, using a brand
23590         new glibc (with just-patched futimens that now fails with EBADF)
23591         would cause this function to fail with ENOSYS.
23592         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
23593         See also http://bugzilla.redhat.com/552320.
23594
23595 2010-01-05  Eric Blake  <ebb9@byu.net>
23596
23597         strcase: document what it provides
23598         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
23599         gnulib module.
23600         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
23601         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
23602
23603 2010-01-05  Jim Meyering  <meyering@redhat.com>
23604
23605         maint: remove useless inclusions of "xalloc.h"
23606         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
23607         * lib/readtokens.c: Likewise.
23608         * lib/same.c: Likewise.
23609         * modules/getloadavg (Depends-on): Remove xalloc.
23610         * modules/readtokens: Likewise.
23611         * modules/same: Likewise.
23612
23613         maint.mk: include 4 more function names in alloca.h-checking regexp
23614         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
23615         regexp.  Before, we would give a false-positive (saying alloca.h
23616         is included unnecessarily) when the only uses involved omitted symbols.
23617
23618         xalloc.h: use consistent formatting
23619         * lib/xalloc.h: Move declarations to start in the first column.
23620
23621 2010-01-05  Eric Blake  <ebb9@byu.net>
23622
23623         mkdir: avoid xalloc
23624         * lib/mkdir.c (includes): Drop unused header.
23625         Reported by John W. Eaton.
23626
23627 2010-01-04  Jim Meyering  <meyering@redhat.com>
23628
23629         nl_langinfo: avoid configure-time syntax error
23630         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
23631         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
23632         the empty string.  Don't let that provoke a shell syntax error.
23633
23634         regcomp, regexec, fnmatch: avoid array bounds read error
23635         * lib/regcomp.c (build_equiv_class): From glibc:
23636         Use only the low 24 bits of a findidx return value as an index
23637         into the weights array.  Patch by Ulrich Drepper:
23638         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
23639         * lib/regexec.c (check_node_accept_bytes): Likewise.
23640         * lib/fnmatch_loop.c (FCT): Likewise.
23641
23642         regcomp: skip collseq lookup when there are no rules
23643         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
23644         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
23645
23646         regcomp: recognize ill-formed { } expressions
23647         * lib/regcomp.c (parse_dup_op): From glibc:
23648         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
23649
23650         regcomp: fix typo in comment
23651         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
23652         s/satisfy/satisfies/.
23653
23654         regcomp: sync from glibc: remove dead store
23655         * lib/regcomp.c (duplicate_node_closure): Remove useless
23656         search_duplicated_node call and dead store.
23657
23658         regcomp: sync from glibc; always use nl_langinfo
23659         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
23660         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
23661         * modules/regex (Depends-on): Add nl_langinfo.
23662
23663 2010-01-04  Eric Blake  <ebb9@byu.net>
23664
23665         fdopendir: fix configure test
23666         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
23667
23668 2010-01-01  Bruno Haible  <bruno@clisp.org>
23669
23670         wchar: Remove unused configure check.
23671         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
23672
23673 2010-01-01  Eric Blake  <ebb9@byu.net>
23674
23675         headers: make check of system header explicit
23676         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
23677         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
23678         ourselves.
23679         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
23680         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23681         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
23682         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
23683         internals.
23684         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
23685         missing.
23686         Suggested by Bruno Haible.
23687
23688 2010-01-01  Jim Meyering  <meyering@redhat.com>
23689
23690         ChangeLog: tweak to eliminate unnecessary copyright line
23691         * ChangeLog: Remove a copyright line that was mistakenly updated
23692         by today's update-copyright run.  Reported by Eric Blake.
23693
23694         test-update-copyright: don't let envvar setting cause test failure
23695         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
23696
23697 2010-01-01  Bruno Haible  <bruno@clisp.org>
23698
23699         localename: Avoid gcc warning.
23700         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
23701         function if it is not used.
23702
23703 2010-01-01  Jim Meyering  <meyering@redhat.com>
23704
23705         update nearly all FSF copyright year lists to include 2010
23706         Use the same procedure as for 2009, outlined in
23707         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
23708
23709         version-etc: set COPYRIGHT_YEAR to 2010
23710         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
23711
23712 2009-12-31  Eric Blake  <ebb9@byu.net>
23713
23714         doc: correct availability of cygwin 1.5.x getopt
23715         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
23716         variables.
23717         * doc/posix-functions/opterr.texi (opterr): Likewise.
23718         * doc/posix-functions/optind.texi (optind): Likewise.
23719         * doc/posix-functions/optopt.texi (optopt): Likewise.
23720         * doc/posix-functions/tzname.texi (tzname): Likewise.
23721
23722         openat: update maintainer
23723         * modules/openat (Maintainer): Add myself.
23724
23725         utimens: avoid shadowing warning
23726         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
23727         buffers into one, to avoid shadowing, as well as avoiding a
23728         redundant stat.
23729         Reported by Jim Meyering.
23730
23731         test-dup2: avoid compiler warning
23732         * tests/test-dup2.c (is_inheritable): Only define if used.
23733
23734 2010-01-01  Bruno Haible  <bruno@clisp.org>
23735
23736         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
23737         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
23738         defined, use wctomb instead of wcrtomb.
23739
23740 2010-01-01  Bruno Haible  <bruno@clisp.org>
23741
23742         iconv: Reject native Solaris iconv.
23743         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
23744         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
23745
23746 2009-12-31  Bruno Haible  <bruno@clisp.org>
23747
23748         * tests/test-signal.c (main): Remove test of 'SIG'.
23749
23750 2009-12-31  Bruno Haible  <bruno@clisp.org>
23751
23752         spawn: Fix incomplete fix.
23753         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
23754         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
23755         warnings for GNULIB_POSIXCHECK again.
23756         Reported by Eric Blake.
23757
23758 2009-12-31  Bruno Haible  <bruno@clisp.org>
23759
23760         Avoid namespace pollution on glibc systems.
23761         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
23762         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
23763         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
23764         glibc systems.
23765
23766 2009-12-31  Bruno Haible  <bruno@clisp.org>
23767
23768         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
23769         (gl_REPLACE_WCHAR_H): Turn into a no-op.
23770         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
23771         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
23772         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
23773         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
23774         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
23775
23776 2009-12-31  Bruno Haible  <bruno@clisp.org>
23777
23778         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
23779         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
23780         afterwards.
23781
23782 2009-12-31  Bruno Haible  <bruno@clisp.org>
23783
23784         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
23785         SYS_UTSNAME_H.
23786
23787 2009-12-31  Bruno Haible  <bruno@clisp.org>
23788
23789         spawn: Fix misapplied patch.
23790         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
23791         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
23792         warnings for GNULIB_POSIXCHECK.
23793
23794 2009-12-31  Bruno Haible  <bruno@clisp.org>
23795
23796         times: Update after sys_times changed.
23797         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
23798         * modules/times (Files): Add it.
23799         (configure.ac): Invoke gl_FUNC_TIMES.
23800
23801 2009-12-31  Bruno Haible  <bruno@clisp.org>
23802
23803         Use AC_C_INLINE where necessary.
23804         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
23805         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
23806         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
23807         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
23808         * m4/mbfile.m4 (gl_MBFILE): Likewise.
23809         * m4/mbiter.m4 (gl_MBITER): Likewise.
23810         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
23811         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23812         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
23813         * modules/u64 (configure.ac): Likewise.
23814
23815 2009-12-31  Bruno Haible  <bruno@clisp.org>
23816
23817         Use AC_C_INLINE instead of module 'inline' where possible.
23818         * modules/inline (Description): Clarify purpose.
23819         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
23820         * modules/count-one-bits (Depends-on): Remove inline.
23821         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
23822         * modules/openat (Depends-on): Remove inline.
23823         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
23824         instead of depending on module 'inline'.
23825         * modules/filevercmp (Depends-on, configure.ac): Likewise.
23826         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
23827         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
23828         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
23829         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
23830         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
23831         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
23832         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
23833         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
23834         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
23835         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
23836         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
23837         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
23838         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
23839         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
23840         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
23841         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
23842         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
23843         Likewise.
23844         * modules/unictype/property-ascii-hex-digit (Depends-on,
23845         configure.ac): Likewise.
23846         * modules/unictype/property-bidi-arabic-digit (Depends-on,
23847         configure.ac): Likewise.
23848         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
23849         configure.ac): Likewise.
23850         * modules/unictype/property-bidi-block-separator (Depends-on,
23851         configure.ac): Likewise.
23852         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
23853         configure.ac): Likewise.
23854         * modules/unictype/property-bidi-common-separator (Depends-on,
23855         configure.ac): Likewise.
23856         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
23857         Likewise.
23858         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
23859         configure.ac): Likewise.
23860         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
23861         configure.ac): Likewise.
23862         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
23863         configure.ac): Likewise.
23864         * modules/unictype/property-bidi-european-digit (Depends-on,
23865         configure.ac): Likewise.
23866         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
23867         configure.ac): Likewise.
23868         * modules/unictype/property-bidi-left-to-right (Depends-on,
23869         configure.ac): Likewise.
23870         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
23871         configure.ac): Likewise.
23872         * modules/unictype/property-bidi-other-neutral (Depends-on,
23873         configure.ac): Likewise.
23874         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
23875         Likewise.
23876         * modules/unictype/property-bidi-segment-separator (Depends-on,
23877         configure.ac): Likewise.
23878         * modules/unictype/property-bidi-whitespace (Depends-on,
23879         configure.ac): Likewise.
23880         * modules/unictype/property-combining (Depends-on, configure.ac):
23881         Likewise.
23882         * modules/unictype/property-composite (Depends-on, configure.ac):
23883         Likewise.
23884         * modules/unictype/property-currency-symbol (Depends-on,
23885         configure.ac): Likewise.
23886         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
23887         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
23888         Likewise.
23889         * modules/unictype/property-default-ignorable-code-point (Depends-on,
23890         configure.ac): Likewise.
23891         * modules/unictype/property-deprecated (Depends-on, configure.ac):
23892         Likewise.
23893         * modules/unictype/property-diacritic (Depends-on, configure.ac):
23894         Likewise.
23895         * modules/unictype/property-extender (Depends-on, configure.ac):
23896         Likewise.
23897         * modules/unictype/property-format-control (Depends-on, configure.ac):
23898         Likewise.
23899         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
23900         Likewise.
23901         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
23902         Likewise.
23903         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
23904         Likewise.
23905         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
23906         Likewise.
23907         * modules/unictype/property-hyphen (Depends-on, configure.ac):
23908         Likewise.
23909         * modules/unictype/property-id-continue (Depends-on, configure.ac):
23910         Likewise.
23911         * modules/unictype/property-id-start (Depends-on, configure.ac):
23912         Likewise.
23913         * modules/unictype/property-ideographic (Depends-on, configure.ac):
23914         Likewise.
23915         * modules/unictype/property-ids-binary-operator (Depends-on,
23916         configure.ac): Likewise.
23917         * modules/unictype/property-ids-trinary-operator (Depends-on,
23918         configure.ac): Likewise.
23919         * modules/unictype/property-ignorable-control (Depends-on,
23920         configure.ac): Likewise.
23921         * modules/unictype/property-iso-control (Depends-on, configure.ac):
23922         Likewise.
23923         * modules/unictype/property-join-control (Depends-on, configure.ac):
23924         Likewise.
23925         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
23926         Likewise.
23927         * modules/unictype/property-line-separator (Depends-on, configure.ac):
23928         Likewise.
23929         * modules/unictype/property-logical-order-exception (Depends-on,
23930         configure.ac): Likewise.
23931         * modules/unictype/property-lowercase (Depends-on, configure.ac):
23932         Likewise.
23933         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
23934         * modules/unictype/property-non-break (Depends-on, configure.ac):
23935         Likewise.
23936         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
23937         Likewise.
23938         * modules/unictype/property-numeric (Depends-on, configure.ac):
23939         Likewise.
23940         * modules/unictype/property-other-alphabetic (Depends-on,
23941         configure.ac): Likewise.
23942         * modules/unictype/property-other-default-ignorable-code-point
23943         (Depends-on, configure.ac): Likewise.
23944         * modules/unictype/property-other-grapheme-extend (Depends-on,
23945         configure.ac): Likewise.
23946         * modules/unictype/property-other-id-continue (Depends-on,
23947         configure.ac): Likewise.
23948         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
23949         Likewise.
23950         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
23951         Likewise.
23952         * modules/unictype/property-other-math (Depends-on, configure.ac):
23953         Likewise.
23954         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
23955         Likewise.
23956         * modules/unictype/property-paired-punctuation (Depends-on,
23957         configure.ac): Likewise.
23958         * modules/unictype/property-paragraph-separator (Depends-on,
23959         configure.ac): Likewise.
23960         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
23961         Likewise.
23962         * modules/unictype/property-pattern-white-space (Depends-on,
23963         configure.ac): Likewise.
23964         * modules/unictype/property-private-use (Depends-on, configure.ac):
23965         Likewise.
23966         * modules/unictype/property-punctuation (Depends-on, configure.ac):
23967         Likewise.
23968         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
23969         Likewise.
23970         * modules/unictype/property-radical (Depends-on, configure.ac):
23971         Likewise.
23972         * modules/unictype/property-sentence-terminal (Depends-on,
23973         configure.ac): Likewise.
23974         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
23975         Likewise.
23976         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
23977         * modules/unictype/property-terminal-punctuation (Depends-on,
23978         configure.ac): Likewise.
23979         * modules/unictype/property-titlecase (Depends-on, configure.ac):
23980         Likewise.
23981         * modules/unictype/property-unassigned-code-value (Depends-on,
23982         configure.ac): Likewise.
23983         * modules/unictype/property-unified-ideograph (Depends-on,
23984         configure.ac): Likewise.
23985         * modules/unictype/property-uppercase (Depends-on, configure.ac):
23986         Likewise.
23987         * modules/unictype/property-variation-selector (Depends-on,
23988         configure.ac): Likewise.
23989         * modules/unictype/property-white-space (Depends-on, configure.ac):
23990         Likewise.
23991         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
23992         Likewise.
23993         * modules/unictype/property-xid-start (Depends-on, configure.ac):
23994         Likewise.
23995         * modules/unictype/property-zero-width (Depends-on, configure.ac):
23996         Likewise.
23997         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
23998         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
23999         Likewise.
24000
24001 2009-12-31  Bruno Haible  <bruno@clisp.org>
24002
24003         Remove unnecessary AC_C_INLINE invocation.
24004         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
24005         since 2009-08-21.
24006
24007 2009-12-31  Jim Meyering  <meyering@redhat.com>
24008
24009         maint.mk: don't require explicit gpg_key_ID in cfg.mk
24010         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
24011         With this change, we can all remove the gpg_key_ID = ... definition
24012         from our respective cfg.mk files.
24013
24014         maint.mk: create announcement template in ~/, not in /tmp
24015         * top/maint.mk (emit_upload_commands): Adjust.
24016         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
24017         Remove temporary file, .ci-msg.
24018
24019 2009-12-31  Eric Blake  <ebb9@byu.net>
24020
24021         link-warning: always build headers with link warnings
24022         * modules/arpa_inet (Makefile.am): Always build replacement
24023         header.
24024         * modules/ctype (Makefile.am): Likewise.
24025         * modules/dirent (Makefile.am): Likewise.
24026         * modules/inttypes (Makefile.am): Likewise.
24027         * modules/langinfo (Makefile.am): Likewise.
24028         * modules/locale (Makefile.am): Likewise.
24029         * modules/spawn (Makefile.am): Likewise.
24030         * modules/sys_file (Makefile.am): Likewise.
24031         * modules/sys_ioctl (Makefile.am): Likewise.
24032         * modules/sys_select (Makefile.am): Likewise.
24033         * modules/sys_socket (Makefile.am): Likewise.
24034         * modules/sys_times (Makefile.am): Likewise.
24035         * modules/sys_utsname (Makefile.am): Likewise.
24036         * modules/sys_wait (Makefile.am): Likewise.
24037         * modules/wchar (Makefile.am): Likewise.
24038         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
24039         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
24040         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
24041         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
24042         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
24043         Likewise.
24044         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
24045         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
24046         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
24047         Likewise.
24048         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
24049         Likewise.
24050         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
24051         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
24052         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
24053         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24054         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24055         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
24056         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
24057         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
24058         (gl_WCHAR_H_DEFAULTS): Likewise.
24059
24060 2009-12-31  Eric Blake  <ebb9@byu.net>
24061
24062         signal, spawn: use link warnings
24063         * lib/signal.in.h (sigset_t): Make unconditional.
24064         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
24065         (sigpending, sigprocmask, sigaction): Add link warnings.
24066         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
24067         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
24068         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
24069         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
24070         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
24071         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
24072         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
24073         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
24074         (posix_spawn_file_actions_destroy)
24075         (posix_spawn_file_actions_addopen)
24076         (posix_spawn_file_actions_addclose)
24077         (posix_spawn_file_actions_adddup2): Likewise.
24078         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
24079         * tests/test-signal.c (main): Enhance test.
24080
24081         spawn: improve wrapper support
24082         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
24083         (gl_SPAWN_H_DEFAULTS): New defaults.
24084         * modules/spawn (Makefile.am): Substitute them.
24085         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
24086         Only declare if missing or broken.
24087
24088         sys_times, sys_utsname: use include_next
24089         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
24090         header.
24091         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
24092         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
24093         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
24094         * modules/sys_times (Depends-on): Add include_next.
24095         (Makefile.am): Substitute additional values.
24096         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
24097         * lib/sys_times.in.h (includes): Include native header, if
24098         available.
24099         * lib/sys_utsname.in.h (includes): Likewise.
24100         * tests/test-sys_times.c (main): Enhance test.
24101
24102         fdutimensat: revert prior patch
24103         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
24104         utimens.h.
24105         Reported by Bruno Haible.
24106
24107 2009-12-30  Eric Blake  <ebb9@byu.net>
24108
24109         sys_wait: drop link-warning dependency
24110         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
24111         link-warning efforts.
24112         * lib/sys_wait.in.h: Likewise.
24113
24114         fdutimensat: remove bogus dependency
24115         * modules/fdutimensat (Depends-on): Drop inline.
24116
24117         unistd: fix typo
24118         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
24119
24120 2009-12-30  Bruno Haible  <bruno@clisp.org>
24121
24122         Fix compilation error with Solaris cc.
24123         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
24124         * lib/unicase/u16-is-invariant.c: Likewise.
24125         * lib/unicase/u32-is-invariant.c: Likewise.
24126         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
24127
24128 2009-12-30  Bruno Haible  <bruno@clisp.org>
24129
24130         Fix test crash.
24131         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
24132         locales.
24133         Reported by Simon Josefsson <simon@josefsson.org>.
24134
24135 2009-12-30  Bruno Haible  <bruno@clisp.org>
24136
24137         Fix compilation error on most platforms.
24138         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
24139         Reported by Simon Josefsson <simon@josefsson.org>
24140         and Nelson H. F. Beebe <beebe@math.utah.edu>.
24141
24142 2009-12-30  Eric Blake  <ebb9@byu.net>
24143
24144         futimens, utimensat: work around ntfs-3g bug
24145         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
24146         a ctime bug is present, and expand workaround to cover ntfs-3g.
24147         * lib/utimens.c (fdutimens, lutimens): Likewise.
24148         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
24149         (validate_timespec): Adjust return value.
24150         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
24151         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
24152         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
24153
24154 2009-12-29  Eric Blake  <ebb9@byu.net>
24155
24156         link-warning: make usage consistent
24157         * modules/ctype (Depends-on): Add link-warning.
24158         (Makefile.am): Update rules accordingly.
24159         * modules/langinfo (Depends-on, Makefile.am): Likewise.
24160         * modules/locale (Depends-on, Makefile.am): Likewise.
24161         * modules/sys_file (Makefile.am): Likewise.
24162         * modules/getopt-posix (Makefile.am): Delete unused link warning
24163         efforts.
24164         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
24165         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
24166         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
24167         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
24168
24169         stdio: remove unused variables
24170         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
24171         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
24172         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
24173
24174         tests: test more substitute headers
24175         * modules/ctype-tests: New file.
24176         * modules/dirent-tests: Likewise.
24177         * modules/spawn-tests: Likewise.
24178         * modules/sys_file-tests: Likewise.
24179         * modules/sys_ioctl-tests: Likewise.
24180         * modules/sys_wait-tests: Likewise.
24181         * tests/test-ctype.c: Likewise.
24182         * tests/test-dirent.c: Likewise.
24183         * tests/test-spawn.c: Likewise.
24184         * tests/test-sys_file.c: Likewise.
24185         * tests/test-sys_ioctl.c: Likewise.
24186         * tests/test-sys_wait.c: Likewise.
24187         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
24188         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
24189         whether or not flock is in use.
24190
24191         tests: remove License section from module
24192         * modules/arpa_inet-tests: Remove unneeded section.
24193         * modules/byteswap-tests: Likewise.
24194         * modules/ceilf-tests: Likewise.
24195         * modules/ceill-tests: Likewise.
24196         * modules/crypto/des-tests: Likewise.
24197         * modules/crypto/gc-arcfour-tests: Likewise.
24198         * modules/crypto/gc-arctwo-tests: Likewise.
24199         * modules/crypto/gc-des-tests: Likewise.
24200         * modules/crypto/gc-hmac-md5-tests: Likewise.
24201         * modules/crypto/gc-hmac-sha1-tests: Likewise.
24202         * modules/crypto/gc-md2-tests: Likewise.
24203         * modules/crypto/gc-md4-tests: Likewise.
24204         * modules/crypto/gc-md5-tests: Likewise.
24205         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
24206         * modules/crypto/gc-rijndael-tests: Likewise.
24207         * modules/crypto/gc-sha1-tests: Likewise.
24208         * modules/crypto/gc-tests: Likewise.
24209         * modules/crypto/md2-tests: Likewise.
24210         * modules/crypto/md4-tests: Likewise.
24211         * modules/fcntl-h-tests: Likewise.
24212         * modules/floorf-tests: Likewise.
24213         * modules/floorl-tests: Likewise.
24214         * modules/frexp-nolibm-tests: Likewise.
24215         * modules/frexp-tests: Likewise.
24216         * modules/frexpl-nolibm-tests: Likewise.
24217         * modules/frexpl-tests: Likewise.
24218         * modules/getaddrinfo-tests: Likewise.
24219         * modules/inttypes-tests: Likewise.
24220         * modules/isfinite-tests: Likewise.
24221         * modules/isinf-tests: Likewise.
24222         * modules/ldexpl-tests: Likewise.
24223         * modules/locale-tests: Likewise.
24224         * modules/math-tests: Likewise.
24225         * modules/netdb-tests: Likewise.
24226         * modules/netinet_in-tests: Likewise.
24227         * modules/printf-frexp-tests: Likewise.
24228         * modules/printf-frexpl-tests: Likewise.
24229         * modules/priv-set-tests: Likewise.
24230         * modules/random_r-tests: Likewise.
24231         * modules/round-tests: Likewise.
24232         * modules/roundf-tests: Likewise.
24233         * modules/roundl-tests: Likewise.
24234         * modules/search-tests: Likewise.
24235         * modules/select-tests: Likewise.
24236         * modules/signal-tests: Likewise.
24237         * modules/stdbool-tests: Likewise.
24238         * modules/stddef-tests: Likewise.
24239         * modules/stdint-tests: Likewise.
24240         * modules/stdio-tests: Likewise.
24241         * modules/stdlib-tests: Likewise.
24242         * modules/string-tests: Likewise.
24243         * modules/strings-tests: Likewise.
24244         * modules/sys_select-tests: Likewise.
24245         * modules/sys_socket-tests: Likewise.
24246         * modules/sys_stat-tests: Likewise.
24247         * modules/sys_time-tests: Likewise.
24248         * modules/sys_utsname-tests: Likewise.
24249         * modules/sysexits-tests: Likewise.
24250         * modules/time-tests: Likewise.
24251         * modules/trunc-tests: Likewise.
24252         * modules/truncf-tests: Likewise.
24253         * modules/truncl-tests: Likewise.
24254         * modules/tsearch-tests: Likewise.
24255         * modules/unistd-tests: Likewise.
24256         * modules/wchar-tests: Likewise.
24257         * modules/wctype-tests: Likewise.
24258
24259         tests: fix license on several tests
24260         * tests/test-des.c: Update to GPLv3+.
24261         * tests/test-flock.c: Likewise.
24262         * tests/test-fsync.c: Likewise.
24263         * tests/test-futimens.h: Likewise.
24264         * tests/test-gc-arcfour.c: Likewise.
24265         * tests/test-gc-arctwo.c: Likewise.
24266         * tests/test-gc-des.c: Likewise.
24267         * tests/test-gc-hmac-md5.c: Likewise.
24268         * tests/test-gc-hmac-sha1.c: Likewise.
24269         * tests/test-gc-md2.c: Likewise.
24270         * tests/test-gc-md4.c: Likewise.
24271         * tests/test-gc-md5.c: Likewise.
24272         * tests/test-gc-pbkdf2-sha1.c: Likewise.
24273         * tests/test-gc-rijndael.c: Likewise.
24274         * tests/test-gc-sha1.c: Likewise.
24275         * tests/test-gc.c: Likewise.
24276         * tests/test-getcwd.c: Likewise.
24277         * tests/test-link.c: Likewise.
24278         * tests/test-link.h: Likewise.
24279         * tests/test-lutimens.h: Likewise.
24280         * tests/test-md2.c: Likewise.
24281         * tests/test-md4.c: Likewise.
24282         * tests/test-mkdir.h: Likewise.
24283         * tests/test-rename.c: Likewise.
24284         * tests/test-rename.h: Likewise.
24285         * tests/test-safe-alloc.c: Likewise.
24286         * tests/test-utimens-common.h: Likewise.
24287         * tests/test-utimens.h: Likewise.
24288
24289         maint: sync license texts
24290         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
24291         * doc/gpl-3.0.texi: Revert copyright year update.
24292         * doc/lgpl-3.0.texi: Likewise.
24293
24294 2009-12-29  Jim Meyering  <meyering@redhat.com>
24295
24296         update nearly all FSF copyright year lists to include 2009
24297         The files named by the following are exempted:
24298             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
24299               test -f "$dst" && { echo "$dst"; continue; }
24300               test -d "$dst" || continue
24301               echo "$dst"/$(basename "$src")
24302             done > exempt
24303             git ls-files tests/unictype >> exempt
24304         In the remaining files, convert to all-interval notation if
24305         - there is already at least one year interval like 2000-2003
24306         - the file is maintained by me
24307         - the file is in lib/uni*/, where that style already prevails
24308         Otherwise, use update-copyright's default.
24309
24310 2009-12-29  Simon Josefsson  <simon@josefsson.org>
24311         and Eric Blake  <ebb9@byu.net>
24312
24313         tests: don't require debug system() to pass
24314         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
24315         * tests/test-rmdir.h (test_rmdir_func): Likewise.
24316         * tests/test-unlink.h (test_unlink_func): Likewise.
24317         * tests/test-fstatat.c (main): ...into callers.
24318         * tests/test-lstat.c (main): Likewise.
24319         * tests/test-rmdir.c (main): Likewise.
24320         * tests/test-unlink.c (main): Likewise.
24321         * tests/test-unlinkat.c (main): Likewise.
24322         * tests/test-areadlink-with-size.c (main): Don't require a
24323         debug-only system call to pass, aiding cross-testing to mingw.
24324         * tests/test-areadlink.c (main): Likewise.
24325         * tests/test-areadlinkat-with-size.c (main): Likewise.
24326         * tests/test-areadlinkat.c (main): Likewise.
24327         * tests/test-canonicalize-lgpl.c (main): Likewise.
24328         * tests/test-canonicalize.c (main): Likewise.
24329         * tests/test-chown.c (main): Likewise.
24330         * tests/test-fchownat.c (main): Likewise.
24331         * tests/test-lchown.c (main): Likewise.
24332         * tests/test-fdutimensat.c (main): Likewise.
24333         * tests/test-futimens.c (main): Likewise.
24334         * tests/test-link.c (main): Likewise.
24335         * tests/test-linkat.c (main): Likewise.
24336         * tests/test-mkdir.c (main): Likewise.
24337         * tests/test-mkdirat.c (main): Likewise.
24338         * tests/test-mkfifo.c (main): Likewise.
24339         * tests/test-mkfifoat.c (main): Likewise.
24340         * tests/test-mknod.c (main): Likewise.
24341         * tests/test-readlink.c (main): Likewise.
24342         * tests/test-remove.c (main): Likewise.
24343         * tests/test-rename.c (main): Likewise.
24344         * tests/test-renameat.c (main): Likewise.
24345         * tests/test-symlink.c (main): Likewise.
24346         * tests/test-symlinkat.c (main): Likewise.
24347         * tests/test-utimens.c (main): Likewise.
24348         * tests/test-utimensat.c (main): Likewise.
24349
24350 2009-12-29  Simon Josefsson  <simon@josefsson.org>
24351
24352         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
24353         on $(UNUSED_PARAMETER_H) to avoid build failure.
24354
24355 2009-12-28  Jim Meyering  <meyering@redhat.com>
24356
24357         update-copyright: you may specify a max. line length other than 72
24358         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
24359
24360         maint: use consistent FSF copyright line syntax
24361         * lib/posixtm.c: Add missing comma in FSF copyright line.
24362         * lib/posixtm.h: Likewise.
24363         * lib/getugroups.c: Add missing ", Inc.".
24364
24365         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
24366         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
24367         FSF copyright line.  Remove trailing blanks.
24368
24369 2009-12-28  Eric Blake  <ebb9@byu.net>
24370
24371         test-dup2: reduce dependencies
24372         * modules/cloexec (Configure.ac): Set witness.
24373         * modules/dup2-tests (Depends-on): Drop cloexec.
24374         * tests/test-dup2.c (main): Skip portion of test if cloexec module
24375         not present.
24376         Suggested by Bruno Haible.
24377
24378 2009-12-26  Bruno Haible  <bruno@clisp.org>
24379
24380         Remove an unneeded dependency.
24381         * modules/fseterr (Depends-on): Remove dup2.
24382
24383 2009-12-26  Eric Blake  <ebb9@byu.net>
24384
24385         tests: use macros.h in more places
24386         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
24387         (ASSERT_STREAM): Provide default of stderr.
24388         * tests/test-dirent-safer.c: Include macros.h, using alternate
24389         stream for assertions.
24390         * tests/test-dup-safer.c: Likewise.
24391         * tests/test-freopen-safer.c: Likewise.
24392         * tests/test-getopt.c: Likewise.
24393         * tests/test-openat-safer.c: Likewise.
24394         * tests/test-pipe.c: Likewise.
24395         * tests/test-popen-safer.c: Likewise.
24396         * modules/dirent-safer-tests (Files): Include macros.h.
24397         * modules/unistd-safer-tests (Files): Likewise.
24398         * modules/freopen-safer-tests (Files): Likewise.
24399         * modules/getopt-posix-tests (Files): Likewise.
24400         * modules/openat-safer-tests (Files): Likewise.
24401         * modules/pipe-tests (Files): Likewise.
24402
24403 2009-12-26  Bruno Haible  <bruno@clisp.org>
24404
24405         javacomp: Portability fix.
24406         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
24407         that it also works on Solaris.
24408
24409 2009-12-26  Bruno Haible  <bruno@clisp.org>
24410
24411         localename: Fix storage allocation of gl_locale_name_thread's result.
24412         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
24413         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
24414         all platforms that have 'uselocale'.
24415         (gl_locale_name_thread_unsafe): New function, extracted from
24416         gl_locale_name_thread.
24417         (gl_locale_name_thread): Call struniq on all platforms that have
24418         'uselocale'.
24419         * tests/test-localename.c (test_locale_name_thread): Check that the
24420         resulting strings are permanently allocated.
24421         * modules/localename-tests (Depends-on): Add strdup.
24422
24423 2009-12-26  Bruno Haible  <bruno@clisp.org>
24424
24425         * tests/test-localename.c (categories): Fill in the strings.
24426
24427 2009-12-26  Jim Meyering  <meyering@redhat.com>
24428
24429         isdir: complete the removal of m4/isdir.m4
24430         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
24431
24432         isdir: clean up, since at least grep still uses it
24433         * lib/isdir.c: Include "isdir.h".
24434         (S_ISDIR): Remove now-unneeded definition.
24435         * modules/isdir (Files): Add lib/isdir.h.
24436         * lib/isdir.h: New file, with declaration.
24437         * m4/isdir.m4: Remove file -- unneeded.
24438
24439 2009-12-25  Bruno Haible  <bruno@clisp.org>
24440
24441         selinux-h: Make generated .h files standalone.
24442         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
24443         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
24444         * lib/se-selinux.in.h: Likewise.
24445         * modules/selinux-h (Depends-on): Add unused-parameter.
24446         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
24447         selinux/selinux.h and selinux/context.h.
24448         Suggested by Eric Blake.
24449
24450 2009-12-25  Bruno Haible  <bruno@clisp.org>
24451
24452         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
24453         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
24454         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
24455         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
24456         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
24457
24458 2009-12-24  Bruno Haible  <bruno@clisp.org>
24459
24460         openat: Fix warning.
24461         * lib/openat-proc.c: Include <unistd.h>.
24462
24463 2009-12-24  Bruno Haible  <bruno@clisp.org>
24464
24465         New module 'unused-parameter'.
24466         * build-aux/unused-parameter.h: New file, extracted from earlier
24467         gnulib-common.m4.
24468         * modules/unused-parameter: New file.
24469         * lib/unistr.h: Include unused-parameter.h.
24470         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
24471         _GL_UNUSED.
24472         * modules/unistr/base (Depends-on): Add unused-parameter.
24473
24474 2009-12-24  Bruno Haible  <bruno@clisp.org>
24475
24476         Add missing dependencies to 'extensions' module.
24477         * m4/extensions.m4: Add comment.
24478         * modules/accept4 (Depends-on): Add extensions.
24479         * modules/dup3 (Depends-on): Likewise.
24480         * modules/fcntl (Depends-on): Likewise.
24481         * modules/futimens (Depends-on): Likewise.
24482         * modules/mknod (Depends-on): Likewise.
24483         * modules/pipe2 (Depends-on): Likewise.
24484         * modules/stat-time (Depends-on): Likewise.
24485         * modules/strcasestr-simple (Depends-on): Likewise.
24486         * modules/strsignal (Depends-on): Likewise.
24487         * modules/utimensat (Depends-on): Likewise.
24488         * modules/localcharset (Depends-on): Likewise. Needed because of
24489         gl_FCNTL_O_FLAGS.
24490         * modules/wcrtomb (Depends-on): Likewise. Needed because of
24491         AC_TYPE_MBSTATE_T.
24492         * modules/wcsnrtombs (Depends-on): Likewise.
24493         * modules/wcsrtombs (Depends-on): Likewise.
24494
24495 2009-12-24  Bruno Haible  <bruno@clisp.org>
24496
24497         binary-io: Avoid gcc warning due to SET_BINARY.
24498         * lib/binary-io.h (SET_BINARY): Cast the result to void.
24499         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
24500
24501 2009-12-24  Bruno Haible  <bruno@clisp.org>
24502
24503         Avoid future namespace pollution on glibc systems.
24504         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
24505         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
24506         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
24507         glibc systems.
24508
24509 2009-12-24  Bruno Haible  <bruno@clisp.org>
24510
24511         Refactor common macros used in tests.
24512         * tests/macros.h: New file.
24513         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
24514         and/or <stdlib.h>, if appropriate.
24515         (ASSERT, SIZEOF): Remove macros.
24516         * tests/test-areadlink-with-size.c: Likewise.
24517         * tests/test-areadlinkat.c: Likewise.
24518         * tests/test-areadlinkat-with-size.c: Likewise.
24519         * tests/test-argmatch.c: Likewise.
24520         * tests/test-argv-iter.c: Likewise.
24521         * tests/test-array-mergesort.c: Likewise.
24522         * tests/test-array_list.c: Likewise.
24523         * tests/test-array_oset.c: Likewise.
24524         * tests/test-avltree_list.c: Likewise.
24525         * tests/test-avltree_oset.c: Likewise.
24526         * tests/test-avltreehash_list.c: Likewise.
24527         * tests/test-base64.c: Likewise.
24528         * tests/test-binary-io.c: Likewise.
24529         * tests/test-bitrotate.c: Likewise.
24530         * tests/test-btowc.c: Likewise.
24531         * tests/test-byteswap.c: Likewise.
24532         * tests/test-c-ctype.c: Likewise.
24533         * tests/test-c-stack.c: Likewise.
24534         * tests/test-c-strcasecmp.c: Likewise.
24535         * tests/test-c-strcasestr.c: Likewise.
24536         * tests/test-c-strncasecmp.c: Likewise.
24537         * tests/test-c-strstr.c: Likewise.
24538         * tests/test-canonicalize-lgpl.c: Likewise.
24539         * tests/test-canonicalize.c: Likewise.
24540         * tests/test-carray_list.c: Likewise.
24541         * tests/test-ceilf1.c: Likewise.
24542         * tests/test-ceilf2.c: Likewise.
24543         * tests/test-ceill.c: Likewise.
24544         * tests/test-chown.c: Likewise.
24545         * tests/test-cloexec.c: Likewise.
24546         * tests/test-copy-acl.c: Likewise.
24547         * tests/test-copy-file.c: Likewise.
24548         * tests/test-count-one-bits.c: Likewise.
24549         * tests/test-dprintf-posix.c: Likewise.
24550         * tests/test-dup2.c: Likewise.
24551         * tests/test-dup3.c: Likewise.
24552         * tests/test-duplocale.c: Likewise.
24553         * tests/test-fbufmode.c: Likewise.
24554         * tests/test-fchdir.c: Likewise.
24555         * tests/test-fchownat.c: Likewise.
24556         * tests/test-fcntl-safer.c: Likewise.
24557         * tests/test-fcntl.c: Likewise.
24558         * tests/test-fdopendir.c: Likewise.
24559         * tests/test-fdutimensat.c: Likewise.
24560         * tests/test-fflush2.c: Likewise.
24561         * tests/test-file-has-acl.c: Likewise.
24562         * tests/test-filevercmp.c: Likewise.
24563         * tests/test-flock.c: Likewise.
24564         * tests/test-floorf1.c: Likewise.
24565         * tests/test-floorf2.c: Likewise.
24566         * tests/test-floorl.c: Likewise.
24567         * tests/test-fnmatch.c: Likewise.
24568         * tests/test-fopen.h: Likewise.
24569         * tests/test-fpending.c: Likewise.
24570         * tests/test-fprintf-posix.c: Likewise.
24571         * tests/test-fpurge.c: Likewise.
24572         * tests/test-freadable.c: Likewise.
24573         * tests/test-freadahead.c: Likewise.
24574         * tests/test-freading.c: Likewise.
24575         * tests/test-freadptr.c: Likewise.
24576         * tests/test-freadptr2.c: Likewise.
24577         * tests/test-freadseek.c: Likewise.
24578         * tests/test-freopen.c: Likewise.
24579         * tests/test-frexp.c: Likewise.
24580         * tests/test-frexpl.c: Likewise.
24581         * tests/test-fseek.c: Likewise.
24582         * tests/test-fseeko.c: Likewise.
24583         * tests/test-fstatat.c: Likewise.
24584         * tests/test-fstrcmp.c: Likewise.
24585         * tests/test-fsync.c: Likewise.
24586         * tests/test-ftell.c: Likewise.
24587         * tests/test-ftello.c: Likewise.
24588         * tests/test-func.c: Likewise.
24589         * tests/test-futimens.c: Likewise.
24590         * tests/test-fwritable.c: Likewise.
24591         * tests/test-fwriting.c: Likewise.
24592         * tests/test-getcwd.c: Likewise.
24593         * tests/test-getdate.c: Likewise.
24594         * tests/test-getdelim.c: Likewise.
24595         * tests/test-getdtablesize.c: Likewise.
24596         * tests/test-getgroups.c: Likewise.
24597         * tests/test-getline.c: Likewise.
24598         * tests/test-getndelim2.c: Likewise.
24599         * tests/test-glob.c: Likewise.
24600         * tests/test-hash.c: Likewise.
24601         * tests/test-i-ring.c: Likewise.
24602         * tests/test-iconv-utf.c: Likewise.
24603         * tests/test-iconv.c: Likewise.
24604         * tests/test-idpriv-drop.c: Likewise.
24605         * tests/test-idpriv-droptemp.c: Likewise.
24606         * tests/test-inet_ntop.c: Likewise.
24607         * tests/test-inet_pton.c: Likewise.
24608         * tests/test-isblank.c: Likewise.
24609         * tests/test-isfinite.c: Likewise.
24610         * tests/test-isinf.c: Likewise.
24611         * tests/test-isnan.c: Likewise.
24612         * tests/test-isnand.h: Likewise.
24613         * tests/test-isnanf.h: Likewise.
24614         * tests/test-isnanl.h: Likewise.
24615         * tests/test-lchown.c: Likewise.
24616         * tests/test-ldexpl.c: Likewise.
24617         * tests/test-link.c: Likewise.
24618         * tests/test-linkat.c: Likewise.
24619         * tests/test-linked_list.c: Likewise.
24620         * tests/test-linkedhash_list.c: Likewise.
24621         * tests/test-localename.c: Likewise.
24622         * tests/test-lseek.c: Likewise.
24623         * tests/test-lstat.c: Likewise.
24624         * tests/test-mbmemcasecmp.c: Likewise.
24625         * tests/test-mbmemcasecoll.c: Likewise.
24626         * tests/test-mbrtowc.c: Likewise.
24627         * tests/test-mbscasecmp.c: Likewise.
24628         * tests/test-mbscasestr1.c: Likewise.
24629         * tests/test-mbscasestr2.c: Likewise.
24630         * tests/test-mbscasestr3.c: Likewise.
24631         * tests/test-mbscasestr4.c: Likewise.
24632         * tests/test-mbschr.c: Likewise.
24633         * tests/test-mbscspn.c: Likewise.
24634         * tests/test-mbsinit.c: Likewise.
24635         * tests/test-mbsncasecmp.c: Likewise.
24636         * tests/test-mbsnrtowcs.c: Likewise.
24637         * tests/test-mbspbrk.c: Likewise.
24638         * tests/test-mbspcasecmp.c: Likewise.
24639         * tests/test-mbsrchr.c: Likewise.
24640         * tests/test-mbsrtowcs.c: Likewise.
24641         * tests/test-mbsspn.c: Likewise.
24642         * tests/test-mbsstr1.c: Likewise.
24643         * tests/test-mbsstr2.c: Likewise.
24644         * tests/test-mbsstr3.c: Likewise.
24645         * tests/test-memchr.c: Likewise.
24646         * tests/test-memchr2.c: Likewise.
24647         * tests/test-memcmp.c: Likewise.
24648         * tests/test-memmem.c: Likewise.
24649         * tests/test-memrchr.c: Likewise.
24650         * tests/test-mkdir.c: Likewise.
24651         * tests/test-mkdirat.c: Likewise.
24652         * tests/test-mkfifo.c: Likewise.
24653         * tests/test-mkfifoat.c: Likewise.
24654         * tests/test-mknod.c: Likewise.
24655         * tests/test-nanosleep.c: Likewise.
24656         * tests/test-nl_langinfo.c: Likewise.
24657         * tests/test-obstack-printf.c: Likewise.
24658         * tests/test-open.c: Likewise.
24659         * tests/test-openat.c: Likewise.
24660         * tests/test-pipe-filter-gi1.c: Likewise.
24661         * tests/test-pipe-filter-gi2-main.c: Likewise.
24662         * tests/test-pipe-filter-ii1.c: Likewise.
24663         * tests/test-pipe-filter-ii2-main.c: Likewise.
24664         * tests/test-pipe2.c: Likewise.
24665         * tests/test-popen.h: Likewise.
24666         * tests/test-posixtm.c: Likewise.
24667         * tests/test-pread.c: Likewise.
24668         * tests/test-printf-frexp.c: Likewise.
24669         * tests/test-printf-frexpl.c: Likewise.
24670         * tests/test-printf-posix.c: Likewise.
24671         * tests/test-priv-set.c: Likewise.
24672         * tests/test-quotearg.c: Likewise.
24673         * tests/test-random_r.c: Likewise.
24674         * tests/test-rawmemchr.c: Likewise.
24675         * tests/test-rbtree_list.c: Likewise.
24676         * tests/test-rbtree_oset.c: Likewise.
24677         * tests/test-rbtreehash_list.c: Likewise.
24678         * tests/test-readlink.c: Likewise.
24679         * tests/test-remove.c: Likewise.
24680         * tests/test-rename.c: Likewise.
24681         * tests/test-renameat.c: Likewise.
24682         * tests/test-rmdir.c: Likewise.
24683         * tests/test-round1.c: Likewise.
24684         * tests/test-roundf1.c: Likewise.
24685         * tests/test-roundl.c: Likewise.
24686         * tests/test-safe-alloc.c: Likewise.
24687         * tests/test-sameacls.c: Likewise.
24688         * tests/test-set-mode-acl.c: Likewise.
24689         * tests/test-setenv.c: Likewise.
24690         * tests/test-sigaction.c: Likewise.
24691         * tests/test-signbit.c: Likewise.
24692         * tests/test-sleep.c: Likewise.
24693         * tests/test-snprintf-posix.c: Likewise.
24694         * tests/test-snprintf.c: Likewise.
24695         * tests/test-sprintf-posix.c: Likewise.
24696         * tests/test-stat-time.c: Likewise.
24697         * tests/test-stat.c: Likewise.
24698         * tests/test-strcasestr.c: Likewise.
24699         * tests/test-strchrnul.c: Likewise.
24700         * tests/test-strerror.c: Likewise.
24701         * tests/test-striconv.c: Likewise.
24702         * tests/test-striconveh.c: Likewise.
24703         * tests/test-striconveha.c: Likewise.
24704         * tests/test-strsignal.c: Likewise.
24705         * tests/test-strstr.c: Likewise.
24706         * tests/test-strtod.c: Likewise.
24707         * tests/test-strverscmp.c: Likewise.
24708         * tests/test-symlink.c: Likewise.
24709         * tests/test-symlinkat.c: Likewise.
24710         * tests/test-trunc1.c: Likewise.
24711         * tests/test-trunc2.c: Likewise.
24712         * tests/test-truncf1.c: Likewise.
24713         * tests/test-truncf2.c: Likewise.
24714         * tests/test-truncl.c: Likewise.
24715         * tests/test-uname.c: Likewise.
24716         * tests/test-unlink.c: Likewise.
24717         * tests/test-unlinkat.c: Likewise.
24718         * tests/test-unsetenv.c: Likewise.
24719         * tests/test-usleep.c: Likewise.
24720         * tests/test-utimens.c: Likewise.
24721         * tests/test-utimensat.c: Likewise.
24722         * tests/test-vasnprintf-posix.c: Likewise.
24723         * tests/test-vasnprintf-posix2.c: Likewise.
24724         * tests/test-vasnprintf.c: Likewise.
24725         * tests/test-vasprintf-posix.c: Likewise.
24726         * tests/test-vasprintf.c: Likewise.
24727         * tests/test-vdprintf-posix.c: Likewise.
24728         * tests/test-vfprintf-posix.c: Likewise.
24729         * tests/test-vprintf-posix.c: Likewise.
24730         * tests/test-vsnprintf-posix.c: Likewise.
24731         * tests/test-vsnprintf.c: Likewise.
24732         * tests/test-vsprintf-posix.c: Likewise.
24733         * tests/test-wcrtomb.c: Likewise.
24734         * tests/test-wcsnrtombs.c: Likewise.
24735         * tests/test-wcsrtombs.c: Likewise.
24736         * tests/test-wctype.c: Likewise.
24737         * tests/test-wcwidth.c: Likewise.
24738         * tests/test-xfprintf-posix.c: Likewise.
24739         * tests/test-xmemdup0.c: Likewise.
24740         * tests/test-xprintf-posix.c: Likewise.
24741         * tests/test-xvasprintf.c: Likewise.
24742         * tests/unicase/test-locale-language.c: Likewise.
24743         * tests/unicase/test-mapping-part1.h: Likewise.
24744         * tests/unicase/test-predicate-part1.h: Likewise.
24745         * tests/unicase/test-u8-casecmp.c: Likewise.
24746         * tests/unicase/test-u8-casecoll.c: Likewise.
24747         * tests/unicase/test-u8-casefold.c: Likewise.
24748         * tests/unicase/test-u8-is-cased.c: Likewise.
24749         * tests/unicase/test-u8-is-casefolded.c: Likewise.
24750         * tests/unicase/test-u8-is-lowercase.c: Likewise.
24751         * tests/unicase/test-u8-is-titlecase.c: Likewise.
24752         * tests/unicase/test-u8-is-uppercase.c: Likewise.
24753         * tests/unicase/test-u8-tolower.c: Likewise.
24754         * tests/unicase/test-u8-totitle.c: Likewise.
24755         * tests/unicase/test-u8-toupper.c: Likewise.
24756         * tests/unicase/test-u16-casecmp.c: Likewise.
24757         * tests/unicase/test-u16-casecoll.c: Likewise.
24758         * tests/unicase/test-u16-casefold.c: Likewise.
24759         * tests/unicase/test-u16-is-cased.c: Likewise.
24760         * tests/unicase/test-u16-is-casefolded.c: Likewise.
24761         * tests/unicase/test-u16-is-lowercase.c: Likewise.
24762         * tests/unicase/test-u16-is-titlecase.c: Likewise.
24763         * tests/unicase/test-u16-is-uppercase.c: Likewise.
24764         * tests/unicase/test-u16-tolower.c: Likewise.
24765         * tests/unicase/test-u16-totitle.c: Likewise.
24766         * tests/unicase/test-u16-toupper.c: Likewise.
24767         * tests/unicase/test-u32-casecmp.c: Likewise.
24768         * tests/unicase/test-u32-casecoll.c: Likewise.
24769         * tests/unicase/test-u32-casefold.c: Likewise.
24770         * tests/unicase/test-u32-is-cased.c: Likewise.
24771         * tests/unicase/test-u32-is-casefolded.c: Likewise.
24772         * tests/unicase/test-u32-is-lowercase.c: Likewise.
24773         * tests/unicase/test-u32-is-titlecase.c: Likewise.
24774         * tests/unicase/test-u32-is-uppercase.c: Likewise.
24775         * tests/unicase/test-u32-tolower.c: Likewise.
24776         * tests/unicase/test-u32-totitle.c: Likewise.
24777         * tests/unicase/test-u32-toupper.c: Likewise.
24778         * tests/unicase/test-ulc-casecmp.c: Likewise.
24779         * tests/unicase/test-ulc-casecoll.c: Likewise.
24780         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
24781         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
24782         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
24783         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
24784         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
24785         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
24786         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
24787         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
24788         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
24789         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
24790         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
24791         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
24792         * tests/unictype/test-bidi_byname.c: Likewise.
24793         * tests/unictype/test-bidi_name.c: Likewise.
24794         * tests/unictype/test-bidi_of.c: Likewise.
24795         * tests/unictype/test-bidi_test.c: Likewise.
24796         * tests/unictype/test-block_list.c: Likewise.
24797         * tests/unictype/test-block_of.c: Likewise.
24798         * tests/unictype/test-block_test.c: Likewise.
24799         * tests/unictype/test-categ_and.c: Likewise.
24800         * tests/unictype/test-categ_and_not.c: Likewise.
24801         * tests/unictype/test-categ_byname.c: Likewise.
24802         * tests/unictype/test-categ_name.c: Likewise.
24803         * tests/unictype/test-categ_none.c: Likewise.
24804         * tests/unictype/test-categ_of.c: Likewise.
24805         * tests/unictype/test-categ_or.c: Likewise.
24806         * tests/unictype/test-categ_test_withtable.c: Likewise.
24807         * tests/unictype/test-combining.c: Likewise.
24808         * tests/unictype/test-decdigit.c: Likewise.
24809         * tests/unictype/test-digit.c: Likewise.
24810         * tests/unictype/test-mirror.c: Likewise.
24811         * tests/unictype/test-numeric.c: Likewise.
24812         * tests/unictype/test-pr_byname.c: Likewise.
24813         * tests/unictype/test-pr_test.c: Likewise.
24814         * tests/unictype/test-predicate-part1.h: Likewise.
24815         * tests/unictype/test-scripts.c: Likewise.
24816         * tests/unictype/test-sy_c_ident.c: Likewise.
24817         * tests/unictype/test-sy_java_ident.c: Likewise.
24818         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
24819         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
24820         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
24821         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
24822         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
24823         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
24824         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
24825         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
24826         * tests/uninorm/test-canonical-decomposition.c: Likewise.
24827         * tests/uninorm/test-compat-decomposition.c: Likewise.
24828         * tests/uninorm/test-composition.c: Likewise.
24829         * tests/uninorm/test-decomposing-form.c: Likewise.
24830         * tests/uninorm/test-decomposition.c: Likewise.
24831         * tests/uninorm/test-u8-nfc.c: Likewise.
24832         * tests/uninorm/test-u8-nfd.c: Likewise.
24833         * tests/uninorm/test-u8-nfkc.c: Likewise.
24834         * tests/uninorm/test-u8-nfkd.c: Likewise.
24835         * tests/uninorm/test-u8-normcmp.c: Likewise.
24836         * tests/uninorm/test-u8-normcoll.c: Likewise.
24837         * tests/uninorm/test-u16-nfc.c: Likewise.
24838         * tests/uninorm/test-u16-nfd.c: Likewise.
24839         * tests/uninorm/test-u16-nfkc.c: Likewise.
24840         * tests/uninorm/test-u16-nfkd.c: Likewise.
24841         * tests/uninorm/test-u16-normcmp.c: Likewise.
24842         * tests/uninorm/test-u16-normcoll.c: Likewise.
24843         * tests/uninorm/test-u32-nfc.c: Likewise.
24844         * tests/uninorm/test-u32-nfd.c: Likewise.
24845         * tests/uninorm/test-u32-nfkc.c: Likewise.
24846         * tests/uninorm/test-u32-nfkd.c: Likewise.
24847         * tests/uninorm/test-u32-normalize-big.c: Likewise.
24848         * tests/uninorm/test-u32-normcmp.c: Likewise.
24849         * tests/uninorm/test-u32-normcoll.c: Likewise.
24850         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
24851         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
24852         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
24853         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
24854         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
24855         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
24856         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
24857         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
24858         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
24859         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
24860         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
24861         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
24862         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
24863         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
24864         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
24865         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
24866         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
24867         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
24868         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
24869         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
24870         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
24871         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
24872         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
24873         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
24874         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
24875         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
24876         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
24877         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
24878         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
24879         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
24880         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
24881         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
24882         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
24883         * tests/uniwidth/test-u8-strwidth.c: Likewise.
24884         * tests/uniwidth/test-u8-width.c: Likewise.
24885         * tests/uniwidth/test-u16-strwidth.c: Likewise.
24886         * tests/uniwidth/test-u16-width.c: Likewise.
24887         * tests/uniwidth/test-u32-strwidth.c: Likewise.
24888         * tests/uniwidth/test-u32-width.c: Likewise.
24889         * tests/uniwidth/test-uc_width.c: Likewise.
24890         * tests/uniwidth/test-uc_width2.c: Likewise.
24891         * modules/acl-tests (Files): Add tests/macros.h.
24892         * modules/areadlink-tests (Files): Likewise.
24893         * modules/areadlink-with-size-tests (Files): Likewise.
24894         * modules/areadlinkat-tests (Files): Likewise.
24895         * modules/areadlinkat-with-size-tests (Files): Likewise.
24896         * modules/argmatch-tests (Files): Likewise.
24897         * modules/argv-iter-tests (Files): Likewise.
24898         * modules/array-list-tests (Files): Likewise.
24899         * modules/array-mergesort-tests (Files): Likewise.
24900         * modules/array-oset-tests (Files): Likewise.
24901         * modules/avltree-list-tests (Files): Likewise.
24902         * modules/avltree-oset-tests (Files): Likewise.
24903         * modules/avltreehash-list-tests (Files): Likewise.
24904         * modules/base64-tests (Files): Likewise.
24905         * modules/binary-io-tests (Files): Likewise.
24906         * modules/bitrotate-tests (Files): Likewise.
24907         * modules/btowc-tests (Files): Likewise.
24908         * modules/byteswap-tests (Files): Likewise.
24909         * modules/c-ctype-tests (Files): Likewise.
24910         * modules/c-stack-tests (Files): Likewise.
24911         * modules/c-strcase-tests (Files): Likewise.
24912         * modules/c-strcasestr-tests (Files): Likewise.
24913         * modules/c-strstr-tests (Files): Likewise.
24914         * modules/canonicalize-lgpl-tests (Files): Likewise.
24915         * modules/canonicalize-tests (Files): Likewise.
24916         * modules/carray-list-tests (Files): Likewise.
24917         * modules/ceilf-tests (Files): Likewise.
24918         * modules/ceill-tests (Files): Likewise.
24919         * modules/chown-tests (Files): Likewise.
24920         * modules/cloexec-tests (Files): Likewise.
24921         * modules/copy-file-tests (Files): Likewise.
24922         * modules/count-one-bits-tests (Files): Likewise.
24923         * modules/dprintf-posix-tests (Files): Likewise.
24924         * modules/dup2-tests (Files): Likewise.
24925         * modules/dup3-tests (Files): Likewise.
24926         * modules/duplocale-tests (Files): Likewise.
24927         * modules/fbufmode-tests (Files): Likewise.
24928         * modules/fchdir-tests (Files): Likewise.
24929         * modules/fcntl-safer-tests (Files): Likewise.
24930         * modules/fcntl-tests (Files): Likewise.
24931         * modules/fdopendir-tests (Files): Likewise.
24932         * modules/fdutimensat-tests (Files): Likewise.
24933         * modules/fflush-tests (Files): Likewise.
24934         * modules/filevercmp-tests (Files): Likewise.
24935         * modules/flock-tests (Files): Likewise.
24936         * modules/floorf-tests (Files): Likewise.
24937         * modules/floorl-tests (Files): Likewise.
24938         * modules/fnmatch-tests (Files): Likewise.
24939         * modules/fopen-safer-tests (Files): Likewise.
24940         * modules/fopen-tests (Files): Likewise.
24941         * modules/fpending-tests (Files): Likewise.
24942         * modules/fprintf-posix-tests (Files): Likewise.
24943         * modules/fpurge-tests (Files): Likewise.
24944         * modules/freadable-tests (Files): Likewise.
24945         * modules/freadahead-tests (Files): Likewise.
24946         * modules/freading-tests (Files): Likewise.
24947         * modules/freadptr-tests (Files): Likewise.
24948         * modules/freadseek-tests (Files): Likewise.
24949         * modules/freopen-tests (Files): Likewise.
24950         * modules/frexp-nolibm-tests (Files): Likewise.
24951         * modules/frexp-tests (Files): Likewise.
24952         * modules/frexpl-nolibm-tests (Files): Likewise.
24953         * modules/frexpl-tests (Files): Likewise.
24954         * modules/fseek-tests (Files): Likewise.
24955         * modules/fseeko-tests (Files): Likewise.
24956         * modules/fstrcmp-tests (Files): Likewise.
24957         * modules/fsync-tests (Files): Likewise.
24958         * modules/ftell-tests (Files): Likewise.
24959         * modules/ftello-tests (Files): Likewise.
24960         * modules/func-tests (Files): Likewise.
24961         * modules/futimens-tests (Files): Likewise.
24962         * modules/fwritable-tests (Files): Likewise.
24963         * modules/fwriting-tests (Files): Likewise.
24964         * modules/getcwd-tests (Files): Likewise.
24965         * modules/getdate-tests (Files): Likewise.
24966         * modules/getdelim-tests (Files): Likewise.
24967         * modules/getdtablesize-tests (Files): Likewise.
24968         * modules/getgroups-tests (Files): Likewise.
24969         * modules/getline-tests (Files): Likewise.
24970         * modules/getndelim2-tests (Files): Likewise.
24971         * modules/glob-tests (Files): Likewise.
24972         * modules/hash-tests (Files): Likewise.
24973         * modules/i-ring-tests (Files): Likewise.
24974         * modules/iconv-tests (Files): Likewise.
24975         * modules/iconv_open-utf-tests (Files): Likewise.
24976         * modules/idpriv-drop-tests (Files): Likewise.
24977         * modules/idpriv-droptemp-tests (Files): Likewise.
24978         * modules/inet_ntop-tests (Files): Likewise.
24979         * modules/inet_pton-tests (Files): Likewise.
24980         * modules/isblank-tests (Files): Likewise.
24981         * modules/isfinite-tests (Files): Likewise.
24982         * modules/isinf-tests (Files): Likewise.
24983         * modules/isnan-tests (Files): Likewise.
24984         * modules/isnand-nolibm-tests (Files): Likewise.
24985         * modules/isnand-tests (Files): Likewise.
24986         * modules/isnanf-nolibm-tests (Files): Likewise.
24987         * modules/isnanf-tests (Files): Likewise.
24988         * modules/isnanl-nolibm-tests (Files): Likewise.
24989         * modules/isnanl-tests (Files): Likewise.
24990         * modules/lchown-tests (Files): Likewise.
24991         * modules/ldexpl-tests (Files): Likewise.
24992         * modules/link-tests (Files): Likewise.
24993         * modules/linkat-tests (Files): Likewise.
24994         * modules/linked-list-tests (Files): Likewise.
24995         * modules/linkedhash-list-tests (Files): Likewise.
24996         * modules/localename-tests (Files): Likewise.
24997         * modules/lseek-tests (Files): Likewise.
24998         * modules/lstat-tests (Files): Likewise.
24999         * modules/mbmemcasecmp-tests (Files): Likewise.
25000         * modules/mbmemcasecoll-tests (Files): Likewise.
25001         * modules/mbrtowc-tests (Files): Likewise.
25002         * modules/mbscasecmp-tests (Files): Likewise.
25003         * modules/mbscasestr-tests (Files): Likewise.
25004         * modules/mbschr-tests (Files): Likewise.
25005         * modules/mbscspn-tests (Files): Likewise.
25006         * modules/mbsinit-tests (Files): Likewise.
25007         * modules/mbsncasecmp-tests (Files): Likewise.
25008         * modules/mbsnrtowcs-tests (Files): Likewise.
25009         * modules/mbspbrk-tests (Files): Likewise.
25010         * modules/mbspcasecmp-tests (Files): Likewise.
25011         * modules/mbsrchr-tests (Files): Likewise.
25012         * modules/mbsrtowcs-tests (Files): Likewise.
25013         * modules/mbsspn-tests (Files): Likewise.
25014         * modules/mbsstr-tests (Files): Likewise.
25015         * modules/memchr-tests (Files): Likewise.
25016         * modules/memchr2-tests (Files): Likewise.
25017         * modules/memcmp-tests (Files): Likewise.
25018         * modules/memmem-tests (Files): Likewise.
25019         * modules/memrchr-tests (Files): Likewise.
25020         * modules/mkdir-tests (Files): Likewise.
25021         * modules/mkfifo-tests (Files): Likewise.
25022         * modules/mkfifoat-tests (Files): Likewise.
25023         * modules/mknod-tests (Files): Likewise.
25024         * modules/nanosleep-tests (Files): Likewise.
25025         * modules/nl_langinfo-tests (Files): Likewise.
25026         * modules/obstack-printf-tests (Files): Likewise.
25027         * modules/open-tests (Files): Likewise.
25028         * modules/openat-tests (Files): Likewise.
25029         * modules/pipe-filter-gi-tests (Files): Likewise.
25030         * modules/pipe-filter-ii-tests (Files): Likewise.
25031         * modules/pipe2-tests (Files): Likewise.
25032         * modules/popen-safer-tests (Files): Likewise.
25033         * modules/popen-tests (Files): Likewise.
25034         * modules/posixtm-tests (Files): Likewise.
25035         * modules/pread-tests (Files): Likewise.
25036         * modules/printf-frexp-tests (Files): Likewise.
25037         * modules/printf-frexpl-tests (Files): Likewise.
25038         * modules/printf-posix-tests (Files): Likewise.
25039         * modules/priv-set-tests (Files): Likewise.
25040         * modules/quotearg-tests (Files): Likewise.
25041         * modules/random_r-tests (Files): Likewise.
25042         * modules/rawmemchr-tests (Files): Likewise.
25043         * modules/rbtree-list-tests (Files): Likewise.
25044         * modules/rbtree-oset-tests (Files): Likewise.
25045         * modules/rbtreehash-list-tests (Files): Likewise.
25046         * modules/readlink-tests (Files): Likewise.
25047         * modules/remove-tests (Files): Likewise.
25048         * modules/rename-tests (Files): Likewise.
25049         * modules/renameat-tests (Files): Likewise.
25050         * modules/rmdir-tests (Files): Likewise.
25051         * modules/round-tests (Files): Likewise.
25052         * modules/roundf-tests (Files): Likewise.
25053         * modules/roundl-tests (Files): Likewise.
25054         * modules/safe-alloc-tests (Files): Likewise.
25055         * modules/setenv-tests (Files): Likewise.
25056         * modules/sigaction-tests (Files): Likewise.
25057         * modules/signbit-tests (Files): Likewise.
25058         * modules/sleep-tests (Files): Likewise.
25059         * modules/snprintf-posix-tests (Files): Likewise.
25060         * modules/snprintf-tests (Files): Likewise.
25061         * modules/sprintf-posix-tests (Files): Likewise.
25062         * modules/stat-tests (Files): Likewise.
25063         * modules/stat-time-tests (Files): Likewise.
25064         * modules/strcasestr-tests (Files): Likewise.
25065         * modules/strchrnul-tests (Files): Likewise.
25066         * modules/strerror-tests (Files): Likewise.
25067         * modules/striconv-tests (Files): Likewise.
25068         * modules/striconveh-tests (Files): Likewise.
25069         * modules/striconveha-tests (Files): Likewise.
25070         * modules/strsignal-tests (Files): Likewise.
25071         * modules/strstr-tests (Files): Likewise.
25072         * modules/strtod-tests (Files): Likewise.
25073         * modules/strverscmp-tests (Files): Likewise.
25074         * modules/symlink-tests (Files): Likewise.
25075         * modules/symlinkat-tests (Files): Likewise.
25076         * modules/trunc-tests (Files): Likewise.
25077         * modules/truncf-tests (Files): Likewise.
25078         * modules/truncl-tests (Files): Likewise.
25079         * modules/uname-tests (Files): Likewise.
25080         * modules/unicase/cased-tests (Files): Likewise.
25081         * modules/unicase/ignorable-tests (Files): Likewise.
25082         * modules/unicase/locale-language-tests (Files): Likewise.
25083         * modules/unicase/tolower-tests (Files): Likewise.
25084         * modules/unicase/totitle-tests (Files): Likewise.
25085         * modules/unicase/toupper-tests (Files): Likewise.
25086         * modules/unicase/u8-casecmp-tests (Files): Likewise.
25087         * modules/unicase/u8-casecoll-tests (Files): Likewise.
25088         * modules/unicase/u8-casefold-tests (Files): Likewise.
25089         * modules/unicase/u8-is-cased-tests (Files): Likewise.
25090         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
25091         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
25092         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
25093         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
25094         * modules/unicase/u8-tolower-tests (Files): Likewise.
25095         * modules/unicase/u8-totitle-tests (Files): Likewise.
25096         * modules/unicase/u8-toupper-tests (Files): Likewise.
25097         * modules/unicase/u16-casecmp-tests (Files): Likewise.
25098         * modules/unicase/u16-casecoll-tests (Files): Likewise.
25099         * modules/unicase/u16-casefold-tests (Files): Likewise.
25100         * modules/unicase/u16-is-cased-tests (Files): Likewise.
25101         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
25102         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
25103         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
25104         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
25105         * modules/unicase/u16-tolower-tests (Files): Likewise.
25106         * modules/unicase/u16-totitle-tests (Files): Likewise.
25107         * modules/unicase/u16-toupper-tests (Files): Likewise.
25108         * modules/unicase/u32-casecmp-tests (Files): Likewise.
25109         * modules/unicase/u32-casecoll-tests (Files): Likewise.
25110         * modules/unicase/u32-casefold-tests (Files): Likewise.
25111         * modules/unicase/u32-is-cased-tests (Files): Likewise.
25112         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
25113         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
25114         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
25115         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
25116         * modules/unicase/u32-tolower-tests (Files): Likewise.
25117         * modules/unicase/u32-totitle-tests (Files): Likewise.
25118         * modules/unicase/u32-toupper-tests (Files): Likewise.
25119         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
25120         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
25121         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
25122         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
25123         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
25124         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
25125         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
25126         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
25127         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
25128         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
25129         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
25130         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
25131         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
25132         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
25133         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
25134         * modules/unictype/bidicategory-name-tests (Files): Likewise.
25135         * modules/unictype/bidicategory-of-tests (Files): Likewise.
25136         * modules/unictype/bidicategory-test-tests (Files): Likewise.
25137         * modules/unictype/block-list-tests (Files): Likewise.
25138         * modules/unictype/block-of-tests (Files): Likewise.
25139         * modules/unictype/block-test-tests (Files): Likewise.
25140         * modules/unictype/category-C-tests (Files): Likewise.
25141         * modules/unictype/category-Cc-tests (Files): Likewise.
25142         * modules/unictype/category-Cf-tests (Files): Likewise.
25143         * modules/unictype/category-Cn-tests (Files): Likewise.
25144         * modules/unictype/category-Co-tests (Files): Likewise.
25145         * modules/unictype/category-Cs-tests (Files): Likewise.
25146         * modules/unictype/category-L-tests (Files): Likewise.
25147         * modules/unictype/category-Ll-tests (Files): Likewise.
25148         * modules/unictype/category-Lm-tests (Files): Likewise.
25149         * modules/unictype/category-Lo-tests (Files): Likewise.
25150         * modules/unictype/category-Lt-tests (Files): Likewise.
25151         * modules/unictype/category-Lu-tests (Files): Likewise.
25152         * modules/unictype/category-M-tests (Files): Likewise.
25153         * modules/unictype/category-Mc-tests (Files): Likewise.
25154         * modules/unictype/category-Me-tests (Files): Likewise.
25155         * modules/unictype/category-Mn-tests (Files): Likewise.
25156         * modules/unictype/category-N-tests (Files): Likewise.
25157         * modules/unictype/category-Nd-tests (Files): Likewise.
25158         * modules/unictype/category-Nl-tests (Files): Likewise.
25159         * modules/unictype/category-No-tests (Files): Likewise.
25160         * modules/unictype/category-P-tests (Files): Likewise.
25161         * modules/unictype/category-Pc-tests (Files): Likewise.
25162         * modules/unictype/category-Pd-tests (Files): Likewise.
25163         * modules/unictype/category-Pe-tests (Files): Likewise.
25164         * modules/unictype/category-Pf-tests (Files): Likewise.
25165         * modules/unictype/category-Pi-tests (Files): Likewise.
25166         * modules/unictype/category-Po-tests (Files): Likewise.
25167         * modules/unictype/category-Ps-tests (Files): Likewise.
25168         * modules/unictype/category-S-tests (Files): Likewise.
25169         * modules/unictype/category-Sc-tests (Files): Likewise.
25170         * modules/unictype/category-Sk-tests (Files): Likewise.
25171         * modules/unictype/category-Sm-tests (Files): Likewise.
25172         * modules/unictype/category-So-tests (Files): Likewise.
25173         * modules/unictype/category-Z-tests (Files): Likewise.
25174         * modules/unictype/category-Zl-tests (Files): Likewise.
25175         * modules/unictype/category-Zp-tests (Files): Likewise.
25176         * modules/unictype/category-Zs-tests (Files): Likewise.
25177         * modules/unictype/category-and-not-tests (Files): Likewise.
25178         * modules/unictype/category-and-tests (Files): Likewise.
25179         * modules/unictype/category-byname-tests (Files): Likewise.
25180         * modules/unictype/category-name-tests (Files): Likewise.
25181         * modules/unictype/category-none-tests (Files): Likewise.
25182         * modules/unictype/category-of-tests (Files): Likewise.
25183         * modules/unictype/category-or-tests (Files): Likewise.
25184         * modules/unictype/category-test-withtable-tests (Files): Likewise.
25185         * modules/unictype/combining-class-tests (Files): Likewise.
25186         * modules/unictype/ctype-alnum-tests (Files): Likewise.
25187         * modules/unictype/ctype-alpha-tests (Files): Likewise.
25188         * modules/unictype/ctype-blank-tests (Files): Likewise.
25189         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
25190         * modules/unictype/ctype-digit-tests (Files): Likewise.
25191         * modules/unictype/ctype-graph-tests (Files): Likewise.
25192         * modules/unictype/ctype-lower-tests (Files): Likewise.
25193         * modules/unictype/ctype-print-tests (Files): Likewise.
25194         * modules/unictype/ctype-punct-tests (Files): Likewise.
25195         * modules/unictype/ctype-space-tests (Files): Likewise.
25196         * modules/unictype/ctype-upper-tests (Files): Likewise.
25197         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
25198         * modules/unictype/decimal-digit-tests (Files): Likewise.
25199         * modules/unictype/digit-tests (Files): Likewise.
25200         * modules/unictype/mirror-tests (Files): Likewise.
25201         * modules/unictype/numeric-tests (Files): Likewise.
25202         * modules/unictype/property-alphabetic-tests (Files): Likewise.
25203         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
25204         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
25205         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
25206         Likewise.
25207         * modules/unictype/property-bidi-block-separator-tests (Files):
25208         Likewise.
25209         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
25210         Likewise.
25211         * modules/unictype/property-bidi-common-separator-tests (Files):
25212         Likewise.
25213         * modules/unictype/property-bidi-control-tests (Files): Likewise.
25214         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
25215         Likewise.
25216         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
25217         Likewise.
25218         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
25219         Likewise.
25220         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
25221         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
25222         Likewise.
25223         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
25224         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
25225         Likewise.
25226         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
25227         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
25228         * modules/unictype/property-bidi-segment-separator-tests (Files):
25229         Likewise.
25230         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
25231         * modules/unictype/property-byname-tests (Files): Likewise.
25232         * modules/unictype/property-combining-tests (Files): Likewise.
25233         * modules/unictype/property-composite-tests (Files): Likewise.
25234         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
25235         * modules/unictype/property-dash-tests (Files): Likewise.
25236         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
25237         * modules/unictype/property-default-ignorable-code-point-tests (Files):
25238         Likewise.
25239         * modules/unictype/property-deprecated-tests (Files): Likewise.
25240         * modules/unictype/property-diacritic-tests (Files): Likewise.
25241         * modules/unictype/property-extender-tests (Files): Likewise.
25242         * modules/unictype/property-format-control-tests (Files): Likewise.
25243         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
25244         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
25245         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
25246         * modules/unictype/property-hex-digit-tests (Files): Likewise.
25247         * modules/unictype/property-hyphen-tests (Files): Likewise.
25248         * modules/unictype/property-id-continue-tests (Files): Likewise.
25249         * modules/unictype/property-id-start-tests (Files): Likewise.
25250         * modules/unictype/property-ideographic-tests (Files): Likewise.
25251         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
25252         * modules/unictype/property-ids-trinary-operator-tests (Files):
25253         Likewise.
25254         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
25255         * modules/unictype/property-iso-control-tests (Files): Likewise.
25256         * modules/unictype/property-join-control-tests (Files): Likewise.
25257         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
25258         * modules/unictype/property-line-separator-tests (Files): Likewise.
25259         * modules/unictype/property-logical-order-exception-tests (Files):
25260         Likewise.
25261         * modules/unictype/property-lowercase-tests (Files): Likewise.
25262         * modules/unictype/property-math-tests (Files): Likewise.
25263         * modules/unictype/property-non-break-tests (Files): Likewise.
25264         * modules/unictype/property-not-a-character-tests (Files): Likewise.
25265         * modules/unictype/property-numeric-tests (Files): Likewise.
25266         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
25267         * modules/unictype/property-other-default-ignorable-code-point-tests
25268         (Files): Likewise.
25269         * modules/unictype/property-other-grapheme-extend-tests (Files):
25270         Likewise.
25271         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
25272         * modules/unictype/property-other-id-start-tests (Files): Likewise.
25273         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
25274         * modules/unictype/property-other-math-tests (Files): Likewise.
25275         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
25276         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
25277         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
25278         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
25279         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
25280         * modules/unictype/property-private-use-tests (Files): Likewise.
25281         * modules/unictype/property-punctuation-tests (Files): Likewise.
25282         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
25283         * modules/unictype/property-radical-tests (Files): Likewise.
25284         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
25285         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
25286         * modules/unictype/property-space-tests (Files): Likewise.
25287         * modules/unictype/property-terminal-punctuation-tests (Files):
25288         Likewise.
25289         * modules/unictype/property-test-tests (Files): Likewise.
25290         * modules/unictype/property-titlecase-tests (Files): Likewise.
25291         * modules/unictype/property-unassigned-code-value-tests (Files):
25292         Likewise.
25293         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
25294         * modules/unictype/property-uppercase-tests (Files): Likewise.
25295         * modules/unictype/property-variation-selector-tests (Files): Likewise.
25296         * modules/unictype/property-white-space-tests (Files): Likewise.
25297         * modules/unictype/property-xid-continue-tests (Files): Likewise.
25298         * modules/unictype/property-xid-start-tests (Files): Likewise.
25299         * modules/unictype/property-zero-width-tests (Files): Likewise.
25300         * modules/unictype/scripts-tests (Files): Likewise.
25301         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
25302         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
25303         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
25304         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
25305         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
25306         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
25307         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
25308         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
25309         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
25310         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
25311         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
25312         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
25313         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
25314         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
25315         * modules/uninorm/composition-tests (Files): Likewise.
25316         * modules/uninorm/decomposing-form-tests (Files): Likewise.
25317         * modules/uninorm/decomposition-tests (Files): Likewise.
25318         * modules/uninorm/filter-tests (Files): Likewise.
25319         * modules/uninorm/nfc-tests (Files): Likewise.
25320         * modules/uninorm/nfd-tests (Files): Likewise.
25321         * modules/uninorm/nfkc-tests (Files): Likewise.
25322         * modules/uninorm/nfkd-tests (Files): Likewise.
25323         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
25324         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
25325         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
25326         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
25327         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
25328         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
25329         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
25330         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
25331         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
25332         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
25333         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
25334         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
25335         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
25336         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
25337         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
25338         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
25339         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
25340         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
25341         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
25342         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
25343         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
25344         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
25345         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
25346         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
25347         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
25348         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
25349         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
25350         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
25351         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
25352         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
25353         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
25354         * modules/uniwidth/u8-width-tests (Files): Likewise.
25355         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
25356         * modules/uniwidth/u16-width-tests (Files): Likewise.
25357         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
25358         * modules/uniwidth/u32-width-tests (Files): Likewise.
25359         * modules/uniwidth/width-tests (Files): Likewise.
25360         * modules/unlink-tests (Files): Likewise.
25361         * modules/unsetenv-tests (Files): Likewise.
25362         * modules/usleep-tests (Files): Likewise.
25363         * modules/utimens-tests (Files): Likewise.
25364         * modules/utimensat-tests (Files): Likewise.
25365         * modules/vasnprintf-posix-tests (Files): Likewise.
25366         * modules/vasnprintf-tests (Files): Likewise.
25367         * modules/vasprintf-posix-tests (Files): Likewise.
25368         * modules/vasprintf-tests (Files): Likewise.
25369         * modules/vdprintf-posix-tests (Files): Likewise.
25370         * modules/vfprintf-posix-tests (Files): Likewise.
25371         * modules/vprintf-posix-tests (Files): Likewise.
25372         * modules/vsnprintf-posix-tests (Files): Likewise.
25373         * modules/vsnprintf-tests (Files): Likewise.
25374         * modules/vsprintf-posix-tests (Files): Likewise.
25375         * modules/wcrtomb-tests (Files): Likewise.
25376         * modules/wcsnrtombs-tests (Files): Likewise.
25377         * modules/wcsrtombs-tests (Files): Likewise.
25378         * modules/wctype-tests (Files): Likewise.
25379         * modules/wcwidth-tests (Files): Likewise.
25380         * modules/xmemdup0-tests (Files): Likewise.
25381         * modules/xprintf-posix-tests (Files): Likewise.
25382         * modules/xvasprintf-tests (Files): Likewise.
25383
25384 2009-12-24  Eric Blake  <ebb9@byu.net>
25385
25386         test-nanosleep: fix typo
25387         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
25388         patch.
25389         Reported by Bruno Haible.
25390
25391 2009-12-24  Bruno Haible  <bruno@clisp.org>
25392
25393         Reduce namespace pollution on glibc systems.
25394         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
25395         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
25396         systems.
25397         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
25398         <getopt.h> on glibc systems.
25399         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
25400         systems.
25401         * lib/fcntl.c: Include <unistd.h> here instead.
25402
25403 2009-12-24  Bruno Haible  <bruno@clisp.org>
25404
25405         * lib/stdlib.in.h (includes): Fix typo in today's commit.
25406
25407 2009-12-24  Eric Blake  <ebb9@byu.net>
25408
25409         tests: add signature checks
25410         * tests/signature.h (SIGNATURE_CHECK): New file.
25411         * modules/atexit-tests (Files): Use it.
25412         * modules/btowc-tests (Files): Likewise.
25413         * modules/canonicalize-lgpl-tests (Files): Likewise.
25414         * modules/ceilf-tests (Files): Likewise.
25415         * modules/ceill-tests (Files): Likewise.
25416         * modules/chown-tests (Files): Likewise.
25417         * modules/dprintf-posix-tests (Files): Likewise.
25418         * modules/dup2-tests (Files): Likewise.
25419         * modules/dup3-tests (Files): Likewise.
25420         * modules/duplocale-tests (Files): Likewise.
25421         * modules/fchdir-tests (Files): Likewise.
25422         * modules/fcntl-tests (Files): Likewise.
25423         * modules/fdopendir-tests (Files): Likewise.
25424         * modules/fflush-tests (Files): Likewise.
25425         * modules/flock-tests (Files): Likewise.
25426         * modules/floorf-tests (Files): Likewise.
25427         * modules/floorl-tests (Files): Likewise.
25428         * modules/fnmatch-tests (Files): Likewise.
25429         * modules/fopen-tests (Files): Likewise.
25430         * modules/fprintf-posix-tests (Files): Likewise.
25431         * modules/freopen-tests (Files): Likewise.
25432         * modules/frexp-nolibm-tests (Files): Likewise.
25433         * modules/frexp-tests (Files): Likewise.
25434         * modules/frexpl-nolibm-tests (Files): Likewise.
25435         * modules/frexpl-tests (Files): Likewise.
25436         * modules/fseek-tests (Files): Likewise.
25437         * modules/fseeko-tests (Files): Likewise.
25438         * modules/fsync-tests (Files): Likewise.
25439         * modules/ftell-tests (Files): Likewise.
25440         * modules/ftello-tests (Files): Likewise.
25441         * modules/futimens-tests (Files): Likewise.
25442         * modules/getaddrinfo-tests (Files): Likewise.
25443         * modules/getcwd-tests (Files): Likewise.
25444         * modules/getdelim-tests (Files): Likewise.
25445         * modules/getdtablesize-tests (Files): Likewise.
25446         * modules/getgroups-tests (Files): Likewise.
25447         * modules/gethostname-tests (Files): Likewise.
25448         * modules/getline-tests (Files): Likewise.
25449         * modules/getopt-posix-tests (Files): Likewise.
25450         * modules/gettimeofday-tests (Files): Likewise.
25451         * modules/glob-tests (Files): Likewise.
25452         * modules/iconv-tests (Files): Likewise.
25453         * modules/inet_ntop-tests (Files): Likewise.
25454         * modules/inet_pton-tests (Files): Likewise.
25455         * modules/isblank-tests (Files): Likewise.
25456         * modules/lchown-tests (Files): Likewise.
25457         * modules/ldexpl-tests (Files): Likewise.
25458         * modules/link-tests (Files): Likewise.
25459         * modules/linkat-tests (Files): Likewise.
25460         * modules/lseek-tests (Files): Likewise.
25461         * modules/lstat-tests (Files): Likewise.
25462         * modules/mbrtowc-tests (Files): Likewise.
25463         * modules/mbsinit-tests (Files): Likewise.
25464         * modules/mbsnrtowcs-tests (Files): Likewise.
25465         * modules/mbsrtowcs-tests (Files): Likewise.
25466         * modules/memchr-tests (Files): Likewise.
25467         * modules/memcmp-tests (Files): Likewise.
25468         * modules/memmem-tests (Files): Likewise.
25469         * modules/memrchr-tests (Files): Likewise.
25470         * modules/mkdir-tests (Files): Likewise.
25471         * modules/mkfifo-tests (Files): Likewise.
25472         * modules/mkfifoat-tests (Files): Likewise.
25473         * modules/mknod-tests (Files): Likewise.
25474         * modules/nanosleep-tests (Files): Likewise.
25475         * modules/nl_langinfo-tests (Files): Likewise.
25476         * modules/obstack-printf-tests (Files): Likewise.
25477         * modules/open-tests (Files): Likewise.
25478         * modules/openat-tests (Files): Likewise.
25479         * modules/perror-tests (Files): Likewise.
25480         * modules/pipe2-tests (Files): Likewise.
25481         * modules/poll-tests (Files): Likewise.
25482         * modules/popen-tests (Files): Likewise.
25483         * modules/posix_spawn-tests (Files): Likewise.
25484         * modules/posix_spawnp-tests (Files): Likewise.
25485         * modules/pread-tests (Files): Likewise.
25486         * modules/printf-posix-tests (Files): Likewise.
25487         * modules/pty-tests (Files): Likewise.
25488         * modules/random_r-tests (Files): Likewise.
25489         * modules/rawmemchr-tests (Files): Likewise.
25490         * modules/readlink-tests (Files): Likewise.
25491         * modules/remove-tests (Files): Likewise.
25492         * modules/rename-tests (Files): Likewise.
25493         * modules/renameat-tests (Files): Likewise.
25494         * modules/rmdir-tests (Files): Likewise.
25495         * modules/round-tests (Files): Likewise.
25496         * modules/roundf-tests (Files): Likewise.
25497         * modules/roundl-tests (Files): Likewise.
25498         * modules/select-tests (Files): Likewise.
25499         * modules/setenv-tests (Files): Likewise.
25500         * modules/sigaction-tests (Files): Likewise.
25501         * modules/sleep-tests (Files): Likewise.
25502         * modules/snprintf-posix-tests (Files): Likewise.
25503         * modules/snprintf-tests (Files): Likewise.
25504         * modules/sprintf-posix-tests (Files): Likewise.
25505         * modules/stat-tests (Files): Likewise.
25506         * modules/strcasestr-tests (Files): Likewise.
25507         * modules/strchrnul-tests (Files): Likewise.
25508         * modules/strerror-tests (Files): Likewise.
25509         * modules/strsignal-tests (Files): Likewise.
25510         * modules/strstr-tests (Files): Likewise.
25511         * modules/strtod-tests (Files): Likewise.
25512         * modules/strverscmp-tests (Files): Likewise.
25513         * modules/symlink-tests (Files): Likewise.
25514         * modules/symlinkat-tests (Files): Likewise.
25515         * modules/times-tests (Files): Likewise.
25516         * modules/trunc-tests (Files): Likewise.
25517         * modules/truncf-tests (Files): Likewise.
25518         * modules/truncl-tests (Files): Likewise.
25519         * modules/tsearch-tests (Files): Likewise.
25520         * modules/uname-tests (Files): Likewise.
25521         * modules/unlink-tests (Files): Likewise.
25522         * modules/unsetenv-tests (Files): Likewise.
25523         * modules/usleep-tests (Files): Likewise.
25524         * modules/utimensat-tests (Files): Likewise.
25525         * modules/vasprintf-tests (Files): Likewise.
25526         * modules/vdprintf-posix-tests (Files): Likewise.
25527         * modules/vfprintf-posix-tests (Files): Likewise.
25528         * modules/vprintf-posix-tests (Files): Likewise.
25529         * modules/vsnprintf-posix-tests (Files): Likewise.
25530         * modules/vsnprintf-tests (Files): Likewise.
25531         * modules/vsprintf-posix-tests (Files): Likewise.
25532         * modules/wcrtomb-tests (Files): Likewise.
25533         * modules/wcsnrtombs-tests (Files): Likewise.
25534         * modules/wcsrtombs-tests (Files): Likewise.
25535         * modules/wcwidth-tests (Files): Likewise.
25536         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
25537         * tests/test-isinf.c (isinf): Likewise.
25538         * tests/test-isnan.c (isnan): Likewise.
25539         * tests/test-signbit.c (signbit): Likewise.
25540         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
25541         declaration, either as macro or with correct signature.
25542         (select): Ensure function under test is declared with correct
25543         signature in correct header.
25544         * tests/test-atexit.c (atexit): Likewise.
25545         * tests/test-btowc.c (btowc): Likewise.
25546         * tests/test-canonicalize-lgpl.c (realpath)
25547         (canonicalize_file_name): Likewise.
25548         * tests/test-ceilf1.c (ceilf): Likewise.
25549         * tests/test-ceill.c (ceill): Likewise.
25550         * tests/test-chown.c (chown): Likewise.
25551         * tests/test-dprintf-posix.c (dprintf): Likewise.
25552         * tests/test-dup2.c (dup2): Likewise.
25553         * tests/test-dup3.c (dup3): Likewise.
25554         * tests/test-duplocale.c (duplocale): Likewise.
25555         * tests/test-fchdir.c (fchdir): Likewise.
25556         * tests/test-fchownat.c (fchownat): Likewise.
25557         * tests/test-fcntl.c (fcntl): Likewise.
25558         * tests/test-fdopendir.c (fdopendir): Likewise.
25559         * tests/test-fflush.c (fflush): Likewise.
25560         * tests/test-flock.c (flock): Likewise.
25561         * tests/test-floorf1.c (floorf): Likewise.
25562         * tests/test-floorl.c (floorl): Likewise.
25563         * tests/test-fnmatch.c (fnmatch): Likewise.
25564         * tests/test-fopen.c (fopen): Likewise.
25565         * tests/test-fprintf-posix.c (fprintf): Likewise.
25566         * tests/test-freopen.c (freopen): Likewise.
25567         * tests/test-frexp.c (frexp): Likewise.
25568         * tests/test-frexpl.c (frexpl): Likewise.
25569         * tests/test-fseek.c (fseek): Likewise.
25570         * tests/test-fseeko.c (fseeko): Likewise.
25571         * tests/test-fstatat.c (fstatat): Likewise.
25572         * tests/test-fsync.c (fsync): Likewise.
25573         * tests/test-ftell.c (ftell): Likewise.
25574         * tests/test-ftello.c (ftello): Likewise.
25575         * tests/test-futimens.c (futimens): Likewise.
25576         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
25577         (gai_strerror): Likewise.
25578         * tests/test-getcwd.c (getcwd): Likewise.
25579         * tests/test-getdelim.c (getdelim): Likewise.
25580         * tests/test-getdtablesize.c (getdtablesize): Likewise.
25581         * tests/test-getgroups.c (getgroups): Likewise.
25582         * tests/test-gethostname.c (gethostname): Likewise.
25583         * tests/test-getline.c (getline): Likewise.
25584         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
25585         Likewise.
25586         * tests/test-gettimeofday.c (gettimeofday): Likewise.
25587         * tests/test-glob.c (glob, globfree): Likewise.
25588         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
25589         * tests/test-inet_ntop.c (inet_ntop): Likewise.
25590         * tests/test-inet_pton.c (inet_pton): Likewise.
25591         * tests/test-isblank.c (isblank): Likewise.
25592         * tests/test-lchown.c (lchown): Likewise.
25593         * tests/test-ldexpl.c (ldexpl): Likewise.
25594         * tests/test-link.c (link): Likewise.
25595         * tests/test-linkat.c (linkat): Likewise.
25596         * tests/test-lseek.c (lseek): Likewise.
25597         * tests/test-lstat.c (lstat): Likewise.
25598         * tests/test-mbrtowc.c (mbrtowc): Likewise.
25599         * tests/test-mbsinit.c (mbsinit): Likewise.
25600         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
25601         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
25602         * tests/test-memchr.c (memchr): Likewise.
25603         * tests/test-memcmp.c (memcmp): Likewise.
25604         * tests/test-memmem.c (memmem): Likewise.
25605         * tests/test-memrchr.c (memrchr): Likewise.
25606         * tests/test-mkdir.c (mkdir): Likewise.
25607         * tests/test-mkdirat.c (mkdirat): Likewise.
25608         * tests/test-mkfifo.c (mkfifo): Likewise.
25609         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
25610         * tests/test-mknod.c (mknod): Likewise.
25611         * tests/test-nanosleep.c (nanosleep): Likewise.
25612         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
25613         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
25614         Likewise.
25615         * tests/test-open.c (open): Likewise.
25616         * tests/test-openat.c (openat): Likewise.
25617         * tests/test-perror.c (perror): Likewise.
25618         * tests/test-pipe2.c (pipe2): Likewise.
25619         * tests/test-poll.c (poll): Likewise.
25620         * tests/test-popen.c (popen, pclose): Likewise.
25621         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
25622         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
25623         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
25624         (posix_spawn_file_actions_destroy)
25625         (posix_spawn_file_actions_addclose)
25626         (posix_spawn_file_actions_addopen)
25627         (posix_spawn_file_actions_adddup2): Likewise.
25628         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
25629         * tests/test-pread.c (pread): Likewise.
25630         * tests/test-printf-posix.c (printf): Likewise.
25631         * tests/test-pty.c (openpty, forkpty): Likewise.
25632         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
25633         (random_r): Likewise.
25634         * tests/test-rawmemchr.c (rawmemchr): Likewise.
25635         * tests/test-readlink.c (readlink): Likewise.
25636         * tests/test-remove.c (remove): Likewise.
25637         * tests/test-rename.c (rename): Likewise.
25638         * tests/test-renameat.c (renameat): Likewise.
25639         * tests/test-rmdir.c (rmdir): Likewise.
25640         * tests/test-round1.c (round): Likewise.
25641         * tests/test-roundf1.c (roundf): Likewise.
25642         * tests/test-roundl.c (roundl): Likewise.
25643         * tests/test-setenv.c (setenv): Likewise.
25644         * tests/test-sigaction.c (sigaction): Likewise.
25645         * tests/test-sleep.c (sleep): Likewise.
25646         * tests/test-snprintf.c (snprintf): Likewise.
25647         * tests/test-sprintf-posix.c (sprintf): Likewise.
25648         * tests/test-stat.c (stat): Likewise.
25649         * tests/test-stpncpy.c (stpncpy): Likewise.
25650         * tests/test-strcasestr.c (strcasestr): Likewise.
25651         * tests/test-strchrnul.c (strchrnul): Likewise.
25652         * tests/test-strerror.c (strerror): Likewise.
25653         * tests/test-strsignal.c (strsignal): Likewise.
25654         * tests/test-strstr.c (strstr): Likewise.
25655         * tests/test-strtod.c (strtod): Likewise.
25656         * tests/test-strverscmp.c (strverscmp): Likewise.
25657         * tests/test-symlink.c (symlink): Likewise.
25658         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
25659         * tests/test-times.c (times): Likewise.
25660         * tests/test-trunc1.c (trunc): Likewise.
25661         * tests/test-truncf1.c (truncf): Likewise.
25662         * tests/test-truncl.c (truncl): Likewise.
25663         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
25664         Likewise.
25665         * tests/test-uname.c (uname): Likewise.
25666         * tests/test-unlink.c (unlink): Likewise.
25667         * tests/test-unlinkat.c (unlinkat): Likewise.
25668         * tests/test-unsetenv.c (unsetenv): Likewise.
25669         * tests/test-usleep.c (usleep): Likewise.
25670         * tests/test-utimensat.c (utimensat): Likewise.
25671         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
25672         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
25673         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
25674         * tests/test-vprintf-posix.c (vprintf): Likewise.
25675         * tests/test-vsnprintf.c (vsnprintf): Likewise.
25676         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
25677         * tests/test-wcrtomb.c (wcrtomb): Likewise.
25678         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
25679         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
25680         * tests/test-wcwidth.c (wcwidth): Likewise.
25681
25682         build: pull in conditional headers during GNULIB_POSIXCHECK
25683         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
25684         definitions from any conditionally-included headers.
25685         * lib/stdlib.in.h (includes): Likewise.
25686         * lib/unistd.in.h (includes): Likewise.
25687
25688 2009-12-24  Bruno Haible  <bruno@clisp.org>
25689
25690         * tests/test-argv-iter.c: Include header file being tested immediately
25691         after config.h.
25692         * tests/test-base64.c: Likewise.
25693         * tests/test-flock.c: Likewise.
25694         * tests/test-fsync.c: Likewise.
25695         * tests/test-getdate.c: Likewise.
25696         * tests/test-getndelim2.c: Likewise.
25697         * tests/test-isfinite.c: Likewise.
25698         * tests/test-isinf.c: Likewise.
25699         * tests/test-strerror.c: Likewise.
25700         * tests/test-strsignal.c: Likewise.
25701
25702 2009-12-23  Eric Blake  <ebb9@byu.net>
25703
25704         unistd: work around cygwin bug
25705         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
25706         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
25707         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
25708
25709 2009-12-23  Bruno Haible  <bruno@clisp.org>
25710
25711         localename: More tests.
25712         * tests/test-localename.c (SIZEOF): New macro.
25713         (categories): New variable.
25714         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
25715         test_locale_name_default): Add test w.r.t. thread locale.
25716         (test_locale_name_thread): New function.
25717         (main): Invoke it.
25718
25719         localename: Make aware of thread locale.
25720         * lib/localename.h (gl_locale_name_thread): New declaration.
25721         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
25722         behaviour with respect to thread locale.
25723         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
25724         <langinfo.h>, glthread/lock.h.
25725         (SIZE_BITS): New macro.
25726         (string_hash): New function.
25727         (struct hash_node): New type.
25728         (HASH_TABLE_SIZE): New macro.
25729         (struniq_hash_table, struniq_lock): New variables.
25730         (struniq): New function.
25731         (gl_locale_name_thread): New function.
25732         (gl_locale_name): Invoke it.
25733         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
25734         * modules/localename (Depends-on): Add lock.
25735         Reported by Mike Gran <spk121@yahoo.com>.
25736
25737 2009-12-23  Eric Blake  <ebb9@byu.net>
25738
25739         va-args: new module
25740         * modules/va-args: New file.
25741         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
25742         * MODULES.html.sh (Core language properties): Mention it.
25743
25744         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
25745         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
25746         named alias for __attribute__((__unused__)).
25747         * lib/chown.c: Update client.
25748         * lib/fchmodat.c: Likewise.
25749         * lib/fts.c: Likewise.
25750         * lib/getdate.y: Likewise.
25751         * lib/getgroups.c: Likewise.
25752         * lib/getopt.c: Likewise.
25753         * lib/getugroups.c: Likewise.
25754         * lib/mkdir.c: Likewise.
25755         * lib/mkfifo.c: Likewise.
25756         * lib/mkfifoat.c: Likewise.
25757         * lib/mknod.c: Likewise.
25758         * lib/mknodat.c: Likewise.
25759         * lib/readlink.c: Likewise.
25760         * lib/se-context.in.h: Likewise.
25761         * lib/se-selinux.in.h: Likewise.
25762         * lib/sockets.c: Likewise.
25763         * lib/symlink.c: Likewise.
25764         * lib/symlinkat.c: Likewise.
25765         * lib/unicodeio.c: Likewise.
25766         * lib/unistr.h: Likewise.
25767         * tests/test-areadlink.c: Likewise.
25768         * tests/test-areadlinkat.c: Likewise.
25769         * tests/test-filenamecat.c: Likewise.
25770         * tests/test-fseeko.c: Likewise.
25771         * tests/test-ftello.c: Likewise.
25772         * tests/test-getdate.c: Likewise.
25773         * tests/test-getgroups.c: Likewise.
25774         * tests/test-gethostname.c: Likewise.
25775         * tests/test-quotearg.c: Likewise.
25776         * tests/test-version-etc.c: Likewise.
25777         * tests/test-xalloc-die.c: Likewise.
25778         * tests/test-xfprintf-posix.c: Likewise.
25779         * tests/test-xprintf-posix.c: Likewise.
25780         * tests/test-xvasprintf.c: Likewise.
25781
25782         tests: avoid compiler warnings
25783         * tests/test-fcntl.c (main): Delete unused parameters.
25784         * tests/test-freopen-safer.c (main): Likewise.
25785         * tests/test-xalloc-die.c (main): Mark unused parameters.
25786         * tests/test-fseeko.c (main): Likewise.
25787         * tests/test-ftello.c (main): Likewise.
25788         * tests/test-nanosleep.c (main): Avoid declaration warning.
25789         * tests/test-sleep.c (main): Likewise.
25790         * tests/test-unsetenv.c (main): Silence warning about string
25791         literal.
25792         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
25793
25794 2009-12-23  Bruno Haible  <bruno@clisp.org>
25795
25796         * tests/test-localename.c (test_locale_name): New function, extracted
25797         from main. Also test mixed situations.
25798         (test_locale_name_posix, test_locale_name_environ,
25799         test_locale_name_default): New functions.
25800         (main): Invoke them all.
25801         * modules/localename-tests (configure.ac): Test for newlocale.
25802
25803 2009-12-23  Bruno Haible  <bruno@clisp.org>
25804
25805         unistd: Ensure getcwd gets declared before being overridden.
25806         * lib/unistd.in.h: Conditionally include <io.h>.
25807
25808 2009-12-22  Bruno Haible  <bruno@clisp.org>
25809
25810         wchar: Diagnose broken combination of glibc and gcc versions and flags.
25811         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
25812         (gl_WCHAR_H): Invoke it.
25813         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
25814         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
25815         Reported by Karl Berry <karl@freefriends.org>.
25816
25817 2009-12-22  Eric Blake  <ebb9@byu.net>
25818
25819         math, unistd: avoid redundant includes
25820         * lib/math.in.h (isnan): No need to re-include <math.h>.
25821         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
25822
25823         getsubopt: work around cygwin bug
25824         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
25825         avoid conflicting with system getsubopt.
25826         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
25827         bug.
25828
25829         getopt: synchronize from glibc
25830         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
25831         parameter order.  Adjust all callers.
25832         (_getopt_internal_r, main): Adjust quoting in error messages.
25833         Drop considerations for outdated POSIX 1003.2 error message.
25834         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
25835         callers.
25836         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
25837
25838         test-getopt: test stderr behavior
25839         * modules/getopt-posix-tests (Depends-on): Add dup2.
25840         * tests/test-getopt.c (ASSERT): Avoid stderr.
25841         (main): Move stderr to a temporary file.
25842         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
25843         Instead, add parameter to inform caller if output occurred.
25844         (test_getopt): Adjust all existing tests to expect silence, and
25845         add new tests of leading ":".
25846         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
25847         glibc shortcomings with leading "-:" or "+:" in optstring.
25848         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25849         Likewise.
25850         * doc/posix-functions/getopt.texi (getopt): Likewise.
25851
25852         test-getopt: enhance test
25853         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
25854         supports optind=0.
25855         * tests/test-getopt.c (OPTIND_MIN): Move...
25856         * tests/test-getopt.h (OPTIND_MIN): ...here.
25857         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
25858         Require that optind=0 works, since modern BSD supports it in
25859         addition to optreset, and since coreutils expects it.
25860         (test_getopt_long_only): New test.
25861         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
25862         glibc shortcomings with 'W;', and enforcement of optind=0.
25863         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25864         Likewise.
25865
25866 2009-12-21  Bruno Haible  <bruno@clisp.org>
25867
25868         localename: Improvements for MacOS X and Cygwin.
25869         * lib/localename.h (gl_locale_name_environ): New declaration.
25870         * lib/localename.c (gl_locale_name_environ): New function, extracted from
25871         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
25872         (gl_locale_name_posix): Invoke it.
25873         (gl_locale_name_default): Add comments. Use Windows native API also on
25874         Cygwin.
25875
25876 2009-12-21  Bruno Haible  <bruno@clisp.org>
25877
25878         Update list of Win32 locale ids.
25879         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
25880         (LANG_SAMI): Renamed from LANG_SAAMI.
25881         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
25882         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
25883         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
25884         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
25885         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
25886         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
25887         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
25888         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
25889         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
25890         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
25891         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
25892         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
25893         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
25894         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
25895         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
25896         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
25897         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
25898         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
25899         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
25900         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
25901         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
25902         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
25903         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
25904         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
25905         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
25906         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
25907         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
25908         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
25909         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
25910         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
25911         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
25912         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
25913         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
25914         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
25915         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
25916         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
25917         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
25918         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
25919         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
25920         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
25921         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
25922         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
25923         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
25924         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
25925         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
25926         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
25927         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
25928         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
25929         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
25930         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
25931         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
25932         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
25933         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
25934         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
25935         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
25936         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
25937         Add more languages and countries for Sami, Sorbian. Add more countries
25938         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
25939         for Pashto. Change country for Syriac, Tswana.
25940
25941 2009-12-21  Eric Blake  <ebb9@byu.net>
25942
25943         test-utimens: avoid spurious failure
25944         * tests/test-chown.h (nap): Factor...
25945         * tests/nap.h: ...into new file.
25946         * tests/test-lchown.h (nap): Avoid duplication.
25947         * tests/test-utimens-common.h (nap): Use shared implementation,
25948         necessary on file systems with 1-second resolution.
25949         * modules/chown-tests (Files): Include new file.
25950         * modules/fdutimensat-tests (Files): Likewise.
25951         * modules/futimens-tests (Files): Likewise.
25952         * modules/lchown-tests (Files): Likewise.
25953         * modules/openat-tests (Files): Likewise.
25954         * modules/utimens-tests (Files): Likewise.
25955         * modules/utimensat-tests (Files): Likewise.
25956
25957 2009-12-19  Eric Blake  <ebb9@byu.net>
25958
25959         futimens, utimensat: work around Linux bug
25960         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
25961         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
25962         * lib/utimensat.c (rpl_utimensat): Work around it.
25963         * lib/futimens.c (rpl_futimens): Adjust comment.
25964
25965         utimens: work around Linux ctime bug
25966         * lib/utimens.c (detect_ctime_bug): New helper function.
25967         (update_timespec): Differentiate between workaround needed for
25968         this bug vs. what is needed for systems that lack utimensat.
25969         (fdutimens, lutimens): Work around bug.
25970
25971         utimens: check for ctime update
25972         * tests/test-utimens-common.h (check_ctime): Define.
25973         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
25974         * tests/test-futimens.h (test_futimens): Likewise.
25975         * tests/test-lutimens.h (test_lutimens): Likewise.
25976         * doc/posix-functions/futimens.texi (futimens): Document the bug.
25977         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
25978
25979 2009-12-19  Bruno Haible  <bruno@clisp.org>
25980
25981         dprintf-posix: Check against memory leak fixed on 2009-12-15.
25982         * tests/test-dprintf-posix2.sh: New file.
25983         * tests/test-dprintf-posix2.c: New file.
25984         * modules/dprintf-posix-tests (Files): Add them.
25985         (configure.ac): Check for getrlimit and setrlimit.
25986         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
25987
25988 2009-12-19  Bruno Haible  <bruno@clisp.org>
25989
25990         fprintf-posix: Check against memory leak fixed on 2009-12-15.
25991         * tests/test-fprintf-posix3.sh: New file.
25992         * tests/test-fprintf-posix3.c: New file.
25993         * modules/fprintf-posix-tests (Files): Add them.
25994         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
25995
25996 2009-12-19  Eric Blake  <ebb9@byu.net>
25997
25998         dirfd: fix prototype
25999         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
26000         * lib/dirfd.c (dirfd): Likewise.
26001
26002         canonicalize: reduce memory usage
26003         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
26004         allocation to size.
26005         Reported by Solar Designer <solar@openwall.com>.
26006
26007 2009-12-19  Bruno Haible  <bruno@clisp.org>
26008
26009         New module attribute 'Applicability'.
26010         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
26011         * gnulib-tool: New option --extract-applicability.
26012         (func_usage): Document it.
26013         (sed_extract_prog): Recognize it.
26014         (func_get_applicability): New function.
26015         (func_import): Generalize handling of 'link-warning' module.
26016         * modules/link-warning (Applicability): New section.
26017         * modules/arg-nonnull (Applicability): New section.
26018         Repoted by Simon Josefsson <simon@josefsson.org>.
26019
26020 2009-12-19  Bruno Haible  <bruno@clisp.org>
26021
26022         fflush: tweak
26023         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
26024         * lib/fseeko.c (rpl_fseeko): Likewise.
26025
26026 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
26027
26028         * lib/gl_list.h: Fix typo in comment.
26029
26030 2009-12-16  Eric Blake  <ebb9@byu.net>
26031
26032         fcntl: use to simplify other modules
26033         * modules/cloexec (Depends-on): Add fcntl.
26034         * modules/fchdir (Depends-on): Likewise.
26035         * modules/fd-safer-flag (Depends-on): Likewise.
26036         * modules/unistd-safer (Depends-on): Likewise.
26037         * modules/dup3 (configure.ac): Set module indicator.
26038         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
26039         missing.
26040         * lib/fchdir.c (_gl_register_dup): Fix comment.
26041         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
26042         * lib/dup-safer.c (dup_safer): Likewise.
26043         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
26044         * lib/dup3.c (dup3): Likewise.
26045         * tests/test-fchdir.c (main): Enhance test.
26046         Fixes a dup_cloexec bug reported by Ondřej Vašík.
26047
26048         fcntl: port portions of fcntl to mingw
26049         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
26050         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
26051         replacement for mingw.
26052         * modules/fcntl (Description): Update.
26053         (Depends-on): Add dup2.
26054         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
26055         * modules/fcntl-h (Makefile.am): Substitute it.
26056         * lib/fcntl.in.h (fcntl): Update declaration.
26057         (F_DUPFD, F_GETFD): New macros, when needed.
26058         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
26059         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
26060         * tests/test-fcntl.c (check_flags, main): Enhance test for items
26061         we now guarantee.
26062
26063         fcntl: work around cygwin bug in F_DUPFD
26064         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
26065         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
26066         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
26067         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
26068         * doc/posix-functions/fcntl.texi (fcntl): Document it.
26069
26070         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
26071         * modules/fcntl (Files): List new files.
26072         (configure.ac): Run a test.
26073         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
26074         * lib/fcntl.c (rpl_fcntl): Likewise.
26075         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
26076         (gl_FCNTL_H): Always replace fcntl.h.
26077         * modules/fcntl-h (Makefile.am): Substitute witnesses.
26078         * lib/fcntl.in.h (fcntl): Declare replacement.
26079         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
26080         needed, plus a witness.
26081         * doc/posix-functions/fcntl.texi (fcntl): Document this.
26082         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
26083         * tests/test-fcntl.c: New file.
26084         * modules/fcntl-tests: Likewise.
26085
26086         binary-io: avoid potential compilation warning
26087         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
26088         directives.
26089
26090         fflush: avoid compilation error on NetBSD
26091         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
26092         between off_t and fpos_t, since the latter is sometimes a struct.
26093         * lib/fseeko.c (rpl_fseeko): Likewise.
26094         Reported by Alexander Nasonov <alnsn@yandex.ru>.
26095
26096 2009-12-15  Eric Blake  <ebb9@byu.net>
26097
26098         fcntl-h, stdio, sys_ioctl: fix declarations
26099         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
26100         function must not take arguments.
26101         * lib/sys_ioctl.in.h (ioctl): Likewise.
26102         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
26103         (open): Add a link warning.
26104
26105 2009-12-15  Jim Meyering  <meyering@redhat.com>
26106
26107         areadlink, areadlink-with-size: relax license to LGPLv2+
26108         * modules/areadlink (License): Relax to LGPLv2+.
26109         * modules/areadlink-with-size (License): Likewise.
26110
26111 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
26112             Bruno Haible  <bruno@clisp.org>
26113
26114         *printf: Fix memory leak.
26115         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
26116         * lib/vfprintf.c (vfprintf): Likewise.
26117         * lib/dprintf.c (dprintf): Likewise.
26118         * lib/vdprintf.c (vdprintf): Likewise.
26119
26120 2009-12-14  Eric Blake  <ebb9@byu.net>
26121
26122         accept4: adjust module dependencies
26123         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
26124
26125         utimens: one more try at avoiding compiler warning
26126         * lib/utimens.c (lutimens): Lower scope of result.
26127
26128 2009-12-13  Bruno Haible  <bruno@clisp.org>
26129
26130         Move the malloc checking from module 'list' to new module 'xlist'.
26131         * modules/xlist: New file.
26132         * lib/gl_xlist.h: New file.
26133         * lib/gl_xlist.c: New file.
26134         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
26135         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
26136         gl_list_add_last, gl_list_add_before, gl_list_add_after,
26137         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
26138         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
26139         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
26140         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
26141         gl_sortedlist_nx_add): New declarations.
26142         (struct gl_list_implementation): Rename and change methods accordingly.
26143         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
26144         (gl_list_nx_create): Renamed from gl_list_create.
26145         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
26146         (gl_list_nx_set_at): Renamed from gl_list_set_at.
26147         (gl_list_nx_add_first): Renamed from gl_list_add_first.
26148         (gl_list_nx_add_last): Renamed from gl_list_add_last.
26149         (gl_list_nx_add_before): Renamed from gl_list_add_before.
26150         (gl_list_nx_add_after): Renamed from gl_list_add_after.
26151         (gl_list_nx_add_at): Renamed from gl_list_add_at.
26152         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
26153         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
26154         gl_list_create_empty.
26155         (gl_list_nx_create): Renamed from gl_list_create.
26156         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
26157         (gl_list_nx_set_at): Renamed from gl_list_set_at.
26158         (gl_list_nx_add_first): Renamed from gl_list_add_first.
26159         (gl_list_nx_add_last): Renamed from gl_list_add_last.
26160         (gl_list_nx_add_before): Renamed from gl_list_add_before.
26161         (gl_list_nx_add_after): Renamed from gl_list_add_after.
26162         (gl_list_nx_add_at): Renamed from gl_list_add_at.
26163         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
26164         * lib/gl_array_list.c: Don't include xalloc.h.
26165         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
26166         NULL upon out-of-memory.
26167         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
26168         out-of-memory.
26169         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
26170         Change return type to 'int'.
26171         (gl_array_nx_set_at): Renamed from gl_array_set_at.
26172         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
26173         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
26174         upon out-of-memory.
26175         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
26176         upon out-of-memory.
26177         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
26178         upon out-of-memory.
26179         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
26180         upon out-of-memory.
26181         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
26182         out-of-memory.
26183         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
26184         Update.
26185         (gl_array_list_implementation): Update.
26186         * lib/gl_carray_list.c: Don't include xalloc.h.
26187         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
26188         Return NULL upon out-of-memory.
26189         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
26190         out-of-memory.
26191         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
26192         Change return type to 'int'.
26193         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
26194         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
26195         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
26196         upon out-of-memory.
26197         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
26198         upon out-of-memory.
26199         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
26200         out-of-memory.
26201         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
26202         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
26203         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
26204         Update.
26205         (gl_carray_list_implementation): Update.
26206         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
26207         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
26208         gl_linked_create_empty. Return NULL upon out-of-memory.
26209         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
26210         out-of-memory.
26211         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
26212         Change return type to 'int'. Return -1 upon out-of-memory.
26213         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
26214         out-of-memory.
26215         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
26216         upon out-of-memory.
26217         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
26218         upon out-of-memory.
26219         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
26220         NULL upon out-of-memory.
26221         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
26222         upon out-of-memory.
26223         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
26224         out-of-memory.
26225         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
26226         Update.
26227         * lib/gl_linked_list.c: Don't include xalloc.h.
26228         (gl_linked_list_implementation): Update.
26229         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
26230         (add_to_bucket): Change return type to 'int'.
26231         (gl_linkedhash_list_implementation): Update.
26232         * lib/gl_anytree_list1.h (free_subtree): New function.
26233         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
26234         gl_tree_create_empty. Return NULL upon out-of-memory.
26235         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
26236         Change return type to 'int'. Return -1 upon out-of-memory.
26237         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
26238         out-of-memory.
26239         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
26240         (gl_tree_remove_node): New function, moved here from
26241         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
26242         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
26243         Update.
26244         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
26245         malloc, not xmalloc. Return NULL upon out-of-memory.
26246         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
26247         out-of-memory.
26248         (gl_tree_remove_node_from_tree): New function, extracted from
26249         gl_tree_remove_node.
26250         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
26251         upon out-of-memory.
26252         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
26253         out-of-memory.
26254         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
26255         upon out-of-memory.
26256         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
26257         upon out-of-memory.
26258         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
26259         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
26260         not xmalloc. Return NULL upon out-of-memory.
26261         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
26262         out-of-memory.
26263         (gl_tree_remove_node_from_tree): New function, extracted from
26264         gl_tree_remove_node.
26265         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
26266         upon out-of-memory.
26267         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
26268         out-of-memory.
26269         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
26270         upon out-of-memory.
26271         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
26272         upon out-of-memory.
26273         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
26274         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
26275         gl_anytree_list1.h before gl_anyavltree_list2.h.
26276         (gl_avltree_list_implementation): Update.
26277         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
26278         gl_anytree_list1.h before gl_anyavltree_list2.h.
26279         (gl_rbtree_list_implementation): Update.
26280         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
26281         Change return type to 'int'. Return -1 upon out-of-memory. Use
26282         __builtin_expect.
26283         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
26284         (gl_avltreehash_list_implementation): Update.
26285         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
26286         (gl_rbtreehash_list_implementation): Update.
26287         * modules/array-list (Depends-on): Remove xalloc.
26288         * modules/carray-list (Depends-on): Likewise.
26289         * modules/linked-list (Depends-on): Likewise.
26290         * modules/linkedhash-list (Depends-on): Likewise.
26291         * modules/avltree-list (Depends-on): Likewise.
26292         * modules/rbtree-list (Depends-on): Likewise.
26293         * modules/avltreehash-list (Depends-on): Likewise.
26294         * modules/rbtreehash-list (Depends-on): Likewise.
26295
26296         * modules/xsublist: New file.
26297         * lib/gl_xsublist.h: New file.
26298         * lib/gl_xsublist.c: New file.
26299         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
26300         (gl_sublist_nx_create): New declaration.
26301         * lib/gl_sublist.c: Don't include xalloc.h.
26302         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
26303         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
26304         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
26305         Change return type to 'int'. Return -1 upon out-of-memory.
26306         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
26307         upon out-of-memory.
26308         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
26309         NULL upon out-of-memory.
26310         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
26311         upon out-of-memory.
26312         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
26313         NULL upon out-of-memory.
26314         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
26315         NULL upon out-of-memory.
26316         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
26317         upon out-of-memory.
26318         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
26319         (gl_sublist_list_implementation): Update.
26320         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
26321         upon out-of-memory.
26322         * modules/sublist (Depends-on): Remove xalloc.
26323
26324         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
26325         * tests/test-carray_list.c: Likewise.
26326         * tests/test-linked_list.c: Likewise.
26327         * tests/test-linkedhash_list.c: Likewise.
26328         * tests/test-avltree_list.c: Likewise.
26329         * tests/test-rbtree_list.c: Likewise.
26330         * tests/test-avltreehash_list.c: Likewise.
26331         * tests/test-rbtreehash_list.c: Likewise.
26332         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
26333         * modules/carray-list-tests (Makefile.am): Likewise.
26334         * modules/linked-list-tests (Makefile.am): Likewise.
26335         * modules/linkedhash-list-tests (Makefile.am): Likewise.
26336         * modules/avltree-list-tests (Makefile.am): Likewise.
26337         * modules/rbtree-list-tests (Makefile.am): Likewise.
26338         * modules/avltreehash-list-tests (Makefile.am): Likewise.
26339         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
26340
26341         * NEWS: Mention the changes.
26342
26343         * lib/clean-temp.c: Include gl_xlist.h.
26344         * modules/clean-temp (Depends-on): Add xlist.
26345
26346         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
26347         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
26348
26349         * tests/test-array_oset.c: Include gl_xlist.h.
26350         * modules/array-oset-tests (Depends-on): Add xlist.
26351
26352         Reported by José E. Marchesi <jemarch@gnu.org>.
26353
26354 2009-12-13  Bruno Haible  <bruno@clisp.org>
26355
26356         Move the malloc checking from module 'oset' to new module 'xoset'.
26357         * modules/xoset: New file.
26358         * lib/gl_xoset.h: New file.
26359         * lib/gl_xoset.c: New file.
26360         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
26361         declarations.
26362         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
26363         (struct gl_oset_implementation): Rename and change methods accordingly.
26364         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
26365         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
26366         'int'. Mark as __warn_unused_result__.
26367         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
26368         gl_oset_create_empty.
26369         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
26370         'int'.
26371         * lib/gl_array_oset.c: Don't include xalloc.h.
26372         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
26373         malloc, not xmalloc.
26374         (grow): Change return type to 'int'. Don't call xalloc_die.
26375         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
26376         to 'int'.
26377         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
26378         'int'.
26379         (gl_array_oset_implementation): Update.
26380         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
26381         gl_tree_create_empty.
26382         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
26383         'int'.
26384         * lib/gl_avltree_oset.c: Don't include xalloc.h.
26385         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
26386         xmalloc.
26387         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
26388         not xmalloc.
26389         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
26390         xmalloc.
26391         (gl_avltree_oset_implementation): Update.
26392         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
26393         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
26394         xmalloc.
26395         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
26396         not xmalloc.
26397         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
26398         xmalloc.
26399         (gl_rbtree_oset_implementation): Update.
26400         * modules/array-oset (Depends-on): Remove xalloc.
26401         * modules/avltree-oset (Depends-on): Likewise.
26402         * modules/rbtree-oset (Depends-on): Likewise.
26403         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
26404         * tests/test-avltree_oset.c: Likewise.
26405         * tests/test-rbtree_oset.c: Likewise.
26406         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
26407         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
26408         * modules/rbtree-oset-tests (Makefile.am): Likewise.
26409         * NEWS: Mention the change.
26410
26411 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
26412
26413         maint.mk: allow a project to override release-prep commands
26414         * top/maint.mk (alpha, beta, stable): Move release-preparatory
26415         commands into a new rule.
26416         (release-prep): New rule.
26417         (release-prep-hook): New overridable variable.
26418
26419 2009-12-13  Bruno Haible  <bruno@clisp.org>
26420
26421         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
26422
26423 2009-12-13  Jim Meyering  <meyering@redhat.com>
26424
26425         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
26426         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
26427
26428 2009-12-12  Bruno Haible  <bruno@clisp.org>
26429
26430         duplocale: Tweak.
26431         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
26432
26433 2009-12-12  Karl Berry  <karl@gnu.org>
26434
26435         * config/srclist.txt (strtoll.c): tab changes, no more sync.
26436
26437 2009-12-12  Bruno Haible  <bruno@clisp.org>
26438
26439         * m4/po.m4: Undo incorrect untabification.
26440
26441 2009-12-12  Bruno Haible  <bruno@clisp.org>
26442
26443         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
26444         * modules/c-strtod (Depends-on): Add locale.
26445         * modules/c-strtold (Depends-on): Likewise.
26446
26447 2009-12-12  Bruno Haible  <bruno@clisp.org>
26448
26449         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
26450
26451 2009-12-11  Eric Blake  <ebb9@byu.net>
26452
26453         setenv: relax requirement in light of POSIX ruling
26454         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
26455         not NULL.
26456         * tests/test-setenv.c (main): Relax test.
26457         * tests/test-unsetenv.c (main): Likewise.
26458         * doc/posix-functions/setenv.texi (setenv): Document this.
26459         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
26460
26461 2009-12-11  Bruno Haible  <bruno@clisp.org>
26462
26463         New module 'fd-safer-flag'.
26464         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
26465         * lib/dup-safer.c (dup_safer_flag): Remove function.
26466         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
26467         * lib/fd-safer.c (fd_safer_flag): Remove function.
26468         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
26469         * modules/cloexec (configure.ac): Drop indicator macro.
26470         * modules/fd-safer-flag: New file.
26471         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
26472         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
26473         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
26474
26475 2009-12-11  Bruno Haible  <bruno@clisp.org>
26476
26477         Tests for module 'nl_langinfo'.
26478         * modules/nl_langinfo-tests: New file.
26479         * tests/test-nl_langinfo.sh: New file.
26480         * tests/test-nl_langinfo.c: New file.
26481
26482         New module 'nl_langinfo'.
26483         * lib/nl_langinfo.c: New file.
26484         * m4/nl_langinfo.m4: New file.
26485         * modules/nl_langinfo: New file.
26486         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
26487
26488 2009-12-11  Bruno Haible  <bruno@clisp.org>
26489
26490         Tests for module 'langinfo'.
26491         * modules/langinfo-tests: New file.
26492         * tests/test-langinfo.c: New file.
26493
26494         New module 'langinfo'.
26495         * lib/langinfo.in.h: New file.
26496         * m4/langinfo_h.m4: New file.
26497         * modules/langinfo: New file.
26498         * doc/posix-headers/langinfo.texi: Mention the new module.
26499
26500 2009-12-11  Bruno Haible  <bruno@clisp.org>
26501
26502         * lib/config.charset: Untabify.
26503
26504 2009-12-11  Bruno Haible  <bruno@clisp.org>
26505
26506         * modules/unistd-safer (configure.ac): Drop indicator macro.
26507
26508 2009-12-11  Bruno Haible  <bruno@clisp.org>
26509
26510         Move pipe2-safer code to its own file.
26511         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
26512         * lib/pipe-safer.c (pipe2_safer): Remove function.
26513         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
26514         (Makefile.am): Add it to lib_SOURCES.
26515
26516 2009-12-10  Bruno Haible  <bruno@clisp.org>
26517
26518         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
26519
26520 2009-12-10  Bruno Haible  <bruno@clisp.org>
26521
26522         Declare which arguments expect non-NULL values, for GCC and clang.
26523         * build-aux/arg-nonnull.h: New file.
26524         * modules/arg-nonnull: New file.
26525         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
26526         (inet_ntop, inet_pton): Use it.
26527         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
26528         (closedir, dirfd, opendir, scandir, alphasort): Use it.
26529         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
26530         (open, openat): Use it.
26531         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
26532         (fnmatch): Use it.
26533         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
26534         (getopt, getopt_long, getopt_long_only): Use it.
26535         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
26536         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
26537         Use it.
26538         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
26539         (iconv_open): Use it.
26540         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
26541         (strtoimax, strtoumax): Use it.
26542         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
26543         (duplocale): Use it.
26544         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
26545         (frexp, frexpl): Use it.
26546         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
26547         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
26548         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
26549         (tsearch, tfind, tdelete, twalk): Use it.
26550         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
26551         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
26552         sigpending): Use it.
26553         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
26554         (posix_spawn, posix_spawnp, posix_spawnattr_init,
26555         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
26556         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
26557         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
26558         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
26559         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
26560         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
26561         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
26562         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
26563         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
26564         Use it.
26565         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
26566         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
26567         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
26568         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
26569         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
26570         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
26571         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
26572         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
26573         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
26574         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
26575         strtoull, unsetenv): Use it.
26576         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
26577         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
26578         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
26579         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
26580         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
26581         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
26582         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
26583         (strcasecmp, strncasecmp): Use it.
26584         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
26585         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
26586         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
26587         rpl_setsockopt): Use it.
26588         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
26589         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
26590         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
26591         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
26592         (gettimeofday): Use it.
26593         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
26594         (times): Use it.
26595         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
26596         (uname): Use it.
26597         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
26598         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
26599         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
26600         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
26601         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
26602         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
26603         unlinkat, write): Use it.
26604         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
26605         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
26606         * lib/argv-iter.h: Include arg-nonnull.h.
26607         (_ATTRIBUTE_NONNULL_): Remove macro.
26608         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
26609         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
26610         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
26611         optimization.
26612         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
26613         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
26614         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
26615         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
26616         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
26617         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
26618         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
26619         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
26620         * modules/arpa_inet (Depends-on): Add arg-nonnull.
26621         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
26622         * modules/dirent (Depends-on): Add arg-nonnull.
26623         (Makefile.am): Insert arg-nonnull.h into dirent.h.
26624         * modules/fcntl-h (Depends-on): Add arg-nonnull.
26625         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
26626         * modules/fnmatch (Depends-on): Add arg-nonnull.
26627         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
26628         * modules/getopt-posix (Depends-on): Add arg-nonnull.
26629         (Makefile.am): Insert arg-nonnull.h into getopt.h.
26630         * modules/glob (Depends-on): Add arg-nonnull.
26631         (Makefile.am): Insert arg-nonnull.h into glob.h.
26632         * modules/iconv_open (Depends-on): Add arg-nonnull.
26633         (Makefile.am): Insert arg-nonnull.h into iconv.h.
26634         * modules/inttypes (Depends-on): Add arg-nonnull.
26635         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
26636         * modules/locale (Depends-on): Add arg-nonnull.
26637         (Makefile.am): Insert arg-nonnull.h into locale.h.
26638         * modules/math (Depends-on): Add arg-nonnull.
26639         (Makefile.am): Insert arg-nonnull.h into math.h.
26640         * modules/netdb (Depends-on): Add arg-nonnull.
26641         (Makefile.am): Insert arg-nonnull.h into netdb.h.
26642         * modules/search (Depends-on): Add arg-nonnull.
26643         (Makefile.am): Insert arg-nonnull.h into search.h.
26644         * modules/signal (Depends-on): Add arg-nonnull.
26645         (Makefile.am): Insert arg-nonnull.h into signal.h.
26646         * modules/spawn (Depends-on): Add arg-nonnull.
26647         (Makefile.am): Insert arg-nonnull.h into spawn.h.
26648         * modules/stdio (Depends-on): Add arg-nonnull.
26649         (Makefile.am): Insert arg-nonnull.h into stdio.h.
26650         * modules/stdlib (Depends-on): Add arg-nonnull.
26651         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
26652         * modules/string (Depends-on): Add arg-nonnull.
26653         (Makefile.am): Insert arg-nonnull.h into string.h.
26654         * modules/strings (Depends-on): Add arg-nonnull.
26655         (Makefile.am): Insert arg-nonnull.h into strings.h.
26656         * modules/sys_socket (Depends-on): Add arg-nonnull.
26657         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
26658         * modules/sys_stat (Depends-on): Add arg-nonnull.
26659         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
26660         * modules/sys_time (Depends-on): Add arg-nonnull.
26661         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
26662         * modules/sys_times (Depends-on): Add arg-nonnull.
26663         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
26664         * modules/sys_utsname (Depends-on): Add arg-nonnull.
26665         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
26666         * modules/time (Depends-on): Add arg-nonnull.
26667         (Makefile.am): Insert arg-nonnull.h into time.h.
26668         * modules/unistd (Depends-on): Add arg-nonnull.
26669         (Makefile.am): Insert arg-nonnull.h into unistd.h.
26670         * modules/wchar (Depends-on): Add arg-nonnull.
26671         (Makefile.am): Insert arg-nonnull.h into wchar.h.
26672         * modules/argv-iter (Depends-on): Add arg-nonnull.
26673         * tests/test-canonicalize.c (null_ptr): New function.
26674         (main): Use it.
26675         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
26676         (main): Use it.
26677         * tests/test-memmem.c (null_ptr): New function.
26678         (main): Use it.
26679         Reported by Jim Meyering.
26680
26681 2009-12-10  Bruno Haible  <bruno@clisp.org>
26682
26683         Use spaces for indentation, not tabs.
26684         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
26685         * m4/*.m4: Untabify.
26686         * build-aux/*.h: Untabify.
26687         * tests/**/*.[hc]: Untabify.
26688         * README: New section "Indent with spaces, not TABs", based on
26689         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
26690         * NEWS: Mention the change.
26691
26692 2009-12-10  Bruno Haible  <bruno@clisp.org>
26693
26694         pty test: Fix link error.
26695         * modules/pty-tests (Makefile.am): Add the default LDADD value to
26696         test_pty_LDADD.
26697
26698 2009-12-07  Simon Josefsson  <simon@josefsson.org>
26699
26700         * modules/pty: New file.
26701         * modules/pty-tests: New file.
26702         * m4/pty.m4: New file.
26703         * tests/test-pty.c: New file.
26704         * doc/glibc-headers/pty.texi: Modified.
26705         * doc/glibc-functions/forkpty.texi: Modified.
26706         * doc/glibc-functions/openpty.texi: Modified.
26707
26708 2009-12-10  Bruno Haible  <bruno@clisp.org>
26709
26710         Avoid syntax error in C++ mode.
26711         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
26712
26713 2009-12-10  Bruno Haible  <bruno@clisp.org>
26714
26715         Use sed with option -e.
26716         * gnulib-tool (func_version, func_emit_copyright_notice,
26717         func_emit_initmacro_end, func_import, func_create_testdir): Pass
26718         option -e to sed.
26719         * modules/link-warning (Makefile.am): Likewise.
26720
26721 2009-12-10  Jim Meyering  <meyering@redhat.com>
26722
26723         mgetgroups: do not write bytes beyond end of malloc'd buffer
26724         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
26725         username, we call getgroups with a one-element-shorter buffer,
26726         but still told it the length was original, max_n_groups.
26727
26728 2009-12-09  Eric Blake  <ebb9@byu.net>
26729
26730         cloexec: relax license
26731         * modules/cloexec (Maintainer): Add myself.
26732         (License): Use LGPL, not GPL.
26733
26734         link-warning: optimize generation
26735         * modules/link-warning (Makefile.am): Reduce process usage.
26736
26737 2009-12-09  Bruno Haible  <bruno@clisp.org>
26738
26739         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
26740         workaround was added on 2009-11-17.
26741
26742 2009-12-09  Jim Meyering  <meyering@redhat.com>
26743             Bruno Haible  <bruno@clisp.org>
26744
26745         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
26746         * modules/link-warning (Makefile.am): Make the comment-removing sed
26747         command more robust in the face of bootstrap-prepended comment lines.
26748
26749 2009-12-09  Bruno Haible  <bruno@clisp.org>
26750
26751         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
26752         most one group.
26753
26754 2009-12-09  Simon Josefsson <simon@josefsson.org>
26755             Bruno Haible  <bruno@clisp.org>
26756
26757         * build-aux/link-warning.h: Add copyright notice.
26758         * modules/link-warning (Makefile.am): Generate link-warning.h from
26759         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
26760         * NEWS: Mention change in link-warning module.
26761         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
26762         * modules/dirent (Makefile.am): Add dependency to dirent.h.
26763         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
26764         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
26765         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
26766         * modules/math (Makefile.am): Add dependency to math.h.
26767         * modules/search (Makefile.am): Add dependency to search.h.
26768         * modules/signal (Makefile.am): Add dependency to signal.h.
26769         * modules/spawn (Makefile.am): Add dependency to spawn.h.
26770         * modules/stdio (Makefile.am): Add dependency to stdio.h.
26771         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
26772         * modules/string (Makefile.am): Add dependency to string.h.
26773         * modules/strings (Makefile.am): Add dependency to strings.h.
26774         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
26775         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
26776         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
26777         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
26778         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
26779         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
26780         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
26781         * modules/unistd (Makefile.am): Add dependency to unistd.h.
26782         * modules/wchar (Makefile.am): Add dependency to wchar.h.
26783
26784 2009-12-09  Bruno Haible  <bruno@clisp.org>
26785
26786         fchdir: Optimize away rpl_fstat when possible.
26787         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
26788         REPLACE_OPEN_DIRECTORY.
26789         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
26790
26791 2009-12-09  Bruno Haible  <bruno@clisp.org>
26792
26793         * lib/fchdir.c: Update comment.
26794
26795 2009-12-09  Bruno Haible  <bruno@clisp.org>
26796
26797         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
26798
26799 2009-12-08  Eric Blake  <ebb9@byu.net>
26800
26801         fchdir: avoid memory leak on re-registration.
26802         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
26803
26804 2009-12-08  Jim Meyering  <meyering@redhat.com>
26805
26806         init.sh: avoid Solaris 10 /bin/sh portability problem
26807         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
26808         sourced script:
26809           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
26810           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
26811           bar
26812         tests/init.sh relied on that, accepting a --set-path=DIR argument,
26813         and two tests used that idiom.
26814         * tests/init.sh: Update suggested usage comments.
26815         (path_prepend_): New function, to be used in place
26816         of the --src-path=DIR option.
26817         (setup_): Move PATH-prepending code into path_prepend_.
26818         * tests/test-pread.sh: Adapt to new usage.
26819         * tests/test-xalloc-die.sh: Likewise.
26820
26821 2009-12-08  Simon Josefsson  <simon@josefsson.org>
26822
26823         * doc/gnulib.texi (Glibc pty.h): Add.
26824         * doc/glibc-functions/forkpty.texi: Add.
26825         * doc/glibc-functions/openpty.texi: Add.
26826         Suggested by Bruno Haible.
26827
26828 2009-12-08  Eric Blake  <ebb9@byu.net>
26829
26830         fchdir: fix logic bugs
26831         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
26832         * tests/test-fchdir.c (main): Enhance test.
26833         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
26834         is in use.
26835
26836         dup2: fix logic bugs
26837         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
26838         REPLACE_DUP2 to decide when rpl_dup2 is needed.
26839         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
26840         exists.
26841         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
26842
26843 2009-12-07  Eric Blake  <ebb9@byu.net>
26844
26845         unlink: fix m4 detection
26846         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
26847
26848         unistd-safer: add unit test
26849         * modules/unistd-safer-tests: New file.
26850         * tests/test-dup-safer.c: Likewise.
26851         * tests/test-cloexec.c (setmode): Avoid compiler warning.
26852         * tests/test-dup2.c (setmode): Likewise.
26853         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
26854
26855         cloexec: preserve text vs. binary across dup_cloexec
26856         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
26857         mode.
26858         * modules/dup2-tests (Depends-on): Add binary-io.
26859         * modules/cloexec-tests (Depends-on): Likewise.
26860         * tests/test-dup2.c (setmode, is_mode): New helpers.
26861         (main): Add tests that translation mode is preserved.
26862         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
26863         Reported by Bruno Haible.
26864
26865         mgetgroups: reduce duplicate listings
26866         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
26867         resulting array.
26868         * tests/test-chown.h (test_chown): Simplify client.
26869         * tests/test-lchown.h (test_lchown): Likewise.
26870
26871 2009-12-06  Bruno Haible  <bruno@clisp.org>
26872
26873         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
26874         value.
26875
26876 2009-12-06  Bruno Haible  <bruno@clisp.org>
26877
26878         * lib/progname.c: Include stdio.h, stdlib.h.
26879         (set_program_name): Reject a NULL argument.
26880
26881 2009-12-05  Eric Blake  <ebb9@byu.net>
26882
26883         pipe2-safer: new module
26884         * modules/pipe2-safer: New file.
26885         * lib/unistd-safer.h (pipe2_safer): New prototype.
26886         * lib/unistd--.h (pipe2): New wrapper.
26887         * lib/pipe-safer.c (pipe2_safer): New function.
26888         * modules/pipe (Depends-on): Add pipe2-safer.
26889         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
26890
26891         stdlib-safer: preserve cloexec flag for mkostemp[s]
26892         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
26893         fd_safer_flag.
26894
26895         unistd-safer: allow preservation of cloexec status via flag
26896         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
26897         prototypes.
26898         * lib/dup-safer.c (dup_safer_flag): New function.
26899         * lib/fd-safer.c (fd_safer_flag): Likewise.
26900         * modules/cloexec (configure.ac): Set witness.
26901
26902         test-dup2: enhance test
26903         * modules/dup2-tests (Depends-on): Add cloexec.
26904         * tests/test-dup2.c (main): Enhance test.
26905
26906         cloexec: add dup_cloexec
26907         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
26908         header and comments.
26909         * lib/cloexec.c (set_cloexec_flag): Add comments.
26910         (dup_cloexec): New function, with mingw implementation borrowed
26911         from...
26912         * lib/w32spawn.h (dup_noinherit): ...here.
26913         * modules/execute (Depends-on): Add cloexec.
26914         * modules/pipe (Depends-on): Likewise.
26915         * modules/cloexec (Depends-on): Add dup2.
26916         * modules/cloexec-tests (Files): New file.
26917         * tests/test-cloexec.c: Likewise.
26918
26919         test-xalloc-die: fix test for mingw
26920         * modules/xalloc-die-tests (Files): Add tests/init.sh.
26921         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
26922         directory and .exe suffix off argv[0] output.
26923
26924         test-fseeko: fix test for mingw
26925         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
26926         than undefining fseek, so test will pass on mingw.
26927
26928 2009-12-05  Bruno Haible  <bruno@clisp.org>
26929
26930         * lib/progname.h (set_program_name): Clarify specification.
26931         * lib/progname.c (set_program_name): Likewise.
26932         Reported by Jim Meyering.
26933
26934 2009-12-05  Jim Meyering  <meyering@redhat.com>
26935
26936         maint.mk: backslash-escape parens in default regexp
26937         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
26938         backslash-escape the literal parentheses.
26939
26940         maint.mk: news-date-check: use grep -E
26941         * top/maint.mk (today): Define a Make variable, not a...
26942         (news-date-check): ...shell variable.
26943         (news-date-regexp): Use the Make variable.
26944         Use grep's -E option.  Change the failing diagnostic to mention
26945         the variable, $(news-date-regexp).
26946
26947 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
26948
26949         maintainer-makefile: allow customization of NEWS entry format
26950         * top/maint.mk (news-date-regexp): New overridable variable.
26951         (news-date-check): Use it.
26952
26953 2009-12-04  Eric Blake  <ebb9@byu.net>
26954
26955         mgetgroups: add xgetgroups, and avoid ENOSYS failures
26956         * lib/mgetgroups.h (xgetgroups): New prototype.
26957         * lib/mgetgroups.c (xgetgroups): New wrapper.
26958         (mgetgroups): Handle ENOSYS.
26959         * modules/mgetgroups (Depends-on): Add realloc.
26960         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
26961
26962         mgetgroups: avoid argument promotion issues with -1
26963         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
26964         for invalid gid_t.
26965         * tests/test-chown.h (getegid, test_chown): Likewise.
26966         * tests/test-lchown.h (getegid, test_lchown): Likewise.
26967
26968 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
26969
26970         exclude: Fix header file problems.
26971         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
26972
26973 2009-12-01  Jim Meyering  <meyering@redhat.com>
26974
26975         fts: fts_open: do not let an empty string cause immediate failure
26976         This is required in support of GNU rm, for which the command
26977         "rm A '' B" must process and remove both A and B, in spite of
26978         the empty string argument.
26979         * lib/fts.c (fts_open): Do not let the presence of an empty string
26980         cause fts_open to fail immediately.  Most fts-using tools must be
26981         able to process all arguments, in order, and can be expected to
26982         diagnose such arguments themselves.
26983
26984 2009-11-30  Eric Blake  <ebb9@byu.net>
26985
26986         utimens: fix compilation error
26987         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
26988         Declare variable at right scope.
26989
26990 2009-11-29  Jim Meyering  <meyering@redhat.com>
26991
26992         bootstrap: handle perl-5.11's changed --version output
26993         * build-aux/bootstrap (get_version): Handle perl separately,
26994         since perl-5.11's --version output is different.
26995
26996 2009-11-28  Jim Meyering  <meyering@redhat.com>
26997
26998         userspec: depend on the inttostr module, too
26999         * modules/userspec (Depends-on): Add inttostr.
27000
27001         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
27002         * lib/userspec.c (parse_with_separator): Do not accept a user ID
27003         number of MAXUID when it evaluates to (uid_t) -1.
27004         Likewise for group ID.  Reported by Matt McCutchen in
27005         <http://savannah.gnu.org/bugs/?28113>
27006
27007         userspec: reformat to use spaces, not TABs
27008         * lib/userspec.c: Expand TABs to spaces.
27009         Add Emacs' "indent-tabs-mode: nil" hint.
27010
27011 2009-11-27  Eric Blake  <ebb9@byu.net>
27012
27013         getopt-gnu: flush out another BSD bug
27014         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
27015         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
27016         flush out BSD bug.
27017         * tests/test-getopt.h (test_getopt): End lists with NULL.
27018         * tests/test-getopt_long.h (test_getopt_long): Likewise.
27019         (test_getopt_long_posix): Enhance test.
27020         * modules/getopt-posix-tests (Depends-on): Add stdbool.
27021         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
27022         getopt-gnu.
27023         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
27024         Likewise.
27025
27026 2009-11-27  Simon Josefsson  <simon@josefsson.org>
27027
27028         * modules/idpriv-droptemp-tests (Notice): Fix text.
27029
27030 2009-11-27  Jim Meyering  <meyering@redhat.com>
27031
27032         test-xalloc-die: avoid spurious failure due to libtool argv difference
27033         In a libtool-enabled project, this test would fail due to a difference
27034         in the emitted program name, e.g.,
27035         -test-xalloc-die: memory exhausted
27036         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
27037         Use program to avoid that.
27038         * modules/xalloc-die-tests (Depends-on): Add progname.
27039         * tests/test-xalloc-die.c: Include progname.h".
27040         (program_name): Remove decl.
27041         (main): Call set_program_name.
27042         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
27043
27044 2009-11-26  Richard Jones  <rjones@redhat.com>
27045
27046         w32sock: leave win32 error in place.
27047         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
27048
27049 2009-11-26  Eric Blake  <ebb9@byu.net>
27050
27051         init.sh: suggest to use skip_ and fail_ functions in comments
27052         * tests/init.sh: Add a sentence.
27053
27054 2009-11-25  Bruno Haible  <bruno@clisp.org>
27055
27056         init.sh: add documentation in comments
27057         * tests/init.sh: Add some developer and user documentation.
27058
27059 2009-11-26  Jim Meyering  <meyering@redhat.com>
27060
27061         init.sh: accommodate even those who specify bogus srcdir manually
27062         * tests/init.sh: Normally, srcdir is guaranteed by automake and
27063         configure-time tests to be sanitized, so that there is no need to
27064         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
27065         (with no double quotes) suffices.  However, since tests may be
27066         invoked manually, and since you may explicitly set srcdir to the
27067         name of a directory containing spaces, do quote its uses here.
27068         * tests/test-pread.sh: Likewise.
27069         Suggested by Bruno Haible.
27070
27071         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
27072         * tests/test-pread.sh: Write no data into the pipe, because
27073         test-pread actually reads none.  This avoids a diagnostic,
27074         "bash: echo: write error: Broken pipe", that arises in the unusual
27075         event something is ignoring SIGPIPE, and might be interpreted
27076         as some sort of failure.  Reported by Bruno Haible.
27077
27078 2009-11-25  Jim Meyering  <meyering@redhat.com>
27079
27080         test-pread: cover failure with ESPIPE and EINVAL
27081         * tests/test-pread.c (main): Test for failure, too.
27082         * tests/test-pread.sh: Invoke with stdin on a pipe.
27083         Suggested by Eric Blake.
27084
27085         pread: improvement and fix
27086         * modules/pread (Depends-on): Depend on lseek, for portability to
27087         e.g., mingw.  Suggested by Eric Blake.
27088         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
27089
27090         unistd.in.h: correct declaration of pread
27091         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
27092         Reported by Richard W.M. Jones.
27093
27094         test-pread.sh: distribute the test script
27095         * modules/pread-tests (Files): Include test-pread.sh.
27096
27097         test-pread.sh: clean up
27098         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
27099         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
27100         That is unnecessary, since it's always ".".
27101         Suggestion from Eric Blake.
27102
27103         test-pread.sh: make executable
27104         * tests/test-pread.sh: Set executable bit.
27105         Reported by Eric Blake.
27106
27107         correct typo in test-pread.sh
27108         * tests/test-pread.sh: Add #! line.
27109
27110         test pread
27111         * tests/test-pread.c: New file.
27112         * tests/test-pread.sh: Likewise.
27113         * modules/pread-tests: Likewise.
27114
27115         pread: new module
27116         * modules/pread: New file.
27117         * lib/unistd.in.h (pread): Define/declare.
27118         * lib/pread.c (pread): New file.
27119         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
27120         * modules/unistd (Makefile.am): Substitute witnesses.
27121         * doc/posix-functions/pread.texi (pread): Update.
27122         * MODULES.html.sh: Add pread.
27123
27124 2009-11-25  Jim Meyering  <meyering@redhat.com>
27125
27126         tests/init.sh: new file to be used via most *.sh tests
27127         * tests/init.sh: New file.
27128
27129 2009-11-25  Eric Blake  <ebb9@byu.net>
27130
27131         utimens: work around older Linux failure with symlinks
27132         * lib/utimens.c (lutimensat_works_really): New variable.
27133         (fdutimens, lutimens): Use it to manage kernels that support
27134         nanosecond times on files, but not on symlinks.
27135         Reported by Ondřej Vašík.
27136
27137         utimes: fix configure grammar
27138         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
27139
27140 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
27141
27142         regex: Fix fastmap for multibyte character ranges.
27143         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
27144         characters when a multibyte character range is included.
27145
27146 2009-11-22  Andy Wingo  <wingo@pobox.com>
27147
27148         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
27149         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
27150
27151 2009-11-24  Bruno Haible  <bruno@clisp.org>
27152
27153         doc: Most *_l functions exist in MacOS X 10.5.
27154         * doc/posix-functions/duplocale.texi: Update platforms list.
27155         * doc/posix-functions/freelocale.texi: Likewise.
27156         * doc/posix-functions/newlocale.texi: Likewise.
27157         * doc/posix-functions/uselocale.texi: Likewise.
27158         * doc/posix-functions/isalnum_l.texi: Likewise.
27159         * doc/posix-functions/isalpha_l.texi: Likewise.
27160         * doc/posix-functions/isblank_l.texi: Likewise.
27161         * doc/posix-functions/iscntrl_l.texi: Likewise.
27162         * doc/posix-functions/isdigit_l.texi: Likewise.
27163         * doc/posix-functions/isgraph_l.texi: Likewise.
27164         * doc/posix-functions/islower_l.texi: Likewise.
27165         * doc/posix-functions/isprint_l.texi: Likewise.
27166         * doc/posix-functions/ispunct_l.texi: Likewise.
27167         * doc/posix-functions/isspace_l.texi: Likewise.
27168         * doc/posix-functions/isupper_l.texi: Likewise.
27169         * doc/posix-functions/iswalnum_l.texi: Likewise.
27170         * doc/posix-functions/iswalpha_l.texi: Likewise.
27171         * doc/posix-functions/iswblank_l.texi: Likewise.
27172         * doc/posix-functions/iswcntrl_l.texi: Likewise.
27173         * doc/posix-functions/iswctype_l.texi: Likewise.
27174         * doc/posix-functions/iswdigit_l.texi: Likewise.
27175         * doc/posix-functions/iswgraph_l.texi: Likewise.
27176         * doc/posix-functions/iswlower_l.texi: Likewise.
27177         * doc/posix-functions/iswprint_l.texi: Likewise.
27178         * doc/posix-functions/iswpunct_l.texi: Likewise.
27179         * doc/posix-functions/iswspace_l.texi: Likewise.
27180         * doc/posix-functions/iswupper_l.texi: Likewise.
27181         * doc/posix-functions/iswxdigit_l.texi: Likewise.
27182         * doc/posix-functions/isxdigit_l.texi: Likewise.
27183         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
27184         * doc/posix-functions/strcasecmp_l.texi: Likewise.
27185         * doc/posix-functions/strcoll_l.texi: Likewise.
27186         * doc/posix-functions/strfmon_l.texi: Likewise.
27187         * doc/posix-functions/strftime_l.texi: Likewise.
27188         * doc/posix-functions/strncasecmp_l.texi: Likewise.
27189         * doc/posix-functions/strxfrm_l.texi: Likewise.
27190         * doc/posix-functions/tolower_l.texi: Likewise.
27191         * doc/posix-functions/toupper_l.texi: Likewise.
27192         * doc/posix-functions/towctrans_l.texi: Likewise.
27193         * doc/posix-functions/towlower_l.texi: Likewise.
27194         * doc/posix-functions/towupper_l.texi: Likewise.
27195         * doc/posix-functions/wcscoll_l.texi: Likewise.
27196         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
27197         * doc/posix-functions/wctrans_l.texi: Likewise.
27198         * doc/posix-functions/wctype_l.texi: Likewise.
27199         * doc/glibc-functions/strptime_l.texi: Likewise.
27200         * doc/glibc-functions/strtod_l.texi: Likewise.
27201         * doc/glibc-functions/strtof_l.texi: Likewise.
27202         * doc/glibc-functions/strtol_l.texi: Likewise.
27203         * doc/glibc-functions/strtold_l.texi: Likewise.
27204         * doc/glibc-functions/strtoll_l.texi: Likewise.
27205         * doc/glibc-functions/strtoul_l.texi: Likewise.
27206         * doc/glibc-functions/strtoull_l.texi: Likewise.
27207         * doc/glibc-functions/wcsftime_l.texi: Likewise.
27208         * doc/glibc-functions/wcstod_l.texi: Likewise.
27209         * doc/glibc-functions/wcstof_l.texi: Likewise.
27210         * doc/glibc-functions/wcstol_l.texi: Likewise.
27211         * doc/glibc-functions/wcstold_l.texi: Likewise.
27212         * doc/glibc-functions/wcstoll_l.texi: Likewise.
27213         * doc/glibc-functions/wcstoul_l.texi: Likewise.
27214         * doc/glibc-functions/wcstoull_l.texi: Likewise.
27215
27216 2009-11-24  Bruno Haible  <bruno@clisp.org>
27217
27218         duplocale: Fix logic bug.
27219         * lib/duplocale.c: Don't include <langinfo.h>.
27220         (_NL_LOCALE_NAME): Remove macro.
27221         (rpl_duplocale): Use setlocale instead of nl_langinfo.
27222         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
27223
27224 2009-11-23  Jim Meyering  <meyering@redhat.com>
27225
27226         test-update-copyright: don't hard-code /usr/bin/perl
27227         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
27228         perl to print the current year.  Gilles Espinasse reported that
27229         the replaced use of perl was hard-coded as /usr/bin/perl.
27230
27231 2009-11-23  Bruno Haible  <bruno@clisp.org>
27232
27233         duplocale: Add support for glibc 2.3.x.
27234         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
27235
27236 2009-11-22  Bruno Haible  <bruno@clisp.org>
27237
27238         vasnprintf: Tiny optimization.
27239         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
27240         MacOS X.
27241
27242 2009-11-22  Bruno Haible  <bruno@clisp.org>
27243
27244         Tests for module 'duplocale'.
27245         * modules/duplocale-tests: New file.
27246         * tests/test-duplocale.c: New file.
27247
27248         New module 'duplocale'.
27249         * m4/duplocale.m4: New file.
27250         * lib/locale.in.h (duplocale): New declaration.
27251         * lib/duplocale.c: New file.
27252         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
27253         gl_LOCALE_H_DEFAULTS): New macros.
27254         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
27255         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
27256         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
27257         REPLACE_DUPLOCALE.
27258         * modules/duplocale: New file.
27259         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
27260
27261 2009-11-22  Bruno Haible  <bruno@clisp.org>
27262
27263         * modules/locale-tests (configure.ac): Test for newlocale function.
27264         * tests/test-locale.c: When the system has extended locale functions,
27265         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
27266
27267         locale: Make locale_t available when possible.
27268         * lib/locale.in.h: Include <xlocale.h> when it exists.
27269         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
27270         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
27271         * modules/locale (Depends-on): Add extensions.
27272         (Makefile.am): Also substitute HAVE_XLOCALE_H.
27273         * doc/posix-headers/locale.texi: Document the problem with locale_t.
27274
27275 2009-11-22  Bruno Haible  <bruno@clisp.org>
27276
27277         Add comments.
27278         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
27279         invocation.
27280         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
27281         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
27282         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
27283
27284 2009-11-22  Bruno Haible  <bruno@clisp.org>
27285
27286         error: account for the possibility of freopen (stdout).
27287         * lib/error.c: Include <unistd.h>.
27288         (flush_stdout): New function, extracted from error and error_at_line.
27289         Determine stdout's fd dynamically.
27290         (error, error_at_line): Invoke flush_stdout.
27291         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
27292         * modules/error (Depends-on): Add unistd.
27293
27294 2009-11-22  Bruno Haible  <bruno@clisp.org>
27295
27296         diffseq: Add comment.
27297         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
27298
27299 2009-11-22  Jim Meyering  <meyering@redhat.com>
27300
27301         c-stack: avoid defining an unused static function
27302         * lib/c-stack.c (find_stack_direction): Do not define this function
27303         when it will not be used.
27304
27305         diffseq: avoid spurious gcc warnings
27306         * lib/diffseq.h (IF_LINT2): Define.
27307         (compareseq): Use it to initialize two members of "part".
27308         This avoids two used-uninitialized warnings.
27309
27310 2009-11-21  Jim Meyering  <meyering@redhat.com>
27311
27312         c-stack: avoid "ignoring return value of `write'" warning
27313         * lib/c-stack.c: Include "ignore-value.h".
27314         (die): Explicitly ignore each write return value.
27315         * modules/c-stack (Depends-on): Add ignore-value.
27316
27317 2009-11-21  Bruno Haible  <bruno@clisp.org>
27318
27319         diffseq: reduce scope of variable 'best'.
27320         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
27321         variable, earlier used for two different purposes.
27322
27323 2009-11-21  Jim Meyering  <meyering@redhat.com>
27324
27325         diffseq: remove useless assignment to "best"
27326         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
27327         assignment.  At that point "best" is already guaranteed to be zero.
27328
27329 2009-11-20  Eric Blake  <ebb9@byu.net>
27330
27331         build: mention ftp redirector in release announcements
27332         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
27333         values that used to come from cfg.mk; mention FTP redirect URL.
27334         * build-aux/announce-gen: Mention the mirror list.
27335         Suggested by Karl Berry.
27336
27337         nanosleep: improve port to mingw
27338         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
27339         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
27340         LIB_NANOSLEEP, but only when needed.
27341         * modules/select (Link): Document LIBSOCKET.
27342         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
27343         enough.
27344
27345         nanosleep: work around cygwin bug
27346         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
27347         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
27348         bug.
27349         (getnow): Delete, not needed.
27350         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
27351         LIB_CLOCK_GETTIME.
27352         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
27353         clock-time, gettime.
27354         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
27355         bug.
27356         * modules/nanosleep-tests: New test.
27357         * tests/test-nanosleep.c: New file.
27358
27359         sleep: work around cygwin bug
27360         * lib/sleep.c (rpl_sleep): Work around the bug.
27361         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
27362         (gl_PREREQ_SLEEP): Delete unused macro.
27363         * modules/sleep (Depends-on): Add verify.
27364         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
27365         * modules/unistd (Makefile.am): Substitute witness.
27366         * lib/unistd.in.h (sleep): Update prototype.
27367         * doc/posix-functions/sleep.texi (sleep): Document the bug.
27368         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
27369         * modules/sleep-tests (Depends-on): Check for alarm.
27370
27371 2009-11-20  Jim Meyering  <meyering@redhat.com>
27372
27373         maint.mk: improve sc_prohibit_magic_number_exit
27374         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
27375         so it does not match uses like System.exit(1).
27376         Add comments showing how to correct all offenders.
27377
27378 2009-11-19  Eric Blake  <ebb9@byu.net>
27379
27380         xalloc-die-tests: add missing library
27381         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
27382
27383         test-xvasprintf: silence compiler warnings
27384         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
27385         empty string from gcc.
27386
27387 2009-11-19  Jim Meyering  <meyering@redhat.com>
27388
27389         xfreopen: new module, from coreutils
27390         * modules/xfreopen: New module.
27391         * lib/xfreopen.c: New file.
27392         * lib/xfreopen.h: New file.
27393         * MODULES.html.sh (File stream based Input/Output"): Add it.
27394
27395 2009-11-19  Eric Blake  <ebb9@byu.net>
27396
27397         manywarnings: depend on warnings
27398         * modules/manywarnings (Depends-on): Add warnings.
27399
27400         build: avoid compiler warnings
27401         * lib/select.c (rpl_select): Delete unused variable.
27402         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
27403
27404 2009-11-18  Eric Blake  <ebb9@byu.net>
27405
27406         tests: avoid false negative with --with-packager
27407         * tests/test-version-etc.sh: Discard packager information.
27408         * tests/test-argp-version-etc-1.sh: Likewise.
27409         Reported by Mike Frysinger.
27410
27411         utimens: fix regression on Solaris
27412         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
27413         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
27414         can only change fd timestamps via futimesat.  Instead, use an
27415         additional witness macro to avoid BSD bug.
27416         Reported by Jim Meyering.
27417
27418 2009-11-17  Eric Blake  <ebb9@byu.net>
27419
27420         usleep: use it to simplify tests
27421         * modules/stat-time-tests (Depends-on): Add usleep.
27422         (configure.ac): Drop usleep check.
27423         * modules/chown-tests (Depends-on, configure.ac): Likewise.
27424         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
27425         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
27426         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
27427         * modules/openat-tests (Depends-on, configure.ac): Likewise.
27428         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
27429         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
27430         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
27431         Likewise.
27432         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
27433         * tests/test-lchown.h (nap): Likewise.
27434         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
27435         * tests/test-stat-time.c (nap): Likewise.
27436         * tests/test-utimens-common.h (nap): Update comments.
27437
27438         usleep: new module
27439         * modules/usleep: New file.
27440         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
27441         * lib/usleep.c (usleep): Likewise.
27442         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
27443         * modules/unistd (Makefile.am): Substitute witnesses.
27444         * lib/unistd.in.h (usleep): Add declaration.
27445         * doc/pastposix-functions/usleep.texi (usleep): Document this.
27446         * MODULES.html.sh (Date and time): Likewise.
27447         * modules/usleep-tests (Depends-on): New test.
27448         * tests/test-usleep.c: New file.
27449
27450         chown: work around OpenBSD bug
27451         * lib/chown.c (rpl_chown): Work around the bug.
27452         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
27453         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
27454         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
27455         * modules/chown (Depends-on): Add stdbool.
27456         * modules/lchown (Depends-on): Likewise.
27457         * doc/posix-functions/chown.texi (chown): Document the bug.
27458         * doc/posix-functions/lchown.texi (lchown): Likewise.
27459         * tests/test-lchown.h (test_chown): Relax test.
27460
27461         mkstemp: avoid conflict with C++ keyword template
27462         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
27463         * lib/mkostemp.c (mkostemp): Likewise.
27464         * lib/mkostemps.c (mkostemps): Likewise.
27465         * lib/mkstemp.c (mkstemp): Likewise.
27466         * lib/mkstemps.c (mkstemps): Likewise.
27467
27468         xalloc-die-tests: optimize
27469         * tests/test-xalloc-die.sh: Reduce number of processes.
27470
27471 2009-11-17  Simon Josefsson  <simon@josefsson.org>
27472
27473         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
27474         patch from ludo@gnu.org (Ludovic Courtès).
27475
27476 2009-11-17  Jim Meyering  <meyering@redhat.com>
27477
27478         version-etc: use proper license string
27479         * modules/version-etc (License): Use LGPL, not LGPLv3+.
27480         * modules/version-etc-fsf: Likewise.
27481
27482 2009-11-17  Simon Josefsson  <simon@josefsson.org>
27483
27484         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
27485         printed to stdout.  Deal with EOL differences.
27486
27487 2009-11-17  Eric Blake  <ebb9@byu.net>
27488
27489         unsetenv: work around Solaris bug
27490         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
27491         * lib/unsetenv.c (rpl_unsetenv): Work around it.
27492         Reported by Jim Meyering.
27493
27494         vasnprintf: avoid compiler warnings
27495         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
27496         variables.
27497         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
27498
27499 2009-11-17  Simon Josefsson  <simon@josefsson.org>
27500
27501         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
27502         settings since xalloc-die is no longer the self test,
27503         xalloc-die.sh is.
27504
27505 2009-11-17  Jim Meyering  <meyering@redhat.com>
27506
27507         test-xalloc-die.sh: make the code agree with the commit log
27508         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
27509         at the end, just in case you happen to have a test-xalloc-die
27510         program in some other PATH directory.
27511
27512         test-xalloc-die.sh: fix a portability bug
27513         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
27514         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
27515         Otherwise, argv[0] (as often seen in diagnostics) would be too
27516         system-dependent, sometimes with, and sometimes without the leading "./".
27517
27518         version-etc-fsf: relax license to LGPLv3+
27519         * modules/version-etc-fsf (License): Relax license.
27520
27521 2009-11-16  Eric Blake  <ebb9@byu.net>
27522
27523         xalloc-die-tests: avoid printing null pointer
27524         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
27525         shell script.
27526         * tests/test-xalloc-die.c (program_name): Declare.
27527         * tests/test-xalloc-die.sh (tmpfiles): New file.
27528
27529         setenv, unsetenv: work around various bugs
27530         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
27531         (setenv) [HAVE_SETENV]: Work around bugs.
27532         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
27533         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
27534         for bugs.
27535         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
27536         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
27537         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
27538         * modules/stdlib (Makefile.am): Update substitutions.
27539         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
27540         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
27541         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
27542         * modules/setenv-tests: New test.
27543         * modules/unsetenv-tests: Likewise.
27544         * tests/test-setenv.c: New file.
27545         * tests/test-unsetenv.c: Likewise.
27546
27547 2009-11-16  Jim Meyering  <meyering@redhat.com>
27548
27549         version-etc: relax license to LGPLv3+
27550         * modules/version-etc (License): Relax license.
27551
27552         better AC_REQUIRE expanded-before-required-warning avoidance
27553         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
27554         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
27555         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
27556         which is no longer needed.
27557
27558 2009-11-16  Eric Blake  <ebb9@byu.net>
27559
27560         test-freading: clean up temporary file
27561         * tests/test-freading.c (main): Remove file on success, and use
27562         ASSERT more liberally.
27563         Reported by Jim Meyering.
27564
27565 2009-11-16  Jim Meyering  <meyering@redhat.com>
27566
27567         avoid new AC_REQUIRE expanded-before-required warnings
27568         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
27569         merely using it.
27570         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
27571         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
27572
27573 2009-11-15  Simon Josefsson  <simon@josefsson.org>
27574
27575         * tests/test-xalloc-die.c: New file.
27576         * modules/xalloc-die-tests: New file.
27577         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
27578         XFAIL_TESTS so it can be appended by modules.
27579
27580 2009-11-15  Simon Josefsson  <simon@josefsson.org>
27581
27582         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
27583         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
27584
27585 2009-11-14  Eric Blake  <ebb9@byu.net>
27586
27587         fnmatch: avoid compiler warning
27588         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
27589         to silence compiler warning about mismatch signedness in ?:.
27590         Reported by Robert Millan.
27591
27592         intprops: add double-inclusion guard
27593         * lib/intprops.h: Allow idempotent includes.
27594         Suggested by Bruce Korb.
27595
27596         openat: detect Solaris fchownat bug
27597         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
27598         penalizing glibc chownat when only lchownat is broken.
27599         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
27600         trailing slash bugs.
27601         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
27602         * modules/openat-tests (Files): Include more files.
27603         (Depends-on): Add mgetgroups, sleep, stat-time.
27604         (configure.ac): Add additional checks.
27605         (Makefile.am): Build new test.
27606         * tests/test-fchownat.c: New file.
27607
27608         lchown: detect Solaris and FreeBSD bug
27609         * lib/lchown.c (rpl_lchown): Work around bug.
27610         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
27611         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27612         * modules/unistd (Makefile.am): Populate it.
27613         * lib/unistd.in.h (lchown): Update declaration.
27614         * doc/posix-functions/lchown.texi (lchown): Document the bug.
27615         * modules/lchown-tests: New file.
27616         * tests/test-lchown.h (test_lchown): Likewise.
27617         * tests/test-lchown.c (main): Likewise.
27618
27619         chown: detect Solaris and FreeBSD bug
27620         * lib/chown.c (rpl_chown): Work around bug.
27621         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
27622         (gl_PREREQ_CHOWN): Delete.
27623         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27624         * modules/unistd (Makefile.am): Populate it.
27625         * lib/unistd.in.h (chown): Update declaration.
27626         * lib/lchown.c (chown): Update client.
27627         * modules/lchown (Depends-on): Add lstat.
27628         * doc/posix-functions/chown.texi (chown): Document the bug.
27629         * doc/posix-functions/getgroups.texi (getgroups): Document
27630         getgroups pitfall.
27631         * modules/chown-tests: New file.
27632         * tests/test-chown.h (test_chown): Likewise.
27633         * tests/test-chown.c (main): Likewise.
27634
27635 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
27636
27637         gnulib-tool: correctly detect absence of m4 directories
27638         * gnulib-tool: Avoid extra newline on data passed to wc -l.
27639
27640 2009-11-14  Jim Meyering  <meyering@redhat.com>
27641
27642         maint.mk: Prohibit inclusion of "xalloc.h" without use.
27643         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
27644
27645 2009-11-14  John W. Eaton  <jwe@gnu.org>
27646
27647         strftime.h: wrap funtion declaration in extern "C" block
27648         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
27649
27650 2009-11-13  Eric Blake  <ebb9@byu.net>
27651
27652         getgroups: avoid compiler warning
27653         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
27654
27655         getgroups: work around FreeBSD bug
27656         * lib/getgroups.c (rpl_getgroups): Work around the bug.
27657         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
27658         * doc/posix-functions/getgroups.texi (getgroups): Document it.
27659         * tests/test-getgroups.c (main): Fix buffer overrun.
27660
27661         getgroups: avoid compilation failure
27662         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
27663         * modules/getgroups (Depends-on): Add stdint.
27664
27665 2009-11-13  Jim Meyering  <meyering@redhat.com>
27666
27667         test-getgroups: avoid compilation failure
27668         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
27669
27670 2009-11-13  Eric Blake  <ebb9@byu.net>
27671
27672         mgetgroups: new module, taken from coreutils
27673         * modules/mgetgroups: New file.
27674         * lib/mgetgroups.h: Likewise.
27675         * lib/mgetgroups.c (mgetgroups): Likewise.
27676         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
27677         * MODULES.html.sh (Users and groups): Mention it.
27678
27679         getgroups: don't expose GETGROUPS_T to user
27680         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
27681         an element at a time if GETGROUPS_T is wrong size.
27682         * lib/getugroups.h (getugroups): Change signature.
27683         * lib/unistd.in.h (getgroups): Likewise.
27684         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
27685         signature needs fixing.
27686         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
27687         AC_TYPE_GETGROUPS.
27688         * modules/group-member (Depends-on): Add getgroups.
27689         * lib/group-member.c (group_info, get_group_info): Use gid_t.
27690         (group_member): Rely on getgroups replacement.
27691         * lib/getugroups.c (getugroups): Use gid_t.
27692         * tests/test-getgroups.c (main): Likewise.
27693         * NEWS: Mention the signature change.
27694         * doc/posix-functions/getgroups.texi (getgroups): Mention the
27695         problem with signature.
27696         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
27697         GETGROUPS_T is still useful for setgroups.
27698
27699         getgroups, getugroups: provide stubs for mingw
27700         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
27701         * lib/getugroups.c (getugroups): Likewise.
27702         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
27703         function.  Modernize replacement scheme.
27704         (gl_PREREQ_GETGROUPS): Delete.
27705         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
27706         * modules/getgroups (configure.ac): Declare witness.
27707         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
27708         * modules/unistd (Depends-on): Substitute witness.
27709         * lib/unistd.in.h (getgroups): Declare replacement.
27710
27711         getgroups: avoid calling exit
27712         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
27713         drop xalloc.
27714         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
27715         dependencies.
27716         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
27717         exiting, in the rare case of malloc failure.
27718
27719         getgroups: fix logic error
27720         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
27721         has more than 20 groups.
27722         * modules/getgroups-tests: New test.
27723         * tests/test-getgroups.c: New file.
27724
27725 2009-11-13  Simon Josefsson  <simon@josefsson.org>
27726
27727         * tests/test-base64.c: Improve.
27728
27729 2009-11-13  Simon Josefsson  <simon@josefsson.org>
27730
27731         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
27732         Blake <ebb9@byu.net>.
27733
27734 2009-11-13  Simon Josefsson  <simon@josefsson.org>
27735
27736         * tests/test-xvasprintf.c: Add %s%s related checks.
27737
27738 2009-11-12  Eric Blake  <ebb9@byu.net>
27739
27740         version-etc: match standards.texi style
27741         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
27742         and use <> only for URLs.
27743
27744 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
27745
27746         fts: do not fail on a submount during traversal
27747         * lib/fts.c (fts_build): Read the stat info again after opening
27748         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
27749         Original report at http://bugzilla.redhat.com/501848.
27750
27751 2009-11-12  Jim Meyering  <meyering@redhat.com>
27752
27753         bootstrap: sync from coreutils
27754         * build-aux/bootstrap (bootstrap_epilogue): New function.
27755         Use git_modules_config in one more place.  This make bootstrap's
27756         --gnulib-srcdir option more useful for testing.
27757
27758         bootstrap: generalize autoheader check
27759         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
27760         AC_CONFIG_HEADERS.
27761
27762 2009-11-11  Eric Blake  <ebb9@byu.net>
27763
27764         mkfifoat: use new modules for Solaris and BSD bugs
27765         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
27766         * lib/mkfifoat.c (mknodat): Split...
27767         * lib/mknodat.c (mknodat): ...into new file.
27768         * modules/mkfifoat (Files): Ship new file.
27769         (Depends-on): Add mkfifo, mknod.
27770         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
27771         (Depends-on): Add symlink.
27772         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
27773         redundant with test_mkfifo.h.
27774         (do_mkfifoat, do_mknodat): New helpers.
27775
27776         mknod: new module
27777         * modules/mknod: New file.
27778         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
27779         * lib/mknod.c (mknod): Likewise.
27780         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
27781         defaults.
27782         * modules/sys_stat (Makefile.am): Substitute them.
27783         * lib/sys_stat.in.h (mknod): Declare replacement.
27784         * MODULES.html.sh (Support for systems lacking POSIX:2008):
27785         Document it.
27786         * doc/posix-functions/mknod.texi (mknod): Likewise.
27787         * modules/mknod-tests: New test.
27788         * tests/test-mknod.c: Likewise.
27789
27790         mkfifo: new module
27791         * modules/mkfifo: New file.
27792         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
27793         * lib/mkfifo.c (mkfifo): Likewise.
27794         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
27795         defaults.
27796         * modules/sys_stat (Makefile.am): Substitute them.
27797         * lib/sys_stat.in.h (mkfifo): Declare replacement.
27798         * MODULES.html.sh (Support for systems lacking POSIX:2008):
27799         Document it.
27800         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
27801         * modules/mkfifo-tests: New test.
27802         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
27803         from test-mkfifoat.c.
27804         * tests/test-mkfifo.c: New file.
27805
27806         readlink: detect FreeBSD bug
27807         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
27808         slash on symlink.
27809         * doc/posix-functions/readlink.texi (readlink): Document the bug.
27810         * tests/test-readlink.h (test_readlink): Enhance test.
27811
27812         symlink: detect FreeBSD bug
27813         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
27814         slash on symlink.
27815         * doc/posix-functions/symlink.texi (symlink): Document the bug.
27816         * tests/test-symlink.h (test_symlink): Enhance test.
27817
27818 2009-11-10  Eric Blake  <ebb9@byu.net>
27819
27820         link: detect FreeBSD bug
27821         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
27822         symlink.
27823         * doc/posix-functions/link.texi (link): Document the bug.
27824         * tests/test-link.h (test_link): Enhance test.
27825         * tests/test-linkat.c (main): Update caller.
27826
27827         unlink, remove: detect FreeBSD bug
27828         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
27829         slash on symlink.
27830         * doc/posix-functions/unlink.texi (unlink): Document the bug.
27831         * doc/posix-functions/remove.texi (remove): Likewise.
27832         * tests/test-unlink.h (test_unlink): Enhance test.
27833         * tests/test-remove.c (main): Likewise.
27834
27835 2009-11-09  Eric Blake  <ebb9@byu.net>
27836
27837         rename: detect FreeBSD bug
27838         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
27839         slash on symlink.
27840         * modules/renameat-tests (Depends-on): Add filenamecat.
27841         * tests/test-rename.h (test_rename): Allow one more errno.
27842         * tests/test-renameat.c (main): Likewise.
27843         * doc/posix-functions/rename.texi (rename): Document the bug.
27844
27845         open: detect FreeBSD bug
27846         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
27847         symlink.
27848         * doc/posix-functions/open.texi (open): Document the bug.
27849         * doc/posix-functions/utimes.texi (utimes): Likewise.
27850         * tests/test-open.h (test_open): Add parameters, and test symlink
27851         handling.
27852         * tests/test-open.c (main): Adjust caller.
27853         * tests/test-fcntl-safer.c (main): Likewise.
27854         * modules/open-tests (Depends-on): Add stdbool, symlink.
27855         * modules/fcntl-safer-tests (Depends-on): Likewise.
27856         * tests/test-openat.c (main): Add test-open tests.
27857
27858         stat: detect FreeBSD bug
27859         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
27860         symlink.
27861         * doc/posix-functions/stat.texi (stat): Document the bug.
27862         * tests/test-stat.h (test_stat_func): Add argument.
27863         * tests/test-stat.c (main): Adjust caller.
27864         * tests/test-fstatat.c (main): Likewise.
27865         * modules/stat-tests (Depends-on): Add stdbool, symlink.
27866         Reported by Jim Meyering.
27867
27868 2009-11-09  James Youngman  <jay@gnu.org>
27869
27870         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
27871         * lib/strftime.c: Correct placement of #include "ignore-value.h".
27872
27873 2009-11-08  Jim Meyering  <meyering@redhat.com>
27874
27875         utimens: remove invalid futimesat call
27876         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
27877         It used the file descriptor of the target file as the DIR_FD
27878         parameter and NULL as the file name.  That caused failure with
27879         errno == EFAULT on FreeBSD-8.0-rc2
27880
27881 2009-11-07  Eric Blake  <ebb9@byu.net>
27882
27883         fflush, freadseek: use fseeko, not fseek
27884         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
27885         (clear_ungetc_buffer): Avoid potential problems on large files.
27886         * lib/freadseek.c (freadseek): Likewise.
27887         * modules/freadseek (Depends-on): Add fseeko.
27888         * modules/fseek (configure.ac): Set a witness.
27889         * tests/test-fflush.c (main): Use fseeko.
27890         * tests/test-fpurge.c (fseek): Disable link warning.
27891         * tests/test-freadable.c (fseek): Likewise.
27892         * tests/test-freading.c (fseek): Likewise.
27893         * tests/test-fseeko.c (fseek): Likewise.
27894         * tests/test-ftell.c (fseek): Likewise.
27895         * tests/test-ftello.c (fseek): Likewise.
27896         * tests/test-fwritable.c (fseek): Likewise.
27897         * tests/test-fwriting.c (fseek): Likewise.
27898
27899 2009-11-06  Simon Josefsson  <simon@josefsson.org>
27900
27901         * modules/memchr (Depends-on): Drop getpagesize dependency.
27902
27903 2009-11-06  Simon Josefsson  <simon@josefsson.org>
27904
27905         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
27906         Reported by Ludovic Courtès.
27907         * build-aux/pmccabe2html: Improve example usage.
27908         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
27909
27910 2009-11-06  Jim Meyering  <meyering@redhat.com>
27911
27912         do-release-commit-and-tag: New module.
27913         Automate the release-commit and tag process.
27914         * build-aux/do-release-commit-and-tag: New script, from coreutils.
27915         * modules/do-release-commit-and-tag: New file.
27916         * MODULES.html.sh (Support for maintaining and releasing): Add it.
27917
27918 2009-11-06  Simon Josefsson  <simon@josefsson.org>
27919
27920         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
27921         because test-select.c uses inet_pton.
27922
27923 2009-11-06  Simon Josefsson  <simon@josefsson.org>
27924
27925         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
27926         GETADDRINFO_LIB.  Bump serial number.
27927         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
27928         Suggested by Eric Blake <ebb9@byu.net>.
27929
27930 2009-11-05  Eric Blake  <ebb9@byu.net>
27931
27932         strtod: detect darwin bug
27933         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
27934         Reported by Leo Davis.
27935
27936         freopen-safer: new module
27937         * modules/freopen-safer: New module.
27938         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
27939         * lib/freopen-safer.c (freopen_safer): New file.
27940         * lib/stdio-safer.h (freopen_safer): New declaration.
27941         * lib/stdio--.h (freopen): New override.
27942         * MODULES.html.sh (File stream based Input/Output): Mention it.
27943         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
27944         freopen-safer module.
27945         * doc/posix-functions/stderr.texi (stderr): Likewise.
27946         * doc/posix-functions/stdin.texi (stdin): Likewise.
27947         * doc/posix-functions/stdout.texi (stdout): Likewise.
27948         * modules/freopen-safer-tests: New test.
27949         * tests/test-reopen-safer.c: New file.
27950
27951 2009-11-05  Jim Meyering  <meyering@redhat.com>
27952
27953         maint.mk: Prohibit inclusion of "close-stream.h" without use.
27954         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
27955
27956 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27957
27958         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
27959
27960 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27961
27962         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
27963
27964 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27965
27966         Fix link error.
27967         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
27968         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
27969
27970 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27971
27972         * tests/test-func.c: Also test value of __func__.
27973
27974 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27975
27976         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
27977         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
27978
27979 2009-11-05  Bruno Haible  <bruno@clisp.org>
27980
27981         Fix link error.
27982         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
27983         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
27984         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
27985
27986 2009-11-05  Bruno Haible  <bruno@clisp.org>
27987
27988         Tests for module 'inet_pton'.
27989         * modules/inet_pton-tests: New file.
27990         * tests/test-inet_pton.c: New file.
27991
27992 2009-11-05  Bruno Haible  <bruno@clisp.org>
27993
27994         Tests for module 'inet_ntop'.
27995         * modules/inet_ntop-tests: New file.
27996         * tests/test-inet_ntop.c: New file.
27997
27998 2009-11-04  Eric Blake  <ebb9@byu.net>
27999
28000         stdlib-safer: wrap all mkstemp variants
28001         * modules/mkostemp (configure.ac): Set witness.
28002         * modules/mkostemps (configure.ac): Likewise.
28003         * modules/mkstemps (configure.ac): Likewise.
28004         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
28005         (mkstemps_safer): Wrap more functions.
28006         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
28007         wrapping.
28008         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
28009         (mkstemps_safer): Implement the wrappers.
28010
28011         mkstemps, mkostemps: new modules
28012         * modules/mkostemps: New module.
28013         * modules/mkstemps: Likewise.
28014         * lib/mkostemps.c (mkostemps): New file.
28015         * lib/mkstemps.c (mkstemps): Likewise.
28016         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
28017         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
28018         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
28019         * modules/stdlib (Makefile.am): Substitute them.
28020         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
28021         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
28022         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
28023         * doc/gnulib.texi (Glibc stdlib.h): Include them.
28024         * MODULES.html.sh (File system functions): Mention them.
28025
28026         tempname: resync from glibc
28027         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
28028         same values for __GT_FILE as glibc.  Abort even when assertions
28029         are disabled.
28030         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
28031         match its value otherwise.  Allow idempotent inclusion.
28032         * lib/mkdtemp.c (mkdtemp): Adjust caller.
28033         * lib/mkostemp.c (mkostemp): Likewise.
28034         * lib/mkstemp.c (mkstemp): Likewise.
28035         * lib/tmpfile.c (tmpfile): Likewise.
28036         * NEWS: Document this.
28037
28038         utimens: fix use of futimens on older Linux
28039         * lib/utimens.c (fdutimens): Use updated, rather than original,
28040         timespec to avoid bug in older Linux kernel.
28041         Reported by Simon Josefsson.
28042
28043 2009-11-04  Bruno Haible  <bruno@clisp.org>
28044
28045         Make num_processors more flexible and consistent.
28046         * lib/nproc.h (enum nproc_query): New type.
28047         (num_processors): Add a 'query' argument.
28048         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
28049         (num_processors): Add a 'query' argument. Test the value of the
28050         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
28051         mingw, count the number of CPUs available for the current process.
28052         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
28053         Check for sched_getaffinity and sched_getaffinity_np.
28054         * modules/nproc (Depends-on): Add c-ctype, extensions.
28055         * NEWS: Mention the change.
28056
28057 2009-11-03  Bruno Haible  <bruno@clisp.org>
28058
28059         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
28060
28061 2009-11-03  Jim Meyering  <meyering@redhat.com>
28062
28063         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
28064         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
28065         if it is defined.
28066
28067 2009-11-02  Eric Blake  <ebb9@byu.net>
28068
28069         mktime, timegm: share common declaration
28070         * lib/mktime-internal.h: New file.
28071         * lib/mktime.c: Use it rather than open-coding a declaration.
28072         * lib/timegm.c: Likewise.
28073         * modules/mktime (Files): Ship it.
28074         * modules/timegm (Files): Likewise.
28075         Suggested by Bruno Haible.
28076
28077         test-update-copyright: update test to match script changes
28078         * tests/test-update-copyright.sh: Avoid hard-coding perl
28079         location.  Don't update *.bak created by earlier runs.
28080
28081 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
28082             Simon Josefsson  <simon@josefsson.org>
28083             Bruno Haible  <bruno@clisp.org>
28084
28085         Fix link error on Solaris 8.
28086         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
28087         also in libnsl. Define also INET_PTON_LIB.
28088         * modules/inet_pton (Link): New section.
28089
28090 2009-11-02  Simon Josefsson  <simon@josefsson.org>
28091             Bruno Haible  <bruno@clisp.org>
28092
28093         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
28094         * modules/inet_ntop (Link): New section.
28095         Reported by Boyan Kasarov <bkasarov@gmail.com>.
28096
28097 2009-11-02  Eric Blake  <ebb9@byu.net>
28098
28099         maint: avoid compiler warnings in m4 macros
28100         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
28101         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
28102
28103 2009-11-02  Simon Josefsson  <simon@josefsson.org>
28104
28105         * m4/pmccabe2html.m4: Remove file.
28106         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
28107         function.  Change maintainer.
28108         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
28109         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
28110         Courtès).
28111
28112 2009-10-31  Eric Blake  <ebb9@byu.net>
28113
28114         fseeko: fix m4 regression
28115         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
28116         regression from 2009-10-27.
28117         Reported by Ralf Wildenhues.
28118
28119 2009-10-31  Jim Meyering  <meyering@redhat.com>
28120
28121         inttostr: aesthetics and improved (compile-time) safety
28122         Define inttype_is_signed rather than inttype_is_unsigned,
28123         since the sole use is via "#if inttype_is_signed".
28124         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
28125         inttype_is_unsigned.
28126         * lib/offtostr.c (inttype_is_signed): Likewise.
28127         * lib/uinttostr.c (inttype_is_signed): Likewise.
28128         * lib/umaxtostr.c (inttype_is_signed): Likewise.
28129         * lib/inttostr.c (inttostr): Use verify to cross-check the
28130         inttype_is_signed value and the signedness of the actual type.
28131         * modules/inttostr (Depends-on): Add verify.
28132
28133 2009-10-30  Eric Blake  <ebb9@byu.net>
28134
28135         build: avoid compiler warnings
28136         * lib/fchmodat.c (lchmod): Mark unused variables.
28137         * lib/getopt.c (_getopt_initialize): Likewise.
28138         * lib/mktime.c (__mktime_internal): Provide prototype.
28139         * lib/inttostr.c (inttostr): Avoid compiler warning even with
28140         older gcc that do not understand #pragma GCC diagnostic.
28141         * lib/uinttostr.c (inttype_is_unsigned): Define.
28142         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
28143
28144 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
28145
28146         stat: fix compilation on AIX
28147         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
28148         only see struct stat64.
28149
28150 2009-10-30  Eric Blake  <ebb9@byu.net>
28151
28152         exclude: make more robust
28153         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
28154         rather than masking a coding bug.
28155         Suggested by Bruno Haible.
28156
28157 2009-10-30  Jim Meyering  <meyering@redhat.com>
28158
28159         perl scripts: remove #!/usr/bin/perl in favor of more portable...
28160         Rather than putting #!/usr/bin/perl on the first line,
28161         start with a variant of what's recommended by "man perlrun" that
28162         invokes the first "perl" program from your shell's search path.
28163         * build-aux/gitlog-to-changelog: Replace #!... as above.
28164         Add a "Local Variables" perl mode setting.
28165         Prompted by a patch from Ludovic Courtès.
28166         Improved by Eric Blake.
28167         * build-aux/useless-if-before-free: Likewise.
28168         * build-aux/announce-gen: Likewise.
28169         * build-aux/update-copyright: Likewise.
28170
28171 2009-10-29  Eric Blake  <ebb9@byu.net>
28172
28173         filenamecat-lgpl: adjust clients
28174         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
28175         filenamecat.
28176         * modules/renameat (Depends-on): Likewise.
28177
28178         filenamecat: split into filenamecat-lgpl
28179         * modules/filenamecat-lgpl: New module.
28180         * modules/filenamecat (Files): Move library-safe files into
28181         filenamecat-lgpl.
28182         (Depends-on): Add filenamecat-lgpl.
28183         (configure.ac): Declare witness.
28184         * lib/filenamecat.h (file_name_concat): Only declare when using
28185         GPL module.
28186         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
28187         Move...
28188         * lib/filenamecat-lgpl.c: ...into new file.
28189         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
28190         (gl_FILE_NAME_CONCAT): Use it.
28191         * MODULES.html.sh (File system functions): Mention new module.
28192
28193         argp: avoid memory leak
28194         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
28195         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
28196         base_name, since the latter malloc()s and can call exit().
28197         Leak introduced 2006-07-03.
28198
28199         dirname-lgpl: adjust clients that don't need full dirname
28200         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
28201         * modules/filenamecat (Depends-on): Likewise.
28202         * modules/linkat (Depends-on): Likewise.
28203         * modules/mkancesdirs (Depends-on): Likewise.
28204         * modules/mkdir (Depends-on): Likewise.
28205         * modules/openat (Depends-on): Likewise.
28206         * modules/savewd (Depends-on): Likewise.
28207         * modules/rename (Depends-on): Likewise.
28208         (License): Relax license.
28209         * modules/mkdir-tests (Depends-on): Drop progname.
28210         (Makefile.am): Delete unneeded LDADD.
28211         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
28212
28213         dirname: split into dirname-lgpl
28214         * modules/dirname-lgpl: New module.
28215         * modules/dirname (Files): Move library-safe files into
28216         dirname-lgpl.
28217         (Depends-on): Add dirname-lgpl.
28218         (configure.ac): Declare witness.
28219         * modules/double-slash-root (License): Relax license.
28220         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
28221         module.
28222         * lib/dirname.c (dir_len, mdir_name): Move...
28223         * lib/dirname-lgpl.c: ...into new file.
28224         * lib/basename.c (last_component, base_len): Move...
28225         * lib/basename-lgpl.c: ...into new file.
28226         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
28227         (gl_DIRNAME): Use it.
28228         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
28229         Mention new module.
28230         * modules/dirname-tests (Depends-on): Add progname.
28231         * tests/test-dirname.c (program_name): Delete.
28232
28233         mkdir: make safe for libraries
28234         * modules/mkdir (Depends-on): Drop xalloc.
28235         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
28236         exit.
28237
28238         tests: avoid some compiler warnings
28239         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
28240         literals.
28241         * tests/test-memchr.c (main): Avoid type mismatch.
28242         * tests/test-arpa_inet.c (main): Avoid unused parameters.
28243         * tests/test-base64.c (main): Likewise.
28244         * tests/test-getdelim.c (main): Likewise.
28245         * tests/test-gethostname.c (main): Likewise.
28246         * tests/test-getline.c (main): Likewise.
28247         * tests/test-netinet_in.c (main): Likewise.
28248         * tests/test-select.c (open_server_socket, main): Likewise.
28249         * tests/test-select-stdin.c (main): Likewise.
28250         * tests/test-sockets.c (main): Likewise.
28251         * tests/test-strsignal.c (main): Likewise.
28252         * tests/test-sys_select.c (main): Likewise.
28253         * tests/test-sys_socket.c (main): Likewise.
28254         * tests/test-u64.c (main): Likewise.
28255         * tests/test-xfprintf-posix.c (main): Likewise.
28256         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
28257
28258         sockets: avoid compiler warning
28259         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
28260
28261         maint: detect usage(1) and other suspicious exits
28262         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
28263
28264 2009-10-29  Jim Meyering  <meyering@redhat.com>
28265
28266         timespec: long-to-int truncation could make timespec_cmp malfunction
28267         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
28268         a multiple of 2^32 nanoseconds as no difference.
28269
28270 2009-10-28  Jim Meyering  <meyering@redhat.com>
28271
28272         fprintftime: wrap macro code argument in "do {...} while(0)"
28273         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
28274         cpy macro must be a statement that can be followed by a semicolon.
28275         Now that the else clause contains a comment and is hence longer
28276         than one line, I require curly braces.  That in turn requires
28277         that we wrap this code block in the standard do...while(0).
28278
28279         fprintftime: remove stray semicolon from previous change
28280         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
28281
28282         fprintftime: avoid a warning about ignored fwrite return value
28283         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
28284         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
28285         that is unsafe.
28286         * modules/fprintftime (Depends-on): Add ignore-value.
28287
28288         exclude: avoid an unwarranted warning
28289         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
28290
28291 2009-10-27  Eric Blake  <ebb9@byu.net>
28292
28293         fseek: avoid compilation failure when fflush is replaced
28294         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
28295         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
28296         module is in use.
28297         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
28298         module is not in use; since REPLACE_FSEEK worked otherwise.
28299         (GNULIB_FTELLO): Likewise for ftell.
28300         Reported by Ian Beckwith and others.
28301
28302 2009-10-27  Bruno Haible  <bruno@clisp.org>
28303
28304         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
28305         Reported by Jim Meyering.
28306
28307 2009-10-27  Jim Meyering  <jim@meyering.net>
28308             Bruno Haible  <bruno@clisp.org>
28309
28310         Avoid warning despite dropping the return value of fwrite.
28311         * lib/unicodeio.c: Include ignore-value.h.
28312         (fwrite_success_callback): Explicitly ignore fwrite's return value.
28313         * modules/unicodeio (Depends-on): Add ignore-value.
28314
28315 2009-10-26  Eric Blake  <ebb9@byu.net>
28316
28317         areadlinkat: fix fallback path
28318         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
28319         pointer and zero.
28320
28321 2009-10-22  Pádraig Brady  <P@draigBrady.com>
28322
28323         Use a better IO block size for modern systems
28324         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
28325         * lib/md2.c: Likewise.
28326         * lib/md4.c: Likewise.
28327         * lib/md5.c: Likewise.
28328         * lib/sha1.c: Likewise.
28329         * lib/sha256.c: Likewise.
28330         * lib/sha512.c: Likewise.
28331
28332 2009-10-22  Eric Blake  <ebb9@byu.net>
28333
28334         tests: avoid several compiler warnings
28335         * tests/test-getcwd.c (main): Avoid buffer underflow.
28336         * tests/test-getdate.c (main): String literals are not safe with
28337         putenv, so use setenv.  Declare unused argument.
28338         * modules/getdate-tests (Depends-on): Add setenv.
28339         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
28340         problems with string literals in char *.
28341         * tests/test-hash.c (main): Avoid shadowing declaration.
28342         (insert_new): Treat string literals as char const *.
28343         * tests/test-getopt.h (test_getopt): Likewise.
28344         (getopt_loop): Alter types to minimize casting elsewhere.
28345         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
28346         (test_getopt_long_posix): Likewise.
28347         (do_getopt_long): Add wrapper to minimize casting.
28348         * tests/test-atexit.c (clear_temp_file): Use void.
28349         * tests/test-areadlink-with-size.c (main): Declare unused
28350         arguments.
28351         * tests/test-areadlink.c (main): Likewise.
28352         * tests/test-areadlinkat-with-size.c (main): Likewise.
28353         * tests/test-areadlinkat.c (main): Likewise.
28354         * tests/test-canonicalize-lgpl.c (main): Likewise.
28355         * tests/test-canonicalize.c (main): Likewise.
28356         * tests/test-dirent-safer.c (main): Likewise.
28357         * tests/test-dirname.c (main): Likewise.
28358         * tests/test-dup2.c (main): Likewise.
28359         * tests/test-fchdir.c (main): Likewise.
28360         * tests/test-fcntl-h.c (main): Likewise.
28361         * tests/test-fcntl-safer.c (main): Likewise.
28362         * tests/test-fdopendir.c (main): Likewise.
28363         * tests/test-fdutimensat.c (main): Likewise.
28364         * tests/test-fflush.c (main): Likewise.
28365         * tests/test-filenamecat.c (main): Likewise.
28366         * tests/test-filevercmp.c (main): Likewise.
28367         * tests/test-fopen-safer.c (main): Likewise.
28368         * tests/test-fopen.c (main): Likewise.
28369         * tests/test-fpending.c (main): Likewise.
28370         * tests/test-fpurge.c (main): Likewise.
28371         * tests/test-freading.c (main): Likewise.
28372         * tests/test-fstatat.c (main): Likewise.
28373         * tests/test-fsync.c (main): Likewise.
28374         * tests/test-futimens.c (main): Likewise.
28375         * tests/test-getndelim2.c (main): Likewise.
28376         * tests/test-gettimeofday.c (main): Likewise.
28377         * tests/test-getopt.c (main): Likewise.
28378         * tests/test-i-ring.c (main): Likewise.
28379         * tests/test-inttypes.c (main): Likewise.
28380         * tests/test-link.c (main): Likewise.
28381         * tests/test-lstat.c (main): Likewise.
28382         * tests/test-math.c (main): Likewise.
28383         * tests/test-md5.c (main): Likewise.
28384         * tests/test-memchr2.c (main): Likewise.
28385         * tests/test-memrchr.c (main): Likewise.
28386         * tests/test-mkdir.c (main): Likewise.
28387         * tests/test-mkdirat.c (main): Likewise.
28388         * tests/test-mkfifoat.c (main): Likewise.
28389         * tests/test-open.c (main): Likewise.
28390         * tests/test-openat-safer.c (main): Likewise.
28391         * tests/test-openat.c (main): Likewise.
28392         * tests/test-quotearg.c (main): Likewise.
28393         * tests/test-rawmemchr.c (main): Likewise.
28394         * tests/test-readlink.c (main): Likewise.
28395         * tests/test-remove.c (main): Likewise.
28396         * tests/test-rename.c (main): Likewise.
28397         * tests/test-renameat.c (main): Likewise.
28398         * tests/test-rmdir.c (main): Likewise.
28399         * tests/test-sha1.c (main): Likewise.
28400         * tests/test-signal.c (main): Likewise.
28401         * tests/test-sigaction.c (main): Likewise.
28402         * tests/test-stat.c (main): Likewise.
28403         * tests/test-stat-time.c (main): Likewise.
28404         * tests/test-stddef.c (main): Likewise.
28405         * tests/test-stdint.c (main): Likewise.
28406         * tests/test-stdio.c (main): Likewise.
28407         * tests/test-stdlib.c (main): Likewise.
28408         * tests/test-strchrnul.c (main): Likewise.
28409         * tests/test-strerror.c (main): Likewise.
28410         * tests/test-string.c (main): Likewise.
28411         * tests/test-strtod.c (main): Likewise.
28412         * tests/test-strverscmp.c (main): Likewise.
28413         * tests/test-symlink.c (main): Likewise.
28414         * tests/test-symlinkat.c (main): Likewise.
28415         * tests/test-sys_stat.c (main): Likewise.
28416         * tests/test-sys_time.c (main): Likewise.
28417         * tests/test-time.c (main): Likewise.
28418         * tests/test-unistd.c (main): Likewise.
28419         * tests/test-unlink.c (main): Likewise.
28420         * tests/test-unlinkat.c (main): Likewise.
28421         * tests/test-utimens.c (main): Likewise.
28422         * tests/test-utimensat.c (main): Likewise.
28423         * tests/test-version-etc.c (main): Likewise.
28424         * tests/test-wchar.c (main): Likewise.
28425         * tests/test-wctype.c (main): Likewise.
28426         * tests/test-xprintf-posix.c (main): Likewise.
28427         * tests/test-posixtm.c (main): Likewise.
28428         (STREQ): Delete unused macro.
28429         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
28430         shadowed variables.
28431         * tests/test-memchr.c (main): Likewise.
28432
28433 2009-10-21  Eric Blake  <ebb9@byu.net>
28434
28435         areadlinkat: avoid failure on older glibc
28436         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
28437         rather than mis-comparing 0 against FUNC_RESULT of char*.
28438
28439 2009-10-21  Bruno Haible  <bruno@clisp.org>
28440
28441         * modules/stpncpy (License): Relicense under LGPLv2+.
28442         Reported by David Lutterkort <lutter@redhat.com>.
28443
28444 2009-10-20  Eric Blake  <ebb9@byu.net>
28445
28446         utimensat: work around Solaris 9 bug
28447         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
28448         has trailing slash bugs.
28449         * tests/test-lutimens.h (test_lutimens): Enhance test.
28450         * tests/test-utimens.h (test_utimens): Likewise.
28451         * doc/posix-functions/utime.texi (utime): Enhance documentation.
28452         * doc/posix-functions/utimes.texi (utimes): Likewise.
28453         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
28454         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
28455         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
28456         * doc/posix-functions/futimens.texi (futimens): Likewise.
28457
28458         fdutimensat: new module
28459         * modules/fdutimensat: New file.
28460         * lib/fdutimensat.c (fdutimensat): Likewise.
28461         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
28462         * MODULES.html.sh (File system functions): Mention module.
28463         * modules/fdutimensat-tests: New test.
28464         * tests/test-fdutimensat.c: Likewise.
28465
28466         doc: regenerate INSTALL
28467         * doc/INSTALL: Reflect recent autoconf update.
28468         * doc/INSTALL.ISO: Likewise.
28469         * doc/INSTALL.UTF-8: Likewise.
28470
28471 2009-10-20  Pádraig Brady  <P@draigBrady.com>
28472
28473         acl: warn if ACL support is not detected
28474         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
28475
28476 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
28477
28478         * lib/nproc.h: Add extern "C" block for C++.
28479
28480 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
28481             Bruno Haible  <bruno@clisp.org>
28482
28483         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
28484         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
28485         * doc/posix-functions/isalpha.texi: Likewise.
28486         * doc/posix-functions/isblank.texi: Likewise.
28487         * doc/posix-functions/iscntrl.texi: Likewise.
28488         * doc/posix-functions/isdigit.texi: Likewise.
28489         * doc/posix-functions/isgraph.texi: Likewise.
28490         * doc/posix-functions/islower.texi: Likewise.
28491         * doc/posix-functions/isprint.texi: Likewise.
28492         * doc/posix-functions/ispunct.texi: Likewise.
28493         * doc/posix-functions/isspace.texi: Likewise.
28494         * doc/posix-functions/isupper.texi: Likewise.
28495         * doc/posix-functions/isxdigit.texi: Likewise.
28496
28497 2009-10-18  Bruno Haible  <bruno@clisp.org>
28498
28499         Tests for module 'isblank'.
28500         * modules/isblank-tests: New file.
28501         * tests/test-isblank.c: New file.
28502
28503         New module 'isblank'.
28504         * lib/isblank.c: New file.
28505         * m4/isblank.m4: New file.
28506         * modules/isblank: New file.
28507         * doc/posix-functions/isblank.texi: Mention the new module.
28508
28509 2009-10-18  Bruno Haible  <bruno@clisp.org>
28510
28511         New module 'ctype'.
28512         * lib/ctype.in.h: New file.
28513         * m4/ctype.m4: New file.
28514         * modules/ctype: New file.
28515         * doc/posix-headers/ctype.texi: Mention the new module.
28516
28517 2009-10-18  Jim Meyering  <meyering@redhat.com>
28518
28519         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
28520         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
28521         right after its initialization, rather than farther down.
28522         Keeping these in close proximity makes it easier to ensure
28523         that each such variable is initialized.  E.g.,
28524
28525             LIB_CLOCK_GETTIME=
28526             AC_SUBST([LIB_CLOCK_GETTIME])
28527
28528         This change also increments these serial numbers.
28529         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
28530         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
28531         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
28532
28533 2009-10-18  Bruno Haible  <bruno@clisp.org>
28534
28535         Don't let environment variables perturb build.
28536         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
28537         (gl_PREREQ_GETHRXTIME): ... not here.
28538
28539 2009-10-18  Bruno Haible  <bruno@clisp.org>
28540
28541         Avoid symlink attack in localcharset module.
28542         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
28543         (O_NOFOLLOW): Define fallback.
28544         (get_charset_aliases): Don't open the file if it is a symbolic link.
28545         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
28546         gl_FCNTL_H.
28547         (gl_FCNTL_H): Require it.
28548         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
28549         * modules/localcharset (Files): Add m4/fcntl_h.m4.
28550         Reported by Fergal Glynn <fglynn@veracode.com>.
28551
28552 2009-10-18  Bruno Haible  <bruno@clisp.org>
28553
28554         Implement nproc for mingw.
28555         * lib/nproc.c: Include <windows.h>
28556         (num_processors): On native Windows platforms, try GetSystemInfo.
28557
28558 2009-10-18  Bruno Haible  <bruno@clisp.org>
28559
28560         Implement nproc for IRIX.
28561         * lib/nproc.c: Include <sys/sysmp.h>.
28562         (num_processors): On IRIX systems, try sysmp.
28563         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
28564
28565 2009-10-18  Bruno Haible  <bruno@clisp.org>
28566
28567         Implement nproc for HP-UX.
28568         * lib/nproc.c: Include <sys/pstat.h>
28569         (num_processors): On HP-UX systems, try pstat_getdynamic.
28570         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
28571         pstat_getdynamic.
28572
28573 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
28574             Bruno Haible  <bruno@clisp.org>
28575
28576         Implement nproc for NetBSD, OpenBSD.
28577         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
28578         (ARRAY_SIZE): New macro.
28579         (num_processors): On BSD systems, try sysctl of HW_NCPU.
28580         * m4/nproc.m4: New file.
28581         * modules/nproc (Files): Add m4/nproc.m4.
28582         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
28583         (Makefile.am): Instead, augment lib_SOURCES.
28584
28585 2009-10-18  Bruno Haible  <bruno@clisp.org>
28586
28587         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
28588         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
28589         sys/param.h.
28590
28591 2009-10-16  Eric Blake  <ebb9@byu.net>
28592
28593         utimensat: new module
28594         * modules/utimensat: New file.
28595         * lib/utimensat.c (utimensat): Likewise.
28596         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
28597         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
28598         so we can work around Linux bugs.
28599         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
28600         * modules/sys_stat (Makefile.am): Substitute them.
28601         * lib/sys_stat.in.h (utimensat): Declare it.
28602         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28603         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
28604         * modules/utimensat-tests: New test.
28605         * tests/test-utimensat.c: Likewise.
28606
28607         utimens: let lutimens work on non-symlinks
28608         * lib/utimens.c (lutimens): Fall back to utimens rather than
28609         failing with ENOSYS, when file is not a symlink.
28610         (utimens): Reduce redirection.
28611         * tests/test-lutimens.h (test_lutimens): Update test to cover
28612         non-symlinks.
28613         * tests/test-utimens.h (test_utimens): Update test to cover
28614         symlinks.
28615         * tests/test-utimens.c (main): Update caller.
28616
28617         utimens: cache whether utimensat syscall works
28618         * lib/utimens.c (utimensat_works_really): New cache variable.
28619         (fdutimens, lutimens): Use it to avoid failing syscall.
28620
28621         test-stat-time, test-utimens: improve portability
28622         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
28623         ext4 on alpha, and for cygwin.
28624         * tests/test-utimens-common.h: New file.
28625         (nap): Factor delays into single function.
28626         * tests/test-lutimens.h (test_lutimens): Use new header.
28627         * tests/test-futimens.h (test_futimens): Likewise.
28628         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
28629         timestamps to occur from same machine, as was done previously for
28630         test_utimens.
28631         * modules/utimens-tests (Files): Ship new file.
28632         * modules/futimens-tests (Files): Likewise.
28633         Reported in part by Jim Meyering.
28634
28635         sys_stat: sort replacement declarations
28636         * lib/sys_stat.in.h: Sort declarations.
28637         * lib/futimens.c (futimens): Fix typo.
28638
28639 2009-10-15  Jim Meyering  <meyering@redhat.com>
28640
28641         don't let environment settings perturb build
28642         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
28643         could cause a configure-time and/or build-time malfunction.
28644         Typically, a configure-time function-in-library test is performed
28645         via code like this:
28646
28647           LIB_VAR=
28648           AC_SUBST([LIB_VAR])
28649           prefix_saved_LIBS=$LIBS
28650             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
28651                        [test "$ac_cv_search_FUNC" = "none required" ||
28652                         LIB_VAR=$ac_cv_search_FUNC])
28653           LIBS=$prefix_saved_LIBS
28654
28655         However, in each of the files affected by this change, the LIB_VAR=
28656         initialization was omitted.  Thus, when set in the environment, its
28657         value would propagate into generated Makefiles when FUNC is not found
28658         in LIB_NAME.
28659         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
28660         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
28661         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
28662
28663 2009-10-14  Eric Blake  <ebb9@byu.net>
28664
28665         fchdir: avoid infinite recursion in mingw
28666         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
28667         recursing.
28668
28669         test-stat-time: port to mingw
28670         * tests/test-stat-time.c (force_unlink): Return a value.
28671         (test_ctime) [W32]: Fix compilation error.
28672         (nap): Don't call usleep with too large an argument.  Use
28673         force_unlink.
28674         * doc/pastposix-functions/usleep.texi (usleep): Document the
28675         portability issue.
28676
28677 2009-10-13  Jim Meyering  <meyering@redhat.com>
28678
28679         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
28680         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
28681         * modules/pipe-filter-ii: Likewise.
28682         * modules/sys_socket-tests: Likewise.
28683         * modules/tsearch-tests: Likewise.
28684         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
28685         (check): Depend on it.
28686
28687 2009-10-12  Eric Blake  <ebb9@byu.net>
28688
28689         utimens-tests: port to NFS file systems
28690         * tests/test-utimens.h (test_utimens): Refactor utimecmp
28691         comparisons to avoid spurious failures from timestamp drift
28692         between NFS machines.
28693
28694 2009-10-12  Eric Blake  <ebb9@byu.net>
28695
28696         stat-time-tests: minor cleanups
28697         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
28698         * tests/test-stat-time.c (nap): Separate assignment from call.
28699         Suggested by Paolo Bonzini and Bruno Haible.
28700
28701         sys_stat: guarantee struct timespec
28702         * lib/sys_stat.in.h (includes): Always include <time.h>
28703         * modules/sys_stat (Depends-on): Add time.
28704         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
28705         mode_t permission values.
28706         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
28707         get at subsecond timestamps.
28708
28709 2009-10-10  Eric Blake  <ebb9@byu.net>
28710
28711         futimens: new module
28712         * modules/futimens: New file.
28713         * lib/futimens.c (futimens): Likewise.
28714         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
28715         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
28716         we can work around Linux bugs.
28717         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
28718         * modules/sys_stat (Makefile.am): Substitute them.
28719         * lib/sys_stat.in.h (futimens): Declare it.
28720         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28721         * doc/posix-functions/futimens.texi (futimens): Likewise.
28722         * modules/futimens-tests: New test.
28723         * tests/test-futimens.c: Likewise.
28724
28725         utimens: introduce fdutimens
28726         * lib/utimens.h (fdutimens): New prototype.
28727         * lib/utimens.c (gl_futimens): Move guts...
28728         (fdutimens): ...to new interface.
28729         * tests/test-utimens.c (do_fdutimens): Use it.
28730
28731         utimens: add UTIME_NOW and UTIME_OMIT support
28732         * lib/utimens.c (validate_timespec, update_timespec): New helper
28733         functions.
28734         (gl_futimens, lutimens): Use them.
28735         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
28736         stdbool, sys_stat.
28737         (Link): Mention resulting library dependency.
28738         * modules/utimecmp (Link): Likewise.
28739         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
28740         (Makefile.am): Pick up library dependency.
28741         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
28742         definition.
28743         * tests/test-sys_stat.c: Test the definitions.
28744         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
28745         * NEWS: Document library dependency.
28746
28747         utimecmp: support symlink timestamps
28748         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
28749         hashing when possible.  Use pathconf when available.
28750         (SYSCALL_RESOLUTION): Recognize tighter resolution.
28751         * modules/utimecmp (Depends-on): Add lstat.
28752
28753         utimens: add lutimens interface
28754         * lib/utimens.c (lutimens): New function.
28755         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
28756         * lib/utimens.h (lutimens): Declare new interface.
28757         * tests/test-utimens.c (main): Enhance test.
28758         * tests/test-lutimens.h (test_lutimens): New file.
28759         * modules/utimens-tests (Files): Distribute it.
28760         (Depends-on): Add symlink.
28761         (configure.ac): Check for usleep.
28762
28763         utimens: validate futimens usage
28764         * lib/utimens.c (gl_futimens): Require valid fd up front, using
28765         fewer syscalls on failure later on.  Avoid compiler warning on
28766         mingw.
28767         * modules/utimens (Depends-on): Add dup2.
28768
28769         utimens: add test
28770         * modules/utimens-tests: New test.
28771         * tests/test-utimens.h: New file.
28772         * tests/test-futimens.h: Likewise.
28773         * tests/test-utimens.c: Likewise.
28774
28775         doc: mention timestamp portability issues
28776         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
28777         instead.
28778         * doc/posix-functions/utime.texi (utime): Likewise.
28779         * doc/posix-functions/utimes.texi (utimes): Likewise.
28780         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
28781         instead.
28782         * doc/posix-functions/futimens.texi (futimens): Mention utimens
28783         module.
28784         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
28785         Mention weakness with symlink timestamps.
28786         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
28787         to utimensat/futimens instead.
28788         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
28789
28790         test-dup2: enhance test
28791         * tests/test-dup2.c (main): Also check AT_FDCWD.
28792
28793         test-stat-time: avoid more spurious failures
28794         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
28795         xfs; and avoid race if the two timestamps cross quantization edge.
28796
28797         relocatable: prefer 'file system' over 'filesystem'
28798         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
28799         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
28800         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
28801         * doc/relocatable.texi (Enabling Relocatability): Likewise.
28802         * lib/relocatable.c (compute_curr_prefix): Likewise.
28803
28804 2009-10-10  Jim Meyering  <meyering@redhat.com>
28805
28806         stat-time-tests: check for the usleep function
28807         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
28808
28809 2009-10-10  Bruno Haible  <bruno@clisp.org>
28810
28811         * modules/xnanosleep: Put the Link section after the Include section.
28812
28813 2009-10-09  Eric Blake  <ebb9@byu.net>
28814
28815         dup2: work around FreeBSD 6.1 bug
28816         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
28817         * doc/posix-functions/dup2.texi (dup2): Document it.
28818         Reported by Nelson H. F. Beebe and Jim Meyering.
28819
28820         test-stat-time: port to buggy NFS clients
28821         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
28822         (test_ctime): Also skip test if mtime and ctime are skewed.
28823
28824         maint: prefer 'file system' over 'filesystem'
28825         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
28826         * doc/posix-functions/lstat.texi (lstat): Likewise.
28827         * lib/file-has-acl.c (file_has_acl): Likewise.
28828         * lib/fwriteerror.c [TEST]: Likewise.
28829         * tests/test-areadlink.h (test_areadlink): Likewise.
28830         * tests/test-areadlinkat-with-size.c (main): Likewise.
28831         * tests/test-areadlinkat.c (main): Likewise.
28832         * tests/test-canonicalize-lgpl.c (main): Likewise.
28833         * tests/test-canonicalize.c (main): Likewise.
28834         * tests/test-fstatat.c (main): Likewise.
28835         * tests/test-linkat.c (main): Likewise.
28836         * tests/test-lstat.h (test_lstat_func): Likewise.
28837         * tests/test-mkdir.h (test_mkdir): Likewise.
28838         * tests/test-readlink.h (test_readlink): Likewise.
28839         * tests/test-remove.c (main): Likewise.
28840         * tests/test-rename.h (test_rename): Likewise.
28841         * tests/test-renameat.c (main): Likewise.
28842         * tests/test-rmdir.h (test_rmdir_func): Likewise.
28843         * tests/test-symlink.h (test_symlink): Likewise.
28844         * tests/test-symlinkat.c (main): Likewise.
28845         * tests/test-unlink.h (test_unlink_func): Likewise.
28846         * tests/test-unlinkat.c (main): Likewise.
28847
28848         maint: make realtime library usage explicit
28849         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
28850         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
28851         * modules/settime (Link): Likewise.
28852         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
28853
28854         test-stat-time: speed up execution
28855         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
28856         warning on mingw.
28857         (nap): New helper function.
28858         (prepare_test): Use it to reduce sleep time.
28859         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
28860         execution.
28861         * modules/stat-time-tests (configure.ac): Check for usleep.
28862
28863 2009-10-09  Jim Meyering  <meyering@redhat.com>
28864
28865         selinux-h: always use getfilecon wrappers
28866         * lib/getfilecon.c: New file.
28867         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
28868         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
28869         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
28870         (fgetfilecon): Provide a stub.
28871         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
28872         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
28873         file unconditionally.
28874         When <selinux/selinux.h> is found, arrange to use wrappers.
28875         * modules/selinux-h (Files): Add getfilecon.c.
28876         (Makefile.am): Substitute include-next-related bits
28877         into the now-always-generated selinux/selinux.h file.
28878         * doc/glibc-functions/lgetfilecon.texi: New file.
28879         * doc/glibc-functions/fgetfilecon.texi: New file.
28880         * doc/glibc-functions/getfilecon.texi: New file.
28881         * doc/glibc-functions/getfilecon-desc.texi: New file.
28882         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
28883         which to pull in the new files.
28884         * MODULES.html.sh (Misc): Add selinux-h.
28885
28886 2009-10-08  Jim Meyering  <meyering@redhat.com>
28887
28888         unistd: fix comment typo
28889         * lib/unistd.in.h (euidaccess): Fix a comment typo.
28890
28891 2009-10-08  Eric Blake  <ebb9@byu.net>
28892
28893         areadlink: use SIZE_MAX consistently
28894         * modules/areadlink (Depends-on): Add stdint.
28895         * modules/areadlink-with-size (Depends-on): Likewise.
28896         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
28897         gives NULL; drop sys/types, since unistd gives size_t; and add
28898         stdint for SIZE_MAX.
28899         (SIZE_MAX): Rely on headers.
28900         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
28901         and add stdint.
28902         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
28903         (SIZE_MAX): Likewise.
28904         (INITIAL_BUF_SIZE): Turn into enum.
28905         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
28906
28907 2009-10-08  Jim Meyering  <meyering@redhat.com>
28908
28909         areadlinkat: avoid compilation failure
28910         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
28911         Fix typo in comment.
28912
28913 2009-10-07  Eric Blake  <ebb9@byu.net>
28914
28915         areadlinkat-with-size: new module
28916         * modules/areadlinkat-with-size: New module.
28917         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
28918         * lib/areadlink.h (areadlinkat): Declare it.
28919         * MODULES.html.sh (File system functions): Mention it.
28920         * modules/areadlinkat-with-size-tests: New test.
28921         * tests/test-areadlinkat-with-size.c: New file.
28922
28923         xreadlinkat: new module
28924         * modules/xreadlinkat: New module.
28925         * lib/xreadlinkat.c (xreadlinkat): New file.
28926         * lib/xreadlink.h (xreadlinkat): Declare it.
28927         * MODULES.html.sh (File system functions): Mention it.
28928
28929         areadlinkat: new module
28930         * lib/at-func.c (FUNC_FAIL): New define.
28931         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
28932         * modules/areadlinkat: New module.
28933         * lib/linkat.c (areadlinkat): Move...
28934         * lib/areadlinkat.c (areadlinkat): ...to new file.
28935         * lib/areadlink.h (areadlinkat): Declare it.
28936         * modules/linkat (Depends-on): Add areadlinkat.
28937         * MODULES.html.sh (File system functions): Mention it.
28938         * modules/areadlinkat-tests: New test.
28939         * tests/test-areadlinkat.c: New file.
28940
28941         areadlink, areadlink-with-size: add tests
28942         * modules/areadlink-tests: New test.
28943         * modules/areadlink-with-size-tests: Likewise.
28944         * tests/test-areadlink.h: New file.
28945         * tests/test-areadlink.c: Likewise.
28946         * tests/test-areadlink-with-size.c: Likewise.
28947
28948         maint: minor cleanups
28949         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
28950         _UNUSED_PARAMETER_ instead.
28951         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
28952         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
28953         * modules/linkat-tests (Files): Distribute test-link.h.
28954
28955         openat, utimens: whitespace cleanup
28956         * lib/openat.c: Prefer space throughout, rather than mix of 8
28957         spaces vs. tabs.
28958         * lib/at-func.c: Likewise.
28959         * lib/utimens.c: Likewise.
28960
28961         openat: avoid using wrong fd
28962         * lib/openat.c (openat_permissive): Reject user's fd if saving the
28963         working directory chooses same fd.
28964         * lib/at-func.c (AT_FUNC_NAME): Likewise.
28965
28966         mkdir, mkdirat: fix cygwin 1.5.x bug
28967         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
28968         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
28969         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
28970         bug.
28971         (gl_PREREQ_MKDIR): Delete unused macro.
28972         * modules/mkdir (Files): Track file rename.
28973         (configure.ac): Update macro name.
28974         * modules/openat (Depends-on): Add mkdir.
28975         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
28976
28977         mkdir, mkdirat: add tests
28978         * modules/mkdir-tests: New test.
28979         * tests/test-mkdir.h: New file.
28980         * tests/test-mkdir.c: Likewise.
28981         * tests/test-mkdirat.c: Likewise.
28982         * modules/openat-tests (Files): Add new files.
28983         (Makefile.am): Run new test.
28984
28985 2009-10-06  Eric Blake  <ebb9@byu.net>
28986
28987         doc: tweak *at function documentation
28988         * doc/posix-functions/faccessat.texi (faccessat): Mention
28989         known issue with replacement.
28990         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
28991         * doc/posix-functions/linkat.texi (linkat): Likewise.
28992         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
28993         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
28994         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
28995         * doc/posix-functions/renameat.texi (renameat): Likewise.
28996         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
28997
28998         openat: fix GNU/Hurd bug in unlinkat
28999         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
29000         broken.
29001         * doc/posix-functions/unlink.texi (unlink): Document this.
29002         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
29003
29004         fdopendir: fix GNU/Hurd bug
29005         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
29006         allowing non-directory fds.
29007         * lib/fdopendir.c (rpl_fdopendir): Work around it.
29008         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
29009         * modules/dirent (Makefile.am): Substitute it.
29010         * lib/dirent.in.h (fdopendir): Declare replacement.
29011         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
29012         * tests/test-fdopendir.c (main): Test something other than
29013         /dev/null, since on Hurd that behaves like a directory.
29014
29015         test-symlink: port to GNU/Hurd
29016         * tests/test-symlink.h (test_symlink): Relax expected errno.
29017
29018         doc: tweak more cygwin information
29019         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
29020         now compatible with glibc.
29021         * doc/posix-functions/getopt.texi (getopt): Likewise.
29022
29023         getopt-gnu: add another test
29024         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
29025         guarantee behavior relied on by m4.
29026         * tests/test-getopt.c (main): Use it.
29027         * modules/getopt-posix-tests (Depends-on): Add setenv.
29028         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
29029
29030         getopt: fix compilation on darwin
29031         * lib/getopt.in.h (includes): Leave breadcrumbs during system
29032         include.
29033         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
29034         Reported by Ludovic Courtès.
29035
29036 2009-10-06  Bruno Haible  <bruno@clisp.org>
29037
29038         * modules/size_max (Description): Discourage its use.
29039         Reported by Simon Josefsson.
29040
29041 2009-10-06  Jim Meyering  <meyering@redhat.com>
29042
29043         linkat: avoid compilation failure
29044         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
29045
29046 2009-10-05  Eric Blake  <ebb9@byu.net>
29047
29048         linkat: support Linux 2.6.17
29049         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
29050         linkat on Linux, but allow cache variable override.
29051         * lib/linkat.c (rpl_linkat): Define override.
29052         * modules/linkat (Depends-on): Add symlinkat.
29053         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
29054         * modules/unistd (Makefile.am): Substitute it.
29055         * lib/unistd.in.h (linkat): Declare replacement.
29056         Reported by Pádraig Brady.
29057
29058         quotearg: port test to systems with C.UTF-8 locale
29059         * tests/test-quotearg.c (struct result_strings): Add another
29060         member, differentiating between C.ASCII and C.UTF-8 handling.
29061         (compare_strings): Add parameter.
29062         (main): Adjust all callers.
29063
29064         getopt: avoid clash with FreeBSD _getopt_internal
29065         * lib/getopt.in.h (_getopt_internal): Override the name.
29066         * lib/getopt_int.h (includes): Pick up any overrides.
29067         Reported by Reuben Thomas.
29068
29069         hash: allow C89 compilation
29070         * lib/hash.c (check_tuning): Move declaration before statement.
29071         Reported by Reuben Thomas.
29072
29073 2009-10-05  Karl Berry  <karl@gnu.org>
29074
29075         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
29076
29077 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
29078             Bruno Haible  <bruno@clisp.org>
29079
29080         * lib/uname.c (uname): Use a table-driven algorithm to compute
29081         Windows NT versions.
29082
29083 2009-10-04  Bruno Haible  <bruno@clisp.org>
29084
29085         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
29086         program_invocation_short_name.
29087         * modules/progname (configure.ac): Test for presence of
29088         program_invocation_short_name.
29089         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
29090
29091 2009-10-04  Bruno Haible  <bruno@clisp.org>
29092
29093         * lib/progname.c (set_program_name): Fix comment.
29094         Reported by Jim Meyering.
29095
29096 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
29097             Bruno Haible  <bruno@clisp.org>
29098
29099         * lib/uname.c: Include <string.h>.
29100         (uname): Do only one call to GetVersionEx in the common case.
29101
29102 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
29103             Bruno Haible  <bruno@clisp.org>
29104
29105         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
29106         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
29107         (uname): Add support for Windows CE and various non-x86 CPU types.
29108
29109 2009-10-03  Bruno Haible  <bruno@clisp.org>
29110
29111         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
29112         invocation to tests/configure.ac.
29113         Reported by Ian Beckwith <ianb@erislabs.net>.
29114
29115 2009-10-02  Eric Blake  <ebb9@byu.net>
29116
29117         fchdir: avoid compiler warning
29118         * lib/fchdir.c (canonicalize_file_name)
29119         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
29120
29121         test-open: support mingw errno values
29122         * tests/test-open.h (test_open): Relax test.
29123         * tests/test-fopen.h (test_fopen): Likewise.
29124         * tests/test-openat-safer.c (main): Likewise.
29125
29126         open: fix opening directory on mingw
29127         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
29128
29129         test-open: on GNU/Hurd, /dev/null is a directory
29130         * tests/test-fopen.h (main): Rename...
29131         (test_fopen): ...to this.  Use a guaranteed non-directory when
29132         confirming open behavior on trailing slash.
29133         * tests/test-openat-safer.c (main): Likewise.
29134         * tests/test-open.h (main): Likewise....
29135         (test_open): ...to this.
29136         * tests/test-fopen.c (main): Adjust caller.
29137         * tests/test-fopen-safer.c (main): Likewise.
29138         * tests/test-open.c (main): Likewise.
29139         * tests/test-fcntl-safer.c (main): Likewise.
29140         Reported by Samuel Thibault.
29141
29142         rename, fchdir: don't ignore chdir failure
29143         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
29144         * lib/rename.c (rpl_rename) [W32]: Likewise.
29145         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
29146         an empty destination directory if source cannot be renamed,
29147         although there is still possibility for failure.
29148         * doc/posix-functions/rename.texi (rename): Document the race.
29149         Reported by Jim Meyering.
29150
29151         maint: cleanup whitespace in recent commits
29152         * lib/rename.c (rpl_rename): Remove tabs.
29153         * tests/test-link.h (test_link): Likewise.
29154         * lib/fchdir.c (get_name): Likewise.
29155         Reported by Jim Meyering.
29156
29157 2009-10-02  Ben Pfaff  <blp@gnu.org>
29158
29159         relocatable-prog-wrapper: Add missing dependency on
29160         double-slash-root.
29161         * modules/relocatable-prog-wrapper: Add dependency.
29162         Reported by Ian Beckwith <ianb@erislabs.net>.
29163
29164 2009-10-02  Eric Blake  <ebb9@byu.net>
29165
29166         renameat: fix Solaris bugs
29167         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
29168         needed fixing.
29169         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
29170         * modules/stdio (Makefile.am): Substitute it.
29171         * lib/stdio.in.h (renameat): Declare replacement.
29172         * lib/renameat.c (rpl_renameat): Implement fix.
29173
29174         renameat: new module
29175         * modules/renameat: New file.
29176         * lib/renameat.c (renameat): Likewise.
29177         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
29178         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
29179         * modules/stdio (Makefile.am): Substitute them.
29180         * lib/stdio.in.h (renameat): Declare it.
29181         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29182         * doc/posix-functions/renameat.texi (renameat): Likewise.
29183         * modules/renameat-tests: New test.
29184         * tests/test-renameat.c: Likewise.
29185
29186         rename: fix mingw bugs
29187         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
29188         directory overwrite bugs.
29189
29190         rename: fix another cygwin 1.5 bug
29191         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
29192         checks.
29193         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
29194         unnecessary cygwin workarounds.  Also work around bug with moving
29195         full directory onto an empty one.
29196         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
29197
29198         rename-dest-slash: merge into rename module
29199         * modules/rename-dest-slash (Status): Mark obsolete.
29200         (Depends-on): Add rename.
29201         (Files): Let rename do it all.
29202         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
29203         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
29204         * m4/rename-dest-slash.m4: ...so this file can be deleted.
29205         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
29206         * lib/rename.c (rpl_rename): Update comments.
29207
29208         rename: fix cygwin 1.5.x bugs
29209         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
29210         * lib/rename.c (rpl_rename): Work around them.
29211         * modules/rename (Depends-on): Add same-inode.
29212
29213         rename: fix Solaris 10 bug
29214         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
29215         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
29216         was the only bug.
29217
29218         rename: fix Solaris 9 bug
29219         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
29220         on non-directory.  Avoid calling exit.
29221         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
29222         strdup.
29223         * modules/rename-tests (Depends-on): Drop lstat.
29224         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
29225         (gl_PREREQ_RENAME): Delete unused macro.
29226
29227         rename-dest-slash: fix NetBSD bug
29228         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
29229         links.
29230         * modules/rename-dest-slash (Depends-on): Add same-inode.
29231
29232         rename-tests: new test, exposes several platform bugs
29233         * modules/rename-tests: New file.
29234         * tests/test-rename.h: Likewise.
29235         * tests/test-rename.c: Likewise.
29236         * doc/posix-functions/rename.texi (rename): Improve documentation,
29237         including bugs that will eventually be fixed in gnulib.
29238
29239 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
29240
29241         * lib/uname.c: Include <stdlib.h>
29242         (uname): Assume version info is available.
29243
29244 2009-10-02  Jim Meyering  <meyering@redhat.com>
29245
29246         gnu-web-doc-update: correct --help output
29247         * build-aux/gnu-web-doc-update: Make --help output relevant.
29248
29249         gnu-web-doc-update: add standard options
29250         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
29251
29252         gnu-web-doc-update: New module.
29253         Use this script to automatically update the on-line web documentation
29254         for your GNU project at http://www.gnu.org/software/$pkg/manual/
29255         * modules/gnu-web-doc-update: New file, from coreutils.
29256         * build-aux/gnu-web-doc-update: New script.
29257
29258 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
29259
29260         link: LoadLibrary is not needed.
29261         * lib/link.c: Use GetModuleHandle.
29262
29263 2009-10-01  Eric Blake  <ebb9@byu.net>
29264
29265         getopt: bump serial number
29266         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
29267         change.
29268
29269         tests: tighten link, rmdir, and remove tests
29270         * tests/test-link.h (includes): No need to use <config.h> here.
29271         Clean up if directory hard link was created, otherwise test for
29272         trailing '.'.
29273         * tests/test-linkat.c (main): Simplify.
29274         * tests/test-remove.c (main): Enhance test for trailing '.'.
29275         * tests/test-rmdir.h (test_rmdir_func): Likewise.
29276
29277 2009-10-01  Jim Meyering  <meyering@redhat.com>
29278
29279         maint.mk: requiring "make major" was annoying, for a "minor" release.
29280         What is intended is "stable", to contrast with alpha and beta,
29281         so require "make stable", not "make major".
29282         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
29283         (get_tool_versions): Likewise.
29284         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
29285
29286 2009-09-30  Ben Pfaff  <blp@gnu.org>
29287
29288         Fix broken build of replacement for Windows tmpfile().
29289         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
29290         flags argument added along with the 'mkostemp' module.
29291
29292 2009-09-28  Bruno Haible  <bruno@clisp.org>
29293
29294         Avoid identifier clash with POSIX function 'remove' defined as a macro.
29295         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
29296         to 'remove_elt'.
29297         (gl_list_remove): Update.
29298         * lib/gl_list.c (gl_list_remove): Update.
29299         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
29300         to 'remove_elt'.
29301         (gl_oset_remove): Update.
29302         * lib/gl_list.c (gl_oset_remove): Update.
29303         Reported by Eric Blake.
29304
29305 2009-09-28  Eric Blake  <ebb9@byu.net>
29306
29307         doc: mention yet more cygwin 1.7 status
29308         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
29309         cygwin.
29310         * doc/glibc-functions/execvpe.texi (execvpe): New file.
29311         * doc/gnulib.texi (Glibc unistd.h): Mention it.
29312
29313         argp: fix test failure
29314         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
29315         that are not upper-case.  Pass correct range to tolower.
29316
29317 2009-09-27  Jim Meyering  <meyering@redhat.com>
29318
29319         test-yesno: work around sparc-dash here-document infelicity
29320         Without this change, the literal \177 byte in a here document
29321         would make dash 0.5.5.1-3 access uninitialized memory.
29322         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
29323         Instead, use a marker, "@", and filter through tr to create the desired
29324         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
29325
29326 2009-09-27  Bruno Haible  <bruno@clisp.org>
29327
29328         Disable untested support for new flavours of ACLs on AIX.
29329         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
29330         progress.
29331         * lib/set-mode-acl.c (qset_acl): Likewise.
29332
29333 2008-12-07  Bruno Haible  <bruno@clisp.org>
29334
29335         Add support for new flavours of ACLs on AIX. (Untested.)
29336         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
29337         (file_has_acl): Add support for newer AIX.
29338         * lib/set-mode-acl.c (qset_acl): Likewise.
29339         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
29340         Rainer Tammer <tammer@tammer.net>.
29341
29342 2009-09-26  Eric Blake  <ebb9@byu.net>
29343
29344         argp: fix compilation of getopt
29345         * lib/getopt.in.h (includes): Use different guard than glibc.
29346         Reported by Sergey Poznyakoff.
29347
29348         doc: mention more cygwin 1.7 status
29349         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
29350         bug.
29351         * doc/posix-functions/execl.texi (execl): Likewise.
29352         * doc/posix-functions/execle.texi (execle): Likewise.
29353         * doc/posix-functions/execlp.texi (execlp): Likewise.
29354         * doc/posix-functions/execv.texi (execv): Likewise.
29355         * doc/posix-functions/execve.texi (execve): Likewise.
29356         * doc/posix-functions/execvp.texi (execvp): Likewise.
29357         * doc/glibc-functions/canonicalize_file_name.texi
29358         (canonicalize_file_name): Cygwin 1.7 now provides this.
29359         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
29360         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
29361         on AT_SYMLINK_NOFOLLOW.
29362
29363 2009-09-24  Eric Blake  <ebb9@byu.net>
29364
29365         test-linkat: make test more robust
29366         * tests/test-linkat.c (main): Avoid collision with EEXIST.
29367
29368         getopt: fix inclusion guards for cygwin
29369         * modules/getopt-posix (Depends-on): Add include-next.
29370         (Makefile.am): Substitute more items in replacement header.
29371         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
29372         <getopt.h>.
29373         * lib/getopt.in.h (includes): Use split inclusion guard, and
29374         prefer <getopt.h> over include <unistd.h> when one is present.
29375         (option): Also override name of 'struct option'.
29376
29377         same-inode: revert prior change; it is not yet ready
29378         * NEWS: Undo mention of this change.
29379         * lib/same-inode.h (same-inode.h): Undo tri-state change.
29380         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
29381         * lib/cycle-check.c (cycle_check): Likewise.
29382         * lib/same.c (same_name): Likewise.
29383         * lib/at-func2.c (at_func2): Likewise.
29384
29385 2009-09-23  Eric Blake  <ebb9@byu.net>
29386
29387         linkat: new module
29388         * modules/linkat: New file.
29389         * lib/at-func2.c (at_func2): Likewise.
29390         * lib/linkat.c (linkat): Likewise.
29391         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
29392         * lib/openat-priv.h (at_func2): Add declaration.
29393         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
29394         * modules/unistd (Makefile.am): Substitute them.
29395         * lib/unistd.in.h (linkat): Declare it.
29396         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29397         * doc/posix-functions/linkat.texi (linkat): Likewise.
29398         * doc/posix-functions/link.texi (link): Tweak wording.
29399         * tests/test-link.c (main): Move guts...
29400         * tests/test-link.h (test_link): ...into new file.
29401         * modules/linkat-tests: New test.
29402         * tests/test-linkat.c: Likewise.
29403         * modules/link-tests (Files): Ship new file.
29404         (Depends-on): Add stdbool.
29405
29406         dirname: add library-safe mdir_name
29407         * lib/dirname.h (mdir_name): New prototype.
29408         * lib/dirname.c (dir_name): Move guts...
29409         (mdir_name): ...to new function that avoids xalloc_die.
29410
29411         fchdir: another mingw fix
29412         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
29413         * lib/fchdir.c (get_name): New helper method; skips canonicalize
29414         on mingw (where it has not yet been ported), and make it optional
29415         elsewhere.
29416         (_gl_register_fd): Use it.
29417
29418         same-inode: make SAME_INODE tri-state, to port to mingw
29419         * NEWS: Mention this change.
29420         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
29421         st_ino always being 0.
29422         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
29423         * lib/cycle-check.c (cycle_check): Likewise.
29424         * lib/same.c (same_name): Likewise.
29425
29426         lstat: avoid mingw compilation error
29427         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
29428         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
29429         lstat ourselves.
29430         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
29431         was adequate.
29432         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
29433         the checks for lstat.
29434         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
29435
29436         link: fix test failure on Solaris 9
29437         * lib/link.c (rpl_link): Don't assume link will catch bogus
29438         trailing slash on source.
29439
29440         test-symlinkat: enhance test
29441         * tests/test-readlink.c (main): Move guts...
29442         * tests/test-readlink.h (test_readlink): ...into new file.
29443         * tests/test-symlink.c (main): Move guts...
29444         * tests/test-symlink.h (test_symlink): ...into new file.
29445         * tests/test-symlinkat.c (main): Use new files for further
29446         coverage.
29447         (do_symlink, do_readlink): New helper functions.
29448         * modules/symlink-tests (Files): Ship new file.
29449         (Depends-on): Add stdbool.
29450         * modules/readlink-tests (Files): Ship new file.
29451         (Depends-on): Add stdbool.
29452         * modules/symlinkat-tests (Files): Use new files.
29453
29454 2009-09-23  Eric Blake  <ebb9@byu.net>
29455
29456         readlink: document portability issue with symlink length
29457         * doc/posix-functions/lstat.texi (lstat): Mention that some file
29458         systems have bogus st_size on symlinks, and mention the
29459         areadlink-with-size module.
29460         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
29461         * doc/posix-functions/readlink.texi (readlink): Mention the
29462         areadlink module, and ERANGE failure.
29463         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
29464         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
29465
29466         readlink: fix Solaris 9 bug with trailing slash
29467         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
29468         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
29469         * doc/posix-functions/readlink.texi (readlink): Document this.
29470         * modules/readlink-tests: New test.
29471         * tests/test-readlink.c: Likewise.
29472
29473         readlink: fix cygwin 1.5.x bug with return type
29474         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
29475         * lib/unistd.in.h (readlink): Use ssize_t.
29476         * lib/readlink.c (readlink): Likewise.
29477         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29478         * modules/unistd (Makefile.am): Substitute it.
29479         * lib/unistd.in.h (readlink): Declare replacement.
29480         * doc/posix-functions/readlink.texi (readlink): Document this.
29481
29482         symlink: use throughout gnulib
29483         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
29484         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
29485         symlink is not used.
29486         * modules/symlinkat (Depends-on): Add symlink.
29487         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
29488         * modules/canonicalize-tests (Depends-on): Likewise.
29489         * modules/lstat-tests (Depends-on): Likewise.
29490         * modules/openat-tests (Depends-on): Likewise.
29491         * modules/remove-tests (Depends-on): Likewise.
29492         * modules/rmdir-tests (Depends-on): Likewise.
29493         * modules/unlink-tests (Depends-on): Likewise.
29494         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
29495         * tests/test-canonicalize.c (symlink): Likewise.
29496         * tests/test-fstatat.c (symlink): Likewise.
29497         * tests/test-lstat.c (symlink): Likewise.
29498         * tests/test-remove.c (symlink): Likewise.
29499         * tests/test-rmdir.c (symlink): Likewise.
29500         * tests/test-unlink.c (symlink): Likewise.
29501         * tests/test-unlinkat.c (symlink): Likewise.
29502
29503         symlink: new module, for Solaris 9 bug
29504         * modules/symlink: New file.
29505         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
29506         * lib/symlink.c: Likewise.
29507         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
29508         * modules/unistd (Makefile.am): Substitute them.
29509         * lib/unistd.in.h (symlink): Declare replacement.
29510         * MODULES.html.sh (File system functions): Mention it.
29511         * doc/posix-functions/symlink.texi (symlink): Likewise.
29512         * modules/symlink-tests: New test.
29513         * tests/test-symlink.c: Likewise.
29514
29515 2009-09-23  Bruno Haible  <bruno@clisp.org>
29516
29517         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
29518         when needed.
29519         Test case: gnulib-tool --import --with-tests atexit inttypes.
29520         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
29521
29522 2009-09-23  Bruno Haible  <bruno@clisp.org>
29523
29524         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
29525         subcommand, not in a subshell.
29526
29527 2009-09-22  Eric Blake  <ebb9@byu.net>
29528
29529         unistd: sort replacement declarations
29530         * lib/unistd.in.h: Sort declarations.
29531
29532         open, openat: minor optimization
29533         * lib/open.c (open): If open succeeded, len is non-zero.
29534         * lib/openat.c (rpl_openat): Likewise.
29535
29536         link-follow: ensure correct result
29537         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
29538         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
29539         distinguish between possible failures.
29540
29541 2009-09-21  Eric Blake  <ebb9@byu.net>
29542
29543         fts: avoid compiler warning
29544         * lib/fts.c (dirent_inode_sort_may_be_useful)
29545         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
29546
29547 2009-09-19  Bruno Haible  <bruno@clisp.org>
29548
29549         * lib/progreloc.c (canonicalize_file_name): New declaration.
29550
29551 2009-09-19  Eric Blake  <ebb9@byu.net>
29552
29553         link: fix quoting
29554         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
29555
29556         openat: fix openat bugs on Solaris 9
29557         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
29558         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
29559         * modules/openat (Depends-on): Add open.
29560         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
29561         * modules/fcntl-h (Makefile.am): Substitute it.
29562         * lib/fcntl.in.h (openat): Declare replacement.
29563         * doc/posix-functions/openat.texi (openat): Document this.
29564
29565         openat: move fstatat and unlinkat into correct files
29566         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
29567         compiled.
29568         * lib/openat.c (fstatat, unlinkat): Move...
29569         * lib/fstatat.c (fstatat): ...into correct files.
29570         * lib/unlinkat.c (unlinkat): Likewise.
29571
29572         openat: fix unlinkat bugs on Solaris 9
29573         * lib/unlinkat.c (unlinkat): New file.
29574         * modules/openat (Depends-on): Add unlink.
29575         (Files): Distribute it.
29576         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
29577         trailing slash behavior is broken.
29578         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29579         * modules/unistd (Makefile.am): Substitute it.
29580         * lib/unistd.in.h (unlinkat): Declare replacement.
29581         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
29582
29583         openat: fix fstatat bugs on Solaris 9
29584         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
29585         stat.
29586         * doc/posix-functions/fstatat.texi (fstatat): Document this.
29587
29588         test-unlinkat: enhance test, to expose Solaris 9 bug
29589         * tests/test-unlink.c (main): Factor guts...
29590         * tests/test-unlink.h (test_rmdir_func): ...into new file.
29591         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
29592         * tests/test-rmdir.c (main): Adjust caller.
29593         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
29594         (unlinker): New helper function.
29595         (rmdirat): Enhance check.
29596         * modules/rmdir-tests (Depends-on): Add stdbool.
29597         * modules/unlink-tests (Depends-on): Likewise.
29598         (Files): Add test-unlink.h.
29599         * modules/openat-tests (Files): Likewise.
29600         (Depends-on): Add unlinkdir.
29601
29602         test-fstatat: new test, to expose Solaris 9 bugs
29603         * tests/test-stat.c (main): Factor guts...
29604         * tests/test-stat.h (test_stat_func): ...into new file.
29605         * tests/test-lstat.c (main): Factor guts...
29606         * tests/test-lstat.h (test_lstat_func): ...into new file.
29607         * tests/test-fstatat.c: New file.
29608         * modules/stat-tests (Files): Add test-stat.h.
29609         * modules/lstat-tests (Files): Add test-lstat.h.
29610         (Depends-on): Add stdbool.
29611         * modules/openat-tests (Depends-on): Add pathmax.
29612         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
29613         (Makefile.am): Run new test.
29614
29615         remove: new module, for mingw and Solaris 9 bugs
29616         * modules/remove: New file.
29617         * lib/remove.c: Likewise.
29618         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
29619         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
29620         * modules/stdio (Makefile.am): Use them.
29621         * lib/stdio.in.h (remove): Declare replacement.
29622         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29623         * doc/posix-functions/remove.texi (remove): Likewise.
29624         * modules/remove-tests: New test.
29625         * tests/test-remove.c: Likewise.
29626
29627         unlink: new module, for Solaris 9 bug
29628         * modules/unlink: New file.
29629         * lib/unlink.c: Likewise.
29630         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
29631         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
29632         * modules/unistd (Makefile.am): Use them.
29633         * lib/unistd.in.h (stat): Declare replacement.
29634         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29635         * doc/posix-functions/unlink.texi (unlink): Likewise.
29636         * modules/unlink-tests: New test.
29637         * tests/test-unlink.c: Likewise.
29638
29639         lstat: fix Solaris 9 bug
29640         * lib/lstat.c (lstat): Also check for trailing slash on
29641         non-symlink, non-directories.  Use stat module to simplify logic.
29642         * doc/posix-functions/lstat.texi (lstat): Document it.
29643         * modules/lstat-tests (Depends-on): Add errno, same-inode.
29644         (configure.ac): Check for symlink.
29645         * tests/test-lstat.c (main): Add more tests.
29646
29647         stat: add as dependency to other modules
29648         * modules/chown (Depends-on): Add stat.
29649         * modules/euidaccess (Depends-on): Likewise.
29650         * modules/fchdir (Depends-on): Likewise.
29651         * modules/isdir (Depends-on): Likewise.
29652         * modules/link (Depends-on): Likewise.
29653         * modules/lstat (Depends-on): Likewise.
29654         * modules/mkdir-p (Depends-on): Likewise.
29655         * modules/modechange (Depends-on): Likewise.
29656         * modules/open (Depends-on): Likewise.
29657         * modules/readlink (Depends-on): Likewise.
29658         * modules/same (Depends-on): Likewise.
29659
29660         stat: fix Solaris 9 bug
29661         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
29662         slash.
29663         * lib/stat.c (rpl_stat): Work around it.
29664         * doc/posix-functions/stat.texi (stat): Update documentation.
29665
29666         stat: new module, for mingw bug
29667         * modules/stat: New file.
29668         * lib/stat.c: Likewise.
29669         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
29670         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
29671         * modules/sys_stat (Makefile.am): Use them.
29672         * lib/sys_stat.in.h (stat): Declare replacement.
29673         * lib/openat.c (fstatat): Deal with lstat and stat being function
29674         macros.
29675         * modules/openat (Depends-on): Add inline.
29676         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29677         * doc/posix-functions/stat.texi (stat): Likewise.
29678         * modules/stat-tests: New test.
29679         * tests/test-stat.c: Likewise.
29680
29681 2009-09-19  Jim Meyering  <meyering@redhat.com>
29682
29683         syntax-check: detect unnecessary inclusion of canonicalize.h
29684         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
29685
29686 2009-09-19  Eric Blake  <ebb9@byu.net>
29687
29688         canonicalize-lgpl: adjust clients to use correct header
29689         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
29690         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
29691         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
29692         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
29693         * lib/progreloc.c (includes): Likewise.
29694
29695 2009-09-19  Jim Meyering  <meyering@redhat.com>
29696
29697         test-posixtm.c: correct a comment
29698         * tests/test-posixtm.c: Correct first-line comment.
29699         Spotted by Eric Blake.
29700
29701 2009-09-16  Jim Meyering  <meyering@redhat.com>
29702
29703         posixtm-tests: make T const-correct; add a test case
29704         * tests/test-posixtm.c (T): Declare const.
29705         Add a test for -(2^31+1).
29706         Remove useless can-succeed-only-in-2002 test.
29707
29708         posixtm-tests: adjust the sole failing test
29709         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
29710         expected output matches what mktime now produces.  Cross-checked via
29711         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
29712
29713         posixtm: move #ifdef'd tests into a new module
29714         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
29715         * tests/test-posixtm.c: ... this new file.
29716         * modules/posixtm-tests: New module.
29717
29718 2009-09-19  Eric Blake  <ebb9@byu.net>
29719
29720         openat: simplify use of at-func.c
29721         * lib/at-func.c (includes): Include prerequisites here, to
29722         simplify requirements on client files.
29723         * lib/openat-priv.h: Add double-inclusion guard.
29724         * lib/faccessat.c (includes): Simplify.
29725         * lib/fchmodat.c (includes): Likewise.
29726         * lib/fchownat.c (includes): Likewise.
29727         * lib/mkdirat.c (includes): Likewise.
29728         * lib/mkfifoat.c (includes): Likewise.
29729         * lib/symlinkat.c (includes): Likewise.
29730
29731         openat: allow return of fd 0
29732         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
29733         * modules/save-cwd (Depends-on): Replace fcntl-safer with
29734         unistd-safer.
29735         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
29736         <fcntl.h>; this module does not leak fds.
29737         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
29738         must be allowed to return 0, leaving openat_safer to add the
29739         safety.
29740         (openat_permissive): Avoid writing to just-opened fd 2 if
29741         restoring the current directory fails.
29742         * lib/openat-die.c (openat_restore_fail): Add comment.
29743         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
29744         (save_cwd): Guarantee safe fd, but without use of open_safer.
29745         * tests/test-openat.c: New test.
29746         * modules/openat-tests (Files, Makefile.am): Distribute and build
29747         new file.
29748
29749         relocatable-prog-wrapper: fix build
29750         * modules/relocatable-prog-wrapper (Files): Update name of
29751         canonicalize m4 file, broken on 2009-09-17.
29752         Reported by emad hajjar <aleppos@hotmail.com>.
29753
29754 2009-09-19  Bruno Haible  <bruno@clisp.org>
29755
29756         * lib/safe-alloc.h: Use the standard header with GPL copyright.
29757         * lib/safe-alloc.c: Likewise.
29758         Reported by Ian Beckwith <ianb@erislabs.net>.
29759
29760 2009-09-18  Bruno Haible  <bruno@clisp.org>
29761
29762         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
29763         Reported by <erobles@sensacd.com.mx>.
29764
29765 2009-09-17  Eric Blake  <ebb9@byu.net>
29766
29767         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
29768         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
29769         slashes when checking if last component is missing.
29770         * tests/test-canonicalize.c (main): Test this.
29771
29772         canonicalize, canonicalize-lgpl: honor // if distinct from /
29773         * modules/canonicalize (Files): Add double-slash-root.m4.
29774         * modules/canonicalize-lgpl (Files): Likewise.
29775         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
29776         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
29777         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
29778         fallback definition.
29779         (canonicalize_filename_mode): Use it to protect //.
29780         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
29781         (__realpath): Likewise.
29782         * tests/test-canonicalize.c (main): Test this.
29783         * tests/test-canonicalize-lgpl.c (main): Likewise.
29784         * modules/canonicalize-tests (Depends-on): Add same-inode.
29785         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
29786
29787         canonicalize-lgpl: fix glibc bug with trailing slash
29788         * m4/canonicalize-lgpl.m4: Move contents...
29789         * m4/canonicalize.m4: ...here.
29790         (gl_CANONICALIZE_LGPL): Factor realpath check...
29791         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
29792         glibc 2.3.5 bug, fixed 2005-04-27.
29793         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
29794         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
29795         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
29796         * modules/canonicalize-lgpl (Files): Manage file rename.
29797         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
29798         * modules/stdlib (Makefile.am): Substitute witness.
29799         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
29800         is needed.
29801         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
29802         replacement is required.
29803         * lib/canonicalize.c (canonicalize_file_name): Likewise.
29804         * doc/glibc-functions/canonicalize_file_name.texi
29805         (canonicalize_file_name): Document this.
29806         * doc/posix-functions/realpath.texi (realpath): Likewise.
29807
29808         canonicalize-lgpl: reject non-directory with trailing slash
29809         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
29810         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
29811         catches failures in glibc 2.3.5.
29812         * tests/test-canonicalize.c (main): Likewise.
29813
29814         canonicalize-lgpl: use native realpath if it works
29815         * lib/canonicalize-lgpl.c (realpath): Guard with
29816         FUNC_REALPATH_WORKS.
29817         * lib/stdlib.in.h (realpath): Make declaration optional based on
29818         HAVE_REALPATH.
29819         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
29820         native realpath works.
29821         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
29822         * modules/stdlib (Makefile.am): Substitute witness.
29823
29824         canonicalize, canonicalize-lgpl: use <stdlib.h>
29825         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
29826         (Include): Mention <stdlib.h>.
29827         (configure.ac): Mention functions we provide.
29828         * modules/canonicalize (configure.ac): Likewise.
29829         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
29830         realpath if canonicalize_file_name is missing.
29831         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
29832         * modules/stdlib (Makefile.am): Substitute witnesses.
29833         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
29834         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
29835         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
29836         * NEWS: Document this.
29837         * doc/glibc-functions/canonicalize_file_name.texi
29838         (canonicalize_file_name): Likewise.
29839         * doc/posix-functions/realpath.texi (realpath): Likewise.
29840         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
29841
29842         test-canonicalize: consolidate into single C program
29843         * tests/test-canonicalize.sh: Delete; move setup into...
29844         * tests/test-canonicalize.c (main): ...the program, making it
29845         easier to run in debugger.  Add some tests.
29846         * modules/canonicalize-tests (Files): Remove unused file.
29847         (Depends-on): Add progname.
29848         (configure.ac, Makefile.am): Simplify.
29849
29850         test-canonicalize-lgpl: consolidate into single C program
29851         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
29852         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
29853         easier to run in debugger.  Add some tests.
29854         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
29855         (configure.ac, Makefile.am): Simplify.
29856
29857         canonicalize: avoid resolvepath
29858         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
29859         unnecessary checks.
29860         * lib/canonicalize.c (includes): Simplify.
29861         (canonicalize_file_name): Drop resolvepath implementation.
29862         * modules/canonicalize (Depends-on): Drop filenamecat.
29863
29864         canonicalize: don't lose errno
29865         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
29866         over calls to free.
29867
29868         canonicalize: simplify errno handling
29869         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
29870         assignment.
29871
29872         canonicalize, canonicalize-lgpl: update module dependencies
29873         * modules/canonicalize (Depends-on): Add extensions, lstat,
29874         pathmax, stdlib.
29875         (Files): Drop pathmax.h.
29876         (configure.ac): Adjust macro name.
29877         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
29878         lstat, stdlib, sys_stat.
29879         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
29880         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
29881         extensions.
29882         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
29883         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
29884         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
29885         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
29886         declaration, if available.
29887         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
29888         we can rely on the readlink module.
29889         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
29890         (includes): Use <unistd.h> unconditionally.
29891
29892 2009-09-17  Eric Blake  <ebb9@byu.net>
29893
29894         maint: make Include sections of modules consistent
29895         * modules/alloca: Use only header name; no need to list #include.
29896         * modules/alloca-opt: Likewise.
29897         * modules/arpa_inet: Likewise.
29898         * modules/canon-host: Likewise.
29899         * modules/configmake: Likewise.
29900         * modules/dirent: Likewise.
29901         * modules/eealloc: Likewise.
29902         * modules/environ: Likewise.
29903         * modules/fchdir: Likewise.
29904         * modules/fcntl: Likewise.
29905         * modules/fcntl-h: Likewise.
29906         * modules/gethrxtime: Likewise.
29907         * modules/gettime: Likewise.
29908         * modules/ignore-value: Likewise.
29909         * modules/inet_ntop: Likewise.
29910         * modules/inet_pton: Likewise.
29911         * modules/inttypes: Likewise.
29912         * modules/isnand-nolibm: Likewise.
29913         * modules/isnanf-nolibm: Likewise.
29914         * modules/mbchar: Likewise.
29915         * modules/mbfile: Likewise.
29916         * modules/mbiter: Likewise.
29917         * modules/mbuiter: Likewise.
29918         * modules/netdb: Likewise.
29919         * modules/netinet_in: Likewise.
29920         * modules/nproc: Likewise.
29921         * modules/pagealign_alloc: Likewise.
29922         * modules/poll: Likewise.
29923         * modules/printf-frexp: Likewise.
29924         * modules/pthread: Likewise.
29925         * modules/putenv: Likewise.
29926         * modules/random_r: Likewise.
29927         * modules/relocatable-prog: Likewise.
29928         * modules/search: Likewise.
29929         * modules/select: Likewise.
29930         * modules/selinux-h: Likewise.
29931         * modules/settime: Likewise.
29932         * modules/signal: Likewise.
29933         * modules/size_max: Likewise.
29934         * modules/socklen: Likewise.
29935         * modules/ssize_t: Likewise.
29936         * modules/stdarg: Likewise.
29937         * modules/stdbool: Likewise.
29938         * modules/stddef: Likewise.
29939         * modules/stdint: Likewise.
29940         * modules/stdio: Likewise.
29941         * modules/stdlib: Likewise.
29942         * modules/string: Likewise.
29943         * modules/strings: Likewise.
29944         * modules/sys_file: Likewise.
29945         * modules/sys_ioctl: Likewise.
29946         * modules/sys_select: Likewise.
29947         * modules/sys_socket: Likewise.
29948         * modules/sys_stat: Likewise.
29949         * modules/sys_time: Likewise.
29950         * modules/sys_times: Likewise.
29951         * modules/sys_utsname: Likewise.
29952         * modules/sys_wait: Likewise.
29953         * modules/sysexits: Likewise.
29954         * modules/time: Likewise.
29955         * modules/times: Likewise.
29956         * modules/tmpfile: Likewise.
29957         * modules/trim: Likewise.
29958         * modules/unistd: Likewise.
29959         * modules/wchar: Likewise.
29960         * modules/wctype: Likewise.
29961
29962 2009-09-17  Bruno Haible  <bruno@clisp.org>
29963
29964         Make getdate.y compile on QNX and NetBSD 5 / i386.
29965         * m4/getdate.m4 (gl_GETDATE): Conditionally define
29966         TIME_T_FITS_IN_LONG_INT.
29967         * lib/getdate.y (long_time_t): New type.
29968         (relative_time): Change type of 'seconds' field to long_time_t.
29969         (get_date): Update types of local variables. Check against overflow
29970         during conversion from long_time_t to time_t.
29971         Reported by Matt Kraai <kraai@ftbfs.org>
29972         and Hasso Tepper <hasso@netbsd.org>.
29973
29974 2009-09-17  Bruno Haible  <bruno@clisp.org>
29975
29976         * modules/COPYING: Update copyright years.
29977         * modules/README: Likeiwse.
29978         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
29979         Reported by Ian Beckwith <ianb@erislabs.net>.
29980
29981 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
29982
29983         * users.txt: Update references for gnuit package.
29984
29985 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
29986
29987         * m4/getdelim.m4: Fix typo in copyright line.
29988
29989 2009-09-17  Bruno Haible  <bruno@clisp.org>
29990
29991         * lib/atoll.c: Use the standard header with GPL copyright.
29992         * lib/argz.in.h: Likewise.
29993         * lib/glob.c: Likewise.
29994         * lib/glob-libc.h: Likewise.
29995         * lib/random_r.c: Likewise.
29996         * lib/siglist.h: Likewise.
29997         * lib/strsignal.c: Likewise.
29998         Reported by Ian Beckwith <ianb@erislabs.net>.
29999
30000 2009-09-17  Eric Blake  <ebb9@byu.net>
30001
30002         rmdir: ensure correct dependency order
30003         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
30004
30005 2009-09-17  Bruno Haible  <bruno@clisp.org>
30006
30007         Disable assertion that fails on NetBSD 5 / i386.
30008         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
30009         Reported by Sam Steingold <sds@gnu.org>
30010         and Hasso Tepper <hasso@netbsd.org>.
30011
30012 2009-09-16  Eric Blake  <ebb9@byu.net>
30013
30014         unlinkdir: port to mingw
30015         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
30016         on which no one can unlink a directory.
30017
30018         stdlib: sort witness names
30019         * modules/stdlib (Makefile.am): Sort replacements.
30020         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
30021         * lib/stdlib.in.h: Likewise.
30022
30023         parse-duration-tests: avoid link failure
30024         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
30025         LIBINTL.
30026         Reported by Tom G. Christensen.
30027
30028         openat-tests: ensure unlinkat behaves like rmdir
30029         * tests/test-rmdir.c (main): Factor guts...
30030         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
30031         * modules/rmdir-tests (Files): Ship new file.
30032         * modules/openat-tests: New test.
30033         * tests/test-unlinkat.c: Likewise.
30034
30035         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
30036         * modules/rmdir-errno (Status, Notice): Now obsolete.
30037
30038         rmdir: work around cygwin 1.5.x and mingw bugs
30039         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
30040         * lib/rmdir.c (rmdir): Work around it.
30041         * modules/rmdir (Status, Notice): No longer obsolete.
30042         (Files): Add dos.m4.
30043         (Depends-on): Add unistd.
30044         (configure.ac): Set witnesses.
30045         (License): Relax to LGPLv2+.
30046         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
30047         * modules/unistd (Makefile.am): Substitute witnesses.
30048         * lib/unistd.in.h (rmdir): Declare replacement.
30049         * doc/posix-functions/rmdir.texi (rmdir): Document this.
30050         * modules/rmdir-tests: New tests.
30051         * tests/test-rmdir.c: Likewise.
30052
30053 2009-09-15  Eric Blake  <ebb9@byu.net>
30054
30055         fchdir: improve use of replacement functions
30056         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
30057         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
30058         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
30059         REPLACE_CLOSEDIR.
30060         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
30061         * modules/sys_stat (Makefile.am): Substitute correct witness.
30062         * modules/dirent (Makefile.am): Likewise.
30063         * modules/unistd (Makefile.am): Likewise.
30064         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
30065         * lib/unistd.in.h (dup): Likewise.
30066         * lib/sys_stat.in.h (fstat): Likewise.
30067
30068         maint: ignore gnulib-tool temp files
30069         * .gitignore: Ignore files created during gnulib-tool --test.
30070
30071 2009-09-13  Jim Meyering  <meyering@redhat.com>
30072
30073         posixtm: don't reject a time that specify "60" as the number of seconds
30074         * lib/posixtm.c (posixtime): The code to reject invalid dates
30075         would also reject a time specified with the .60 suffix.
30076         But POSIX allows that, in order to accommodate leap seconds.
30077         So don't reject it.
30078         (main): Adjust tests accordingly.
30079         * modules/posixtm (Depends-on): Add stpcpy.
30080
30081 2009-09-11  Jim Meyering  <meyering@redhat.com>
30082
30083         announce-gen: include [$release_type] in emitted Subject:
30084         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
30085         e.g., [stable] in the emitted Subject: line.
30086
30087 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30088
30089         Remove obsolete macros from several modules.
30090         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
30091         obsolete Autoconf macros with their modern counterparts.
30092         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
30093         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
30094         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
30095         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
30096         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
30097         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
30098         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
30099         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
30100         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
30101         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
30102         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
30103         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
30104         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
30105         * m4/sockets.m4 (gl_SOCKETS): Likewise.
30106         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
30107         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
30108         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
30109         * m4/time_r.m4 (gl_TIME_R): Likewise.
30110         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
30111         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
30112         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
30113
30114         Fix copyright header in build-aux scripts.
30115         * build-aux/git-version-gen: Fix copyright header to match GPLv3
30116         recommendation.
30117         * build-aux/ncftpput-ftp: Likewise.
30118         * build-aux/update-copyright: Likewise.
30119
30120 2009-09-09  Eric Blake  <ebb9@byu.net>
30121
30122         test-link: allow Linux choice of errno
30123         * tests/test-link.c (main): Relax test for alternate error.
30124
30125         strndup: fix improper m4 caching
30126         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
30127         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
30128         (gl_PREREQ_STRNDUP): Delete.
30129         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
30130         * modules/string (Makefile.am): Substitute it.
30131         * lib/string.in.h (strndup): Modernize prototype.
30132
30133         getcwd: port to mingw
30134         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
30135         different from the POSIX assumptions made throughout the getcwd
30136         module; fortunately, the mingw getcwd does not need replacement.
30137         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
30138         * modules/getcwd-tests: New test.
30139         * tests/test-getcwd.c: Likewise.
30140
30141         link: fix platform bugs
30142         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
30143         * lib/link.c (link): Work around them.  Fix related mingw bug.
30144         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
30145         * modules/unistd (Makefile.am): Substitute it.
30146         * lib/unistd.in.h (link): Declare replacement.
30147         * doc/posix-functions/link.texi (link): Document this.
30148         * modules/link (Depends-on): Add strdup-posix, sys_stat.
30149
30150         test-link: consolidate into single C program, test more cases
30151         * tests/test-link.sh: Delete.
30152         * tests/test-link.c: Test more error conditions.  Exposes bugs on
30153         at least Cygwin and Solaris.
30154         * modules/link-tests (Files): Remove unused file.
30155         (Depends-on): Add errno, sys_stat.
30156         (Makefile.am): Simplify.
30157
30158 2009-09-08  Bruno Haible  <bruno@clisp.org>
30159
30160         Work around towlower, towupper bug on mingw.
30161         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
30162         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
30163         * doc/posix-functions/towlower.texi: Mention the mingw bug.
30164         * doc/posix-functions/towupper.texi: Likewise.
30165         Reported by Eric Blake.
30166
30167 2009-09-08  Jim Meyering  <meyering@redhat.com>
30168
30169         build: don't try to run autoheader if we don't use it
30170         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
30171         is not used in configure.ac.
30172
30173 2009-09-08  Eric Blake  <ebb9@byu.net>
30174
30175         euidaccess: fix compilation error
30176         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
30177
30178         rawmemchr: relax license
30179         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
30180         okay.
30181         Reported by Jim Meyering.
30182
30183         mkfifoat: new module
30184         * modules/mkfifoat: New file.
30185         * lib/mkfifoat.c: Likewise.
30186         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
30187         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
30188         * modules/sys_stat (Makefile.am): Use them.
30189         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
30190         * MODULES.html.sh (File system functions): Mention module.
30191         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
30192         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
30193         * modules/mkfifoat-tests: New test.
30194         * tests/test-mkfifoat.c: Likewise.
30195
30196         strchrnul: relax license
30197         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
30198         okay.
30199         Reported by Jim Meyering.
30200
30201 2009-09-08  Eric Blake  <ebb9@byu.net>
30202
30203         fstatat: fix compilation on Solaris
30204         * lib/fstatat.c (includes): Add fcntl.h.
30205         Reported by Pádraig Brady.
30206
30207 2009-09-07  Eric Blake  <ebb9@byu.net>
30208
30209         rename: modernize replacement
30210         * modules/rename (Depends-on): Add stdio.
30211         (configure.ac): Declare witness.
30212         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
30213         stdio take care of replacement.
30214         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
30215         * modules/stdio (Makefile.am): Substitute them.
30216         * lib/stdio.in.h (rename): Declare replacement.
30217         * lib/rename.c (includes): Allow cross-compilation to non-windows
30218         machines.
30219         * doc/posix-functions/rename.texi (rename): Improve
30220         documentation.
30221
30222         stdio: sort witness names
30223         * modules/stdio (Makefile.am): Sort replacements.
30224         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
30225         * lib/stdio.in.h: Likewise.
30226
30227         getcwd: minor cleanups
30228         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
30229         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
30230
30231         openat: provide more convenience names
30232         * modules/faccessat (configure.ac): Add C witness.
30233         * lib/unistd.in.h (readlinkat): Fix typo.
30234         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
30235         convenience wrappers.
30236         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
30237         wrappers in syntax checks.
30238
30239 2009-09-06  Eric Blake  <ebb9@byu.net>
30240
30241         doc: fix comments in recent patches
30242         * lib/faccessat.c: Mention correct function.
30243         * lib/fchmodat.c: Likewise.
30244         * lib/fchownat.c: Likewise.
30245         * lib/symlinkat.c: Likewise.
30246         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
30247         constants.
30248
30249         faccessat, symlinkat: continue cleanup of previous patch
30250         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
30251         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
30252         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
30253         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
30254         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
30255         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
30256         set.
30257
30258 2009-09-06  Bruno Haible  <bruno@clisp.org>
30259
30260         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
30261         (fstatat): Declare if GNULIB_FSTATAT is set.
30262         (mkdirat): Declare if GNULIB_MKDIRAT is set.
30263         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
30264         (unlinkat): Declare if GNULIB_UNLINKAT is set.
30265         * modules/fcntl-h (Files): Remove m4/openat.m4.
30266         * modules/sys_stat (Files): Remove m4/openat.m4.
30267         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
30268         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
30269         * modules/unistd (Files): Remove m4/openat.m4.
30270         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
30271         GNULIB_OPENAT.
30272         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
30273         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
30274         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
30275         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
30276         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
30277         gl_OPENAT_DEFAULTS.
30278         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
30279         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
30280         Don't require gl_OPENAT_DEFAULTS.
30281         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
30282         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
30283         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
30284         (gl_OPENAT_DEFAULTS): Remove macro.
30285
30286 2009-09-06  Bruno Haible  <bruno@clisp.org>
30287
30288         * modules/openat (configure.ac): Remove unneeded witness.
30289
30290 2009-09-06  Bruno Haible  <bruno@clisp.org>
30291
30292         Set errno to ENOSYS when a function is entirely unsupported.
30293         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
30294         EOPNOTSUPP.
30295         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
30296         * modules/chown (Depends-on): Remove errno.
30297
30298 2009-09-06  Bruno Haible  <bruno@clisp.org>
30299
30300         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
30301
30302 2009-09-06  Bruno Haible  <bruno@clisp.org>
30303
30304         * lib/sys_stat.in.h: Fix preprocessor command indentation.
30305
30306 2009-09-06  Ben Pfaff  <blp@gnu.org>
30307             Bruno Haible  <bruno@clisp.org>
30308
30309         Work around a glibc bug in strtok_r.
30310         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
30311         Undefine if UNDEFINE_STRTOK_R is set.
30312         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
30313         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30314         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
30315         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
30316         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
30317         UNDEFINE_STRTOK_R.
30318         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
30319
30320 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
30321
30322         exclude: minor fix
30323         * lib/exclude.c: Include wctype.h
30324
30325 2009-09-06  Akim Demaille  <demaille@gostai.com>
30326
30327         bootstrap: improve error message
30328         * build-aux/bootstrap (find_tool): Upon failure, report the list
30329         of candidates.
30330         Honor the initial value of the envvar.
30331
30332 2009-09-05  Eric Blake  <ebb9@byu.net>
30333
30334         symlinkat: new module
30335         * modules/symlinkat: New file.
30336         * lib/symlinkat.c: Likewise.
30337         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
30338         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
30339         * modules/unistd (Makefile.am): Use them.
30340         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
30341         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
30342         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
30343         * MODULES.html.sh (File system functions): Mention module.
30344         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
30345         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
30346         * modules/symlinkat-tests: New test.
30347         * tests/test-symlinkat.c: Likewise.
30348
30349         test-openat-safer: add more checks
30350         * tests/test-openat-safer.c (main): Check more code paths.
30351
30352 2009-09-05  Jim Meyering  <meyering@redhat.com>
30353
30354         syntax-check: detect unnecessary inclusion of openat.h
30355         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
30356
30357 2009-09-05  Bruno Haible  <bruno@clisp.org>
30358
30359         Support towlower, towupper.
30360         * doc/posix-functions/towlower.texi: Mention module wctype.
30361         * doc/posix-functions/towupper.texi: Likewise.
30362         * lib/wctype.in.h (towlower, towupper): New functions.
30363         * tests/test-wctype.c: Include stdio.h, stdlib.h.
30364         (ASSERT): New macro.
30365         (e): New variable.
30366         (main): Test also towlower, towupper. Test WEOF argument.
30367         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
30368
30369 2009-09-05  Bruno Haible  <bruno@clisp.org>
30370
30371         Fix conversion behaviour when the input is invalid.
30372         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
30373         mark occurring in first pass of indirect conversion.
30374         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
30375         input.
30376         Found by clang's static analyzer.
30377
30378 2009-09-05  Bruno Haible  <bruno@clisp.org>
30379
30380         * tests/test-striconveh.c (main): Test indirect conversion on platforms
30381         where direct conversion is possible.
30382
30383 2009-09-04  Eric Blake  <ebb9@byu.net>
30384
30385         openat: fail with ENOENT on empty name
30386         * lib/openat-proc.c (openat_proc_name): Special-case the empty
30387         buffer.
30388
30389         link-follow: fix logic bug in prior patch
30390         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
30391         reversed sense of yes and no in prior patch.  Avoid confusing
30392         compilation failure with desired semantics.
30393
30394         link-follow: accomodate mingw and cross-compilation
30395         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
30396         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
30397         cross-compilation results to -1, to make linkat easier to
30398         implement when cross-compiling.  Trivially support mingw.
30399         * modules/link-follow (configure.ac): Call new name.
30400         * NEWS: Mention this.
30401
30402 2009-09-03  Eric Blake  <ebb9@byu.net>
30403
30404         faccessat: compile replacement
30405         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
30406         needed.
30407
30408         fts: fix compilation error
30409         * lib/fts.c (includes): Re-add "openat.h", for
30410         openat_needs_fchdir.
30411
30412         faccessat: new module
30413         * modules/faccessat: New file.
30414         * lib/faccessat.c: Likewise.
30415         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
30416         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
30417         * modules/unistd (Makefile.am): Use it.
30418         * lib/unistd.in.h (faccessat): Declare it.
30419         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
30420         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
30421         * MODULES.html.sh (File system functions): Mention it.
30422         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
30423         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
30424
30425         euidaccess: prefer POSIX over non-standard implementation
30426         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
30427         * lib/euidaccess.c (euidaccess): Use it if available.
30428
30429         openat: make template easier to use
30430         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
30431         AT_FUNC_F2 to be undefined.
30432         (VALIDATE_FLAG): New macro; use it to reject bad flags.
30433         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
30434         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
30435         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
30436         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
30437         Likewise.
30438         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
30439         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
30440         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
30441         Likewise.
30442
30443         openat: declare in POSIX headers
30444         * NEWS: Mention this.
30445         * modules/openat (configure.ac): Declare witnesses.
30446         (Depends-on): Add fcntl-h, sys_stat, unistd.
30447         (Include): Mention correct headers.
30448         * modules/fcntl-h (Depends-on): Add link-warning.
30449         (Files): Add openat.m4.
30450         (Makefile.am): Substitute witnesses.
30451         * modules/sys_stat (Files, Makefile.am): Likewise.
30452         * modules/unistd (Files, Makefile.am): Likewise.
30453         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
30454         (gl_OPENAT_DEFAULTS): New macro.
30455         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
30456         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
30457         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
30458         (SYS_STAT_H): Remove unused variable.
30459         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
30460         * lib/fcntl--.h (includes): Remove unneeded header.
30461         * lib/openat-safer.c (includes): Likewise.
30462         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
30463         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
30464         appropriate headers.
30465         (__OPENAT_PREFIX): Delete.
30466         * lib/fcntl.in.h (openat): Provide declaration.
30467         (AT_FDCWD): Fix Solaris bug.
30468         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
30469         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
30470         * lib/fchmodat.c (includes):  Adjust to find declaration.
30471         * lib/fchownat.c (includes): Likewise.
30472         * lib/mkdirat.c (includes): Likewise.
30473         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
30474         still visible.
30475
30476 2009-09-02  Eric Blake  <ebb9@byu.net>
30477
30478         errno: use consistently
30479         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
30480         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
30481         * lib/canonicalize.c (ELOOP): Likewise.
30482         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
30483         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
30484         * lib/lchown.c (EOPNOTSUPP): Likewise.
30485         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
30486         * lib/savewd.c (ESTALE): Likewise.
30487         * lib/settime.c (ENOSYS): Likewise.
30488         * lib/utimens.c (ENOSYS): Likewise.
30489         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
30490         * lib/chdir-safer.c (ELOOP): Likewise.
30491         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
30492         * modules/c-stack (Depends-on): Add errno.
30493         * modules/canonicalize (Depends-on): Likewise.
30494         * modules/chdir-safer (Depends-on): Likewise.
30495         * modules/fdopendir (Depends-on): Likewise.
30496         * modules/inet_ntop (Depends-on): Likewise.
30497         * modules/inet_pton (Depends-on): Likewise.
30498         * modules/lchown (Depends-on): Likewise.
30499         * modules/openat (Depends-on): Likewise.
30500         * modules/savewd (Depends-on): Likewise.
30501         * modules/settime (Depends-on): Likewise.
30502         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
30503
30504         fts: avoid leaking fds
30505         * modules/fts (Depends-on): Add cloexec.
30506         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
30507         flag.
30508
30509         fts: make directory fds more robust
30510         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
30511         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
30512
30513         backupfile, chdir-long, fts, savedir: make safer
30514         * lib/backupfile.c (includes): Use "dirent--.h", since
30515         numbered_backup can write to stderr during readdir.
30516         * lib/savedir.c (includes): Likewise.
30517         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
30518         emulation can write to stderr on failure.
30519         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
30520         * lib/getcwd.c: Document why opendir_safer is unused.
30521         * lib/glob.c: Likewise.
30522         * lib/scandir.c: Likewise.
30523         * lib/openat-proc.c: Likewise, for open_safer.
30524         * modules/backupfile (Depends-on): Add dirent-safer.
30525         * modules/savedir (Depends-on): Likewise.
30526         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
30527         * modules/chdir-long (Depends-on): Add openat-safer.
30528
30529         openat-safer: new module
30530         * modules/openat-safer: New file.
30531         * lib/openat-safer.c: Likewise.
30532         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
30533         * lib/fcntl-safer.h (openat_safer): Declare.
30534         * lib/fcntl--.h (openat): Override.
30535         * MODULES.html.sh (File descriptor based I/O): Mention it.
30536         * lib/openat.h: Add double-inclusion guards.
30537         * lib/openat.c (includes): Only include "fcntl-safer.h", not
30538         "fcntl--.h", so we can implement openat.
30539         * modules/openat-safer-tests: New test.
30540         * tests/test-openat-safer.c: New file.
30541
30542         dirent-safer: new module
30543         * modules/dirent-safer: New file.
30544         * lib/dirent--.h: Likewise.
30545         * lib/dirent-safer.h: Likewise.
30546         * lib/opendir-safer.c: Likewise.
30547         * m4/dirent-safer.m4: Likewise.
30548         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
30549         * modules/dirent-safer-tests: New test.
30550         * tests/test-dirent-safer.c: New file.
30551         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
30552
30553         fdopendir: optimize on mingw
30554         * lib/unistd.in.h (_gl_directory_name): New prototype.
30555         * lib/fchdir.c (_gl_directory_name): Implement it.
30556         (fchdir): Use it to simplify implementation.
30557         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
30558         fchdir, when available, to avoid calling [f]chdir().
30559
30560         fdopendir: split into its own module
30561         * lib/openat.c (fdopendir): Move...
30562         * lib/fdopendir.c: ...into new file.
30563         * modules/fdopendir: New module.
30564         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
30565         * modules/openat (Depends-on): Add fdopendir.
30566         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
30567         fdopendir here.
30568         * modules/savedir (Depends-on): Only need fdopendir, not full
30569         openat.
30570         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
30571         * lib/openat.h (fdopendir): Drop prototype.
30572         * lib/dirent.in.h (fdopendir): Provide prototype.
30573         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
30574         * modules/dirent (Makefile.am): Substitute them.
30575         * MODULES.html.sh (File system functions): Mention it.
30576         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
30577         * modules/fdopendir-tests: New file.
30578         * tests/test-fdopendir.c: Likewise.
30579
30580         fchdir: use more consistent macro convention
30581         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
30582         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
30583         REPLACE_FCHDIR, rather than relying on config.h macros.
30584         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
30585         inside a single make-time REPLACE_FCHDIR block, rather than using
30586         the config.h FCHDIR_REPLACEMENT.
30587         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
30588         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
30589         Manage fstat replacement.
30590         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
30591         REPLACE_FCHDIR.
30592         * modules/sys_stat (Files): Add m4/unistd_h.m4.
30593         (Makefile.am): Substitute REPLACE_FCHDIR.
30594         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
30595         FCHDIR_REPLACEMENT.
30596         * lib/dup-safer.c (dup_safer): Likewise.
30597         * lib/dup2.c (rpl_dup2): Likewise.
30598         * lib/dup3.c (rpl_dup3): Likewise.
30599         * lib/open.c (rpl_open): Likewise.
30600
30601         fchdir: simplify error handling, and support dup3
30602         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
30603         stdbool, malloc-posix, realloc-posix.
30604         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
30605         (ensure_dirs_slot): Return false on allocation failure.
30606         (rpl_dup2): Delete.
30607         (_gl_register_dup): New function.
30608         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
30609         (_gl_register_fd): Close fd on allocation failure.
30610         * lib/fcntl.in.h (_gl_register_fd): Update signature.
30611         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
30612         prototype.
30613         (rpl_dup2_fchdir): Delete prototype.
30614         * lib/open.c (open): Update caller.
30615         * lib/dup2.c (dup2): Track fchdir metadata.
30616         * lib/dup3.c (dup3): Likewise.
30617         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
30618         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
30619
30620 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30621
30622         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
30623         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
30624         don't pass arguments to AC_OUTPUT.
30625
30626 2009-09-02  Bruno Haible  <bruno@clisp.org>
30627
30628         * modules/mkdtemp (License): Relicense under LGPLv2+.
30629         Reported by Paolo Bonzini.
30630
30631 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30632
30633         Replace uses of obsolete autoconf macros in Jim's modules.
30634         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
30635         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
30636         can evoke a warning from autoconf when run with -Wobsolete
30637         enabled.  They were declared obsolete for good reasons (see
30638         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
30639         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
30640         should not continue using the deprecated macros.
30641         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
30642         obsolete Autoconf macros with modern counterparts.
30643         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
30644         * m4/dos.m4 (gl_AC_DOS): Likewise.
30645         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
30646         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
30647         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
30648         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
30649         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
30650         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
30651         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
30652         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
30653         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
30654         Likewise.
30655         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
30656         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
30657         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
30658         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
30659         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
30660         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
30661
30662 2009-09-01  Eric Blake  <ebb9@byu.net>
30663
30664         fchdir: fix off-by-one bug in previous patch
30665         * lib/fchdir.c (rpl_fstat): Use correct bounds.
30666         (_gl_unregister_fd): Delete useless if.
30667
30668 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
30669
30670         maint.mk: sort the list of syntax-check rules
30671         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
30672         easier to get a sense of progress when the rules are run sequentially
30673         and take a long time.
30674
30675 2009-09-01  Simon Josefsson  <simon@josefsson.org>
30676
30677         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
30678         * modules/netinet_in: Likewise.
30679         * modules/sys_file: Likewise.
30680         * modules/sys_ioctl: Likewise.
30681         * modules/sys_select: Likewise.
30682         * modules/sys_socket: Likewise.
30683         * modules/sys_stat: Likewise.
30684         * modules/sys_time: Likewise.
30685         * modules/sys_times: Likewise.
30686         * modules/sys_utsname: Likewise.
30687         * modules/sys_wait: Likewise.
30688
30689 2009-09-01  Jim Meyering  <meyering@redhat.com>
30690
30691         fts: help ensure that return values are not ignored
30692         * lib/fts_.h (__GNUC_PREREQ): Define.
30693         (__attribute_warn_unused_result__): Define.
30694         (fts_children, fts_close, fts_open, fts_read): Declare with
30695         __attribute_warn_unused_result__.
30696
30697         fts: fts_close now fails also when closing a dir file descriptor fails
30698         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
30699         and propagate to caller, along with errno.
30700
30701         announce-gen: correct formatting in --help output
30702         * build-aux/announce-gen (usage): Move the one-line description in
30703         --help output "up", to where it belongs, just after Usage:.
30704
30705 2009-08-31  Eric Blake  <ebb9@byu.net>
30706
30707         fchdir: port to mingw
30708         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
30709         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
30710         opened, then use a substitute.
30711         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
30712         replacement.
30713         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
30714         (_gl_register_fd): No need to check stat if open already filters
30715         all directories.
30716         (fchdir): Fix error condition to match POSIX.
30717         * modules/fchdir (Depends-on): Add sys_stat.
30718         * doc/posix-functions/open.texi (open): Document the limitation.
30719         * modules/fchdir-tests: New file.
30720         * tests/test-fchdir.c: Likewise.
30721
30722         canonicalize: allow cross-testing from cygwin to mingw
30723         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
30724         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
30725         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
30726         Likewise.
30727         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
30728         target does not support symlinks.
30729         * tests/test-canonicalize-lgpl.sh: Likewise.
30730
30731         chown: avoid compilation warning on mingw
30732         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
30733         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
30734         mingw.
30735         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
30736         * modules/chown (Depends-on): Add errno.
30737
30738 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
30739
30740         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
30741         command.
30742
30743 2009-08-31  Jim Meyering  <meyering@redhat.com>
30744
30745         canonicalize: remove useless initialization
30746         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
30747         initialization of local, "end".
30748
30749 2009-08-30  Bruno Haible  <bruno@clisp.org>
30750
30751         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
30752         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
30753         ENOSYS.
30754
30755 2009-08-30  Bruno Haible  <bruno@clisp.org>
30756
30757         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
30758         /usr/xpg4/bin/tr when it exists.
30759         * tests/test-pipe-filter-gi1.sh: Likewise.
30760
30761 2009-08-30  Bruno Haible  <bruno@clisp.org>
30762
30763         Work around deficient /usr/bin/id program on Solaris.
30764         * tests/test-file-has-acl.sh (ID): New variable.
30765         * tests/test-set-mode-acl.sh (ID): Likewise.
30766         * tests/test-copy-acl.sh (ID): Likewise.
30767         * tests/test-copy-file.sh (ID): Likewise.
30768
30769 2009-08-30  Bruno Haible  <bruno@clisp.org>
30770
30771         New module 'xstriconveh'.
30772         * lib/xstriconveh.h: New file.
30773         * lib/xstriconveh.c: New file.
30774         * modules/xstriconveh: New file.
30775
30776 2009-08-30  Bruno Haible  <bruno@clisp.org>
30777
30778         Make it easier to use mem_cd_iconveh.
30779         * lib/striconveh.h (iconveh_t): New type.
30780         (iconveh_open, iconveh_close): New declarations.
30781         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
30782         with a single 'const iconveh_t *' argument.
30783         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
30784         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
30785         with a single 'const iconveh_t *' argument.
30786         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
30787         * tests/test-striconveh.c (main): Update.
30788         * NEWS: Mention the change.
30789
30790 2009-08-30  Bruno Haible  <bruno@clisp.org>
30791
30792         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
30793         problem.
30794
30795 2009-08-30  Bruno Haible  <bruno@clisp.org>
30796
30797         Work around iconv_open problem on Solaris.
30798         * lib/iconv_open-solaris.gperf: New file.
30799         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
30800         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
30801         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
30802         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
30803         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
30804         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
30805
30806 2009-08-29  Jim Meyering  <meyering@redhat.com>
30807
30808         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
30809         * top/maint.mk (cvs-check): Remove target; it was just an alias
30810         to the better-named vc-diff-check.
30811         (maintainer-distcheck): Remove rule.  It was used only from
30812         the (alpha/beta/major) target, and all of its commands but one
30813         were coreutils-specific.
30814         (vc-dist): Remove rule.
30815         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
30816         Run vc-diff-check, not vc-dist.
30817         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
30818
30819 2009-08-27  Bruno Haible  <bruno@clisp.org>
30820
30821         * tests/test-bitrotate.c (main): Remove test that uses a shift count
30822         of 0.
30823
30824 2009-08-27  Bruno Haible  <bruno@clisp.org>
30825
30826         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
30827         compilers.
30828         * doc/func.texi: Document the SunPRO C bug.
30829
30830 2009-08-27  Bruno Haible  <bruno@clisp.org>
30831
30832         Fix link error on Solaris.
30833         * tests/test-parse-duration.c (xstrdup): Remove function.
30834
30835 2009-08-26  Pádraig Brady  <P@draigbrady.com>
30836
30837         ignore-value: handle pointer types, too
30838         * lib/ignore-value.h (__attribute__): Remove definition.
30839         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
30840         of a more concise and more-often effective "(void) i" statement.
30841         (ignore_ptr): New function to suppress warnings from functions that
30842         return pointers, and to make it explicit that one function doesn't
30843         handle all cases.
30844
30845 2009-08-25  Bruno Haible  <bruno@clisp.org>
30846
30847         dup2: work around a Linux bug.
30848         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
30849         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
30850         * doc/posix-functions/dup2.texi: Mention the Linux bug.
30851         Reported by Simon Josefsson.
30852
30853 2009-08-25  Jim Meyering  <meyering@redhat.com>
30854
30855         libguestfs uses gnulib
30856         * users.txt: Add libguestfs.
30857
30858 2009-08-24  Eric Blake  <ebb9@byu.net>
30859
30860         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
30861         * lib/pipe2.c (includes): Add binary-io.h.
30862         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
30863
30864 2009-08-24  Bruno Haible  <bruno@clisp.org>
30865
30866         Tolerate declared but missing accept4 syscall.
30867         * lib/accept4.c (accept4): Invoke original accept4 function first, if
30868         available.
30869         * lib/sys_socket.in.h (accept4): If the function is already present,
30870         override it.
30871         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
30872         * modules/accept4 (Makefile.am): Compile accept4.c always.
30873         Reported by Paolo Bonzini and Eric Blake.
30874
30875 2009-08-23  Bruno Haible  <bruno@clisp.org>
30876
30877         New module 'accept4'.
30878         * lib/sys_socket.in.h (accept4): New declaration.
30879         * lib/accept4.c: New file.
30880         * m4/accept4.m4: New file.
30881         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
30882         GNULIB_ACCEPT4, HAVE_ACCEPT4.
30883         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
30884         HAVE_ACCEPT4.
30885         * modules/accept4: New file.
30886         * doc/glibc-functions/accept4.texi: Mention the new module.
30887
30888 2009-08-24  Jim Meyering  <meyering@redhat.com>
30889
30890         progname: also set global program_invocation_name, when possible
30891         Before this change, a libtool-enabled program that calls glibc's
30892         error function would report the program name as
30893         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
30894         * modules/progname (configure.ac): Check for a declaration of
30895         program_invocation_name.
30896         * lib/progname.c:  Include <errno.h>.
30897         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
30898         Set program_invocation_name.
30899
30900 2009-08-23  Bruno Haible  <bruno@clisp.org>
30901
30902         * lib/dup3.c: Include <string.h>.
30903
30904 2009-08-23  Bruno Haible  <bruno@clisp.org>
30905
30906         * lib/dup3.c (dup3): Test only once whether the system actually exists.
30907         * lib/pipe2.c (pipe2): Likewise.
30908         Suggested by Eric Blake.
30909
30910 2009-08-23  Bruno Haible  <bruno@clisp.org>
30911
30912         Tolerate declared but missing dup3 syscall.
30913         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
30914         * lib/unistd.in.h (dup3): If the function is already present,
30915         override it.
30916         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
30917         * modules/dup3 (Makefile.am): Compile dup3.c always.
30918         Reported by Paolo Bonzini.
30919
30920 2009-08-23  Bruno Haible  <bruno@clisp.org>
30921
30922         Tolerate declared but missing pipe2 syscall.
30923         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
30924         available.
30925         * lib/unistd.in.h (pipe2): If the function is already present,
30926         override it.
30927         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
30928         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
30929         Reported by Paolo Bonzini.
30930
30931 2009-08-23  Bruno Haible  <bruno@clisp.org>
30932
30933         * lib/pipe2.c (pipe2): Move #ifs inside function.
30934
30935 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
30936
30937         quotearg: document limitations of quote_these_too
30938         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
30939         those limitations are created.
30940         * lib/quotearg.h (set_char_quoting): Document that digits and
30941         letters that are special after backslash are not permitted.
30942         (quotearg_char): Cross-reference set_char_quoting documentation.
30943
30944 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
30945
30946         quotearg: implement custom_quoting_style
30947         * lib/quotearg.c: (struct quoting_options): Add left_quote and
30948         right_quote fields.
30949         (set_custom_quoting): New public function.
30950         (quotearg_buffer_restyled): Add left_quote and right_quote
30951         arguments, handle them very much like locale quoting, and update
30952         all uses.
30953         (quotearg_n_custom): New public function.
30954         (quotearg_n_custom_mem): New public function.
30955         (quotearg_custom): New public function.
30956         (quotearg_custom_mem): New public function.
30957         * lib/quotearg.h: Prototype and document new public functions.
30958         (enum quoting_style): For escape_quoting_style and
30959         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
30960         ignored even though they're otherwise like c_quoting_style.
30961         Add custom_quoting_style member and document with comparison to
30962         clocale_quoting_style.
30963         * tests/test-quotearg.c (custom_quotes): New array.
30964         (custom_results): New array.
30965         (main): Extend to test custom quoting.
30966
30967 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
30968
30969         quotearg: fix right quote escaping when it's in quote_these_too
30970         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
30971         quote, be sure to prepend only one backslash.
30972         * tests/test-quotearg.c (use_quote_double_quotes): New function.
30973         (main): Test it.
30974
30975 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
30976
30977         quotearg-tests: test escaping of embedded locale quotes
30978         * tests/test-quotearg.c (struct result_strings): Add member for
30979         new input.
30980         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
30981         (inputs): Add new input.
30982         (results_g): Add expected results.
30983         (flag_results): Likewise.
30984         (locale_results): Likewise.
30985         (compare_strings): Check those.
30986
30987 2009-08-23  Bruno Haible  <bruno@clisp.org>
30988
30989         Tests for module 'dup3'.
30990         * modules/dup3-tests: New file.
30991         * tests/test-dup3.c: New file.
30992
30993         New module 'dup3'.
30994         * lib/unistd.in.h (dup3): New declaration.
30995         * lib/dup3.c: New file.
30996         * m4/dup3.m4: New file.
30997         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
30998         HAVE_DUP3.
30999         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
31000         * modules/dup3: New file.
31001         * doc/glibc-functions/dup3.texi: Mention the new module.
31002
31003 2009-08-23  Bruno Haible  <bruno@clisp.org>
31004
31005         Tweak the dup2 test.
31006         * tests/test-dup2.c (main): Create the test file empty. Verify that an
31007         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
31008         the test file is still empty. Fix argument order of lseek.
31009
31010 2009-08-23  Bruno Haible  <bruno@clisp.org>
31011
31012         Avoid test link errors when the modules getopt-gnu, gettext are used.
31013         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
31014         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31015
31016 2009-08-23  Bruno Haible  <bruno@clisp.org>
31017
31018         Fix getdtablesize() on mingw.
31019         * lib/getdtablesize.c (getdtablesize): Implement differently.
31020         * lib/unistd.in.h (getdtablesize): Improve comment.
31021
31022 2009-08-23  Bruno Haible  <bruno@clisp.org>
31023
31024         New module 'mkostemp'.
31025         Based on Ulrich Drepper's 2007-08-10 change in glibc.
31026         * lib/stdlib.in.h (mksotemp): New declaration.
31027         * lib/mkostemp.c: New file, from glibc with modifications.
31028         * lib/tempname.h (GT_FILE): Remove outdated comment.
31029         (gen_tempname): Add flags argument.
31030         * lib/tempname.c (__GT_BIGFILE): Remove macro.
31031         (__GT_FILE): Map to 1.
31032         (small_open, large_open): Remove macros.
31033         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
31034         * lib/mkstemp.c (mkstemp): Update.
31035         * lib/mkdtemp.c (mkdtemp): Likewise.
31036         * m4/mkostemp.m4: New file.
31037         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
31038         HAVE_MKOSTEMP.
31039         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
31040         HAVE_MKOSTEMP.
31041         * modules/mkostemp: New file, based on modules/mkstemp.
31042         * doc/glibc-functions/mkostemp.texi: Mention the new module.
31043         * NEWS: Mention the change.
31044
31045 2009-08-23  Bruno Haible  <bruno@clisp.org>
31046
31047         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
31048         Reported by Eric Blake.
31049
31050 2009-08-23  Bruno Haible  <bruno@clisp.org>
31051
31052         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
31053         Reported by Eric Blake.
31054
31055 2009-08-23  Bruno Haible  <bruno@clisp.org>
31056
31057         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
31058         * modules/pipe2 (Depends-on): Likewise.
31059
31060 2009-08-23  Eric Blake  <ebb9@byu.net>
31061
31062         fcntl-h: add O_TTY_INIT support
31063         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
31064         * tests/test-fcntl-h.c (o): Test it.
31065         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
31066
31067         fcntl-h: rename from fcntl, in preparation for fcntl(2)
31068         * modules/fcntl: Move <fcntl.h> header replacement...
31069         * modules/fcntl-h: ...to new name, so as not to collide with
31070         like-named function.
31071         * tests/test-fcntl.c: Rename...
31072         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
31073         * modules/fcntl-tests: Rename...
31074         * modules/fcntl-h-tests: ...to this.  Update test file name.
31075         * modules/chdir-long (Depends-on): Update clients.
31076         * modules/chdir-safer (Depends-on): Likewise.
31077         * modules/fcntl-safer (Depends-on): Likewise.
31078         * modules/fts (Depends-on): Likewise.
31079         * modules/mkancesdirs (Depends-on): Likewise.
31080         * modules/mkdir-p (Depends-on): Likewise.
31081         * modules/open (Depends-on): Likewise.
31082         * modules/savewd (Depends-on): Likewise.
31083         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
31084         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
31085
31086 2009-08-22  Bruno Haible  <bruno@clisp.org>
31087
31088         * modules/binary-io (License): Relicense under LGPL.
31089         * modules/pipe2 (License): Likewise.
31090
31091 2009-08-22  Bruno Haible  <bruno@clisp.org>
31092
31093         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
31094         return value.
31095         * lib/pipe-filter-gi.c (filter_init): Likewise.
31096         Reported by Eric Blake.
31097
31098 2009-08-22  Bruno Haible  <bruno@clisp.org>
31099
31100         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
31101         * modules/pipe (Depends-on): Add pipe2.
31102
31103 2009-08-22  Bruno Haible  <bruno@clisp.org>
31104
31105         Tests for module 'pipe2'.
31106         * modules/pipe2-tests: New file.
31107         * tests/test-pipe2.c: New file.
31108
31109         New module 'pipe2'.
31110         * lib/unistd.in.h (pipe2): New declaration.
31111         * lib/pipe2.c: New file.
31112         * m4/pipe2.m4: New file.
31113         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
31114         HAVE_PIPE2.
31115         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
31116         * modules/pipe2: New file.
31117         * doc/glibc-functions/pipe2.texi: Mention the new module.
31118
31119 2009-08-22  Bruno Haible  <bruno@clisp.org>
31120
31121         Reference some new glibc functions.
31122         * doc/glibc-functions/accept4.texi: New file.
31123         * doc/glibc-functions/dup3.texi: New file.
31124         * doc/glibc-functions/mkostemp.texi: New file.
31125         * doc/glibc-functions/pipe2.texi: New file.
31126         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
31127         (Glibc sys/socket.h): Refer to accept4.
31128         (Glibc unistd.h): Refer to dup3, pipe2.
31129         Reported by Eric Blake.
31130
31131 2009-08-22  Jim Meyering  <meyering@redhat.com>
31132             Bruno Haible  <bruno@clisp.org>
31133
31134         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
31135         This makes it so packages using automake-1.11's silent-rules option
31136         can print e.g., a single "GEN    configmake.h" line, rather than
31137         the 30+ statements that perform the job.  If you want to see the
31138         actual commands, you can still run "make V=1".
31139         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
31140         so that make output is abbreviated when those variables are defined
31141         appropriately.
31142         * modules/argz: Likewise.
31143         * modules/arpa_inet: Likewise.
31144         * modules/byteswap: Likewise.
31145         * modules/configmake: Likewise.
31146         * modules/dirent: Likewise.
31147         * modules/errno: Likewise.
31148         * modules/fcntl: Likewise.
31149         * modules/float: Likewise.
31150         * modules/fnmatch: Likewise.
31151         * modules/getopt-posix: Likewise.
31152         * modules/glob: Likewise.
31153         * modules/iconv_open: Likewise.
31154         * modules/inttypes: Likewise.
31155         * modules/localcharset: Likewise.
31156         * modules/locale: Likewise.
31157         * modules/math: Likewise.
31158         * modules/netdb: Likewise.
31159         * modules/netinet_in: Likewise.
31160         * modules/poll: Likewise.
31161         * modules/posix_spawnp-tests: Likewise.
31162         * modules/sched: Likewise.
31163         * modules/search: Likewise.
31164         * modules/selinux-h: Likewise.
31165         * modules/signal: Likewise.
31166         * modules/spawn: Likewise.
31167         * modules/stdarg: Likewise.
31168         * modules/stdbool: Likewise.
31169         * modules/stddef: Likewise.
31170         * modules/stdint: Likewise.
31171         * modules/stdio: Likewise.
31172         * modules/stdlib: Likewise.
31173         * modules/string: Likewise.
31174         * modules/strings: Likewise.
31175         * modules/sys_file: Likewise.
31176         * modules/sys_ioctl: Likewise.
31177         * modules/sys_select: Likewise.
31178         * modules/sys_socket: Likewise.
31179         * modules/sys_stat: Likewise.
31180         * modules/sys_time: Likewise.
31181         * modules/sys_times: Likewise.
31182         * modules/sys_utsname: Likewise.
31183         * modules/sys_wait: Likewise.
31184         * modules/sysexits: Likewise.
31185         * modules/time: Likewise.
31186         * modules/unistd: Likewise.
31187         * modules/wchar: Likewise.
31188         * modules/wctype: Likewise.
31189
31190 2009-08-22  Jim Meyering  <meyering@redhat.com>
31191
31192         announce-gen: detect write failure
31193         * build-aux/announce-gen: Add Coda at end.
31194         Remove equivalent-but-more-verbose block at top.
31195
31196 2009-08-19  Akim Demaille  <demaille@gostai.com>
31197
31198         bootstrap: --help to stdout.
31199         * bootstrap (usage): Don't send --help to stderr.
31200         Use a here doc instead of a long string.
31201
31202 2009-08-21  Eric Blake  <ebb9@byu.net>
31203
31204         test-popen-safer: split from test-popen
31205         * tests/test-popen.c (main): Move...
31206         * tests/test-popen.h: ...into new file.
31207         * tests/test-popen-safer2.c: New file.
31208         * modules/popen-tests (Files): Add test-popen.h.
31209         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
31210         Suggested by Bruno Haible.
31211
31212         test-fcntl-safer: split from test-open
31213         * tests/test-open.c (main): Move...
31214         * tests/test-open.h: ...into new file.
31215         * tests/test-fcntl-safer.c: New file.
31216         * modules/open-tests (Files): Add test-open.h.
31217         * modules/fcntl-safer-tests: New file.
31218         Suggested by Bruno Haible.
31219
31220         test-fopen-safer: split from test-fopen
31221         * tests/test-fopen.c (main): Move...
31222         * tests/test-fopen.h: ...into new file.
31223         * tests/test-fopen-safer.c: New file.
31224         * modules/fopen-tests (Files): Add test-fopen.h.
31225         * modules/fopen-safer-tests: New file.
31226         Suggested by Bruno Haible.
31227
31228 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
31229
31230         popen-safer: test O_CLOEXEC at run-time.
31231         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
31232
31233 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
31234
31235         fcntl: move more flags to the header
31236         * lib/cloexec.c: Do not define FD_CLOEXEC here.
31237         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
31238         * lib/fcntl.in.h: Do both things here.
31239
31240 2009-08-21  Jim Meyering  <meyering@redhat.com>
31241
31242         consistently remove $@-t before redirecting to it
31243         * modules/argz: Remove $@-t and $@ before redirecting to the former.
31244         * modules/alloca-opt: Likewise.
31245         * modules/byteswap: Likewise.
31246         * modules/fnmatch: Likewise.
31247         * modules/getopt-posix: Likewise.
31248         * modules/glob: Likewise.
31249         * modules/poll: Likewise.
31250         * modules/posix_spawnp-tests: Likewise.
31251         * modules/sys_socket: Likewise.
31252         * modules/sysexits: Likewise.
31253
31254 2009-08-21  Eric Blake  <ebb9@byu.net>
31255
31256         popen: simplify access to original popen
31257         * lib/popen.c (rpl_popen): No need to worry about popen being a
31258         macro.
31259         Reported by Bruno Haible.
31260
31261 2009-08-20  Eric Blake  <ebb9@byu.net>
31262
31263         build: avoid some compiler warnings
31264         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
31265         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
31266         type.
31267         (new_exclude_segment, excluded_file_pattern_p)
31268         (excluded_file_name_p): Reduce scope.
31269         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
31270         old-style declaration.
31271
31272 2009-08-20  Simon Josefsson  <simon@josefsson.org>
31273
31274         * tests/test-exclude1.sh: Handle Windows EOL.
31275         * tests/test-exclude2.sh: Likewise.
31276         * tests/test-exclude3.sh: Likewise.
31277         * tests/test-exclude4.sh: Likewise.
31278         * tests/test-exclude5.sh: Likewise.
31279         * tests/test-exclude6.sh: Likewise.
31280         * tests/test-exclude7.sh: Likewise.
31281
31282 2009-08-19  Akim Demaille  <demaille@gostai.com>
31283
31284         bootstrap: find sha1sum when named gsha1sum.
31285         * bootstrap (find_tool): New.
31286         ($SHA1SUM): New.
31287         Use it.
31288
31289 2009-08-20  Jim Meyering  <meyering@redhat.com>
31290
31291         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
31292         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
31293         expression that converts "." in a file name to "\." in the resulting
31294         regexp.  Start with a dummy statement, so that prior shell variable
31295         definitions are expanded portably.  Reported by Simon Josefsson.
31296
31297 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
31298
31299         Fix polling for writeability of a screen buffer.
31300         * lib/poll.c: Distinguish input and screen buffers for the
31301         Win32 implementation.
31302         * lib/select.c: Likewise.
31303
31304 2009-08-19  Eric Blake  <ebb9@byu.net>
31305
31306         popen-safer: prevent popen from clobbering std descriptors
31307         * modules/popen-safer: New file.
31308         * lib/popen-safer.c: Likewise.
31309         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
31310         * lib/stdio--.h (popen): Provide override.
31311         * lib/stdio-safer.h (popen_safer): Provide declaration.
31312         * tests/test-popen.c (includes): Partially test this.
31313         * modules/popen-safer-tests: New file, for more tests.
31314         * tests/test-popen-safer.c: Likewise.
31315         * MODULES.html.sh (file stream based Input/Output): Mention it.
31316
31317         tests: test some of the *-safer modules
31318         * modules/fopen-safer (Depends-on): Add fopen.
31319         * modules/fcntl-safer (Depends-on): Add fcntl.
31320         * modules/stdlib-safer (Depends-on): Add stdlib.
31321         (configure.ac): Set indicator.
31322         * modules/unistd-safer (configure.ac): Likewise.
31323         * modules/tmpfile-safer (configure.ac): Likewise.
31324         (Depends-on): Add tmpfile.
31325         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
31326         active.
31327         * tests/test-fopen.c (includes): Test safer versions when they are
31328         in use.
31329         * tests/test-open.c (includes): Likewise.
31330
31331         popen: fix cygwin 1.5 bug when stdin closed
31332         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
31333         * modules/popen: New file.
31334         * modules/popen-tests: Likewise.
31335         * tests/test-popen.c: Likewise.
31336         * m4/popen.m4: Likewise.
31337         * lib/popen.c: Likewise.
31338         * lib/stdio.in.h (popen): New declaration.
31339         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
31340         * modules/stdio (Makefile.am): Likewise.
31341         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
31342
31343 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
31344
31345         maint.mk: give full control over update-copyright exclusions
31346         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
31347         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
31348         (update-copyright): Don't force inclusion of top-level
31349         ChangeLog.  Don't force exclusion of all COPYING files, but make
31350         them the default exclusion instead.
31351
31352 2009-08-16  Bruno Haible  <bruno@clisp.org>
31353
31354         Fix test failures on Solaris 10.
31355         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
31356         tests when Solaris iconv() is used.
31357         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
31358         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
31359         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
31360         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
31361         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
31362
31363 2009-08-16  Bruno Haible  <bruno@clisp.org>
31364
31365         Fix test failures on Solaris 10.
31366         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
31367         'tr' program and pass it as first argument.
31368         * tests/test-pipe-filter-gi1.sh: Likewise.
31369         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
31370         program as first argument.
31371         * tests/test-pipe-filter-gi1.c (main): Likewise.
31372
31373 2009-08-16  Eric Blake  <ebb9@byu.net>
31374
31375         fpurge: fix previous commits
31376         * modules/fpurge (Makefile.am): Make replacement conditional,
31377         partially reverting 2007-04-29 change; missed in previous
31378         attempt.
31379         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
31380         is missing.
31381
31382 2009-08-16  Bruno Haible  <bruno@clisp.org>
31383
31384         Clarify fpurge's effect on the file position.
31385         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
31386         * tests/test-fpurge.c (main): Make a second pass for checking the file
31387         position.
31388
31389 2009-08-16  Bruno Haible  <bruno@clisp.org>
31390
31391         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
31392         declaration of fpurge is missing.
31393         * tests/test-fpurge.c (main): Check that the file has not more contents
31394         than expected. Close the file before removing it.
31395
31396 2009-08-15  Eric Blake  <ebb9@byu.net>
31397
31398         fpurge: don't wrap working cygwin implementation
31399         * lib/fpurge.c (fpurge): Fix comment typo.
31400         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
31401         1.7 to avoid replacement.
31402         * tests/test-fpurge.c (main): Enhance test.
31403
31404 2009-08-15  Eric Blake  <ebb9@byu.net>
31405         and Jim Meyering  <meyering@redhat.com>
31406
31407         test-update-copyright: skip if perl is insufficient
31408         * tests/test-update-copyright.sh: Failure to run maintainer tool
31409         should not cause testsuite failure on cygwin 1.5.
31410
31411 2009-08-14  Eric Blake  <ebb9@byu.net>
31412
31413         doc: mention more functions added in cygwin 1.7.0
31414         * doc/posix-headers/limits.texi (limits.h): Update for recent
31415         cygwin additions.
31416         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
31417         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
31418         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
31419         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
31420         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
31421
31422 2009-08-14  Eric Blake  <ebb9@byu.net>
31423
31424         maint.mk: simplify update-copyright rule
31425         * top/maint.mk (update-copyright-local): Delete, and document how
31426         to do it in cfg.mk instead.
31427         (update-copyright-exclude-regexp): Delete, and document how to do
31428         it in .x-update-copyright instead.
31429         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
31430         exclude ChangeLog.
31431
31432 2009-08-14  Bruno Haible  <bruno@clisp.org>
31433
31434         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
31435
31436 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
31437
31438         maint.mk: support update-copyright-env
31439         * top/maint.mk (update-copyright-env): Define place-holder.
31440         (update-copyright): Expand $(update-copyright-env) before
31441         invoking update-copyright.
31442
31443 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
31444
31445         update-copyright: implement forced reformatting
31446         * build-aux/update-copyright: Implement and document
31447         UPDATE_COPYRIGHT_FORCE.
31448         * tests/test-update-copyright.sh: Test it.
31449
31450 2009-08-14  Eric Blake  <ebb9@byu.net>
31451         and Bruno Haible  <bruno@clisp.org>
31452
31453         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
31454         * tests/test-locale.c: Revert previous patch related to NULL.
31455         * tests/test-stdio.c: Likewise.
31456         * tests/test-stdlib.c: Likewise.
31457         * tests/test-string.c: Likewise.
31458         * tests/test-unistd.c: Likewise.
31459         * modules/time-tests (Depends-on): Add verify.
31460         * modules/wchar-tests (Depends-on): Likewise.
31461         * tests/test-time.c: Test for NULL compliance.
31462         * tests/test-wchar.c: Likewise.
31463         * modules/locale (Depends-on): Add stddef.
31464         * modules/stdio (Depends-on): Likewise.
31465         * modules/stdlib (Depends-on): Likewise.
31466         * modules/string (Depends-on): Likewise.
31467         * modules/time (Depends-on): Likewise.
31468         * modules/unistd (Depends-on): Likewise.
31469         * modules/wchar (Depends-on): Likewise.
31470         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
31471         * lib/stdlib.in.h (includes): Likewise.
31472         * lib/string.in.h (includes): Likewise.
31473         * lib/time.in.h (includes): Likewise.
31474         * lib/unistd.in.h (includes): Likewise.
31475         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
31476         replaced.
31477         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
31478         * m4/stddef_h.m4: New file.
31479         * modules/stddef: Likewise.
31480         * lib/stddef.in.h: Likewise.
31481         * modules/stddef-tests: Likewise.
31482         * tests/test-stddef.c: Likewise.
31483         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
31484         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
31485         * doc/posix-headers/locale.texi (locale.h): Likewise.
31486         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
31487         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
31488         * doc/posix-headers/string.texi (string.h): Likewise.
31489         * doc/posix-headers/time.texi (time.h): Likewise.
31490         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
31491         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
31492
31493 2009-08-14  Eric Blake  <ebb9@byu.net>
31494
31495         doc: improve git diff of texinfo files
31496         * .gitattributes: Add rule for *.texi files, with hint on how to
31497         use it.
31498         Copied from m4, and based on a report by Bruno Haible.
31499
31500 2009-08-14  Bruno Haible  <bruno@clisp.org>
31501
31502         Disable multithread support by default on Cygwin 1.5.x for real.
31503         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
31504
31505 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
31506
31507         update-copyright: much ado about intervals
31508         * build-aux/update-copyright: Implement and document
31509         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
31510         of copyright year intervals.
31511         Also, document UPDATE_COPYRIGHT_YEAR.
31512         * tests/test-update-copyright.sh: Test it.
31513
31514         update-copyright: convert 2-digit to 4-digit years
31515         * build-aux/update-copyright: Implement and document.
31516         * tests/test-update-copyright.sh: Update.
31517
31518 2009-08-14  Jim Meyering  <meyering@redhat.com>
31519
31520         test-exclude: avoid coreutils "make check" failure
31521         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
31522         just as in test-argmatch.c.
31523
31524 2009-08-13  Eric Blake  <ebb9@byu.net>
31525
31526         test-dup2: fix bad assumption
31527         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
31528         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
31529
31530         test-version-etc: fix CRLF portability issue
31531         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
31532         recognize \r.
31533         * tests/test-argp-version-etc-1.sh: Likewise.
31534
31535         getopt: update client modules
31536         * modules/argp (Depends-on): Use getopt-gnu.
31537         * modules/git-merge-changelog (Depends-on): Likewise.
31538         * modules/long-options (Depends-on): Likewise.
31539         * modules/xstrtol (Depends-on): Likewise.
31540
31541 2009-08-13  Simon Josefsson  <simon@josefsson.org>
31542
31543         * tests/test-version-etc.sh: Don't fail on different
31544         project/version.  Don't fail on CRLF differences.  Rewrite to use
31545         multiple -e instead of multiple sed forks, suggested by Eric Blake
31546         <ebb9@byu.net>.
31547         * tests/test-argp-version-etc-1.sh: Likewise.
31548
31549 2009-08-13  Simon Josefsson  <simon@josefsson.org>
31550
31551         * tests/test-version-etc.sh: Don't fail on different
31552         project/version.
31553
31554 2009-08-12  Bruno Haible  <bruno@clisp.org>
31555
31556         Tests for modules 'getopt-posix', 'getopt-gnu'.
31557         * modules/getopt-posix-tests: New file.
31558         * tests/test-getopt.c: New file.
31559         * tests/test-getopt.h: New file.
31560         * tests/test-getopt_long.h: New file.
31561
31562         New modules 'getopt-posix', 'getopt-gnu'.
31563         * modules/getopt-gnu: New file, renamed from modules/getopt.
31564         * modules/getopt-posix: New file.
31565         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
31566         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
31567         (gl_GETOPT): Remove macro.
31568         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
31569         Disable the test against BSD systems that declare optreset. Test
31570         against mingw bug. Test against lack of support of optional arguments
31571         on many platforms.
31572         * doc/glibc-headers/getopt.texi: Update module name and list of
31573         relevant platforms.
31574         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
31575         'getopt-gnu' and more portability problems.
31576         * NEWS: Mention the changes.
31577
31578 2009-08-12  Bruno Haible  <bruno@clisp.org>
31579
31580         Ensure that optarg etc. get declared by <unistd.h>.
31581         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
31582         AC_USE_SYSTEM_EXTENSIONS.
31583         * modules/getopt (Depends-on): Add 'extensions'.
31584
31585 2009-08-12  Bruno Haible  <bruno@clisp.org>
31586
31587         Avoid test link errors.
31588         * modules/pipe-filter-ii-tests (Makefile.am): Define
31589         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
31590         * modules/pipe-filter-gi-tests (Makefile.am): Define
31591         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
31592         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31593
31594 2009-08-12  Bruno Haible  <bruno@clisp.org>
31595
31596         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
31597         gl_GETOPT_SUBSTITUTE before.
31598         (gl_GETOPT): Use it.
31599         * m4/argp.m4 (gl_ARGP): Update.
31600         Reported by Sergey Poznyakoff.
31601
31602         * m4/getopt.m4: Reorder macros.
31603         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
31604         (gl_GETOPT_SUBSTITUTE): Remove macro.
31605
31606 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
31607
31608         Minor improvement in gitlog-to-changelog
31609
31610         * build-aux/gitlog-to-changelog: New option `--format' makes
31611         output format string configurable.
31612
31613 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
31614
31615         Optimize exclude: use hash tables for non-wildcard patterns.
31616
31617         * lib/exclude.c: Include hash.h and mbuiter.h
31618         (struct exclude_pattern, exclude_segment): New data types.
31619         (struct exclude): Rewrite.
31620         (fnmatch_pattern_has_wildcards): New function.
31621         (new_exclude_segment, free_exclude_segment): New functions.
31622         (excluded_file_pattern_p, excluded_file_name_p): New functions.
31623         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
31624         * lib/exclude.h (is_fnmatch_pattern): New prototype.
31625         * modules/exclude: Depend on hash and mbuiter.
31626
31627         * modules/exclude-tests: New file.
31628         * tests/test-exclude.c: New file.
31629         * tests/test-exclude1.sh: New file.
31630         * tests/test-exclude2.sh: New file.
31631         * tests/test-exclude3.sh: New file.
31632         * tests/test-exclude4.sh: New file.
31633         * tests/test-exclude5.sh: New file.
31634         * tests/test-exclude6.sh: New file.
31635         * tests/test-exclude7.sh: New file.
31636
31637 2009-08-12  Bruno Haible  <bruno@clisp.org>
31638
31639         Ensure that getopt() gets declared by <unistd.h>.
31640         * lib/unistd.in.h: Conditionally include getopt.h.
31641         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
31642         Set GNULIB_UNISTD_H_GETOPT.
31643         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31644         GNULIB_UNISTD_H_GETOPT.
31645         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
31646
31647 2009-08-12  Bruno Haible  <bruno@clisp.org>
31648
31649         Clarify logic.
31650         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
31651         gl_replace_getopt instead of GETOPT_H.
31652
31653 2009-08-12  Bruno Haible  <bruno@clisp.org>
31654
31655         * m4/getopt.m4: Add comments.
31656
31657 2009-08-12  Bruno Haible  <bruno@clisp.org>
31658
31659         Disable multithread support by default on Cygwin 1.5.x.
31660         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
31661         set gl_use_threads=no if not specified otherwise.
31662
31663 2009-08-11  Bruno Haible  <bruno@clisp.org>
31664
31665         Avoid compilation error on NetBSD 5.0.
31666         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
31667         * tests/test-stdio.c: Likewise.
31668         * tests/test-stdlib.c: Likewise.
31669         * tests/test-string.c: Likewise.
31670         * tests/test-unistd.c: Likewise.
31671         Reported by Greg Troxel <gdt@ir.bbn.com>
31672         at <https://savannah.gnu.org/support/?106973>.
31673
31674 2009-08-11  Bruno Haible  <bruno@clisp.org>
31675
31676         * modules/dup2-tests (Depends-on): Remove close.
31677
31678         Undo 2009-07-19 commit.
31679         * modules/acl-tests (Depends-on): Remove close.
31680         * modules/binary-io-tests (Depends-on): Likewise.
31681         * modules/closein-tests (Depends-on): Likewise.
31682         * modules/flock-tests (Depends-on): Likewise.
31683         * modules/fsync-tests (Depends-on): Likewise.
31684         * modules/lseek-tests (Depends-on): Likewise.
31685         * modules/pipe-tests (Depends-on): Likewise.
31686         * modules/posix_spawn-tests (Depends-on): Likewise.
31687         * modules/posix_spawnp-tests (Depends-on): Likewise.
31688         * modules/stat-time-tests (Depends-on): Likewise.
31689         * modules/yesno-tests (Depends-on): Likewise.
31690
31691 2009-08-10  Bruno Haible  <bruno@clisp.org>
31692
31693         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
31694
31695 2009-08-10  Bruno Haible  <bruno@clisp.org>
31696
31697         Fix a gcc warning.
31698         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
31699
31700 2009-08-10  Bruno Haible  <bruno@clisp.org>
31701
31702         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
31703         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
31704         not only the first time.
31705         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
31706         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
31707         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
31708         is 1, not only the the first time.
31709
31710 2009-08-10  Bruno Haible  <bruno@clisp.org>
31711
31712         Make it possible to use module 'gethostname' without module 'close'.
31713         * lib/unistd.in.h (close): Evoke a link error only if
31714         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
31715         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31716         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31717         * modules/unistd (Makefile.am): Substitute
31718         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31719         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
31720         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
31721         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
31722         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31723         * modules/sys_ioctl (Makefile.am): Substitute
31724         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31725         * modules/socket (configure.ac): On native Windows, set
31726         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
31727         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31728         Reported by Sam Steingold <sds@gnu.org>.
31729
31730 2009-08-10  Bruno Haible  <bruno@clisp.org>
31731
31732         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
31733         * modules/ioctl (configure.ac): Likewise.
31734
31735 2009-08-10  Bruno Haible  <bruno@clisp.org>
31736
31737         Avoid collision between gnulib wrapper and libintl wrapper.
31738         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
31739         already defined in intl/printf.c.
31740         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
31741         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
31742
31743 2009-08-09  Bruno Haible  <bruno@clisp.org>
31744
31745         Make <sys/select.h> really self-contained, also on Solaris 10.
31746         * lib/sys_select.in.h: Include <string.h>.
31747         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
31748         Solaris 10 problem.
31749         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
31750         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
31751         Reported by Jim Meyering.
31752
31753 2009-08-09  Bruno Haible  <bruno@clisp.org>
31754
31755         Avoid warnings from 'aclocal' that are due to a use of macro name
31756         AM_XGETTEXT_OPTION that is not defined in automake.
31757         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
31758         automake.
31759         * modules/error (configure.ac): Likewise.
31760         * modules/propername (configure.ac): Likewise.
31761         * modules/vasprintf (configure.ac): Likewise.
31762         * modules/verror (configure.ac): Likewise.
31763         * modules/xprintf (configure.ac): Likewise.
31764         * modules/xvasprintf (configure.ac): Likewise.
31765
31766 2009-08-08  Bruno Haible  <bruno@clisp.org>
31767
31768         Avoid compilation error in C++ mode.
31769         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
31770         Reported by Sam Steingold <sds@gnu.org>.
31771
31772 2009-08-08  Bruno Haible  <bruno@clisp.org>
31773
31774         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
31775         for the various Unix platforms.
31776         * doc/posix-headers/limits.texi: Update platforms list regarding
31777         HOST_NAME_MAX.
31778         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31779
31780 2009-08-07  Jim Meyering  <meyering@redhat.com>
31781
31782         selinux-at: fix typo in a comment
31783         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
31784         Spotted by Paolo Bonzini.
31785
31786         selinux-at: remove redundant m4 code, add documentation
31787         * modules/selinux-at (configure.ac): Remove redundant code.
31788         LIB_SELINUX is already set via the dependent module, selinux-h.
31789         (Include): Add quotes around selinux-at.h.
31790         * lib/selinux-at.h: Add documentation.
31791         Reported by Bruno Haible in
31792         http://marc.info/?l=gnulib-bug&m=124958988300749
31793
31794 2009-08-07  Bruno Haible  <bruno@clisp.org>
31795
31796         Avoid link error on MacOS X 10.3 and 10.4.
31797         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
31798         on non-ELF systems.
31799         * lib/argp-pv.c (argp_program_version): Likewise.
31800         Reported by Simon Josefsson.
31801
31802 2009-08-07  Simon Josefsson  <simon@josefsson.org>
31803
31804         * tests/test-version-etc.sh: Use $EXEEXT.
31805
31806 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
31807
31808         update-copyright: update documentation to point to maint.mk
31809         * build-aux/update-copyright: Here.
31810
31811 2009-08-06  Jim Meyering  <meyering@redhat.com>
31812
31813         maint.mk: support update-copyright-local
31814         * top/maint.mk (update-copyright-local): Define place-holder.
31815         (update-copyright): Depend on $(update-copyright-local).
31816
31817 2009-08-06  Jim Meyering  <meyering@redhat.com>
31818
31819         selinux-at: new module
31820         Initially written for coreutils, this module will soon be
31821         used by findutils, too.
31822         * MODULES.html.sh [Misc]: Add selinux-at.
31823         * lib/selinux-at.h: New file, from coreutils.
31824         * lib/selinux-at.c: Likewise.
31825         * modules/selinux-at: Likewise.
31826         (License): Change from LGPL to GPL, since it depends
31827         on the GPL'd openat module.
31828
31829         doc: update README
31830         * README: Remove references to cogito.
31831         Remove cvs-repo-updating instructions from 2007.
31832         Don't imply that CVS is better if you have limited disk space.
31833
31834 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31835
31836         update-copyright: support C-style comments
31837         * build-aux/update-copyright: Implement and document.
31838         * tests/test-update-copyright.sh: Test.
31839
31840 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31841
31842         update-copyright: support omitted "(C)"
31843         * build-aux/update-copyright: Implement and document.  Also,
31844         allow variable whitespace before "(C)".
31845         * tests/test-update-copyright.sh: Test.
31846
31847 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31848
31849         update-copyright: don't trip on non-FSF copyright statements
31850         * build-aux/update-copyright: Fix so that the first correctly
31851         formatted FSF copyright statement is recognized no matter what
31852         appears before it.  Update documentation.
31853         * tests/test-update-copyright.sh: Test that.
31854
31855 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31856
31857         update-copyright: clean up code a little
31858         * build-aux/update-copyright: Append "_re" to the name of any
31859         variable holding a regular expression.
31860         Replace "old" and "new" with "stmt" in variable names.
31861         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
31862         handled correctly.
31863         Format code more consistently.
31864
31865 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31866
31867         update-copyright-tests: improve portability
31868         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
31869         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
31870
31871 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
31872
31873         update-copyright: support @copyright{} and &copy;
31874         * build-aux/update-copyright: Implement and document.
31875         * tests/test-update-copyright.sh: Test.
31876
31877 2009-08-04  Jim Meyering  <meyering@redhat.com>
31878
31879         update-copyright-tests: correctly test EOL=\r\n handling
31880         * tests/test-update-copyright.sh: Put \r at the end of some lines
31881         for the dos-eol tests.  Based on a patch by Joel E. Denny.
31882
31883         maint.mk: make update-copyright exclusion list more configurable
31884         * top/maint.mk (update-copyright): Default to excluding COPYING,
31885         but allow an override, in case someone does want to update that file.
31886
31887         maint.mk: don't update copyright date in COPYING
31888         * top/maint.mk (update-copyright): Exclude COPYING.
31889
31890         maint.mk: add a copyright-updating rule
31891         * top/maint.mk (update-copyright): New rule.
31892         Derived from coreutils/Makefile.am.
31893
31894         update-copyright: rename some variables
31895         * build-aux/update-copyright: Rename a few variables for clarity.
31896         Tweak syntax.  List Joel E. Denny as coauthor.
31897
31898 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
31899
31900         update-copyright: fix bug for 2-digit last year and add tests
31901         * build-aux/update-copyright: Fix bug.
31902         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
31903         specified.
31904         * modules/update-copyright-tests: New
31905         * tests/test-update-copyright.sh: New.
31906
31907 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
31908
31909         update-copyright: handle leading tabs in line prefix
31910         * build-aux/update-copyright: Count leading tabs as 8 spaces
31911         when computing margin.  This helps with the formatting of
31912         ChangeLogs, for example.
31913         Fix documentation a little.
31914
31915 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
31916
31917         update-copyright: support EOL=\r\n
31918         * build-aux/update-copyright: Implement that.
31919
31920 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
31921
31922         update-copyright: automatically format copyright statements
31923         * build-aux/update-copyright: Implement that.
31924         Also, be a little more predictable and safer by always failing
31925         when the full copyright format is not perfectly recognized as an
31926         unbroken whole.  Discussed at
31927         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
31928         Rewrite documentation.
31929
31930 2009-08-03  Bruno Haible  <bruno@clisp.org>
31931
31932         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
31933
31934 2009-08-02  Bruno Haible  <bruno@clisp.org>
31935
31936         Tests for module 'uname'.
31937         * modules/uname-tests: New file.
31938         * tests/test-uname.c: New file.
31939
31940         New module 'uname'.
31941         * lib/uname.c: New file.
31942         * m4/uname.m4: New file.
31943         * modules/uname: New file.
31944         * doc/posix-functions/uname.texi: Mention the new module.
31945
31946 2009-08-02  Bruno Haible  <bruno@clisp.org>
31947
31948         Tests for module 'sys_utsname'.
31949         * modules/sys_utsname-tests: New file.
31950         * tests/test-sys_utsname.c: New file.
31951
31952         New module 'sys_utsname'.
31953         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
31954         * m4/sys_utsname_h.m4: New file.
31955         * modules/sys_utsname: New file.
31956         * doc/posix-headers/sys_utsname.texi: Mention the new module.
31957
31958 2009-08-02  Bruno Haible  <bruno@clisp.org>
31959
31960         Implicitly initialize the sockets library.
31961         * lib/gethostname.c: Include sockets.h.
31962         (rpl_gethostname): Invoke gl_sockets_startup.
31963         * lib/socket.c: Include sockets.h.
31964         (rpl_socket): Invoke gl_sockets_startup.
31965         * modules/gethostname (Depends-on): Add sockets.
31966         * modules/socket (Depends-on): Likewise.
31967         * tests/test-poll.c: Don't include sockets.h.
31968         (main): Don't invoke gl_sockets_startup.
31969         * tests/test-select.c: Don't include sockets.h.
31970         (main): Don't invoke gl_sockets_startup.
31971
31972 2009-08-02  Bruno Haible  <bruno@clisp.org>
31973
31974         Allow multiple calls to gl_sockets_startup.
31975         * lib/sockets.c (initialized_sockets_version): New variable.
31976         (gl_sockets_startup): Do nothing if already called for this or a higher
31977         version.
31978         (gl_sockets_cleanup): Reset initialized_sockets_version.
31979
31980 2009-08-03  Simon Josefsson  <simon@josefsson.org>
31981
31982         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
31983         different project/version.
31984
31985 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
31986             Bruno Haible  <bruno@clisp.org>
31987
31988         Tests for module 'pipe-filter-gi'.
31989         * modules/pipe-filter-gi-tests: New file.
31990         * tests/test-pipe-filter-gi1.sh: New file.
31991         * tests/test-pipe-filter-gi1.c: New file.
31992         * tests/test-pipe-filter-gi2.sh: New file.
31993         * tests/test-pipe-filter-gi2-main.c: New file.
31994         * tests/test-pipe-filter-gi2-child.c: New file.
31995
31996         New module 'pipe-filter-gi'.
31997         * lib/pipe-filter-gi.c: New file.
31998         * modules/pipe-filter-gi: New file.
31999
32000 2009-08-02  Bruno Haible  <bruno@clisp.org>
32001             Paolo Bonzini  <bonzini@gnu.org>
32002
32003         Tests for module 'pipe-filter-ii'.
32004         * modules/pipe-filter-ii-tests: New file.
32005         * tests/test-pipe-filter-ii1.sh: New file.
32006         * tests/test-pipe-filter-ii1.c: New file.
32007         * tests/test-pipe-filter-ii2.sh: New file.
32008         * tests/test-pipe-filter-ii2-main.c: New file.
32009         * tests/test-pipe-filter-ii2-child.c: New file.
32010
32011         New module 'pipe-filter-ii'.
32012         * lib/pipe-filter.h: New file.
32013         * lib/pipe-filter-ii.c: New file.
32014         * lib/pipe-filter-aux.h: New file.
32015         * modules/pipe-filter-ii: New file.
32016
32017 2009-08-02  Simon Josefsson  <simon@josefsson.org>
32018
32019         * lib/gc-libgcrypt.c: Change copyright to FSF.
32020         * lib/gc-gnulib.c: Likewise.
32021
32022 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
32023
32024         * lib/gethostname.c: Include limits.h.
32025
32026 2009-08-02  Simon Josefsson  <simon@josefsson.org>
32027             Bruno Haible  <bruno@clisp.org>
32028
32029         Ensure HOST_NAME_MAX as part of the gethostname module.
32030         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
32031         define also HOST_NAME_MAX.
32032         * tests/test-gethostname.c: Include <limits.h>.
32033         (main): Check also HOST_NAME_MAX.
32034         * doc/posix-headers/limits.texi: Document the mingw problem.
32035
32036 2009-08-02  Bruno Haible  <bruno@clisp.org>
32037
32038         * lib/gethostname.c (gethostname): Fix handling of large len argument.
32039         Add comments.
32040
32041 2009-03-31  Simon Josefsson  <simon@josefsson.org>
32042
32043         * lib/gethostname.c: Add Windows wrapper.
32044         * m4/gethostname.m4: Look for gethostname in -lws2_32.
32045         * modules/gethostname: Depend on sys_socket & errno, for also
32046         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
32047         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
32048
32049 2009-07-31  Jim Meyering  <meyering@redhat.com>
32050
32051         getloadavg: fix symbol name in comment
32052         * lib/getloadavg.c: Correct a typo I introduced when adding
32053         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
32054         Matt Kraai spotted the problem.
32055
32056 2009-07-29  Matt Kraai  <mkraai@beckman.com>
32057
32058         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
32059         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
32060         code also if ! defined N_NAME_POINTER.
32061         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
32062         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
32063         but the n_name member is a 12-byte array.
32064
32065 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
32066
32067         update-copyright: generalize comment handling
32068         * build-aux/update-copyright: Handle copyright statements
32069         within more comment styles.
32070         Document usage.
32071         Report any file with an external copyright holder or parse failure.
32072
32073 2009-07-29  Jim Meyering  <meyering@redhat.com>
32074
32075         mktime: correct setting of REPLACE_MKTIME
32076         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
32077
32078         update-copyright: new module
32079         * modules/update-copyright: New file.
32080         * build-aux/update-copyright: New file.
32081         * MODULES.html.sh (maint+release support): Add update-copyright.
32082
32083 2009-07-27  Bruno Haible  <bruno@clisp.org>
32084
32085         Fix compilation error when <ctime> is used and mktime is replaced.
32086         * lib/time.in.h (mktime): New declaration.
32087         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
32088         REPLACE_MKTIME instead of defining mktime in config.h.
32089         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
32090         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
32091         Reported by Ross McFarland <rwmcfa1@neces.com>.
32092
32093 2009-07-27  Bruno Haible  <bruno@clisp.org>
32094
32095         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
32096         Reported by Matt Kraai <mkraai@beckman.com>.
32097
32098 2009-07-25  Jim Meyering  <meyering@redhat.com>
32099
32100         maint.mk: avoid warnings about missing files
32101         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
32102         diagnostic when .prev-version does not exist.
32103         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
32104         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
32105         nonexistent cfg.mk.
32106         Suggestions from Simon Josefsson.
32107
32108 2009-07-25  Bruno Haible  <bruno@clisp.org>
32109
32110         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
32111         defined as macros. Needed on QNX 6.4.1.
32112         Reported by Matt Kraai <mkraai@beckman.com>.
32113
32114 2009-07-23  Jim Meyering  <meyering@redhat.com>
32115
32116         maint.mk: invoke "make dist" with a working value of XZ_OPT
32117         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
32118
32119 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
32120
32121         Make fseeko.c compile on QNX.
32122         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
32123
32124 2009-07-22  Peter Simons  <simons@cryp.to>
32125
32126         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
32127         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
32128         * lib/md4.h: Likewise.
32129         * lib/md5.h: Likewise.
32130         * lib/sha1.h: Likewise.
32131         * lib/sha256.h: Likewise.
32132         * lib/sha512.h: Likewise.
32133
32134         tests-sha1: don't assign literal string to 'char *' variable
32135         * tests/test-sha1.c (main): Declare locals with "const" to match
32136         attributes of the right hand side.
32137
32138 2009-07-21  Eric Blake  <ebb9@byu.net>
32139
32140         dup2: fix more mingw problems
32141         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
32142         fd to itself.
32143         * doc/posix-functions/dup2.texi (dup2): Document the bug.
32144         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
32145         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
32146         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
32147         care of mingw bugs.
32148
32149 2009-07-21  Jim Meyering  <meyering@redhat.com>
32150
32151         vc-list-files: avoid failure when /bin/sh is dash
32152         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
32153         On some Debian based systems, /bin/sh is a symlink to dash, and running
32154         this command would omit the "/" following each 'tests' prefix:
32155           dash -x build-aux/vc-list-files -C . tests
32156         That is because bash and dash work differently:
32157           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
32158           bash ok
32159           dash odd
32160
32161 2009-07-21  Eric Blake  <ebb9@byu.net>
32162
32163         dup2-tests: test previous patch
32164         * modules/dup2-tests: New file.
32165         * tests/test-dup2.c: Likewise.
32166         * tests/test-open.c (main): Avoid unspecified behavior.
32167         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
32168         test.
32169
32170         dup2: work around mingw and cygwin 1.5 bug
32171         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
32172         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32173         * modules/unistd (Makefile.am): Substitute it.
32174         * lib/unistd.in.h (dup2): Declare the replacement.
32175         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
32176         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
32177         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
32178         * modules/execute (Depends-on): Add dup2.
32179         * modules/fseterr (Depends-on): Likewise.
32180         * modules/pipe (Depends-on): Likewise.
32181         * modules/posix_spawn-internal (Depends-on): Likewise.
32182
32183 2009-07-21  Bruno Haible  <bruno@clisp.org>
32184
32185         * modules/.gitattributes: New file.
32186
32187 2009-07-20  Bruno Haible  <bruno@clisp.org>
32188
32189         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
32190         (main): Use it.
32191
32192 2009-07-20  Eric Blake  <ebb9@byu.net>
32193
32194         test-pipe: make a bit more robust.
32195         * tests/test-pipe.c (myerr): Allow error messages regardless of
32196         what we do to stderr.
32197         (test_pipe): Rearrange to avoid deadlock.
32198         (child_main): Try a larger read, to ensure we avoided deadlock.
32199         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
32200         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
32201         if misused.
32202
32203 2009-07-19  Jim Meyering  <meyering@redhat.com>
32204
32205         fts: avoid false-positive cycle-detection
32206         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
32207         for each new command line argument.
32208
32209 2009-07-19  Bruno Haible  <bruno@clisp.org>
32210
32211         Fix build error on mingw with the modules sys_select and unistd.
32212         * modules/acl-tests (Depends-on): Add close.
32213         * modules/binary-io-tests (Depends-on): Likewise.
32214         * modules/closein-tests (Depends-on): Likewise.
32215         * modules/flock-tests (Depends-on): Likewise.
32216         * modules/fsync-tests (Depends-on): Likewise.
32217         * modules/lseek-tests (Depends-on): Likewise.
32218         * modules/pipe-tests (Depends-on): Likewise.
32219         * modules/posix_spawn-tests (Depends-on): Likewise.
32220         * modules/posix_spawnp-tests (Depends-on): Likewise.
32221         * modules/stat-time-tests (Depends-on): Likewise.
32222         * modules/yesno-tests (Depends-on): Likewise.
32223
32224 2009-07-19  Bruno Haible  <bruno@clisp.org>
32225
32226         Unify conditionals.
32227         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
32228         macros, not at the compiler macros.
32229         * lib/pipe.c: Likewise.
32230         * lib/execute.c: Likewise.
32231         * lib/spawni.c: Likewise.
32232
32233 2009-07-19  Bruno Haible  <bruno@clisp.org>
32234
32235         Fix handling of closed stdin/stdout/stderr on mingw.
32236         * lib/w32spawn.h: Include unistd.h.
32237         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
32238         file descriptor with O_NOINHERIT flag.
32239         (fd_safer_noinherit): New function, based on fd-safer.c.
32240         (dup_safer_noinherit): New function, based on dup-safer.c.
32241         (undup_safer_noinherit): New function.
32242         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
32243         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
32244         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
32245         instead of fd_safer.
32246         * tests/test-pipe.c: Include <windows.h>.
32247         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
32248         result.
32249
32250         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
32251         from main.
32252         (test_pipe): Pass an extra argument for disambiguation.
32253         (main): Invoke parent_main or child_main.
32254
32255         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
32256         consistently.
32257
32258 2009-07-18  Eric Blake  <ebb9@byu.net>
32259
32260         test-pipe: fix mingw build
32261         * tests/test-pipe.c (main): Avoid fcntl on mingw.
32262
32263 2009-07-18  Bruno Haible  <bruno@clisp.org>
32264
32265         * modules/pipe-tests (Makefile.am): Fix typo.
32266
32267 2009-07-18  Eric Blake  <ebb9@byu.net>
32268
32269         error: fix mingw build
32270         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
32271         Reported by Bruno Haible.
32272
32273         error: avoid undefined use of stdout
32274         * lib/error.c (error, error_at_line): Check that fd 1 is open
32275         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
32276         is handling faults and the close_stdout module wants to report the
32277         detection of closed stdout as an error.
32278
32279 2009-07-17  Eric Blake  <ebb9@byu.net>
32280
32281         pipe: be robust in face of closed fds
32282         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
32283         should cause child to misbehave.
32284         * modules/pipe-tests: New module.
32285         * tests/test-pipe.c: New file.
32286         * tests/test-pipe.sh: New file.
32287         Reported by Akim Demaille.
32288
32289 2009-07-14  Bruno Haible  <bruno@clisp.org>
32290
32291         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
32292         Reported by anonymous kc.
32293
32294 2009-07-07  Jim Meyering  <meyering@redhat.com>
32295
32296         maint.mk: don't look for translatable strings in *.m4 or *.mk
32297         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
32298         when searching for translatable strings.
32299
32300 2009-07-05  Jim Meyering  <meyering@redhat.com>
32301
32302         remove superfluous parentheses in STREQ definition
32303         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
32304         * lib/getugroups.c (STREQ): Likewise.
32305         * lib/fnmatch.c (STREQ): Likewise.
32306         Spotted by Bruno Haible.
32307
32308 2009-07-04  Jim Meyering  <meyering@redhat.com>
32309
32310         argv-iter: new module
32311         * MODULES.html.sh: Add argv-iter.
32312         * lib/argv-iter.c, lib/argv-iter.h: New files.
32313         * modules/argv-iter: New file.
32314         * modules/argv-iter-tests: New file.
32315         * tests/test-argv-iter.c: Test it.
32316
32317 2009-07-04  Bruno Haible  <bruno@clisp.org>
32318
32319         Fix assertion.
32320         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
32321         contains more exact copies of a given entry than file2, leave the extra
32322         copies unpaired rather than aborting.
32323         Reported by Eric Blake.
32324
32325 2009-07-02  Bruno Haible  <bruno@clisp.org>
32326
32327         Speedup git-merge-changelog for git cherry-pick.
32328         * lib/git-merge-changelog.c (struct entries_mapping): New type.
32329         (entries_mapping_get): New function, extracted from compute_mapping.
32330         (entries_mapping_reverse_get): New function.
32331         (compute_mapping): Add a 'full' argument. Return the result in a
32332         'struct entries_mapping'.
32333         (main): Update. Access the mappings through entries_mapping_get.
32334         Reported by Eric Blake.
32335
32336 2009-07-02  Bruno Haible  <bruno@clisp.org>
32337
32338         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
32339         best_i.
32340
32341 2009-07-02  Bruno Haible  <bruno@clisp.org>
32342
32343         Speed up approximate search for matching ChangeLog entries.
32344         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
32345         argument. Call fstrcmp_bounded instead of fstrcmp.
32346         (compute_mapping, try_split_merged_entry, main): Update callers.
32347
32348 2009-07-02  Bruno Haible  <bruno@clisp.org>
32349
32350         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
32351
32352 2009-06-30  Bruno Haible  <bruno@clisp.org>
32353
32354         Reduce the number of uc_is_cased calls.
32355         * lib/unicase.h (casing_suffix_context_t): Add
32356         'first_char_except_ignorable' field.
32357         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
32358         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
32359         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
32360         Update initializer.
32361         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
32362         case-ignorable characters.
32363         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
32364         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
32365         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
32366         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
32367         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
32368
32369 2009-06-30  Bruno Haible  <bruno@clisp.org>
32370
32371         Tests for module 'unicase/ignorable'.
32372         * modules/unicase/ignorable-tests: New file.
32373         * tests/unicase/test-ignorable.c: New file, generated by
32374         gen-uni-tables.
32375
32376         Tests for module 'unicase/cased'.
32377         * modules/unicase/cased-tests: New file.
32378         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
32379         * tests/unicase/test-predicate-part1.h: New file, derived from
32380         tests/unictype/test-predicate-part1.h.
32381         * tests/unicase/test-predicate-part2.h: New file, same as
32382         tests/unictype/test-predicate-part2.h.
32383
32384         Fix evaluation of "Before C" condition of FINAL_SIGMA.
32385         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
32386         (output_casing_properties): New function.
32387         (main): Call it.
32388         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
32389         * lib/unicase/cased.c: Include unictype/bitmap.h.
32390         (uc_is_cased): Define through a bitmap lookup.
32391         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
32392         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
32393         (uc_is_case_ignorable): Define through a bitmap lookup.
32394         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
32395         lib/unictype/bitmap.h.
32396         (Depends-on): Add inline. Clean up.
32397         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
32398         lib/unictype/bitmap.h.
32399         (Depends-on): Add inline. Clean up.
32400         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
32401         recognition.
32402         * tests/unicase/test-u16-tolower.c (main): Likewise.
32403         * tests/unicase/test-u32-tolower.c (main): Likewise.
32404
32405 2009-06-30  Bruno Haible  <bruno@clisp.org>
32406
32407         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
32408         * lib/unicase/u16-casemap.c: Likewise.
32409         * lib/unicase/u32-casemap.c: Likewise.
32410
32411 2009-06-29  Bruno Haible  <bruno@clisp.org>
32412
32413         Define u32_casefold as a wrapper around u32_ct_casefold.
32414         * lib/unicase/u32-casefold.c: Update.
32415         * modules/unicase/u32-casefold (Depends-on): Add
32416         unicase/u32-ct-casefold, unicase/empty-prefix-context,
32417         unicase/empty-suffix-context. Clean up.
32418
32419         Define u16_casefold as a wrapper around u16_ct_casefold.
32420         * lib/unicase/u16-casefold.c: Update.
32421         * modules/unicase/u16-casefold (Depends-on): Add
32422         unicase/u16-ct-casefold, unicase/empty-prefix-context,
32423         unicase/empty-suffix-context. Clean up.
32424
32425         Define u8_casefold as a wrapper around u8_ct_casefold.
32426         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
32427         * lib/unicase/u8-casefold.c: Update.
32428         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
32429         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
32430
32431         Define u32_totitle as a wrapper around u32_ct_totitle.
32432         * lib/unicase/u32-totitle.c: Update.
32433         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
32434         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
32435
32436         Define u16_totitle as a wrapper around u16_ct_totitle.
32437         * lib/unicase/u16-totitle.c: Update.
32438         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
32439         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
32440
32441         Define u8_totitle as a wrapper around u8_ct_totitle.
32442         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
32443         functions.
32444         (FUNC): Delegate to U_CT_TOTITLE.
32445         * lib/unicase/u8-totitle.c: Update.
32446         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
32447         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
32448
32449         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
32450         invocation.
32451         * modules/unicase/u32-tolower (Depends-on): Add
32452         unicase/empty-prefix-context, unicase/empty-suffix-context.
32453
32454         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
32455         invocation.
32456         * modules/unicase/u16-tolower (Depends-on): Add
32457         unicase/empty-prefix-context, unicase/empty-suffix-context.
32458
32459         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
32460         * modules/unicase/u8-tolower (Depends-on): Add
32461         unicase/empty-prefix-context, unicase/empty-suffix-context.
32462
32463         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
32464         invocation.
32465         * modules/unicase/u32-toupper (Depends-on): Add
32466         unicase/empty-prefix-context, unicase/empty-suffix-context.
32467
32468         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
32469         invocation.
32470         * modules/unicase/u16-toupper (Depends-on): Add
32471         unicase/empty-prefix-context, unicase/empty-suffix-context.
32472
32473         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
32474         * modules/unicase/u8-toupper (Depends-on): Add
32475         unicase/empty-prefix-context, unicase/empty-suffix-context.
32476
32477         New module 'unicase/u32-ct-casefold'.
32478         * lib/unicase/u32-ct-casefold.c: New file.
32479         * modules/unicase/u32-ct-casefold: New file.
32480
32481         New module 'unicase/u16-ct-casefold'.
32482         * lib/unicase/u16-ct-casefold.c: New file.
32483         * modules/unicase/u16-ct-casefold: New file.
32484
32485         New module 'unicase/u8-ct-casefold'.
32486         * lib/unicase/u8-ct-casefold.c: New file.
32487         * lib/unicase/u-ct-casefold.h: New file, derived from
32488         lib/unicase/u-casefold.h.
32489         * modules/unicase/u8-ct-casefold: New file.
32490
32491         New module 'unicase/u32-ct-totitle'.
32492         * lib/unicase/u32-ct-totitle.c: New file.
32493         * modules/unicase/u32-ct-totitle: New file.
32494
32495         New module 'unicase/u16-ct-totitle'.
32496         * lib/unicase/u16-ct-totitle.c: New file.
32497         * modules/unicase/u16-ct-totitle: New file.
32498
32499         New module 'unicase/u8-ct-totitle'.
32500         * lib/unicase/u8-ct-totitle.c: New file.
32501         * lib/unicase/u-ct-totitle.h: New file, derived from
32502         lib/unicase/u-totitle.h.
32503         * modules/unicase/u8-ct-totitle: New file.
32504
32505         New module 'unicase/u32-ct-tolower'.
32506         * lib/unicase/u32-ct-tolower.c: New file.
32507         * modules/unicase/u32-ct-tolower: New file.
32508
32509         New module 'unicase/u16-ct-tolower'.
32510         * lib/unicase/u16-ct-tolower.c: New file.
32511         * modules/unicase/u16-ct-tolower: New file.
32512
32513         New module 'unicase/u8-ct-tolower'.
32514         * lib/unicase/u8-ct-tolower.c: New file.
32515         * modules/unicase/u8-ct-tolower: New file.
32516
32517         New module 'unicase/u32-ct-toupper'.
32518         * lib/unicase/u32-ct-toupper.c: New file.
32519         * modules/unicase/u32-ct-toupper: New file.
32520
32521         New module 'unicase/u16-ct-toupper'.
32522         * lib/unicase/u16-ct-toupper.c: New file.
32523         * modules/unicase/u16-ct-toupper: New file.
32524
32525         New module 'unicase/u8-ct-toupper'.
32526         * lib/unicase/u8-ct-toupper.c: New file.
32527         * modules/unicase/u8-ct-toupper: New file.
32528
32529         Add context arguments to u*_casemap functions.
32530         * lib/unicase/unicasemap.h: Include unicase.h.
32531         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
32532         suffix_context arguments.
32533         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
32534         functions.
32535         (FUNC): Add prefix_context and suffix_context arguments. Use
32536         uc_is_cased and uc_is_case_ignorable.
32537         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
32538         * lib/unicase/u16-casemap.c: Likewise.
32539         * lib/unicase/u32-casemap.c: Likewise.
32540         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
32541         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
32542         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
32543         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
32544         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
32545         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
32546
32547         New module 'unicase/u32-suffix-context'.
32548         * lib/unicase/u32-suffix-context.c: New file.
32549         * modules/unicase/u32-suffix-context: New file.
32550
32551         New module 'unicase/u16-suffix-context'.
32552         * lib/unicase/u16-suffix-context.c: New file.
32553         * modules/unicase/u16-suffix-context: New file.
32554
32555         New module 'unicase/u8-suffix-context'.
32556         * lib/unicase/u8-suffix-context.c: New file.
32557         * lib/unicase/u-suffix-context.h: New file.
32558         * modules/unicase/u8-suffix-context: New file.
32559
32560         New module 'unicase/empty-suffix-context'.
32561         * lib/unicase/empty-suffix-context.c: New file.
32562         * modules/unicase/empty-suffix-context: New file.
32563
32564         New module 'unicase/u32-prefix-context'.
32565         * lib/unicase/u32-prefix-context.c: New file.
32566         * modules/unicase/u32-prefix-context: New file.
32567
32568         New module 'unicase/u16-prefix-context'.
32569         * lib/unicase/u16-prefix-context.c: New file.
32570         * modules/unicase/u16-prefix-context: New file.
32571
32572         New module 'unicase/u8-prefix-context'.
32573         * lib/unicase/u8-prefix-context.c: New file.
32574         * lib/unicase/u-prefix-context.h: New file.
32575         * lib/unicase/context.h: New file.
32576         * modules/unicase/u8-prefix-context: New file.
32577
32578         New module 'unicase/empty-prefix-context'.
32579         * lib/unicase/empty-prefix-context.c: New file.
32580         * modules/unicase/empty-prefix-context: New file.
32581
32582         New module 'unicase/ignorable'.
32583         * lib/unicase/ignorable.c: New file.
32584         * modules/unicase/ignorable: New file.
32585
32586         New module 'unicase/cased'.
32587         * lib/unicase/caseprop.h: New file.
32588         * lib/unicase/cased.c: New file.
32589         * modules/unicase/cased: New file.
32590
32591         New functions for case mapping of substrings.
32592         * lib/unicase.h (casing_prefix_context_t): New type.
32593         (unicase_empty_prefix_context): New variable.
32594         (u8_casing_prefix_context, u16_casing_prefix_context,
32595         u32_casing_prefix_context, u8_casing_prefixes_context,
32596         u16_casing_prefixes_context, u32_casing_prefixes_context): New
32597         declarations.
32598         (casing_suffix_context_t): New type.
32599         (unicase_empty_suffix_context): New variable.
32600         (u8_casing_suffix_context, u16_casing_suffix_context,
32601         u32_casing_suffix_context, u8_casing_suffixes_context,
32602         u16_casing_suffixes_context, u32_casing_suffixes_context,
32603         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
32604         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
32605         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
32606         declarations.
32607
32608 2009-06-28  Jim Meyering  <meyering@redhat.com>
32609
32610         boostrap: indent only with spaces
32611         * build-aux/bootstrap: Indent only with spaces, never TABs.
32612
32613         bootstrap: split long lines
32614         * build-aux/bootstrap: Keep line length < 80.
32615
32616         bootstrap: sync from coreutils
32617         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
32618         just as autoreconf does.  Verify a list of prerequisite
32619         package-name,version-number pairs if defined in bootstrap.conf.
32620         Refer to README-prereq, if prerequisites are not satisfied.
32621
32622 2009-06-27  Eric Blake  <ebb9@byu.net>
32623
32624         tests: add test for bogus NULL definition
32625         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
32626         * tests/test-stdlib.c: Likewise.
32627         * tests/test-string.c: Likewise.
32628         * tests/test-locale.c: Likewise.
32629         * tests/test-unistd.c: Likewise.
32630         * modules/stdio-tests (Depends-on): Add verify.
32631         * modules/stdlib-tests (Depends-on): Likewise.
32632         * modules/string-tests (Depends-on): Likewise.
32633         * modules/locale-tests (Depends-on): Likewise.
32634         * modules/unistd-tests (Depends-on): Likewise.
32635
32636 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
32637
32638         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
32639         self-explaining comment.
32640         * m4/selinux-selinux-h: Update serial.
32641         (gl_LIBSELINUX): New macro, adding a warning for missing development
32642         packages to code extracted from...
32643         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
32644         Add warning for missing development packages here, too.
32645
32646 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
32647
32648         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
32649
32650 2009-06-25  Eric Blake  <ebb9@byu.net>
32651
32652         version-etc: fix regression
32653         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
32654         gcc.
32655         (version_etc): Use it, to catch bugs with trailing NULL.
32656         * lib/version-etc.c (version_etc_arn): Delete unused argument.
32657         (version_etc_va): Fix logic bug.
32658         * modules/version-etc-tests: Add test.
32659         * tests/test-version-etc.c: New file.
32660         * tests/test-version-etc.sh: Likewise.
32661
32662 2009-06-25  Sam Steingold  <sds@gnu.org>
32663
32664         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
32665         mbtowc declaration.
32666
32667 2009-06-25  Eric Blake  <ebb9@byu.net>
32668
32669         fpurge: migrate into <stdio.h>
32670         * lib/fpurge.h: Delete...
32671         * lib/stdio.in.h (fpurge): ...and declare here, instead.
32672         * lib/fpurge.c (fpurge): Change declaring header.
32673         * modules/fpurge (Files): Drop deleted file.
32674         (Depends-on): Add stdio.
32675         (configure.ac): Set witness.
32676         * modules/stdio (Makefile.am): Support fpurge macros.
32677         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
32678         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
32679         * lib/fflush.c: Update client.
32680         * tests/test-fpurge.c: Likewise.
32681         * NEWS: Mention the change.
32682
32683 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
32684
32685         * lib/argp-version-etc.c (program_authors): Add const
32686         qualifier.
32687         * lib/version-etc.c: Fix typos in the comments.
32688         * modules/argp-version-etc: Depends on version-etc.
32689
32690 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
32691
32692         argp-version-etc: new module.
32693
32694         * lib/argp-version-etc.c: New file.
32695         * lib/argp-version-etc.h: New file.
32696         * modules/argp-version-etc: New file.
32697         * modules/argp-version-etc-tests: New file.
32698         * tests/test-argp-version-etc.c: New test.
32699         * tests/test-argp-version-etc-1.sh: New test.
32700
32701 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
32702
32703         Provide additional interfaces and documentation for version-etc
32704         module.
32705
32706         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
32707         interfaces.
32708         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
32709         prototypes.
32710
32711 2009-06-24  Bruno Haible  <bruno@clisp.org>
32712
32713         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
32714         HAVE_LIB${NAME} macro.
32715         Reported by Sam Steingold <sds@gnu.org>.
32716
32717 2009-06-23  Simon Josefsson  <simon@josefsson.org>
32718
32719         * modules/hash-tests (test_hash_LDADD): Link to libintl when
32720         needed.
32721
32722 2009-06-21  Bruno Haible  <bruno@clisp.org>
32723
32724         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
32725         work.
32726         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
32727         together with LIB${NAME}, LTLIB${NAME}.
32728         Reported by Sam Steingold <sds@gnu.org>.
32729
32730 2009-06-20  Jim Meyering  <meyering@redhat.com>
32731
32732         tests: make sc_require_test_exit_idiom more generic
32733         * top/maint.mk (Exit_witness_file): New overridable variable.
32734         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
32735         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
32736
32737 2009-06-19  Jim Meyering  <meyering@redhat.com>
32738
32739         hash: reverse order of src/dst parameters in an internal interface
32740         * lib/hash.c (transfer_entries): Reverse order of parameters to
32741         put DST before SRC.  Adjust callers.
32742
32743         tests: test-hash: avoid wholesale duplication
32744         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
32745         Instead, use a loop and add a single conditional.
32746
32747         tests: test-hash: allow seed selection via a command line argument
32748         * tests/test-hash.c (get_seed): New function.
32749         (main): Use it.
32750
32751 2009-06-19  Eric Blake  <ebb9@byu.net>
32752
32753         hash: avoid memory leak on allocation failure
32754         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
32755         failure.  Factor repeated algorithm...
32756         (transfer_entries): ...into new helper routine.
32757         (hash_delete): React to hash_rehash return value.
32758
32759         hash: reduce memory pressure in hash_rehash no-op case
32760         * lib/hash.c (next_prime): Avoid overflow.
32761         (hash_initialize): Factor bucket size computation...
32762         (compute_bucket_size): ...into new helper function.
32763         (hash_rehash): Use new function and open coding to reduce memory
32764         pressure, and avoid a memory leak in USE_OBSTACK code.
32765         Reported by Jim Meyering.
32766
32767 2009-06-18  Eric Blake  <ebb9@byu.net>
32768
32769         hash: make rotation more obvious
32770         * modules/hash (Depends-on): Add bitrotate and stdint.
32771         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
32772         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
32773         (SIZE_MAX): Rely on headers for definition.
32774         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
32775         (raw_hasher): Use rotr_sz.
32776         Suggested by Jim Meyering.
32777
32778         hash: fix memory leak in last patch
32779         * lib/hash.c (hash_rehash): Avoid memory leak.
32780
32781         hash: avoid no-op rehashing
32782         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
32783
32784         hash: provide default callback functions
32785         * lib/hash.c (raw_hasher, raw_comparator): New functions.
32786         (hash_initialize): Use them as defaults.
32787         * tests/test-hash.c (main): Test this.
32788
32789         hash: minor optimization
32790         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
32791         when possible.
32792         (hash_initialize): Document this promise.
32793         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
32794         * tests/test-hash.c (hash_compare_strings): Test this.
32795
32796 2009-06-18  Bruno Haible  <bruno@clisp.org>
32797
32798         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
32799         going to be replaced anyway.
32800
32801 2009-06-18  Bruno Haible  <bruno@clisp.org>
32802
32803         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
32804         in one place.
32805         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
32806         be replaced anyway.
32807
32808 2009-06-18  Eric Blake  <ebb9@byu.net>
32809
32810         hash: check for resize before insertion
32811         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
32812         threshold before insertion, so that a pathological hash_rehash
32813         that fills every bucket can still trigger another rehash.
32814
32815 2009-06-18  Jim Meyering  <meyering@redhat.com>
32816
32817         hash-tests: add a loop around the small tests
32818         * tests/test-hash.c (main): Repeat small tests with selected
32819         small initial table sizes.
32820
32821 2009-06-17  Eric Blake  <ebb9@byu.net>
32822
32823         hash: minor cleanups
32824         * lib/hash.h (hash_entry): Make opaque, by moving...
32825         * lib/hash.c (hash_entry): ...here.
32826         (hash_insert): Clarify restrictions on what can be inserted.
32827         (hash_get_next): Clarify when it is safe to remove an element
32828         during traversal.
32829         (check_tuning): Skip verification when tuning is known safe.
32830         (hash_initialize): Clarify restrictions on tuning.
32831
32832 2009-06-17  Jim Meyering  <jim@meyering.net>
32833         and Eric Blake  <ebb9@byu.net>
32834
32835         hash-tests: new module
32836         * modules/hash-tests: New file.
32837         * tests/test-hash.c: New file.
32838
32839 2009-06-17  Eric Blake  <ebb9@byu.net>
32840
32841         strstr-simple: document new module
32842         * MODULES.html.sh: Document new module.
32843
32844         strstr, strcasestr: replace on platforms with broken memchr
32845         * modules/strstr: Split into...
32846         * modules/strstr-simple: ...new module that does not care about
32847         performance, but does care about glibc bug.
32848         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
32849         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
32850         if platform memchr is broken, per Debian bug 521737.
32851         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
32852         memchr.
32853         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
32854         * doc/posix-functions/strstr.texi (strstr): Document the fix.
32855         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
32856         * modules/mountlist (Depends-on): Add strstr-simple.
32857         * modules/gen-uni-tables (Depends-on): Likewise.
32858         * modules/argz (Depends-on): Add strstr.
32859
32860 2009-06-17  Bruno Haible  <bruno@clisp.org>
32861
32862         * modules/posix_spawn-internal (Depends-on): Add errno.
32863
32864 2009-06-17  Bruno Haible  <bruno@clisp.org>
32865
32866         Define missing ESTALE on Interix 3.5.
32867         * lib/errno.in.h (ESTALE): Assign a value if missing.
32868         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
32869         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
32870         missing.
32871         * doc/posix-headers/errno.texi: Mention the Interix bug.
32872         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
32873
32874 2009-06-15  Eric Blake  <ebb9@byu.net>
32875
32876         memchr, memchr2: add valgrind exception
32877         * lib/memchr.valgrind: New file.
32878         * lib/memchr2.valgrind: New file.
32879         * modules/memchr (Files): Distribute valgrind file.
32880         * modules/memchr2 (Files): Likewise.
32881
32882         docs: memchr is no longer obsolete
32883         * MODULES.html.sh: Move memchr from obsolete to string.h section.
32884         * lib/string.in.h (memchr): Simplify logic.
32885
32886 2009-06-14  Jim Meyering  <meyering@redhat.com>
32887
32888         link-follow: fix the "checking..." message to not mention trailing slash
32889         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
32890         never considered trailing slashes.
32891
32892 2009-06-14  Bruno Haible  <bruno@clisp.org>
32893
32894         * m4/memchr.m4: Mention also the bug on IA-64.
32895         * doc/posix-functions/memchr.texi: Likewise.
32896
32897 2009-06-12  Eric Blake  <ebb9@byu.net>
32898
32899         memchr: detect broken x86_64 and alpha implementations
32900         * modules/memchr-tests (Depends-on): Move mmap detection...
32901         * modules/memchr (Depends-on): ...here.
32902         (configure.ac): Set indicator.
32903         * lib/string.in.h (memchr): Declare replacement.
32904         * modules/string (Makefile.am): Trigger replacement.
32905         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
32906         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
32907         bugs.
32908         * doc/posix-functions/memchr.texi (memchr): Document the bug.
32909         * modules/getpagesize (License): Relax license.
32910
32911 2009-06-11  Bruno Haible  <bruno@clisp.org>
32912
32913         * lib/idpriv.h: Add more references.
32914
32915 2009-06-08  Bruno Haible  <bruno@clisp.org>
32916
32917         Tests for module 'idpriv-droptemp'.
32918         * modules/idpriv-droptemp-tests: New file.
32919         * tests/test-idpriv-droptemp.sh: New file.
32920         * tests/test-idpriv-droptemp.su.sh: New file.
32921         * tests/test-idpriv-droptemp.c: New file.
32922
32923         New module 'idpriv-droptemp'.
32924         * lib/idpriv-droptemp.c: New file.
32925         * modules/idpriv-droptemp: New file.
32926
32927 2009-06-08  Bruno Haible  <bruno@clisp.org>
32928
32929         Tests for module 'idpriv-drop'.
32930         * modules/idpriv-drop-tests: New file.
32931         * tests/test-idpriv-drop.sh: New file.
32932         * tests/test-idpriv-drop.su.sh: New file.
32933         * tests/test-idpriv-drop.c: New file.
32934
32935         New module 'idpriv-drop'.
32936         * lib/idpriv.h: New file.
32937         * lib-idpriv-drop.c: New file.
32938         * m4/idpriv.m4: New file.
32939         * modules/idpriv-drop: New file.
32940
32941 2009-06-08  Bruno Haible  <bruno@clisp.org>
32942
32943         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
32944         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
32945         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
32946         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
32947         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
32948         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
32949         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
32950
32951 2009-06-08  Eric Blake  <ebb9@byu.net>
32952
32953         test-strstr: use memory fence, when possible
32954         * tests/test-strstr.c (main): Use memory fence, in order to be
32955         more likely to trigger Debian bug 521737.
32956         * modules/strstr-tests (Files): Pull in additional files.
32957
32958         memchr: no longer obsolete, for wider field testing
32959         * modules/memchr (Status, Notice): Delete, this module is no
32960         longer obsolete.
32961         * modules/vasnprintf (Depends-on): Add memchr.
32962
32963 2009-06-07  Jim Meyering  <meyering@redhat.com>
32964
32965         hash: declare some functions with the warn_unused_result attribute
32966         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
32967
32968 2009-06-07  Bruno Haible  <bruno@clisp.org>
32969
32970         * tests/test-alignof.c: Don't test int64_t if it does not exist.
32971         Reported by Eric Blake.
32972
32973 2009-06-06  Eric Blake  <ebb9@byu.net>
32974
32975         test-alignof: fix typo with long double
32976         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
32977         compiler error.
32978
32979 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
32980
32981         Escape non-texinfo { and }s.
32982         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
32983         markup error.
32984
32985 2009-06-04  Jim Meyering  <meyering@redhat.com>
32986
32987         gitlog-to-changelog: don't infloop on an empty commit log
32988         * build-aux/gitlog-to-changelog: Warn about an empty log message.
32989         Reported by Boris Petersen <transacid@centerim.org>.
32990
32991 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
32992
32993         version-etc: extend for packagers
32994         Add three new configure options, intended for packagers:
32995           --with-packager="packager name"
32996           --with-packager-version="packager-specific version"
32997           --with-packager-bug-reports="packager bug reporting"
32998         An example with coreutils:
32999           $ ./configure \
33000             --with-packager=Gentoo \
33001             --with-packager-bug-report=http://bugs.gentoo.org/ \
33002             --with-packager-version="patchset 1.6"
33003           $ ./src/ls --version | head -n2
33004           ls (GNU coreutils) 7.1-dirty
33005           Packaged by Gentoo (patchset 1.6)
33006         Note that the bug reporting info via --help doesn't show up because
33007         coreutils uses its own custom emit_bug_reporting_address() implementation
33008         in src/system.h.  If it didn't, it'd look like:
33009           $ ./src/ls --help | tail -n4
33010           Report bugs to <bug-coreutils@gnu.org>.
33011           Report Gentoo bugs to <http://bugs.gentoo.org/>.
33012           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
33013           General help using GNU software: <http://www.gnu.org/gethelp/>.
33014         * lib/version-etc.c: Print new information, if provided.
33015         * m4/version-etc.m4: New file.
33016         * modules/version-etc (Files): Add m4/version-etc.m4.
33017         (configure.ac): Add gl_VERSION_ETC.
33018
33019 2009-05-31  Bruno Haible  <bruno@clisp.org>
33020
33021         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
33022         and 'int64_t'.
33023         * modules/alignof-tests (Dependencies): Add stdint.
33024         Reported by Eric Blake.
33025
33026 2009-05-31  Bruno Haible  <bruno@clisp.org>
33027
33028         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
33029         restriction due to compiler bugs.
33030         Reported by Eric Blake.
33031
33032 2009-05-31  Simon Josefsson  <simon@josefsson.org>
33033             Bruno Haible  <bruno@clisp.org>
33034
33035         Fix test-alignof failure.
33036         * lib/alignof.h (alignof_slot): New macro.
33037         (alignof_type): New macro, with the same semantics as the previous
33038         'alignof'.
33039         (alignof): Alias to alignof_slot.
33040         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
33041         check that the results are usable as constant expressions.
33042
33043 2009-05-31  Bruno Haible  <bruno@clisp.org>
33044
33045         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
33046         * tests/test-memchr.c (main): Check that memchr does not read past the
33047         first occurrence of the byte.
33048         * tests/test-strstr.c (main): Update comment.
33049         Suggested by Eric Blake.
33050
33051 2009-05-30  Bruno Haible  <bruno@clisp.org>
33052
33053         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
33054         detail how to use dumpbin.
33055         Reported by David Byron <dbyron@dbyron.com>.
33056
33057 2009-06-02  Simon Josefsson  <simon@josefsson.org>
33058
33059         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
33060
33061 2009-06-02  Simon Josefsson  <simon@josefsson.org>
33062
33063         * m4/manywarnings.m4: Add GCC 4.4 warnings.
33064
33065 2009-05-28  Bruno Haible  <bruno@clisp.org>
33066
33067         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
33068         build-aux/ files.
33069
33070 2009-05-28  Simon Josefsson  <simon@josefsson.org>
33071
33072         * gnulib-tool (func_import): Transform license on build-aux/ files too.
33073
33074 2009-05-27  Simon Josefsson  <simon@josefsson.org>
33075
33076         * gnulib-tool (sed_transform_main_lib_file)
33077         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
33078         regexps.
33079
33080 2009-05-26  Simon Josefsson  <simon@josefsson.org>
33081
33082         * tests/test-strstr.c: Add another self-test.
33083         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
33084         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
33085
33086 2009-05-23  Bruno Haible  <bruno@clisp.org>
33087
33088         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
33089         change.
33090
33091 2009-05-21  Bruno Haible  <bruno@clisp.org>
33092
33093         Simplify use of mode_t varargs.
33094         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
33095         uses 'mode_t' or 'int'.
33096         * lib/openat.c (openat): Likewise.
33097         * lib/open-safer.c (open_safer): Likewise.
33098         * m4/mode_t.m4: New file.
33099         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
33100         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
33101         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
33102         * modules/open (Files): Add m4/mode_t.m4.
33103         * modules/openat (Files): Likewise.
33104         * modules/fcntl-safer (Files): Likewise.
33105         Suggested by Eric Blake.
33106
33107 2009-05-21  Pádraig Brady  <P@draigbrady.com>
33108
33109         * doc/glibc-functions/fallocate.texi: New file.
33110         * doc/gnulib.texi: Include it.
33111
33112 2009-05-21  Eric Blake  <ebb9@byu.net>
33113             Bruno Haible  <bruno@clisp.org>
33114
33115         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
33116         invocations.
33117         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
33118
33119 2009-05-21  Eric Blake  <ebb9@byu.net>
33120             Bruno Haible  <bruno@clisp.org>
33121
33122         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
33123         include_next. Fix of 2008-11-20 commit.
33124         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
33125         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
33126         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
33127         NEXT_MATH_H.
33128         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
33129         instead of NEXT_MATH_H.
33130
33131 2009-05-21  Bruno Haible  <bruno@clisp.org>
33132
33133         Avoid redefinition warnings for SIZE_MAX.
33134         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
33135         Reported by Simon Josefsson.
33136
33137 2009-05-21  Bruno Haible  <bruno@clisp.org>
33138
33139         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
33140         AC_CACHE_VAL.
33141
33142 2009-05-20  Bruno Haible  <bruno@clisp.org>
33143
33144         Make zeroptr.h work on mingw.
33145         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
33146         mprotect.
33147         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
33148         * modules/memchr2-tests (configure.ac): Likewise.
33149         * modules/memcmp-tests (configure.ac): Likewise.
33150         * modules/memmem-tests (configure.ac): Likewise.
33151         * modules/memrchr-tests (configure.ac): Likewise.
33152         Reported by Simon Josefsson.
33153
33154 2009-05-20  Simon Josefsson  <simon@josefsson.org>
33155
33156         * tests/test-glob.c: Include string.h for strcmp prototype.
33157
33158 2009-05-20  Simon Josefsson  <simon@josefsson.org>
33159
33160         * modules/getdelim (Depends-on): Add explicit stdint, although it
33161         was implicitly already pulled in via realloc-posix.
33162         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
33163
33164 2009-05-20  Simon Josefsson  <simon@josefsson.org>
33165
33166         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
33167         G. Christensen" <tgc@jupiterrise.com>.
33168         * m4/sys_socket_h.m4: Check for sa_family_t.
33169         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
33170         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
33171         * tests/test-sys_socket.c: Check that sa_family_t works.
33172
33173 2009-05-18  Eric Blake  <ebb9@byu.net>
33174
33175         maint.mk: allow gnulib_dir in VPATH build
33176         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
33177
33178 2009-05-15  Jim Meyering  <meyering@redhat.com>
33179
33180         maint.mk: Give gnulib_dir a default definition.
33181         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
33182         Thus, most packages no longer need to specify this variable in cfg.mk
33183
33184 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
33185
33186         rename.m4: fix typos that would make non-mingw cross-configure fail
33187         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
33188
33189 2009-05-13  Eric Blake  <ebb9@byu.net>
33190
33191         mmap-anon: avoid out-of-order autoconf expansion
33192         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
33193         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
33194         * modules/memchr-tests (Depends-on): Add extensions.
33195         * modules/memchr2-tests (Depends-on): Add extensions.
33196         * modules/memcmp-tests (Depends-on): Add extensions.
33197         * modules/memmem-tests (Depends-on): Add extensions.
33198         * modules/memrchr-tests (Depends-on): Add extensions.
33199
33200 2009-05-13  Bruno Haible  <bruno@clisp.org>
33201
33202         Make some tests ISO C 99 compliant.
33203         * tests/zerosize-ptr.h: New file.
33204         * tests/test-memchr.c: Include zerosize-ptr.h.
33205         (main): Use a zero-size object pointer instead of NULL.
33206         * tests/test-memchr2.c: Include zerosize-ptr.h.
33207         (main): Use a zero-size object pointer instead of NULL.
33208         * tests/test-memcmp.c: Include zerosize-ptr.h.
33209         (main): Use a zero-size object pointer instead of NULL.
33210         * tests/test-memmem.c: Include zerosize-ptr.h.
33211         (main): Use a zero-size object pointer instead of NULL.
33212         * tests/test-memrchr.c: Include zerosize-ptr.h.
33213         (main): Use a zero-size object pointer instead of NULL.
33214         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
33215         m4/mmap-anon.m4.
33216         (Depends-on): Add getpagesize.
33217         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
33218         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
33219         m4/mmap-anon.m4.
33220         (Depends-on): Add getpagesize.
33221         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
33222         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
33223         m4/mmap-anon.m4.
33224         (Depends-on): Add getpagesize.
33225         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
33226         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
33227         m4/mmap-anon.m4.
33228         (Depends-on): Add getpagesize.
33229         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
33230         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
33231         m4/mmap-anon.m4.
33232         (Depends-on): Add getpagesize.
33233         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
33234
33235 2009-05-12  Bruno Haible  <bruno@clisp.org>
33236
33237         Tests for module 'alignof'.
33238         * modules/alignof-tests: New file.
33239         * tests/test-alignof.c: New file.
33240
33241 2009-05-12  Bruno Haible  <bruno@clisp.org>
33242
33243         Fix alignof macro.
33244         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
33245         vendor compilers that are always correct.
33246
33247 2009-05-12  Bruno Haible  <bruno@clisp.org>
33248
33249         Make the MAP_ANONYMOUS detection work on HP-UX 11.
33250         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
33251         not whether its fully works.
33252
33253 2009-05-12  Bruno Haible  <bruno@clisp.org>
33254
33255         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
33256
33257 2009-05-12  Jim Meyering  <meyering@redhat.com>
33258
33259         * top/maint.mk: Adjust backslash alignment.
33260
33261 2009-05-11  Simon Josefsson  <simon@josefsson.org>
33262
33263         * top/maint.mk: Make $(srcdir)/build-aux configurable.
33264
33265 2009-05-11  Eric Blake  <ebb9@byu.net>
33266
33267         argp: avoid undefined behavior
33268         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
33269         macros.
33270
33271 2009-05-08  Simon Josefsson  <simon@josefsson.org>
33272
33273         * tests/test-vc-list-files-git.sh: Do git config of user.email and
33274         user.name to prevent git commit from complaining.
33275
33276 2009-05-10  Bruno Haible  <bruno@clisp.org>
33277
33278         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
33279         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
33280         it rewrites every file name only once.
33281         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
33282
33283 2009-05-08  Bruno Haible  <bruno@clisp.org>
33284
33285         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
33286         instead of 'max'.
33287
33288 2009-05-08  Simon Josefsson  <simon@josefsson.org>
33289
33290         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
33291         sockaddr_storage test.
33292
33293 2009-05-07  Simon Josefsson  <simon@josefsson.org>
33294
33295         * modules/sys_socket (Makefile.am): Substitute
33296         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
33297         * m4/sys_socket_h.m4: Check for sockaddr_storage.
33298         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
33299         * tests/test-sys_socket.c: Check sockaddr_storage.
33300
33301 2009-05-08  Bruno Haible  <bruno@clisp.org>
33302
33303         New module 'alignof'.
33304         * lib/alignof.h: New file.
33305         * modules/alignof: New file.
33306
33307 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
33308             Bruno Haible  <bruno@clisp.org>
33309
33310         Fix test-file-has-acl on FreeBSD.
33311         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
33312         mask is implicitly added.
33313         * tests/test-file-has-acl.c: Include <signal.h>.
33314         (main): Terminate the test after 5 seconds.
33315         * modules/acl-tests (configure.ac): Check for alarm function.
33316
33317 2009-05-04  Bruno Haible  <bruno@clisp.org>
33318
33319         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
33320         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
33321         * modules/errno (configure.ac): Drop AC_REQUIRE.
33322         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
33323         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
33324
33325 2009-05-04  Simon Josefsson  <simon@josefsson.org>
33326
33327         * modules/glob-tests: New module.
33328         * tests/test-glob.c: Add.
33329
33330 2009-05-04  Simon Josefsson  <simon@josefsson.org>
33331
33332         * modules/fnmatch-tests: New module.
33333         * tests/test-fnmatch.c: Add.
33334
33335 2009-05-04  Eric Blake  <ebb9@byu.net>
33336
33337         maint: make the new no-submodule-changes rule VPATH-safe
33338         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
33339
33340 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
33341             Bruno Haible  <bruno@clisp.org>
33342
33343         acl: Fix infinite loop on FreeBSD.
33344         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
33345         of return value from acl_get_entry.
33346         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
33347         Likewise.
33348
33349 2009-05-03  Bruno Haible  <bruno@clisp.org>
33350
33351         * lib/acl-internal.h (acl_entries): Clarify return value.
33352         * lib/acl_entries.c (acl_entries): Likewise.
33353
33354 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
33355
33356         Bug fix in acl module.
33357         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
33358
33359 2009-05-03  Bruno Haible  <bruno@clisp.org>
33360
33361         Create gperf-generated file in the source dir, not in the build dir.
33362         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
33363         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
33364         * modules/unicase/locale-language (unicase/locale-languages.h):
33365         Likewise.
33366         * modules/unicase/special-casing (unicase/special-casing-table.h):
33367         Likewise.
33368         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
33369         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
33370         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
33371         Reported by Ralf Wildenhues.
33372
33373 2009-05-03  Bruno Haible  <bruno@clisp.org>
33374
33375         * modules/fnmatch (Description, configure.ac): Taken from
33376         fnmatch-posix.
33377         * modules/fnmatch-posix: Turn into a symbolic reference to the
33378         'fnmatch' module, and deprecate.
33379         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
33380
33381 2009-05-03  Bruno Haible  <bruno@clisp.org>
33382
33383         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
33384         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
33385         Reported by Ralf Wildenhues.
33386
33387 2009-05-04  Simon Josefsson  <simon@josefsson.org>
33388
33389         * m4/fnmatch.m4: Fix fnmatch re-define.
33390
33391 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
33392
33393         priv-set: new module and tests; adapt write-any-file
33394         * lib/priv-set.c: New file.
33395         * lib/priv-set.h: New file.
33396         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
33397         * lib/write-any-file.c: Simplify by using priv-set module.
33398         * m4/priv-set.m4: New file.
33399         * modules/priv-set: New file.
33400         * modules/unlinkdir: Add dependency on priv-set module.
33401         * modules/write-any-file: Likewise.
33402
33403         Tests for module 'priv-set'.
33404         * modules/priv-set-tests: New file.
33405         * tests/test-priv-set.c: New file.
33406
33407 2009-05-03  Jim Meyering  <meyering@redhat.com>
33408             Bruno Haible  <bruno@clisp.org>
33409
33410         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
33411         use the converted UTF-8 variant of the name instead.
33412
33413 2009-05-03  Jim Meyering  <meyering@redhat.com>
33414
33415         tests: tighten some getdate tests
33416         * tests/test-getdate.c (main): Tighten tests: require equality,
33417         not just greater than.  Set TZ envvar to UTC0.
33418
33419 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
33420
33421         getdate: correctly interpret "next monday" when run on a Monday
33422         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
33423         that e.g., "next tues" (when run on a tuesday) results in a date
33424         that is one week in the future, and not today's date.
33425         I.e., add a week when the wday is the same as the current one.
33426         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
33427         and earlier by Martin Bernreuther and Jan Minář.
33428         * tests/test-getdate.c (main): Check that "next DAY" is always in
33429         the future and that "last DAY" is always in the past.
33430
33431 2009-05-02  Jim Meyering  <meyering@redhat.com>
33432
33433         build: ensure that a release build fails when a submodule is unclean
33434         * top/maint.mk (no-submodule-changes): New rule.
33435         (alpha beta major): Depend on it.
33436
33437 2009-05-02  Bruno Haible  <bruno@clisp.org>
33438
33439         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
33440         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
33441         shell variable gl_fnmatch_required to detect which variant is
33442         requested.
33443         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
33444         gl_FUNC_FNMATCH_POSIX.
33445         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
33446         exclude fnmatch-posix.
33447
33448 2009-05-02  Bruno Haible  <bruno@clisp.org>
33449
33450         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
33451         * modules/mbsrtowcs (License): Change to LGPLv2+.
33452         * modules/strnlen1 (License): Likewise.
33453         Reported by Simon Josefsson.
33454
33455 2009-05-02  Bruno Haible  <bruno@clisp.org>
33456
33457         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
33458         "cross".
33459         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
33460         gnulib-tool was called with option --source-base=lib.
33461
33462 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33463
33464         Use automake *-local hooks without commands, for extensibility.
33465         * modules/localcharset (Makefile.am): Rename install-exec-local
33466         rule to install-exec-localcharset, and make it a prerequisite of
33467         install-exec-local.  Likewise, rename the uninstall-local rule to
33468         uninstall-localcharset, and make it a prerequisite of the former.
33469
33470 2009-05-01  Bruno Haible  <bruno@clisp.org>
33471
33472         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
33473         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
33474         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
33475         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
33476         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
33477         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
33478         m4/locale-zh.m4, m4/codeset.m4.
33479
33480         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
33481         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
33482         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
33483         m4/locale-zh.m4.
33484
33485         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
33486         REPLACE_WCRTOMB if mbstate_t must be replaced.
33487         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
33488         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
33489
33490 2009-05-01  Bruno Haible  <bruno@clisp.org>
33491
33492         Avoid compiler warnings when redefining macros defined by <libintl.h>.
33493         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
33494         dngettext, dcngettext, textdomain, bindtextdomain,
33495         bind_textdomain_codeset): Undefine before redefining.
33496
33497 2009-04-30  Bruno Haible  <bruno@clisp.org>
33498
33499         Fix bug introduced on 2009-04-25.
33500         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
33501         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
33502         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
33503         is defined.
33504         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
33505         is defined.
33506         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
33507         is defined.
33508         Reported by Elbert_Pol <elbert.pol@gmail.com>.
33509
33510 2009-04-28  Bruno Haible  <bruno@clisp.org>
33511
33512         Comment tweaks.
33513         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
33514         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
33515         * lib/unicase.h (u*_casexfrm): Likewise.
33516         Reported by Paolo Bonzini.
33517
33518 2009-04-28  Bruno Haible  <bruno@clisp.org>
33519
33520         Fix a compilation error.
33521         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
33522         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
33523         Reported by Jim Meyering.
33524
33525 2009-04-27  Bruno Haible  <bruno@clisp.org>
33526
33527         New module 'libunistring'.
33528         * modules/libunistring: New file.
33529         * m4/libunistring.m4: New file.
33530         * MODULES.html.sh (Unicode string functions): Add it.
33531
33532 2009-04-27  Eric Blake  <ebb9@byu.net>
33533
33534         maint.mk: allow package-specific header to provide <config.h>
33535         * top/maint.mk (sc_require_config_h): New variable.
33536         (sc_require_config_h, sc_require_config_h_first): Use it.
33537
33538 2009-04-27  Simon Josefsson  <simon@josefsson.org>
33539
33540         * top/maint.mk (sc_avoid_if_before_free): Except
33541         useless-if-before-free script.
33542
33543 2009-04-27  Eric Blake  <ebb9@byu.net>
33544
33545         maintainer-makefile: depend on all required helper scripts
33546         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
33547         useless-if-before-free.
33548         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
33549         version, rather than assuming gnulib checkout is available.
33550         Reported by Simen Josefsson.
33551
33552 2009-04-26  Bruno Haible  <bruno@clisp.org>
33553
33554         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
33555         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
33556         "../" or "..".
33557
33558 2009-04-26  Bruno Haible  <bruno@clisp.org>
33559
33560         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
33561         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
33562         AC_LIB_HAVE_LINKFLAGS.
33563
33564 2009-04-26  Bruno Haible  <bruno@clisp.org>
33565
33566         Simplify calling convention of u*_conv_from_encoding.
33567         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
33568         u32_conv_from_encoding): Expect a resultbuf argument and return the
33569         result directly as a pointer.
33570         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
33571         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
33572         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
33573         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
33574         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
33575         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
33576         Update.
33577         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
33578         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
33579         * lib/vasnprintf.c (VASNPRINTF): Update.
33580         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
33581         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
33582         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
33583         * NEWS: Mention the change.
33584
33585 2009-04-26  Bruno Haible  <bruno@clisp.org>
33586
33587         Simplify calling convention of u*_conv_to_encoding.
33588         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
33589         u32_conv_to_encoding): Expect a resultbuf argument and return the
33590         result directly as a pointer.
33591         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
33592         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
33593         freeing scaled_offsets if mem_iconveha failed.
33594         * lib/unicase/u-casexfrm.h (FUNC): Update.
33595         * lib/uninorm/u-normxfrm.h (FUNC): Update.
33596         * lib/vasnprintf.c (VASNPRINTF): Update.
33597         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
33598         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
33599         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
33600         * NEWS: Mention the change.
33601
33602 2009-04-26  Bruno Haible  <bruno@clisp.org>
33603
33604         Avoid test failures on AIX and OSF/1.
33605         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
33606         malloc(0).
33607         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
33608         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
33609         Likewise.
33610         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
33611         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
33612         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
33613         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
33614         * doc/posix-functions/malloc.texi: Document the portability problem
33615         related to malloc(0).
33616
33617 2009-04-26  Bruno Haible  <bruno@clisp.org>
33618
33619         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
33620         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
33621         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
33622
33623 2009-04-25  Bruno Haible  <bruno@clisp.org>
33624
33625         Avoid link error when creating a namespace clean library.
33626         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
33627         as macro with arguments if already defined as an alias.
33628         * lib/signbitf.c (gl_signbitf): Don't undefine.
33629         * lib/signbitd.c (gl_signbitd): Don't undefine.
33630         * lib/signbitl.c (gl_signbitl): Don't undefine.
33631
33632 2009-04-25  Jim Meyering  <meyering@redhat.com>
33633
33634         vc-list-files: fix another quoting bug
33635         * build-aux/vc-list-files: Avoid sed backslash expansion
33636         of pathological directory names.
33637
33638 2009-04-25  Eric Blake  <ebb9@byu.net>
33639
33640         vc-list-files: fix shell quoting error
33641         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
33642         timestamp.
33643
33644 2009-04-25  Jim Meyering  <meyering@redhat.com>
33645
33646         vc-list-files: restore lost functionality with subdir argument
33647         * build-aux/vc-list-files: When given a non-"." sub-directory
33648         argument, substitute the $dir/ prefix back onto each resulting name.
33649         Otherwise, coreutils' root_tests check would fail.
33650
33651 2009-04-24  Eric Blake  <ebb9@byu.net>
33652
33653         vc-list-files: ignore git symlinks
33654         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
33655         than ls-files, to ignore git symlinks.
33656
33657         maint.mk: import improvements from m4
33658         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
33659         (move_if_change): Delete unused macro.
33660         (news-date-check, vc-diff-check): Support VPATH builds.
33661         (announcement): Likewise.  Split --bootstrap-tools list...
33662         (boostrap-tools): ...into separate list, which can be overridden
33663         in cfg.mk.
33664         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
33665         requiring dependency on useless-if-before-free module.
33666         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
33667         Support VPATH builds.
33668
33669 2009-04-24  Jim Meyering  <meyering@redhat.com>
33670
33671         maint.mk: remove coreutils-specific rules and variables
33672         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
33673         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
33674         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
33675
33676         maint.mk: remove obsolete rule
33677         * top/maint.mk (rel-check): Remove rule.
33678         (WGET, WGETFLAGS): Remove now-unused variables.
33679
33680 2009-04-24  Simon Josefsson  <simon@josefsson.org>
33681
33682         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
33683         consistency.
33684
33685         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
33686         '$(PATH_SEPARATOR)' instead of ':'.
33687
33688 2009-04-24  Simon Josefsson  <simon@josefsson.org>
33689
33690         * lib/getopt1.c (main): Use 'const' for static array.
33691
33692 2009-04-24  Simon Josefsson  <simon@josefsson.org>
33693
33694         * top/maint.mk: Sync with coreutils.
33695         * NEWS: Explain incompatibilities.
33696
33697 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33698             Bruno Haible  <bruno@clisp.org>
33699
33700         Fix cross-compilation results.
33701         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
33702         statement, as third argument of AC_TRY_RUN.
33703         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
33704         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
33705         Likewise.
33706         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
33707         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
33708         Likewise.
33709         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
33710         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
33711         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
33712
33713 2009-04-20  Bruno Haible  <bruno@clisp.org>
33714
33715         Avoid test failure on mingw.
33716         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
33717
33718 2009-04-20  Bruno Haible  <bruno@clisp.org>
33719
33720         Avoid compilation error on mingw.
33721         * modules/localename-tests (Depends-on): Add locale.
33722
33723 2009-04-19  Bruno Haible  <bruno@clisp.org>
33724
33725         Support for building a shared library on Windows platforms.
33726         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
33727         (main): Test the presence of UNINORM_NFC here.
33728         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
33729         (main): Test the presence of UNINORM_NFD here.
33730         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
33731         (main): Test the presence of UNINORM_NFKC here.
33732         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
33733         (main): Test the presence of UNINORM_NFKD here.
33734
33735 2009-04-19  Bruno Haible  <bruno@clisp.org>
33736
33737         Avoid a compiler warning.
33738         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
33739         Change type of variable 'sequence'.
33740
33741 2009-04-19  Bruno Haible  <bruno@clisp.org>
33742
33743         * modules/configmake (Makefile.am): When the contents of configmake.h
33744         does not change, arrange to preserve its modification time.
33745
33746 2009-04-17  Simon Josefsson  <simon@josefsson.org>
33747
33748         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
33749         gettext domain.
33750
33751 2009-04-16  Jim Meyering  <meyering@redhat.com>
33752
33753         useless-if-before-free: improve conversion code
33754         * build-aux/useless-if-before-free: Adjust code-in-comment to match
33755         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
33756
33757 2009-04-14  Bruno Haible  <bruno@clisp.org>
33758
33759         * modules/fcntl (Depends-on): Add extensions.
33760         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
33761
33762 2009-04-12  Ben Pfaff  <blp@gnu.org>
33763
33764         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
33765         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
33766
33767 2009-03-20  Ben Pfaff  <blp@gnu.org>
33768
33769         Make rename replace existing destinations on Windows.
33770         * m4/rename.m4: Add test for Mingw.
33771         * lib/rename.c: Add rename replacement that uses MoveFileEx with
33772         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
33773         * doc/posix-functions/rename.texi: Document.
33774
33775 2009-04-10  Bruno Haible  <bruno@clisp.org>
33776
33777         New include file "iconveh.h".
33778         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
33779         * lib/striconveh.h: Include it.
33780         (enum iconv_ilseq_handler): Remove definition.
33781         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
33782         striconveh.h.
33783         * lib/striconveha.c: Include striconveh.h.
33784         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
33785         * modules/striconveh (Files): Add lib/iconveh.h.
33786         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
33787         lib/striconveh.h.
33788
33789 2009-04-10  Bruno Haible  <bruno@clisp.org>
33790
33791         * lib/uniconv.h: Update comment.
33792
33793 2009-04-10  Bruno Haible  <bruno@clisp.org>
33794
33795         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
33796         always.
33797         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
33798         * lib/unistr/u16-mbtouc-aux.c: Likewise.
33799         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
33800         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
33801         "unistring-notinline.h", so that the function gets defined always.
33802         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
33803         * lib/unistr/u8-uctomb.c: Likewise.
33804         * lib/unistr/u16-mbtouc.c: Likewise.
33805         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
33806         * lib/unistr/u16-uctomb.c: Likewise.
33807         * lib/unistr/u32-mbtouc.c: Likewise.
33808         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
33809         * lib/unistr/u32-uctomb.c: Likewise.
33810
33811 2009-04-10  Bruno Haible  <bruno@clisp.org>
33812
33813         Mark 'utime' obsolete.
33814         * modules/utime (Status, Notice): New sections.
33815         Suggested by Jim Meyering.
33816
33817         Fix cross-compile guess for utime test.
33818         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
33819         autoconf.
33820         * doc/posix-functions/utime.texi: Give more precisions.
33821         Reported by Jan <ipif@ymail.com>.
33822
33823 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
33824
33825         filevercmp: correct today's change
33826         * lib/filevercmp.c: Also handle coreutils' test inputs.
33827         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
33828
33829         Fix regression in 'filevercmp' module. Thanks Sven Joachim
33830         for reporting it.
33831         * lib/filevercmp.c: Special handle for "", "." and "..".
33832         * tests/test-filevercmp.c: Enlarge the set suite.
33833
33834 2009-04-07  Jim Meyering  <meyering@redhat.com>
33835
33836         useless-if-before-free: show how to remove braced useless free, too
33837         * build-aux/useless-if-before-free: still only in a comment, though.
33838
33839 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
33840
33841         maint.mk: import changes to syntax-check macros from coreutils
33842         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
33843         Use them in the relevant macros.
33844
33845 2009-04-06  Bruno Haible  <bruno@clisp.org>
33846
33847         Fix unportable use of bit-fields.
33848         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
33849         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
33850         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
33851
33852 2009-04-06  Bruno Haible  <bruno@clisp.org>
33853
33854         Avoid test failures on AIX and OSF/1.
33855         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
33856         that malloc(0) = NULL.
33857         * tests/unicase/test-u8-tolower.c (check): Likewise.
33858         * tests/unicase/test-u8-totitle.c (check): Likewise.
33859         * tests/unicase/test-u8-toupper.c (check): Likewise.
33860         * tests/unicase/test-u16-casefold.c (check): Likewise.
33861         * tests/unicase/test-u16-tolower.c (check): Likewise.
33862         * tests/unicase/test-u16-totitle.c (check): Likewise.
33863         * tests/unicase/test-u16-toupper.c (check): Likewise.
33864         * tests/unicase/test-u32-casefold.c (check): Likewise.
33865         * tests/unicase/test-u32-tolower.c (check): Likewise.
33866         * tests/unicase/test-u32-totitle.c (check): Likewise.
33867         * tests/unicase/test-u32-toupper.c (check): Likewise.
33868         * tests/uninorm/test-u8-nfc.c (check): Likewise.
33869         * tests/uninorm/test-u8-nfd.c (check): Likewise.
33870         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
33871         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
33872         * tests/uninorm/test-u16-nfc.c (check): Likewise.
33873         * tests/uninorm/test-u16-nfd.c (check): Likewise.
33874         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
33875         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
33876         * tests/uninorm/test-u32-nfc.c (check): Likewise.
33877         * tests/uninorm/test-u32-nfd.c (check): Likewise.
33878         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
33879         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
33880
33881 2009-04-05  Bruno Haible  <bruno@clisp.org>
33882
33883         Work around an autoconf limitation.
33884         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
33885         comment line if it would be longer than 3 KB.
33886
33887 2009-04-05  Bruno Haible  <bruno@clisp.org>
33888
33889         Avoid test failure with libiconv-1.13.
33890         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
33891         of the expected test results.
33892
33893 2009-04-05  Bruno Haible  <bruno@clisp.org>
33894
33895         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
33896         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
33897         that it should be installed.
33898
33899 2009-04-05  Bruno Haible  <bruno@clisp.org>
33900
33901         * gnulib-tool: New option --copy-file.
33902         (func_usage): Document it.
33903         (func_dest_tmpfilename): Moved out of func_import.
33904         (func_add_file, func_update_file): New functions, extracted from
33905         func_import.
33906         (func_import): Update.
33907
33908 2009-04-05  Karl Berry  <karl@gnu.org>
33909
33910         * README: prominently mention gnulib-tool.
33911         Rearrange sections so getting the code is near the top.
33912
33913 2009-04-05  Bruno Haible  <bruno@clisp.org>
33914
33915         * lib/unicase.h: Mention u*_cmp2.
33916         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
33917         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
33918         * lib/unicase/ulc-casecmp.c: Likewise.
33919         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
33920         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
33921         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
33922         unistr/u8-cmp.
33923         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
33924         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
33925         unistr/u16-cmp.
33926         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
33927         unistr/u32-cmp.
33928
33929         * lib/uninorm.h: Mention u*_cmp2.
33930         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
33931         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
33932         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
33933         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
33934         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
33935         unistr/u8-cmp.
33936         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
33937         unistr/u16-cmp.
33938         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
33939         unistr/u32-cmp.
33940
33941         New module 'unistr/u32-cmp2'.
33942         * lib/unistr/u32-cmp2.c: New file.
33943         * modules/unistr/u32-cmp2: New file.
33944
33945         New module 'unistr/u16-cmp2'.
33946         * lib/unistr/u16-cmp2.c: New file.
33947         * modules/unistr/u16-cmp2: New file.
33948
33949         New module 'unistr/u8-cmp2'.
33950         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
33951         * lib/unistr/u8-cmp2.c: New file.
33952         * lib/unistr/u-cmp2.h: New file.
33953         * modules/unistr/u8-cmp2: New file.
33954
33955 2009-04-05  Bruno Haible  <bruno@clisp.org>
33956
33957         * lib/unictype.h (uc_property_is_valid): New macro.
33958         * tests/unictype/test-pr_byname.c (main): Use it.
33959
33960         * lib/unistr.h: Doc fixes.
33961         * lib/uniconv.h: Doc fixes.
33962         * lib/unictype.h: Doc fixes.
33963
33964 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
33965
33966         Port coreutils 7.2 to Solaris 8.
33967
33968         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
33969         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
33970         for Solaris 8.  This is a bit of a hack, as it means it's the
33971         caller's responsibility to add -lnsl if needed, but most likely it
33972         won't be needed since only getaddrinfo uses this and getaddrinfo
33973         isn't needed on Solaris 8.
33974
33975         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
33976         problem to Solaris 8 encountered with coreutils 7.2, which
33977         resulted in a message "fnmatch.c:292: warning: passing argument 4
33978         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
33979         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
33980
33981 2009-04-03  Simon Josefsson  <simon@josefsson.org>
33982
33983         * m4/ld-version-script.m4: Add FIXME comment.
33984
33985 2009-04-02  Simon Josefsson  <simon@josefsson.org>
33986
33987         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
33988         SOVERSION variable.
33989
33990 2009-04-02  Bruno Haible  <bruno@clisp.org>
33991
33992         * Makefile (info, html, dvi, pdf): Combine the rules.
33993         Suggested by Jim Meyering.
33994
33995 2009-04-01  Bruno Haible  <bruno@clisp.org>
33996
33997         * Makefile (info, html, dvi, pdf): New targets.
33998         Reported by Reuben Thomas <rrt@sc3d.org>.
33999
34000 2009-04-01  Bruno Haible  <bruno@clisp.org>
34001
34002         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
34003         can be put into PATH.
34004         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
34005
34006 2009-04-01  Bruno Haible  <bruno@clisp.org>
34007
34008         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
34009
34010 2009-04-01  Bruno Haible  <bruno@clisp.org>
34011
34012         Rename module 'visibility'.
34013         * modules/lib-symbol-visibility: Renamed from modules/visibility.
34014         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
34015         * doc/gnulib.texi: Update.
34016         * MODULES.html.sh (Misc): Update.
34017         * NEWS: Mention the change.
34018
34019 2009-04-01  Simon Josefsson  <simon@josefsson.org>
34020
34021         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
34022         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
34023         Eric Blake <ebb9@byu.net> for review.
34024         * MODULES.html.sh: Add lib-msvc-compat.
34025         * doc/gnulib.texi: Link to new section.
34026         * m4/ld-output-def.m4: New file.
34027         * doc/ld-output-def.texi: New file.
34028
34029 2009-04-01  Simon Josefsson  <simon@josefsson.org>
34030
34031         Rename ld-version-script to lib-symbol-versions.  Suggested by
34032         Bruno Haible <bruno@clisp.org>.
34033         * modules/ld-version-script: Renamed to lib-symbol-versions.
34034         * doc/ld-version-script.texi: Fix module name.
34035         * MODULES.html.sh: Add lib-symbol-versions.
34036
34037 2009-03-31  Simon Josefsson  <simon@josefsson.org>
34038
34039         * modules/u64-tests: New file.
34040         * tests/test-u64.c: New file.
34041
34042 2009-03-04  Simon Josefsson  <simon@josefsson.org>
34043
34044         * MODULES.html.sh: Mention u64.
34045         * modules/u64: New module.
34046         * modules/crypto/sha512: Depend on u64 module instead of providing
34047         u64.h.
34048
34049 2009-03-27  Eric Blake  <ebb9@byu.net>
34050
34051         test-strerror: make debugging EAI_SYSTEM easier
34052         * modules/getaddrinfo-tests (Depends-on): Add strerror.
34053         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
34054         failure was EAI_SYSTEM.
34055
34056 2009-03-25  Bruno Haible  <bruno@clisp.org>
34057
34058         Fix a problem with --enable-relocatable on Solaris 7.
34059         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
34060         since 2008-02-24.
34061
34062 2009-03-25  Eric Blake  <ebb9@byu.net>
34063
34064         test-sockets: avoid gcc warning
34065         * tests/test-sockets.c (main): Silence compiler warning.
34066
34067 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
34068
34069         New modules nproc, pthread, contributed by Glen Lenker.
34070
34071         * MODULES.html.sh: Add pthread, nproc.
34072         * lib/nproc.c: New file.
34073         * lib/nproc.h: New file.
34074         * lib/pthread.in.h: New file.
34075         * m4/pthread.m4: New file.
34076         * modules/nproc: New file.
34077         * modules/pthread: New file.
34078
34079 2009-03-24  Simon Josefsson  <simon@josefsson.org>
34080
34081         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
34082         New variable.
34083
34084 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
34085
34086         filevercmp: handle simple~ and numbered.~3~ backup suffixes
34087         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
34088         * tests/test-filevercmp.c: Add tests for backup suffixes.
34089
34090 2009-03-24  Simon Josefsson  <simon@josefsson.org>
34091
34092         * modules/stdlib (Depends-on): Add stdint, needed when defining
34093         struct random_data on, for example, HP-UX 10.20.  Reported by
34094         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
34095
34096 2009-03-24  Simon Josefsson  <simon@josefsson.org>
34097
34098         * lib/readline.c (readline): Call fflush on stdout after printing
34099         prompt.
34100
34101 2009-03-20  Bruno Haible  <bruno@clisp.org>
34102
34103         Remove dependency from 'close' module to -lws2_32 on native Windows.
34104         * lib/close-hook.h: New file.
34105         * lib/close-hook.c: New file.
34106         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
34107         w32sock.h.
34108         (_gl_close_fd_maybe_socket): Remove function.
34109         (rpl_close): Invoke execute_all_close_hooks instead of
34110         _gl_close_fd_maybe_socket.
34111         * lib/sockets.c: Include close-hook.h, w32sock.h.
34112         (close_fd_maybe_socket): New function, essentially from lib/close.c.
34113         (close_sockets_hook): New variable.
34114         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
34115         (gl_sockets_cleanup): Unregister it.
34116         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
34117         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
34118         * modules/close-hook: New file.
34119         * modules/close (Files): Remove lib/w32sock.h.
34120         (Depends-on): Add close-hook.
34121         (Link): Remove section.
34122         * modules/sockets (Files): Add lib/w32sock.h.
34123         (Depends-on): Add close-hook.
34124         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
34125         invocation.
34126         * NEWS: Mention that LIB_CLOSE is gone.
34127
34128 2009-03-23  Eric Blake  <ebb9@byu.net>
34129
34130         signal-tests: test previous patch
34131         * tests/test-signal.c: New file.
34132         * modules/signal-tests: Likewise.
34133
34134         signal.h: always support 'volatile sig_atomic_t'
34135         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
34136         (gl_SIGNAL_H_DEFAULTS): Add a default.
34137         * modules/signal (Makefile.am): Substitute if needed.
34138         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
34139         users can blindly add volatile.
34140         * doc/posix-headers/signal.texi (signal.h): Document it.
34141         Reported by Matthew Woehlke.
34142
34143 2009-03-23  Jim Meyering  <meyering@redhat.com>
34144
34145         pathmax: PATH_MAX: use pathconf only when available
34146         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
34147         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
34148         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
34149         This avoids a link failure in a PSP cross-compilation environment
34150         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
34151
34152         * lib/vasnprintf.c (divide): Fix typo in comment.
34153
34154 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34155
34156         * gnulib-tool (func_filter_filelist): Fix comment.
34157
34158 2009-03-20  Bruno Haible  <bruno@clisp.org>
34159
34160         Make sockets.h self-contained.
34161         * lib/sockets.c: Include sockets.h first.
34162         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
34163
34164 2009-03-19  Eric Blake  <ebb9@byu.net>
34165
34166         doc: mention more functions added in cygwin 1.7.0
34167         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
34168         addition.
34169         * doc/posix-functions/log2f.texi: Likewise.
34170
34171 2009-03-19  Jim Meyering  <meyering@redhat.com>
34172
34173         fsusage: avoid syntax error due to statement-before-declaration
34174         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
34175         after all declarations.  Reported by Matthew Woehlke in
34176         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
34177
34178 2009-03-18  Eric Blake  <ebb9@byu.net>
34179
34180         build-aux/compile: sync from automake
34181         * build-aux/compile: New file, from automake.
34182         * config/srclist.txt: Mention build-aux/compile.
34183
34184 2009-03-17  Bruno Haible  <bruno@clisp.org>
34185
34186         * lib/git-merge-changelog.c: Fix typo in comment.
34187         Reported by Reuben Thomas <rrt@sc3d.org>.
34188
34189 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
34190
34191         * m4/regex.m4: update and improve help for
34192         --without-included-regex.
34193
34194 2009-03-17  Simon Josefsson  <simon@josefsson.org>
34195
34196         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
34197         failure on missing include files.
34198
34199 2009-03-17  Eric Blake  <ebb9@byu.net>
34200
34201         doc: mention more functions added in cygwin 1.7.0
34202         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
34203         addition.
34204         * doc/posix-functions/fwscanf.texi: Likewise.
34205         * doc/posix-functions/swprintf.texi: Likewise.
34206         * doc/posix-functions/swscanf.texi: Likewise.
34207         * doc/posix-functions/vfwprintf.texi: Likewise.
34208         * doc/posix-functions/vfwscanf.texi: Likewise.
34209         * doc/posix-functions/vswprintf.texi: Likewise.
34210         * doc/posix-functions/vswscanf.texi: Likewise.
34211         * doc/posix-functions/vwprintf.texi: Likewise.
34212         * doc/posix-functions/vwscanf.texi: Likewise.
34213         * doc/posix-functions/wcscasecmp.texi: Likewise.
34214         * doc/posix-functions/wcsdup.texi: Likewise.
34215         * doc/posix-functions/wcsftime.texi: Likewise.
34216         * doc/posix-functions/wcsncasecmp.texi: Likewise.
34217         * doc/posix-functions/wprintf.texi: Likewise.
34218         * doc/posix-functions/wscanf.texi: Likewise.
34219         * doc/glibc-functions/gethostbyname2.texi: Likewise.
34220
34221 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34222
34223         maint.mk: really add $(AM_MAKEFLAGS)
34224         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
34225         was inadvertently omitted in the last commit.
34226         Spotted by Bruno Haible.
34227
34228         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
34229         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
34230         $(AM_MAKEFLAGS)' rather than plain `make'.
34231
34232         gnulib-tool: execute $MAKE not make
34233         * gnulib-tool: Default $MAKE to 'make'.
34234         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
34235         than make.  Initialize $MAKE in the do-autobuild script.
34236
34237         gnulib-tool: use $MAKE not make in generated files
34238         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
34239         make, in generated files.  Initialize $MAKE in the do-autobuild
34240         script.
34241
34242         * top/GNUmakefile (_have-git-version-gen): Fix typo.
34243
34244         GNUmakefile: disable parallelism only for multiple, recursive targets
34245         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
34246         additions in the Makefile.
34247         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
34248         by Automake.
34249         (.NOTPARALLEL): Only disable parallel builds if multiple targets
34250         are listed on the command line and at least one of them is
34251         listed in $(ALL_RECURSIVE_TARGETS).
34252
34253 2009-03-14  Bruno Haible  <bruno@clisp.org>
34254
34255         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
34256         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
34257         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
34258         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
34259         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
34260         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
34261         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
34262         unistr/u8-uctomb.
34263         * modules/unistr/u8-strchr (Depends-on): Likewise.
34264         * modules/unistr/u8-strrchr (Depends-on): Likewise.
34265         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
34266         unistr/u16-uctomb.
34267         * modules/unistr/u16-strchr (Depends-on): Likewise.
34268         * modules/unistr/u16-strrchr (Depends-on): Likewise.
34269
34270 2009-03-12  Bruno Haible  <bruno@clisp.org>
34271
34272         Work around select() bug on Interix 3.5.
34273         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
34274         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
34275         * m4/select.m4: New file.
34276         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
34277         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
34278         * modules/select (Files): Add m4/select.m4.
34279         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
34280         * modules/nanosleep (Depends-on): Add select.
34281         * modules/poll (Depends-on): Likewise.
34282         * doc/posix-functions/select.texi: Mention the Interix bug.
34283         Reported by Markus Duft <mduft@gentoo.org>.
34284
34285         * lib/select.c: Renamed from lib/winsock-select.c.
34286         * modules/select (Files): Add lib/select.c, remove
34287         lib/winsock-select.c.
34288         (configure.ac): Update.
34289
34290 2009-03-12  Jim Meyering  <meyering@redhat.com>
34291
34292         avoid gcc warnings about unused macro definitions
34293         * lib/readtokens.c (STREQ): Remove unused definition.
34294         * lib/xmalloc.c (SIZE_MAX): Likewise.
34295         * lib/openat-die.c (N_): Likewise.
34296         * lib/mountlist.c (SIZE_MAX): Remove definition.
34297         Instead, include <stdint.h>.
34298         * lib/readutmp.c: Likewise.
34299         * modules/readutmp (Depends-on): Add stdint.
34300         * modules/mountlist (Depends-on): Add stdint.
34301         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
34302
34303 2009-03-10  Bruno Haible  <bruno@clisp.org>
34304
34305         Tests for module 'mbmemcasecoll'.
34306         * modules/mbmemcasecoll-tests: New file.
34307         * tests/test-mbmemcasecoll1.sh: New file.
34308         * tests/test-mbmemcasecoll2.sh: New file.
34309         * tests/test-mbmemcasecoll3.sh: New file.
34310         * tests/test-mbmemcasecoll.c: New file.
34311
34312         New module 'mbmemcasecoll'.
34313         * lib/mbmemcasecoll.h: New file.
34314         * lib/mbmemcasecoll.c: New file.
34315         * modules/mbmemcasecoll: New file.
34316
34317         * tests/test-mbmemcasecmp.h: New file, extracted from
34318         tests/test-mbmemcasecmp.c.
34319         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
34320         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
34321         (main): Update.
34322         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
34323
34324 2009-03-09  Bruno Haible  <bruno@clisp.org>
34325
34326         Tests for module 'mbmemcasecmp'.
34327         * modules/mbmemcasecmp-tests: New file.
34328         * tests/test-mbmemcasecmp1.sh: New file.
34329         * tests/test-mbmemcasecmp2.sh: New file.
34330         * tests/test-mbmemcasecmp3.sh: New file.
34331         * tests/test-mbmemcasecmp.c: New file.
34332
34333         New module 'mbmemcasecmp'.
34334         * lib/mbmemcasecmp.h: New file.
34335         * lib/mbmemcasecmp.c: New file.
34336         * modules/mbmemcasecmp: New file.
34337
34338 2009-03-09  Bruno Haible  <bruno@clisp.org>
34339
34340         Tests for module 'unicase/ulc-casecoll'.
34341         * modules/unicase/ulc-casecoll-tests: New file.
34342         * tests/unicase/test-ulc-casecoll1.sh: New file.
34343         * tests/unicase/test-ulc-casecoll2.sh: New file.
34344         * tests/unicase/test-ulc-casecoll.c: New file.
34345
34346         New module 'unicase/ulc-casecoll'.
34347         * lib/unicase.h (ulc_casecoll): New declaration.
34348         * lib/unicase/ulc-casecoll.c: New file.
34349         * modules/unicase/ulc-casecoll: New file.
34350
34351         New module 'unicase/ulc-casexfrm'.
34352         * lib/unicase.h (ulc_casexfrm): New declaration.
34353         * lib/unicase/ulc-casexfrm.c: New file.
34354         * modules/unicase/ulc-casexfrm: New file.
34355
34356 2009-03-09  Bruno Haible  <bruno@clisp.org>
34357
34358         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
34359         invocations.
34360
34361         * m4/mbscasecmp.m4: Remove file.
34362         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
34363         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
34364
34365         * m4/mbscasestr.m4: Remove file.
34366         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
34367         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
34368
34369         * m4/mbschr.m4: Remove file.
34370         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
34371         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
34372
34373         * m4/mbscspn.m4: Remove file.
34374         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
34375         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
34376
34377         * m4/mbslen.m4: Remove file.
34378         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
34379         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
34380
34381         * m4/mbsncasecmp.m4: Remove file.
34382         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
34383         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
34384
34385         * m4/mbsnlen.m4: Remove file.
34386         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
34387         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
34388
34389         * m4/mbspbrk.m4: Remove file.
34390         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
34391         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
34392
34393         * m4/mbspcasecmp.m4: Remove file.
34394         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
34395         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
34396
34397         * m4/mbsrchr.m4: Remove file.
34398         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
34399         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
34400
34401         * m4/mbssep.m4: Remove file.
34402         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
34403         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
34404
34405         * m4/mbsspn.m4: Remove file.
34406         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
34407         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
34408
34409         * m4/mbsstr.m4: Remove file.
34410         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
34411         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
34412
34413         * m4/mbstok_r.m4: Remove file.
34414         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
34415         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
34416
34417         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
34418
34419         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
34420         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
34421
34422         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
34423
34424 2009-03-08  Bruno Haible  <bruno@clisp.org>
34425
34426         Tests for module 'unicase/ulc-casecmp'.
34427         * modules/unicase/ulc-casecmp-tests: New file.
34428         * tests/unicase/test-ulc-casecmp1.sh: New file.
34429         * tests/unicase/test-ulc-casecmp2.sh: New file.
34430         * tests/unicase/test-ulc-casecmp.c: New file.
34431
34432         New module 'unicase/ulc-casecmp'.
34433         * lib/unicase.h (ulc_casecmp): New declaration.
34434         * lib/unicase/ulc-casecmp.c: New file.
34435         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
34436         'const SRC_UNIT *'.
34437         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
34438         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
34439         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
34440         * modules/unicase/ulc-casecmp: New file.
34441
34442         Tests for module 'unicase/u32-is-cased'.
34443         * modules/unicase/u32-is-cased-tests: New file.
34444         * tests/unicase/test-u32-is-cased.c: New file.
34445
34446         Tests for module 'unicase/u16-is-cased'.
34447         * modules/unicase/u16-is-cased-tests: New file.
34448         * tests/unicase/test-u16-is-cased.c: New file.
34449
34450         Tests for module 'unicase/u8-is-cased'.
34451         * modules/unicase/u8-is-cased-tests: New file.
34452         * tests/unicase/test-u8-is-cased.c: New file.
34453         * tests/unicase/test-is-cased.h: New file.
34454
34455         New module 'unicase/u32-is-cased'.
34456         * lib/unicase/u32-is-cased.c: New file.
34457         * modules/unicase/u32-is-cased: New file.
34458
34459         New module 'unicase/u16-is-cased'.
34460         * lib/unicase/u16-is-cased.c: New file.
34461         * modules/unicase/u16-is-cased: New file.
34462
34463         New module 'unicase/u8-is-cased'.
34464         * lib/unicase/u8-is-cased.c: New file.
34465         * lib/unicase/u-is-cased.h: New file.
34466         * modules/unicase/u8-is-cased: New file.
34467
34468         Tests for module 'unicase/u32-is-casefolded'.
34469         * modules/unicase/u32-is-casefolded-tests: New file.
34470         * tests/unicase/test-u32-is-casefolded.c: New file.
34471
34472         Tests for module 'unicase/u16-is-casefolded'.
34473         * modules/unicase/u16-is-casefolded-tests: New file.
34474         * tests/unicase/test-u16-is-casefolded.c: New file.
34475
34476         Tests for module 'unicase/u8-is-casefolded'.
34477         * modules/unicase/u8-is-casefolded-tests: New file.
34478         * tests/unicase/test-u8-is-casefolded.c: New file.
34479         * tests/unicase/test-is-casefolded.h: New file.
34480
34481         New module 'unicase/u32-is-casefolded'.
34482         * lib/unicase/u32-is-casefolded.c: New file.
34483         * modules/unicase/u32-is-casefolded: New file.
34484
34485         New module 'unicase/u16-is-casefolded'.
34486         * lib/unicase/u16-is-casefolded.c: New file.
34487         * modules/unicase/u16-is-casefolded: New file.
34488
34489         New module 'unicase/u8-is-casefolded'.
34490         * lib/unicase/u8-is-casefolded.c: New file.
34491         * modules/unicase/u8-is-casefolded: New file.
34492
34493         Tests for module 'unicase/u32-is-titlecase'.
34494         * modules/unicase/u32-is-titlecase-tests: New file.
34495         * tests/unicase/test-u32-is-titlecase.c: New file.
34496
34497         Tests for module 'unicase/u16-is-titlecase'.
34498         * modules/unicase/u16-is-titlecase-tests: New file.
34499         * tests/unicase/test-u16-is-titlecase.c: New file.
34500
34501         Tests for module 'unicase/u8-is-titlecase'.
34502         * modules/unicase/u8-is-titlecase-tests: New file.
34503         * tests/unicase/test-u8-is-titlecase.c: New file.
34504         * tests/unicase/test-is-titlecase.h: New file.
34505
34506         New module 'unicase/u32-is-titlecase'.
34507         * lib/unicase/u32-is-titlecase.c: New file.
34508         * modules/unicase/u32-is-titlecase: New file.
34509
34510         New module 'unicase/u16-is-titlecase'.
34511         * lib/unicase/u16-is-titlecase.c: New file.
34512         * modules/unicase/u16-is-titlecase: New file.
34513
34514         New module 'unicase/u8-is-titlecase'.
34515         * lib/unicase/u8-is-titlecase.c: New file.
34516         * modules/unicase/u8-is-titlecase: New file.
34517
34518         Tests for module 'unicase/u32-is-lowercase'.
34519         * modules/unicase/u32-is-lowercase-tests: New file.
34520         * tests/unicase/test-u32-is-lowercase.c: New file.
34521
34522         Tests for module 'unicase/u16-is-lowercase'.
34523         * modules/unicase/u16-is-lowercase-tests: New file.
34524         * tests/unicase/test-u16-is-lowercase.c: New file.
34525
34526         Tests for module 'unicase/u8-is-lowercase'.
34527         * modules/unicase/u8-is-lowercase-tests: New file.
34528         * tests/unicase/test-u8-is-lowercase.c: New file.
34529         * tests/unicase/test-is-lowercase.h: New file.
34530
34531         New module 'unicase/u32-is-lowercase'.
34532         * lib/unicase/u32-is-lowercase.c: New file.
34533         * modules/unicase/u32-is-lowercase: New file.
34534
34535         New module 'unicase/u16-is-lowercase'.
34536         * lib/unicase/u16-is-lowercase.c: New file.
34537         * modules/unicase/u16-is-lowercase: New file.
34538
34539         New module 'unicase/u8-is-lowercase'.
34540         * lib/unicase/u8-is-lowercase.c: New file.
34541         * modules/unicase/u8-is-lowercase: New file.
34542
34543         Tests for module 'unicase/u32-is-uppercase'.
34544         * modules/unicase/u32-is-uppercase-tests: New file.
34545         * tests/unicase/test-u32-is-uppercase.c: New file.
34546
34547         Tests for module 'unicase/u16-is-uppercase'.
34548         * modules/unicase/u16-is-uppercase-tests: New file.
34549         * tests/unicase/test-u16-is-uppercase.c: New file.
34550
34551         Tests for module 'unicase/u8-is-uppercase'.
34552         * modules/unicase/u8-is-uppercase-tests: New file.
34553         * tests/unicase/test-u8-is-uppercase.c: New file.
34554         * tests/unicase/test-is-uppercase.h: New file.
34555
34556         New module 'unicase/u32-is-uppercase'.
34557         * lib/unicase/u32-is-uppercase.c: New file.
34558         * modules/unicase/u32-is-uppercase: New file.
34559
34560         New module 'unicase/u16-is-uppercase'.
34561         * lib/unicase/u16-is-uppercase.c: New file.
34562         * modules/unicase/u16-is-uppercase: New file.
34563
34564         New module 'unicase/u8-is-uppercase'.
34565         * lib/unicase/u8-is-uppercase.c: New file.
34566         * modules/unicase/u8-is-uppercase: New file.
34567
34568         New module 'unicase/u32-is-invariant'.
34569         * lib/unicase/u32-is-invariant.c: New file.
34570         * modules/unicase/u32-is-invariant: New file.
34571
34572         New module 'unicase/u16-is-invariant'.
34573         * lib/unicase/u16-is-invariant.c: New file.
34574         * modules/unicase/u16-is-invariant: New file.
34575
34576         New module 'unicase/u8-is-invariant'.
34577         * lib/unicase/u8-is-invariant.c: New file.
34578         * lib/unicase/invariant.h: New file.
34579         * lib/unicase/u-is-invariant.h: New file.
34580         * modules/unicase/u8-is-invariant: New file.
34581
34582         Tests for module 'unicase/u32-casecoll'.
34583         * modules/unicase/u32-casecoll-tests: New file.
34584         * tests/unicase/test-u32-casecoll.c: New file.
34585
34586         Tests for module 'unicase/u16-casecoll'.
34587         * modules/unicase/u16-casecoll-tests: New file.
34588         * tests/unicase/test-u16-casecoll.c: New file.
34589
34590         Tests for module 'unicase/u8-casecoll'.
34591         * modules/unicase/u8-casecoll-tests: New file.
34592         * tests/unicase/test-u8-casecoll.c: New file.
34593
34594         New module 'unicase/u32-casecoll'.
34595         * lib/unicase/u32-casecoll.c: New file.
34596         * modules/unicase/u32-casecoll: New file.
34597
34598         New module 'unicase/u16-casecoll'.
34599         * lib/unicase/u16-casecoll.c: New file.
34600         * modules/unicase/u16-casecoll: New file.
34601
34602         New module 'unicase/u8-casecoll'.
34603         * lib/unicase/u8-casecoll.c: New file.
34604         * lib/unicase/u-casecoll.h: New file.
34605         * modules/unicase/u8-casecoll: New file.
34606
34607         New module 'unicase/u32-casexfrm'.
34608         * lib/unicase/u32-casexfrm.c: New file.
34609         * modules/unicase/u32-casexfrm: New file.
34610
34611         New module 'unicase/u16-casexfrm'.
34612         * lib/unicase/u16-casexfrm.c: New file.
34613         * modules/unicase/u16-casexfrm: New file.
34614
34615         New module 'unicase/u8-casexfrm'.
34616         * lib/unicase/u8-casexfrm.c: New file.
34617         * lib/unicase/u-casexfrm.h: New file.
34618         * modules/unicase/u8-casexfrm: New file.
34619
34620         Tests for module 'unicase/u32-casecmp'.
34621         * modules/unicase/u32-casecmp-tests: New file.
34622         * tests/unicase/test-u32-casecmp.c: New file.
34623
34624         Tests for module 'unicase/u16-casecmp'.
34625         * modules/unicase/u16-casecmp-tests: New file.
34626         * tests/unicase/test-u16-casecmp.c: New file.
34627
34628         Tests for module 'unicase/u8-casecmp'.
34629         * modules/unicase/u8-casecmp-tests: New file.
34630         * tests/unicase/test-u8-casecmp.c: New file.
34631         * tests/unicase/test-casecmp.h: New file.
34632
34633         New module 'unicase/u32-casecmp'.
34634         * lib/unicase/u32-casecmp.c: New file.
34635         * modules/unicase/u32-casecmp: New file.
34636
34637         New module 'unicase/u16-casecmp'.
34638         * lib/unicase/u16-casecmp.c: New file.
34639         * modules/unicase/u16-casecmp: New file.
34640
34641         New module 'unicase/u8-casecmp'.
34642         * lib/unicase/u8-casecmp.c: New file.
34643         * lib/unicase/u-casecmp.h: New file.
34644         * modules/unicase/u8-casecmp: New file.
34645
34646         Tests for module 'unicase/u32-casefold'.
34647         * modules/unicase/u32-casefold-tests: New file.
34648         * tests/unicase/test-u32-casefold.c: New file.
34649
34650         Tests for module 'unicase/u16-casefold'.
34651         * modules/unicase/u16-casefold-tests: New file.
34652         * tests/unicase/test-u16-casefold.c: New file.
34653
34654         Tests for module 'unicase/u8-casefold'.
34655         * modules/unicase/u8-casefold-tests: New file.
34656         * tests/unicase/test-u8-casefold.c: New file.
34657
34658         New module 'unicase/u32-casefold'.
34659         * lib/unicase/u32-casefold.c: New file.
34660         * modules/unicase/u32-casefold: New file.
34661
34662         New module 'unicase/u16-casefold'.
34663         * lib/unicase/u16-casefold.c: New file.
34664         * modules/unicase/u16-casefold: New file.
34665
34666         New module 'unicase/u8-casefold'.
34667         * lib/unicase/u8-casefold.c: New file.
34668         * lib/unicase/u-casefold.h: New file.
34669         * modules/unicase/u8-casefold: New file.
34670
34671         New module 'unicase/tocasefold'.
34672         * lib/unicase/casefold.h: New file.
34673         * lib/unicase/tocasefold.c: New file.
34674         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
34675         * modules/unicase/tocasefold: New file.
34676
34677         Tests for module 'unicase/u32-totitle'.
34678         * modules/unicase/u32-totitle-tests: New file.
34679         * tests/unicase/test-u32-totitle.c: New file.
34680
34681         Tests for module 'unicase/u16-totitle'.
34682         * modules/unicase/u16-totitle-tests: New file.
34683         * tests/unicase/test-u16-totitle.c: New file.
34684
34685         Tests for module 'unicase/u8-totitle'.
34686         * modules/unicase/u8-totitle-tests: New file.
34687         * tests/unicase/test-u8-totitle.c: New file.
34688
34689         New module 'unicase/u32-totitle'.
34690         * lib/unicase/u32-totitle.c: New file.
34691         * modules/unicase/u32-totitle: New file.
34692
34693         New module 'unicase/u16-totitle'.
34694         * lib/unicase/u16-totitle.c: New file.
34695         * modules/unicase/u16-totitle: New file.
34696
34697         New module 'unicase/u8-totitle'.
34698         * lib/unicase/u8-totitle.c: New file.
34699         * lib/unicase/u-totitle.h: New file.
34700         * modules/unicase/u8-totitle: New file.
34701
34702         Tests for module 'unicase/u32-tolower'.
34703         * modules/unicase/u32-tolower-tests: New file.
34704         * tests/unicase/test-u32-tolower.c: New file.
34705
34706         Tests for module 'unicase/u16-tolower'.
34707         * modules/unicase/u16-tolower-tests: New file.
34708         * tests/unicase/test-u16-tolower.c: New file.
34709
34710         Tests for module 'unicase/u8-tolower'.
34711         * modules/unicase/u8-tolower-tests: New file.
34712         * tests/unicase/test-u8-tolower.c: New file.
34713
34714         New module 'unicase/u32-tolower'.
34715         * lib/unicase/u32-tolower.c: New file.
34716         * modules/unicase/u32-tolower: New file.
34717
34718         New module 'unicase/u16-tolower'.
34719         * lib/unicase/u16-tolower.c: New file.
34720         * modules/unicase/u16-tolower: New file.
34721
34722         New module 'unicase/u8-tolower'.
34723         * lib/unicase/u8-tolower.c: New file.
34724         * modules/unicase/u8-tolower: New file.
34725
34726         Tests for module 'unicase/u32-toupper'.
34727         * modules/unicase/u32-toupper-tests: New file.
34728         * tests/unicase/test-u32-toupper.c: New file.
34729
34730         Tests for module 'unicase/u16-toupper'.
34731         * modules/unicase/u16-toupper-tests: New file.
34732         * tests/unicase/test-u16-toupper.c: New file.
34733
34734         Tests for module 'unicase/u8-toupper'.
34735         * modules/unicase/u8-toupper-tests: New file.
34736         * tests/unicase/test-u8-toupper.c: New file.
34737
34738         New module 'unicase/u32-toupper'.
34739         * lib/unicase/u32-toupper.c: New file.
34740         * modules/unicase/u32-toupper: New file.
34741
34742         New module 'unicase/u16-toupper'.
34743         * lib/unicase/u16-toupper.c: New file.
34744         * modules/unicase/u16-toupper: New file.
34745
34746         New module 'unicase/u8-toupper'.
34747         * lib/unicase/u8-toupper.c: New file.
34748         * modules/unicase/u8-toupper: New file.
34749
34750         New module 'unicase/u32-casemap'.
34751         * lib/unicase/u32-casemap.c: New file.
34752         * modules/unicase/u32-casemap: New file.
34753
34754         New module 'unicase/u16-casemap'.
34755         * lib/unicase/u16-casemap.c: New file.
34756         * modules/unicase/u16-casemap: New file.
34757
34758         New module 'unicase/u8-casemap'.
34759         * lib/unicase/unicasemap.h: New file.
34760         * lib/unicase/u8-casemap.c: New file.
34761         * lib/unicase/u-casemap.h: New file.
34762         * modules/unicase/u8-casemap: New file.
34763
34764         New module 'unicase/special-casing'.
34765         * lib/unicase/special-casing.h: New file.
34766         * lib/unicase/special-casing.c: New file.
34767         * lib/unicase/special-casing-table.gperf: New file, generated by
34768         gen-uni-tables.c.
34769         * modules/unicase/special-casing: New file.
34770
34771         Tests for module 'unicase/locale-language'.
34772         * modules/unicase/locale-language-tests: New file.
34773         * tests/unicase/test-locale-language.sh: New file.
34774         * tests/unicase/test-locale-language.c: New file.
34775
34776         New module 'unicase/locale-language'.
34777         * lib/unicase/locale-language.c: New file.
34778         * lib/unicase/locale-languages.gperf: New file.
34779         * modules/unicase/locale-language: New file.
34780
34781         Generate more tables for case conversion and case folding.
34782         * lib/gen-uni-tables.c (SCC_*): New enum items.
34783         (struct special_casing_rule): New type.
34784         (casing_rules, num_casing_rules, allocated_casing_rules): New
34785         variables.
34786         (add_casing_rule, fill_casing_rules): New functions.
34787         (struct casefold_rule): New type.
34788         (casefolding_rules, num_casefolding_rules,
34789         allocated_casefolding_rules): New variables.
34790         (fill_casefolding_rules): New function.
34791         (unicode_casefold): New variable.
34792         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
34793         sort_casing_rules, output_casing_rules): New functions.
34794         (main): Accept to more arguments: SpecialCasing.txt and
34795         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
34796         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
34797         Output mapping for casefolding.
34798
34799         * lib/unicase.h: Include stdbool.h, uninorm.h.
34800         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
34801         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
34802         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
34803         arguments.
34804         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
34805         resultp arguments.
34806         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
34807         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
34808         resultp arguments.
34809         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
34810         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
34811         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
34812         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
34813         declarations.
34814         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
34815
34816 2009-03-08  Bruno Haible  <bruno@clisp.org>
34817
34818         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
34819         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
34820         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
34821         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
34822
34823 2009-03-07  Bruno Haible  <bruno@clisp.org>
34824
34825         Adjust u*_normcmp, u*_normcoll API.
34826         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
34827         u16_normcoll, u32_normcoll): Change failure conventions.
34828         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
34829         errno and return -1.
34830         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
34831
34832 2009-03-07  Bruno Haible  <bruno@clisp.org>
34833
34834         Tests for module 'uninorm/u32-normcoll'.
34835         * modules/uninorm/u32-normcoll-tests: New file.
34836         * tests/uninorm/test-u32-normcoll.c: New file.
34837
34838         Tests for module 'uninorm/u16-normcoll'.
34839         * modules/uninorm/u16-normcoll-tests: New file.
34840         * tests/uninorm/test-u16-normcoll.c: New file.
34841
34842         Tests for module 'uninorm/u8-normcoll'.
34843         * modules/uninorm/u8-normcoll-tests: New file.
34844         * tests/uninorm/test-u8-normcoll.c: New file.
34845
34846 2009-03-07  Bruno Haible  <bruno@clisp.org>
34847
34848         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
34849         tests/uninorm/test-u32-normcmp.c.
34850         * tests/uninorm/test-u32-normcmp.c: Include it.
34851         (test_nonascii): New function, extracted from main. Add some more
34852         tests.
34853         (main): Invoke test_ascii and test_nonascii.
34854         * modules/uninorm/u32-normcmp-tests (Files): Add
34855         tests/uninorm/test-u32-normcmp.h.
34856         (Depends-on): Remove uninorm/u32-normcmp.
34857
34858         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
34859         tests/uninorm/test-u16-normcmp.c.
34860         * tests/uninorm/test-u16-normcmp.c: Include it.
34861         (test_nonascii): New function, extracted from main. Add some more
34862         tests.
34863         (main): Invoke test_ascii and test_nonascii.
34864         * modules/uninorm/u16-normcmp-tests (Files): Add
34865         tests/uninorm/test-u16-normcmp.h.
34866         (Depends-on): Remove uninorm/u16-normcmp.
34867
34868         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
34869         tests/uninorm/test-u8-normcmp.c.
34870         * tests/uninorm/test-u8-normcmp.c: Include it.
34871         (test_nonascii): New function, extracted from main. Add some more
34872         tests.
34873         (main): Invoke test_ascii and test_nonascii.
34874         * modules/uninorm/u8-normcmp-tests (Files): Add
34875         tests/uninorm/test-u8-normcmp.h.
34876         (Depends-on): Remove uninorm/u8-normcmp.
34877
34878 2009-03-07  Bruno Haible  <bruno@clisp.org>
34879
34880         New module 'uninorm/u32-normcoll'.
34881         * lib/uninorm/u32-normcoll.c: New file.
34882         * modules/uninorm/u32-normcoll: New file.
34883
34884         New module 'uninorm/u16-normcoll'.
34885         * lib/uninorm/u16-normcoll.c: New file.
34886         * modules/uninorm/u16-normcoll: New file.
34887
34888         New module 'uninorm/u8-normcoll'.
34889         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
34890         declarations.
34891         * lib/uninorm/u8-normcoll.c: New file.
34892         * lib/uninorm/u-normcoll.h: New file.
34893         * modules/uninorm/u8-normcoll: New file.
34894
34895         New module 'uninorm/u32-normxfrm'.
34896         * lib/uninorm/u32-normxfrm.c: New file.
34897         * modules/uninorm/u32-normxfrm: New file.
34898
34899         New module 'uninorm/u16-normxfrm'.
34900         * lib/uninorm/u16-normxfrm.c: New file.
34901         * modules/uninorm/u16-normxfrm: New file.
34902
34903         New module 'uninorm/u8-normxfrm'.
34904         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
34905         declarations.
34906         * lib/uninorm/u8-normxfrm.c: New file.
34907         * lib/uninorm/u-normxfrm.h: New file.
34908         * modules/uninorm/u8-normxfrm: New file.
34909
34910 2009-03-07  Bruno Haible  <bruno@clisp.org>
34911
34912         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
34913         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
34914         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
34915
34916 2009-03-07  Bruno Haible  <bruno@clisp.org>
34917
34918         New module 'memxfrm'.
34919         * lib/memxfrm.h: New file.
34920         * lib/memxfrm.c: New file.
34921         * modules/memxfrm: New file.
34922
34923 2009-03-07  Bruno Haible  <bruno@clisp.org>
34924
34925         New module 'memcmp2'.
34926         * lib/memcmp2.h: New file.
34927         * lib/memcmp2.c: New file.
34928         * modules/memcmp2: New file.
34929
34930 2009-03-07  Bruno Haible  <bruno@clisp.org>
34931
34932         Tests for module 'uninorm/decomposing-form'.
34933         * modules/uninorm/decomposing-form-tests: New file.
34934         * tests/uninorm/test-decomposing-form.c: New file.
34935
34936         New module 'uninorm/decomposing-form'.
34937         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
34938         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
34939         Add 'decomposing_variant' field.
34940         * lib/uninorm/decomposing-form.c: New file.
34941         * lib/uninorm/nfc.c (uninorm_nfc): Update.
34942         * lib/uninorm/nfd.c (uninorm_nfd): Update.
34943         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
34944         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
34945         * modules/uninorm/decomposing-form: New file.
34946         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
34947         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
34948
34949 2009-03-07  Bruno Haible  <bruno@clisp.org>
34950
34951         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
34952         strings.
34953
34954 2009-03-06  Bruno Haible  <bruno@clisp.org>
34955
34956         Tests for module 'uninorm/u32-normcmp'.
34957         * tests/uninorm/test-u32-normcmp.c: New file.
34958         * modules/uninorm/u32-normcmp-tests: New file.
34959
34960         Tests for module 'uninorm/u16-normcmp'.
34961         * tests/uninorm/test-u16-normcmp.c: New file.
34962         * modules/uninorm/u16-normcmp-tests: New file.
34963
34964         Tests for module 'uninorm/u8-normcmp'.
34965         * tests/uninorm/test-u8-normcmp.c: New file.
34966         * modules/uninorm/u8-normcmp-tests: New file.
34967
34968         New module 'uninorm/u32-normcmp'.
34969         * lib/uninorm/u32-normcmp.c: New file.
34970         * modules/uninorm/u32-normcmp: New file.
34971
34972         New module 'uninorm/u16-normcmp'.
34973         * lib/uninorm/u16-normcmp.c: New file.
34974         * modules/uninorm/u16-normcmp: New file.
34975
34976         New module 'uninorm/u8-normcmp'.
34977         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
34978         declarations.
34979         * lib/uninorm/u8-normcmp.c: New file.
34980         * lib/uninorm/u-normcmp.h: New file.
34981         * modules/uninorm/u8-normcmp: New file.
34982
34983 2009-03-06  Bruno Haible  <bruno@clisp.org>
34984
34985         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
34986         Reported by Eric Blake.
34987
34988 2009-03-06  Eric Blake  <ebb9@byu.net>
34989             Bruno Haible  <bruno@clisp.org>
34990
34991         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
34992         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
34993         condition.
34994         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
34995         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
34996         condition.
34997         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
34998
34999 2009-03-06  Eric Blake  <ebb9@byu.net>
35000
35001         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
35002         to avoid compiler warnings.
35003         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
35004
35005 2009-03-05  Bruno Haible  <bruno@clisp.org>
35006
35007         * tests/test-ftell.c (main): Disable test beyond end of file on
35008         FreeMiNT.
35009         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
35010
35011 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
35012
35013         * lib/filevercmp.c: Move hidden files up in ordering.
35014         * tests/test-filevercmp.c: Add tests for hidden files.
35015
35016 2009-03-04  Bruno Haible  <bruno@clisp.org>
35017
35018         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
35019         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
35020         AM_CFLAGS.
35021         Reported by Simon Josefsson.
35022
35023 2009-03-03  Bruno Haible  <bruno@clisp.org>
35024
35025         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
35026         Reported by Simon Josefsson.
35027
35028         * doc/ld-version-script.texi: Update node reference.
35029
35030 2009-03-03  Bruno Haible  <bruno@clisp.org>
35031
35032         * modules/visibility (License): Change to 'unlimited'.
35033         Suggested by Simon Josefsson.
35034
35035 2009-03-03  Jim Meyering  <meyering@redhat.com>
35036
35037         unlinkdir: cannot_unlink_dir may modify process state
35038         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
35039         it's neither thread-safe nor appropriate for use in a library.
35040
35041 2009-03-03  Eric Blake  <ebb9@byu.net>
35042
35043         test-closein: silence test under Darwin
35044         * tests/test-closein.sh: Ignore stderr from cat, since we don't
35045         care if it dies from EPIPE or EBADF.
35046
35047 2009-03-03  Bruno Haible  <bruno@clisp.org>
35048
35049         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
35050         earlier.
35051         * doc/visibility.texi: Fix @node and @section.
35052
35053 2009-03-03  Simon Josefsson  <simon@josefsson.org>
35054
35055         * doc/gnulib.texi: Link to sections for ld version script and
35056         visibility.
35057         * doc/visibility.texi: Add @node and @section.
35058         * modules/ld-version-script: New module.
35059         * m4/ld-version-script.m4: New file.
35060         * doc/ld-version-script.texi: New file.
35061
35062 2009-03-02  David Lutterkort  <lutter@redhat.com>
35063
35064         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
35065         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35066
35067 2009-03-02  Bruno Haible  <bruno@clisp.org>
35068
35069         * doc/visibility.texi: Mention libtool's -export-symbols option.
35070
35071 2009-03-02  Jim Meyering  <meyering@redhat.com>
35072
35073         announce-gen: new option: --no-print-checksums
35074         * build-aux/announce-gen (usage): Describe it.
35075         (print_checksums): Print a newline here, not in the [*] footnote.
35076         (main): Honor it.
35077
35078 2009-03-01  Bruno Haible  <bruno@clisp.org>
35079
35080         Use socklen_t in the native Windows replacements prototypes.
35081         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
35082         instead of 'int'.
35083         * lib/getsockopt.c (rpl_getsockopt): Likewise.
35084         * lib/setsockopt.c (rpl_setsockopt): Likewise.
35085         * modules/getsockopt (Depends-on): Add socklen.
35086         * modules/setsockopt (Depends-on): Add socklen.
35087
35088 2009-03-01  Bruno Haible  <bruno@clisp.org>
35089
35090         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
35091         least 4.2.
35092
35093 2009-03-01  Eric Blake  <ebb9@byu.net>
35094             Bruno Haible  <bruno@clisp.org>
35095
35096         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
35097         error messages.
35098         * lib/wait-process.c (wait_subprocess): Omit error message about
35099         deadly signal sent to the child of termsigp != NULL.
35100
35101 2009-03-01  Eric Blake  <ebb9@byu.net>
35102
35103         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
35104
35105 2009-03-01  Bruno Haible  <bruno@clisp.org>
35106
35107         Avoid a gcc warning.
35108         * tests/test-sched.c (b): Make global.
35109         Reported by Eric Blake.
35110
35111 2009-01-19  Martin Lambers  <marlam@marlam.de>
35112
35113         Provide POSIX semantics for socket timeout options on W32.
35114         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
35115         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
35116         * modules/setsockopt: Depend on sys_time module for struct timeval.
35117         * modules/getsockopt: Depend on sys_time module for struct timeval.
35118
35119 2009-03-01  Simon Josefsson  <simon@josefsson.org>
35120
35121         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
35122         __USE_GNU, for consistency with netdb.in.h.
35123         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
35124
35125 2009-03-01  Bruno Haible  <bruno@clisp.org>
35126
35127         More support for FreeMiNT.
35128         * lib/fseeko.c (rpl_fseeko): Complete last commit.
35129         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
35130
35131 2009-03-01  Bruno Haible  <bruno@clisp.org>
35132
35133         More support for FreeMiNT.
35134         * lib/fpurge.c (fpurge): Correct last commit.
35135         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
35136
35137 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35138
35139         Fix unportable awk script in vc-list-files.
35140         * build-aux/vc-list-files: In the replacement awk script, use
35141         substr with a second argument of 1, not zero.
35142         Report by Simon Josefsson.
35143
35144 2009-02-28  Bruno Haible  <bruno@clisp.org>
35145
35146         More support for FreeMiNT.
35147         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
35148         to FreeMiNT today.
35149         * lib/fwriting.c (fwriting): Likewise.
35150         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
35151
35152 2009-02-28  Bruno Haible  <bruno@clisp.org>
35153
35154         * tests/test-freadseek.c (main): Disable test beyond end of file on
35155         FreeMiNT.
35156         * tests/test-ftello.c (main): Likewise.
35157         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
35158
35159 2009-02-28  Bruno Haible  <bruno@clisp.org>
35160
35161         Add tentative support for FreeMiNT.
35162         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
35163         * lib/fpurge.c (fpurge): Likewise.
35164         * lib/freadable.c (freadable): Likewise.
35165         * lib/freading.c (freading): Likewise.
35166         * lib/freadptr.c (freadptr): Likewise.
35167         * lib/freadseek.c (freadptrinc): Likewise.
35168         * lib/fseeko.c (rpl_fseeko): Likewise.
35169         * lib/fseterr.c (fseterr): Likewise.
35170         * lib/fwritable.c (fwritable): Likewise.
35171         * lib/fwriting.c (fwriting): Likewise.
35172         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
35173         Hourihane.
35174         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
35175
35176 2009-02-28  Bruno Haible  <bruno@clisp.org>
35177
35178         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
35179         SIGCHLD.
35180         Reported by Jim Meyering.
35181
35182 2009-02-28  Bruno Haible  <bruno@clisp.org>
35183
35184         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
35185         Mention the results of these tests on various platforms.
35186         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
35187         order.
35188         * doc/posix-functions/printf.texi: Likewise.
35189         * doc/posix-functions/snprintf.texi: Likewise.
35190         * doc/posix-functions/sprintf.texi: Likewise.
35191         * doc/posix-functions/vfprintf.texi: Likewise.
35192         * doc/posix-functions/vprintf.texi: Likewise.
35193         * doc/posix-functions/vsnprintf.texi: Likewise.
35194         * doc/posix-functions/vsprintf.texi: Likewise.
35195         * doc/glibc-functions/obstack_printf.texi: Likewise.
35196         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
35197
35198 2009-02-28  Bruno Haible  <bruno@clisp.org>
35199
35200         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
35201         Reported by Loïc Minier <lool@dooz.org>.
35202
35203 2009-02-27  Bruno Haible  <bruno@clisp.org>
35204
35205         * gnulib-tool (func_import): Make the sed expression used to create the
35206         sed script for updating the .gitignore file POSIX compliant.
35207         Reported by Eric Blake.
35208
35209 2009-02-27  Bruno Haible  <bruno@clisp.org>
35210
35211         * gnulib-tool (sed): Don't alias as "sed --posix".
35212         Reported by Eric Blake.
35213
35214 2009-02-27  Bruno Haible  <bruno@clisp.org>
35215
35216         Avoid test link errors.
35217         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
35218         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
35219         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
35220         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
35221         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35222
35223 2009-02-27  Bruno Haible  <bruno@clisp.org>
35224
35225         Avoid spurious "(cached)" in configure output.
35226         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
35227         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
35228         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
35229         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
35230         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
35231         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
35232         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
35233         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
35234         Reported by Eric Blake.
35235
35236 2009-02-27  Eric Blake  <ebb9@byu.net>
35237
35238         printf: fix regression in previous patch
35239         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
35240
35241 2009-02-27  Bruno Haible  <bruno@clisp.org>
35242
35243         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
35244         value.
35245         * lib/stdint.in.h: Likewise.
35246         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
35247
35248 2009-02-27  Eric Blake  <ebb9@byu.net>
35249
35250         doc: mention more functions added in cygwin 1.7.0
35251         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
35252         addition.
35253         * doc/posix-functions/open_wmemstream.texi: Likewise.
35254         * doc/posix-functions/wcsnlen.texi: Likewise.
35255         * doc/posix-functions/wcsnrtombs.texi: Likewise.
35256         * doc/posix-functions/wcstod.texi: Likewise.
35257         * doc/posix-functions/wcstof.texi: Likewise.
35258         * doc/posix-functions/wcstoimax.texi: Likewise.
35259         * doc/posix-functions/wcstok.texi: Likewise.
35260         * doc/posix-functions/wcstoumax.texi: Likewise.
35261
35262         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
35263         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
35264         * doc/posix-functions/fprintf.texi: Update.
35265         * doc/posix-functions/printf.texi: Update.
35266         * doc/posix-functions/snprintf.texi: Update.
35267         * doc/posix-functions/sprintf.texi: Update.
35268         * doc/posix-functions/vfprintf.texi: Update.
35269         * doc/posix-functions/vprintf.texi: Update.
35270         * doc/posix-functions/vsnprintf.texi: Update.
35271         * doc/posix-functions/vsprintf.texi: Update.
35272         * doc/glibc-functions/obstack_printf.texi: Update.
35273         * doc/glibc-functions/obstack_vprintf.texi: Update.
35274
35275 2009-02-26  Eric Blake  <ebb9@byu.net>
35276
35277         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
35278         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
35279         compilation bug by using runtime conversion.
35280         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
35281         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
35282         * modules/ceill-tests (Files): Use nan.h.
35283         * modules/floorl-tests (Files): Likewise.
35284         * modules/frexpl-tests (Files): Likewise.
35285         * modules/isnanl-tests (Files): Likewise.
35286         * modules/ldexpl-tests (Files): Likewise.
35287         * modules/roundl-tests (Files): Likewise.
35288         * modules/truncl-tests (Files): Likewise.
35289         * tests/test-ceill.c (main): Use a working NaN.
35290         * tests/test-floorl.c (main): Likewise.
35291         * tests/test-frexpl.c (main): Likewise.
35292         * tests/test-isnan.c (test_long_double): Likewise.
35293         * tests/test-isnanl.h (main): Likewise.
35294         * tests/test-ldexpl.h (main): Likewise.
35295         * tests/test-roundl.h (main): Likewise.
35296         * tests/test-truncl.h (main): Likewise.
35297         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
35298
35299 2009-02-26  Eric Blake  <ebb9@byu.net>
35300             Bruno Haible  <bruno@clisp.org>
35301
35302         Work around a *printf bug with %ls on Solaris.
35303         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
35304         precision is specified, sprintf stops converting the wide string
35305         argument when the number of bytes that have been produced by this
35306         conversion equals or exceeds the precision.
35307         * doc/posix-functions/fprintf.texi: Update.
35308         * doc/posix-functions/printf.texi: Update.
35309         * doc/posix-functions/snprintf.texi: Update.
35310         * doc/posix-functions/sprintf.texi: Update.
35311         * doc/posix-functions/vfprintf.texi: Update.
35312         * doc/posix-functions/vprintf.texi: Update.
35313         * doc/posix-functions/vsnprintf.texi: Update.
35314         * doc/posix-functions/vsprintf.texi: Update.
35315         * doc/glibc-functions/obstack_printf.texi: Update.
35316         * doc/glibc-functions/obstack_vprintf.texi: Update.
35317
35318 2009-02-26  Eric Blake  <ebb9@byu.net>
35319
35320         stdlib: favor compiler check of random.h
35321         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
35322         to avoid an ObjC random.h installed by Swarm.
35323
35324 2009-02-26  Bruno Haible  <bruno@clisp.org>
35325
35326         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
35327         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
35328         Reported by Gary V. Vaughan <gary@gnu.org>.
35329
35330 2009-02-26  Bruno Haible  <bruno@clisp.org>
35331
35332         Fix *printf behaviour regarding the %ls directive.
35333         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
35334         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
35335         NEED_PRINTF_DIRECTIVE_LS.
35336         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
35337         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
35338         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35339         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
35340         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
35341         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
35342         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
35343         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35344         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35345         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35346         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35347         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
35348         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35349         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35350         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35351         * doc/posix-functions/fprintf.texi: Update.
35352         * doc/posix-functions/printf.texi: Update.
35353         * doc/posix-functions/snprintf.texi: Update.
35354         * doc/posix-functions/sprintf.texi: Update.
35355         * doc/posix-functions/vfprintf.texi: Update.
35356         * doc/posix-functions/vprintf.texi: Update.
35357         * doc/posix-functions/vsnprintf.texi: Update.
35358         * doc/posix-functions/vsprintf.texi: Update.
35359         * doc/glibc-functions/obstack_printf.texi: Update.
35360         * doc/glibc-functions/obstack_vprintf.texi: Update.
35361         Reported by Eric Blake.
35362
35363 2009-02-25  Bruno Haible  <bruno@clisp.org>
35364
35365         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
35366         with known value.
35367         Reported by Gary V. Vaughan <gary@gnu.org>.
35368
35369 2009-02-25  Bruno Haible  <bruno@clisp.org>
35370
35371         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
35372         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
35373         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
35374         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
35375         Reported by Gary V. Vaughan <gary@gnu.org>.
35376
35377 2009-02-25  Bruno Haible  <bruno@clisp.org>
35378
35379         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
35380         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
35381         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
35382         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
35383         Reported by Gary V. Vaughan <gary@gnu.org>.
35384
35385 2009-02-25  Eric Blake  <ebb9@byu.net>
35386
35387         tests: skip fseek/ftell tests if ungetc is broken
35388         * m4/ungetc.m4: New file.
35389         * modules/fseek-tests: Split test, so ungetc dependency is
35390         separate from rest of test.
35391         * modules/fseeko-tests: Likewise.
35392         * modules/ftell-tests: Likewise.
35393         * modules/ftello-tests: Likewise.
35394         * tests/test-fseek.c (main): Isolate ungetc dependency.
35395         * tests/test-fseeko.c (main): Likewise.
35396         * tests/test-ftell.c (main): Likewise.
35397         * tests/test-ftello.c (main): Likewise.
35398         * tests/test-fseek2.sh: New file.
35399         * tests/test-fseeko2.sh: Likewise.
35400         * tests/test-ftell2.sh: Likewise.
35401         * tests/test-ftello2.sh: Likewise.
35402
35403 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
35404
35405         test-getaddrinfo: fix usage of skip return code 77
35406         * tests/test-gettaddrinfo.c: Return skip code 77 only
35407         for first occurance of skip (4x77 is not 77)
35408
35409 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
35410
35411         strtod: avoid C99 decl-after-statement
35412         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
35413
35414 2009-02-24  Eric Blake  <ebb9@byu.net>
35415
35416         strtod: detect HP-UX 11.31 bug
35417         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
35418         Reported by Gary V. Vaughan.
35419
35420 2009-02-23  Bruno Haible  <bruno@clisp.org>
35421
35422         Fix invalid read past end of memory block.
35423         * lib/vasnprintf.c (DCHAR_SET): Define.
35424         (local_wcslen): Define only when needed.
35425         (local_strnlen, local_wcsnlen): New functions.
35426         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
35427         directives that involve a conversion ourselves.
35428         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
35429         wcsnlen, mbrtowc, wcrtomb.
35430         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
35431         * tests/test-vasprintf-posix.c (test_function): Likewise.
35432         * tests/test-snprintf-posix.h (test_function): Likewise.
35433         * tests/test-sprintf-posix.h (test_function): Likewise.
35434         Reported by Ben Pfaff <blp@cs.stanford.edu>.
35435
35436 2009-02-22  Bruno Haible  <bruno@clisp.org>
35437
35438         Implement new clarified decomposition of Hangul syllables.
35439         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
35440         of type LTV, return only a pairwise decomposition.
35441         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
35442         Likewise.
35443         * tests/uninorm/test-decomposition.c (main): Updated expected result.
35444         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
35445         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
35446
35447 2009-02-22  Bruno Haible  <bruno@clisp.org>
35448
35449         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
35450         zero-length results and shrink excess allocated memory.
35451         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
35452         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
35453         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
35454         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
35455         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
35456         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
35457         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
35458         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
35459         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
35460         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
35461         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
35462         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
35463
35464 2009-02-21  Bruno Haible  <bruno@clisp.org>
35465
35466         * doc/gnulib.texi: Include safe-alloc.texi earlier.
35467         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
35468         spaces after a period. Put a space between a macro name and its
35469         argument list. Trivial rewordings.
35470         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
35471         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
35472         (main): Return 0 explicitly.
35473
35474 2009-02-21  Bruno Haible  <bruno@clisp.org>
35475
35476         Tests for module 'uninorm/filter'.
35477         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
35478         * modules/uninorm/filter-tests: New file.
35479
35480         New module 'uninorm/filter'.
35481         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
35482         uninorm_filter_flush, uninorm_filter_free): New declarations.
35483         * lib/uninorm/uninorm-filter.c: New file.
35484         * modules/uninorm/filter: New file.
35485
35486 2009-02-21  Bruno Haible  <bruno@clisp.org>
35487
35488         Tests for module 'uninorm/nfkc'.
35489         * tests/uninorm/test-nfkc.c: New file.
35490         * tests/uninorm/test-u8-nfkc.c: New file.
35491         * tests/uninorm/test-u16-nfkc.c: New file.
35492         * tests/uninorm/test-u32-nfkc.c: New file.
35493         * tests/uninorm/test-u32-nfkc-big.sh: New file.
35494         * tests/uninorm/test-u32-nfkc-big.c: New file.
35495         * modules/uninorm/nfkc-tests: New file.
35496
35497         New module 'uninorm/nfkc'.
35498         * lib/uninorm/nfkc.c: New file.
35499         * modules/uninorm/nfkc: New file.
35500
35501         Tests for module 'uninorm/nfkd'.
35502         * tests/uninorm/test-nfkd.c: New file.
35503         * tests/uninorm/test-u8-nfkd.c: New file.
35504         * tests/uninorm/test-u16-nfkd.c: New file.
35505         * tests/uninorm/test-u32-nfkd.c: New file.
35506         * tests/uninorm/test-u32-nfkd-big.sh: New file.
35507         * tests/uninorm/test-u32-nfkd-big.c: New file.
35508         * modules/uninorm/nfkd-tests: New file.
35509
35510         New module 'uninorm/nfkd'.
35511         * lib/uninorm/nfkd.c: New file.
35512         * modules/uninorm/nfkd: New file.
35513
35514         Tests for module 'uninorm/nfc'.
35515         * tests/uninorm/test-nfc.c: New file.
35516         * tests/uninorm/test-u8-nfc.c: New file.
35517         * tests/uninorm/test-u16-nfc.c: New file.
35518         * tests/uninorm/test-u32-nfc.c: New file.
35519         * tests/uninorm/test-u32-nfc-big.sh: New file.
35520         * tests/uninorm/test-u32-nfc-big.c: New file.
35521         * modules/uninorm/nfc-tests: New file.
35522
35523         New module 'uninorm/nfc'.
35524         * lib/uninorm/nfc.c: New file.
35525         * modules/uninorm/nfc: New file.
35526
35527         Tests for module 'uninorm/nfd'.
35528         * tests/uninorm/test-nfd.c: New file.
35529         * tests/uninorm/test-u8-nfd.c: New file.
35530         * tests/uninorm/test-u16-nfd.c: New file.
35531         * tests/uninorm/test-u32-nfd.c: New file.
35532         * tests/uninorm/test-u32-nfd-big.sh: New file.
35533         * tests/uninorm/test-u32-nfd-big.c: New file.
35534         * tests/uninorm/test-u32-normalize-big.h: New file.
35535         * tests/uninorm/test-u32-normalize-big.c: New file.
35536         * tests/uninorm/NormalizationTest.txt: New file, created from
35537         Unicode 5.1.0 NormalizationTest.txt.
35538         * modules/uninorm/nfd-tests: New file.
35539
35540         New module 'uninorm/nfd'.
35541         * lib/uninorm/nfd.c: New file.
35542         * modules/uninorm/nfd: New file.
35543
35544         New module 'uninorm/u32-normalize'.
35545         * lib/uninorm/u32-normalize.c: New file.
35546         * modules/uninorm/u32-normalize: New file.
35547
35548         New module 'uninorm/u16-normalize'.
35549         * lib/uninorm/u16-normalize.c: New file.
35550         * modules/uninorm/u16-normalize: New file.
35551
35552         New module 'uninorm/u8-normalize'.
35553         * lib/uninorm/u8-normalize.c: New file.
35554         * lib/uninorm/normalize-internal.h: New file.
35555         * lib/uninorm/u-normalize-internal.h: New file.
35556         * modules/uninorm/u8-normalize: New file.
35557
35558         New module 'uninorm/decompose-internal'.
35559         * lib/uninorm/decompose-internal.c: New file.
35560         * modules/uninorm/decompose-internal: New file.
35561
35562         Tests for module 'uninorm/composition'.
35563         * tests/uninorm/test-composition.c: New file.
35564         * modules/uninorm/composition-tests: New file.
35565
35566         New module 'uninorm/composition'.
35567         * lib/uninorm/composition.c: New file.
35568         * lib/uninorm/composition-table.gperf: New file, generated by
35569         gen-uni-tables.
35570         * modules/uninorm/composition: New file.
35571
35572         Tests for module 'uninorm/compat-decomposition'.
35573         * tests/uninorm/test-compat-decomposition.c: New file.
35574         * modules/uninorm/compat-decomposition-tests: New file.
35575
35576         New module 'uninorm/compat-decomposition'.
35577         * lib/uninorm/decompose-internal.h: New file.
35578         * lib/uninorm/compat-decomposition.c: New file.
35579         * modules/uninorm/compat-decomposition: New file.
35580
35581         Tests for module 'uninorm/canonical-decomposition'.
35582         * tests/uninorm/test-canonical-decomposition.c: New file.
35583         * modules/uninorm/canonical-decomposition-tests: New file.
35584
35585         New module 'uninorm/canonical-decomposition'.
35586         * lib/uninorm/canonical-decomposition.c: New file.
35587         * modules/uninorm/canonical-decomposition: New file.
35588
35589         Tests for module 'uninorm/decomposition'.
35590         * tests/uninorm/test-decomposition.c: New file.
35591         * modules/uninorm/decomposition-tests: New file.
35592
35593         New module 'uninorm/decomposition'.
35594         * lib/uninorm/decomposition.c: New file.
35595         * modules/uninorm/decomposition: New file.
35596
35597         New module 'uninorm/decomposition-table'.
35598         * lib/uninorm/decomposition-table.h: New file.
35599         * lib/uninorm/decomposition-table.c: New file.
35600         * lib/uninorm/decomposition-table1.h: New file, generated by
35601         gen-uni-tables.
35602         * lib/uninorm/decomposition-table2.h: New file, generated by
35603         gen-uni-tables.
35604         * modules/uninorm/decomposition-table: New file.
35605
35606         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
35607         (UC_DECOMP_*): New enumeration items.
35608         (get_decomposition): New function.
35609         (struct decomp_table): New type.
35610         (output_decomposition, output_decomposition_tables): New functions.
35611         (unicode_composition_exclusions): New variable.
35612         (fill_composition_exclusions, debug_output_composition_tables): New
35613         functions.
35614         (main): Accept one more argument. Invoke fill_composition_exclusions.
35615         Output decomposition and composition tables.
35616
35617         New module 'uninorm/base'.
35618         * lib/uninorm.h: New file.
35619         * lib/unictype.h: Update comment.
35620         * modules/uninorm/base: New file.
35621
35622 2009-02-21  David Lutterkort  <lutter@redhat.com>
35623
35624         Tests for module 'safe-alloc'.
35625         * tests/test-safe-alloc.c: New file.
35626         * modules/safe-alloc-tests: New file.
35627
35628         New module 'safe-alloc'.
35629         * lib/safe-alloc.h: New file.
35630         * lib/safe-alloc.c: New file.
35631         * m4/safe-alloc.m4: New file.
35632         * modules/safe-alloc: New file.
35633         * doc/safe-alloc.texi: New file.
35634         * doc/gnulib.texi: Include it.
35635         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
35636         safe-alloc.
35637
35638 2009-02-18  Bruno Haible  <bruno@clisp.org>
35639
35640         Fix link error on non-glibc systems.
35641         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
35642         variable.
35643         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35644
35645 2009-02-18  Jim Meyering  <meyering@redhat.com>
35646
35647         fts: avoid used-uninitialized error due to recent change
35648         * lib/fts.c (fts_read): Guard uses of the new member,
35649         parent->fts_n_dirs_remaining, since it's not relevant for
35650         the parent of a directory specified on the command-line.
35651
35652 2009-02-17  James Youngman  <jay@gnu.org>
35653             Bruno Haible  <bruno@clisp.org>
35654
35655         * m4/include_next.m4: Reformulate comment.
35656
35657 2009-02-16  Jim Meyering  <meyering@redhat.com>
35658
35659         fts: add #if guards so that the fts_lgpl module still builds
35660         * lib/fts.c: Guard just-added hash-table-using parts with
35661         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
35662         Reported by Simon Josefsson.
35663
35664 2009-02-15  Bruno Haible  <bruno@clisp.org>
35665
35666         * modules/array-mergesort-tests: New file.
35667         * tests/test-array-mergesort.c: New file.
35668
35669         New module 'array-mergesort'.
35670         * modules/array-mergesort: New file.
35671         * lib/array-mergesort.h: New file.
35672
35673 2009-02-15  Bruno Haible  <bruno@clisp.org>
35674
35675         Fix 2009-02-07 commit.
35676         * lib/gen-uni-tables.c (output_predicate, output_category,
35677         output_combclass, output_bidi_category, output_decimal_digit,
35678         output_digit, output_numeric, output_mirror, output_scripts,
35679         output_ident_category, output_simple_mapping): Fix format directives.
35680         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
35681
35682 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
35683
35684         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
35685         fixes are available from IBM.
35686
35687 2009-02-13  Jim Meyering  <meyering@redhat.com>
35688
35689         fts: arrange not to stat non-directories in more cases
35690         This makes GNU find (when it doesn't need to stat each file)
35691         *much* more efficient at traversing reiserfs file systems.
35692         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
35693         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
35694         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
35695         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
35696         (leaf_optimization_applies): New function.
35697         (LCO_hash, LCO_compare): New helper functions.
35698         (link_count_optimize_ok): New function.
35699         (fts_stat): Initialize new member (if dir).
35700         (fts_read): Decrement parent's fts_n_dirs_remaining count if
35701         we've just stat'ed a directory.  Skip the stat call when possible.
35702         ---
35703         Note this AFS-related exchange:
35704         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
35705         and note find's pioctl call in find/fstype.c.
35706         But that is necessary only if you want to enable the
35707         optimization for AFS, and for now, I don't.
35708
35709         fts: move a function definition "up" (no semantic change)
35710         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
35711         "up" to precede upcoming use of a related function.
35712
35713 2009-02-11  Jim Meyering  <meyering@redhat.com>
35714
35715         fts: correct internal computation of nlinks (optimization-related)
35716         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
35717         whether the current entry is a directory, so don't test it.
35718
35719 2009-02-10  Bruno Haible  <bruno@clisp.org>
35720
35721         Tests for module 'uniwbrk/ulc-wordbreaks'.
35722         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
35723         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
35724         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
35725
35726         Tests for module 'uniwbrk/u32-wordbreaks'.
35727         * modules/uniwbrk/u32-wordbreaks-tests: New file.
35728         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
35729
35730         Tests for module 'uniwbrk/u16-wordbreaks'.
35731         * modules/uniwbrk/u16-wordbreaks-tests: New file.
35732         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
35733
35734         Tests for module 'uniwbrk/u8-wordbreaks'.
35735         * modules/uniwbrk/u8-wordbreaks-tests: New file.
35736         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
35737
35738 2009-02-10  Bruno Haible  <bruno@clisp.org>
35739
35740         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
35741         property.
35742         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
35743         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
35744         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
35745
35746 2009-02-10  Simon Josefsson  <simon@josefsson.org>
35747
35748         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
35749         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
35750
35751 2009-02-10  Bruno Haible  <bruno@clisp.org>
35752
35753         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
35754         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
35755         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
35756         * lib/unilbrk/u8-possible-linebreaks.c: Update.
35757         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
35758         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
35759
35760 2009-02-09  Simon Josefsson  <simon@josefsson.org>
35761
35762         * lib/sockets.h (gl_fd_to_handle): New function.
35763
35764         * tests/test-sockets.c: Call gl_fd_to_handle.
35765
35766 2009-02-09  Bruno Haible  <bruno@clisp.org>
35767
35768         * doc/havelib.texi: Document the conventions on bi-arch systems.
35769
35770 2009-02-08  Bruno Haible  <bruno@clisp.org>
35771
35772         Document the AC_LIB_LINKFLAGS macro.
35773         * doc/havelib.texi: New file, mostly written on 2005-05-24.
35774         * doc/gnulib.texi: Include it.
35775
35776 2009-02-08  Bruno Haible  <bruno@clisp.org>
35777
35778         Fix wrong order of sections, compared to TOC.
35779         * doc/gnulib.texi: Include relocatable-maint.texi after the
35780         "Regular expressions" node, not before.
35781
35782 2009-02-08  Bruno Haible  <bruno@clisp.org>
35783
35784         Tests for module 'unicase/totitle'.
35785         * modules/unicase/totitle-tests: New file.
35786
35787         Tests for module 'unicase/tolower'.
35788         * modules/unicase/tolower-tests: New file.
35789
35790         Tests for module 'unicase/toupper'.
35791         * modules/unicase/toupper-tests: New file.
35792         * tests/unicase/test-mapping-part1.h: New file.
35793         * tests/unicase/test-mapping-part2.h: New file.
35794
35795         New module 'unicase/totitle'.
35796         * modules/unicase/totitle: New file.
35797         * lib/unicase/totitle.c: New file.
35798
35799         New module 'unicase/tolower'.
35800         * modules/unicase/tolower: New file.
35801         * lib/unicase/tolower.c: New file.
35802
35803         New module 'unicase/toupper'.
35804         * modules/unicase/toupper: New file.
35805         * lib/unicase/toupper.c: New file.
35806         * lib/unicase/simple-mapping.h: New file.
35807
35808         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
35809         (mapping_table): New structure.
35810         (output_simple_mapping): New function.
35811         (main): Invoke output_simple_mapping_test and output_simple_mapping.
35812         * modules/gen-uni-tables (Description): Update.
35813         * lib/unicase/toupper.h: New file, automatically generated by
35814         gen-uni-tables.
35815         * lib/unicase/tolower.h: New file, automatically generated by
35816         gen-uni-tables.
35817         * lib/unicase/totitle.h: New file, automatically generated by
35818         gen-uni-tables.
35819         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
35820         gen-uni-tables.
35821         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
35822         gen-uni-tables.
35823         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
35824         gen-uni-tables.
35825
35826         New module 'unicase/base'.
35827         * modules/unicase/base: New file.
35828         * lib/unicase.h: New file.
35829
35830 2009-02-08  Bruno Haible  <bruno@clisp.org>
35831
35832         New module 'uniwbrk/ulc-wordbreaks'.
35833         * modules/uniwbrk/ulc-wordbreaks: New file.
35834         * lib/uniwbrk/ulc-wordbreaks.c: New file.
35835
35836         New module 'uniwbrk/u32-wordbreaks'.
35837         * modules/uniwbrk/u32-wordbreaks: New file.
35838         * lib/uniwbrk/u32-wordbreaks.c: New file.
35839
35840         New module 'uniwbrk/u16-wordbreaks'.
35841         * modules/uniwbrk/u16-wordbreaks: New file.
35842         * lib/uniwbrk/u16-wordbreaks.c: New file.
35843
35844         New module 'uniwbrk/u8-wordbreaks'.
35845         * modules/uniwbrk/u8-wordbreaks: New file.
35846         * lib/uniwbrk/u8-wordbreaks.c: New file.
35847         * lib/uniwbrk/u-wordbreaks.h: New file.
35848
35849         New module 'uniwbrk/table'.
35850         * modules/uniwbrk/table: New file.
35851         * lib/uniwbrk/wbrktable.h: New file.
35852         * lib/uniwbrk/wbrktable.c: New file.
35853
35854         New module 'uniwbrk/wordbreak-property'.
35855         * modules/uniwbrk/wordbreak-property: New file.
35856         * lib/uniwbrk/wordbreak-property.c: New file.
35857
35858         * lib/gen-uni-tables.c (WBP_*): New enum items.
35859         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
35860         (unicode_org_wbp): New variable.
35861         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
35862         New functions.
35863         (wbp_table): New structure.
35864         (output_wbp, output_wbrk_tables): New functions.
35865         (main): Accept additional argument. Invoke fill_org_wbp,
35866         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
35867         output_wbrk_tables.
35868         * modules/gen-uni-tables (Description): Update.
35869         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
35870         gen-uni-tables.
35871
35872         New module 'uniwbrk/base'.
35873         * modules/uniwbrk/base: New file.
35874         * lib/uniwbrk.h: New file.
35875
35876 2009-02-08  Bruno Haible  <bruno@clisp.org>
35877
35878         Update to Unicode 5.1.0.
35879         * lib/gen-uni-tables.c (is_property_alphabetic): Include
35880         U+2185..U+2188.
35881         (is_property_default_ignorable_code_point): Don't include characters
35882         of category Cc or Cs and not-a-characters.
35883         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
35884         U+0D79, U+109E, U+109F, U+A60C.
35885         * lib/unictype/bidi_of.h: Regenerated.
35886         * lib/unictype/blocks.h: Regenerated.
35887         * lib/unictype/categ_C.h: Regenerated.
35888         * lib/unictype/categ_Cf.h: Regenerated.
35889         * lib/unictype/categ_Cn.h: Regenerated.
35890         * lib/unictype/categ_L.h: Regenerated.
35891         * lib/unictype/categ_Ll.h: Regenerated.
35892         * lib/unictype/categ_Lm.h: Regenerated.
35893         * lib/unictype/categ_Lo.h: Regenerated.
35894         * lib/unictype/categ_Lu.h: Regenerated.
35895         * lib/unictype/categ_M.h: Regenerated.
35896         * lib/unictype/categ_Mc.h: Regenerated.
35897         * lib/unictype/categ_Me.h: Regenerated.
35898         * lib/unictype/categ_Mn.h: Regenerated.
35899         * lib/unictype/categ_N.h: Regenerated.
35900         * lib/unictype/categ_Nd.h: Regenerated.
35901         * lib/unictype/categ_Nl.h: Regenerated.
35902         * lib/unictype/categ_No.h: Regenerated.
35903         * lib/unictype/categ_P.h: Regenerated.
35904         * lib/unictype/categ_Pd.h: Regenerated.
35905         * lib/unictype/categ_Pe.h: Regenerated.
35906         * lib/unictype/categ_Pf.h: Regenerated.
35907         * lib/unictype/categ_Pi.h: Regenerated.
35908         * lib/unictype/categ_Po.h: Regenerated.
35909         * lib/unictype/categ_Ps.h: Regenerated.
35910         * lib/unictype/categ_S.h: Regenerated.
35911         * lib/unictype/categ_Sk.h: Regenerated.
35912         * lib/unictype/categ_Sm.h: Regenerated.
35913         * lib/unictype/categ_So.h: Regenerated.
35914         * lib/unictype/categ_of.h: Regenerated.
35915         * lib/unictype/combining.h: Regenerated.
35916         * lib/unictype/ctype_alnum.h: Regenerated.
35917         * lib/unictype/ctype_alpha.h: Regenerated.
35918         * lib/unictype/ctype_graph.h: Regenerated.
35919         * lib/unictype/ctype_lower.h: Regenerated.
35920         * lib/unictype/ctype_print.h: Regenerated.
35921         * lib/unictype/ctype_punct.h: Regenerated.
35922         * lib/unictype/ctype_upper.h: Regenerated.
35923         * lib/unictype/decdigit.h: Regenerated.
35924         * lib/unictype/digit.h: Regenerated.
35925         * lib/unictype/mirror.h: Regenerated.
35926         * lib/unictype/numeric.h: Regenerated.
35927         * lib/unictype/pr_alphabetic.h: Regenerated.
35928         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
35929         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
35930         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
35931         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
35932         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
35933         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
35934         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
35935         * lib/unictype/pr_combining.h: Regenerated.
35936         * lib/unictype/pr_dash.h: Regenerated.
35937         * lib/unictype/pr_decimal_digit.h: Regenerated.
35938         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
35939         * lib/unictype/pr_deprecated.h: Regenerated.
35940         * lib/unictype/pr_diacritic.h: Regenerated.
35941         * lib/unictype/pr_extender.h: Regenerated.
35942         * lib/unictype/pr_format_control.h: Regenerated.
35943         * lib/unictype/pr_grapheme_base.h: Regenerated.
35944         * lib/unictype/pr_grapheme_extend.h: Regenerated.
35945         * lib/unictype/pr_grapheme_link.h: Regenerated.
35946         * lib/unictype/pr_id_continue.h: Regenerated.
35947         * lib/unictype/pr_id_start.h: Regenerated.
35948         * lib/unictype/pr_ideographic.h: Regenerated.
35949         * lib/unictype/pr_ignorable_control.h: Regenerated.
35950         * lib/unictype/pr_lowercase.h: Regenerated.
35951         * lib/unictype/pr_math.h: Regenerated.
35952         * lib/unictype/pr_numeric.h: Regenerated.
35953         * lib/unictype/pr_other_alphabetic.h: Regenerated.
35954         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
35955         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
35956         * lib/unictype/pr_other_id_continue.h: Regenerated.
35957         * lib/unictype/pr_other_lowercase.h: Regenerated.
35958         * lib/unictype/pr_other_math.h: Regenerated.
35959         * lib/unictype/pr_punctuation.h: Regenerated.
35960         * lib/unictype/pr_sentence_terminal.h: Regenerated.
35961         * lib/unictype/pr_soft_dotted.h: Regenerated.
35962         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
35963         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
35964         * lib/unictype/pr_unified_ideograph.h: Regenerated.
35965         * lib/unictype/pr_uppercase.h: Regenerated.
35966         * lib/unictype/pr_xid_continue.h: Regenerated.
35967         * lib/unictype/pr_xid_start.h: Regenerated.
35968         * lib/unictype/pr_zero_width.h: Regenerated.
35969         * lib/unictype/scripts.h: Regenerated.
35970         * lib/unictype/scripts_byname.gperf: Regenerated.
35971         * lib/unictype/sy_java_ident.h: Regenerated.
35972         * lib/unilbrk/lbrkprop1.h: Regenerated.
35973         * lib/unilbrk/lbrkprop2.h: Regenerated.
35974         * tests/unictype/test-categ_C.c: Regenerated.
35975         * tests/unictype/test-categ_Cf.c: Regenerated.
35976         * tests/unictype/test-categ_Cn.c: Regenerated.
35977         * tests/unictype/test-categ_L.c: Regenerated.
35978         * tests/unictype/test-categ_Ll.c: Regenerated.
35979         * tests/unictype/test-categ_Lm.c: Regenerated.
35980         * tests/unictype/test-categ_Lo.c: Regenerated.
35981         * tests/unictype/test-categ_Lu.c: Regenerated.
35982         * tests/unictype/test-categ_M.c: Regenerated.
35983         * tests/unictype/test-categ_Mc.c: Regenerated.
35984         * tests/unictype/test-categ_Me.c: Regenerated.
35985         * tests/unictype/test-categ_Mn.c: Regenerated.
35986         * tests/unictype/test-categ_N.c: Regenerated.
35987         * tests/unictype/test-categ_Nd.c: Regenerated.
35988         * tests/unictype/test-categ_Nl.c: Regenerated.
35989         * tests/unictype/test-categ_No.c: Regenerated.
35990         * tests/unictype/test-categ_P.c: Regenerated.
35991         * tests/unictype/test-categ_Pd.c: Regenerated.
35992         * tests/unictype/test-categ_Pe.c: Regenerated.
35993         * tests/unictype/test-categ_Pf.c: Regenerated.
35994         * tests/unictype/test-categ_Pi.c: Regenerated.
35995         * tests/unictype/test-categ_Po.c: Regenerated.
35996         * tests/unictype/test-categ_Ps.c: Regenerated.
35997         * tests/unictype/test-categ_S.c: Regenerated.
35998         * tests/unictype/test-categ_Sk.c: Regenerated.
35999         * tests/unictype/test-categ_Sm.c: Regenerated.
36000         * tests/unictype/test-categ_So.c: Regenerated.
36001         * tests/unictype/test-ctype_alnum.c: Regenerated.
36002         * tests/unictype/test-ctype_alpha.c: Regenerated.
36003         * tests/unictype/test-ctype_graph.c: Regenerated.
36004         * tests/unictype/test-ctype_lower.c: Regenerated.
36005         * tests/unictype/test-ctype_print.c: Regenerated.
36006         * tests/unictype/test-ctype_punct.c: Regenerated.
36007         * tests/unictype/test-ctype_upper.c: Regenerated.
36008         * tests/unictype/test-decdigit.h: Regenerated.
36009         * tests/unictype/test-digit.h: Regenerated.
36010         * tests/unictype/test-numeric.h: Regenerated.
36011         * tests/unictype/test-pr_alphabetic.c: Regenerated.
36012         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
36013         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
36014         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
36015         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
36016         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
36017         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
36018         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
36019         * tests/unictype/test-pr_combining.c: Regenerated.
36020         * tests/unictype/test-pr_dash.c: Regenerated.
36021         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
36022         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
36023         * tests/unictype/test-pr_deprecated.c: Regenerated.
36024         * tests/unictype/test-pr_diacritic.c: Regenerated.
36025         * tests/unictype/test-pr_extender.c: Regenerated.
36026         * tests/unictype/test-pr_format_control.c: Regenerated.
36027         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
36028         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
36029         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
36030         * tests/unictype/test-pr_id_continue.c: Regenerated.
36031         * tests/unictype/test-pr_id_start.c: Regenerated.
36032         * tests/unictype/test-pr_ideographic.c: Regenerated.
36033         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
36034         * tests/unictype/test-pr_lowercase.c: Regenerated.
36035         * tests/unictype/test-pr_math.c: Regenerated.
36036         * tests/unictype/test-pr_numeric.c: Regenerated.
36037         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
36038         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
36039         Regenerated.
36040         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
36041         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
36042         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
36043         * tests/unictype/test-pr_other_math.c: Regenerated.
36044         * tests/unictype/test-pr_punctuation.c: Regenerated.
36045         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
36046         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
36047         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
36048         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
36049         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
36050         * tests/unictype/test-pr_uppercase.c: Regenerated.
36051         * tests/unictype/test-pr_xid_continue.c: Regenerated.
36052         * tests/unictype/test-pr_xid_start.c: Regenerated.
36053         * tests/unictype/test-pr_zero_width.c: Regenerated.
36054
36055         Update to Unicode 5.1.0.
36056         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
36057         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
36058         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
36059         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
36060         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
36061         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
36062         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
36063         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
36064         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
36065         (nonspacing_table_ind): Update.
36066         * tests/uniwidth/test-uc_width2.sh: Update expected result.
36067
36068         Update to Unicode 5.1.0.
36069         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
36070         code transform.
36071         * lib/uniname/uniname.c (unicode_character_name,
36072         unicode_name_character): Add the range 0x1Fxxx to the code transform.
36073         * lib/uniname/uninames.h: Regenerated.
36074         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
36075
36076 2009-02-07  Bruno Haible  <bruno@clisp.org>
36077
36078         Merge gen-ctype and gen-lbrk into a single program.
36079         * lib/gen-uni-tables.c: New file, incorporating
36080         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
36081         Add directory prefixes to the names of the generated files.
36082         * lib/unictype/gen-ctype.c: Remove file.
36083         * lib/unilbrk/gen-lbrk.c: Remove file.
36084         * modules/gen-uni-tables: New file.
36085         * modules/unictype/gen-ctype: Remove file.
36086         * modules/unilbrk/gen-lbrk: Remove file.
36087
36088 2009-02-07  Bruno Haible  <bruno@clisp.org>
36089
36090         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
36091
36092         New module 'unistr/u32-strcoll'.
36093         * modules/unistr/u32-strcoll: New file.
36094         * lib/unistr/u32-strcoll.c: New file.
36095
36096         New module 'unistr/u16-strcoll'.
36097         * modules/unistr/u16-strcoll: New file.
36098         * lib/unistr/u16-strcoll.c: New file.
36099
36100         New module 'unistr/u8-strcoll'.
36101         * modules/unistr/u8-strcoll: New file.
36102         * lib/unistr/u8-strcoll.c: New file.
36103         * lib/unistr/u-strcoll.h: New file.
36104
36105 2009-02-07  Bruno Haible  <bruno@clisp.org>
36106
36107         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
36108         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
36109         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
36110         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
36111         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
36112         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
36113
36114 2009-02-07  Bruno Haible  <bruno@clisp.org>
36115
36116         Make 64-bit clean.
36117         * lib/unictype/gen-ctype.c (output_predicate, output_category,
36118         output_combclass, output_bidi_category, output_decimal_digit,
36119         output_digit, output_numeric, output_mirror, output_scripts,
36120         output_ident_category): Use proper width specifier in format strings.
36121
36122 2009-02-07  Bruno Haible  <bruno@clisp.org>
36123
36124         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
36125         failure behaviour.
36126
36127 2009-02-07  Jim Meyering  <meyering@redhat.com>
36128
36129         regex: avoid compilation failure with upcoming gcc-4.4
36130         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
36131         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
36132         "... error: integer overflow in preprocessor expression".
36133
36134 2009-02-05  Ben Pfaff  <blp@gnu.org>
36135
36136         Fix link errors on Windows when close module is used.
36137         * modules/close: Add $(LIB_CLOSE) to Link section.
36138         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
36139         $(LIB_CLOSE) on Windows.
36140
36141 2009-02-05  Jim Meyering  <meyering@redhat.com>
36142
36143         still avoid unused-parameter warnings, but do it cleanly
36144         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
36145         (get_fs_usage): Cast to void instead.
36146         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
36147         (dev_from_mount_options, read_file_system_list): Cast to void.
36148         Prompted by Bruno Haible.
36149
36150 2009-02-04  Jim Meyering  <meyering@redhat.com>
36151
36152         fsusage.c: correct copyright year
36153         * lib/fsusage.c: Reflect year in which the change is pushed into
36154
36155         avoid misc. warnings
36156         * lib/fsusage.c (UNUSED_PARAM): Define.
36157         (get_fs_usage): Mark parameter "disk" as unused.
36158         * lib/getugroups.c (getgrent): Use "void" in prototype.
36159         * lib/mountlist.c: Mark unused parameters.
36160         (read_file_system_list): Declare a local with "const".
36161         * lib/nanosleep.c (getnow): Declare static.
36162         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
36163
36164         dirfd: set errno upon failure
36165         * lib/dirfd.c: Include <errno.h>.
36166         Set errno to ENOTSUP when returning -1.
36167         * modules/dirfd (Depends-on): Add errno.
36168         Suggested by John Kodis <kodis@comcast.net>.
36169
36170 2009-02-01  Bruno Haible  <bruno@clisp.org>
36171
36172         Don't assume sizeof (long) >= sizeof (void *).
36173         * lib/memcmp.c: Include stdint.h.
36174         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
36175         srcp2 to 'const byte *'.
36176         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
36177         types to uintptr_t.
36178         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
36179         * modules/memcmp (Depends-on): Add stdint.
36180         Reported by Ozkan Sezer <sezeroz@gmail.com>.
36181
36182 2009-01-30  Eric Blake  <ebb9@byu.net>
36183
36184         fix more require-before-expand issues
36185         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
36186         expand, AC_PROG_AWK.
36187         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
36188
36189 2009-01-28  Eric Blake  <ebb9@byu.net>
36190
36191         version-etc: use consistent URL formatting
36192         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
36193         Improve formatting.  Use fputs for string without %.
36194
36195 2009-01-28  Jim Meyering  <meyering@redhat.com>
36196
36197         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
36198         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
36199         "underquoted definition of NAME" from autoconf-2.59.
36200
36201 2009-01-28  Bruno Haible  <bruno@clisp.org>
36202
36203         * doc/gnulib.texi: Add "Obsolete modules" to index.
36204
36205 2009-01-28  Jim Meyering  <meyering@redhat.com>
36206
36207         useless-if-before-free: recognize more variants
36208         * build-aux/useless-if-before-free: Also recognize e.g.,
36209         if (NULL != p) free (p);
36210
36211 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
36212
36213         test-getaddrinfo: skip (don't fail) this test when there's no network
36214         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
36215         on the presumption that it means you lack network access.
36216
36217 2009-01-26  Jim Meyering  <meyering@redhat.com>
36218
36219         fflush: avoid warnings on modern systems
36220         * lib/fflush.c (rpl_fflush): Move declarations of locals,
36221         pos and result, into scopes where they're used.
36222
36223 2009-01-26  Eric Blake  <ebb9@byu.net>
36224
36225         Silence warning reintroduced by recent extensions patch.
36226         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
36227         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
36228         autoconf.
36229
36230         Backport improved autoconf semantics of AC_DEFUN_ONCE.
36231         * m4/00gnulib.m4: New file.
36232         * gnulib-tool (func_get_filelist): Always use it.
36233         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
36234         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
36235
36236 2009-01-25  Bruno Haible  <bruno@clisp.org>
36237
36238         Make test-quotearg work on MacOS X and AIX.
36239         * tests/test-quotearg.sh: New file.
36240         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
36241         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
36242         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
36243         include <libintl.h>.
36244         (fake_locale): Remove variable.
36245         (gettext, dgettext, dcgettext): Remove functions.
36246         (main): Instead of setting a fake locale, set a real locale. Call
36247         textdomain and bindtextdomain.
36248         * modules/quotearg-tests (Files): Add the new files.
36249         (Depends-on): Add gettext, setenv, unsetenv.
36250         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
36251         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
36252         Augment TESTS_ENVIRONMENT.
36253
36254 2009-01-25  Bruno Haible  <bruno@clisp.org>
36255
36256         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
36257         fr_FR.ISO8859-1 locale on MacOS X.
36258         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
36259         ja_JP.eucJP locale on MacOS X.
36260         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
36261         zh_CN.GB18030 locale on MacOS X.
36262
36263 2009-01-25  Bruno Haible  <bruno@clisp.org>
36264
36265         Avoid link errors on MacOS X 10.3.
36266         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
36267         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
36268
36269 2009-01-25  Bruno Haible  <bruno@clisp.org>
36270
36271         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
36272         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
36273         * modules/pipe (Files): Remove m4/posix_spawn.m4.
36274         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
36275         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
36276         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
36277         posix_spawnattr_init, posix_spawnattr_setsigmask,
36278         posix_spawnattr_setflags, posix_spawnattr_destroy.
36279
36280         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
36281         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
36282         * modules/execute (Files): Remove m4/posix_spawn.m4.
36283         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
36284         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
36285         posix_spawnattr_init, posix_spawnattr_setsigmask,
36286         posix_spawnattr_setflags, posix_spawnattr_destroy.
36287
36288 2009-01-25  Bruno Haible  <bruno@clisp.org>
36289
36290         * lib/glthread/threadlib.c: Include <stdlib.h>.
36291
36292 2009-01-25  Bruno Haible  <bruno@clisp.org>
36293
36294         * lib/glthread/threadlib.c (dummy): New declaration.
36295
36296 2009-01-25  Bruno Haible  <bruno@clisp.org>
36297
36298         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
36299         multibyte characters also for the GB18030 encoding. Don't crash when
36300         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
36301
36302 2009-01-25  Bruno Haible  <bruno@clisp.org>
36303
36304         Avoid redefining 'struct random_data' on OSF/1 5.1.
36305         * lib/stdlib.in.h: Include <random.h> if it exists.
36306         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
36307         HAVE_RANDOM_H. Include <random.h> when testing whether
36308         'struct random_data' exists.
36309         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
36310
36311 2009-01-25  Bruno Haible  <bruno@clisp.org>
36312
36313         Don't install charset.alias on MacOS X >= 10.3.
36314         * lib/localcharset.c (DARWIN7): New macro.
36315         (get_charset_aliases): Hardcode the result for Darwin7.
36316         * modules/localcharset (install-exec-local): Don't install
36317         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
36318
36319 2009-01-25  Bruno Haible  <bruno@clisp.org>
36320
36321         Don't install charset.alias on mingw and Cygwin.
36322         * modules/localcharset (install-exec-local): Don't install
36323         charset.alias on mingw and Cygwin, if the file does not yet exist.
36324         The result for these platforms is hardcoded in localcharset.c.
36325
36326 2009-01-25  Bruno Haible  <bruno@clisp.org>
36327
36328         Make it possible again to use AC_GNU_SOURCE together with gnulib.
36329         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
36330         before requiring AC_USE_SYSTEM_EXTENSIONS.
36331
36332 2009-01-25  Jim Meyering  <meyering@redhat.com>
36333
36334         c-strtod: avoid warnings
36335         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
36336         "assignment discards qualifiers from pointer target type" warnings.
36337
36338 2009-01-24  Bruno Haible  <bruno@clisp.org>
36339
36340         Add support for non-UTF-8 locales on MacOS X.
36341         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
36342         canonical encodings. For Darwin 7 and newer, don't map traditional
36343         encodings to UTF-8.
36344         Reported by Vincent Lefevre <vincent@vinc17.org>
36345         at <http://savannah.gnu.org/bugs/?25235>.
36346
36347 2009-01-24  Bruno Haible  <bruno@clisp.org>
36348
36349         * doc/gnulib.texi (Obsolete modules): New section.
36350         Reported by Mike Frysinger <vapier@gentoo.org>.
36351
36352 2009-01-24  Bruno Haible  <bruno@clisp.org>
36353
36354         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
36355         (%.dvi): New rule.
36356
36357 2009-01-24  Bruno Haible  <bruno@clisp.org>
36358
36359         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
36360         Reported by Eric Blake.
36361
36362 2009-01-24  Bruno Haible  <bruno@clisp.org>
36363
36364         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
36365         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
36366         Reported by Gary V. Vaughan <gary@gnu.org>.
36367
36368 2009-01-24  Bruno Haible  <bruno@clisp.org>
36369
36370         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
36371
36372 2009-01-23  Bruno Haible  <bruno@clisp.org>
36373
36374         Make c-strtod, c-strtold usable in libraries.
36375         * lib/c-strtod.c: Include string.h instead of xalloc.h.
36376         (C_STRTOD): Call strdup instead of xstrdup.
36377         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
36378         * modules/c-strtold (Depends-on): Likewise.
36379         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
36380         * NEWS: Mention the change.
36381         Reported by Michael Gold <mgold@ncf.ca>.
36382
36383 2009-01-23  Jim Meyering  <meyering@redhat.com>
36384
36385         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
36386         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
36387         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
36388
36389 2009-01-23  Simon Josefsson  <simon@josefsson.org>
36390
36391         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
36392         GNU CoreUtils.
36393         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
36394         * modules/version-etc (Description): Update.
36395
36396 2009-01-22  Bruno Haible  <bruno@clisp.org>
36397
36398         Cache the C locale object.
36399         * lib/c-strtod.c (c_locale_cache): New variable.
36400         (c_locale): New function.
36401         (C_STRTOD): Use it, and don't call freelocale.
36402         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
36403         Suggested by Paolo Bonzini.
36404
36405 2009-01-21  Bruno Haible  <bruno@clisp.org>
36406
36407         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
36408         conditions other than overflow.
36409
36410 2009-01-21  Bruno Haible  <bruno@clisp.org>
36411
36412         * lib/c-strtod.c: Include errno.h.
36413         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
36414         value from STRTOD_L and STRTOD.
36415
36416 2009-01-21  Bruno Haible  <bruno@clisp.org>
36417         and Jim Meyering  <meyering@redhat.com>
36418
36419         nanosleep: skip configure test (fail it) for apple universal builds
36420         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
36421         universal builds, assume that nanosleep does not work.
36422         * modules/nanosleep (Depends-on): Add multiarch.
36423
36424         mktime: skip configure test (fail it) for apple universal builds
36425         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
36426         universal builds, assume that mktime does not work.
36427         * modules/mktime (Depends-on): Add multiarch.
36428
36429 2009-01-21  Eric Blake  <ebb9@byu.net>
36430
36431         multiarch: avoid expand-before-require warning
36432         * modules/multiarch (configure.ac): Require, rather than expand,
36433         gl_MULTIARCH.
36434         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
36435         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
36436         enforce that all clients require it.  Partial reversion of
36437         2008-12-29 patch.
36438
36439         error: avoid expand-before-require warning
36440         * modules/errno (configure.ac): Require, rather than expand,
36441         gl_HEADER_ERRNO_H.
36442         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
36443         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
36444         enforce that all clients require it.
36445
36446         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
36447         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
36448         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
36449         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
36450
36451 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
36452
36453         Revert:
36454         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
36455
36456         regex: do not depend on obsolete modules.
36457         * modules/regex: Remove memcmp and memmove.
36458
36459 2009-01-20  Bruno Haible  <bruno@clisp.org>
36460
36461         Make the 'link' module link on Windows NT 4.
36462         * lib/link.c (_WIN32_WINNT): Don't define.
36463         (CreateHardLinkFuncType): New type.
36464         (CreateHardLinkFunc, initialized): New variables.
36465         (initialize): New function.
36466         (link): Invoke CreateHardLink indirectly through the function pointer.
36467
36468 2009-01-20  Bruno Haible  <bruno@clisp.org>
36469
36470         Fix compilation failure on mingw.
36471         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
36472
36473 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
36474
36475         * doc/c-strtod.texi: Mention a couple of restrictions.
36476
36477 2009-01-20  Jim Meyering  <meyering@redhat.com>
36478
36479         gettimeofday: move more declarations out of functions
36480         * lib/gettimeofday.c: Move extern declarations of tzset and
36481         gmtime out of containing functions.  Prompted by Bruno Haible.
36482
36483 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
36484
36485         regex: do not depend on obsolete modules.
36486         * modules/regex: Remove memcmp and memmove.
36487
36488 2009-01-19  Bruno Haible  <bruno@clisp.org>
36489
36490         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
36491         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
36492         gl_BIGENDIAN, not AC_C_BIGENDIAN.
36493         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
36494         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
36495
36496 2009-01-19  Bruno Haible  <bruno@clisp.org>
36497
36498         * tests/test-link.c: Include <errno.h>.
36499         (main): Exit with code 77 when a hard link cannot be created due to
36500         the file system.
36501         * tests/test-link.sh: Skip test when a hard link cannot be created due
36502         to the file system.
36503         Suggested by Eric Blake.
36504
36505 2009-01-19  Martin Lambers  <marlam@marlam.de>
36506
36507         * modules/link-tests: New file.
36508         * tests/test-link.sh: New file.
36509         * tests/test-link.c: New file.
36510
36511 2009-01-19  Eric Blake  <ebb9@byu.net>
36512
36513         doc: mention another function added in cygwin 1.7.0
36514         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
36515         Another new function in cygwin 1.7.
36516
36517 2009-01-19  Bruno Haible  <bruno@clisp.org>
36518
36519         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
36520         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
36521         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
36522         gl_BIGENDIAN, not AC_C_BIGENDIAN.
36523         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
36524         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
36525         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
36526         * m4/md4.m4 (gl_MD4): Likewise.
36527         * m4/md5.m4 (gl_MD5): Likewise.
36528         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
36529         * m4/sha1.m4 (gl_SHA1): Likewise.
36530         * m4/sha256.m4 (gl_SHA256): Likewise.
36531         * m4/sha512.m4 (gl_SHA512): Likewise.
36532
36533 2009-01-19  Bruno Haible  <bruno@clisp.org>
36534
36535         * modules/uniname/uniname-tests (Depends-on): Add progname.
36536         * tests/uniname/test-uninames.c: Include progname.h.
36537         (main): Call set_program_name.
36538
36539         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
36540         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
36541         (main): Call set_program_name.
36542
36543         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
36544         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
36545         (main): Call set_program_name.
36546
36547         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
36548         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
36549         (main): Call set_program_name.
36550
36551         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
36552         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
36553         (main): Call set_program_name.
36554
36555         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
36556         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
36557         (main): Call set_program_name.
36558
36559         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
36560         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
36561         (main): Call set_program_name.
36562
36563         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
36564         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
36565         (main): Call set_program_name.
36566
36567         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
36568         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
36569         (main): Call set_program_name.
36570
36571 2009-01-19  Eric Blake  <ebb9@byu.net>
36572
36573         test-unistd: test previous patch
36574         * tests/test-unistd.c: Test *_FILENO macros.
36575
36576         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
36577         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
36578         Guarantee a definition.
36579         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
36580         * modules/unistd-safer (Depends-on): Add dependency on unistd.
36581         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
36582         * lib/dup-safer.c (STDERR_FILENO): Likewise.
36583         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
36584         Likewise.
36585         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
36586         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
36587         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
36588         Likewise.
36589         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
36590         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
36591         (STDERR_FILENO): Likewise.
36592         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
36593         (STDERR_FILENO): Likewise.
36594         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
36595         (STDERR_FILENO): Likewise.
36596         Reported by Elbert Pol.
36597
36598 2009-01-19  Eric Blake  <ebb9@byu.net>
36599
36600         doc: mention more functions added in cygwin 1.7.0
36601         * doc/posix-functions/abort.texi (abort): Update wording related
36602         to cygwin.
36603         * doc/posix-functions/daylight.texi (daylight): Likewise.
36604         * doc/posix-functions/optarg.texi (optarg): Likewise.
36605         * doc/posix-functions/optarg.texi (opterr): Likewise.
36606         * doc/posix-functions/optarg.texi (optind): Likewise.
36607         * doc/posix-functions/optarg.texi (optopt): Likewise.
36608         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
36609         worked in 1.5.x, and was withdrawn in 1.7.
36610         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
36611         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
36612         cygwin versions.
36613         * doc/posix-functions/perror.texi (perror): Likewise.
36614         * doc/posix-functions/printf.texi (printf): Likewise.
36615         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
36616         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
36617         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
36618         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
36619         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
36620         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
36621         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
36622         Likewise.
36623         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
36624         Likewise.
36625         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
36626         this function.
36627         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
36628         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
36629         Likewise.
36630         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
36631         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
36632         * doc/posix-functions/confstr.texi (confstr): Likewise.
36633         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
36634         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
36635         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
36636         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
36637         * doc/posix-functions/fputws.texi (fputws): Likewise.
36638         * doc/posix-functions/fwide.texi (fwide): Likewise.
36639         * doc/posix-functions/getwc.texi (getwc): Likewise.
36640         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
36641         * doc/posix-functions/putwc.texi (putwc): Likewise.
36642         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
36643         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
36644         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
36645         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
36646         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
36647         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
36648         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
36649         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
36650         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
36651         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
36652         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
36653
36654 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
36655
36656         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
36657         * lib/ioctl.c: Include <sys/ioctl.h>.
36658
36659 2009-01-19  Simon Josefsson  <simon@josefsson.org>
36660
36661         * modules/getdate-tests (Depends-on): Add progname.
36662         * tests/test-getdate.c: Use progname module, to avoid link errors
36663         on non-glibc systems.
36664
36665 2009-01-18  Simon Josefsson  <simon@josefsson.org>
36666
36667         * modules/filenamecat-tests (Depends-on): Add progname.
36668         * modules/fstrcmp-tests (Depends-on): Likewise.
36669
36670         * tests/test-filenamecat.c: Use progname module, to avoid link
36671         errors on non-glibc systems.
36672         * tests/test-fstrcmp.c: Likewise.
36673
36674 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
36675
36676         gettimeofday: avoid warning: nested extern declaration of 'localtime'
36677         * lib/gettimeofday.c: Move extern declaration out of function.
36678
36679 2009-01-18  Bruno Haible  <bruno@clisp.org>
36680
36681         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
36682         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
36683         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
36684
36685 2009-01-18  Bruno Haible  <bruno@clisp.org>
36686
36687         * lib/strftime.c (MEMPCPY): Remove unused macro.
36688         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
36689
36690 2009-01-18  Martin Lambers  <marlam@marlam.de>
36691
36692         New module 'link'.
36693         * lib/unistd.in.h (link): New declaration.
36694         * lib/link.c: New file.
36695         * m4/link.m4: New file.
36696         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
36697         HAVE_LINK.
36698         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
36699         * modules/link: New file.
36700         * doc/posix-functions/link.texi: Mention the new module.
36701
36702 2009-01-18  Bruno Haible  <bruno@clisp.org>
36703
36704         * tests/test-avltree_list.c (main): Call set_program_name.
36705         * tests/test-avltree_oset.c (main): Likewise.
36706         * tests/test-obstack-printf.c: Include progname.h.
36707         (main): Call set_program_name.
36708         * tests/test-quotearg.c: Include progname.h.
36709         (main): Call set_program_name.
36710         * tests/test-xmemdup0.c: Include progname.h.
36711         (main): Call set_program_name.
36712
36713 2009-01-18  Bruno Haible  <bruno@clisp.org>
36714
36715         New module 'alphasort'.
36716         * lib/dirent.in.h (alphasort): New declaration.
36717         * lib/alphasort.c: New file, from glibc with modifications.
36718         * m4/alphasort.m4: New file.
36719         * modules/alphasort: New file.
36720         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
36721         HAVE_ALPHASORT.
36722         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
36723         HAVE_ALPHASORT.
36724         * doc/posix-functions/alphasort.texi: Mention the new module and the
36725         portability problems.
36726
36727 2009-01-18  Bruno Haible  <bruno@clisp.org>
36728
36729         New module 'scandir'.
36730         * lib/dirent.in.h (scandir): New declaration.
36731         * lib/scandir.c: New file, from glibc with modifications.
36732         * m4/scandir.m4: New file.
36733         * modules/scandir: New file.
36734         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
36735         HAVE_SCANDIR.
36736         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
36737         HAVE_SCANDIR.
36738         * doc/posix-functions/scandir.texi: Mention the new module and the
36739         portability problems.
36740
36741 2009-01-17  Bruno Haible  <bruno@clisp.org>
36742
36743         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
36744         Update documentation.
36745         (func_remove_suffix): Escape all dots in the suffix. Update
36746         documentation.
36747         (func_filter_filelist): Update documentation.
36748         Reported by Ralf Wildenhues.
36749
36750 2009-01-17  Bruno Haible  <bruno@clisp.org>
36751
36752         * modules/dprintf-posix-tests: New file.
36753         * tests/test-dprintf-posix.sh: New file.
36754         * tests/test-dprintf-posix.c: New file.
36755
36756         New modules 'dprintf', 'dprintf-posix'.
36757         * lib/stdio.in.h (dprintf): New declaration.
36758         * lib/dprintf.c: New file.
36759         * m4/dprintf.m4: New file.
36760         * m4/dprintf-posix.m4: New file.
36761         * modules/dprintf: New file.
36762         * modules/dprintf-posix: New file.
36763         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
36764         HAVE_DPRINTF, REPLACE_DPRINTF.
36765         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
36766         HAVE_DPRINTF, REPLACE_DPRINTF.
36767         * doc/posix-functions/dprintf.texi: Mention the new modules.
36768
36769 2009-01-17  Bruno Haible  <bruno@clisp.org>
36770
36771         * modules/vdprintf-posix-tests: New file.
36772         * tests/test-vdprintf-posix.sh: New file.
36773         * tests/test-vdprintf-posix.c: New file.
36774
36775         New modules 'vdprintf', 'vdprintf-posix'.
36776         * lib/stdio.in.h (vdprintf): New declaration.
36777         * lib/vdprintf.c: New file.
36778         * m4/vdprintf.m4: New file.
36779         * m4/vdprintf-posix.m4: New file.
36780         * modules/vdprintf: New file.
36781         * modules/vdprintf-posix: New file.
36782         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
36783         HAVE_VDPRINTF, REPLACE_VDPRINTF.
36784         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
36785         HAVE_VDPRINTF, REPLACE_VDPRINTF.
36786         * doc/posix-functions/vdprintf.texi: Mention the new modules.
36787
36788 2009-01-17  Bruno Haible  <bruno@clisp.org>
36789
36790         Fix replacement of fopen on mingw.
36791         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
36792         mingw.
36793
36794 2009-01-17  Bruno Haible  <bruno@clisp.org>
36795
36796         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
36797         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
36798
36799 2009-01-17  Bruno Haible  <bruno@clisp.org>
36800
36801         Avoid test-fflush2.sh failure on mingw.
36802         * tests/test-fflush2.c: Include binary-io.h.
36803         (main): Put standard input into binary mode.
36804         * modules/fflush-tests (Depends-on): Add binary-io.
36805
36806 2009-01-17  Bruno Haible  <bruno@clisp.org>
36807
36808         * lib/wchar.in.h: In another particular situation, include only the
36809         system's <wchar.h> file.
36810         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
36811         Reported by Albert Chin-A-Young <china@thewrittenword.com>
36812         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
36813
36814 2009-01-17  Bruno Haible  <bruno@clisp.org>
36815
36816         Support for stripping executables in --enable-relocatable.
36817         * build-aux/install-reloc: Expect one more argument, or an environment
36818         variable RELOC_STRIP_PROG. If set, strip the destination program and
36819         its wrapper.
36820         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
36821         RELOC_STRIP_PROG.
36822         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
36823         to set RELOCATABLE_STRIP.
36824         * NEWS: Mention the new Makefile requirement.
36825
36826 2009-01-17  Bruno Haible  <bruno@clisp.org>
36827
36828         * build-aux/install-reloc: Remove debugging information left over by
36829         C compiler on MacOS X.
36830
36831 2009-01-17  Bruno Haible  <bruno@clisp.org>
36832
36833         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
36834         * lib/progreloc.c (find_executable): Fix type of pointer passed to
36835         _NSGetExecutablePath.
36836
36837 2009-01-16  Jim Meyering  <meyering@redhat.com>
36838
36839         strerror: avoid warnings about discarding "const"
36840         * lib/strerror.c (rpl_strerror): Instead of returning a const
36841         string from each and every "case", use a variable, and add a single
36842         cast after the switch.
36843
36844 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
36845
36846         * lib/arpa_inet.in.h: Add extern "C" block for C++.
36847
36848 2009-01-16  Bruno Haible  <bruno@clisp.org>
36849
36850         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
36851         array initializer syntax that also works in C++ mode.
36852         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36853
36854 2009-01-16  Jim Meyering  <meyering@redhat.com>
36855
36856         poll: suppress a warning
36857         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
36858         to ignore "...unsigned expression < 0 is always false" warnings.
36859
36860 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
36861
36862         poll: remove declarations of unused variables
36863         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
36864         sockbuf and optlen.
36865
36866 2009-01-15  Bruno Haible  <bruno@clisp.org>
36867
36868         Make fflush-after-ungetc POSIX compliant on BSD systems.
36869         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
36870         (clear_ungetc_buffer): Implement also for other systems.
36871         (rpl_fflush): On glibc systems, invoke
36872         clear_ungetc_buffer_preserving_position. Otherwise, invoke
36873         clear_ungetc_buffer after fetching the stream's position, not before.
36874
36875 2009-01-15  Bruno Haible  <bruno@clisp.org>
36876
36877         Make fflush-after-ungetc POSIX compliant on glibc systems.
36878         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
36879         after ungetc.
36880         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
36881         (rpl_fflush): On glibc systems, simply call the system's fflush
36882         function after clearing the ungetc buffer.
36883         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
36884         Instead, lseek only to the end of file, then use the system's fseeko
36885         for the rest. On glibc systems, reset the EOF indicator bit.
36886
36887 2009-01-15  Jim Meyering  <meyering@redhat.com>
36888
36889         openmp.m4: revert quote-adding change, for portability to older autoconf
36890         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
36891         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
36892         Simon Josefsson noticed the problem when using autoconf-2.61.
36893
36894 2009-01-15  Bruno Haible  <bruno@clisp.org>
36895
36896         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
36897         * tests/test-fflush2.c (ASSERT): Always fail.
36898         (main): Add two tests for fflush() after ungetc(), taking into account
36899         the Austin Group's clarification.
36900         Suggested by Eric Blake.
36901
36902 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
36903
36904         mktime.m4: remove K&R-style function prototypes
36905         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
36906         for the Sun C++ compiler.
36907
36908 2009-01-14  Bruno Haible  <bruno@clisp.org>
36909
36910         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
36911         while including <wchar.h>.
36912         * lib/wchar.in.h: In two particular situations on HP-UX, include only
36913         the system's <wchar.h> file.
36914         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36915
36916 2009-01-14  Bruno Haible  <bruno@clisp.org>
36917
36918         * m4/csharp.m4: Don't mention gettext on the serial number line.
36919         * m4/csharpexec.m4: Likewise.
36920         * m4/eaccess.m4: Likewise.
36921         * m4/javaexec.m4: Likewise.
36922         * m4/sig_atomic_t.m4: Likewise.
36923         * m4/tmpdir.m4: Likewise.
36924         * m4/intldir.m4: Bump gettext version.
36925         * m4/lib-ld.m4: Likewise.
36926
36927 2009-01-14  Bruno Haible  <bruno@clisp.org>
36928
36929         * lib/progname.c (set_program_name): Add more comments.
36930         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
36931
36932 2009-01-14  Simon Josefsson  <simon@josefsson.org>
36933
36934         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
36935         were sys/stat.h does not define it.
36936
36937 2009-01-14  Jim Meyering  <meyering@redhat.com>
36938
36939         many *.m4 files: improve m4 quoting
36940         99% of this change was performed by running the following commands:
36941         git ls-files | grep '\.m4$' | xargs perl -pi \
36942           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
36943           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
36944           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
36945           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
36946         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
36947         The remainder were to add Copyright dates, increment serial numbers,
36948         undo some changes in comments, exclude m4/intl.m4, and add quotes
36949         around the "1" in ",1" where the unusual spacing prohibited the
36950         above regexps from doing the job.  For more details, see
36951         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
36952         * m4/acl.m4: Modified.
36953         * m4/afs.m4: Likewise.
36954         * m4/alloca.m4: Likewise.
36955         * m4/argp.m4: Likewise.
36956         * m4/argz.m4: Likewise.
36957         * m4/atexit.m4: Likewise.
36958         * m4/bison-i18n.m4: Likewise.
36959         * m4/bison.m4: Likewise.
36960         * m4/byteswap.m4: Likewise.
36961         * m4/c-stack.m4: Likewise.
36962         * m4/c-strtod.m4: Likewise.
36963         * m4/calloc.m4: Likewise.
36964         * m4/canonicalize-lgpl.m4: Likewise.
36965         * m4/chown.m4: Likewise.
36966         * m4/clock_time.m4: Likewise.
36967         * m4/codeset.m4: Likewise.
36968         * m4/copy-file.m4: Likewise.
36969         * m4/csharp.m4: Likewise.
36970         * m4/csharpcomp.m4: Likewise.
36971         * m4/csharpexec.m4: Likewise.
36972         * m4/d-ino.m4: Likewise.
36973         * m4/d-type.m4: Likewise.
36974         * m4/dirfd.m4: Likewise.
36975         * m4/double-slash-root.m4: Likewise.
36976         * m4/eaccess.m4: Likewise.
36977         * m4/eealloc.m4: Likewise.
36978         * m4/environ.m4: Likewise.
36979         * m4/errno_h.m4: Likewise.
36980         * m4/euidaccess.m4: Likewise.
36981         * m4/execute.m4: Likewise.
36982         * m4/fatal-signal.m4: Likewise.
36983         * m4/fchdir.m4: Likewise.
36984         * m4/fcntl_h.m4: Likewise.
36985         * m4/fileblocks.m4: Likewise.
36986         * m4/filenamecat.m4: Likewise.
36987         * m4/findprog.m4: Likewise.
36988         * m4/flexmember.m4: Likewise.
36989         * m4/fnmatch.m4: Likewise.
36990         * m4/fopen.m4: Likewise.
36991         * m4/fpending.m4: Likewise.
36992         * m4/fprintf-posix.m4: Likewise.
36993         * m4/free.m4: Likewise.
36994         * m4/frexp.m4: Likewise.
36995         * m4/frexpl.m4: Likewise.
36996         * m4/fsusage.m4: Likewise.
36997         * m4/ftruncate.m4: Likewise.
36998         * m4/gc-camellia.m4: Likewise.
36999         * m4/gc-random.m4: Likewise.
37000         * m4/gc.m4: Likewise.
37001         * m4/getaddrinfo.m4: Likewise.
37002         * m4/getcwd-abort-bug.m4: Likewise.
37003         * m4/getcwd-path-max.m4: Likewise.
37004         * m4/getdate.m4: Likewise.
37005         * m4/getdomainname.m4: Likewise.
37006         * m4/getgroups.m4: Likewise.
37007         * m4/gethostname.m4: Likewise.
37008         * m4/gethrxtime.m4: Likewise.
37009         * m4/getline.m4: Likewise.
37010         * m4/getloadavg.m4: Likewise.
37011         * m4/getndelim2.m4: Likewise.
37012         * m4/getpass.m4: Likewise.
37013         * m4/gettext.m4: Likewise.
37014         * m4/gettime.m4: Likewise.
37015         * m4/gettimeofday.m4: Likewise.
37016         * m4/gnulib-common.m4: Likewise.
37017         * m4/group-member.m4: Likewise.
37018         * m4/host-os.m4: Likewise.
37019         * m4/iconv.m4: Likewise.
37020         * m4/iconv_open.m4: Likewise.
37021         * m4/inet_ntop.m4: Likewise.
37022         * m4/inet_pton.m4: Likewise.
37023         * m4/inline.m4: Likewise.
37024         * m4/intldir.m4: Likewise.
37025         * m4/intlmacosx.m4: Likewise.
37026         * m4/intmax.m4: Likewise.
37027         * m4/intmax_t.m4: Likewise.
37028         * m4/inttypes.m4: Likewise.
37029         * m4/inttypes_h.m4: Likewise.
37030         * m4/inttypes-pri.m4: Likewise.
37031         * m4/isapipe.m4: Likewise.
37032         * m4/isnand.m4: Likewise.
37033         * m4/isnanf.m4: Likewise.
37034         * m4/isnanl.m4: Likewise.
37035         * m4/javacomp.m4: Likewise.
37036         * m4/javaexec.m4: Likewise.
37037         * m4/jm-winsz1.m4: Likewise.
37038         * m4/jm-winsz2.m4: Likewise.
37039         * m4/lchown.m4: Likewise.
37040         * m4/lcmessage.m4: Likewise.
37041         * m4/ldexpl.m4: Likewise.
37042         * m4/lib-ld.m4: Likewise.
37043         * m4/lib-link.m4: Likewise.
37044         * m4/libsigsegv.m4: Likewise.
37045         * m4/link-follow.m4: Likewise.
37046         * m4/localcharset.m4: Likewise.
37047         * m4/locale-fr.m4: Likewise.
37048         * m4/locale-ja.m4: Likewise.
37049         * m4/locale-tr.m4: Likewise.
37050         * m4/locale-zh.m4: Likewise.
37051         * m4/lock.m4: Likewise.
37052         * m4/longlong.m4: Likewise.
37053         * m4/ls-mntd-fs.m4: Likewise.
37054         * m4/lstat.m4: Likewise.
37055         * m4/malloc.m4: Likewise.
37056         * m4/mathl.m4: Likewise.
37057         * m4/mbrtowc.m4: Likewise.
37058         * m4/mbstate_t.m4: Likewise.
37059         * m4/mbswidth.m4: Likewise.
37060         * m4/memchr.m4: Likewise.
37061         * m4/memcmp.m4: Likewise.
37062         * m4/memcpy.m4: Likewise.
37063         * m4/memmem.m4: Likewise.
37064         * m4/memmove.m4: Likewise.
37065         * m4/mempcpy.m4: Likewise.
37066         * m4/memrchr.m4: Likewise.
37067         * m4/memset.m4: Likewise.
37068         * m4/minmax.m4: Likewise.
37069         * m4/mkdir-slash.m4: Likewise.
37070         * m4/mkdtemp.m4: Likewise.
37071         * m4/mktime.m4: Likewise.
37072         * m4/mmap-anon.m4: Likewise.
37073         * m4/mountlist.m4: Likewise.
37074         * m4/nanosleep.m4: Likewise.
37075         * m4/nls.m4: Likewise.
37076         * m4/nocrash.m4: Likewise.
37077         * m4/open.m4: Likewise.
37078         * m4/openat.m4: Likewise.
37079         * m4/openmp.m4: Likewise.
37080         * m4/pathmax.m4: Likewise.
37081         * m4/perl.m4: Likewise.
37082         * m4/physmem.m4: Likewise.
37083         * m4/pipe.m4: Likewise.
37084         * m4/po.m4: Likewise.
37085         * m4/poll.m4: Likewise.
37086         * m4/posixtm.m4: Likewise.
37087         * m4/posixver.m4: Likewise.
37088         * m4/printf-frexp.m4: Likewise.
37089         * m4/printf-frexpl.m4: Likewise.
37090         * m4/printf-posix.m4: Likewise.
37091         * m4/printf-posix-rpl.m4: Likewise.
37092         * m4/printf.m4: Likewise.
37093         * m4/progtest.m4: Likewise.
37094         * m4/putenv.m4: Likewise.
37095         * m4/readline.m4: Likewise.
37096         * m4/readlink.m4: Likewise.
37097         * m4/readutmp.m4: Likewise.
37098         * m4/realloc.m4: Likewise.
37099         * m4/regex.m4: Likewise.
37100         * m4/relocatable.m4: Likewise.
37101         * m4/relocatable-lib.m4: Likewise.
37102         * m4/rename-dest-slash.m4: Likewise.
37103         * m4/rename.m4: Likewise.
37104         * m4/rmdir-errno.m4: Likewise.
37105         * m4/rmdir.m4: Likewise.
37106         * m4/roundf.m4: Likewise.
37107         * m4/roundl.m4: Likewise.
37108         * m4/rpmatch.m4: Likewise.
37109         * m4/save-cwd.m4: Likewise.
37110         * m4/selinux-selinux-h.m4: Likewise.
37111         * m4/setenv.m4: Likewise.
37112         * m4/settime.m4: Likewise.
37113         * m4/sig2str.m4: Likewise.
37114         * m4/sig_atomic_t.m4: Likewise.
37115         * m4/signalblocking.m4: Likewise.
37116         * m4/signbit.m4: Likewise.
37117         * m4/sigpipe.m4: Likewise.
37118         * m4/sockets.m4: Likewise.
37119         * m4/sockpfaf.m4: Likewise.
37120         * m4/st_dm_mode.m4: Likewise.
37121         * m4/stat-time.m4: Likewise.
37122         * m4/stdbool.m4: Likewise.
37123         * m4/stdint.m4: Likewise.
37124         * m4/stdint_h.m4: Likewise.
37125         * m4/stpcpy.m4: Likewise.
37126         * m4/stpncpy.m4: Likewise.
37127         * m4/strcase.m4: Likewise.
37128         * m4/strchrnul.m4: Likewise.
37129         * m4/strcspn.m4: Likewise.
37130         * m4/strdup.m4: Likewise.
37131         * m4/strftime.m4: Likewise.
37132         * m4/strndup.m4: Likewise.
37133         * m4/strnlen.m4: Likewise.
37134         * m4/strpbrk.m4: Likewise.
37135         * m4/strptime.m4: Likewise.
37136         * m4/strsep.m4: Likewise.
37137         * m4/strtod.m4: Likewise.
37138         * m4/strtoimax.m4: Likewise.
37139         * m4/strtok_r.m4: Likewise.
37140         * m4/strtol.m4: Likewise.
37141         * m4/strtoll.m4: Likewise.
37142         * m4/strtoul.m4: Likewise.
37143         * m4/strtoull.m4: Likewise.
37144         * m4/strtoumax.m4: Likewise.
37145         * m4/strverscmp.m4: Likewise.
37146         * m4/threadlib.m4: Likewise.
37147         * m4/timegm.m4: Likewise.
37148         * m4/tm_gmtoff.m4: Likewise.
37149         * m4/tmpdir.m4: Likewise.
37150         * m4/tmpfile.m4: Likewise.
37151         * m4/tzset.m4: Likewise.
37152         * m4/uintmax_t.m4: Likewise.
37153         * m4/unlinkdir.m4: Likewise.
37154         * m4/unlocked-io.m4: Likewise.
37155         * m4/uptime.m4: Likewise.
37156         * m4/userspec.m4: Likewise.
37157         * m4/utimbuf.m4: Likewise.
37158         * m4/utime.m4: Likewise.
37159         * m4/utimes-null.m4: Likewise.
37160         * m4/utimes.m4: Likewise.
37161         * m4/vararrays.m4: Likewise.
37162         * m4/vasnprintf.m4: Likewise.
37163         * m4/vfprintf-posix.m4: Likewise.
37164         * m4/vprintf-posix.m4: Likewise.
37165         * m4/wait-process.m4: Likewise.
37166         * m4/wchar_t.m4: Likewise.
37167         * m4/wint_t.m4: Likewise.
37168         * m4/write-any-file.m4: Likewise.
37169         * m4/yield.m4: Likewise.
37170
37171 2009-01-13  Bruno Haible  <bruno@clisp.org>
37172
37173         Avoid test-copy-file.sh failures when ACL support insufficient.
37174         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
37175         TESTS_ENVIRONMENT.
37176         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
37177         Reported by Jim Meyering.
37178
37179 2009-01-13  Bruno Haible  <bruno@clisp.org>
37180
37181         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
37182         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
37183         * modules/unistdio/u8-printf-parse (Files): Likewise.
37184         * modules/unistdio/u32-printf-parse (Files): Likewise.
37185         * modules/unistdio/ulc-printf-parse (Files): Likewise.
37186
37187 2009-01-13  Simon Josefsson  <simon@josefsson.org>
37188
37189         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
37190         and m4/inttypes_h.m4 too.
37191
37192 2009-01-12  Eric Blake  <ebb9@byu.net>
37193
37194         tests: IRIX 6.2 cc can't compile -0.0 into .data
37195         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
37196         rather than at compile-time.
37197         * tests/test-floorl.c (minus_zero): Likewise.
37198         * tests/test-frexpl.c (minus_zero): Likewise.
37199         * tests/test-isnan.c (minus_zerol): Likewise.
37200         * tests/test-isnanl.h (minus_zero): Likewise.
37201         * tests/test-ldexpl.c (minus_zero): Likewise.
37202         * tests/test-roundl.c (minus_zero): Likewise.
37203         * tests/test-signbit.c (minus_zerol): Likewise.
37204         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
37205         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
37206         * tests/test-truncl.c (minus_zero): Likewise.
37207         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
37208         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
37209         Reported by Tom G. Christensen and Nelson H. F. Beebe.
37210
37211 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
37212
37213         regex: fix glibc bug 9697
37214         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
37215         handling.
37216
37217 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
37218
37219         regex: fix glibc bug 697
37220         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
37221         being NULL also if there are no backreferences.
37222
37223 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
37224
37225         regex: merge glibc changes
37226         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
37227         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
37228         re_string_skip_chars, re_string_reconstruct): Likewise.
37229         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
37230
37231 2009-01-07  Jim Meyering  <meyering@redhat.com>
37232
37233         poll: filter through cppi
37234         * lib/poll.c: Indent cpp directives to reflect nesting.
37235
37236 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
37237
37238         poll: don't return uninitialized
37239         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
37240
37241 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
37242
37243         avoid compile failure on AIX 6.1
37244         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
37245         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
37246
37247 2009-01-04  Jim Meyering  <meyering@redhat.com>
37248
37249         remove duplicate inclusion of <stdio.h>
37250         * tests/test-fprintf-posix.c: Likewise.
37251         * tests/test-printf-posix.c: Likewise.
37252         * tests/test-snprintf-posix.c: Likewise.
37253         * tests/test-sprintf-posix.c: Likewise.
37254         * tests/test-vasprintf-posix.c: Likewise.
37255         * tests/test-vfprintf-posix.c: Likewise.
37256         * tests/test-vprintf-posix.c: Likewise.
37257         * tests/test-vsnprintf-posix.c: Likewise.
37258         * tests/test-vsprintf-posix.c: Likewise.
37259
37260 2009-01-03  Jim Meyering  <meyering@redhat.com>
37261
37262         gnulib-tool: fix sed-based filtering
37263         * gnulib-tool (func_filter_filelist): Remove extra backslash
37264         in sed_fff_filter definition.
37265
37266 2009-01-02  Jim Meyering  <meyering@redhat.com>
37267
37268         strftime: avoid compilation failure on Solaris 2.6
37269         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
37270         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
37271         Don't #define mbrlen or mbsinit, since now they're guaranteed to
37272         be available.  Reported by Tom G. Christensen.  Details in
37273         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
37274
37275 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37276             Bruno Haible  <bruno@clisp.org>
37277
37278         Speed up gnulib-tool by doing more string processing through shell
37279         built-ins.
37280         * gnulib-tool (fast_func_append): New variable.
37281         (func_remove_prefix, func_remove_suffix): New functions.
37282         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
37283         (func_filter_filelist): New function.
37284         (func_get_dependencies): Use func_remove_suffix instead of sed.
37285         (func_get_automake_snippet): Use func_filter_filelist instead of a
37286         subshell and sed invocation.
37287
37288 2009-01-01  Bruno Haible  <bruno@clisp.org>
37289
37290         Fix a security bug.
37291         * gnulib-tool (func_import, import, update): Don't allow the characters
37292         '"', '$', '`', '\' in macro arguments that become part of commands that
37293         are evaluated.
37294
37295 2009-01-01  Bruno Haible  <bruno@clisp.org>
37296
37297         * gnulib-tool (func_reset_sigpipe): Add more comments.
37298
37299 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37300
37301         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
37302         func_emit_tests_Makefile_am, func_import): Abort loops early if we
37303         already know the answer.
37304
37305 2009-01-01  Jim Meyering  <meyering@redhat.com>
37306
37307         * lib/version-etc.c (version_etc_va): Update copyright year.
37308
37309 2008-12-30  Bruno Haible  <bruno@clisp.org>
37310
37311         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
37312         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
37313         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
37314
37315 2008-12-29  Eric Blake  <ebb9@byu.net>
37316
37317         multiarch: avoid autoconf AC_REQUIRE bug
37318         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
37319         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
37320         2.63 and older.
37321         Reported by Bruno Haible, and analyzed in
37322         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
37323
37324 2008-12-29  Bruno Haible  <bruno@clisp.org>
37325
37326         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
37327         files in subdirectories correctly.
37328         Reported by Ralf Wildenhues.
37329
37330 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37331
37332         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
37333         rather than 'join FILE -', for Solaris join.
37334
37335 2008-12-29  Bruno Haible  <bruno@clisp.org>
37336
37337         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
37338         quoting.
37339         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
37340         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
37341         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
37342         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
37343         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
37344         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
37345         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
37346         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
37347         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
37348         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
37349         * m4/nls.m4 (AM_NLS): Likewise.
37350         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
37351         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
37352         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
37353         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
37354         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
37355         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
37356         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
37357         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
37358         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
37359         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
37360         * m4/xsize.m4 (gl_XSIZE): Likewise.
37361         Suggested by Jim Meyering.
37362
37363 2008-11-17  Bruce Korb  <bkorb@gnu.org>
37364
37365         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
37366         * lib/parse-duration.c: use a switch instead of cascading if's.
37367
37368 2008-12-29  Eric Blake  <ebb9@byu.net>
37369
37370         wchar.h: supply WEOF on Irix 5.3
37371         * lib/wchar.in.h (wint_t): Also supply WEOF.
37372         * lib/wctype.in.h (wint_t): Likewise.
37373         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
37374         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
37375         Reported by Tom G. Christensen.
37376
37377 2008-12-26  Bruno Haible  <bruno@clisp.org>
37378
37379         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
37380         i486, i586, i686.
37381
37382 2008-12-26  Bruno Haible  <bruno@clisp.org>
37383
37384         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
37385
37386 2008-12-26  Bruno Haible  <bruno@clisp.org>
37387
37388         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
37389         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
37390         not __STDC_CONSTANT_MACROS.
37391         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
37392
37393 2008-12-25  Bruno Haible  <bruno@clisp.org>
37394
37395         Add support for universal builds to vasnprintf.
37396         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
37397         universal builds, guess no.
37398         * modules/vasnprintf-posix (Depends-on): Add multiarch.
37399         * modules/vasprintf-posix (Depends-on): Likewise.
37400         * modules/fprintf-posix (Depends-on): Likewise.
37401         * modules/vfprintf-posix (Depends-on): Likewise.
37402         * modules/snprintf-posix (Depends-on): Likewise.
37403         * modules/vsnprintf-posix (Depends-on): Likewise.
37404         * modules/sprintf-posix (Depends-on): Likewise.
37405         * modules/vsprintf-posix (Depends-on): Likewise.
37406         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
37407         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
37408         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
37409         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
37410         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
37411         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
37412         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
37413
37414         Add support for universal builds to <inttypes.h>.
37415         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
37416         _SCNu64_PREFIX): In Apple
37417         universal builds, define directly, using _LP64.
37418         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
37419         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
37420         * modules/inttypes (Depends-on): Add multiarch.
37421         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
37422
37423         Add support for universal builds to <stdint.h>.
37424         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
37425         universal builds, define directly, using _LP64.
37426         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
37427         Apple universal builds, don't test for the size and suffix of ptrdiff_t
37428         and size_t.
37429         * modules/stdint (Depends-on): Add multiarch.
37430         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
37431
37432         New module 'multiarch'.
37433         * modules/multiarch: New file.
37434         * m4/multiarch.m4: New file.
37435
37436 2008-12-25  Bruno Haible  <bruno@clisp.org>
37437
37438         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
37439
37440 2008-12-25  Bruno Haible  <bruno@clisp.org>
37441
37442         * modules/btowc (License): Relicense under LGPLv2+.
37443         * modules/mbsinit (License): Likewise.
37444         * modules/mbrtowc (License): Likewise.
37445         * modules/wcrtomb (License): Likewise.
37446         * modules/streq (License): Likewise.
37447         Reported by David Lutterkort <lutter@redhat.com>.
37448
37449 2008-12-23  Bruno Haible  <bruno@clisp.org>
37450
37451         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
37452
37453 2008-12-23  Bruno Haible  <bruno@clisp.org>
37454
37455         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
37456         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
37457         GETADDRINFO_LIB, not in LIBS.
37458         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
37459         * modules/canon-host (Link): Likewise.
37460         * NEWS: Mention the change.
37461         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
37462         GETADDRINFO_LIB.
37463
37464 2008-12-22  Bruno Haible  <bruno@clisp.org>
37465
37466         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
37467         * doc/posix-functions/iswalpha_l.texi: Likewise.
37468         * doc/posix-functions/iswblank_l.texi: Likewise.
37469         * doc/posix-functions/iswcntrl_l.texi: Likewise.
37470         * doc/posix-functions/iswctype_l.texi: Likewise.
37471         * doc/posix-functions/iswdigit_l.texi: Likewise.
37472         * doc/posix-functions/iswgraph_l.texi: Likewise.
37473         * doc/posix-functions/iswlower_l.texi: Likewise.
37474         * doc/posix-functions/iswprint_l.texi: Likewise.
37475         * doc/posix-functions/iswpunct_l.texi: Likewise.
37476         * doc/posix-functions/iswspace_l.texi: Likewise.
37477         * doc/posix-functions/iswupper_l.texi: Likewise.
37478         * doc/posix-functions/iswxdigit_l.texi: Likewise.
37479         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
37480         * doc/posix-functions/open_wmemstream.texi: Likewise.
37481         * doc/posix-functions/swscanf.texi: Likewise.
37482         * doc/posix-functions/towctrans_l.texi: Likewise.
37483         * doc/posix-functions/towlower.texi: Likewise.
37484         * doc/posix-functions/towlower_l.texi: Likewise.
37485         * doc/posix-functions/towupper.texi: Likewise.
37486         * doc/posix-functions/towupper_l.texi: Likewise.
37487         * doc/posix-functions/vfwprintf.texi: Likewise.
37488         * doc/posix-functions/vfwscanf.texi: Likewise.
37489         * doc/posix-functions/vswscanf.texi: Likewise.
37490         * doc/posix-functions/vwprintf.texi: Likewise.
37491         * doc/posix-functions/vwscanf.texi: Likewise.
37492         * doc/posix-functions/wcpcpy.texi: Likewise.
37493         * doc/posix-functions/wcpncpy.texi: Likewise.
37494         * doc/posix-functions/wcscasecmp.texi: Likewise.
37495         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
37496         * doc/posix-functions/wcscoll_l.texi: Likewise.
37497         * doc/posix-functions/wcsdup.texi: Likewise.
37498         * doc/posix-functions/wcsncasecmp.texi: Likewise.
37499         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
37500         * doc/posix-functions/wcsnlen.texi: Likewise.
37501         * doc/posix-functions/wcsnrtombs.texi: Likewise.
37502         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
37503         * doc/posix-functions/wctrans_l.texi: Likewise.
37504         * doc/posix-functions/wctype_l.texi: Likewise.
37505         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
37506         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
37507         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
37508         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
37509         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
37510         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
37511         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
37512         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
37513         * doc/glibc-functions/wcschrnul.texi: Likewise.
37514         * doc/glibc-functions/wcsftime_l.texi: Likewise.
37515         * doc/glibc-functions/wcstod_l.texi: Likewise.
37516         * doc/glibc-functions/wcstof_l.texi: Likewise.
37517         * doc/glibc-functions/wcstol_l.texi: Likewise.
37518         * doc/glibc-functions/wcstold_l.texi: Likewise.
37519         * doc/glibc-functions/wcstoll_l.texi: Likewise.
37520         * doc/glibc-functions/wcstoq.texi: Likewise.
37521         * doc/glibc-functions/wcstoul_l.texi: Likewise.
37522         * doc/glibc-functions/wcstoull_l.texi: Likewise.
37523         * doc/glibc-functions/wcstouq.texi: Likewise.
37524         * doc/glibc-functions/wmempcpy.texi: Likewise.
37525
37526 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
37527             Eric Blake  <ebb9@byu.net>
37528             Paolo Bonzini  <bonzini@gnu.org>
37529             Bruno Haible  <bruno@clisp.org>
37530
37531         Make c-stack work on Haiku.
37532         * lib/c-stack.c (SA_ONSTACK): Define fallback.
37533         (c_stack_action): Use SA_ONSTACK flag.
37534
37535 2008-12-22  Bruno Haible  <bruno@clisp.org>
37536
37537         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
37538
37539 2008-12-22  Bruno Haible  <bruno@clisp.org>
37540
37541         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
37542         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
37543         being overridden.
37544         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
37545         New macros.
37546         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
37547         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
37548         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
37549         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
37550
37551 2008-12-22  Bruno Haible  <bruno@clisp.org>
37552
37553         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
37554         from test code.
37555
37556 2008-12-22  Eric Blake  <ebb9@byu.net>
37557
37558         Avoid gcc warnings on cygwin.
37559         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
37560         Avoid unused variable.
37561         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
37562         Likewise.
37563
37564 2008-12-22  Bruno Haible  <bruno@clisp.org>
37565
37566         Remove HAVE_MBRTOWC conditionals.
37567         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
37568         (mbscasecmp): Assume mbrtowc function.
37569         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
37570         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
37571         * lib/mbschr.c: Include mbuiter.h unconditionally.
37572         (mbschr): Assume mbrtowc function.
37573         * lib/mbscspn.c: Include mbuiter.h unconditionally.
37574         (mbscspn): Assume mbrtowc function.
37575         * lib/mbslen.c: Include mbuiter.h unconditionally.
37576         (mbslen): Assume mbrtowc function.
37577         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
37578         (mbsncasecmp): Assume mbrtowc function.
37579         * lib/mbsnlen.c: Include mbiter.h unconditionally.
37580         (mbsnlen): Assume mbrtowc function.
37581         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
37582         (mbspbrk): Assume mbrtowc function.
37583         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
37584         (mbspcasecmp): Assume mbrtowc function.
37585         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
37586         (mbsrchr): Assume mbrtowc function.
37587         * lib/mbssep.c: Include mbuiter.h unconditionally.
37588         (mbssep): Assume mbrtowc function.
37589         * lib/mbsspn.c: Include mbuiter.h unconditionally.
37590         (mbsspn): Assume mbrtowc function.
37591         * lib/mbsstr.c: Include mbuiter.h unconditionally.
37592         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
37593         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
37594         (mbstok_r): Assume mbrtowc function.
37595         * lib/propername.c: Include mbuiter.h unconditionally.
37596         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
37597         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
37598         (trim2): Assume mbrtowc function.
37599         * lib/mbswidth.c (mbsinit): Remove fallback definition.
37600         (mbsnwidth): Assume mbrtowc function.
37601         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
37602         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
37603         fallback definitions.
37604         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
37605
37606 2008-12-22  Bruno Haible  <bruno@clisp.org>
37607
37608         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
37609
37610 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
37611
37612         * modules/regex: Request emulations for the mb*/wc* functions we need.
37613         * m4/regex.m4: Don't look for those functions here.
37614         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
37615
37616 2008-12-22  Bruno Haible  <bruno@clisp.org>
37617
37618         * modules/fnmatch (Depends-on): Remove duplicated dependency.
37619
37620 2008-12-21  Bruno Haible  <bruno@clisp.org>
37621
37622         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
37623         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
37624         (Include): Remove conditionalization.
37625         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
37626         (Include): Remove conditionalization.
37627         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
37628         (Include): Remove conditionalization.
37629         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
37630         * m4/mbfile.m4 (gl_MBFILE): Likewise.
37631         * NEWS: Mention the change.
37632         Reported by Alan Hourihane <alanh@fairlite.co.uk>
37633         via Sergey Poznyakoff <gray@gnu.org.ua>.
37634
37635 2008-12-21  Bruno Haible  <bruno@clisp.org>
37636
37637         * MODULES.html.sh (Extended multibyte and wide character utilities
37638         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
37639         wcrtomb, wcsrtombs.
37640         (Support for systems lacking POSIX:2008): Add accept, bind, close,
37641         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
37642         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
37643         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
37644
37645 2008-12-21  Bruno Haible  <bruno@clisp.org>
37646
37647         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
37648
37649 2008-12-21  Bruno Haible  <bruno@clisp.org>
37650
37651         * modules/wcsnrtombs-tests: New file.
37652         * tests/test-wcsnrtombs1.sh: New file.
37653         * tests/test-wcsnrtombs2.sh: New file.
37654         * tests/test-wcsnrtombs3.sh: New file.
37655         * tests/test-wcsnrtombs4.sh: New file.
37656         * tests/test-wcsnrtombs.c: New file.
37657
37658         New module 'wcsnrtombs'.
37659         * lib/wchar.in.h (wcsnrtombs): New declaration.
37660         * lib/wcsnrtombs.c: New file.
37661         * lib/wcsrtombs-state.c: New file.
37662         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
37663         (internal_state): Remove variable.
37664         * m4/wcsnrtombs.m4: New file.
37665         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
37666         compilation units.
37667         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
37668         HAVE_WCSNRTOMBS.
37669         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
37670         HAVE_WCSNRTOMBS.
37671         * modules/wcsnrtombs: New file.
37672         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
37673         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
37674
37675 2008-12-21  Bruno Haible  <bruno@clisp.org>
37676
37677         * modules/wcsrtombs-tests: New file.
37678         * tests/test-wcsrtombs1.sh: New file.
37679         * tests/test-wcsrtombs2.sh: New file.
37680         * tests/test-wcsrtombs3.sh: New file.
37681         * tests/test-wcsrtombs4.sh: New file.
37682         * tests/test-wcsrtombs.c: New file.
37683
37684         New module 'wcsrtombs'.
37685         * lib/wchar.in.h (wcsrtombs): New declaration.
37686         * lib/wcsrtombs.c: New file.
37687         * m4/wcsrtombs.m4: New file.
37688         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
37689         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
37690         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
37691         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
37692         * modules/wcsrtombs: New file.
37693         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
37694         bugs.
37695
37696 2008-12-21  Bruno Haible  <bruno@clisp.org>
37697
37698         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
37699         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
37700         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
37701         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
37702         if not correct.
37703         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
37704         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
37705         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
37706         m4/locale-zh.m4, m4/codeset.m4.
37707         * doc/posix-functions/wcrtomb.texi: Document the bug.
37708
37709 2008-12-21  Bruno Haible  <bruno@clisp.org>
37710
37711         Work around a btowc() bug on IRIX 6.5.
37712         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
37713         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
37714         REPLACE_WTOBC if not.
37715         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
37716         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
37717         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
37718
37719 2008-12-21  Bruno Haible  <bruno@clisp.org>
37720
37721         * modules/wcrtomb-tests: New file.
37722         * tests/test-wcrtomb.sh: New file.
37723         * tests/test-wcrtomb.c: New file.
37724
37725         New module 'wcrtomb'.
37726         * lib/wchar.in.h (wcrtomb): New declaration.
37727         * lib/wcrtomb.c: New file.
37728         * m4/wcrtomb.m4: New file.
37729         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
37730         HAVE_WCRTOMB.
37731         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
37732         HAVE_WCRTOMB.
37733         * modules/wcrtomb: New file.
37734         * doc/posix-functions/wcrtomb.texi: Mention the new module.
37735
37736 2008-12-21  Bruno Haible  <bruno@clisp.org>
37737
37738         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
37739         * modules/mbsrtowcs (Files): Likewise.
37740         * modules/wctob (Files): Likewise.
37741         * modules/c-strcase-tests (Files): Likewise.
37742         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
37743         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
37744         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
37745         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
37746         * modules/vasnprintf-posix-tests (Files): Likewise.
37747
37748 2008-12-21  William Pursell  <bill.pursell@gmail.com>
37749
37750         gitlog-to-changelog: pass all command-line arguments to git-log
37751         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
37752         it is sometimes convenient to filter the commits in various ways.
37753         gitlog-to-changelog only allows --since to specify a start date,
37754         but git-log itself supports many other filtering mechanisms.
37755         At the moment, I want to filter by branch name.  Rather than
37756         adding a --branch option to gitlog-to-changelog, it seems more
37757         flexible to simply pass all options directly to git-log and let
37758         git do the work.  Notice that this effectively makes --since a
37759         redundant option for gitlog-to-changelog, but removing it would
37760         require current usage to change since calls would then require
37761         an additional '--'.
37762
37763 2008-12-21  Bruno Haible  <bruno@clisp.org>
37764
37765         * modules/mbsnrtowcs-tests: New file.
37766         * tests/test-mbsnrtowcs1.sh: New file.
37767         * tests/test-mbsnrtowcs2.sh: New file.
37768         * tests/test-mbsnrtowcs3.sh: New file.
37769         * tests/test-mbsnrtowcs4.sh: New file.
37770         * tests/test-mbsnrtowcs.c: New file.
37771
37772         New module 'mbsnrtowcs'.
37773         * lib/wchar.in.h (mbsnrtowcs): New declaration.
37774         * lib/mbsnrtowcs.c: New file.
37775         * lib/mbsrtowcs-state.c: New file.
37776         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
37777         (internal_state): Remove variable.
37778         * m4/mbsnrtowcs.m4: New file.
37779         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
37780         compilation units.
37781         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
37782         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
37783         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
37784         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
37785         * modules/mbsnrtowcs: New file.
37786         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
37787         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
37788         portability problem.
37789
37790 2008-12-21  Bruno Haible  <bruno@clisp.org>
37791
37792         Work around mbsrtowcs bug.
37793         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
37794         (gl_FUNC_MBSRTOWCS): Invoke it.
37795         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
37796         m4/locale-zh.m4.
37797         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
37798
37799 2008-12-21  Bruno Haible  <bruno@clisp.org>
37800
37801         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
37802
37803 2008-12-21  Bruno Haible  <bruno@clisp.org>
37804
37805         Update doc for AIX.
37806         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
37807         16-bit wchar_t type.
37808         * doc/posix-functions/btowc.texi: Likewise.
37809         * doc/posix-functions/fgetwc.texi: Likewise.
37810         * doc/posix-functions/fgetws.texi: Likewise.
37811         * doc/posix-functions/fputwc.texi: Likewise.
37812         * doc/posix-functions/fputws.texi: Likewise.
37813         * doc/posix-functions/fwide.texi: Likewise.
37814         * doc/posix-functions/fwprintf.texi: Likewise.
37815         * doc/posix-functions/fwscanf.texi: Likewise.
37816         * doc/posix-functions/getwchar.texi: Likewise.
37817         * doc/posix-functions/getwc.texi: Likewise.
37818         * doc/posix-functions/iswalnum.texi: Likewise.
37819         * doc/posix-functions/iswalpha.texi: Likewise.
37820         * doc/posix-functions/iswblank.texi: Likewise.
37821         * doc/posix-functions/iswcntrl.texi: Likewise.
37822         * doc/posix-functions/iswctype.texi: Likewise.
37823         * doc/posix-functions/iswdigit.texi: Likewise.
37824         * doc/posix-functions/iswgraph.texi: Likewise.
37825         * doc/posix-functions/iswlower.texi: Likewise.
37826         * doc/posix-functions/iswprint.texi: Likewise.
37827         * doc/posix-functions/iswpunct.texi: Likewise.
37828         * doc/posix-functions/iswspace.texi: Likewise.
37829         * doc/posix-functions/iswupper.texi: Likewise.
37830         * doc/posix-functions/iswxdigit.texi: Likewise.
37831         * doc/posix-functions/mbrtowc.texi: Likewise.
37832         * doc/posix-functions/mbsrtowcs.texi: Likewise.
37833         * doc/posix-functions/mbstowcs.texi: Likewise.
37834         * doc/posix-functions/mbtowc.texi: Likewise.
37835         * doc/posix-functions/putwchar.texi: Likewise.
37836         * doc/posix-functions/putwc.texi: Likewise.
37837         * doc/posix-functions/swprintf.texi: Likewise.
37838         * doc/posix-functions/tolower.texi: Likewise.
37839         * doc/posix-functions/toupper.texi: Likewise.
37840         * doc/posix-functions/towctrans.texi: Likewise.
37841         * doc/posix-functions/ungetwc.texi: Likewise.
37842         * doc/posix-functions/vswprintf.texi: Likewise.
37843         * doc/posix-functions/wcrtomb.texi: Likewise.
37844         * doc/posix-functions/wcscat.texi: Likewise.
37845         * doc/posix-functions/wcschr.texi: Likewise.
37846         * doc/posix-functions/wcscmp.texi: Likewise.
37847         * doc/posix-functions/wcscoll.texi: Likewise.
37848         * doc/posix-functions/wcscpy.texi: Likewise.
37849         * doc/posix-functions/wcscspn.texi: Likewise.
37850         * doc/posix-functions/wcsftime.texi: Likewise.
37851         * doc/posix-functions/wcslen.texi: Likewise.
37852         * doc/posix-functions/wcsncat.texi: Likewise.
37853         * doc/posix-functions/wcsncmp.texi: Likewise.
37854         * doc/posix-functions/wcsncpy.texi: Likewise.
37855         * doc/posix-functions/wcspbrk.texi: Likewise.
37856         * doc/posix-functions/wcsrchr.texi: Likewise.
37857         * doc/posix-functions/wcsrtombs.texi: Likewise.
37858         * doc/posix-functions/wcsspn.texi: Likewise.
37859         * doc/posix-functions/wcsstr.texi: Likewise.
37860         * doc/posix-functions/wcstod.texi: Likewise.
37861         * doc/posix-functions/wcstof.texi: Likewise.
37862         * doc/posix-functions/wcstoimax.texi: Likewise.
37863         * doc/posix-functions/wcstok.texi: Likewise.
37864         * doc/posix-functions/wcstold.texi: Likewise.
37865         * doc/posix-functions/wcstoll.texi: Likewise.
37866         * doc/posix-functions/wcstol.texi: Likewise.
37867         * doc/posix-functions/wcstombs.texi: Likewise.
37868         * doc/posix-functions/wcstoull.texi: Likewise.
37869         * doc/posix-functions/wcstoul.texi: Likewise.
37870         * doc/posix-functions/wcstoumax.texi: Likewise.
37871         * doc/posix-functions/wcswidth.texi: Likewise.
37872         * doc/posix-functions/wcsxfrm.texi: Likewise.
37873         * doc/posix-functions/wctob.texi: Likewise.
37874         * doc/posix-functions/wctomb.texi: Likewise.
37875         * doc/posix-functions/wctrans.texi: Likewise.
37876         * doc/posix-functions/wctype.texi: Likewise.
37877         * doc/posix-functions/wcwidth.texi: Likewise.
37878         * doc/posix-functions/wmemchr.texi: Likewise.
37879         * doc/posix-functions/wmemcmp.texi: Likewise.
37880         * doc/posix-functions/wmemcpy.texi: Likewise.
37881         * doc/posix-functions/wmemmove.texi: Likewise.
37882         * doc/posix-functions/wmemset.texi: Likewise.
37883         * doc/posix-functions/wprintf.texi: Likewise.
37884         * doc/posix-functions/wscanf.texi: Likewise.
37885
37886 2008-12-21  Bruno Haible  <bruno@clisp.org>
37887
37888         Update doc for HP-UX 11.11.
37889         * doc/posix-functions/btowc.texi: Clarify that the function is missing
37890         in HP-UX version 11.00, not in all versions of HP-UX 11.
37891         * doc/posix-functions/fwide.texi: Likewise.
37892         * doc/posix-functions/fwprintf.texi: Likewise.
37893         * doc/posix-functions/fwscanf.texi: Likewise.
37894         * doc/posix-functions/inet_ntop.texi: Likewise.
37895         * doc/posix-functions/inet_pton.texi: Likewise.
37896         * doc/posix-functions/mbrlen.texi: Likewise.
37897         * doc/posix-functions/mbrtowc.texi: Likewise.
37898         * doc/posix-functions/mbsinit.texi: Likewise.
37899         * doc/posix-functions/mbsrtowcs.texi: Likewise.
37900         * doc/posix-functions/swprintf.texi: Likewise.
37901         * doc/posix-functions/swscanf.texi: Likewise.
37902         * doc/posix-functions/towctrans.texi: Likewise.
37903         * doc/posix-functions/vfwprintf.texi: Likewise.
37904         * doc/posix-functions/vswprintf.texi: Likewise.
37905         * doc/posix-functions/vwprintf.texi: Likewise.
37906         * doc/posix-functions/wcrtomb.texi: Likewise.
37907         * doc/posix-functions/wcsrtombs.texi: Likewise.
37908         * doc/posix-functions/wcsstr.texi: Likewise.
37909         * doc/posix-functions/wctob.texi: Likewise.
37910         * doc/posix-functions/wctrans.texi: Likewise.
37911         * doc/posix-functions/wmemchr.texi: Likewise.
37912         * doc/posix-functions/wmemcmp.texi: Likewise.
37913         * doc/posix-functions/wmemcpy.texi: Likewise.
37914         * doc/posix-functions/wmemmove.texi: Likewise.
37915         * doc/posix-functions/wmemset.texi: Likewise.
37916         * doc/posix-functions/wprintf.texi: Likewise.
37917         * doc/posix-functions/wscanf.texi: Likewise.
37918
37919 2008-12-21  Bruno Haible  <bruno@clisp.org>
37920
37921         Work around a portability problem.
37922         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
37923         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
37924
37925 2008-12-20  Bruno Haible  <bruno@clisp.org>
37926
37927         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
37928         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
37929         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
37930         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
37931         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
37932
37933         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
37934         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
37935         set.
37936         (GNULIB_defined_mbstate_t): New macro.
37937         (mbsinit): Redefine if REPLACE_MBSINIT is set.
37938         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
37939         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
37940         reuses the system's mbrtowc function but works around the bugs.
37941         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
37942         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
37943         macros.
37944         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
37945         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
37946         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
37947         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
37948         REPLACE_MBSINIT if mbsinit needs to be overridden.
37949         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
37950         REPLACE_MBSINIT, REPLACE_MBRTOWC.
37951         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
37952         REPLACE_MBSINIT, REPLACE_MBRTOWC.
37953         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
37954         m4/locale-zh.m4.
37955         (Depends): Add mbsinit.
37956         * modules/mbsinit (Depends): Add mbrtowc.
37957         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
37958
37959 2008-12-20  Bruno Haible  <bruno@clisp.org>
37960
37961         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
37962         so that there are no conversion errors on AIX.
37963         * tests/test-mbsrtowcs.c (main): LIkewise.
37964
37965 2008-12-20  Bruno Haible  <bruno@clisp.org>
37966
37967         Work around wctob bug on Solaris <= 9.
37968         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
37969         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
37970         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
37971         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
37972         * modules/wctob (Files): Add m4/locale-fr.m4.
37973         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
37974
37975 2008-12-20  Bruno Haible  <bruno@clisp.org>
37976
37977         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
37978         /dev/null.
37979         * tests/test-select-in.sh: Likewise.
37980         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37981
37982 2008-12-20  Bruno Haible  <bruno@clisp.org>
37983
37984         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
37985         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
37986         Cygwin 1.5.x.
37987
37988 2008-12-20  Bruno Haible  <bruno@clisp.org>
37989
37990         Ensure mbstate_t is defined on HP-UX 11.11.
37991         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
37992         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
37993         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
37994         AC_USE_SYSTEM_EXTENSIONS.
37995         * modules/fnmatch (Depends-on): Add extensions.
37996         * modules/mbrlen (Depends-on): Likewise.
37997         * modules/mbrtowc (Depends-on): Likewise.
37998         * modules/mbsinit (Depends-on): Likewise.
37999         * modules/mbsrtowcs (Depends-on): Likewise.
38000         * modules/mbswidth (Depends-on): Likewise.
38001         * modules/quotearg (Depends-on): Likewise.
38002         * modules/strftime (Depends-on): Likewise.
38003
38004 2008-12-20  Bruno Haible  <bruno@clisp.org>
38005
38006         Ensure wctob is declared on IRIX 6.5.
38007         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
38008         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
38009         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
38010         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
38011         of HAVE_WCTOB.
38012         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
38013         HAVE_WCTOB.
38014         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
38015
38016 2008-12-19  Bruno Haible  <bruno@clisp.org>
38017
38018         * modules/mbsrtowcs-tests: New file.
38019         * tests/test-mbsrtowcs1.sh: New file.
38020         * tests/test-mbsrtowcs2.sh: New file.
38021         * tests/test-mbsrtowcs3.sh: New file.
38022         * tests/test-mbsrtowcs4.sh: New file.
38023         * tests/test-mbsrtowcs.c: New file.
38024
38025         New module 'mbsrtowcs'.
38026         * lib/wchar.in.h (mbsrtowcs): New declaration.
38027         * lib/mbsrtowcs.c: New file.
38028         * m4/mbsrtowcs.m4: New file.
38029         * modules/mbsrtowcs: New file.
38030         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
38031         HAVE_MBSRTOWCS.
38032         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
38033         HAVE_MBSRTOWCS.
38034         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
38035
38036 2008-12-19  Bruno Haible  <bruno@clisp.org>
38037
38038         New module 'mbrlen'.
38039         * lib/wchar.in.h (mbrlen): New declaration.
38040         * lib/mbrlen.c: New file.
38041         * m4/mbrlen.m4: New file.
38042         * modules/mbrlen: New file.
38043         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
38044         HAVE_MBRLEN.
38045         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
38046         HAVE_MBRLEN.
38047         * doc/posix-functions/mbrlen.texi: Document the new module.
38048
38049 2008-12-19  Bruno Haible  <bruno@clisp.org>
38050
38051         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
38052         * modules/mbrtowc (Depends-on): Add verify.
38053         Suggested by Paul Eggert.
38054
38055 2008-12-18  Bruno Haible  <bruno@clisp.org>
38056
38057         * modules/mbsinit-tests: New file.
38058         * tests/test-mbsinit.sh: New file.
38059         * tests/test-mbsinit.c: New file.
38060
38061 2008-12-18  Bruno Haible  <bruno@clisp.org>
38062
38063         * modules/mbrtowc-tests: New file.
38064         * tests/test-mbrtowc1.sh: New file.
38065         * tests/test-mbrtowc2.sh: New file.
38066         * tests/test-mbrtowc3.sh: New file.
38067         * tests/test-mbrtowc4.sh: New file.
38068         * tests/test-mbrtowc.c: New file.
38069
38070         New module 'mbrtowc'.
38071         * lib/wchar.in.h (mbstate_t): Override when the system does not have
38072         mbsinit and mbrtowc.
38073         (mbrtowc): New declaration.
38074         * lib/mbrtowc.c: New file.
38075         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
38076         * modules/mbrtowc: New file.
38077         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
38078         HAVE_MBRTOWC.
38079         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
38080         HAVE_MBRTOWC.
38081         * doc/posix-functions/mbrtowc.texi: Document the new module.
38082
38083 2008-12-18  Bruno Haible  <bruno@clisp.org>
38084
38085         New module 'wctob'.
38086         * lib/wchar.in.h (wctob): New declaration.
38087         * lib/wctob.c: New file.
38088         * m4/wctob.m4: New file.
38089         * modules/wctob: New file.
38090         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
38091         HAVE_WCTOB.
38092         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
38093         * doc/posix-functions/wctob.texi: Document the new module.
38094
38095 2008-12-18  Bruno Haible  <bruno@clisp.org>
38096
38097         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
38098         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
38099
38100 2008-12-18  Simon Josefsson  <simon@josefsson.org>
38101
38102         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
38103         G. Christensen" <tgc@jupiterrise.com>.
38104
38105         * lib/flock.c: Need to include errno.h.  Reported by "Tom
38106         G. Christensen" <tgc@jupiterrise.com>.
38107
38108         * lib/flock.c: Need to include string.h.  Reported by "Tom
38109         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
38110         <ebb9@byu.net>.
38111
38112 2008-12-18  Bruno Haible  <bruno@clisp.org>
38113
38114         * m4/locale-ja.m4: New file, from GNU gettext.
38115
38116 2008-12-17  Bruno Haible  <bruno@clisp.org>
38117
38118         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
38119         Suggested by Eric Blake.
38120
38121 2008-12-17  Bruno Haible  <bruno@clisp.org>
38122
38123         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
38124
38125 2008-12-17  Bruno Haible  <bruno@clisp.org>
38126
38127         * lib/mbsinit.c: Include verify.h. Verify an assumption.
38128         * modules/mbsinit (Depends-on): Add verify.
38129         Suggested by Paul Eggert.
38130
38131 2008-12-17  Bruno Haible  <bruno@clisp.org>
38132
38133         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
38134         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
38135         gl_FUNC_MBRTOWC.
38136         * m4/mbiter.m4 (gl_MBITER): LIkewise.
38137         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
38138         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
38139         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
38140         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
38141         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
38142         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
38143         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
38144         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
38145         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
38146         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
38147         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
38148         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
38149         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
38150         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
38151         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
38152         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
38153         * modules/trim (configure.ac): Likewise.
38154
38155 2008-12-17  Bruno Haible  <bruno@clisp.org>
38156
38157         * modules/btowc-tests: New file.
38158         * tests/test-btowc1.sh: New file.
38159         * tests/test-btowc2.sh: New file.
38160         * tests/test-btowc.c: New file.
38161
38162         New module 'btowc'.
38163         * lib/wchar.in.h (btowc): New declaration.
38164         * lib/btowc.c: New file.
38165         * m4/btowc.m4: New file.
38166         * modules/btowc: New file.
38167         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
38168         HAVE_BTOWC.
38169         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
38170         * doc/posix-functions/btowc.texi: Document the new module.
38171
38172 2008-12-17  Bruno Haible  <bruno@clisp.org>
38173
38174         New module 'mbsinit'.
38175         * lib/wchar.in.h (mbsinit): New declaration.
38176         * lib/mbsinit.c: New file.
38177         * m4/mbsinit.m4: New file.
38178         * modules/mbsinit: New file.
38179         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
38180         HAVE_MBSINIT.
38181         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
38182         HAVE_MBSINIT.
38183         * doc/posix-functions/mbsinit.texi: Document the new module.
38184
38185 2008-12-16  Bruno Haible  <bruno@clisp.org>
38186
38187         * lib/unistd.in.h: Add comment.
38188         * tests/test-environ.c: Don't include <stdlib.h>.
38189
38190 2008-12-16  Bruno Haible  <bruno@clisp.org>
38191
38192         * lib/parse-duration.h (parse_duration): Document return value
38193         convention.
38194         * lib/parse-duration.c: Include specification header first. Add
38195         comments.
38196         (_): Remove macro.
38197         (parse_year_month_day, parse_hour_minute_second): Move side effects
38198         outside of strchr call.
38199         (parse_non_iso8601): Move side effects outside of isspace call.
38200         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
38201         call.
38202
38203 2008-12-16  Bruno Haible  <bruno@clisp.org>
38204
38205         * tests/test-parse-duration.sh: Produce no output when the test
38206         succeeds.
38207
38208 2008-12-16  Bruno Haible  <bruno@clisp.org>
38209
38210         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
38211         expressions.
38212
38213 2008-12-15  Bruno Haible  <bruno@clisp.org>
38214
38215         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
38216         * doc/glibc-functions/flistxattr.texi: Likewise.
38217         * doc/glibc-functions/fopencookie.texi: Likewise.
38218         * doc/glibc-functions/fremovexattr.texi: Likewise.
38219         * doc/glibc-functions/fsetxattr.texi: Likewise.
38220         * doc/glibc-functions/getxattr.texi: Likewise.
38221         * doc/glibc-functions/lgetxattr.texi: Likewise.
38222         * doc/glibc-functions/listxattr.texi: Likewise.
38223         * doc/glibc-functions/llistxattr.texi: Likewise.
38224         * doc/glibc-functions/lremovexattr.texi: Likewise.
38225         * doc/glibc-functions/lsetxattr.texi: Likewise.
38226         * doc/glibc-functions/removexattr.texi: Likewise.
38227         * doc/glibc-functions/setxattr.texi: Likewise.
38228         * doc/posix-functions/open_memstream.texi: Likewise.
38229
38230 2008-12-15  Eric Blake  <ebb9@byu.net>
38231
38232         Update doc for cygwin 1.7.
38233         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
38234         functions.
38235         * doc/posix-functions/fchmodat.texi: Likewise.
38236         * doc/posix-functions/fchownat.texi: Likewise.
38237         * doc/posix-functions/fdopendir.texi: Likewise.
38238         * doc/posix-functions/fmemopen.texi: Likewise.
38239         * doc/posix-functions/freeaddrinfo.texi: Likewise.
38240         * doc/posix-functions/fstatat.texi: Likewise.
38241         * doc/posix-functions/futimens.texi: Likewise.
38242         * doc/posix-functions/gai_strerror.texi: Likewise.
38243         * doc/posix-functions/getaddrinfo.texi: Likewise.
38244         * doc/posix-functions/getnameinfo.texi: Likewise.
38245         * doc/posix-functions/if_freenameindex.texi: Likewise.
38246         * doc/posix-functions/if_indextoname.texi: Likewise.
38247         * doc/posix-functions/if_nameindex.texi: Likewise.
38248         * doc/posix-functions/if_nametoindex.texi: Likewise.
38249         * doc/posix-functions/insque.texi: Likewise.
38250         * doc/posix-functions/linkat.texi: Likewise.
38251         * doc/posix-functions/llrint.texi: Likewise.
38252         * doc/posix-functions/llrintf.texi: Likewise.
38253         * doc/posix-functions/llrintl.texi: Likewise.
38254         * doc/posix-functions/lockf.texi: Likewise.
38255         * doc/posix-functions/lrintl.texi: Likewise.
38256         * doc/posix-functions/mkdirat.texi: Likewise.
38257         * doc/posix-functions/mkfifoat.texi: Likewise.
38258         * doc/posix-functions/mknodat.texi: Likewise.
38259         * doc/posix-functions/mq_close.texi: Likewise.
38260         * doc/posix-functions/mq_getattr.texi: Likewise.
38261         * doc/posix-functions/mq_notify.texi: Likewise.
38262         * doc/posix-functions/mq_open.texi: Likewise.
38263         * doc/posix-functions/mq_receive.texi: Likewise.
38264         * doc/posix-functions/mq_send.texi: Likewise.
38265         * doc/posix-functions/mq_setattr.texi: Likewise.
38266         * doc/posix-functions/mq_timedreceive.texi: Likewise.
38267         * doc/posix-functions/mq_timedsend.texi: Likewise.
38268         * doc/posix-functions/mq_unlink.texi: Likewise.
38269         * doc/posix-functions/open_memstream.texi: Likewise.
38270         * doc/posix-functions/openat.texi: Likewise.
38271         * doc/posix-functions/posix_fadvise.texi: Likewise.
38272         * doc/posix-functions/posix_fallocate.texi: Likewise.
38273         * doc/posix-functions/posix_madvise.texi: Likewise.
38274         * doc/posix-functions/posix_memalign.texi: Likewise.
38275         * doc/posix-functions/posix_openpt.texi: Likewise.
38276         * doc/posix-functions/readlinkat.texi: Likewise.
38277         * doc/posix-functions/remque.texi: Likewise.
38278         * doc/posix-functions/renameat.texi: Likewise.
38279         * doc/posix-functions/rintl.texi: Likewise.
38280         * doc/posix-functions/sem_unlink.texi: Likewise.
38281         * doc/posix-functions/shm_open.texi: Likewise.
38282         * doc/posix-functions/shm_unlink.texi: Likewise.
38283         * doc/posix-functions/signgam.texi: Likewise.
38284         * doc/posix-functions/sigset.texi: Likewise.
38285         * doc/posix-functions/stpcpy.texi: Likewise.
38286         * doc/posix-functions/stpncpy.texi: Likewise.
38287         * doc/posix-functions/strerror.texi: Likewise.
38288         * doc/posix-functions/strtod.texi: Likewise.
38289         * doc/posix-functions/symlinkat.texi: Likewise.
38290         * doc/posix-functions/unlinkat.texi: Likewise.
38291         * doc/posix-functions/utimensat.texi: Likewise.
38292         * doc/glibc-functions/bindresvport.texi: Likewise.
38293         * doc/glibc-functions/dn_expand.texi: Likewise.
38294         * doc/glibc-functions/exp10.texi: Likewise.
38295         * doc/glibc-functions/exp10f.texi: Likewise.
38296         * doc/glibc-functions/fgetxattr.texi: Likewise.
38297         * doc/glibc-functions/flistxattr.texi: Likewise.
38298         * doc/glibc-functions/fopencookie.texi: Likewise.
38299         * doc/glibc-functions/freeifaddrs.texi: Likewise.
38300         * doc/glibc-functions/fremovexattr.texi: Likewise.
38301         * doc/glibc-functions/fsetxattr.texi: Likewise.
38302         * doc/glibc-functions/getifaddrs.texi: Likewise.
38303         * doc/glibc-functions/getxattr.texi: Likewise.
38304         * doc/glibc-functions/lgetxattr.texi: Likewise.
38305         * doc/glibc-functions/listxattr.texi: Likewise.
38306         * doc/glibc-functions/llistxattr.texi: Likewise.
38307         * doc/glibc-functions/lremovexattr.texi: Likewise.
38308         * doc/glibc-functions/lsetxattr.texi: Likewise.
38309         * doc/glibc-functions/pow10.texi: Likewise.
38310         * doc/glibc-functions/pow10f.texi: Likewise.
38311         * doc/glibc-functions/rcmd_af.texi: Likewise.
38312         * doc/glibc-functions/removexattr.texi: Likewise.
38313         * doc/glibc-functions/res_init.texi: Likewise.
38314         * doc/glibc-functions/res_mkquery.texi: Likewise.
38315         * doc/glibc-functions/res_query.texi: Likewise.
38316         * doc/glibc-functions/res_querydomain.texi: Likewise.
38317         * doc/glibc-functions/res_send.texi: Likewise.
38318         * doc/glibc-functions/rresvport_af.texi: Likewise.
38319         * doc/glibc-functions/setxattr.texi: Likewise.
38320         * doc/glibc-functions/strcasestr.texi: Likewise.
38321
38322 2008-12-15  Bruno Haible  <bruno@clisp.org>
38323
38324         Fix compilation error on OSF/1 4.0.
38325         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
38326         <sys/time.h>, simply delegate to the system header.
38327         Reported by Daniel Richard G. <oss@teragram.com>.
38328
38329 2008-12-15  Bruno Haible  <bruno@clisp.org>
38330
38331         * doc/posix-functions/openat.texi: Mention the 'openat' module.
38332         * doc/posix-functions/fchmodat.texi: Likewise.
38333         * doc/posix-functions/fchownat.texi: Likewise.
38334         * doc/posix-functions/fdopendir.texi: Likewise.
38335         * doc/posix-functions/fstatat.texi: Likewise.
38336         * doc/posix-functions/mkdirat.texi: Likewise.
38337         * doc/posix-functions/unlinkat.texi: Likewise.
38338
38339 2008-12-14  Bruno Haible  <bruno@clisp.org>
38340
38341         Update doc for POSIX:2008.
38342         * doc/posix-functions/faccessat.texi: New file.
38343         * doc/posix-functions/fchmodat.texi: New file.
38344         * doc/posix-functions/fchownat.texi: New file.
38345         * doc/posix-functions/fdopendir.texi: New file.
38346         * doc/posix-functions/fstatat.texi: New file.
38347         * doc/posix-functions/futimens.texi: New file.
38348         * doc/posix-functions/linkat.texi: New file.
38349         * doc/posix-functions/mkdirat.texi: New file.
38350         * doc/posix-functions/mkfifoat.texi: New file.
38351         * doc/posix-functions/mknodat.texi: New file.
38352         * doc/posix-functions/open_wmemstream.texi: New file.
38353         * doc/posix-functions/openat.texi: New file.
38354         * doc/posix-functions/psiginfo.texi: New file.
38355         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
38356         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
38357         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
38358         * doc/posix-functions/readlinkat.texi: New file.
38359         * doc/posix-functions/renameat.texi: New file.
38360         * doc/posix-functions/strerror_l.texi: New file.
38361         * doc/posix-functions/symlinkat.texi: New file.
38362         * doc/posix-functions/unlinkat.texi: New file.
38363         * doc/posix-functions/utimensat.texi: New file.
38364         * doc/gnulib.texi (Function Substitutes): Add these subsections.
38365
38366 2008-12-14  Bruno Haible  <bruno@clisp.org>
38367
38368         Update doc for POSIX:2008.
38369         * doc/posix-functions/alphasort.texi: Renamed from
38370         doc/glibc-functions/alphasort.texi.
38371         * doc/posix-functions/dirfd.texi: Renamed from
38372         doc/glibc-functions/dirfd.texi.
38373         * doc/posix-functions/dprintf.texi: Renamed from
38374         doc/glibc-functions/dprintf.texi.
38375         * doc/posix-functions/duplocale.texi: Renamed from
38376         doc/glibc-functions/duplocale.texi.
38377         * doc/posix-functions/fexecve.texi: Renamed from
38378         doc/glibc-functions/fexecve.texi.
38379         * doc/posix-functions/fmemopen.texi: Renamed from
38380         doc/glibc-functions/fmemopen.texi.
38381         * doc/posix-functions/freelocale.texi: Renamed from
38382         doc/glibc-functions/freelocale.texi.
38383         * doc/posix-functions/getdate_err.texi: Renamed from
38384         doc/glibc-functions/getdate_err.texi.
38385         * doc/posix-functions/isalnum_l.texi: Renamed from
38386         doc/glibc-functions/isalnum_l.texi.
38387         * doc/posix-functions/isalpha_l.texi: Renamed from
38388         doc/glibc-functions/isalpha_l.texi.
38389         * doc/posix-functions/isblank_l.texi: Renamed from
38390         doc/glibc-functions/isblank_l.texi.
38391         * doc/posix-functions/iscntrl_l.texi: Renamed from
38392         doc/glibc-functions/iscntrl_l.texi.
38393         * doc/posix-functions/isdigit_l.texi: Renamed from
38394         doc/glibc-functions/isdigit_l.texi.
38395         * doc/posix-functions/isgraph_l.texi: Renamed from
38396         doc/glibc-functions/isgraph_l.texi.
38397         * doc/posix-functions/islower_l.texi: Renamed from
38398         doc/glibc-functions/islower_l.texi.
38399         * doc/posix-functions/isprint_l.texi: Renamed from
38400         doc/glibc-functions/isprint_l.texi.
38401         * doc/posix-functions/ispunct_l.texi: Renamed from
38402         doc/glibc-functions/ispunct_l.texi.
38403         * doc/posix-functions/isspace_l.texi: Renamed from
38404         doc/glibc-functions/isspace_l.texi.
38405         * doc/posix-functions/isupper_l.texi: Renamed from
38406         doc/glibc-functions/isupper_l.texi.
38407         * doc/posix-functions/iswalnum_l.texi: Renamed from
38408         doc/glibc-functions/iswalnum_l.texi.
38409         * doc/posix-functions/iswalpha_l.texi: Renamed from
38410         doc/glibc-functions/iswalpha_l.texi.
38411         * doc/posix-functions/iswblank_l.texi: Renamed from
38412         doc/glibc-functions/iswblank_l.texi.
38413         * doc/posix-functions/iswcntrl_l.texi: Renamed from
38414         doc/glibc-functions/iswcntrl_l.texi.
38415         * doc/posix-functions/iswctype_l.texi: Renamed from
38416         doc/glibc-functions/iswctype_l.texi.
38417         * doc/posix-functions/iswdigit_l.texi: Renamed from
38418         doc/glibc-functions/iswdigit_l.texi.
38419         * doc/posix-functions/iswgraph_l.texi: Renamed from
38420         doc/glibc-functions/iswgraph_l.texi.
38421         * doc/posix-functions/iswlower_l.texi: Renamed from
38422         doc/glibc-functions/iswlower_l.texi.
38423         * doc/posix-functions/iswprint_l.texi: Renamed from
38424         doc/glibc-functions/iswprint_l.texi.
38425         * doc/posix-functions/iswpunct_l.texi: Renamed from
38426         doc/glibc-functions/iswpunct_l.texi.
38427         * doc/posix-functions/iswspace_l.texi: Renamed from
38428         doc/glibc-functions/iswspace_l.texi.
38429         * doc/posix-functions/iswupper_l.texi: Renamed from
38430         doc/glibc-functions/iswupper_l.texi.
38431         * doc/posix-functions/iswxdigit_l.texi: Renamed from
38432         doc/glibc-functions/iswxdigit_l.texi.
38433         * doc/posix-functions/isxdigit_l.texi: Renamed from
38434         doc/glibc-functions/isxdigit_l.texi.
38435         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
38436         doc/glibc-functions/mbsnrtowcs.texi.
38437         * doc/posix-functions/mkdtemp.texi: Renamed from
38438         doc/glibc-functions/mkdtemp.texi.
38439         * doc/posix-functions/newlocale.texi: Renamed from
38440         doc/glibc-functions/newlocale.texi.
38441         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
38442         doc/glibc-functions/nl_langinfo_l.texi.
38443         * doc/posix-functions/open_memstream.texi: Renamed from
38444         doc/glibc-functions/open_memstream.texi.
38445         * doc/posix-functions/opterr.texi: Renamed from
38446         doc/glibc-functions/opterr.texi.
38447         * doc/posix-functions/optind.texi: Renamed from
38448         doc/glibc-functions/optind.texi.
38449         * doc/posix-functions/optopt.texi: Renamed from
38450         doc/glibc-functions/optopt.texi.
38451         * doc/posix-functions/psignal.texi: Renamed from
38452         doc/glibc-functions/psignal.texi.
38453         * doc/posix-functions/scandir.texi: Renamed from
38454         doc/glibc-functions/scandir.texi.
38455         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
38456         doc/glibc-functions/sched_get_priority_min.texi.
38457         * doc/posix-functions/signgam.texi: Renamed from
38458         doc/glibc-functions/signgam.texi.
38459         * doc/posix-functions/stpcpy.texi: Renamed from
38460         doc/glibc-functions/stpcpy.texi.
38461         * doc/posix-functions/stpncpy.texi: Renamed from
38462         doc/glibc-functions/stpncpy.texi.
38463         * doc/posix-functions/strcasecmp_l.texi: Renamed from
38464         doc/glibc-functions/strcasecmp_l.texi.
38465         * doc/posix-functions/strcoll_l.texi: Renamed from
38466         doc/glibc-functions/strcoll_l.texi.
38467         * doc/posix-functions/strfmon_l.texi: Renamed from
38468         doc/glibc-functions/strfmon_l.texi.
38469         * doc/posix-functions/strftime_l.texi: Renamed from
38470         doc/glibc-functions/strftime_l.texi.
38471         * doc/posix-functions/strncasecmp_l.texi: Renamed from
38472         doc/glibc-functions/strncasecmp_l.texi.
38473         * doc/posix-functions/strndup.texi: Renamed from
38474         doc/glibc-functions/strndup.texi.
38475         * doc/posix-functions/strnlen.texi: Renamed from
38476         doc/glibc-functions/strnlen.texi.
38477         * doc/posix-functions/strsignal.texi: Renamed from
38478         doc/glibc-functions/strsignal.texi.
38479         * doc/posix-functions/strxfrm_l.texi: Renamed from
38480         doc/glibc-functions/strxfrm_l.texi.
38481         * doc/posix-functions/timer_gettime.texi: Renamed from
38482         doc/glibc-functions/timer_gettime.texi.
38483         * doc/posix-functions/tolower_l.texi: Renamed from
38484         doc/glibc-functions/tolower_l.texi.
38485         * doc/posix-functions/toupper_l.texi: Renamed from
38486         doc/glibc-functions/toupper_l.texi.
38487         * doc/posix-functions/towctrans_l.texi: Renamed from
38488         doc/glibc-functions/towctrans_l.texi.
38489         * doc/posix-functions/towlower_l.texi: Renamed from
38490         doc/glibc-functions/towlower_l.texi.
38491         * doc/posix-functions/towupper_l.texi: Renamed from
38492         doc/glibc-functions/towupper_l.texi.
38493         * doc/posix-functions/uselocale.texi: Renamed from
38494         doc/glibc-functions/uselocale.texi.
38495         * doc/posix-functions/vdprintf.texi: Renamed from
38496         doc/glibc-functions/vdprintf.texi.
38497         * doc/posix-functions/wcpcpy.texi:
38498         Renamed from doc/glibc-functions/wcpcpy.texi.
38499         * doc/posix-functions/wcpncpy.texi: Renamed from
38500         doc/glibc-functions/wcpncpy.texi.
38501         * doc/posix-functions/wcscasecmp.texi: Renamed from
38502         doc/glibc-functions/wcscasecmp.texi.
38503         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
38504         doc/glibc-functions/wcscasecmp_l.texi.
38505         * doc/posix-functions/wcscoll_l.texi: Renamed from
38506         doc/glibc-functions/wcscoll_l.texi.
38507         * doc/posix-functions/wcsdup.texi: Renamed from
38508         doc/glibc-functions/wcsdup.texi.
38509         * doc/posix-functions/wcsncasecmp.texi: Renamed from
38510         doc/glibc-functions/wcsncasecmp.texi.
38511         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
38512         doc/glibc-functions/wcsncasecmp_l.texi.
38513         * doc/posix-functions/wcsnlen.texi: Renamed from
38514         doc/glibc-functions/wcsnlen.texi.
38515         * doc/posix-functions/wcsnrtombs.texi: Renamed from
38516         doc/glibc-functions/wcsnrtombs.texi.
38517         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
38518         doc/glibc-functions/wcsxfrm_l.texi.
38519         * doc/posix-functions/wctrans_l.texi: Renamed from
38520         doc/glibc-functions/wctrans_l.texi.
38521         * doc/posix-functions/wctype_l.texi: Renamed from
38522         doc/glibc-functions/wctype_l.texi.
38523         * doc/gnulib.texi (Function Substitutes): Add these subsections.
38524         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
38525         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
38526         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
38527         these subsections.
38528         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
38529         Remove sections.
38530
38531 2008-12-14  Bruno Haible  <bruno@clisp.org>
38532
38533         Update doc for POSIX:2008.
38534         * doc/posix-functions/*.texi: Update URL of POSIX specification.
38535
38536 2008-12-14  Bruno Haible  <bruno@clisp.org>
38537
38538         Update doc for POSIX:2008.
38539         * doc/pastposix-functions/bcmp.texi: Renamed from
38540         doc/posix-functions/bcmp.texi.
38541         * doc/pastposix-functions/bcopy.texi: Renamed from
38542         doc/posix-functions/bcopy.texi.
38543         * doc/pastposix-functions/bsd_signal.texi: Renamed from
38544         doc/posix-functions/bsd_signal.texi.
38545         * doc/pastposix-functions/bzero.texi: Renamed from
38546         doc/posix-functions/bzero.texi.
38547         * doc/pastposix-functions/ecvt.texi: Renamed from
38548         doc/posix-functions/ecvt.texi.
38549         * doc/pastposix-functions/fcvt.texi: Renamed from
38550         doc/posix-functions/fcvt.texi.
38551         * doc/pastposix-functions/ftime.texi: Renamed from
38552         doc/posix-functions/ftime.texi.
38553         * doc/pastposix-functions/gcvt.texi: Renamed from
38554         doc/posix-functions/gcvt.texi.
38555         * doc/pastposix-functions/getcontext.texi: Renamed from
38556         doc/posix-functions/getcontext.texi.
38557         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
38558         doc/posix-functions/gethostbyaddr.texi.
38559         * doc/pastposix-functions/gethostbyname.texi: Renamed from
38560         doc/posix-functions/gethostbyname.texi.
38561         * doc/pastposix-functions/getwd.texi: Renamed from
38562         doc/posix-functions/getwd.texi.
38563         * doc/pastposix-functions/h_errno.texi: Renamed from
38564         doc/posix-functions/h_errno.texi.
38565         * doc/pastposix-functions/index.texi: Renamed from
38566         doc/posix-functions/index.texi.
38567         * doc/pastposix-functions/makecontext.texi: Renamed from
38568         doc/posix-functions/makecontext.texi.
38569         * doc/pastposix-functions/mktemp.texi: Renamed from
38570         doc/posix-functions/mktemp.texi.
38571         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
38572         doc/posix-functions/pthread_attr_getstackaddr.texi.
38573         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
38574         doc/posix-functions/pthread_attr_setstackaddr.texi.
38575         * doc/pastposix-functions/rindex.texi: Renamed from
38576         doc/posix-functions/rindex.texi.
38577         * doc/pastposix-functions/scalb.texi: Renamed from
38578         doc/posix-functions/scalb.texi.
38579         * doc/pastposix-functions/setcontext.texi: Renamed from
38580         doc/posix-functions/setcontext.texi.
38581         * doc/pastposix-functions/swapcontext.texi: Renamed from
38582         doc/posix-functions/swapcontext.texi.
38583         * doc/pastposix-functions/ualarm.texi: Renamed from
38584         doc/posix-functions/ualarm.texi.
38585         * doc/pastposix-functions/usleep.texi: Renamed from
38586         doc/posix-functions/usleep.texi.
38587         * doc/pastposix-functions/vfork.texi: Renamed from
38588         doc/posix-functions/vfork.texi.
38589         * doc/pastposix-functions/wcswcs.texi: Renamed from
38590         doc/posix-functions/wcswcs.texi.
38591         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
38592         (Function Substitutes): Update.
38593
38594 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38595
38596         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
38597         m4/strerror.m4.
38598
38599 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38600             Bruno Haible  <bruno@clisp.org>
38601
38602         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
38603
38604 2008-12-13  Bruno Haible  <bruno@clisp.org>
38605
38606         * modules/strtoull (Depends-on): Remove unistd.
38607
38608 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38609
38610         * modules/strtoull (Depends-on): Add stdlib.
38611
38612 2008-12-11  Simon Josefsson  <simon@josefsson.org>
38613
38614         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
38615
38616 2008-12-10  Jim Meyering  <meyering@redhat.com>
38617
38618         gl_ASSERT: don't say assertions are disabled when they're not
38619         * m4/assert.m4 (gl_ASSERT): Do not make configure report
38620         "checking whether to enable assertions... no", when they are in
38621         fact enabled.  This is solely a bug in the output of configure.
38622         In spite of saying "no", NDEBUG was not defined in that case.
38623         Also, as noted by Eric Blake, leave assertions enabled upon
38624         --enable-assert=INVALID.
38625
38626 2008-12-10  Bruno Haible  <bruno@clisp.org>
38627
38628         Change MODULES.html to refer to POSIX:2008 where possible.
38629         * MODULES.html.sh (POSIX2008_URL): New variable.
38630         (posix_headers): Remove sys/timeb, ucontext.
38631         (posix2001_headers): New variable.
38632         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
38633         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
38634         index, makecontext, mktemp, pthread_attr_getstackaddr,
38635         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
38636         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
38637         (posix2001_functions): New variable.
38638         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
38639         otherwise.
38640
38641 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38642
38643         add missing include to parse-duration.c
38644         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
38645         * modules/parse-duration (Depends-on): Add xalloc.
38646
38647         fix sed script reading maint.mk
38648         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
38649         (syntax-check-rules): Use it.
38650
38651 2008-12-09  Bruno Haible  <bruno@clisp.org>
38652
38653         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
38654         MacOS X 10.4/PowerPC.
38655         Reported by Simon Josefsson.
38656
38657 2008-12-08  Jim Meyering  <meyering@redhat.com>
38658
38659         work around mingw's lack of some S_IF definitions
38660         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
38661         Reported by Simon Josefsson.
38662
38663 2008-12-08  Bruno Haible  <bruno@clisp.org>
38664
38665         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
38666         applied to variables. Needed on MacOS X 10.4/PowerPC.
38667         Reported by Simon Josefsson.
38668
38669 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
38670         and Eric Blake  <ebb9@byu.net>
38671
38672         assert: honor --enable-assert
38673         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
38674         order to honor --enable-assert, rather than treating it as a
38675         synonym for --disable-assert.
38676
38677 2008-12-08  Jim Meyering  <meyering@redhat.com>
38678
38679         * lib/posixtm.c: Remove now-useless declaration of mktime.
38680
38681         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
38682
38683 2008-12-07  Bruno Haible  <bruno@clisp.org>
38684
38685         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
38686         test_once): Mark functions as static.
38687         * tests/test-tls.c (test_tls): Likewise.
38688
38689 2008-12-07  Bruno Haible  <bruno@clisp.org>
38690
38691         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
38692         iconv_register_autodetect.
38693
38694 2008-12-07  Jim Meyering  <meyering@redhat.com>
38695
38696         posixtm.c: avoid a warning
38697         * lib/posixtm.c (posixtime): Don't initialize tm0.
38698         It's no longer needed to placate gcc4's -Wuninitialized,
38699         and the attempt to placate would elicit a new warning.
38700
38701         unicodeio.c: mark unused parameters
38702         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
38703         (fallback_failure_callback): Likewise.
38704
38705 2008-12-07  Bruno Haible  <bruno@clisp.org>
38706
38707         * gnulib-tool (func_create_testdir): When building the tests
38708         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
38709         Reported by Simon Josefsson.
38710
38711 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38712
38713         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
38714
38715 2008-12-06  Bruno Haible  <bruno@clisp.org>
38716
38717         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
38718         Suggested by Eric Blake.
38719
38720 2008-12-06  Bruno Haible  <bruno@clisp.org>
38721
38722         Fix a c-stack test failure on MacOS X.
38723         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
38724         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
38725         handler for SIGBUS as well.
38726         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
38727         install a signal handler for SIGBUS as well.
38728         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
38729
38730 2008-12-06  Bruno Haible  <bruno@clisp.org>
38731
38732         Advocacy documentation.
38733         * doc/gnulib-intro.texi (Benefits): New section.
38734         * doc/gnulib.texi: Update.
38735
38736 2008-12-06  Bruno Haible  <bruno@clisp.org>
38737
38738         Document the 'manywarnings' module.
38739         * doc/manywarnings.texi: New file.
38740         * doc/gnulib.texi: Include it.
38741
38742 2008-12-05  Eric Blake  <ebb9@byu.net>
38743
38744         tests: silence some gcc warnings
38745         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
38746         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
38747         type mismatches.
38748
38749 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38750             Bruno Haible  <bruno@clisp.org>
38751
38752         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
38753
38754 2008-11-29  Jim Meyering  <meyering@redhat.com>
38755
38756         unicodeio.c: mark unused parameters
38757         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
38758         (fallback_failure_callback): Likewise.
38759
38760         fts: fix a thinko
38761         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
38762         (set_stat_type): Return S_IF*-valued "type" directly.
38763         Prompted by James Youngman's spotting a related bug.
38764         Confirmed by further testing through find.
38765
38766         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
38767         * lib/fts.c (D_TYPE): Define.
38768         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
38769         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
38770         (s_ifmt_shift_bits): New function.
38771         (set_stat_type): New function.
38772         (fts_build): When not calling fts_stat, call set_stat_type
38773         to propagate dirent.d_type info to fts_read caller.
38774         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
38775         fts_statp->st_mode type information may be valid.
38776
38777 2008-11-28  Simon Josefsson  <simon@josefsson.org>
38778
38779         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
38780         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
38781         <sds@gnu.org>.
38782
38783 2008-11-20  Bruno Haible  <bruno@clisp.org>
38784
38785         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
38786         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
38787         INCLUDE_NEXT.
38788         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
38789         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
38790         * modules/math (Makefile.am): Substitute
38791         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
38792         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38793
38794 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
38795             Bruno Haible  <bruno@clisp.org>
38796
38797         * lib/stdint.in.h: Define all type macros so that their expansion is
38798         a single typedef'ed token. Fixes a compilation failure in Boost which
38799         does "using ::int8_t;".
38800
38801 2008-11-18  Simon Josefsson  <simon@josefsson.org>
38802
38803         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
38804         gl_MANYWARN_ALL_GCC.
38805         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
38806         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
38807         * modules/manywarnings: New file.
38808         * MODULES.html.sh: Mention manywarnings module.
38809
38810 2008-11-18  Bruno Haible  <bruno@clisp.org>
38811
38812         * doc/gnulib-tool.texi (Unit tests): New section.
38813
38814 2008-11-18  Simon Josefsson  <simon@josefsson.org>
38815
38816         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
38817         paths like 'lib/po/foo.po'.
38818
38819 2008-11-17  Simon Josefsson  <simon@josefsson.org>
38820
38821         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
38822         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
38823
38824 2008-11-17  Simon Josefsson  <simon@josefsson.org>
38825
38826         * m4/warnings.m4: Use CPPFLAGS to really check whether the
38827         parameter works.
38828
38829 2008-11-17  Simon Josefsson  <simon@josefsson.org>
38830
38831         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
38832
38833 2008-11-17  Bruce Korb  <bkorb@gnu.org>
38834
38835         * modules/parse-duration-tests: New file.
38836         * tests/test-parse-duration.sh: New file.
38837         * tests/test-parse-duration.c: New file.
38838
38839         New module 'parse-duration'.
38840         * lib/parse-duration.h: New file.
38841         * lib/parse-duration.c: New file.
38842         * modules/parse-duration: New file.
38843
38844 2008-11-17  Bruno Haible  <bruno@clisp.org>
38845
38846         * tests/test-select-out.sh: Comment out the first pipe test.
38847         Reported by Simon Josefsson.
38848
38849 2008-11-17  Bruno Haible  <bruno@clisp.org>
38850
38851         * modules/getaddrinfo (Depends-on): Add servent, hostent.
38852         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
38853         gl_HOSTENT.
38854
38855 2008-11-17  Bruno Haible  <bruno@clisp.org>
38856
38857         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
38858         -lnetwork and -lnet. Needed for Haiku and BeOS.
38859
38860 2008-11-16  Bruno Haible  <bruno@clisp.org>
38861
38862         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
38863
38864 2008-11-16  Bruno Haible  <bruno@clisp.org>
38865
38866         Avoid test failure on Haiku.
38867         * tests/test-fsync.c: Include <errno.h>.
38868         (main): Don't require that fsync (0) fails.
38869
38870 2008-11-15  Bruno Haible  <bruno@clisp.org>
38871
38872         New module 'hostent'.
38873         * modules/hostent: New file.
38874         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
38875
38876 2008-11-15  Bruno Haible  <bruno@clisp.org>
38877
38878         New module 'servent'.
38879         * modules/servent: New file.
38880         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
38881
38882 2008-11-15  Bruno Haible  <bruno@clisp.org>
38883
38884         Avoid generating same test program with two different rules.
38885         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
38886         test-frexp to test-frexp-nolibm.
38887         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
38888         test-frexpl to test-frexpl-nolibm.
38889
38890 2008-11-15  Bruno Haible  <bruno@clisp.org>
38891
38892         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
38893         $(FREXPL_LIBM).
38894
38895 2008-11-15  Bruno Haible  <bruno@clisp.org>
38896
38897         * lib/netdb.in.h: Activate the definitions also when the system's
38898         <netdb.h> has 'struct addrinfo'.
38899         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
38900         EAI_OVERFLOW or AI_NUMERICSERV.
38901         * doc/posix-headers/netdb.texi: Document the problem.
38902
38903 2008-11-15  Bruno Haible  <bruno@clisp.org>
38904
38905         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
38906
38907         Make the 'sched' module work on platforms where <sched.h> exists but
38908         is incomplete (such as Haiku).
38909         * lib/sched.in.h; Include the system's <sched.h> if it exists.
38910         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
38911         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
38912         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
38913         HAVE_STRUCT_SCHED_PARAM.
38914         * modules/sched (Depends-on): Add include_next.
38915         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
38916         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
38917         * doc/posix-headers/sched.texi: Document the issue.
38918
38919 2008-11-13  Jim Meyering  <meyering@redhat.com>
38920
38921         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
38922         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
38923         test would fail due to the difference in the Report bugs to ...
38924         line.  The expected address is empty, "<>", while the actual
38925         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
38926
38927 2008-11-12  Bruno Haible  <bruno@clisp.org>
38928
38929         lstat: don't compile lstat.c on systems lacking lstat
38930         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
38931         which don't have lstat; this is handled by lib/sys_stat.in.h already.
38932         Reported by Daniel P. Berrange via Jim Meyering.
38933
38934 2008-11-12  Jim Meyering  <meyering@redhat.com>
38935
38936         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
38937
38938 2008-11-12  Simon Josefsson  <simon@josefsson.org>
38939
38940         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
38941         instead.
38942
38943 2008-11-12  Bruno Haible  <bruno@clisp.org>
38944
38945         * lib/unicodeio.c: Include unistr.h.
38946         (utf8_wctomb): Remove function.
38947         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
38948
38949 2008-11-12  Simon Josefsson  <simon@josefsson.org>
38950
38951         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
38952         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
38953         <bruno@clisp.org>.
38954         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
38955
38956 2008-11-12  Simon Josefsson  <simon@josefsson.org>
38957
38958         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
38959         * doc/gnulib.texi: Add section for warnings.
38960
38961 2008-11-11  Bruno Haible  <bruno@clisp.org>
38962
38963         * lib/sockets.h: Add a comment.
38964
38965 2008-11-11  Karl Berry  <karl@gnu.org>
38966
38967         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
38968
38969 2008-11-11  Eric Blake  <ebb9@byu.net>
38970
38971         fdl.texi: avoid git symlinks
38972         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
38973
38974 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
38975
38976         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
38977
38978 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
38979
38980         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
38981         (gl_WARN_ADD): Substitute $2 if literal.
38982
38983 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
38984
38985         * m4/warning.m4: Remove.
38986
38987 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
38988
38989         * m4/warnings.m4: Almost complete rewrite. :-)
38990
38991 2008-11-10  Simon Josefsson  <simon@josefsson.org>
38992
38993         * modules/warnings: New module.
38994         * m4/warnings.m4: New file.
38995         * MODULES.html.sh: Mention warnings module.
38996         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
38997         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38998
38999 2008-11-10  Eric Blake  <ebb9@byu.net>
39000
39001         fdl.texi: make a symlink to the latest version
39002         * doc/standards.texi: Revert today's earlier change.
39003         * doc/fdl-1.2.texi: Rename from old fdl.texi...
39004         * doc/fdl.texi: ...and replace this with a symlink to the newer
39005         fdl-1.3.texi.
39006
39007 2008-11-10  Bruno Haible  <bruno@clisp.org>
39008
39009         * tests/test-select-fd.c (main): Accept the result file name as fourth
39010         argument.
39011         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
39012         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
39013
39014 2008-11-10  Bruno Haible  <bruno@clisp.org>
39015
39016         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
39017         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
39018         as autoconf-substituted macros.
39019         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
39020         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
39021         gl_NETDB_H_DEFAULTS. Set these variables.
39022         * modules/netdb (Makefile.am): Substitute these variables.
39023
39024 2008-11-10  Eric Blake  <ebb9@byu.net>
39025
39026         standards.texi: include correct file for FDL 1.3
39027         * doc/standards.texi (GNU Free Documentation License): Change
39028         include file to pull in FDL 1.3, not 1.2.
39029
39030         fdl.texi: revert accidental change to license
39031         * doc/fdl.texi: This is FDL 1.2, not 1.3.
39032
39033 2008-11-10  Bruno Haible  <bruno@clisp.org>
39034
39035         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
39036         cross-compiling guesses also when the native compile gives no result.
39037
39038 2008-11-10  Bruno Haible  <bruno@clisp.org>
39039
39040         * lib/spawni.c (__spawni): Force variable into the stack.
39041
39042 2008-11-10  Bruno Haible  <bruno@clisp.org>
39043
39044         Add support for Haiku.
39045         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
39046         glibc and BeOS, but also on Haiku.
39047         * lib/fpurge.c (fpurge): Likewise.
39048         * lib/freadable.c (freadable): Likewise.
39049         * lib/freadahead.c (freadahead): Likewise.
39050         * lib/freading.c (freading): Likewise.
39051         * lib/freadptr.c (freadptr): Likewise.
39052         * lib/freadseek.c (freadptrinc): Likewise.
39053         * lib/fseeko.c (rpl_fseeko): Likewise.
39054         * lib/fseterr.c (fseterr): Likewise.
39055         * lib/fwritable.c (fwritable): Likewise.
39056         * lib/fwriting.c (fwriting): Likewise.
39057         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
39058
39059 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
39060
39061         * lib/config.charset: Treat Haiku like BeOS.
39062
39063 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
39064
39065         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
39066         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
39067
39068 2008-11-08  Bruno Haible  <bruno@clisp.org>
39069
39070         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
39071         AC_CACHE_CHECK.
39072
39073 2008-11-08  Bruno Haible  <bruno@clisp.org>
39074
39075         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
39076
39077 2008-11-08  Bruno Haible  <bruno@clisp.org>
39078
39079         * tests/test-select-fd.c: New file.
39080         * tests/test-select-in.sh: New file.
39081         * tests/test-select-out.sh: New file.
39082         * tests/test-select-stdin.c: New file.
39083         * modules/select-tests (Files): Add the new files.
39084         (Depends-on): Add gettimeofday.
39085         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
39086         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
39087         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
39088
39089 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
39090             Bruno Haible  <bruno@clisp.org>
39091
39092         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
39093
39094 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
39095
39096         * build-aux/pmccabe2html: Added support for C++ source files.
39097
39098 2008-11-05  Ben Pfaff  <blp@gnu.org>
39099
39100         Fix lib/close.c build on Windows.
39101         * modules/close (Files): Add lib/w32sock.h.
39102
39103 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
39104
39105         Accept Bison's NEWS format.
39106         * build-aux/announce-gen (print_news_deltas): Tweak
39107         $re_prefix.
39108
39109 2008-11-04  Bruno Haible  <bruno@clisp.org>
39110
39111         * modules/random_r (Maintainer): Add glibc.
39112
39113 2008-11-04  Simon Josefsson  <simon@josefsson.org>
39114
39115         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
39116         by karl@freefriends.org (Karl Berry).
39117         * doc/alloca.texi: Likewise.
39118         * doc/c-ctype.texi: Likewise.
39119         * doc/c-strcase.texi: Likewise.
39120         * doc/c-strcaseeq.texi: Likewise.
39121         * doc/c-strcasestr.texi: Likewise.
39122         * doc/c-strstr.texi: Likewise.
39123         * doc/c-strtod.texi: Likewise.
39124         * doc/c-strtold.texi: Likewise.
39125         * doc/ctime.texi: Likewise.
39126         * doc/error.texi: Likewise.
39127         * doc/fdl.texi: Likewise.
39128         * doc/gcd.texi: Likewise.
39129         * doc/getdate.texi: Likewise.
39130         * doc/gnulib-intro.texi: Likewise.
39131         * doc/gnulib-tool.texi: Likewise.
39132         * doc/gnulib.texi: Likewise.
39133         * doc/inet_ntoa.texi: Likewise.
39134         * doc/maintain.texi: Likewise.
39135         * doc/make-stds.texi: Likewise.
39136         * doc/quote.texi: Likewise.
39137         * doc/regexprops-generic.texi: Likewise.
39138         * doc/standards.texi: Likewise.
39139         * doc/verify.texi: Likewise.
39140         * doc/visibility.texi: Likewise.
39141         * doc/gnulib.texi (GNU Free Documentation License): Include
39142         fdl-1.3.texi instead of fdl.texi.
39143
39144 2008-11-04  Simon Josefsson  <simon@josefsson.org>
39145
39146         * doc/fdl-1.3.texi: New file, from
39147         <http://www.gnu.org/licenses/fdl-1.3.texi>.
39148         * modules/fdl-1.3: Add.
39149         * MODULES.html.sh: Add fdl-1.3.
39150
39151 2008-11-03  Bruno Haible  <bruno@clisp.org>
39152
39153         Make determination of absolute name of header file work with AIX xlc.
39154         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
39155         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
39156         preprocessing.
39157         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
39158         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
39159
39160 2008-11-03  Simon Josefsson  <simon@josefsson.org>
39161
39162         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
39163         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
39164         <ludo@gnu.org>.
39165
39166 2008-11-02  Bruno Haible  <bruno@clisp.org>
39167
39168         Mark 'strpbrk' obsolete.
39169         * modules/strpbrk (Status, Notice): New sections.
39170         * modules/strtok_r (Depends-on): Add strpbrk.
39171
39172 2008-11-02  Bruno Haible  <bruno@clisp.org>
39173
39174         Mark 'strdup' obsolete.
39175         * modules/strdup (Status, Notice): New sections.
39176         * modules/findprog (Depends-on): Add strdup.
39177         * modules/getaddrinfo (Depends-on): Likewise.
39178         * modules/localename (Depends-on): Likewise.
39179         * modules/relocatable-lib (Depends-on): Likewise.
39180         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
39181         * modules/relocatable-prog (Depends-on): Likewise.
39182         * modules/trim (Depends-on): Likewise.
39183         * modules/unictype/gen-ctype (Depends-on): Likewise.
39184         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
39185
39186 2008-11-02  Bruno Haible  <bruno@clisp.org>
39187
39188         Mark 'strcspn' obsolete.
39189         * modules/strcspn (Status, Notice): New sections.
39190
39191 2008-11-02  Bruno Haible  <bruno@clisp.org>
39192
39193         Mark 'rmdir' obsolete.
39194         * modules/rmdir (Status, Notice): New sections.
39195         * modules/clean-temp (Depends-on): Add rmdir.
39196         * modules/openat (Depends-on): Likewise.
39197
39198 2008-11-02  Bruno Haible  <bruno@clisp.org>
39199
39200         Mark 'raise' obsolete.
39201         * modules/raise (Status, Notice): New sections.
39202         (Include): Specify <signal.h>.
39203         * modules/stdio (Depends-on): Add raise.
39204         * modules/write (Depends-on): Likewise.
39205
39206 2008-11-02  Bruno Haible  <bruno@clisp.org>
39207
39208         Mark 'memset' obsolete.
39209         * modules/memset (Status, Notice): New sections.
39210
39211 2008-11-02  Bruno Haible  <bruno@clisp.org>
39212
39213         Mark 'memmove' obsolete.
39214         * modules/memmove (Status, Notice): New sections.
39215         * modules/argp (Depends-on): Add memmove.
39216         * modules/argz (Depends-on): Likewise.
39217         * modules/canonicalize (Depends-on): Likewise.
39218         * modules/canonicalize-lgpl (Depends-on): Likewise.
39219         * modules/fts (Depends-on): Likewise.
39220         * modules/getcwd (Depends-on): Likewise.
39221         * modules/human (Depends-on): Likewise.
39222         * modules/regex (Depends-on): Likewise.
39223         * modules/striconveh (Depends-on): Likewise.
39224         * modules/trim (Depends-on): Likewise.
39225         * modules/unistr/u8-move (Depends-on): Likewise.
39226         * modules/unistr/u16-move (Depends-on): Likewise.
39227         * modules/unistr/u32-move (Depends-on): Likewise.
39228
39229 2008-11-02  Bruno Haible  <bruno@clisp.org>
39230
39231         Mark 'memcpy' obsolete.
39232         * modules/memcpy (Status, Notice): New sections.
39233
39234 2008-11-02  Bruno Haible  <bruno@clisp.org>
39235
39236         Mark 'memcmp' obsolete.
39237         * modules/memcmp (Status, Notice): New sections.
39238         * modules/argmatch (Depends-on): Add memchr.
39239         * modules/backupfile (Depends-on): Likewise.
39240         * modules/c-strcasestr (Depends-on): Likewise.
39241         * modules/crypto/des (Depends-on): Likewise.
39242         * modules/csharpcomp (Depends-on): Likewise.
39243         * modules/fnmatch (Depends-on): Likewise.
39244         * modules/git-merge-changelog (Depends-on): Likewise.
39245         * modules/isnand (Depends-on): Likewise.
39246         * modules/isnand-nolibm (Depends-on): Likewise.
39247         * modules/isnanf (Depends-on): Likewise.
39248         * modules/isnanf-nolibm (Depends-on): Likewise.
39249         * modules/isnanl (Depends-on): Likewise.
39250         * modules/isnanl-nolibm (Depends-on): Likewise.
39251         * modules/mbchar (Depends-on): Likewise.
39252         * modules/memcoll (Depends-on): Likewise.
39253         * modules/quotearg (Depends-on): Likewise.
39254         * modules/regex (Depends-on): Likewise.
39255         * modules/relocatable-prog (Depends-on): Likewise.
39256         * modules/same (Depends-on): Likewise.
39257         * modules/signbit (Depends-on): Likewise.
39258         * modules/strcasestr-simple (Depends-on): Likewise.
39259         * modules/unictype/gen-ctype (Depends-on): Likewise.
39260         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
39261         * modules/uniname/uniname (Depends-on): Likewise.
39262         * modules/unistr/u8-cmp (Depends-on): Likewise.
39263
39264 2008-11-02  Bruno Haible  <bruno@clisp.org>
39265
39266         Mark 'memchr' obsolete.
39267         * modules/memchr (Status, Notice): New sections.
39268         * modules/argp (Depends-on): Add memchr.
39269         * modules/base64 (Depends-on): Likewise.
39270         * modules/c-strcasestr (Depends-on): Likewise.
39271         * modules/chdir-long (Depends-on): Likewise.
39272         * modules/fnmatch (Depends-on): Likewise.
39273         * modules/getsubopt (Depends-on): Likewise.
39274         * modules/git-merge-changelog (Depends-on): Likewise.
39275         * modules/glob (Depends-on): Likewise.
39276         * modules/strcasestr-simple (Depends-on): Likewise.
39277         * modules/strnlen (Depends-on): Likewise.
39278
39279 2008-11-02  Bruno Haible  <bruno@clisp.org>
39280
39281         Mark 'atexit' obsolete.
39282         * modules/atexit (Status, Notice): New sections.
39283         * modules/chdir-long (Depends-on): Add atexit.
39284         * modules/wait-process (Depends-on): Likewise.
39285
39286 2008-11-02  Bruno Haible  <bruno@clisp.org>
39287
39288         * gnulib-tool: New option --with-obsolete.
39289         (func_usage): Document it.
39290         (func_modules_transitive_closure): Drop obsolete dependencies if
39291         incobsolete is not true.
39292         (func_import): Read and save the incobsolete variable to the cache.
39293
39294 2008-11-02  Bruno Haible  <bruno@clisp.org>
39295
39296         * modules/TEMPLATE-EXTENDED: New field 'Status'.
39297         * gnulib-tool: New option --extract-status.
39298         (func_usage): Document it.
39299         (sed_extract_prog): Recognize it.
39300         (func_get_status): New function.
39301
39302 2008-10-30  Simon Josefsson  <simon@josefsson.org>
39303
39304         * modules/sockets (License): Change from LGPL to LGPLv2+.
39305
39306 2008-10-28  Simon Josefsson  <simon@josefsson.org>
39307
39308         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
39309
39310 2008-10-28  Simon Josefsson  <simon@josefsson.org>
39311
39312         * MODULES.html.sh (Support for systems lacking POSIX:2001):
39313         Mention times and sys_times.
39314         * modules/sys_times, modules/sys_times-tests: New modules.
39315         * modules/times, modules/times-tests: Likewise
39316         * m4/sys_times_h.m4: New file.
39317         * lib/sys_times.in.h: Likewise
39318         * lib/times.c: Likewise.
39319         * tests/test-sys_times.c: Likewise.
39320         * tests/test-times.c: Likewise.
39321         * doc/posix-headers/sys_times.texi: Update.
39322         * doc/posix-functions/times.texi: Update.
39323
39324 2008-10-28  Jim Meyering  <meyering@redhat.com>
39325
39326         * modules/tempname (Depends-on): Add lstat.
39327
39328         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
39329
39330 2008-10-28  Simon Josefsson  <simon@josefsson.org>
39331
39332         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
39333         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
39334         using idiom used elsewhere in gnulib.
39335
39336 2008-10-27  Jim Meyering  <meyering@redhat.com>
39337
39338         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
39339
39340 2008-10-27  Simon Josefsson  <simon@josefsson.org>
39341
39342         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
39343         TESTS_ENVIRONMENT, for shell scripts that needs to call built
39344         programs.
39345         * tests/test-argp-2.sh: Use $EXEEXT when needed.
39346
39347 2008-10-27  Simon Josefsson  <simon@josefsson.org>
39348
39349         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
39350
39351 2008-10-27  Bruno Haible  <bruno@clisp.org>
39352
39353         * tests/test-lstat.c: Include <stdio.h>.
39354
39355 2008-10-27  Simon Josefsson  <simon@josefsson.org>
39356
39357         * modules/lstat-tests: New module.
39358         * tests/test-lstat.c: New file.
39359
39360 2008-10-26  Jim Meyering  <meyering@redhat.com>
39361
39362         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
39363
39364 2008-10-26  Simon Josefsson  <simon@josefsson.org>
39365             Bruno Haible  <bruno@clisp.org>
39366
39367         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
39368         * modules/configmake (Include): Add a note that the include must come
39369         after all system headers.
39370         * lib/javaversion.c: Include configmake.h after all other includes.
39371
39372 2008-10-26  Bruno Haible  <bruno@clisp.org>
39373
39374         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
39375         HAVE_STRUCT_RANDOM_DATA to 1.
39376         (gl_STDLIB_H): Simplify.
39377
39378 2008-10-26  Simon Josefsson  <simon@josefsson.org>
39379
39380         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
39381         substitute HAVE_STRUCT_RANDOM_DATA.
39382         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
39383         random_data.
39384         * modules/stdlib (Makefile.am): Substitute
39385         HAVE_STRUCT_RANDOM_DATA.
39386
39387 2008-10-26  Simon Josefsson  <simon@josefsson.org>
39388
39389         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
39390         * doc/gnulib-intro.texi (Copyright): Likewise.
39391
39392 2008-10-26  Simon Josefsson  <simon@josefsson.org>
39393
39394         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
39395         findings.
39396
39397 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
39398             Bruno Haible  <bruno@clisp.org>
39399
39400         * lib/unistd.in.h: Include <winsock2.h>.
39401         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
39402         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
39403         Provide dummy declarations.
39404         (gethostname): Override.
39405         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
39406         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
39407         gl_PREREQ_SYS_H_WINSOCK2.
39408         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
39409         * doc/posix-functions/gethostname.texi: More details.
39410
39411 2008-10-25  Bruno Haible  <bruno@clisp.org>
39412
39413         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
39414         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
39415         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
39416
39417         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
39418         here ...
39419         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
39420         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
39421         gl_UNISTD_H_DEFAULTS.
39422
39423 2008-10-25  Eric Blake  <ebb9@byu.net>
39424
39425         signbit: avoid spurious compiler failure
39426         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
39427         declarations inside function.
39428
39429 2008-10-24  Simon Josefsson  <simon@josefsson.org>
39430             Bruno Haible  <bruno@clisp.org>
39431
39432         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
39433         * modules/random_r (Depends-on): Add stdint.
39434
39435 2008-10-24  Bruno Haible  <bruno@clisp.org>
39436
39437         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
39438         Eggert.
39439         * modules/strerror (License): Likewise.
39440
39441 2008-10-24  Jim Meyering  <meyering@redhat.com>
39442
39443         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
39444         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
39445
39446 2008-10-24  Eric Blake  <ebb9@byu.net>
39447
39448         getgroups: fix compilation when getgroups is available
39449         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
39450         but with <config.h> override of getgroups disabled.
39451
39452 2008-10-24  Simon Josefsson  <simon@josefsson.org>
39453
39454         * doc/gnulib.texi (Header files): Add note about C++ problems.
39455         Explained by Bruno Haible <bruno@clisp.org>.
39456
39457 2008-10-23  Bruno Haible  <bruno@clisp.org>
39458
39459         Define a dummy SA_NODEFER macro on Interix.
39460         * lib/signal.in.h (SA_NODEFER): Define fallback.
39461         Reported by Aleksey Cheusov <cheusov@tut.by> via
39462         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
39463
39464 2008-10-23  Bruno Haible  <bruno@clisp.org>
39465
39466         * modules/freadahead (License): Change to LGPLv2+.
39467         Suggested by Simon Josefsson.
39468
39469 2008-10-23  Jim Meyering  <meyering@redhat.com>
39470
39471         random_r: new module
39472         * modules/random_r: New file.
39473         * m4/random_r.m4: New file.
39474         * lib/random_r.c: New file, from glibc.
39475         * modules/random_r-tests: New file.
39476         * tests/test-random_r.c: New file.
39477         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
39478          Declare.
39479         (RAND_MAX): Define.
39480         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
39481         * modules/stdlib: Substitute them, too.
39482         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
39483         * doc/glibc-functions/initstate_r.texi: Mention the new module.
39484         * doc/glibc-functions/random_r.texi: Likewise.
39485         * doc/glibc-functions/setstate_r.texi: Likewise.
39486         * doc/glibc-functions/srandom_r.texi: Likewise.
39487         * config/srclist.txt: Mention it.
39488
39489 2008-10-23  David Lutterkort  <lutter@redhat.com>
39490
39491         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
39492         link requirement
39493
39494 2008-10-23  Jim Meyering  <meyering@redhat.com>
39495
39496         selinux-h: mark parameters of stub functions as intentionally unused
39497         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
39498         * lib/se-context.in.h: Likewise.
39499
39500 2008-10-22  Simon Josefsson  <simon@josefsson.org>
39501
39502         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
39503
39504 2008-10-22  Simon Josefsson  <simon@josefsson.org>
39505
39506         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
39507
39508 2008-10-22  Eric Blake  <ebb9@byu.net>
39509
39510         glthread/thread: avoid compiler warning
39511         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
39512         Add unreachable abort to silence compiler.
39513
39514 2008-10-22  Eric Blake  <ebb9@byu.net>
39515
39516         netdb: also supply struct addrinfo for cygwin 1.5.x
39517         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
39518         older cygwin.
39519         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
39520         cygwin.
39521         * doc/posix-headers/netdb.texi (netdb.h): Document this.
39522
39523 2008-10-22  Bruno Haible  <bruno@clisp.org>
39524
39525         * users.txt: Update entry about pspp.
39526
39527 2008-10-21  Bruno Haible  <bruno@clisp.org>
39528
39529         Simplification.
39530         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
39531         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
39532
39533         Simplification.
39534         * lib/ioctl.c (ioctl): Don't undefine.
39535         * lib/socket.c (socket): Don't undefine.
39536
39537         Remove unused module indicator macros.
39538         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
39539         GNULIB_$1 as a C macro.
39540
39541         * doc/posix-functions/close.texi: Undo last change.
39542         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
39543         Windows platforms.
39544
39545 2008-10-21  Bruno Haible  <bruno@clisp.org>
39546
39547         Add gethostname() declaration to <unistd.h>.
39548         * lib/unistd.in.h (gethostname): New declaration.
39549         * lib/gethostname.c: Include <unistd.h>.
39550         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
39551         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
39552         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
39553         and HAVE_GETHOSTNAME.
39554         * modules/gethostname (Depends-on): Add unistd.
39555         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39556         (Include): Specify <unistd.h>.
39557         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
39558         HAVE_GETHOSTNAME.
39559         * tests/test-gethostname.c: Include <unistd.h> first.
39560
39561 2008-10-21  Bruno Haible  <bruno@clisp.org>
39562
39563         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
39564         * modules/select-tests (Depends-on): Likewise.
39565         Reported by Simon Josefsson.
39566
39567 2008-10-21  Simon Josefsson  <simon@josefsson.org>
39568
39569         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
39570         * lib/accept.c: New file, based on winsock.c.
39571         * lib/bind.c: New file, based on winsock.c.
39572         * lib/connect.c: New file, based on winsock.c.
39573         * lib/getpeername.c: New file, based on winsock.c.
39574         * lib/getsockname.c: New file, based on winsock.c.
39575         * lib/getsockopt.c: New file, based on winsock.c.
39576         * lib/ioctl.c: New file, based on winsock.c.
39577         * lib/listen.c: New file, based on winsock.c.
39578         * lib/recv.c: New file, based on winsock.c.
39579         * lib/recvfrom.c: New file, based on winsock.c.
39580         * lib/send.c: New file, based on winsock.c.
39581         * lib/sendto.c: New file, based on winsock.c.
39582         * lib/setsockopt.c: New file, based on winsock.c.
39583         * lib/shutdown.c: New file, based on winsock.c.
39584         * lib/socket.c: New file, based on winsock.c.
39585         * lib/w32sock.h: New file, based on winsock.c.
39586         * lib/winsock.c: Remove file.
39587         * modules/accept: Likewise.
39588         * modules/bind: Likewise.
39589         * modules/connect: Likewise.
39590         * modules/getpeername: Likewise.
39591         * modules/getsockname: Likewise.
39592         * modules/getsockopt: Likewise.
39593         * modules/ioctl: Likewise.
39594         * modules/listen: Likewise.
39595         * modules/recv: Likewise.
39596         * modules/recvfrom: Likewise.
39597         * modules/send: Likewise.
39598         * modules/sendto: Likewise.
39599         * modules/setsockopt: Likewise.
39600         * modules/shutdown: Likewise.
39601         * modules/socket: Use socket.c instead of winsock.c.
39602         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
39603         * doc/posix-functions/accept.texi: Doc fix.
39604         * doc/posix-functions/bind.texi: Doc fix.
39605         * doc/posix-functions/close.texi: Doc fix.
39606         * doc/posix-functions/connect.texi: Doc fix.
39607         * doc/posix-functions/getpeername.texi: Doc fix.
39608         * doc/posix-functions/getsockname.texi: Doc fix.
39609         * doc/posix-functions/getsockopt.texi: Doc fix.
39610         * doc/posix-functions/ioctl.texi: Doc fix.
39611         * doc/posix-functions/listen.texi: Doc fix.
39612         * doc/posix-functions/recv.texi: Doc fix.
39613         * doc/posix-functions/recvfrom.texi: Doc fix.
39614         * doc/posix-functions/send.texi: Doc fix.
39615         * doc/posix-functions/sendto.texi: Doc fix.
39616         * doc/posix-functions/setsockopt.texi: Doc fix.
39617         * doc/posix-functions/shutdown.texi: Doc fix.
39618         * doc/posix-functions/socket.texi: Doc fix.
39619
39620 2008-10-20  Bruno Haible  <bruno@clisp.org>
39621
39622         Take into account the role of SIGABRT_COMPAT on Windows 2008.
39623         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
39624         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
39625         as an alias for SIGABRT.
39626         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
39627         (sigaction): Map it to SIGABRT.
39628         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
39629
39630 2008-10-20  Bruno Haible  <bruno@clisp.org>
39631
39632         * lib/fts.c: Don't include lstat.h.
39633         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
39634
39635         Move the lstat() declaration to <sys/stat.h>.
39636         * lib/lstat.h: Remove file.
39637         * lib/sys_stat.in.h: Add special invocation convention.
39638         (lstat): New declaration.
39639         * lib/lstat.c (orig_lstat): New function.
39640         (rpl_lstat): Use orig_lstat instead of lstat.
39641         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
39642         AC_C_INLINE. Set REPLACE_LSTAT.
39643         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
39644         and REPLACE_LSTAT.
39645         * modules/lstat (Files): Remove lib/lstat.h.
39646         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
39647         (Include): Specify <sys/stat.h> instead of lstat.h.
39648         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
39649         REPLACE_LSTAT.
39650         * NEWS: Mention the change.
39651
39652 2008-10-20  Bruno Haible  <bruno@clisp.org>
39653
39654         * modules/posix_spawn-tests: New file.
39655         * tests/test-posix_spawn3.c: New file.
39656
39657 2008-10-20  Bruno Haible  <bruno@clisp.org>
39658
39659         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
39660         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
39661         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
39662         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
39663         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
39664
39665 2008-10-20  Bruno Haible  <bruno@clisp.org>
39666
39667         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
39668         of posix_spawn on AIX 5.3.
39669
39670 2008-10-20  Bruno Haible  <bruno@clisp.org>
39671
39672         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
39673
39674 2008-10-20  Bruno Haible  <bruno@clisp.org>
39675
39676         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
39677         of AC_LANG_PROGRAM.
39678
39679 2008-10-20  Simon Josefsson  <simon@josefsson.org>
39680
39681         * lib/netdb.in.h: Don't define GNU specific constants until they
39682         are supported or needed.  Reported by Bruno Haible
39683         <bruno@clisp.org>.
39684
39685 2008-10-20  Simon Josefsson  <simon@josefsson.org>
39686
39687         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
39688
39689 2008-10-20  Simon Josefsson  <simon@josefsson.org>
39690
39691         * lib/getaddrinfo.h: Remove file.
39692         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
39693         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
39694         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
39695         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
39696         * modules/netdb: Substitute GNULIB_GETADDRINFO.
39697         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
39698         * tests/test-getaddrinfo.c: Likewise.
39699         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
39700         * NEWS: Mention change.
39701
39702 2008-10-19  Bruno Haible  <bruno@clisp.org>
39703
39704         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
39705
39706 2008-10-19  Bruno Haible  <bruno@clisp.org>
39707
39708         * lib/wait-process.c: Include simply <sys/wait.h>.
39709         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
39710         WIFSTOPPED): Remove fallback definitions.
39711         * modules/wait-process (Depends-on): Add sys_wait.
39712
39713         New module 'sys_wait'.
39714         * modules/sys_wait: New file.
39715         * lib/sys_wait.in.h: New file, partially copied from
39716         lib/wait-process.c.
39717         * m4/sys_wait_h.m4: New file.
39718         * doc/posix-headers/sys_wait.texi: Mention the new module.
39719
39720 2008-10-19  Bruno Haible  <bruno@clisp.org>
39721
39722         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
39723
39724 2008-10-19  Bruno Haible  <bruno@clisp.org>
39725
39726         Assume that waitpid() fills an 'int' status, not a 'union wait'.
39727         * lib/wait-process.c (WAIT_T): Remove type.
39728         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
39729         (wait_subprocess): Update.
39730
39731 2008-10-19  Bruno Haible  <bruno@clisp.org>
39732
39733         New module 'atoll'.
39734         * modules/atoll: New file.
39735         * lib/stdlib.in.h (atoll): New declaration.
39736         * lib/atoll.c: New file, from glibc with modifications.
39737         * m4/atoll.m4: New file.
39738         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
39739         HAVE_ATOLL.
39740         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
39741         * doc/posix-functions/atoll.texi: Mention the new module.
39742
39743 2008-10-19  Bruno Haible  <bruno@clisp.org>
39744
39745         Add strtoull() declaration to <stdlib.h>.
39746         * lib/stdlib.in.h (strtoull): New declaration.
39747         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
39748         Set HAVE_STRTOULL.
39749         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
39750         HAVE_STRTOULL.
39751         * modules/strtoull (Depends-on): Add stdlib.
39752         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39753         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
39754         HAVE_STRTOULL.
39755
39756 2008-10-19  Bruno Haible  <bruno@clisp.org>
39757
39758         Add strtoll() declaration to <stdlib.h>.
39759         * lib/stdlib.in.h (strtoll): New declaration.
39760         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
39761         Set HAVE_STRTOLL.
39762         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
39763         HAVE_STRTOLL.
39764         * modules/strtoll (Depends-on): Add stdlib.
39765         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39766         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
39767
39768 2008-10-19  Bruno Haible  <bruno@clisp.org>
39769
39770         * modules/bcopy (Depends-on): Add strings.
39771         (Include): Specify <strings.h>.
39772
39773 2008-10-19  Bruno Haible  <bruno@clisp.org>
39774
39775         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
39776
39777 2008-10-19  Bruno Haible  <bruno@clisp.org>
39778
39779         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
39780         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
39781         mingw.
39782
39783 2008-10-19  Bruno Haible  <bruno@clisp.org>
39784
39785         * lib/atanl.c: Don't include isnanl.h.
39786         * lib/cosl.c: Likewise.
39787         * lib/ldexpl.c: Likewise.
39788         * lib/logl.c: Likewise.
39789         * lib/sinl.c: Likewise.
39790         * lib/sqrtl.c: Likewise.
39791         * lib/tanl.c: Likewise.
39792
39793         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
39794         * lib/isnanf.h: Remove file.
39795         * lib/isnand.h: Remove file.
39796         * lib/isnanl.h: Remove file.
39797         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
39798         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
39799         macros.
39800         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
39801         HAVE_ISNANF, don't define it as a C macro.
39802         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
39803         HAVE_ISNAND, don't define it as a C macro.
39804         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
39805         HAVE_ISNANL, don't define it as a C macro.
39806         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
39807         HAVE_ISNAN[FDL].
39808         * modules/isnanf (Files): Remove lib/isnanf.h.
39809         (Depends-on): Add math.
39810         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
39811         (Include): Specify <math.h> instead of isnanf.h.
39812         * modules/isnand (Files): Remove lib/isnand.h.
39813         (Depends-on): Add math.
39814         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
39815         (Include): Specify <math.h> instead of isnand.h.
39816         * modules/isnanl (Files): Remove lib/isnanl.h.
39817         (Depends-on): Add math.
39818         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
39819         (Include): Specify <math.h> instead of isnanl.h.
39820         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
39821         HAVE_ISNAN[FDL].
39822         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
39823         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
39824         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
39825         * NEWS: Mention the change.
39826
39827 2008-10-18  Bruno Haible  <bruno@clisp.org>
39828
39829         Add getusershell(), setusershell(), endusershell() declarations to
39830         <unistd.h>.
39831         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
39832         declarations.
39833         * lib/getusershell.c: Include unistd.h.
39834         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
39835         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
39836         HAVE_GETUSERSHELL.
39837         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
39838         and HAVE_GETUSERSHELL.
39839         * modules/getusershell (Depends-on): Add unistd, extensions.
39840         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39841         (Include): Specify <unistd.h>.
39842         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
39843         HAVE_GETUSERSHELL.
39844
39845 2008-10-18  Bruno Haible  <bruno@clisp.org>
39846
39847         Add a getloadavg() declaration to <stdlib.h>.
39848         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
39849         getloadavg declaration.
39850         (getloadavg): New declaration.
39851         * lib/getloadavg.c: Include <stdlib.h> first.
39852         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
39853         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
39854         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
39855         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
39856         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
39857         * modules/getloadavg (Depends-on): Add stdlib, extensions.
39858         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39859         (Include): Specify <stdlib.h>.
39860         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
39861         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
39862
39863 2008-10-18  Bruno Haible  <bruno@clisp.org>
39864
39865         * lib/dirchownmod.c: Don't include lchmod.h.
39866
39867         Move the lchmod() declaration to <sys/stat.h>.
39868         * lib/lchmod.h: Remove file.
39869         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
39870         (lchmod): New declaration, moved here from lib/lchown.h.
39871         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
39872         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
39873         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
39874         and HAVE_LCHMOD.
39875         * modules/lchmod (Files): Remove lib/lchmod.h.
39876         (Depends-on): Add sys_stat, extensions.
39877         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
39878         (Include): Specify <sys/stat.h> instead of lchmod.h.
39879         * modules/sys_stat (Depends-on): Add link-warning.
39880         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
39881         definition of GL_LINK_WARNING.
39882         * NEWS: Mention the change.
39883
39884 2008-10-18  Bruno Haible  <bruno@clisp.org>
39885
39886         * lib/fchdir.c: Don't include dirfd.h.
39887         * lib/fts.c: Likewise.
39888         * lib/getcwd.c: Likewise.
39889         * lib/glob.c: Likewise.
39890
39891         Move the dirfd() declaration to <dirent.h>.
39892         * lib/dirfd.h: Remove file.
39893         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
39894         (dirfd): New declaration.
39895         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
39896         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
39897         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
39898         HAVE_DECL_DIRFD.
39899         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
39900         HAVE_DECL_DIRFD.
39901         * modules/dirfd (Files): Remove lib/dirfd.h.
39902         (Depends-on): Add dirent, extensions.
39903         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
39904         (Include): Specify <dirent.h> instead of dirfd.h.
39905         * modules/dirent (Depends-on): Add link-warning.
39906         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
39907         definition of GL_LINK_WARNING.
39908         * NEWS: Mention the change.
39909
39910 2008-10-18  Bruno Haible  <bruno@clisp.org>
39911
39912         Move the euidaccess() declaration to <unistd.h>.
39913         * lib/euidaccess.h: Remove file.
39914         * lib/unistd.in.h (euidaccess): New declaration.
39915         * lib/euidaccess.c: Don't include euidaccess.h.
39916         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
39917         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
39918         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
39919         and HAVE_EUIDACCESS.
39920         * modules/euidaccess (Files): Remove lib/euidaccess.h.
39921         (Depends-on): Add unistd.
39922         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39923         (Include): Specify <unistd.h> instead of euidaccess.h.
39924         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
39925         HAVE_EUIDACCESS.
39926         * NEWS: Mention the change.
39927
39928 2008-10-18  Bruno Haible  <bruno@clisp.org>
39929
39930         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
39931
39932         Move the getdomainname() declaration to <unistd.h>.
39933         * lib/getdomainname.h: Remove file.
39934         * lib/unistd.in.h (getdomainname): New declaration.
39935         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
39936         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
39937         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
39938         HAVE_GETDOMAINNAME.
39939         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39940         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
39941         * modules/getdomainname (Files): Remove lib/getdomainname.h.
39942         (Depends-on): Add unistd, extensions.
39943         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39944         (Includes): Specify <unistd.h> instead of getdomainname.h.
39945         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
39946         HAVE_GETDOMAINNAME.
39947         * NEWS: Mention the change.
39948
39949 2008-10-18  Bruno Haible  <bruno@clisp.org>
39950
39951         * modules/dirent: New file.
39952         * m4/dirent_h.m4: New file.
39953         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
39954         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
39955         * modules/fchdir (Files): Remove lib/dirent.in.h.
39956         (Depends-on): Add dirent.
39957         (Makefile.am): Move rules to modules/dirent.
39958         * doc/posix-headers/dirent.texi: Mention the new module.
39959
39960 2008-10-18  Bruno Haible  <bruno@clisp.org>
39961
39962         Avoid -Wunused-parameter warnings in public gnulib header files.
39963         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
39964         macro.
39965         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
39966
39967 2008-10-18  Bruno Haible  <bruno@clisp.org>
39968
39969         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
39970         * doc/glibc-functions/error.texi: Mention the module 'error'.
39971         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
39972         * doc/glibc-functions/getdomainname.texi: Mention the module
39973         'getdomainname'.
39974         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
39975         * doc/glibc-functions/getpagesize.texi: Mention the module
39976         'getpagesize'.
39977         * doc/glibc-functions/getusershell.texi: Mention the module
39978         'getusershell'.
39979         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
39980         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
39981         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
39982         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
39983         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
39984         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
39985         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
39986         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
39987         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
39988         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
39989         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
39990         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
39991         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
39992         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
39993
39994 2008-10-17  Bruno Haible  <bruno@clisp.org>
39995
39996         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
39997         HP-UX and IRIX, use -0.0L.
39998         * tests/test-ceill.c (minus_zero): Likewise.
39999         * tests/test-floorl.c (minus_zero): Likewise.
40000         * tests/test-frexpl.c (minus_zero): Likewise.
40001         * tests/test-isnan.c (minus_zerol): Likewise.
40002         * tests/test-isnanl.h (minus_zero): Likewise.
40003         * tests/test-ldexpl.c (minus_zero): Likewise.
40004         * tests/test-roundl.c (minus_zero): Likewise.
40005         * tests/test-signbit.c (minus_zerol): Likewise.
40006         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
40007         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
40008         * tests/test-truncl.c (minus_zero): Likewise.
40009         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
40010         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
40011         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
40012         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
40013
40014 2008-10-17  Bruno Haible  <bruno@clisp.org>
40015
40016         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
40017         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
40018         that it gets activated only for gcc >= 3.0.
40019         * lib/dirent.in.h: Likewise.
40020         * lib/errno.in.h: Likewise.
40021         * lib/fcntl.in.h: Likewise.
40022         * lib/float.in.h: Likewise.
40023         * lib/iconv.in.h: Likewise.
40024         * lib/inttypes.in.h: Likewise.
40025         * lib/locale.in.h: Likewise.
40026         * lib/math.in.h: Likewise.
40027         * lib/netdb.in.h: Likewise.
40028         * lib/netinet_in.in.h: Likewise.
40029         * lib/search.in.h: Likewise.
40030         * lib/signal.in.h: Likewise.
40031         * lib/spawn.in.h: Likewise.
40032         * lib/stdarg.in.h: Likewise.
40033         * lib/stdint.in.h: Likewise.
40034         * lib/stdio.in.h: Likewise.
40035         * lib/stdlib.in.h: Likewise.
40036         * lib/string.in.h: Likewise.
40037         * lib/strings.in.h: Likewise.
40038         * lib/sys_file.in.h: Likewise.
40039         * lib/sys_ioctl.in.h: Likewise.
40040         * lib/sys_select.in.h: Likewise.
40041         * lib/sys_socket.in.h: Likewise.
40042         * lib/sys_stat.in.h: Likewise.
40043         * lib/sys_time.in.h: Likewise.
40044         * lib/sysexits.in.h: Likewise.
40045         * lib/time.in.h: Likewise.
40046         * lib/unistd.in.h: Likewise.
40047         * lib/wchar.in.h: Likewise.
40048         * lib/wctype.in.h: Likewise.
40049         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
40050
40051 2008-10-17  Jim Meyering  <meyering@redhat.com>
40052
40053         ignore-value: don't depend on inline module
40054         * modules/ignore-value (Depends-on): Remove 'inline'.
40055         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
40056         Suggestion from Bruno Haible.
40057
40058 2008-10-17  Bruno Haible  <bruno@clisp.org>
40059
40060         New implementation of condition variables for Win32.
40061         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
40062         (gl_linked_waitqueue_t): New type.
40063         (gl_cond_t): Use it.
40064         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
40065         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
40066         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
40067         (glthread_cond_init_func, glthread_cond_wait_func,
40068         glthread_cond_timedwait_func, glthread_cond_signal_func,
40069         glthread_cond_broadcast_func, glthread_cond_destroy_func):
40070         Reimplemented on the basis of gl_linked_waitqueue_t.
40071         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
40072         gl_waitqueue_t.
40073         (gl_rwlock_t): Update.
40074         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
40075
40076 2008-10-17  Simon Josefsson  <simon@josefsson.org>
40077
40078         * modules/recvfrom (Depends-on): Add dependency on getpeername.
40079         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
40080
40081 2008-10-17  Jim Meyering  <meyering@redhat.com>
40082
40083         ignore-value: new module
40084         * modules/ignore-value: New file.
40085         * lib/ignore-value.h: New file.
40086         * MODULES.html.sh (Compiler warning management): New section,
40087         just for this module.  More to come.
40088
40089 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
40090
40091         open-safer.c: avoid 'signed and unsigned in conditional...' warning
40092         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
40093         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
40094
40095 2008-10-16  Jim Meyering  <meyering@redhat.com>
40096
40097         openat-die.c: avoid 'no previous prototype' warning
40098         * lib/openat-die.c: Include "openat.h".
40099         Reported by Reuben Thomas <rrt@sc3d.org>.
40100
40101 2008-10-16  Simon Josefsson  <simon@josefsson.org>
40102
40103         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
40104         * lib/netdb.in.h: Fix typo.
40105         Reported by Bruno Haible  <bruno@clisp.org>
40106
40107         * lib/netdb.in.h: Include sys/socket.h for platforms without
40108         netdb.h, to get structures like hostent on MinGW.
40109         * modules/netdb (Depends-on): Add sys_socket.
40110
40111 2008-10-15  Simon Josefsson  <simon@josefsson.org>
40112
40113         * modules/netdb, modules/netdb-tests: New file.
40114         * m4/netdb_h.m4: New file.
40115         * lib/netdb.in.h: Add, currently just an empty file pending
40116         definitions.
40117         * tests/test-netdb.c: New file.
40118         * doc/posix-headers/netdb.texi: Mention that we replace it if
40119         needed.
40120         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
40121         netdb.
40122
40123 2008-10-15  Simon Josefsson  <simon@josefsson.org>
40124
40125         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
40126         with code.
40127
40128 2008-10-13  Bruno Haible  <bruno@clisp.org>
40129
40130         * lib/glthread/cond.c (glthread_cond_wait_func,
40131         glthread_cond_timedwait_func): Add a comment.
40132
40133 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
40134
40135         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
40136         * tests/test-select.c: Likewise,
40137
40138 2008-10-13  Bruno Haible  <bruno@clisp.org>
40139
40140         * lib/glthread/cond.c (glthread_cond_wait_func,
40141         glthread_cond_timedwait_func): Fix variable name.
40142         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
40143
40144 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
40145
40146         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
40147         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
40148         struct sockaddr.sa_len.
40149         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
40150
40151 2008-10-13  Simon Josefsson  <simon@josefsson.org>
40152
40153         * build-aux/pmccabe2html: Add css and css_url parameters.
40154
40155 2008-10-12  Bruno Haible  <bruno@clisp.org>
40156
40157         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
40158         calling aclx_get.
40159         Reported by Rainer Tammer <tammer@tammer.net>.
40160
40161 2008-10-12  Bruno Haible  <bruno@clisp.org>
40162
40163         Use msvcrt aware primitives for creation/termination of Win32 threads.
40164         * lib/glthread/thread.c: Include <process.h>.
40165         (glthread_create_func): Use _beginthreadex instead of CreateThread.
40166         (wrapper_func): Update signature.
40167         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
40168
40169 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
40170             Bruno Haible  <bruno@clisp.org>
40171
40172         Provide a Win32 implementation of the 'cond' module.
40173         * lib/glthread/cond.h [USE_WIN32]: New implementation.
40174         * lib/glthread/cond.c (glthread_cond_init_func,
40175         glthread_cond_wait_func, glthread_cond_timedwait_func,
40176         glthread_cond_signal_func, glthread_cond_broadcast_func,
40177         glthread_cond_destroy_func) [USE_WIN32]: New functions.
40178         * modules/cond (Dependencies): Add gettimeofday.
40179
40180 2008-10-11  Bruno Haible  <bruno@clisp.org>
40181
40182         Make sleep work on older versions of mingw.
40183         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
40184         only whether it exists.
40185         * doc/posix-functions/sleep.texi: Mention the problem with older
40186         versions of mingw.
40187
40188 2008-10-11  Bruno Haible  <bruno@clisp.org>
40189
40190         New module 'shutdown'.
40191         * modules/shutdown: New file.
40192         * lib/sys_socket.in.h (shutdown): New declaration.
40193         * lib/winsock.c (shutdown): New function.
40194         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
40195         GNULIB_SHUTDOWN.
40196         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
40197         * doc/posix-functions/shutdown.texi: Document the new module.
40198
40199 2008-10-11  Jim Meyering  <meyering@redhat.com>
40200
40201         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
40202
40203 2008-10-11  Bruno Haible  <bruno@clisp.org>
40204
40205         New module 'fclose'.
40206         * modules/fclose: New file.
40207         * lib/stdio.in.h (fclose): New declaration.
40208         * lib/fclose.c: New file.
40209         * m4/fclose.m4: New file.
40210         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
40211         REPLACE_FCLOSE.
40212         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
40213         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
40214         REPLACE_FCLOSE.
40215         * modules/close (Depends-on): fclose.
40216         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
40217
40218 2008-10-11  Bruno Haible  <bruno@clisp.org>
40219
40220         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
40221         set errno and don't call _close.
40222
40223 2008-10-10  Bruno Haible  <bruno@clisp.org>
40224
40225         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
40226         ACL, not afterwards. Fixes test failure on Cygwin.
40227
40228 2008-10-09  Ben Pfaff  <blp@gnu.org>
40229
40230         * build-aux/announce-gen: Fix gnulib version related part of usage
40231         message.  Die with a useful error message if no tarballs are
40232         found.
40233
40234 2008-10-10  Jim Meyering  <meyering@redhat.com>
40235
40236         bootstrap: use git's --depth=N option only if it's supported
40237         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
40238         recognize the --depth option.  Reported by Pádraig Brady.
40239
40240 2008-10-09  Bruno Haible  <bruno@clisp.org>
40241
40242         New module 'ioctl'.
40243         * modules/ioctl: New file.
40244         * lib/sys_socket.in.h (ioctl): Remove declaration.
40245         * lib/winsock.c: Include <sys/ioctl.h>.
40246         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
40247         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
40248         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
40249         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
40250         * doc/posix-functions/ioctl.texi: Mention the new module.
40251
40252 2008-10-09  Bruno Haible  <bruno@clisp.org>
40253
40254         New module 'sys_ioctl'.
40255         * lib/sys_ioctl.in.h: New file.
40256         * m4/sys_ioctl_h.m4: New file.
40257         * modules/sys_ioctl: New file.
40258         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
40259
40260 2008-10-09  Bruno Haible  <bruno@clisp.org>
40261
40262         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
40263         * lib/winsock.c: Include <stdarg.h>.
40264         (rpl_ioctl): Change to second argument 'int' and then varargs.
40265
40266 2008-10-09  Bruno Haible  <bruno@clisp.org>
40267
40268         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
40269         when the sys_socket module is present and the system has <winsock2.h>.
40270
40271 2008-10-09  Bruno Haible  <bruno@clisp.org>
40272
40273         * doc/posix-functions/close.texi: Mention module 'close' instead of
40274         module 'sys_socket'.
40275
40276 2008-10-09  Bruno Haible  <bruno@clisp.org>
40277
40278         * doc/glibc-headers/sys_ioctl.texi: New file.
40279         * doc/gnulib.texi: Include it.
40280
40281 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
40282             Bruno Haible  <bruno@clisp.org>
40283
40284         Combine the two replacements of 'close'.
40285         * lib/sys_socket.in.h (close): Define to a reminder to include
40286         <unistd.h>.
40287         (_gl_close_fd_maybe_socket): New declaration.
40288         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
40289         * lib/winsock.c (close): Remove undefinition.
40290         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
40291         needed for the gnulib module 'close'.
40292         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
40293         define to an error symbol or to a warning, if suitable.
40294         * lib/close.c: Include <sys/socket.h>.
40295         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
40296         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
40297         UNISTD_H_HAVE_WINSOCK2_H.
40298         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
40299         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40300         UNISTD_H_HAVE_WINSOCK2_H.
40301         * modules/sys_socket (Files): Add m4/unistd_h.m4.
40302         (configure.ac): Set a module indicator.
40303         (Makefile.am): Substitute GNULIB_CLOSE.
40304         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
40305         * modules/poll-tests (Depends-on): Add close.
40306         * modules/select-tests (Depends-on): Likewise.
40307
40308 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
40309             Bruno Haible  <bruno@clisp.org>
40310
40311         New module 'close'.
40312         * modules/close: New file.
40313         * lib/unistd.in.h (close): Move declaration out of the
40314         FCHDIR_REPLACEMENT scope.
40315         (_gl_unregister_fd): New declaration.
40316         * lib/close.c: New file.
40317         * lib/fchdir.c (rpl_close): Remove function.
40318         * m4/close.m4: New file.
40319         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
40320         close.
40321         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
40322         REPLACE_CLOSE.
40323         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
40324         REPLACE_CLOSE.
40325         * modules/fchdir (Depends-on): Add close.
40326
40327 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
40328             Bruno Haible  <bruno@clisp.org>
40329
40330         * lib/fcntl.in.h (open): Simplify conditionals.
40331         (_gl_register_fd): New declaration.
40332         * lib/fchdir.c (rpl_open): Remove function.
40333         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
40334         also.
40335         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
40336         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
40337         open.
40338
40339 2008-10-09  Jim Meyering  <meyering@redhat.com>
40340
40341         GNUmakefile: use the more name-space-friendly "_version"
40342         * top/GNUmakefile (_dummy): Update.
40343         (_version): Rename from "version".
40344
40345 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
40346             Bruno Haible  <bruno@clisp.org>
40347
40348         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
40349         rpl_close.
40350         (_gl_register_fd): New function, extracted from rpl_open.
40351         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
40352         (rpl_open, rpl_opendir): Use _gl_register_fd.
40353
40354 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
40355
40356         Fix organization of 'open' replacement.
40357         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
40358         (gl_FUNC_OPEN): Use it.
40359         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
40360
40361 2008-10-08  Bruno Haible  <bruno@clisp.org>
40362
40363         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
40364
40365 2008-10-08  Simon Josefsson  <simon@josefsson.org>
40366
40367         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
40368         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
40369         listen).
40370
40371 2008-10-08  Eric Blake  <ebb9@byu.net>
40372
40373         GNUmakefile: add 'make version' target
40374         * top/GNUmakefile (_curr-ver): Split version update rules...
40375         (version): ...into a target.
40376
40377 2008-10-07  Bruno Haible  <bruno@clisp.org>
40378
40379         Use a more portable replacement expression for -0.0L.
40380         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
40381         instead of -0.0L. Fix m4 quotation.
40382
40383         * tests/test-signbit.c: Include <float.h>.
40384         (minus_zero): New variable.
40385         (test_signbitl): Use minus_zero instead of -zero.
40386         * modules/signbit-tests (Depends-on): Add float.
40387
40388         * tests/test-ceill.c: Include <float.h>.
40389         (zero): Remove variable.
40390         (minus_zero): New variable.
40391         (main): Use minus_zero instead of -zero.
40392         * modules/ceill-tests (Depends-on): Add float.
40393
40394         * tests/test-floorl.c: Include <float.h>.
40395         (zero): Remove variable.
40396         (minus_zero): New variable.
40397         (main): Use minus_zero instead of -zero.
40398         * modules/floorl-tests (Depends-on): Add float.
40399
40400         * tests/test-roundl.c: Include <float.h>.
40401         (zero): Remove variable.
40402         (minus_zero): New variable.
40403         (main): Use minus_zero instead of -zero.
40404         * modules/roundl-tests (Depends-on): Add float.
40405
40406         * tests/test-truncl.c: Include <float.h>.
40407         (zero): Remove variable.
40408         (minus_zero): New variable.
40409         (main): Use minus_zero instead of -zero.
40410         * modules/truncl-tests (Depends-on): Add float.
40411
40412         * tests/test-frexpl.c (zero): Remove variable.
40413         (minus_zero): New variable.
40414         (main): Use minus_zero instead of -zero.
40415         * modules/frexpl-tests (Depends-on): Add float.
40416
40417         * tests/test-isnan.c (zerol): Remove variable.
40418         (minus_zerol): New variable.
40419         (test_long_double): Use minus_zerol instead of -zerol.
40420         * modules/isnan-tests (Depends-on): Add float.
40421
40422         * tests/test-isnanl.h (zero): Remove variable.
40423         (minus_zero): New variable.
40424         (main): Use minus_zero instead of -zero.
40425         * modules/isnanl-nolibm-tests (Depends-on): Add float.
40426         * modules/isnanl-tests (Depends-on): Add float.
40427
40428         * tests/test-ldexpl.c (zero): Remove variable.
40429         (minus_zero): New variable.
40430         (main): Use minus_zero instead of -zero.
40431         * modules/ldexpl-tests (Depends-on): Add float.
40432
40433         * tests/test-snprintf-posix.h (zerol): Remove variable.
40434         (minus_zerol): New variable.
40435         (test_function): Use minus_zerol instead of -zerol.
40436         * modules/snprintf-posix-tests (Depends-on): Add float.
40437         * modules/vsnprintf-posix-tests (Depends-on): Add float.
40438
40439         * tests/test-sprintf-posix.h (zerol): Remove variable.
40440         (minus_zerol): New variable.
40441         (test_function): Use minus_zerol instead of -zerol.
40442         * modules/sprintf-posix-tests (Depends-on): Add float.
40443         * modules/vsprintf-posix-tests (Depends-on): Add float.
40444
40445         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
40446         (minus_zerol): New variable.
40447         (test_function): Use minus_zerol instead of -zerol.
40448         * modules/vasnprintf-posix-tests (Depends-on): Add float.
40449
40450         * tests/test-vasprintf-posix.c (zerol): Remove variable.
40451         (minus_zerol): New variable.
40452         (test_function): Use minus_zerol instead of -zerol.
40453         * modules/vasprintf-posix-tests (Depends-on): Add float.
40454
40455 2008-10-07  Simon Josefsson  <simon@josefsson.org>
40456
40457         * MODULES.html.sh (Support for building documentation): Mention
40458         pmccabe2html.  Sort entries.
40459
40460         Add pmccabe2html module, from gnupdf.
40461         * build-aux/pmccabe.css: New file.
40462         * build-aux/pmccabe2html: New file.
40463         * m4/pmccabe2html.m4: New file.
40464         * modules/pmccabe2html: New file.
40465
40466 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
40467
40468         flock: new module
40469         * MODULES.html.sh: Add to list of modules.
40470         * lib/flock.c: flock implementation for Windows and Unix systems
40471         which have fcntl.
40472         * doc/glibc-functions/flock.texi: Update documentation.
40473         * lib/sys_file.in.h: <sys/file.h> header file.
40474         * m4/flock.m4: M4 macros.
40475         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
40476         * modules/flock: flock module.
40477         * modules/flock-tests: flock tests module.
40478         * modules/sys_file: sys/file.h module.
40479         * tests/test-flock.c: test suite for flock.
40480
40481 2008-10-06  Jim Meyering  <meyering@redhat.com>
40482
40483         bootstrap: check for LT_INIT more portably still ;-)
40484         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
40485         Spotted by Bruno Haible.
40486
40487 2008-10-06  Eric Blake  <ebb9@byu.net>
40488
40489         test-signbit: avoid tripping Irix cc bug on -0.0L
40490         * tests/test-signbit.c (minus_zerol): Delete, and replace with
40491         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
40492         entire testsuite consistent and avoids an Irix 6.2 bug.
40493
40494 2008-10-05  Bruno Haible  <bruno@clisp.org>
40495             Jim Meyering  <jim@meyering.net>
40496
40497         Add an option for ignoring EPIPE during close_stdout.
40498         * lib/closeout.h: Include <stdbool.h>.
40499         (close_stdout_set_ignore_EPIPE): New declaration.
40500         * lib/closeout.c: Include <stdbool.h>.
40501         (ignore_EPIPE): New variable.
40502         (close_stdout_set_ignore_EPIPE): New function.
40503         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
40504         * lib/close-stream.c (close_stream): Mention the possible EPIPE
40505         failure.
40506         * modules/closeout (Depends-on): Add stdbool.
40507
40508 2008-10-05  Bruno Haible  <bruno@clisp.org>
40509
40510         * modules/accept: New file.
40511         * modules/bind: New file.
40512         * modules/connect: New file.
40513         * modules/getpeername: New file.
40514         * modules/getsockname: New file.
40515         * modules/getsockopt: New file.
40516         * modules/listen: New file.
40517         * modules/recv: New file.
40518         * modules/recvfrom: New file.
40519         * modules/send: New file.
40520         * modules/sendto: New file.
40521         * modules/setsockopt: New file.
40522         * modules/socket: New file.
40523         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
40524         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
40525         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
40526         the particular module is requested. Add a link warning when the
40527         particular module is not requested.
40528         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
40529         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
40530         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
40531         the particular module is requested.
40532         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
40533         gl_SYS_SOCKET_H_DEFAULTS): New macros.
40534         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
40535         * modules/sys_socket (Depends-on): Add link-warning.
40536         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
40537         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
40538         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
40539         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
40540         GL_LINK_WARNING.
40541         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
40542         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
40543         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
40544         * doc/posix-functions/getpeername.texi: Mention the new module
40545         'getpeername'.
40546         * doc/posix-functions/getsockname.texi: Mention the new module
40547         'getsockname'.
40548         * doc/posix-functions/getsockopt.texi: Mention the new module
40549         'getsockopt'.
40550         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
40551         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
40552         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
40553         * doc/posix-functions/send.texi: Mention the new module 'send'.
40554         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
40555         * doc/posix-functions/setsockopt.texi: Mention the new module
40556         'setsockopt'.
40557         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
40558         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
40559         listen, connect, accept.
40560         * modules/select-tests (Depends-on): Likewise.
40561
40562 2008-10-05  Bruno Haible  <bruno@clisp.org>
40563
40564         * lib/winsock.c (strerror): Remove unused #undef.
40565         (rpl_close): Remove unused local variable.
40566
40567         * modules/sys_socket (Depends-on); Add errno.
40568
40569 2008-10-05  Bruno Haible  <bruno@clisp.org>
40570
40571         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
40572         (select): Add a link warning when the 'select' module is not used.
40573         * modules/sys_select (Depends-on): Add link-warning.
40574         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
40575         Suggested by Paolo Bonzini.
40576
40577 2008-10-05  Jim Meyering  <meyering@redhat.com>
40578
40579         bootstrap: check for LT_INIT more portably
40580         * build-aux/bootstrap: Avoid using grep -E, since it's not
40581         portable enough.  Suggestion from Bruno Haible.
40582
40583 2008-10-05  Bruno Haible  <bruno@clisp.org>
40584
40585         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
40586         as being fixed by gnulib.
40587
40588 2008-10-05  Bruno Haible  <bruno@clisp.org>
40589
40590         * modules/select-tests: New file, mostly copied from
40591         modules/sys_select-tests.
40592         * tests/test-select.c: New file, mostly copied from
40593         tests/test-sys_select.c.
40594         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
40595         * modules/sys_select-tests (Depends-on): Remove all dependencies.
40596         (Makefile.am): Remove test_sys_select_LDADD.
40597
40598         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
40599         to an undefined symbol, for an error message.
40600         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
40601         (gl_SYS_SELECT_H_DEFAULTS): New macro.
40602         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
40603         winsock-select.c here.
40604         * modules/sys_select (Files): Remove lib/winsock-select.c.
40605         (Depends-on): Remove alloca.
40606         (Makefile.am): Substitute GNULIB_SELECT.
40607         * modules/select: New file.
40608         * doc/posix-functions/select.texi: Update.
40609
40610 2008-10-05  Bruno Haible  <bruno@clisp.org>
40611
40612         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
40613         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
40614         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
40615         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
40616         getdtablesize.
40617         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
40618         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
40619
40620 2008-10-05  Bruno Haible  <bruno@clisp.org>
40621
40622         * modules/getdtablesize-tests: New file.
40623         * tests/test-getdtablesize.c: New file.
40624
40625         New module 'getdtablesize'.
40626         * lib/unistd.in.h (getdtablesize): New declaration.
40627         * lib/getdtablesize.c: New file.
40628         * m4/getdtablesize.m4: New file.
40629         * modules/getdtablesize: New file.
40630         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40631         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
40632         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
40633         HAVE_GETDTABLESIZE.
40634         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
40635
40636 2008-10-05  Bruno Haible  <bruno@clisp.org>
40637
40638         * modules/sched (Makefile.am): Fix typo.
40639         Reported by Simon Josefsson.
40640
40641 2008-10-05  Jim Meyering  <meyering@redhat.com>
40642
40643         bootstrap: check for LT_INIT, too
40644         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
40645         are deprecated.  Suggestion from Ralf Wildenhues.
40646
40647 2008-10-05  Bruno Haible  <bruno@clisp.org>
40648
40649         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
40650         overriding them by ours.
40651         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
40652
40653 2008-10-05  Jim Meyering  <meyering@redhat.com>
40654
40655         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
40656         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
40657         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
40658
40659 2008-10-04  Bruno Haible  <bruno@clisp.org>
40660
40661         * modules/dup2 (License): Change to LGPLv2+.
40662         * modules/sleep (License): Likewise.
40663         * modules/perror (License): Likewise.
40664         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
40665         Blake.
40666         * modules/signal (License): Likewise.
40667         * modules/sigprocmask (License): Likewise.
40668         * modules/raise (License): Change to LGPLv2+, with approval by Jim
40669         Meyering.
40670
40671 2008-10-04  Bruno Haible  <bruno@clisp.org>
40672
40673         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
40674         Reported by Rainer Tammer <tammer@tammer.net>.
40675
40676 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
40677             Bruno Haible  <bruno@clisp.org>
40678
40679         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
40680         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
40681         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
40682
40683 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
40684
40685         filevercmp: new module
40686         * lib/filevercmp.h: New function filevercmp comparing version strings.
40687         * lib/filevercmp.c: Implementation of filevercmp function.
40688         * modules/filevercmp: Module metadata.
40689         * tests/test-filevercmp.c: Unit test for new module.
40690         * modules/filevercmp-tests: Unit test metadata.
40691         * MODULES.html.sh: Add filevercmp module.
40692
40693 2008-10-03  Bruno Haible  <bruno@clisp.org>
40694
40695         * lib/c-ctype.h: Add comment.
40696         Reported by Jim Meyering.
40697
40698 2008-10-02  Bruno Haible  <bruno@clisp.org>
40699
40700         * modules/posix_spawn-internal (Depends-on): Add 'open'.
40701
40702 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
40703
40704         * build-aux/bootstrap: Allow renaming bootstrap, and change the
40705         name of bootstrap.conf accordingly.
40706
40707 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
40708
40709         * build-aux/bootstrap: Install git-merge-changelog configuration
40710         items into .gitconfig if needed.
40711
40712 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
40713
40714         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
40715         git repository, and initialize/update it accordingly.
40716
40717 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
40718
40719         * modules/fsync-tests: New file.
40720         * tests/test-fsync.c: New file.
40721
40722         New module 'fsync'.
40723         * lib/fsync.c: New file.
40724         * m4/fsync.m4: New file.
40725         * modules/fsync: New file.
40726         * lib/unistd.in.h (fsync): New declaration.
40727         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
40728         GNULIB_FSYNC and HAVE_FSYNC.
40729         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
40730         * MODULES.html.sh (posix_functions): Add fsync.
40731         * doc/posix-functions/fsync.texi: Mention the new module.
40732
40733 2008-10-02  Jim Meyering  <meyering@redhat.com>
40734
40735         fts.c: sync with similar code from coreutils' remove.c
40736         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
40737         Guard also with "#if defined __linux__", since for now at least,
40738         this code is Linux-kernel-specific.
40739
40740 2008-10-02  Jim Meyering  <meyering@redhat.com>
40741
40742         fts: bug fixes
40743         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
40744         Include <sys/vfs.h>, not <sys/statfs.h>.
40745
40746         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
40747         Include <sys/vfs.h>, not <sys/statfs.h>.
40748
40749 2008-10-01  Bruno Haible  <bruno@clisp.org>
40750
40751         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
40752         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
40753         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
40754         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
40755         * doc/posix-functions/posix_spawnp.texi: Likewise.
40756         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
40757         whether posix_spawn actually works.
40758         * m4/pipe.m4 (gl_PIPE): Likewise.
40759         * modules/execute (Files): Add m4/posix_spawn.m4.
40760         * modules/pipe (Files): Add m4/posix_spawn.m4.
40761         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
40762
40763 2008-10-01  Jim Meyering  <meyering@redhat.com>
40764
40765         remove trailing spaces
40766         * NEWS: Likewise.
40767         * lib/poll.c (poll): Likewise.
40768         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
40769         * lib/winsock.c (rpl_close): Likewise.
40770         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
40771         * modules/yield: Likewise.
40772         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
40773         * tests/test-sys_select.c (connect_to_socket): Likewise.
40774
40775         fts.c: adjust a new interface to be more generally useful
40776         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
40777         (fts_build): Adjust caller.
40778
40779 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40780
40781         * modules/cond-tests: New file.
40782         * tests/test-cond.c: New file.
40783
40784 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40785             Bruno Haible  <bruno@clisp.org>
40786
40787         * modules/cond (Dependencies): Add errno, time.
40788         * lib/glthread/cond.h: Include <time.h>.
40789         (gl_cond_define, gl_cond_define_initialized): Use the same definition
40790         across platforms.
40791
40792 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40793             Bruno Haible  <bruno@clisp.org>
40794
40795         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
40796
40797 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40798             Bruno Haible  <bruno@clisp.org>
40799
40800         * modules/tls-tests (Depends-on): Add thread, yield.
40801         (configure.ac): Remove all checks.
40802         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
40803         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
40804         gl_thread_self): Remove definitions. Include glthread/thread.h and
40805         glthread/yield.h instead.
40806         (test_tls): Pass an additional NULL argument to gl_thread_join.
40807
40808 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40809             Bruno Haible  <bruno@clisp.org>
40810
40811         * modules/lock-tests (Depends-on): Add thread, yield.
40812         (configure.ac): Remove all checks.
40813         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
40814         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
40815         gl_thread_self): Remove definitions. Include glthread/thread.h and
40816         glthread/yield.h instead.
40817         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
40818         additional NULL argument to gl_thread_join.
40819
40820 2008-09-30  Bruno Haible  <bruno@clisp.org>
40821
40822         Fix the Win32 implementation of the 'thread' module.
40823         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
40824         pointer type.
40825         (gl_thread_self): Invoke gl_thread_self_func.
40826         (gl_thread_self_func): New declaration.
40827         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
40828         (do_init_self_key, init_self_key): New functions.
40829         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
40830         Remove some fields.
40831         (running_threads, running_lock): Remove variables.
40832         (get_current_thread_handle): New function.
40833         (gl_thread_self_func, wrapper_func, glthread_create_func,
40834         glthread_join_func, gl_thread_exit_func): Largely rewritten and
40835         simplified.
40836
40837 2008-09-30  Bruno Haible  <bruno@clisp.org>
40838
40839         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
40840         files.
40841
40842 2008-09-30  Jim Meyering  <meyering@redhat.com>
40843
40844         fts.m4: correct the test for statfs.f_type
40845         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
40846         when checking for statfs.f_type.
40847
40848 2008-09-15  Simon Josefsson  <simon@josefsson.org>
40849
40850         tests: avoid some compiler warnings
40851         * tests/test-memchr.c (main): Pass NULL indirectly.
40852         * tests/test-getdate.c (main): Remove unused variable 'ret'.
40853
40854 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
40855
40856         getdate.y: disallow countable dayshifts like "4 yesterday ago"
40857         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
40858         exactly specified dayshifts.
40859         (dayshift): New rule.
40860         (rel): Add dayshift.
40861         (relative_time_table) [tomorrow, yesterday, today, now]:
40862         Use tDAY_SHIFT in place of tDAY_UNIT.
40863         * tests/test-getdate.c: Add tests for now-disallowed countable
40864         dayshifts, e.g., "4 yesterday ago".
40865
40866 2008-09-29  Bruno Haible  <bruno@clisp.org>
40867
40868         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
40869         * tests/test-posix_spawn1.in.sh: Renamed from
40870         tests/test-posix_spawn.in.sh.
40871         * tests/test-posix_spawn2.c: New file.
40872         * tests/test-posix_spawn2.in.sh: New file.
40873         * modules/posix_spawnp-tests (Files): Update.
40874         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
40875
40876 2008-09-29  Bruno Haible  <bruno@clisp.org>
40877
40878         Propagate effects of putenv/setenv/unsetenv to child processes.
40879         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
40880         * lib/pipe.c (create_pipe): Likewise.
40881
40882 2008-09-29  Bruno Haible  <bruno@clisp.org>
40883
40884         Enable use of shell scripts as executables in mingw.
40885         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
40886         run the program as a shell script.
40887         * lib/pipe.c (create_pipe): Likewise.
40888         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
40889         resulting array.
40890
40891 2008-09-29  Eric Blake  <ebb9@byu.net>
40892
40893         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
40894
40895 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
40896
40897         * doc/posix-functions/accept.texi: Update mingw problems.
40898         * doc/posix-functions/bind.texi: Update mingw problems.
40899         * doc/posix-functions/close.texi: Update mingw problems.
40900         * doc/posix-functions/connect.texi: Update mingw problems.
40901         * doc/posix-functions/getpeername.texi: Update mingw problems.
40902         * doc/posix-functions/getsockname.texi: Update mingw problems.
40903         * doc/posix-functions/getsockopt.texi: Update mingw problems.
40904         * doc/posix-functions/ioctl.texi: Update mingw problems.
40905         * doc/posix-functions/listen.texi: Update mingw problems.
40906         * doc/posix-functions/recv.texi: Update mingw problems.
40907         * doc/posix-functions/recvfrom.texi: Update mingw problems.
40908         * doc/posix-functions/select.texi: Update mingw problems.
40909         * doc/posix-functions/send.texi: Update mingw problems.
40910         * doc/posix-functions/sendto.texi: Update mingw problems.
40911         * doc/posix-functions/setsockopt.texi: Update mingw problems.
40912         * doc/posix-functions/socket.texi: Update mingw problems.
40913
40914 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
40915             Bruno Haible  <bruno@clisp.org>
40916
40917         * lib/sys_select.in.h: Include sys/time.h.
40918         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
40919         * modules/sys_select: Depend on sys_time.
40920         * tests/test-sys_select.c: Test that sys/select.h defines struct
40921         timeval fully.
40922
40923 2008-09-29  Bruno Haible  <bruno@clisp.org>
40924
40925         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
40926         * lib/sys_select.in.h: Likewise.
40927
40928 2008-09-29  Bruno Haible  <bruno@clisp.org>
40929
40930         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
40931
40932 2008-09-29  Bruno Haible  <bruno@clisp.org>
40933
40934         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
40935         Set LIBSOCKET instead of augmenting LIBS.
40936         * modules/sockets (Link): New section.
40937         * modules/sockets-tests (test_sockets_LDADD): New variable.
40938         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
40939         * modules/poll-tests (test_poll_LDADD): New variable.
40940         * NEWS: Document the change.
40941
40942 2008-09-29  Bruno Haible  <bruno@clisp.org>
40943
40944         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
40945         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
40946         ARPA_INET_H directly.
40947         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40948
40949 2008-09-28  Bruno Haible  <bruno@clisp.org>
40950
40951         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
40952         from gl_HEADER_SYS_SOCKET.
40953         (gl_HEADER_SYS_SOCKET): Invoke it.
40954         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40955
40956 2008-09-28  Bruno Haible  <bruno@clisp.org>
40957
40958         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
40959         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
40960         Needed on OSF/1 4.0.
40961
40962 2008-09-28  Bruno Haible  <bruno@clisp.org>
40963
40964         Override open more carefully.
40965         * lib/open.c (orig_open): New function.
40966         (rpl_open): Use orig_open instead of open.
40967         * lib/fcntl.in.h: Add special invocation convention.
40968         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
40969         (gl_FUNC_OPEN): Invoke it.
40970
40971         Override freopen more carefully.
40972         * lib/freopen.c (orig_freopen): New function.
40973         (rpl_freopen): Use orig_freopen instead of freopen.
40974         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
40975         (gl_FUNC_FREOPEN): Invoke it.
40976
40977         Override fopen more carefully.
40978         * lib/fopen.c (orig_fopen): New function.
40979         (rpl_fopen): Use orig_fopen instead of fopen.
40980         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
40981         (gl_FUNC_FOPEN): Invoke it.
40982         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
40983
40984 2008-09-28  Bruno Haible  <bruno@clisp.org>
40985
40986         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
40987         SIGPIPE.
40988
40989 2008-09-28  Bruno Haible  <bruno@clisp.org>
40990
40991         * tests/test-sigaction.c (handler, main): Disable the check whether
40992         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
40993         glibc systems with LinuxThreads.
40994
40995 2008-09-28  Bruno Haible  <bruno@clisp.org>
40996
40997         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
40998
40999         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
41000         with AIX xlc.
41001         * lib/fcntl.in.h (open): Likewise.
41002         Reported by Rainer Tammer <tammer@tammer.net>.
41003
41004 2008-09-28  Bruno Haible  <bruno@clisp.org>
41005
41006         * modules/posix_spawnp-tests: New file.
41007         * tests/test-posix_spawn.c: New file.
41008         * tests/test-posix_spawn.in.sh: New file.
41009
41010         New module 'posix_spawnp'.
41011         * modules/posix_spawnp: New file.
41012         * lib/spawnp.c: New file, from GNU libc with modifications.
41013         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
41014
41015         New module 'posix_spawn'.
41016         * modules/posix_spawn: New file.
41017         * lib/spawn.c: New file, from GNU libc with modifications.
41018         * doc/posix-functions/posix_spawn.texi: Mention the new module.
41019
41020         New module 'posix_spawnattr_destroy'.
41021         * modules/posix_spawnattr_destroy: New file.
41022         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
41023         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
41024         module.
41025
41026         New module 'posix_spawnattr_setsigmask'.
41027         * modules/posix_spawnattr_setsigmask: New file.
41028         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
41029         modifications.
41030         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
41031         new module.
41032
41033         New module 'posix_spawnattr_getsigmask'.
41034         * modules/posix_spawnattr_getsigmask: New file.
41035         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
41036         modifications.
41037         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
41038         new module.
41039
41040         New module 'posix_spawnattr_setsigdefault'.
41041         * modules/posix_spawnattr_setsigdefault: New file.
41042         * lib/spawnattr_setdefault.c: New file, from GNU libc with
41043         modifications.
41044         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
41045         new module.
41046
41047         New module 'posix_spawnattr_getsigdefault'.
41048         * modules/posix_spawnattr_getsigdefault: New file.
41049         * lib/spawnattr_getdefault.c: New file, from GNU libc with
41050         modifications.
41051         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
41052         new module.
41053
41054         New module 'posix_spawnattr_setschedpolicy'.
41055         * modules/posix_spawnattr_setschedpolicy: New file.
41056         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
41057         modifications.
41058         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
41059         new module.
41060
41061         New module 'posix_spawnattr_getschedpolicy'.
41062         * modules/posix_spawnattr_getschedpolicy: New file.
41063         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
41064         modifications.
41065         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
41066         new module.
41067
41068         New module 'posix_spawnattr_setschedparam'.
41069         * modules/posix_spawnattr_setschedparam: New file.
41070         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
41071         modifications.
41072         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
41073         new module.
41074
41075         New module 'posix_spawnattr_getschedparam'.
41076         * modules/posix_spawnattr_getschedparam: New file.
41077         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
41078         modifications.
41079         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
41080         new module.
41081
41082         New module 'posix_spawnattr_setpgroup'.
41083         * modules/posix_spawnattr_setpgroup: New file.
41084         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
41085         modifications.
41086         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
41087         module.
41088
41089         New module 'posix_spawnattr_getpgroup'.
41090         * modules/posix_spawnattr_getpgroup: New file.
41091         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
41092         modifications.
41093         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
41094         module.
41095
41096         New module 'posix_spawnattr_setflags'.
41097         * modules/posix_spawnattr_setflags: New file.
41098         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
41099         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
41100         module.
41101
41102         New module 'posix_spawnattr_getflags'.
41103         * modules/posix_spawnattr_getflags: New file.
41104         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
41105         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
41106         module.
41107
41108         New module 'posix_spawnattr_init'.
41109         * modules/posix_spawnattr_init: New file.
41110         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
41111         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
41112         module.
41113
41114         New module 'posix_spawn_file_actions_destroy'.
41115         * modules/posix_spawn_file_actions_destroy: New file.
41116         * lib/spawn_faction_destroy.c: New file, from GNU libc with
41117         modifications.
41118         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
41119         the new module.
41120
41121         New module 'posix_spawn_file_actions_addopen'.
41122         * modules/posix_spawn_file_actions_addopen: New file.
41123         * lib/spawn_faction_addopen.c: New file, from GNU libc with
41124         modifications.
41125         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
41126         the new module.
41127
41128         New module 'posix_spawn_file_actions_adddup2'.
41129         * modules/posix_spawn_file_actions_adddup2: New file.
41130         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
41131         modifications.
41132         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
41133         the new module.
41134
41135         New module 'posix_spawn_file_actions_addclose'.
41136         * modules/posix_spawn_file_actions_addclose: New file.
41137         * lib/spawn_faction_addclose.c: New file, from GNU libc with
41138         modifications.
41139         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
41140         the new module.
41141
41142         New module 'posix_spawn_file_actions_init'.
41143         * modules/posix_spawn_file_actions_init: New file.
41144         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
41145         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
41146         new module.
41147
41148         New module 'posix_spawn-internal'.
41149         * modules/posix_spawn-internal: New file.
41150         * lib/spawn_int.h: New file, from GNU libc with modifications.
41151         * lib/spawni.c: New file, from GNU libc with modifications.
41152         * m4/posix_spawn.m4: New file.
41153
41154         New module 'spawn'.
41155         * modules/spawn: New file.
41156         * lib/spawn.in.h: New file, from GNU libc with modifications.
41157         * m4/spawn_h.m4: New file.
41158         * doc/posix-headers/spawn.texi: Mention the new module.
41159
41160 2008-09-28  Bruno Haible  <bruno@clisp.org>
41161
41162         * modules/sched-tests: New file.
41163         * tests/test-sched.c: New file.
41164
41165         New module 'sched'.
41166         * modules/sched: New file.
41167         * lib/sched.in.h: New file.
41168         * m4/sched_h.m4: New file.
41169         * doc/posix-headers/sched.texi: Mention the new module.
41170
41171 2008-09-27  Eric Blake  <ebb9@byu.net>
41172
41173         Fix previous patch, and tweak references to $0.
41174         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
41175         (func_version, func_gnulib_dir): Don't call this program
41176         gnulib-tool.
41177         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
41178         with using $0 in function.
41179         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
41180         (func_fatal_error): Reuse the name the user invoked us with.
41181
41182 2008-09-27  Bruno Haible  <bruno@clisp.org>
41183
41184         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
41185         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
41186         (gl_ICONV_H): Not here.
41187         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
41188         instead of assigning ICONV_H directly.
41189
41190         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
41191         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
41192         WCHAR_H directly.
41193
41194 2008-09-27  Bruno Haible  <bruno@clisp.org>
41195
41196         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
41197         * modules/arpa_inet (Depends-on): Add link-warning.
41198         (Makefile.am): Insert the definition of GL_LINK-WARNING.
41199         * modules/unistd (Makefile.am): Likewise.
41200
41201 2008-09-26  Bruno Haible  <bruno@clisp.org>
41202
41203         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
41204         variables.
41205         (func_version): Essentially copied from gnulib-tool.
41206         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
41207         func_readlink): Copied from gnulib-tool.
41208
41209 2008-09-26  Bruno Haible  <bruno@clisp.org>
41210
41211         * gnulib-tool (func_version): Change directory to $gnulib_dir before
41212         invoking git-version-gen.
41213
41214 2008-09-26  Bruno Haible  <bruno@clisp.org>
41215
41216         * posix-modules: Update to directory names changed on 2008-01-19.
41217         Remove commas in output before splitting into words. No more need to
41218         avoid 'ftruncate' since 2007-02-19.
41219
41220 2008-09-26  Bruno Haible  <bruno@clisp.org>
41221
41222         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
41223
41224 2008-09-26  Bruno Haible  <bruno@clisp.org>
41225
41226         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
41227         * modules/fwriteerror (Depends-on): Add errno.
41228
41229 2008-09-26  Bruno Haible  <bruno@clisp.org>
41230
41231         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
41232         * tests/test-vc-list-files-cvs.sh: Likewise.
41233
41234 2008-09-26  Bruno Haible  <bruno@clisp.org>
41235
41236         * doc/posix-headers/sys_resource.texi: Reorder items.
41237
41238 2008-09-26  Jim Meyering  <meyering@redhat.com>
41239
41240         fts: tweak inode comparison function
41241         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
41242         inode numbers, as documented.
41243
41244         fts: sort dirent entries on inode number before traversing
41245         This avoids a quadratic, seek-related performance penalty when
41246         operating on a directory containing many entries (measurable at 10k;
41247         3.5 hours at 2 million entries with a cold cache) on certain types
41248         of file systems, including ext3 and ext4, but not tmpfs.
41249         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
41250         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
41251         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
41252         (fs_handles_readdir_ordered_dirents_efficiently): New function.
41253         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
41254         (fts_build): Set the stat.st_ino member from D_INO.
41255         If it is likely to be useful, sort dirent entries on inode number.
41256
41257         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
41258         and the struct statfs.f_type member.
41259         * modules/fts (Depends-on): Add d-ino.
41260
41261 2008-09-26  Bruno Haible  <bruno@clisp.org>
41262
41263         * modules/sigpipe-die (Depends-on): Add sigpipe.
41264
41265         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
41266         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
41267         and GNULIB_STDIO_H_SIGPIPE are set.
41268         * lib/stdio-write.c: New file.
41269         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
41270         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
41271         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
41272         REPLACE_STDIO_WRITE_FUNCS.
41273         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
41274         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
41275         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
41276         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
41277         * modules/stdio (Files): Add lib/stdio-write.c.
41278         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
41279         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
41280         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
41281         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
41282         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
41283         REPLACE_FPRINTF_POSIX.
41284         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
41285         REPLACE_PRINTF_POSIX.
41286         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
41287         REPLACE_VFPRINTF_POSIX.
41288         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
41289         REPLACE_VPRINTF_POSIX.
41290         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
41291         SIGPIPE issue.
41292         * doc/posix-functions/fputc.texi: Likewise.
41293         * doc/posix-functions/fputs.texi: Likewise.
41294         * doc/posix-functions/fwrite.texi: Likewise.
41295         * doc/posix-functions/printf.texi: Likewise.
41296         * doc/posix-functions/putc.texi: Likewise.
41297         * doc/posix-functions/putchar.texi: Likewise.
41298         * doc/posix-functions/puts.texi: Likewise.
41299         * doc/posix-functions/vfprintf.texi: Likewise.
41300         * doc/posix-functions/vprintf.texi: Likewise.
41301
41302         * modules/safe-write (Depends-on): Add write.
41303
41304         * modules/sigpipe-tests: New file.
41305         * tests/test-sigpipe.c: New file.
41306         * tests/test-sigpipe.sh: New file.
41307
41308         * modules/write: New file.
41309         * lib/unistd.in.h: Include <sys/types.h>.
41310         (write): New declaration.
41311         * lib/write.c: New file.
41312         * m4/write.m4: New file.
41313         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41314         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
41315         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
41316         GNULIB_WRITE, REPLACE_WRITE.
41317         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
41318         and the SIGPIPE issue.
41319
41320         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
41321         (raise): New declaration.
41322         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
41323         (ext_signal): New function.
41324         (rpl_raise): New function.
41325         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
41326         GNULIB_SIGNAL_H_SIGPIPE.
41327         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
41328         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
41329
41330         * modules/sigpipe: New file.
41331         * m4/sigpipe.m4: New file.
41332
41333 2008-09-25  Derek Price  <derek@ximbiot.com>
41334             Bruno Haible  <bruno@clisp.org>
41335
41336         * gnulib-tool (func_import): Report all license incompatibilities, not
41337         just the first one.
41338
41339 2008-09-25  Bruno Haible  <bruno@clisp.org>
41340
41341         * gnulib-tool (func_import): When computing the edits, consider not
41342         only the Makefile.ams that exist but also those that will be generated.
41343
41344 2008-09-25  Simon Josefsson  <simon@josefsson.org>
41345
41346         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
41347         fixes gnulib-tool --test warning about duplicate dependency.
41348
41349 2008-09-25  Bruno Haible  <bruno@clisp.org>
41350
41351         * gnulib-tool: Don't ask the user to perform edits in the generated
41352         Makefile.ams.
41353         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
41354         apply to the Makefile.am being generated.
41355         (func_emit_tests_Makefile_am): Execute edits that apply to the
41356         Makefile.am being generated.
41357         (func_import): Setup list of Makefile.am edits before emitting the
41358         Makefile.ams, not at the end.
41359         (func_create_testdir): Update.
41360         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41361
41362 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41363
41364         * gnulib-tool (func_import): Store the --tests-base option in the
41365         comment in gnulib-cache.m4.
41366
41367 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
41368
41369         * NEWS: Document increased portability that sys_select now provides.
41370
41371         * lib/sys_select.in.h: Install select wrapper.
41372         * lib/sys_socket.in.h: Use more descriptive name when there is no
41373         select wrapper.
41374         * lib/winsock-select.c: New.
41375         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
41376         Require gl_HEADER_SYS_SOCKET.
41377         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
41378         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
41379         * tests/test-sys_select.c: Add functional tests.
41380
41381 2008-09-24  Eric Blake  <ebb9@byu.net>
41382
41383         open, fopen: close fd leak in last patch
41384         * lib/open.c (rpl_open): Close fd before returning error.
41385         * lib/fopen.c (rpl_fopen): Close fd before returning error.
41386         * doc/posix-functions/open.texi (open): Document that Irix also
41387         has the bug.
41388         * doc/posix-functions/fopen.texi (fopen): Likewise.
41389         Reported by Paolo Bonzini.
41390
41391 2008-09-24  Bruno Haible  <bruno@clisp.org>
41392
41393         Ensure that a filename ending in a slash cannot be used to access a
41394         non-directory.
41395         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
41396         to check whether it's really a directory.
41397         * lib/fopen.c: Include fcntl.h, unistd.h.
41398         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
41399         and fdopen().
41400         * modules/fopen (Depends-on): Add unistd.
41401         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
41402         * tests/test-fopen.c (main): Likewise.
41403         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
41404         * doc/posix-functions/fopen.texi: Likewise.
41405         Reported by Eric Blake.
41406
41407 2008-09-23  Eric Blake  <ebb9@byu.net>
41408
41409         c-stack: avoid compiler optimizations when provoking overflow
41410         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
41411         recursion harder to optimize, to ensure a stack overflow occurs.
41412         * tests/test-c-stack.c (recurse): Likewise.
41413         Borrowed from libsigsegv.
41414
41415         c-stack: work around Irix sigaltstack bug
41416         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
41417         whether sigaltstack uses wrong end of stack_t (copied in part from
41418         libsigsegv).
41419         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
41420         Irix bug, without requiring an over-allocation.
41421         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
41422         bug.
41423
41424         fopen: document mingw bug on directories
41425         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
41426         not allowing a stream visiting a directory, even though reading
41427         from such a stream is not portable.
41428
41429 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
41430
41431         * lib/poll.c: Rewrite.
41432         * modules/poll: Depend on alloca.
41433
41434 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
41435
41436         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
41437         instead define prototypes for a full set of wrappers.  Ensure
41438         that Cygwin does not use the compatibility code, which is only
41439         for MinGW.
41440         * lib/winsock.c: New.
41441         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
41442         * modules/sys_socket: Add lib/winsock.c.
41443
41444         * modules/poll-tests: Add errno and perror.
41445         * tests/test-poll.c: Use ioctl, not ioctlsocket.
41446
41447 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
41448
41449         * tests/test-poll.c: Downgrade minimum needed Winsock version.
41450
41451 2008-09-23  Bruno Haible  <bruno@clisp.org>
41452
41453         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
41454         * doc/glibc-functions/*: Likewise.
41455
41456 2008-09-23  Simon Josefsson  <simon@josefsson.org>
41457
41458         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
41459         success.
41460
41461 2008-09-22  Eric Blake  <ebb9@byu.net>
41462             Bruno Haible  <bruno@clisp.org>
41463
41464         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
41465         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
41466         supply %A but mishandle pseudo-NaN.
41467         Reported by Simon Josefsson.
41468
41469 2008-09-21  Bruno Haible  <bruno@clisp.org>
41470
41471         * tests/test-lock.c (main): Tweak skip message.
41472         * tests/test-tls.c (main): Likewise.
41473
41474 2008-09-21  Bruno Haible  <bruno@clisp.org>
41475
41476         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
41477         whether 'struct sigaction' has sa_sigaction here...
41478         (gl_PREREQ_SIG_HANDLER_H): ... not here.
41479         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
41480
41481 2008-09-21  Bruno Haible  <bruno@clisp.org>
41482
41483         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
41484         section.
41485         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
41486         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
41487         the new section.
41488         (Support for obsolete systems lacking POSIX:2001): New section.
41489         (String handling <string.h>): Move strdup to the new section.
41490         Suggested by Simon Josefsson and Paolo Bonzini.
41491
41492 2008-09-21  Bruno Haible  <bruno@clisp.org>
41493
41494         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
41495         exponents in %e and %g results on 'long double'. Needed for mingw's
41496         improved *printf functions.
41497         * tests/test-vasprintf-posix.c (test_function): Likewise.
41498         * tests/test-snprintf-posix.h (test_function): Likewise.
41499         * tests/test-sprintf-posix.h (test_function): Likewise.
41500         Reported by Eric Blake.
41501
41502 2008-09-21  Bruno Haible  <bruno@clisp.org>
41503
41504         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
41505         * tests/test-sprintf-posix.h (test_function): Likewise.
41506
41507 2008-09-21  Bruno Haible  <bruno@clisp.org>
41508
41509         * modules/getpass (Depends-on): Add strdup-posix.
41510
41511         New module 'strdup-posix'.
41512         * modules/strdup-posix: New file.
41513         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
41514         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
41515         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
41516         REPLACE_STRDUP.
41517         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
41518         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
41519         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41520         strdup-posix.
41521
41522         * modules/strdup (Depends-on): Remove malloc-posix.
41523
41524 2008-09-20  Bruno Haible  <bruno@clisp.org>
41525
41526         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
41527         Wildenhues.
41528
41529 2008-09-20  Bruno Haible  <bruno@clisp.org>
41530
41531         Ensure that wint_t gets defined on IRIX 5.3.
41532         * lib/wchar.in.h (wint_t): Define if not defined by the system.
41533         * lib/wctype.in.h (wint_t): Likewise.
41534         (__wctype_wint_t): Remove type.
41535         (isw*): Use wint_t instead of __wctype_wint_t.
41536         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
41537         * modules/wchar (Files): Add m4/wint_t.m4.
41538         (Makefile.am): Substitute HAVE_WINT_T.
41539         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
41540         * tests/test-wctype.c: Check that wint_t is defined.
41541         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
41542         * doc/posix-headers/wctype.texi: Likewise.
41543         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41544
41545 2008-09-18  Bruno Haible  <bruno@clisp.org>
41546
41547         * gnulib-tool (func_exit): Update comment.
41548
41549 2008-09-18  Simon Josefsson  <simon@josefsson.org>
41550
41551         * modules/getaddrinfo (Depends-on): Remove strdup, this module
41552         assumes strdup exists and does not depend on strdup to return
41553         ENOMEM on out of memory conditions.
41554
41555 2008-09-18  Bruno Haible  <bruno@clisp.org>
41556
41557         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
41558         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
41559         digits for the exponent.
41560
41561 2008-09-18  Jim Meyering  <meyering@redhat.com>
41562             Bruno Haible  <bruno@clisp.org>
41563
41564         * lib/vasnprintf.c (decimal_point_char): Define also if
41565         NEED_PRINTF_INFINITE_LONG_DOUBLE.
41566
41567 2008-09-16  Bruno Haible  <bruno@clisp.org>
41568         and Eric Blake  <ebb9@byu.net>
41569
41570         vasnprintf: support Irix 5.3
41571         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
41572         that mishandle long double infinity.
41573         Reported by Tom G. Christensen.
41574
41575 2008-09-16  Bruno Haible  <bruno@clisp.org>
41576
41577         * doc/glibc-functions/scandir.texi: Mention the function is missing on
41578         Solaris 9.
41579         * doc/glibc-functions/alphasort.texi: Likewise.
41580         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
41581
41582 2008-09-16  Jim Meyering  <meyering@redhat.com>
41583
41584         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
41585         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
41586         a umask modification leak out of a subshell.  Otherwise, the
41587         opensolaris /bin/sh would be accepted and thus cause unwarranted
41588         failures in the coreutils test suite.
41589
41590 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
41591
41592         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
41593         to succeed.
41594
41595 2008-09-16  Jim Meyering  <meyering@redhat.com>
41596
41597         avoid spurious test failure when library is built without ACL support
41598         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
41599         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
41600         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
41601         * tests/test-copy-acl.sh: Likewise.
41602
41603 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41604
41605         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
41606         based on character occurrence counts.
41607
41608 2008-09-15  Eric Blake  <ebb9@byu.net>
41609
41610         tests: avoid some compiler warnings
41611         * tests/test-memchr.c (main): Pass NULL indirectly.
41612         * tests/test-closein.c (main): Avoid unused variable.
41613
41614 2008-09-15  Bruno Haible  <bruno@clisp.org>
41615
41616         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
41617         are missing on OpenBSD 4.0 individually.
41618         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41619
41620 2008-09-15  Bruno Haible  <bruno@clisp.org>
41621
41622         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
41623         * doc/posix-functions/strerror.texi: Mention also Cygwin.
41624         * doc/posix-functions/perror.texi: Likewise.
41625         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
41626         is missing.
41627         Reported by Eric Blake.
41628
41629         * lib/errno.in.h: Use replacement values >= 2000.
41630         Reported by Eric Blake.
41631
41632 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41633
41634         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
41635         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
41636         limit.
41637         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
41638         compareseq was aborted.
41639
41640 2008-09-14  Bruno Haible  <bruno@clisp.org>
41641
41642         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
41643         yvec_edit_count.
41644         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
41645         (fstrcmp_bounded): Simplify result computation accordingly.
41646
41647 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41648
41649         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
41650         (fstrcmp): Define in terms of fstrcmp_bounded.
41651         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
41652         lower_bound argument.
41653         Return quickly if the result is certainly < lower_bound.
41654         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
41655
41656 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41657
41658         * lib/diffseq.h (EARLY_ABORT): New macro.
41659         (compareseq): Change return type to bool. Return true when EARLY_ABORT
41660         evaluates to true.
41661
41662 2008-09-14  Bruno Haible  <bruno@clisp.org>
41663
41664         * modules/perror-tests: New file.
41665         * tests/test-perror.sh: New file.
41666         * tests/test-perror.c: New file.
41667
41668         New module 'perror'.
41669         * lib/stdio.in.h (perror): New declaration.
41670         * lib/perror.c: New file.
41671         * m4/perror.m4: New file.
41672         * modules/perror: New file.
41673         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
41674         * doc/posix-functions/perror.texi: Mention the perror module.
41675         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
41676         REPLACE_PERROR.
41677         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
41678         REPLACE_PERROR.
41679
41680 2008-09-14  Bruno Haible  <bruno@clisp.org>
41681
41682         * modules/stdio (Makefile.am): Reorder to match the order in
41683         lib/stdio.in.h.
41684         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
41685
41686 2008-09-13  Bruno Haible  <bruno@clisp.org>
41687
41688         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
41689
41690 2008-09-13  Bruno Haible  <bruno@clisp.org>
41691
41692         Extend strerror to cover the added errno values.
41693         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
41694         (rpl_strerror): Provide error messages for the added errno values and
41695         for the WSA* values.
41696         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
41697         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
41698         strerror.
41699         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
41700         * modules/strerror (Depends-on): Add errno.
41701         * doc/posix-functions/strerror.texi: Document the change.
41702         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
41703         and EOVERFLOW.
41704
41705 2008-09-13  Bruno Haible  <bruno@clisp.org>
41706
41707         * modules/EOVERFLOW: Remove file.
41708         * m4/eoverflow.m4: Remove file.
41709         * modules/EOVERFLOW-tests: Remove file.
41710         * tests/test-EOVERFLOW.c: Remove file.
41711         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
41712         * modules/ftell (Depends-on): Likewise.
41713         * modules/getdelim (Depends-on): Likewise.
41714         * modules/getugroups (Depends-on): Likewise.
41715         * modules/poll (Depends-on): Likewise.
41716         * modules/snprintf (Depends-on): Likewise.
41717         * modules/sprintf-posix (Depends-on): Likewise.
41718         * modules/vasnprintf (Depends-on): Likewise.
41719         * modules/vasprintf (Depends-on): Likewise.
41720         * modules/vfprintf-posix (Depends-on): Likewise.
41721         * modules/vsnprintf (Depends-on): Likewise.
41722         * modules/vsprintf-posix (Depends-on): Likewise.
41723         * modules/xvasprintf (Depends-on): Likewise.
41724         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
41725         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
41726         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
41727         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
41728         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
41729         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
41730         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
41731         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
41732         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
41733         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
41734         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
41735         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
41736         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
41737         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
41738         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
41739         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
41740         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
41741         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
41742         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
41743         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
41744         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
41745         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
41746         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
41747         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
41748         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
41749         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
41750         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
41751         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
41752         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
41753         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
41754         * MODULES.html.sh: Remove EOVERFLOW.
41755         * NEWS: Mention the change.
41756
41757 2008-09-13  Bruno Haible  <bruno@clisp.org>
41758
41759         * modules/errno-tests: New file.
41760         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
41761
41762         * lib/errno.in.h: New file.
41763         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
41764         * modules/errno: New file.
41765         * doc/posix-headers/errno.texi: Update documentation.
41766         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
41767
41768 2008-09-13  Bruno Haible  <bruno@clisp.org>
41769
41770         * tests/test-poll.c: Use #if for native Windows, rather than testing
41771         __MSVCRT__.
41772
41773 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41774             Bruno Haible  <bruno@clisp.org>
41775
41776         * lib/glob.c: Don't include <pwd.h> on native Windows.
41777         (WINDOWS32): New macro.
41778         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
41779
41780 2008-09-13  Bruno Haible  <bruno@clisp.org>
41781
41782         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
41783         (ETIMEDOUT): Remove macro.
41784         (glthread_cond_timedwait_multithreaded): New declaration.
41785         (glthread_cond_timedwait): Use it.
41786         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
41787         (glthread_cond_timedwait_multithreaded): New function.
41788
41789 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
41790
41791         * modules/poll-tests: Do not check for io.h.
41792         * tests/test-poll.c: Check for __MSVCRT__ instead.
41793
41794 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
41795
41796         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
41797         * modules/poll-tests: Add inet_pton, stdbool, sockets.
41798         * tests/test-poll.c: Use them.  Use _pipe on Windows.
41799
41800 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
41801
41802         * modules/poll-tests: New.
41803         * tests/test-poll.c: New.
41804
41805 2008-09-12  Eric Blake  <ebb9@byu.net>
41806
41807         frexp: test for NetBSD failure on -0.0
41808         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
41809         not all, bugs from NetBSD 3.0 have been fixed.
41810         * doc/posix-functions/frexp.texi (frexp): Document bug.
41811         Reported by Thomas Klausner.
41812
41813         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
41814         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
41815         literal -0.0.
41816         Reported by Jonathan C. Patschke <jp@centtech.com>.
41817
41818 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41819
41820         * lib/glthread/cond.h: Use dummy implementation also if
41821         USE_WIN32_THREADS.
41822
41823 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41824
41825         * modules/fnmatch-posix (License): Change to LGPLv2+.
41826         * modules/fnmatch-gnu (License): Likewise.
41827
41828 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41829
41830         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
41831
41832 2008-09-11  Jim Meyering  <meyering@redhat.com>
41833
41834         * users.txt: Add gtk-vnc.
41835
41836 2008-09-08  Simon Josefsson  <simon@josefsson.org>
41837
41838         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
41839         rotate amounts.
41840
41841         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
41842         required for 16-bit and 8-bit rotates.
41843         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
41844         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
41845         UINT8_MAX instead of hard-coded constants.
41846         Suggested by Paul Eggert.
41847
41848 2008-09-07  Bruno Haible  <bruno@clisp.org>
41849
41850         * tests/test-striconveh.c (main): Check behaviour when converting from
41851         UTF-7.
41852
41853         Make striconveh work better with stateful encodings.
41854         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
41855         that iconv does not increment the inptr when returning -1/EINVAL.
41856
41857 2008-09-07  Bruno Haible  <bruno@clisp.org>
41858
41859         * build-aux/config.rpath: Update according to libtool-2.2.6.
41860         * build-aux/config.libpath: Likewise.
41861
41862 2008-09-06  Bruno Haible  <bruno@clisp.org>
41863
41864         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
41865         * lib/freadptr.c (freadptr): Likewise.
41866         * lib/freadseek.c (freadptrinc): Likewise.
41867         Reported by Simon Josefsson.
41868
41869 2008-09-06  Bruno Haible  <bruno@clisp.org>
41870
41871         * modules/freadptr (License): Change to LGPLv2+.
41872         * modules/freadseek (License): Likewise.
41873         Suggested by Eric Blake.
41874
41875         * modules/memchr2 (License): Change to LGPLv2+.
41876         Approved by Eric Blake.
41877
41878 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41879             Bruno Haible  <bruno@clisp.org>
41880
41881         Make gnulib-tool work with native 'sed' on AIX.
41882         * gnulib-tool (sed_noop): New variable.
41883         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
41884         func_add_or_update, func_create_testdir): Use it to initialize sed
41885         script variables.
41886         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41887
41888 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
41889             Bruno Haible  <bruno@clisp.org>
41890
41891         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
41892         also works after #include directives.
41893
41894 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
41895
41896         getdate.y: reject an out-of-range timezone value
41897         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
41898         the range [-24...+24].  When specified with only one or two digits,
41899         * tests/test-getdate.c: Tests for the fix.
41900         * doc/getdate.texi: Document this change.
41901
41902 2008-09-03  Bruno Haible  <bruno@clisp.org>
41903
41904         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
41905
41906 2008-09-02  Simon Josefsson  <simon@josefsson.org>
41907
41908         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
41909         <bruce.korb@gmail.com> with ideas from Ben Pfaff
41910         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
41911         Blake <ebb9@byu.net>.
41912
41913         * tests/test-bitrotate.c: Add more test vectors.
41914
41915 2008-09-02  Eric Blake  <ebb9@byu.net>
41916
41917         vasnprintf-posix: handle large precision via %.*d
41918         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
41919         when handling it ourselves.
41920         * tests/test-vasnprintf-posix.c (test_function): Add test.
41921         * tests/test-snprintf-posix.h (test_function): Likewise.
41922         * tests/test-sprintf-posix.h (test_function): Likewise.
41923         * tests/test-vasprintf-posix.c (test_function): Likewise.
41924         Reported by Alain Guibert.
41925
41926 2008-09-01  Eric Blake  <ebb9@byu.net>
41927
41928         c-stack: make configure-time check more robust
41929         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
41930         successful sigaction call.
41931         Reported by Tom G. Christensen.
41932
41933 2008-09-01  Bruno Haible  <bruno@clisp.org>
41934
41935         New module 'findprog-lgpl'.
41936         * modules/findprog-lgpl: New file.
41937         * lib/findprog-lgpl.c: New file.
41938         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
41939         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
41940         to decide whether to use strdup or xstrdup, concatenated_filename or
41941         xconcatenated_filename.
41942
41943 2008-09-01  Bruno Haible  <bruno@clisp.org>
41944
41945         Split module 'concat-filename' into 'concat-filename' (LGPL) and
41946         'xconcat-filename' (GPL).
41947         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
41948         (License): Change to LGPLv2+.
41949         * modules/xconcat-filename: New file.
41950         * lib/concat-filename.h (concatenated_filename): Change specification.
41951         (xconcatenated_filename): New declaration.
41952         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
41953         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
41954         memory situations.
41955         * lib/xconcat-filename.c: New file.
41956         * NEWS: Mention the change.
41957         * lib/findprog.c: Include concat-filename.h, not filename.h.
41958         (find_in_path): Use xconcatenated_filename instead of
41959         concatenated_filename.
41960         * lib/javacomp.c: Include concat-filename.h, not filename.h.
41961         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
41962         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
41963         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
41964         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
41965         instead of concatenated_filename.
41966         * lib/javaexec.c: Include concat-filename.h, not filename.h.
41967         (execute_java_class): Use xconcatenated_filename instead of
41968         concatenated_filename.
41969         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
41970         * modules/javacomp (Depends-on): Likewise.
41971         * modules/javaexec (Depends-on): Likewise.
41972
41973 2008-09-01  Bruno Haible  <bruno@clisp.org>
41974
41975         Split module 'filename' into 'filename' and 'concat-filename'.
41976         * modules/filename: Keep only lib/filename.h.
41977         (License): Change to LGPLv2+.
41978         * modules/concat-filename: New file, extracted from modules/filename.
41979         * lib/filename.h (concatenated_filename): Remove declaration.
41980         * lib/concat-filename.h: New file, extracted from lib/filename.h.
41981         * lib/concat-filename.c: Include concat-filename.h.
41982         * NEWS: Mention the change.
41983
41984 2008-09-01  Simon Josefsson  <simon@josefsson.org>
41985
41986         * lib/bitrotate.h (rotl8, rotr8): Add.
41987
41988         * modules/bitrotate (configure.ac): Need
41989         AC_REQUIRE([AC_C_INLINE]).
41990         (Description): Mention stdint.h.  Reported by Bruno Haible
41991         <bruno@clisp.org>.
41992
41993         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
41994         Paolo Bonzini <bonzini@gnu.org>.
41995
41996 2008-08-31  Bruno Haible  <bruno@clisp.org>
41997
41998         Assume Solaris specific bi-arch conventions on Solaris systems.
41999         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
42000         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
42001         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
42002         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
42003         like acl_libdirstem.
42004         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
42005         acl_libdirstem.
42006         * NEWS: Mention the change.
42007         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
42008
42009 2008-08-31  Jim Meyering  <meyering@redhat.com>
42010
42011         * lib/strftime.h: Add comments describing the two added arguments.
42012
42013         remove duplicate #include directives
42014         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
42015         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
42016
42017 2008-08-31  Bruno Haible  <bruno@clisp.org>
42018
42019         New module 'sigpipe-die'.
42020         * modules/sigpipe-die: New file.
42021         * lib/sigpipe-die.h: New file.
42022         * lib/sigpipe-die.c: New file.
42023         * MODULES.html.sh (Signal handling): Add sigpipe-die.
42024
42025 2008-08-31  Bruno Haible  <bruno@clisp.org>
42026
42027         Don't override previously installed signal handlers.
42028         * lib/fatal-signal.c (saved_sigactions): New variable.
42029         (uninstall_handlers): Reset the signal to the saved handler, not
42030         to SIG_DFL (except when ignored).
42031         (install_handlers): Save the previous handlers.
42032
42033 2008-08-30  Bruno Haible  <bruno@clisp.org>
42034
42035         * gnulib-tool (func_reset_sigpipe): New function.
42036         (func_get_automake_snippet, func_modules_transitive_closure,
42037         func_import): Invoke it before a join command that reads from stdin,
42038         to avoid "echo: write error: Broken pipe" error messages on stderr.
42039         Reported by Sam Steingold <sds@gnu.org>.
42040
42041 2008-08-30  Bruno Haible  <bruno@clisp.org>
42042
42043         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
42044         Code copied from m4/open.m4.
42045         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
42046         access and the filename ends in a slash. Code copied from lib/open.c.
42047         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
42048         * tests/test-fopen.c (main): Check against bug with trailing slash.
42049
42050 2008-08-29  Bruno Haible  <bruno@clisp.org>
42051
42052         Avoid some "gcc -pedantic" warnings.
42053         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
42054         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
42055         * lib/dirent.in.h: Likewise.
42056         * lib/fcntl.in.h: Likewise.
42057         * lib/float.in.h: Likewise.
42058         * lib/iconv.in.h: Likewise.
42059         * lib/inttypes.in.h: Likewise.
42060         * lib/locale.in.h: Likewise.
42061         * lib/math.in.h: Likewise.
42062         * lib/netinet_in.in.h: Likewise.
42063         * lib/search.in.h: Likewise.
42064         * lib/signal.in.h: Likewise.
42065         * lib/stdarg.in.h: Likewise.
42066         * lib/stdint.in.h: Likewise.
42067         * lib/stdio.in.h: Likewise.
42068         * lib/stdlib.in.h: Likewise.
42069         * lib/string.in.h: Likewise.
42070         * lib/strings.in.h: Likewise.
42071         * lib/sys_select.in.h: Likewise.
42072         * lib/sys_socket.in.h: Likewise.
42073         * lib/sys_stat.in.h: Likewise.
42074         * lib/sys_time.in.h: Likewise.
42075         * lib/sysexits.in.h: Likewise.
42076         * lib/time.in.h: Likewise.
42077         * lib/unistd.in.h: Likewise.
42078         * lib/wchar.in.h: Likewise.
42079         * lib/wctype.in.h: Likewise.
42080         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
42081         * modules/fchdir (Makefile.am): Likewise.
42082         * modules/fcntl (Makefile.am): Likewise.
42083         * modules/float (Makefile.am): Likewise.
42084         * modules/iconv_open (Makefile.am): Likewise.
42085         * modules/inttypes (Makefile.am): Likewise.
42086         * modules/locale (Makefile.am): Likewise.
42087         * modules/math (Makefile.am): Likewise.
42088         * modules/netinet_in (Makefile.am): Likewise.
42089         * modules/search (Makefile.am): Likewise.
42090         * modules/signal (Makefile.am): Likewise.
42091         * modules/stdarg (Makefile.am): Likewise.
42092         * modules/stdint (Makefile.am): Likewise.
42093         * modules/stdio (Makefile.am): Likewise.
42094         * modules/stdlib (Makefile.am): Likewise.
42095         * modules/string (Makefile.am): Likewise.
42096         * modules/strings (Makefile.am): Likewise.
42097         * modules/sys_select (Makefile.am): Likewise.
42098         * modules/sys_socket (Makefile.am): Likewise.
42099         * modules/sys_stat (Makefile.am): Likewise.
42100         * modules/sys_time (Makefile.am): Likewise.
42101         * modules/sysexits (Makefile.am): Likewise.
42102         * modules/time (Makefile.am): Likewise.
42103         * modules/unistd (Makefile.am): Likewise.
42104         * modules/wchar (Makefile.am): Likewise.
42105         * modules/wctype (Makefile.am): Likewise.
42106         Reported by Reuben Thomas <rrt@sc3d.org>.
42107
42108 2008-08-29  Bruno Haible  <bruno@clisp.org>
42109
42110         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
42111         any more.
42112
42113 2008-08-29  Simon Josefsson  <simon@josefsson.org>
42114
42115         * MODULES.html.sh (Misc): Add bitrotate.
42116
42117         * modules/bitrotate: New file.
42118
42119         * lib/bitrotate.h: New file.
42120
42121         * modules/bitrotate-tests: New file.
42122
42123         * tests/test-bitrotate.c: New file.
42124
42125         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
42126         on the bitrotate module.
42127
42128         * lib/arctwo.c: Use new bitrotate module.
42129
42130 2008-08-29  Jim Meyering  <meyering@redhat.com>
42131
42132         bootstrap: merge changes from coreutils
42133         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
42134         of copied files.  Remove a kludge, now that this is fixed.
42135         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
42136         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
42137         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
42138
42139 2008-08-29  Bruno Haible  <bruno@clisp.org>
42140
42141         * MODULES.html.sh: Remove --cvs-urls option.
42142
42143 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
42144
42145         maint.mk: adjust to file name change
42146         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
42147
42148 2008-08-28  Jim Meyering  <meyering@redhat.com>
42149
42150         * modules/getndelim2 (License): Relicense to LGPLv2+.
42151         Approved by Richard Stallman for the version of 1995, and by
42152         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
42153
42154 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
42155
42156         * lib/getdelim.c (flockfile, funlockfile): Make all of them
42157         dummy if one is not available.  Do not touch them if
42158         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
42159         (getc_maybe_unlocked): New.
42160         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
42161
42162 2008-08-26  Eric Blake  <ebb9@byu.net>
42163
42164         doc/INSTALL: resync from autoconf
42165         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
42166         (INSTALL_PRELUDE): Delete; this is done more efficiently by
42167         moving...
42168         * install.texi [!autoconf]: ...here.  Resync from autoconf.
42169         * INSTALL: Regenerate.
42170         * INSTALL.ISO: New file.
42171         * INSTALL.UTF-8: Likewise.
42172
42173 2008-08-26  Jim Meyering  <meyering@redhat.com>
42174
42175         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
42176         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
42177         these definitions conditional, so that they may be overridden, too.
42178
42179 2008-08-26  Bruno Haible  <bruno@clisp.org>
42180
42181         Generate INSTALL file variants with prettier quotes.
42182         * doc/Makefile (INSTALL_PRELUDE): New macro.
42183         (INSTALL): Use it.
42184         (INSTALL.ISO, INSTALL.UTF-8): New rules.
42185
42186 2008-08-26  Bruno Haible  <bruno@clisp.org>
42187
42188         Run makeinfo in an English locale.
42189         * doc/Makefile (MAKEINFO): New variable.
42190
42191 2008-08-26  Bruno Haible  <bruno@clisp.org>
42192
42193         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
42194         Suggested by Eric Blake.
42195
42196 2008-08-25  Bruno Haible  <bruno@clisp.org>
42197
42198         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
42199
42200 2008-08-25  Eric Blake  <ebb9@byu.net>
42201
42202         c-stack: test that stack overflow can be caught
42203         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
42204         that platform allows handling stack overflow; at least OS/2 EMX
42205         has sigaltstack, but crashes before transferring control to
42206         handler on stack overflow.
42207         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
42208         check for HAVE_STACK_OVERFLOW_HANDLING.
42209         Reported by Elbert Pol.
42210
42211 2008-08-25  Bruno Haible  <bruno@clisp.org>
42212
42213         * doc/posix-functions/strftime.texi: Fix description of strftime
42214         module.
42215
42216 2008-08-24  Bruno Haible  <bruno@clisp.org>
42217
42218         * tests/uniwidth/test-uc_width2.c: New file.
42219         * tests/uniwidth/test-uc_width2.sh: New file.
42220         * modules/uniwidth/width-tests (Files): Add the new files.
42221         (TESTS): Add uniwidth/test-uc_width2.sh.
42222         (TESTS_ENVIRONMENT): New variable.
42223         (check_PROGRAMS): Add test-uc_width2.
42224         (test_uc_width2_SOURCES): New variable.
42225
42226         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
42227         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
42228         not 0x00AB.
42229         Reported by Alexander V. Lukyanov <lav@netis.ru>.
42230
42231 2008-08-22  Eric Blake  <ebb9@byu.net>
42232
42233         test-lock, test-tls: mention why a test is skipped
42234         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
42235         skipped.
42236         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
42237
42238         count-one-bits: relax license
42239         * modules/count-one-bits (License): Relicense to LGPLv2+.
42240         Suggested by Ludovic Courtès, approved by Ben Pfaff.
42241
42242 2008-08-22  Andreas Schwab  <schwab@suse.de>
42243
42244         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
42245         Remove spurious space in assignment.
42246
42247 2008-08-21  Simon Josefsson  <simon@josefsson.org>
42248
42249         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
42250         Paul Eggert <eggert@CS.UCLA.EDU>.
42251
42252 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
42253
42254         * modules/gettext: Add m4/threadlib.m4.
42255
42256 2008-08-19  Eric Blake  <ebb9@byu.net>
42257
42258         test-c-stack: fix compilation failure on FreeBSD 5.0
42259         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
42260         headers before <sys/resource.h>.
42261         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
42262         the bug.
42263         Reported by Nelson H. F. Beebe.
42264
42265         strverscmp: migrate from "strverscmp.h" to <string.h>
42266         * modules/string (Makefile.am): Add new hooks.
42267         * modules/strverscmp (Files): Remove strverscmp.h.
42268         (Depends-on): Add string.
42269         (configure.ac): Add indicator.
42270         (Include): Mention new header.
42271         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
42272         defaults.
42273         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
42274         results.
42275         * lib/strverscmp.h: Delete.
42276         * lib/string.in.h (strverscmp): Provide declaration, when needed.
42277         * tests/test-strverscmp.c (includes): Adjust client.
42278         * lib/check-version.c (includes): Likewise.
42279         * NEWS: Document the change.
42280
42281         strverscmp: add unit test
42282         * modules/strverscmp-tests: New file.
42283         * tests/test-strverscmp.c: Likewise.
42284
42285 2008-08-19  Simon Josefsson  <simon@josefsson.org>
42286
42287         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
42288         regarding Windows crypto stuff, from Mono.
42289
42290 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
42291
42292         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
42293         if present, for intel RND.  Return error on failures.
42294
42295 2008-08-18  Ben Pfaff  <blp@gnu.org>
42296
42297         gitlog-to-changelog: give better diagnostic for failed pipe-open
42298         * build-aux/gitlog-to-changelog: Improve error message: suggest
42299         that the version of Git may be too old.
42300
42301 2008-08-18  Simon Josefsson  <simon@josefsson.org>
42302
42303         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
42304         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
42305
42306 2008-08-18  Bruno Haible  <bruno@clisp.org>
42307
42308         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
42309         pthread_in_use().
42310
42311 2008-08-18  Bruno Haible  <bruno@clisp.org>
42312
42313         * lib/glthread/threadlib.c: Include <pthread.h>.
42314
42315 2008-08-18  Bruno Haible  <bruno@clisp.org>
42316
42317         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
42318         glthread_recursive_lock_* macros.
42319         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
42320         Fix syntax error.
42321
42322 2008-08-18  Bruno Haible  <bruno@clisp.org>
42323
42324         * lib/glthread/thread.c: Avoid forcing a context switch right after
42325         thread creation.
42326
42327 2008-08-17  Bruno Haible  <bruno@clisp.org>
42328
42329         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
42330         * lib/glthread/thread.h: Provide Win32 specific implementation.
42331         * modules/thread (Files): Add lib/glthread/thread.c.
42332         (Depends-on): Add lock.
42333         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
42334
42335 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42336
42337         New module 'yield'.
42338         * modules/yield: New file.
42339         * lib/glthread/yield.h: New file.
42340         * m4/yield.m4: New file.
42341         * MODULES.html.sh (Multithreading): Add yield.
42342
42343 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42344
42345         New module 'thread'.
42346         * modules/thread: New file.
42347         * lib/glthread/thread.h: New file.
42348         * m4/thread.m4: New file.
42349         * MODULES.html.sh (Multithreading): Add thread.
42350
42351 2008-08-17  Bruno Haible  <bruno@clisp.org>
42352
42353         * lib/glthread/lock.h: Include <stdlib.h> always.
42354         * lib/glthread/tls.h: Likewise.
42355         * lib/glthread/cond.h: Likewise.
42356
42357 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42358
42359         New module 'cond'.
42360         * modules/cond: New file.
42361         * lib/glthread/cond.h: New file.
42362         * lib/glthread/cond.c: New file.
42363         * m4/cond.m4: New file.
42364         * MODULES.html.sh (Multithreading): Add cond.
42365
42366 2008-08-16  Eric Blake  <ebb9@byu.net>
42367
42368         c-stack: fix regression on Irix 5.3 from 2008-06-21
42369         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
42370         sa_sigaction...
42371         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
42372         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
42373         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
42374         * modules/signal (Makefile.am): Use the value.
42375         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
42376         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
42377         * doc/posix-headers/signal.texi (signal.h): Document this
42378         portability issue.
42379         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
42380         Reported by Tom G. Christensen.
42381
42382 2008-08-17  Bruno Haible  <bruno@clisp.org>
42383
42384         New module 'threadlib'.
42385         * modules/threadlib: New file.
42386         * lib/glthread/threadlib.c: New file, extracted from
42387         lib/glthread/lock.c.
42388         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
42389         functions.
42390         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
42391         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
42392         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
42393         macros.
42394         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
42395         (gl_DISABLE_THREADS): Remove macro.
42396         * modules/lock (Files): Remove build-aux/config.rpath.
42397         (Depends-on): Remove havelib. Add threadlib.
42398         (configure.ac-early): Remove section.
42399         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
42400         * modules/tls (Depends-on): Remove lock. Add threadlib.
42401         (Link): New section, copied from threadlib.
42402         * MODULES.html.sh (Multithreading): Add threadlib.
42403
42404 2008-08-14  Bruno Haible  <bruno@clisp.org>
42405
42406         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
42407         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
42408         glthread_rwlock_unlock, glthread_rwlock_destroy,
42409         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
42410         glthread_recursive_lock_destroy): Define as macros always.
42411         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
42412         glthread_lock_lock.
42413         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
42414         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
42415         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
42416         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
42417         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
42418         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
42419         (glthread_recursive_lock_lock_func): Renamed from
42420         glthread_recursive_lock_lock.
42421         (glthread_recursive_lock_unlock_func): Renamed from
42422         glthread_recursive_lock_unlock.
42423         (glthread_recursive_lock_destroy_func): Renamed from
42424         glthread_recursive_lock_destroy.
42425
42426 2008-08-14  Bruno Haible  <bruno@clisp.org>
42427
42428         * lib/glthread/lock.h: Renamed from lib/lock.h.
42429         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
42430         * lib/glthread/tls.h: Renamed from lib/tls.h.
42431         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
42432         * lib/fstrcmp.c: Update includes.
42433         * lib/strsignal.c: Update includes.
42434         * modules/lock (Files, Makefile.am): Update.
42435         (Include): Change to "glthread/lock.h".
42436         * modules/tls (Files, Makefile.am): Update.
42437         (Include): Change to "glthread/tls.h".
42438         * tests/test-lock.c: Update includes.
42439         * tests/test-tls.c: Update includes.
42440         * NEWS: Mention the renamed header files.
42441
42442 2008-08-11  Jim Meyering  <meyering@redhat.com>
42443
42444         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
42445
42446 2008-08-11  Eric Blake  <ebb9@byu.net>
42447
42448         test-c-stack: avoid C99-ism
42449         * tests/test-c-stack.c (main): Fix whitespace, move declaration
42450         before statement.
42451         Reported by Alain Guibert.
42452
42453 2008-08-10  Jim Meyering  <meyering@redhat.com>
42454
42455         ensure that return value of uinttostr et al are not ignored
42456         * lib/inttostr.h (__GNUC_PREREQ): Define.
42457         (__attribute_warn_unused_result__): Define.
42458         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
42459
42460 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
42461
42462         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
42463         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
42464
42465 2008-08-07  Jim Meyering  <meyering@redhat.com>
42466
42467         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
42468
42469         * modules/mkstemp (License): Relicense under LGPLv2+.
42470         * modules/tempname (License): Likewise.
42471
42472 2008-08-06  Bruno Haible  <bruno@clisp.org>
42473
42474         * lib/poll.c (poll): Further micro-optimization.
42475
42476 2008-08-06  Jim Meyering  <meyering@redhat.com>
42477
42478         inet_pton.c: use locale-independent tolower
42479         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
42480         (inet_pton6): Use c_tolower rather than tolower.
42481         * modules/inet_pton (Depends-on): Add c-ctype.
42482
42483 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
42484
42485         * lib/poll.c (poll): Avoid division when timeout is 0, cache
42486         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
42487
42488 2008-08-06  Jim Meyering  <meyering@redhat.com>
42489
42490         * modules/inet_pton (License): Relicense under LGPLv2+.
42491
42492 2008-08-03  Bruno Haible  <bruno@clisp.org>
42493
42494         Additional non-aborting API for lock and tls.
42495         * lib/lock.h: Include <errno.h>.
42496         (glthread_lock_init): New macro/function.
42497         (gl_lock_init): Define as wrapper around glthread_lock_init.
42498         (glthread_lock_lock): New macro/function.
42499         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
42500         (glthread_lock_unlock): New macro/function.
42501         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
42502         (glthread_lock_destroy): New macro/function.
42503         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
42504         (glthread_rwlock_init): New macro/function.
42505         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
42506         (glthread_rwlock_rdlock): New macro/function.
42507         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
42508         (glthread_rwlock_wrlock): New macro/function.
42509         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
42510         (glthread_rwlock_unlock): New macro/function.
42511         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
42512         (glthread_rwlock_destroy): New macro/function.
42513         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
42514         (glthread_recursive_lock_init): New macro/function.
42515         (gl_recursive_lock_init): Define as wrapper around
42516         glthread_recursive_lock_init.
42517         (glthread_recursive_lock_lock): New macro/function.
42518         (gl_recursive_lock_lock): Define as wrapper around
42519         glthread_recursive_lock_lock.
42520         (glthread_recursive_lock_unlock): New macro/function.
42521         (gl_recursive_lock_unlock): Define as wrapper around
42522         glthread_recursive_lock_unlock.
42523         (glthread_recursive_lock_destroy): New macro/function.
42524         (gl_recursive_lock_destroy): Define as wrapper around
42525         glthread_recursive_lock_destroy.
42526         (glthread_once): New macro/function.
42527         (gl_once): Define as wrapper around glthread_once.
42528         Update function declarations.
42529         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
42530         glthread_rwlock_init. Return error code.
42531         (glthread_rwlock_rdlock_multithreaded): Renamed from
42532         glthread_rwlock_rdlock. Return error code.
42533         (glthread_rwlock_wrlock_multithreaded): Renamed from
42534         glthread_rwlock_wrlock. Return error code.
42535         (glthread_rwlock_unlock_multithreaded): Renamed from
42536         glthread_rwlock_unlock. Return error code.
42537         (glthread_rwlock_destroy_multithreaded): Renamed from
42538         glthread_rwlock_destroy. Return error code.
42539         (glthread_recursive_lock_init_multithreaded): Renamed from
42540         glthread_recursive_lock_init. Return error code.
42541         (glthread_recursive_lock_lock_multithreaded): Renamed from
42542         glthread_recursive_lock_lock. Return error code.
42543         (glthread_recursive_lock_unlock_multithreaded): Renamed from
42544         glthread_recursive_lock_unlock. Return error code.
42545         (glthread_recursive_lock_destroy_multithreaded): Renamed from
42546         glthread_recursive_lock_destroy. Return error code.
42547         (glthread_once_call): Make static.
42548         (glthread_once_multithreaded): Renamed from glthread_once.
42549         * lib/tls.h: Include <errno.h>.
42550         (glthread_tls_key_init): New macro/function.
42551         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
42552         (glthread_tls_set): New macro/function.
42553         (gl_tls_set): Define as wrapper around glthread_tls_set.
42554         (glthread_tls_key_destroy): New macro/function.
42555         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
42556         Update function declarations.
42557         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
42558         glthread_tls_get.
42559         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
42560
42561 2008-08-04  Eric Blake  <ebb9@byu.net>
42562
42563         gnumakefile: use space, not TAB, outside of targets
42564         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
42565
42566 2008-08-02  Jim Meyering  <meyering@redhat.com>
42567
42568         getdate.y: avoid locale-dependent date parsing failure
42569         In Turkish locales, getdate would fail to recognize keywords
42570         containing a lowercase "i".  The solution is not to rely on
42571         locale-sensitive case-conversion.
42572         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
42573         (lookup_word): Use c_toupper in place of toupper.
42574         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
42575         Reported by Vefa Bicakci <bicave@superonline.com> in
42576         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
42577         * modules/getdate (Depends-on): Add c-ctype.
42578
42579 2008-08-02  Bruno Haible  <bruno@clisp.org>
42580
42581         * gnulib-tool (func_import): When updating or creating a .gitignore
42582         file, prepend each added line with a slash, and ignore leading slashes
42583         from the existing lines.
42584         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
42585
42586 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42587
42588         Portability fix for GNU make 3.79.1.
42589         * top/GNUmakefile: Avoid 'else COND', which older GNU make
42590         versions do not understand.
42591
42592 2008-08-01  Bruno Haible  <bruno@clisp.org>
42593
42594         Work around bug of HP-UX 10.20 cc with -0.0 literal.
42595         * tests/test-isnanf.h (zero): New variable.
42596         (main): Avoid literal -0.0f.
42597         * tests/test-isnand.h (zero): New variable.
42598         (main): Avoid literal -0.0.
42599         * tests/test-isnanl.h (zero): New variable.
42600         (main): Avoid literal -0.0L.
42601         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
42602         (test_float, test_double, test_long_double): Avoid literals -0.0f,
42603         -0.0, -0.0L.
42604         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
42605         (test_signbitd): Avoid literal -0.0.
42606         (test_signbitl): Avoid literal -0.0L.
42607         * tests/test-ceilf1.c (zero): New variable.
42608         (main): Avoid literal -0.0f.
42609         * tests/test-ceill.c (zero): New variable.
42610         (main): Avoid literal -0.0L.
42611         * tests/test-floorf1.c (zero): New variable.
42612         (main): Avoid literal -0.0f.
42613         * tests/test-floorl.c (zero): New variable.
42614         (main): Avoid literal -0.0L.
42615         * tests/test-roundf1.c (zero): New variable.
42616         (main): Avoid literal -0.0f.
42617         * tests/test-round1.c (zero): New variable.
42618         (main): Avoid literal -0.0.
42619         * tests/test-roundl.c (zero): New variable.
42620         (main): Avoid literal -0.0L.
42621         * tests/test-truncf1.c (zero): New variable.
42622         (main): Avoid literal -0.0f.
42623         * tests/test-trunc1.c (zero): New variable.
42624         (main): Avoid literal -0.0.
42625         * tests/test-truncl.c (zero): New variable.
42626         (main): Avoid literal -0.0L.
42627         * tests/test-frexp.c (zero): New variable.
42628         (main): Avoid literal -0.0.
42629         * tests/test-frexpl.c (zero): New variable.
42630         (main): Avoid literal -0.0L.
42631         * tests/test-ldexpl.c (zero): New variable.
42632         (main): Avoid literal -0.0L.
42633         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
42634         (zerod, zerol): New variables.
42635         (test_function): Avoid literals -0.0, -0.0L.
42636         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
42637         (zerod, zerol): New variables.
42638         (test_function): Avoid literals -0.0, -0.0L.
42639         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
42640         (zerod, zerol): New variables.
42641         (test_function): Avoid literals -0.0, -0.0L.
42642         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
42643         (zerod, zerol): New variables.
42644         (test_function): Avoid literals -0.0, -0.0L.
42645         * tests/test-strtod.c (zero): New variable.
42646         (main): Avoid literal -0.0.
42647         Reported by Jonathan C. Patschke <jp@centtech.com>.
42648
42649 2008-07-31  Jim Meyering  <meyering@redhat.com>
42650
42651         sha256.h: correct definition of SHA224_DIGEST_SIZE
42652         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
42653         Reported by Paulie Pena IV <paulie4@gmail.com>.
42654         Define as 224 / 8, rather than as a literal.
42655         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
42656         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
42657         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
42658
42659 2008-07-31  Bruno Haible  <bruno@clisp.org>
42660
42661         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
42662         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
42663         Reported by Jonathan Patschke <jp@centtech.com>.
42664
42665 2008-07-31  Bruno Haible  <bruno@clisp.org>
42666
42667         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
42668         Reported by Paolo Bonzini <bonzini@gnu.org>.
42669
42670 2008-07-30  Eric Blake  <ebb9@byu.net>
42671
42672         test-strtod: allow compilation without -lm
42673         * tests/test-strtod.c (main): Avoid link dependence on fabs.
42674         Reported by Dennis Clarke <blastwave@gmail.com>.
42675
42676 2008-07-28  Jim Meyering  <meyering@redhat.com>
42677
42678         bootstrap: work also when there are no .po files in po/
42679         * build-aux/bootstrap (update_po_files): Complete the change
42680         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
42681
42682 2008-07-27  Jim Meyering  <meyering@redhat.com>
42683
42684         * users.txt: Add zile.
42685
42686 2008-07-26  Ben Pfaff  <blp@gnu.org>
42687
42688         Add missing dependencies on new m4/exponent[fdl].m4 files.
42689         * modules/isnanf-nolibm: Add m4/exponentf.m4.
42690         * modules/isnand-nolibm: Add m4/exponentd.m4.
42691         * modules/isnanl-nolibm: Add m4/exponentl.m4.
42692         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
42693         m4/isnan[fdl].m4, because the macros actually used moved.
42694         Reported by Jim Meyering.
42695
42696 2008-07-14  Ben Pfaff  <blp@gnu.org>
42697
42698         Add isinf module.
42699         * lib/isinf.c: New file.
42700         * lib/math.in.h: Define isinf macro if we have decided to replace
42701         it.
42702         * m4/isinf.m4: New file.
42703         * m4/math_h.m4: Initialize and substitute variables for isinf
42704         module.
42705         * modules/isinf: New file.
42706         * modules/isinf-tests: New file.
42707         * modules/math: Add substitutions for new module.
42708         * tests/test-isinf.c: New file.
42709         * doc/posix-functions/isinf.texi: Mention new module.
42710         * MODULES.html.sh: Mention new module.
42711
42712 2008-07-14  Ben Pfaff  <blp@gnu.org>
42713
42714         Factor out some macros for use by additional modules.
42715         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
42716         exponentf.m4.
42717         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
42718         exponentd.m4.
42719         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
42720         file exponentl.m4.
42721         * m4/exponentf.m4: New file.
42722         * m4/exponentd.m4: New file.
42723         * m4/exponentl.m4: New file.
42724         * modules/isnanf: Use new file m4/exponentf.m4.
42725         * modules/isnand: Use new file m4/exponentd.m4.
42726         * modules/isnanl: Use new file m4/exponentl.m4.
42727
42728 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
42729
42730         mktime.c: normalize tp->tm_isdst value to -1/0/1.
42731         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
42732         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
42733         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
42734
42735         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
42736         readlink on platforms without PATH_MAX.
42737
42738 2008-07-21  Eric Blake  <ebb9@byu.net>
42739
42740         Warn, not fail, on stale version.
42741         * top/GNUmakefile (_curr-ver): Tone down previous patch.
42742
42743         Don't allow installation with stale devel version number.
42744         * top/GNUmakefile (_is-install-target): New macro.
42745         (_curr-ver): Forbid installation with stale version number.
42746
42747 2008-07-20  Bruno Haible  <bruno@clisp.org>
42748
42749         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
42750         TESTS_ENVIRONMENT.
42751         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
42752
42753 2008-07-20  Bruno Haible  <bruno@clisp.org>
42754
42755         * lib/c-stack.h (c_stack_action): Add documentation.
42756         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
42757
42758 2008-07-20  Bruno Haible  <bruno@clisp.org>
42759
42760         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
42761         * modules/readlink (License): Likewise.
42762
42763 2008-07-17  Eric Blake  <ebb9@byu.net>
42764
42765         * modules/c-stack (Link): Fix typo.
42766
42767         Make c-stack use libsigsegv, when available.
42768         * modules/c-stack (Depends-on): Add libsigsegv.
42769         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
42770         needed.
42771         * lib/c-stack.c (SIGSTKSZ): Define fallback.
42772         (segv_handler, overflow_handler, c_stack_action)
42773         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
42774         implementation when libsigsegv is available, but only when using
42775         the library is necessary.
42776         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
42777         comment, explaining why XSI check fails on Linux.
42778         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
42779         * tests/test-c-stack2.sh: Tweak skip message.
42780         * NEWS: Document new link-time requirements.
42781
42782 2008-07-16  Eric Blake  <ebb9@byu.net>
42783
42784         c-stack: Expose false positives when not using libsigsegv.
42785         * modules/c-stack-tests (Files): Expand test.
42786         * tests/test-c-stack.c (main): Add means to conditionally trigger
42787         non-overflow SIGSEGV.
42788         * tests/test-c-stack2.sh: New file.
42789
42790 2008-07-14  Bruno Haible  <bruno@clisp.org>
42791
42792         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
42793         Reported by Eric Blake.
42794
42795 2008-07-14  Sam Steingold  <sds@gnu.org>
42796             Bruno Haible  <bruno@clisp.org>
42797
42798         New module libsigsegv.
42799         * modules/libsigsegv: New file.
42800         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
42801         modifications.
42802         * MODULES.html.sh (Signal handling): New section.
42803
42804 2008-07-14  Bruno Haible  <bruno@clisp.org>
42805
42806         * modules/unictype/ctype-* (Description): Add the word "function".
42807         Improves the resulting doc in MODULES.html.
42808
42809 2008-07-12  Ben Pfaff  <blp@gnu.org>
42810
42811         Add longlong module.
42812         * modules/longlong: New file.
42813
42814 2008-07-12  Bruno Haible  <bruno@clisp.org>
42815
42816         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
42817         to empty.
42818
42819 2008-07-10  Ben Pfaff  <blp@gnu.org>
42820
42821         Add isnan module.
42822         * doc/posix-functions/isnan.texi: Mention new module.
42823         * lib/math.in.h: Define isnan macro if we have decided to replace
42824         it.
42825         * m4/isnan.m4: New file.
42826         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
42827         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
42828         also.
42829         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
42830         redundancy.
42831         * m4/math_h.m4: Initialize and substitute variables for isnan
42832         module.
42833         * modules/isnan: New file.
42834         * modules/isnan-tests: New file.
42835         * modules/math: Add substitutions for new module.
42836         * tests/test-isnan.c: New file.
42837         * MODULES.html.sh: Mention new module.
42838
42839 2008-07-10  Ben Pfaff  <blp@gnu.org>
42840
42841         Add isnanf module.
42842         * lib/isnanf.m4: New file.
42843         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
42844         (gl_HAVE_ISNANF_IN_LIBM): New macro.
42845         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
42846         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
42847         * modules/isnanf: New file.
42848         * modules/isnanf-tests: New file.
42849         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
42850         files.
42851         * tests/test-isnanf-nolibm.c: factored most of its contents into
42852         new file tests/test-isnanf.h.
42853         * tests/test-isnanf.h: New file.
42854         * tests/test-isnanf.c: New file.
42855         * MODULES.html.sh: Mention new module.
42856         * doc/glibc-functions/isnanf.texi: Mention new module.
42857
42858 2008-07-10  Ben Pfaff  <blp@gnu.org>
42859
42860         Add isnand module.
42861         * lib/isnand.h: New file.
42862         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
42863         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
42864         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
42865         functionality also.
42866         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
42867         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
42868         (gl_HAVE_ISNAND_IN_LIBM): New macro.
42869         * modules/isnand: New file.
42870         * modules/isnand-tests: New file.
42871         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
42872         files.
42873         * tests/test-isnand-nolibm.c: factored most of its contents into
42874         new file tests/test-isnand.h.
42875         * tests/test-isnand.h: New file.
42876         * tests/test-isnand.c: New file.
42877         * MODULES.html.sh: Mention new module.
42878
42879 2008-07-10  Ben Pfaff  <blp@gnu.org>
42880
42881         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
42882         * lib/isnand.h: Rename lib/isnand-nolibm.h.
42883         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
42884         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
42885         * modules/isnanf-nolibm: Update references to renamed files.
42886         * modules/isnand-nolibm: Likewise.
42887         * modules/isnanf-nolibm-tests: Likewise.
42888         * modules/isnand-nolibm-tests: Likewise.
42889         * lib/frexp.c: Likewise.
42890         * lib/isfinite.c: Likewise.
42891         * lib/signbitd.c: Likewise.
42892         * lib/signbitf.c: Likewise.
42893         * lib/vasnprintf.c: Likewise.
42894         * tests/test-ceilf1.c: Likewise.
42895         * tests/test-ceilf2.c: Likewise.
42896         * tests/test-floorf1.c: Likewise.
42897         * tests/test-floorf2.c: Likewise.
42898         * tests/test-frexp.c: Likewise.
42899         * tests/test-round1.c: Likewise.
42900         * tests/test-round2.c: Likewise.
42901         * tests/test-roundf1.c: Likewise.
42902         * tests/test-strtod.c: Likewise.
42903         * tests/test-trunc1.c: Likewise.
42904         * tests/test-trunc2.c: Likewise.
42905         * tests/test-truncf1.c: Likewise.
42906         * tests/test-truncf2.c: Likewise.
42907         * NEWS: Mention the renamed header files.
42908
42909 2008-07-11  Jim Meyering  <meyering@redhat.com>
42910
42911         vc-list-files: make the last-resort awk code more portable
42912         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
42913         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
42914         does not support it.
42915
42916 2008-07-10  Eric Blake  <ebb9@byu.net>
42917
42918         Work with tar's bootstrap.
42919         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
42920         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
42921         an m4 comment.
42922
42923 2008-07-09  Jim Meyering  <meyering@redhat.com>
42924
42925         posix-shell.m4: fix typo that made this test malfunction
42926         * m4/posix-shell.m4: Remove capitalization in variable name.
42927
42928 2008-07-08  Bruno Haible  <bruno@clisp.org>
42929
42930         * m4/onceonly.m4: Update comments.
42931         Reported by Ben Pfaff <blp@cs.stanford.edu>.
42932
42933 2008-07-04  Jim Meyering  <meyering@redhat.com>
42934
42935         * users.txt: Add vc-dwim.
42936         (bison, coreutils): Use the gitweb URL.
42937
42938 2008-07-03  Jim Meyering  <meyering@redhat.com>
42939
42940         * users.txt: Add libffcall.  From Sam Steingold.
42941
42942 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
42943
42944         getdate.y: do not ignore TZ with relative day, month or year offset
42945         * lib/getdate.y (get_date): Move the tz-handling block to follow the
42946         relative-date-handling, since otherwise, the latter would clobber the
42947         sole output (an updated Start value) of the tz-handling block.
42948         * tests/test-getdate.c: Tests for the fix
42949
42950 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42951
42952         Recognize 'foo_LIBRARIES += libgnu.a'.
42953         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
42954         makefile snippet has already specified an installation location,
42955         also using '+='.
42956
42957 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
42958
42959         getdate.y: factor out common actions
42960         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
42961         Use them in place of open-coded actions.
42962
42963 2008-07-01  Simon Josefsson  <simon@josefsson.org>
42964
42965         Add self-test for getdate module.
42966         * modules/getdate-tests: New file.
42967         * tests/test-getdate.c: New file.
42968
42969 2008-06-29  Bruno Haible  <bruno@clisp.org>
42970
42971         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
42972         .gitignore.
42973         Reported by Sylvain Beucler <beuc@beuc.net>.
42974
42975 2008-06-29  Bruno Haible  <bruno@clisp.org>
42976
42977         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
42978         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
42979
42980 2008-06-29  Bruno Haible  <bruno@clisp.org>
42981
42982         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
42983         EXTRA_DIST.
42984         Reported by Sylvain Beucler <beuc@beuc.net>.
42985
42986 2008-06-26  Jim Meyering  <meyering@redhat.com>
42987
42988         make several modules depend on the "open" module
42989         This provides slightly increased consistency when opening-for-write
42990         the name of a non-directory spelled with a trailing slash.
42991         * modules/chdir-safer: Likewise.
42992         * modules/chown: Likewise.
42993         * modules/clean-temp: Likewise.
42994         * modules/copy-file: Likewise.
42995         * modules/fchdir: Likewise.
42996         * modules/fcntl-safer: Likewise.
42997         * modules/pipe: Likewise.
42998         * modules/utime: Likewise.
42999         Prompted by Eric Blake and Bruno Haible.
43000
43001 2008-06-24  Andreas Schwab  <schwab@suse.de>
43002
43003         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
43004         literals can be used as initializers for global variables.
43005
43006 2008-06-23  Eric Blake  <ebb9@byu.net>
43007
43008         Make gnulib-cache.m4 easier to diff.
43009         * gnulib-tool (func_import): Allow newlines when reading cached
43010         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
43011
43012 2008-06-23  Bruno Haible  <bruno@clisp.org>
43013
43014         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
43015         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
43016         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
43017         m4/signalblocking.m4.
43018         (gl_PREREQ_SIGACTION): Don't invoke it.
43019         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
43020         gl_PREREQ_SIG_HANDLER_H.
43021         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
43022         Don't check for sigaction here.
43023
43024 2008-06-23  Bruno Haible  <bruno@clisp.org>
43025
43026         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
43027         (install_handlers): Don't set the SA_RESETHAND flag.
43028
43029 2008-06-23  Bruno Haible  <bruno@clisp.org>
43030
43031         * m4/sigaction.m4: Comment fixes.
43032         * lib/signal.in.h: Likewise.
43033
43034 2008-06-23  Eric Blake  <ebb9@byu.net>
43035
43036         Fix typo.
43037         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
43038
43039         Avoid SA_ namespace.
43040         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
43041         Reported by Ralf Wildenhues.
43042
43043         Avoid test failure due to SA_RESTORER.
43044         * tests/test-sigaction.c (SA_MASK): New macro.
43045         (main): Avoid failing due to extension flags being set.
43046         Reported by Jim Meyering.
43047
43048         Revert use of sig-handler.h in sigprocmask.c.
43049         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
43050         it requires the existence of struct sigaction.
43051         * lib/sigprocmask.c (handler_t): Restore typedef.
43052         (rpl_signal, old_handlers): Use local type.
43053
43054 2008-06-22  Bruno Haible  <bruno@clisp.org>
43055
43056         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
43057         conditionally.
43058         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43059
43060 2008-06-22  Bruno Haible  <bruno@clisp.org>
43061
43062         * doc/posix-functions/siginterrupt.texi: Move note.
43063
43064         * lib/signal.in.h (SA_RESTART): New macro.
43065         * lib/sigaction.c: Update comment.
43066
43067         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
43068
43069         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
43070         (gl_PREREQ_SIGPROCMASK): Invoke it.
43071         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
43072
43073         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
43074
43075         * lib/sigprocmask.c: Update a comment.
43076
43077 2008-06-21  Eric Blake  <ebb9@byu.net>
43078
43079         Use sigaction module rather than signal().
43080         * modules/c-stack (Depends-on): Add sigaction.
43081         * modules/fatal-signal (Depends-on): Likewise.
43082         * modules/nanosleep (Depends-on): Likewise.
43083         * modules/sigprocmask (Files): Add sig-handler.h.
43084         * modules/sigaction (Files): Likewise.
43085         * lib/sig-handler.h (get_handler): New file, suggested by Paul
43086         Eggert.
43087         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
43088         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
43089         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
43090         (init_fatal_signals): Likewise.
43091         * lib/nanosleep.c (rpl_nanosleep): Likewise.
43092         (siginterrupt): Delete fallback.
43093         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
43094         instead.
43095         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
43096         siginterrupt.
43097
43098         New module sigaction, for mingw.
43099         * modules/sigaction: New module...
43100         * modules/sigaction-tests: ...and its test.
43101         * m4/sigaction.m4: New file.
43102         * lib/sigaction.c: Likewise.
43103         * tests/test-sigaction.c: Likewise.
43104         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
43105         * modules/signal (Makefile.am): Likewise.
43106         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
43107         needed.
43108         * doc/posix-headers/signal.texi (signal.h): Mention provided
43109         types.
43110         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
43111         that sigaction is preferable.
43112         * doc/posix-functions/sigaction.texi (sigaction): Mention new
43113         module.
43114         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
43115         sigaction.
43116
43117         Improve robustness of sigprocmask by overriding signal.
43118         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
43119         is in use.
43120         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
43121         (SIGKILL, SIGSTOP): Provide fallbacks.
43122         (rpl_signal): Implement.
43123         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
43124         signal can be called inside handlers.
43125
43126         Fix nanosleep module on mingw.
43127         * modules/nanosleep (Depends-on): Add sys_select.
43128         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
43129
43130         Fix licensing of sigprocmask.
43131         * modules/raise (License): Relicense as LGPL.
43132
43133 2008-06-21  Bruno Haible  <bruno@clisp.org>
43134
43135         * lib/propername.c (proper_name_utf8): Don't use the transliterated
43136         result if it contains question marks.
43137         Reported by Michael Geng <linux@michaelgeng.de>.
43138
43139 2008-06-19  Bruno Haible  <bruno@clisp.org>
43140
43141         Fix CVS-ism.
43142         * doc/gnulib.texi: Include updated-stamp.texi.
43143         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
43144         (updated-stamp.texi): New rule.
43145         (gnulib.info): Depend on it.
43146         * doc/.gitignore: Add updated-stamp.texi.
43147         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
43148
43149 2008-06-19  Bruno Haible  <bruno@clisp.org>
43150
43151         * doc/Makefile (gnulib.info): Update and simplify dependencies.
43152         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
43153
43154 2008-06-19  Eric Blake  <ebb9@byu.net>
43155
43156         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
43157         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
43158         Reported by Stepan Kasal.
43159
43160 2008-06-18  Bruno Haible  <bruno@clisp.org>
43161
43162         * lib/fatal-signal.c (init_fatal_signals): Add comment.
43163         Reported by Eric Blake.
43164
43165 2008-06-18  Eric Blake  <ebb9@byu.net>
43166
43167         Work around cygwin 1.5.25 strsignal bug.
43168         * tests/test-strsignal.c: Allow for const char *.
43169         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
43170
43171 2008-06-18  Simon Josefsson  <simon@josefsson.org>
43172
43173         * users.txt: Update URL to article and add author/date
43174         information.
43175
43176 2008-06-17  Bruno Haible  <bruno@clisp.org>
43177
43178         New macro gl_DISABLE_THREADS.
43179         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
43180         if the user did not pass --enable-threads or --disable-threads option.
43181         (gl_DISABLE_THREADS): New macro.
43182         Reported by Eric Blake <ebb9@byu.net>.
43183
43184 2008-06-17  Bruno Haible  <bruno@clisp.org>
43185
43186         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
43187         when the macro ignores it.
43188         Based on a patch by Eric Blake <ebb9@byu.net>.
43189
43190 2008-06-17  Bruno Haible  <bruno@clisp.org>
43191
43192         * modules/tls (License): Change to LGPLv2+.
43193         Reported by Eric Blake.
43194
43195 2008-06-17  Eric Blake  <ebb9@byu.net>
43196
43197         Simplify c-stack prerequisites.
43198         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
43199         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
43200         no longer requires <ucontext.h> to exist.  Optimize setrlimit
43201         check.
43202         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
43203         <sys/resource.h>.
43204
43205         Move c-stack test into testsuite.
43206         * modules/c-stack-tests: New file.
43207         * lib/c-stack.c [DEBUG]: Move test program...
43208         * tests/test-c-stack.c: ...into this new file.  Skip rather than
43209         fail test if sigaltstack is lacking.
43210         * tests/test-c-stack.sh: New driver file.
43211
43212 2008-06-16  Eric Blake  <ebb9@byu.net>
43213
43214         Use raise module consistently.
43215         * modules/fatal-signal (Depends-on): Add raise.
43216         * modules/sigprocmask (Depends-on): Likewise.
43217         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
43218         * lib/sigprocmask.c (sigprocmask): Likewise.
43219         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
43220         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
43221
43222         Fix compliance bug in sigpending.
43223         * lib/sigprocmask.c (sigpending): Return pending array via
43224         parameter, not return value.
43225
43226 2008-06-14  Eric Blake  <ebb9@byu.net>
43227
43228         Improve obstack-printf test code.
43229         * tests/test-obstack-printf.c (test_function): Fix comment, and
43230         simplify usage of obstack_* in macros.  Add a test for coverage.
43231         Reported by Bruno Haible.
43232
43233 2008-06-14  Bruno Haible  <bruno@clisp.org>
43234
43235         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
43236         array size as a constant, not as a const variable.
43237         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
43238         AC_USE_SYSTEM_EXTENSIONS.
43239         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
43240         Test whether the obstack_printf function actually exists.
43241         * modules/obstack-printf (Depends-on): Add extensions.
43242         (Include): Remove obstack.h.
43243         * modules/obstack-printf-posix (Depends-on): Add extensions.
43244         (Include): Remove obstack.h.
43245
43246 2008-06-13  Eric Blake  <ebb9@byu.net>
43247
43248         Add obstack-printf and obstack-printf-posix modules.
43249         * modules/obstack-printf: New file.
43250         * modules/obstack-printf-posix: Likewise.
43251         * MODULES.html.sh (Misc): Mention them.
43252         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
43253         Likewise.
43254         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
43255         Likewise.
43256         * modules/stdio (Makefile.am): Accomodate new modules.
43257         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43258         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
43259         Declare.
43260         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
43261         functions.
43262         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
43263         (gl_REPLACE_OBSTACK_PRINTF): New macros
43264         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
43265         * tests/test-obstack-printf.c: New file.
43266         * modules/obstack-printf-tests: Likewise.
43267         * modules/obstack-printf-posix-tests: Likewise.
43268
43269 2008-06-11  Bruno Haible  <bruno@clisp.org>
43270
43271         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
43272         * lib/open.c: Include errno.h.
43273         (open): Fail when attempting to write to a file that has a trailing
43274         slash.
43275         * tests/test-open.c (main): Test against trailing slash bug.
43276         * doc/posix-functions/open.texi: Mention the trailing slash bug.
43277
43278 2008-06-10  Bruno Haible  <bruno@clisp.org>
43279
43280         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
43281         for $? to work inside the trap command, with various /bin/sh-s.
43282         * tests/test-vc-list-files-cvs.sh: Likewise.
43283
43284 2008-06-10  Bruno Haible  <bruno@clisp.org>
43285
43286         * lib/acl-internal.h: Don't include gettext.h here.
43287         * lib/set-mode-acl.c: Include gettext.h here.
43288         * lib/copy-acl.c: Likewise.
43289
43290 2008-06-10  Bruno Haible  <bruno@clisp.org>
43291
43292         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
43293         * lib/wait-process.c (wait_subprocess): Likewise.
43294         * lib/execute.h (execute): Add termsigp argument.
43295         * lib/execute.c (execute): Likewise.
43296         * lib/csharpcomp.c (compile_csharp_using_pnet,
43297         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
43298         * lib/csharpexec.c (execute_csharp_using_pnet,
43299         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
43300         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
43301         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
43302         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
43303         is_jikes_present): Update.
43304         * lib/javaexec.c (execute_java_class): Update.
43305         * lib/javaversion.c (execute_and_read_line): Update.
43306         * NEWS: Document the changes.
43307         Reported by Eric Blake.
43308
43309 2008-06-10  Eric Blake  <ebb9@byu.net>
43310
43311         Add missing include.
43312         * tests/test-strstr.c (includes): Add <signal.h>.
43313         * tests/test-strcasestr.c (includes): Likewise.
43314         * tests/test-memmem.c (includes): Likewise.
43315
43316 2008-06-10  Bruno Haible  <bruno@clisp.org>
43317
43318         * lib/wait-process.c (wait_subprocess): Add an assertion.
43319
43320 2008-06-10  Bruno Haible  <bruno@clisp.org>
43321
43322         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
43323
43324 2008-06-10  Bruno Haible  <bruno@clisp.org>
43325
43326         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
43327         using alarm().
43328         * tests/test-strcasestr.c (main): Likewise.
43329         * tests/test-strstr.c (main): Likewise.
43330
43331 2008-06-09  Bruno Haible  <bruno@clisp.org>
43332
43333         Work around the Solaris 10 ACE ACLs ABI change.
43334         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
43335         declare if ACL_NO_TRIVIAL is present.
43336         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
43337         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
43338         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
43339         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
43340         define if ACL_NO_TRIVIAL is present.
43341         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
43342         and use the current ABI.
43343         (file_has_acl): Use same #if condition as elsewhere.
43344         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
43345         in use, and use the current ABI.
43346         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
43347         Reported by Jim Meyering.
43348
43349 2008-06-09  Eric Blake  <ebb9@byu.net>
43350
43351         Work around environments that (stupidly) ignore SIGALRM.
43352         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
43353         before using alarm().
43354         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
43355         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
43356         Reported by Ian Beckwith <ianb@erislabs.net>.
43357
43358         Produce autobuild blurb earlier in log.
43359         * modules/autobuild (configure.ac-early): Move AB_INIT here.
43360
43361 2008-06-09  Jim Meyering  <meyering@redhat.com>
43362         and Ondřej Vašík  <ovasik@redhat.com>
43363
43364         utimens.c: correct kernel bug work-around
43365         Ondřej Vašík found that the invalid return value of 280 indicates
43366         failure, not success, and the kernel bug we're trying to work
43367         around affects not just the utimensat call, but also the fallback
43368         futimens call.
43369         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
43370         not success.
43371         [HAVE_FUTIMENS]: Use the same work-around, here.
43372
43373 2008-06-09  Jim Meyering  <meyering@redhat.com>
43374
43375         add more guards around definition of ACE_-related code
43376         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
43377         ALLOW and ACE_OWNER are also defined.
43378
43379 2008-06-08  Bruno Haible  <bruno@clisp.org>
43380
43381         * lib/acl-internal.h: Add me as co-author.
43382         * lib/file-has-acl.c: Likewise.
43383         * lib/set-mode-acl.c: Likewise.
43384         * lib/copy-acl.c: Likewise.
43385
43386 2008-06-08  Bruno Haible  <bruno@clisp.org>
43387
43388         Add support for AIX ACLs.
43389         * lib/acl-internal.h (acl_nontrivial): New declaration.
43390         * lib/file-has-acl.c (acl_nontrivial): New function.
43391         (file_has_acl): Add implementation using AIX 4 ACL API.
43392         * lib/set-mode-acl.c (qset_acl): Likewise.
43393         * lib/copy-acl.c (qcopy_acl): Likewise.
43394
43395 2008-06-08  Bruno Haible  <bruno@clisp.org>
43396
43397         Add support for HP-UX ACLs.
43398         * lib/acl-internal.h (acl_nontrivial): New declaration.
43399         * lib/file-has-acl.c (acl_nontrivial): New function.
43400         (file_has_acl): Add implementation using HP-UX 11 ACL API.
43401         * lib/set-mode-acl.c (qset_acl): Likewise.
43402         * lib/copy-acl.c (qcopy_acl): Likewise.
43403
43404 2008-06-08  Bruno Haible  <bruno@clisp.org>
43405
43406         Add support for Cygwin ACLs.
43407         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
43408         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
43409         the chmod_or_fchmod call.
43410         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
43411
43412 2008-06-08  Bruno Haible  <bruno@clisp.org>
43413
43414         Fix bug with setuid modes in Solaris 10+ code.
43415         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
43416         succeeded, when the mode contains some special bits.
43417
43418 2008-06-08  Bruno Haible  <bruno@clisp.org>
43419
43420         Add support for Solaris 7..10 ACLs.
43421         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
43422         declarations.
43423         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
43424         functions.
43425         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
43426         * lib/set-mode-acl.c (qset_acl): Likewise.
43427         * lib/copy-acl.c (qcopy_acl): Likewise.
43428
43429 2008-06-08  Bruno Haible  <bruno@clisp.org>
43430
43431         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
43432         declaration.
43433         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
43434         (acl_access_nontrivial): Remove MacOS X case.
43435         (file_has_acl): Use acl_extended_nontrivial.
43436         * lib/copy-acl.c (qcopy_acl): Likewise.
43437
43438 2008-06-08  Bruno Haible  <bruno@clisp.org>
43439
43440         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
43441
43442 2008-06-08  Jim Meyering  <meyering@redhat.com>
43443
43444         * modules/acl (Maintainer): Add Bruno Haible.
43445
43446 2008-06-07  Bruno Haible  <bruno@clisp.org>
43447
43448         Improve support for Tru64 ACLs.
43449         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
43450         ACL on OSF/1.
43451
43452 2008-06-07  Bruno Haible  <bruno@clisp.org>
43453
43454         Add support for MacOS X ACLs.
43455         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
43456         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
43457         * lib/set-mode-acl.c (qset_acl): Likewise.
43458         * lib/copy-acl.c (qcopy_acl): Likewise.
43459
43460 2008-06-07  Bruno Haible  <bruno@clisp.org>
43461
43462         Fix memory leak introduced on 2008-05-22.
43463         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
43464         use.
43465
43466 2008-06-07  Bruno Haible  <bruno@clisp.org>
43467
43468         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
43469         to construct an empty ACL.
43470
43471 2008-06-07  Bruno Haible  <bruno@clisp.org>
43472
43473         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
43474         precisely.
43475         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
43476
43477 2008-06-07  Bruno Haible  <bruno@clisp.org>
43478
43479         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
43480         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
43481
43482 2008-06-07  Bruno Haible  <bruno@clisp.org>
43483
43484         * doc/posix-functions/_setjmp.texi: Explain the use of this function
43485         regardless of POSIX.
43486         * doc/posix-functions/_longjmp.texi: Likewise.
43487         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
43488         SystemV platform in this case.
43489
43490 2008-06-06  Eric Blake  <ebb9@byu.net>
43491
43492         Document abort() bugs.
43493         * doc/posix-functions/abort.texi (abort): Mention anomalies.
43494
43495         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
43496         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
43497         sigsetjmp.
43498         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
43499         siglongjmp, but only as a macro.
43500         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
43501         is obsolete.
43502         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
43503
43504         Tweak documentation to cover cygwin argz bugs.
43505         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
43506         argz bug fix; no code change needed since no cygwin releases
43507         occurred between the last fix and the bug being tested.
43508         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
43509         module and recently fixed cygwin bugs.
43510         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
43511         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
43512         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
43513         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
43514         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
43515         Likewise.
43516         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
43517         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
43518         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
43519         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
43520         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
43521         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
43522         Likewise.
43523
43524         Avoid gcc warning on cygwin.
43525         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
43526         !ACL_NO_TRIVIAL]: Avoid unused variable.
43527
43528 2008-06-05  Eric Blake  <ebb9@byu.net>
43529
43530         Be tolerant of UNKNOWN version in gnulib-tool test dir.
43531         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
43532         git-version-gen fails to come up with a version.
43533         Reported by Simon Josefsson.
43534
43535 2008-06-05  Jim Meyering  <meyering@redhat.com>
43536             Paul Eggert  <eggert@cs.ucla.edu>
43537
43538         utimens.c: work around a probable Linux kernel bug
43539         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
43540         appears to be a kernel bug that causes utimensat to return 280
43541         instead of 0, indicating success.
43542
43543 2008-06-04  Bruno Haible  <bruno@clisp.org>
43544
43545         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
43546         2008-06-01 commit.
43547
43548 2008-06-04  Bruno Haible  <bruno@clisp.org>
43549
43550         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
43551         * lib/file-has-acl.c (acl_access_nontrivial): New function.
43552         (file_has_acl): Use it. Save errno afterwards.
43553         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
43554
43555 2008-06-03  Bruno Haible  <bruno@clisp.org>
43556
43557         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
43558         draft code. Simplify #ifs.
43559         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
43560         Put Solaris code after POSIX-draft code. Fix comments regarding
43561         Solaris 10, HP-UX. Mention Cygwin.
43562         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
43563
43564 2008-06-03  Eric Blake  <ebb9@byu.net>
43565
43566         Provide fallback for older kernels.
43567         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
43568         Provide runtime fallback if kernel lacks support.
43569         Reported by Mike Frysinger.
43570
43571 2008-06-02  Bruno Haible  <bruno@clisp.org>
43572
43573         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
43574         it exists.
43575
43576 2008-06-02  Bruno Haible  <bruno@clisp.org>
43577
43578         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
43579         * lib/copy-acl.c (qcopy_acl): Update comment.
43580
43581 2008-06-02  Bruno Haible  <bruno@clisp.org>
43582
43583         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
43584         like ACL APIs.
43585
43586 2008-06-02  Bruno Haible  <bruno@clisp.org>
43587
43588         * tests/test-file-has-acl.sh: Use different code for Cygwin.
43589         * tests/test-set-mode-acl.sh: Likewise.
43590         * tests/test-copy-acl.sh: Likewise.
43591         * tests/test-copy-file.sh: Likewise.
43592
43593 2008-06-02  Bruno Haible  <bruno@clisp.org>
43594
43595         * tests/test-file-has-acl.sh: Remove unused code.
43596
43597 2008-06-01  Bruno Haible  <bruno@clisp.org>
43598
43599         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
43600         (copy_acl): Just a wrapper around qcopy_acl that emits the error
43601         messages.
43602         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
43603
43604 2008-06-01  Bruno Haible  <bruno@clisp.org>
43605
43606         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
43607         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
43608         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
43609         APIs.
43610         * modules/acl-tests (configure.ac): Remove tests now contained in
43611         m4/acl.m4.
43612
43613 2008-06-02  Jim Meyering  <meyering@redhat.com>
43614
43615         announce-gen: use a better key-server host name
43616         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
43617         it may be more consistently reliable.  Suggested by Werner Koch
43618         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
43619
43620 2008-06-01  Bruno Haible  <bruno@clisp.org>
43621
43622         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
43623         Reported by Voroskoi Andras <voroskoi@gmail.com>.
43624
43625 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
43626
43627         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
43628
43629 2008-06-01  Bruno Haible  <bruno@clisp.org>
43630
43631         New ACL tests.
43632         * tests/test-file-has-acl.sh: New file.
43633         * tests/test-file-has-acl.c: New file.
43634         * tests/test-set-mode-acl.sh: New file.
43635         * tests/test-set-mode-acl.c: New file.
43636         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
43637         * tests/test-copy-acl.c: New file.
43638         * modules/acl-tests: New file, based on modules/copy-file-tests.
43639         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
43640         (Depends-on): Add acl-tests.
43641         (configure.ac): Remove checks.
43642         (Makefile.am): Don't create test-sameacls program here any more.
43643
43644 2008-06-01  Bruno Haible  <bruno@clisp.org>
43645
43646         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
43647         * tests/test-sameacls.c: Include progname.h.
43648         (main): Invoke set_program_name. Portability fixes for MacOS X,
43649         Solaris, HP-UX.
43650
43651 2008-06-01  Bruno Haible  <bruno@clisp.org>
43652
43653         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
43654         function.
43655         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
43656
43657 2008-06-01  Bruno Haible  <bruno@clisp.org>
43658
43659         * modules/rpmatch (Depends-on): Add strdup.
43660
43661 2008-06-01  Bruno Haible  <bruno@clisp.org>
43662
43663         * lib/pipe.c: Include unistd-safer.h.
43664         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
43665         * modules/pipe (Depends-on): Add unistd-safer.
43666
43667 2008-05-30  Simon Josefsson  <simon@josefsson.org>
43668
43669         * modules/autobuild (configure.ac): Call AB_INIT.
43670
43671 2008-05-30  Simon Josefsson  <simon@josefsson.org>
43672
43673         * tests/test-getaddrinfo.c: Don't print debug messages by default.
43674         Suggested by Bruno Haible <bruno@clisp.org>.
43675
43676 2008-05-30  Simon Josefsson  <simon@josefsson.org>
43677
43678         * tests/test-base64.c: Cast size_t to unsigned long when invoking
43679         printf.  Use %lu instead of %d.  Reported by Bruno Haible
43680         <bruno@clisp.org>.
43681
43682 2008-05-29  Eric Blake  <ebb9@byu.net>
43683
43684         Prefer new POSIX 200x interfaces over futimesat.
43685         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
43686         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
43687         when available.
43688         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
43689
43690 2008-05-28  Bruno Haible  <bruno@clisp.org>
43691
43692         * modules/stpcpy (License): Change to LGPLv2+.
43693         Requested by David Lutterkort <dlutter@redhat.com>.
43694
43695 2008-05-27  Bruno Haible  <bruno@clisp.org>
43696
43697         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
43698         current mingw.
43699         Reported by Jose E. Marchesi <jemarch@gnu.org>.
43700
43701 2008-05-27  Bruno Haible  <bruno@clisp.org>
43702
43703         * modules/iconv_open (Link): New section, from module 'iconv'.
43704         * modules/striconv (Link): Likewise.
43705         * modules/striconveh (Link): Likewise.
43706         * modules/xstriconv (Link): Likewise.
43707         * modules/unicodeio (Link): Likewise.
43708         * modules/propername (Link): Likewise.
43709         Reported by Jim Meyering.
43710
43711 2008-05-26  Jim Meyering  <meyering@redhat.com>
43712
43713         sha256: do not artificially restrict buffer length to be < 2^32
43714         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
43715         uint32_t to size_t.
43716         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
43717         to match.
43718
43719         avoid unaligned access errors, e.g., on sparc
43720         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
43721         direct access through a possibly-unaligned uint64* pointer.
43722         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
43723         direct access through a possibly-unaligned uint32* pointer.
43724         Prompted by this patch from Tom "spot" Callaway:
43725         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
43726
43727         sha512.c: fix typo in comment
43728         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
43729
43730 2008-05-25  Bruno Haible  <bruno@clisp.org>
43731
43732         * lib/set-mode-acl.c: Renamed from lib/acl.c.
43733         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
43734         (Makefile.am): Update lib_SOURCES.
43735
43736 2008-05-25  Bruno Haible  <bruno@clisp.org>
43737
43738         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
43739
43740 2008-05-25  Jim Meyering  <meyering@redhat.com>
43741
43742         useless-if-before-free: freed expr may have white-space differences
43743         * build-aux/useless-if-before-free: Recognize cases in which the
43744         freed expression differs from the tested one in embedded white
43745         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
43746         $1 was used, so we can't make any regexp shy.  Improved tests now
43747         detect this.
43748
43749         useless-if-before-free: accept white space in the expression.
43750         * build-aux/useless-if-before-free: For now, any white space
43751         in the expression must be identical in the free argument.
43752
43753         useless-if-before-free: efficiency tweak
43754         * build-aux/useless-if-before-free: Make the expression-matching
43755         regexp "shy".
43756         Make the *outer* regexp shy, not the expr-matching one.
43757
43758         update code-in-comment to accept cast of free arg
43759         * build-aux/useless-if-before-free: Update regexp.
43760
43761 2008-05-25  Bruno Haible  <bruno@clisp.org>
43762
43763         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
43764         * modules/copy-file-tests (Files, Makefile.am): Update.
43765         * tests/test-copy-file.c (func_test_copy): Update.
43766
43767 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
43768
43769         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
43770
43771 2008-05-23  Bruno Haible  <bruno@clisp.org>
43772
43773         Improve support for ACLs on OSF/1.
43774         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
43775         Remove fallback for unknown flavors of ACLs.
43776
43777 2008-05-22  Bruno Haible  <bruno@clisp.org>
43778
43779         Add support for ACLs on OSF/1.
43780         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
43781         replacements.
43782         (acl_free_text): New macro fallback.
43783         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
43784         acl_free.
43785         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
43786         acl_free_text function. Require AC_C_INLINE.
43787
43788 2008-05-22  Bruno Haible  <bruno@clisp.org>
43789
43790         Make copy_acl work on MacOS X 10.5.
43791         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
43792         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
43793         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
43794         If MODE_INSIDE_ACL, don't assume that every system has the same text
43795         representation for ACLs as FreeBSD.
43796         * lib/copy-acl.c (copy_acl): Add support for platforms with
43797         !MODE_INSIDE_ACL.
43798         * lib/file-has-acl.c (file_has_acl): Likewise.
43799         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
43800         FreeBSD, MacOS X, or IRIX, respectively.
43801
43802 2008-05-22  Bruno Haible  <bruno@clisp.org>
43803
43804         * lib/acl.h: Don't include <sys/acl.h>.
43805         (GETACLCNT): Move fallback to lib/acl-internal.h.
43806         * lib/acl-internal.h: Include <sys/acl.h> here.
43807         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
43808
43809 2008-05-22  Bruno Haible  <bruno@clisp.org>
43810
43811         Split off copy_acl function to separate file.
43812         * lib/copy-acl.c: New file, extracted from lib/acl.c.
43813         * lib/acl.c (copy_acl): Moved function to separate file.
43814         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
43815         * modules/acl (Files): Add lib/copy-acl.c.
43816         (Makefiles.am): Augment lib_SOURCES.
43817
43818 2008-05-22  Bruno Haible  <bruno@clisp.org>
43819
43820         * modules/copy-file-tests: New file.
43821         * tests/test-copy-file.sh: New file.
43822         * tests/test-copy-file.c: New file.
43823         * tests/test-copy-file-sameacls.c: New file.
43824
43825 2008-05-22  Eric Blake  <ebb9@byu.net>
43826
43827         Avoid gcc warning.
43828         * tests/test-memcmp.c (main): Pass NULL indirectly.
43829
43830 2008-05-21  Bruno Haible  <bruno@clisp.org>
43831
43832         Add reference doc about ACLs.
43833         * doc/acl-resources.txt: New file.
43834         * doc/acl-cygwin.txt: New file.
43835
43836 2008-05-21  Bruno Haible  <bruno@clisp.org>
43837
43838         Avoid one more warning from gcc.
43839         * lib/vasnprintf.c (IF_LINT): Update comments.
43840         (VASNPRINTF): Use it also for the 'prefix' array initializer.
43841
43842 2008-05-21  Jim Meyering  <meyering@redhat.com>
43843
43844         avoid a warning from gcc
43845         * lib/vasnprintf.c (IF_LINT): Define.
43846         (scale10_round_decimal_long_double):
43847         Use it to avoid a "may be used uninitialized" warning.
43848         (scale10_round_decimal_double): Likewise.
43849
43850 2008-05-21  Simon Josefsson  <simon@josefsson.org>
43851
43852         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
43853         declared.
43854
43855 2008-05-20  Bruno Haible  <bruno@clisp.org>
43856
43857         * tests/test-memcmp.c (main): Test also the sign of the result. Test
43858         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
43859
43860 2008-05-20  Simon Josefsson  <simon@josefsson.org>
43861
43862         * modules/memcmp-tests: New file.
43863         * tests/test-memcmp.c: New file.
43864
43865 2008-05-19  Bruno Haible  <bruno@clisp.org>
43866
43867         * modules/propername (Notice, configure.ac): Put quoted "..." into
43868         --keyword option.
43869         * lib/propername.h: Update comments accordingly.
43870         Reported by Eric Blake.
43871
43872 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
43873
43874         * modules/getpass-gnu (Depends-on): Add fseeko.
43875
43876 2008-05-19  Simon Josefsson  <simon@josefsson.org>
43877
43878         * modules/base64-tests: New file.
43879
43880 2008-05-19  Bo Borgerson <gigabo@gmail.com>
43881
43882         * lib/base64.c (base64_decode_ctx): If a decode context structure
43883         was passed in use it to ignore newlines.  If a context structure
43884         was _not_ passed in, continue to treat newlines as garbage (this
43885         is the historical behavior).  Formerly base64_decode.
43886         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
43887         takes a decode context structure.
43888         * lib/base64.h (base64_decode): Macro for four-argument calls.
43889         (base64_decode_alloc): Likewise.
43890         * lib/base64.c (base64_decode_ctx): If a decode context structure
43891         was passed in use it to ignore newlines.  If a context structure
43892         was _not_ passed in, continue to treat newlines as garbage (this
43893         is the historical behavior).  Formerly base64_decode.
43894         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
43895         takes a decode context structure.
43896         * lib/base64.h (base64_decode): Macro for four-argument calls.
43897         (base64_decode_alloc): Likewise.
43898
43899 2008-05-19  Jim Meyering  <meyering@redhat.com>
43900
43901         avoid a warning from gcc
43902         * lib/trim.c (IF_LINT): Define.
43903         (trim2): Use it to avoid a "may be used uninitialized" warning.
43904
43905         Fix doc typo.
43906         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
43907
43908 2008-05-19  Bruno Haible  <bruno@clisp.org>
43909
43910         * doc/glibc-functions/getpass.texi: Document limits of other
43911         implementations.
43912
43913 2008-05-19  Simon Josefsson  <simon@josefsson.org>
43914             Bruno Haible <bruno@clisp.org>
43915
43916         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
43917
43918 2008-05-18  Bruno Haible  <bruno@clisp.org>
43919
43920         * modules/propername: New file, from GNU gettext.
43921         * lib/propername.h: New file, from GNU gettext.
43922         * lib/propername.c: New file, from GNU gettext.
43923         * MODULES.html.sh (Internationalization functions): Add propername.
43924
43925 2008-05-16  Jim Meyering  <meyering@redhat.com>
43926             Bruno Haible  <bruno@clisp.org>
43927
43928         Avoid some warnings from "gcc -Wshadow".
43929         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
43930
43931 2008-05-15  Eric Blake  <ebb9@byu.net>
43932
43933         Extend previous patch to cygwin 1.7.0.
43934         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
43935         fast implementation in cygwin >= 1.7.0.
43936         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
43937         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
43938
43939 2008-05-15  Bruno Haible  <bruno@clisp.org>
43940
43941         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
43942         implementation in glibc >= 2.9.
43943         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
43944         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
43945
43946 2008-05-15  Bruno Haible  <bruno@clisp.org>
43947
43948         * MODULES.html.sh (Internationalization functions): Remove linebreak.
43949         (Unicode string functions): Add unilbrk/*.
43950         Reported by Karl Berry.
43951
43952 2008-05-15  Eric Blake  <ebb9@byu.net>
43953
43954         Fix violation of <stdbool.h> replacement in regex.
43955         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
43956         * lib/regexec.c (re_search_internal): Likewise.
43957         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
43958
43959 2008-05-15  Jim Meyering  <meyering@redhat.com>
43960
43961         avoid distracting test output when git or cvs is not found
43962         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
43963         * tests/test-vc-list-files-git.sh: Likewise.
43964
43965 2008-05-15  Eric Blake  <ebb9@byu.net>
43966
43967         Glibc finally accepted the memmem speedup code, bugzilla #5514.
43968         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
43969         glibc version.
43970         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
43971         * doc/posix-functions/strstr.texi (strstr): Likewise.
43972         * lib/str-two-way.h (MAX): Sychronize with glibc.
43973
43974 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
43975
43976         * lib/regcomp.c (optimize_utf8): Add a note on why we test
43977         opr.ctx_type.
43978         (calc_first): Initialize constraint field.
43979         (duplicate_node_closure): Use it instead of special casing ANCHORS.
43980         Fix grammar.
43981         (duplicate_node): Merge constraint field for all node types.
43982         (calc_eclosure_iter): Look at constraint field for all node types.
43983         * lib/regex_internal.c (create_cd_newstate): Don't look at
43984         opr.ctx_type.
43985
43986 2008-05-14  Bruno Haible  <bruno@clisp.org>
43987
43988         Help GCC to do better code generation.
43989         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
43990         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
43991         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
43992         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
43993         Declare with attribute 'malloc' if supported.
43994
43995 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
43996
43997         use "echo STR|wc -c" rather than unportable "expr length STR"
43998         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
43999         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
44000
44001 2008-05-14  Jim Meyering  <meyering@redhat.com>
44002
44003         use dd ibs=$n count=1 ... rather than less-portable head -c$n
44004         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
44005         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
44006         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
44007         via Collin Lasse.
44008
44009 2008-05-14  Eric Blake  <ebb9@byu.net>
44010
44011         Avoid quadratic growth in gl_LIBSOURCES.
44012         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
44013         Suggested by Bruno Haible.
44014
44015         Test xmemdup0.
44016         * modules/xmemdup0-tests: New file.
44017         * tests/test-xmemdup0.c: Likewise.
44018
44019 2008-05-13  Eric Blake  <ebb9@byu.net>
44020
44021         Split xmemdup0 into its own module.
44022         * modules/xmemdup0: New file.
44023         * lib/xmemdup0.h: Likewise.
44024         * lib/xmemdup0.c: Likewise.
44025         * MODULES.html.sh (Memory management functions): Add xmemdup0.
44026         * lib/xalloc.h (xmemdup0): Remove.
44027         * lib/xmalloc.c (xmemdup0): Likewise.
44028
44029 2008-05-13  Eric Blake  <ebb9@byu.net>
44030             Bruno Haible  <bruno@clisp.org>
44031
44032         Reduce number of forks required during autoconf.
44033         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
44034         and gl_LIBSOURCES_DIR.
44035         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
44036         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
44037         m4_syscmd per file.
44038         <m4_foreach_w>: Move...
44039         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
44040
44041 2008-05-13  Eric Blake  <ebb9@byu.net>
44042
44043         * gnulib-tool: Fix various comment typos.
44044
44045 2008-05-12  Bruno Haible  <bruno@clisp.org>
44046
44047         Tailor the linebreaking algorithm.
44048         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
44049
44050 2008-05-12  Bruno Haible  <bruno@clisp.org>
44051
44052         Update to Unicode 5.0.0.
44053         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
44054         LBP_JV, LBP_JT. Redistribute values.
44055         (unilbrk_table): Change size.
44056         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
44057         Unicode TR#14 rev. 22.
44058         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
44059         LBP_JV, LBP_JT. Redistribute values.
44060         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
44061         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
44062         Update.
44063         * lib/unilbrk/lbrkprop1.h: Regenerated.
44064         * lib/unilbrk/lbrkprop2.h: Regenerated.
44065         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
44066         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
44067         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
44068         Likewise.
44069         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
44070         Likewise.
44071         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
44072         result.
44073         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
44074         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
44075         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
44076         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
44077         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
44078         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
44079
44080 2008-05-11  Bruno Haible  <bruno@clisp.org>
44081
44082         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
44083
44084 2008-05-11  Bruno Haible  <bruno@clisp.org>
44085
44086         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
44087         * modules/unilbrk/gen-lbrk: New file.
44088
44089 2008-05-11  Bruno Haible  <bruno@clisp.org>
44090
44091         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
44092         * m4/sha512.m4 (gl_SHA512): Likewise.
44093
44094 2008-05-11  Jim Meyering  <meyering@redhat.com>
44095
44096         New modules: crypto/sha256, crypto/sha512 (from coreutils)
44097         * modules/crypto/sha256: New file.
44098         * modules/crypto/sha512: Likewise.
44099         * lib/sha256.c: Likewise.
44100         * lib/sha256.h: Likewise.
44101         * lib/sha512.c: Likewise.
44102         * lib/sha512.h: Likewise.
44103         * lib/u64.h: Likewise.
44104         * m4/sha256.m4: Likewise.
44105         * m4/sha512.m4: Likewise.
44106         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
44107
44108 2008-05-10  Bruno Haible  <bruno@clisp.org>
44109
44110         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
44111         (Input/Output <stdio.h>): Add xprintf.
44112         (Signal handling <signal.h>): Add strsignal.
44113         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
44114         (Core language properties): Add func.
44115         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
44116         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
44117         strings.
44118         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
44119         (Input/output): New section.
44120         (File system functions): Add openat-die, stat-macros.
44121         (Networking functions): Add sockets.
44122         (Unicode string functions): Add unictype/*.
44123         (Support for building libraries and executables): Add gperf.
44124         (Support for building documentation): Add agpl-3.0.
44125         (Misc): Add nocrash.
44126
44127 2008-05-10  Bruno Haible  <bruno@clisp.org>
44128
44129         * modules/unictype/gen-ctype: New file.
44130
44131 2008-05-10  Jim Meyering  <meyering@redhat.com>
44132
44133         Make chdir-safer.c more efficient on a system with no symlinks.
44134         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
44135         also if ELOOP is zero.  Suggested by Bruno Haible.
44136
44137         Make chdir-safer.c slightly safer.
44138         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
44139         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
44140
44141         Avoid compile failure on systems without ELOOP (like mingw).
44142         * lib/chdir-safer.c (ELOOP): Define if not already defined.
44143         Reported by Bruno Haible.
44144
44145 2008-05-10  Bruno Haible  <bruno@clisp.org>
44146
44147         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
44148         (is_utf8_encoding): Use a case-insensitive comparison.
44149         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
44150         streq.
44151
44152 2008-05-10  Bruno Haible  <bruno@clisp.org>
44153
44154         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
44155         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
44156         * lib/unilbrk/ulc-common.h (iconv_string_length,
44157         iconv_string_keeping_offsets): Remove declarations.
44158         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
44159         Don't include <iconv.h>, streq.h, xsize.h.
44160         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
44161         conversion.
44162         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
44163         <iconv.h>, streq.h, xsize.h.
44164         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
44165         conversion.
44166         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
44167         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
44168         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
44169         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
44170
44171 2008-05-10  Bruno Haible  <bruno@clisp.org>
44172
44173         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
44174         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
44175
44176         * modules/unilbrk/u32-width-linebreaks-tests: New file.
44177         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
44178
44179         * modules/unilbrk/u16-width-linebreaks-tests: New file.
44180         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
44181
44182         * modules/unilbrk/u8-width-linebreaks-tests: New file.
44183         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
44184
44185         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
44186         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
44187
44188         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
44189         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
44190
44191         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
44192         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
44193
44194         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
44195         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
44196
44197 2008-05-10  Bruno Haible  <bruno@clisp.org>
44198
44199         Split up 'linebreak' module.
44200         * lib/unilbrk.h: New file, based on lib/linebreak.h.
44201         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
44202         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
44203         modifications.
44204         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
44205         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
44206         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
44207         lib/linebreak.c.
44208         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
44209         lib/linebreak.c.
44210         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
44211         lib/linebreak.c.
44212         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
44213         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
44214         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
44215         lib/linebreak.c.
44216         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
44217         lib/linebreak.c.
44218         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
44219         lib/linebreak.c.
44220         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
44221         lib/linebreak.c.
44222         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
44223         lib/linebreak.c.
44224         * modules/unilbrk/base: New file.
44225         * modules/unilbrk/tables: New file.
44226         * modules/unilbrk/u8-possible-linebreaks: New file.
44227         * modules/unilbrk/u16-possible-linebreaks: New file.
44228         * modules/unilbrk/u32-possible-linebreaks: New file.
44229         * modules/unilbrk/ulc-common: New file.
44230         * modules/unilbrk/ulc-possible-linebreaks: New file.
44231         * modules/unilbrk/u8-width-linebreaks: New file.
44232         * modules/unilbrk/u16-width-linebreaks: New file.
44233         * modules/unilbrk/u32-width-linebreaks: New file.
44234         * modules/unilbrk/ulc-width-linebreaks: New file.
44235         * lib/linebreak.h: Remove file.
44236         * lib/linebreak.c: Remove file.
44237         * m4/linebreak.m4: Remove file.
44238         * modules/linebreak: Remove file.
44239         * NEWS: Mention the changes.
44240
44241 2008-05-09  Eric Blake  <ebb9@byu.net>
44242
44243         Add xmemdup0.
44244         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
44245         implementation.
44246         * lib/xmalloc.c (xmemdup0): New C implementation.
44247
44248 2008-05-08  Bruno Haible  <bruno@clisp.org>
44249
44250         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
44251
44252 2008-05-07  Eric Blake  <ebb9@byu.net>
44253
44254         Support cross-compilation of <wctype.h>.
44255         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
44256         AC_CACHE_CHECK.
44257
44258 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
44259
44260         * build-aux/vc-list-files: Add support for bzr.
44261
44262 2008-05-03  Jim Meyering  <meyering@redhat.com>
44263
44264         avoid failed assertion with tight malloc
44265         * tests/test-getndelim2.c: Correct an off-by-one assertion.
44266
44267 2008-05-03  Simon Josefsson  <simon@josefsson.org>
44268
44269         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
44270         are needed from arpa/inet.h.
44271         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
44272         Reported by Bruno Haible.
44273
44274 2008-05-02  Jim Meyering  <meyering@redhat.com>
44275
44276         avoid compilation error on FreeBSD 6
44277         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
44278
44279 2008-05-01  Jim Meyering  <meyering@redhat.com>
44280
44281         useless-if-before-free: correct --help's exit status description
44282         * build-aux/useless-if-before-free (usage): Like grep, exit 0
44283         for one or more matches, etc.  Reported by Bruno Haible.
44284
44285         vc-list-files: make the stand-alone gnulib test work
44286         * modules/vc-list-files-tests (configure.ac):
44287         Define and AC_SUBST abs_aux_dir.
44288         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
44289         $(abs_top_srcdir) to each script and having each of them
44290         duplicate the work of setting PATH, set PATH here, using
44291         the new variable, abs_aux_dir instead.
44292         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
44293         * tests/test-vc-list-files-git.sh: Likewise.
44294         Reported by Bruno Haible.
44295
44296 2008-05-01  Bruno Haible  <bruno@clisp.org>
44297
44298         * lib/getndelim2.c (getndelim2): Fix newsize computation during
44299         reallocation. Rename 'done' to 'found_delimiter'.
44300
44301 2008-05-01  Jim Meyering  <meyering@redhat.com>
44302
44303         vc-list-files: accommodate /bin/sh like the one from Solaris 10
44304         * build-aux/vc-list-files: Use `...`, not $(...).
44305
44306 2008-04-30  Jim Meyering  <meyering@redhat.com>
44307
44308         add tests for vc-list-files
44309         * modules/vc-list-files-tests: New module.
44310         * tests/test-vc-list-files-cvs.sh: New file.
44311         * tests/test-vc-list-files-git.sh: New file.
44312
44313         avoid a warning from gcc
44314         * lib/getndelim2.c (IF_LINT): Define.
44315         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
44316
44317         vc-list-files: work properly with build-aux/cvsu, too
44318         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
44319         to all cvs-based clauses.
44320
44321         vc-list-files: work properly in the CVS+awk case, too
44322         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
44323
44324         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
44325         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
44326         take more than one file argument, so .  Add quotes, just in case $dir
44327         ever contains a shell meta-character.  Prompted by Soren Hansen in
44328         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
44329
44330 2008-04-29  Eric Blake  <ebb9@byu.net>
44331
44332         Optimize getndelim2 to use block operations when possible.
44333         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
44334         freadseek, and memchr2.
44335         * lib/getndelim2.c (getndelim2): Use them for block reads.
44336
44337 2008-04-29  Bruno Haible  <bruno@clisp.org>
44338
44339         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
44340         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
44341         * modules/inet_ntop (Depends-on): Add extensions.
44342         * modules/inet_pton (Depends-on): Likewise.
44343         Reported by Simon Josefsson.
44344
44345 2008-04-29  Jim Meyering  <meyering@redhat.com>
44346
44347         When the is more than one match in a block, match all of them.
44348         * build-aux/useless-if-before-free: Iterate through each block
44349         until there are no more matches.
44350
44351         Fix broken useless-if-before-free script.
44352         * build-aux/useless-if-before-free: Fix typo: missing "?" after
44353         the expression to match cast of argument to free-like function.
44354
44355 2008-04-29  Eric Blake  <ebb9@byu.net>
44356
44357         Use new header.
44358         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
44359
44360 2008-04-29  Jim Meyering  <meyering@redhat.com>
44361
44362         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
44363         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
44364         by gnulib to exist and to declare e.g., inet_ntop.
44365         Don't include "inet_ntop.h", now removed.
44366
44367         * m4/arpa_inet_h.m4: Remove trailing blanks.
44368
44369 2008-04-29  Eric Blake  <ebb9@byu.net>
44370
44371         Silence valgrind on safe reads beyond potential array bounds.
44372         * lib/rawmemchr.valgrind: New file.
44373         * lib/strchrnul.valgrind: Likewise.
44374         * modules/rawmemchr (Files): Distribute new file.
44375         * modules/strchrnul (Files): Likewise.
44376         Suggested by Bruno Haible.
44377
44378 2008-04-29  Bruno Haible  <bruno@clisp.org>
44379
44380         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
44381         (inet_ntop, inet_pton): Change portability warning's wording.
44382         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
44383         Invoke gl_CHECK_NEXT_HEADERS.
44384         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
44385         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
44386         set ARPA_INET_H.
44387         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
44388         * modules/arpa_inet (Description): No longer only for systems that
44389         lack it.
44390         (Depends-on): Add include_next.
44391         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
44392         HAVE_ARPA_INET_H.
44393
44394 2008-04-29  Jim Meyering  <meyering@redhat.com>
44395
44396         * modules/mkdir (License): Re-license as LGPLv2+.
44397
44398 2008-04-29  Bruno Haible  <bruno@clisp.org>
44399
44400         * modules/rawmemchr (Maintainer): Set to Eric.
44401         * modules/strchrnul (Maintainer): Likewise.
44402
44403 2008-04-29  Simon Josefsson  <simon@josefsson.org>
44404
44405         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
44406         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
44407
44408         * modules/arpa_inet (arpa/inet.h): Use them.
44409
44410 2008-04-28  Eric Blake  <ebb9@byu.net>
44411
44412         Test getndelim2.
44413         * modules/getndelim2-tests: New file.
44414         * tests/test-getndelim2.c: Likewise.
44415         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
44416         stream.
44417         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
44418
44419         * MODULES.html.sh: Document new module.
44420
44421 2008-04-20  Bruno Haible  <bruno@clisp.org>
44422
44423         * lib/c-stack.c (die): Use raise.
44424         * modules/c-stack (Depends-on): Add raise.
44425
44426 2008-04-28  Bruno Haible  <bruno@clisp.org>
44427
44428         Expect rpmatch to be declared.
44429         * lib/yesno.c (rpmatch): Remove declaration.
44430
44431         Declare rpmatch.
44432         * lib/stdlib.in.h (rpmatch): New declaration.
44433         * lib/rpmatch.c: Include <stdlib.h> first.
44434         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
44435         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
44436         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
44437         HAVE_RPMATCH.
44438         * modules/rpmatch (Depends-on): Add stdlib, extensions.
44439         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44440         (Include): Set to <stdlib.h>.
44441         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
44442         HAVE_RPMATCH.
44443         * NEWS: Document the change.
44444
44445 2008-04-28  Bruno Haible  <bruno@clisp.org>
44446
44447         Change rpmatch to use nl_langinfo when appropriate.
44448         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
44449         (N_): New macro.
44450         (localized_pattern): New function/macro.
44451         (try): Remove match, nomatch arguments. Copy the pattern into safe
44452         memory before caching it.
44453         (rpmatch): Use localized_pattern. Add translator comments.
44454         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
44455         Suggested by Eric Blake.
44456         * modules/rpmatch (Depends-on): Add stdbool.
44457
44458 2008-04-28  Eric Blake  <ebb9@byu.net>
44459
44460         Add rawmemchr module, matching glibc.
44461         * modules/string (Makefile.am): New indicator.
44462         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
44463         * lib/string.in.h (rawmemchr): Declare when appropriate.
44464         * modules/rawmemchr: New file.
44465         * m4/rawmemchr.m4: Likewise.
44466         * lib/rawmemchr.c: Likewise.
44467         * modules/rawmemchr-tests: Likewise.
44468         * tests/test-rawmemchr.c: Likewise.
44469         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
44470         module.
44471         * modules/strchrnul (Depends-on): Add rawmemchr.
44472         * lib/strchrnul.c (strchrnul): Optimize a corner case.
44473
44474         Whitespace cleanup.
44475         * tests/test-strchrnul.c: Reindent.
44476         * lib/strchrnul.c: Likewise.
44477
44478         Optimize and test strchrnul.
44479         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
44480         * modules/strchrnul-tests: New file.
44481         * tests/test-strchrnul.c: Likewise.
44482
44483         Remove intprops dependency.
44484         * modules/memchr (Depends-on): Remove intprops.
44485         * modules/memrchr (Depends-on): Likewise.
44486         * modules/memchr2 (Depends-on): Likewise.
44487         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
44488         * lib/memrchr.c (__memrchr): Likewise.
44489         * lib/memrchr2.c (memchr2): Likewise.
44490         Reported by Simon Josefsson.
44491
44492 2008-04-28  Simon Josefsson  <simon@josefsson.org>
44493
44494         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
44495         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44496
44497 2008-04-28  Simon Josefsson  <simon@josefsson.org>
44498
44499         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
44500
44501         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
44502
44503         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
44504
44505         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
44506         declarations.
44507         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
44508
44509         * m4/inet_pton.m4: Don't check for header files.
44510
44511         * m4/inet_ntop.m4: Don't check for header files.
44512
44513 2008-04-28  Simon Josefsson  <simon@josefsson.org>
44514
44515         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
44516         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
44517         trigger for cygwin).
44518         Reported by Bruno Haible  <bruno@clisp.org>.
44519
44520 2008-04-28  Bruno Haible  <bruno@clisp.org>
44521
44522         * doc/posix-functions/strdup.texi: Mention mingw problem.
44523
44524 2008-04-27  Bruno Haible  <bruno@clisp.org>
44525
44526         * modules/stat-time-tests (Depends-on): Add sleep.
44527         * tests/test-stat-time.c (force_unlink): New function.
44528         (cleanup): Use it.
44529         (test_mtime): Remove the ctime related tests.
44530         (test_ctime): New function, containing the ctime related tests.
44531         (main): Call test_ctime, except on native Windows platforms.
44532
44533 2008-04-27  Bruno Haible  <bruno@clisp.org>
44534
44535         * lib/rpmatch.c (rpmatch): Add some comments.
44536         Reported by James Youngman <jay@gnu.org>.
44537
44538 2008-04-27  Bruno Haible  <bruno@clisp.org>
44539
44540         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
44541         quiet NaNs.
44542
44543 2008-04-27  Bruno Haible  <bruno@clisp.org>
44544
44545         Make test-yesno.sh work on mingw.
44546         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
44547         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
44548         (main): Set stdin to binary mode.
44549         * modules/yesno-tests (Depends-on): Add binary-io.
44550
44551 2008-04-27  Bruno Haible  <bruno@clisp.org>
44552
44553         Fix 'isfinite' on x86, x86_64, ia64 platforms.
44554         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
44555         argument that lie outside the IEEE 854 domain.
44556         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
44557         (gl_ISFINITE): Use it.
44558         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
44559
44560 2008-04-27  Bruno Haible  <bruno@clisp.org>
44561
44562         Allow local renaming in config.h.
44563         * lib/memrchr.c (memrchr): Don't undefine outside libc.
44564
44565 2008-04-27  Bruno Haible  <bruno@clisp.org>
44566
44567         * lib/memchr.c (__memchr): Change type of 'i'.
44568         * lib/memchr2.c (memchr2): Likewise.
44569
44570 2008-04-26  Eric Blake  <ebb9@byu.net>
44571         and Bruno Haible  <bruno@clisp.org>
44572
44573         Optimize and test memrchr.
44574         * modules/memrchr (Depends-on): Add intprops.
44575         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
44576         * modules/memrchr-tests: New file.
44577         * tests/test-memrchr.c: New file.
44578
44579 2008-04-26  Bruno Haible  <bruno@clisp.org>
44580
44581         Add tentative support for DragonFly BSD.
44582         * lib/stdio-impl.h: Add macros for DragonFly BSD.
44583         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
44584         fp.
44585         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
44586         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
44587         * lib/fpurge.c (fpurge): Likewise.
44588         * lib/freadable.c (freaadable): Likewise.
44589         * lib/freadahead.c (freadahead): Likewise.
44590         * lib/freading.c (freading): Likewise.
44591         * lib/freadptr.c (freadptr): Likewise.
44592         * lib/freadseek.c (freadptrinc): Likewise.
44593         * lib/fseeko.c (fseeko): Likewise.
44594         * lib/fseterr.c (fseterr): Likewise.
44595         * lib/fwritable.c (fwritable): Likewise.
44596         * lib/fwriting.c (fwriting): Likewise.
44597
44598 2008-04-26  Bruno Haible  <bruno@clisp.org>
44599
44600         * lib/stdio-impl.h: New file.
44601         * lib/fbufmode.c: Include stdio-impl.h.
44602         (fbufmode): Use fp_, remove redundant #defines.
44603         * lib/fflush.c: Include stdio-impl.h.
44604         (clear_ungetc_buffer): Remove redundant #defines.
44605         * lib/fpurge.c: Include stdio-impl.h.
44606         (fpurge): Remove redundant #defines.
44607         * lib/freadable.c: Include stdio-impl.h.
44608         (freadable): Remove redundant #defines.
44609         * lib/freadahead.c: Include stdio-impl.h.
44610         (freadahead): Remove redundant #defines.
44611         * lib/freading.c: Include stdio-impl.h.
44612         (freading): Remove redundant #defines.
44613         * lib/freadptr.c: Include stdio-impl.h.
44614         (freadptr): Remove redundant #defines.
44615         * lib/freadseek.c: Include stdio-impl.h.
44616         (freadptrinc): Remove redundant #defines.
44617         * lib/fseeko.c: Include stdio-impl.h.
44618         (rpl_fseeko): Remove redundant #defines.
44619         * lib/fseterr.c: Include stdio-impl.h.
44620         (fseterr): Remove redundant #defines.
44621         * lib/fwritable.c: Include stdio-impl.h.
44622         (fwritable: Remove redundant #defines.
44623         * lib/fwriting.c: Include stdio-impl.h.
44624         (fwriting): Remove redundant #defines.
44625         * modules/fbufmode (Files): Add lib/stdio-impl.h.
44626         * modules/fflush (Files): Likewise.
44627         * modules/fpurge (Files): Likewise.
44628         * modules/freadable (Files): Likewise.
44629         * modules/freadahead (Files): Likewise.
44630         * modules/freading (Files): Likewise.
44631         * modules/freadptr (Files): Likewise.
44632         * modules/freadseek (Files): Likewise.
44633         * modules/fseeko (Files): Likewise.
44634         * modules/fseterr (Files): Likewise.
44635         * modules/fwritable (Files): Likewise.
44636         * modules/fwriting (Files): Likewise.
44637
44638 2008-04-26  Bruno Haible  <bruno@clisp.org>
44639
44640         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
44641         restore_seek_optimization, update_fpos_cache): New functions, extracted
44642         from rpl_fflush.
44643         (rpl_fflush): Use them.
44644         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
44645         (gl_REPLACE_FFLUSH): Use it.
44646
44647 2008-04-26  Bruno Haible  <bruno@clisp.org>
44648
44649         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
44650         on Solaris.
44651         * tests/test-xstrtoimax.sh: Likewise.
44652         * tests/test-xstrtoumax.sh: Likewise.
44653         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44654
44655 2008-04-26  Bruno Haible  <bruno@clisp.org>
44656
44657         * modules/memchr-tests: New file.
44658         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
44659
44660 2008-04-26  Eric Blake  <ebb9@byu.net>
44661             Bruno Haible  <bruno@clisp.org>
44662
44663         * lib/memchr.c: Include intprops.h.
44664         (__memchr): Optimize parallel detection of matching bytes. Rename local
44665         variables. Add explanatory comments.
44666
44667 2008-04-26  Bruno Haible  <bruno@clisp.org>
44668
44669         Fix module 'memchr', broken since 2000-10-28.
44670         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
44671
44672 2008-04-26  Bruno Haible  <bruno@clisp.org>
44673
44674         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
44675         comments.
44676
44677 2008-04-25  Eric Blake  <ebb9@byu.net>
44678
44679         Use native fstatat on cygwin 1.7.0.
44680         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
44681         first.
44682
44683 2008-04-23  Eric Blake  <ebb9@byu.net>
44684
44685         Improve memchr2 performance.
44686         * lib/memchr2.c (memchr2): Further optimize parallel detection of
44687         NUL bytes.
44688         * modules/memchr2 (Depends-on): Use intprops.h.
44689
44690 2008-04-23  Simon Josefsson  <simon@josefsson.org>
44691
44692         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
44693         an inline function instead of a CPP macro.  Patch by Ben Pfaff
44694         <blp@cs.stanford.edu>.
44695
44696 2008-04-23  Simon Josefsson  <simon@josefsson.org>
44697
44698         * lib/arpa_inet.in.h: New file.
44699
44700         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
44701         (Makefile.am): Sed in substitute header file.
44702
44703         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
44704         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
44705
44706         * modules/inet_ntop (configure.ac): Use
44707         gl_ARPA_INET_MODULE_INDICATOR.
44708
44709         * modules/inet_pton (configure.ac): Use
44710         gl_ARPA_INET_MODULE_INDICATOR.
44711
44712 2008-04-22  Jim Meyering  <meyering@redhat.com>
44713
44714         * modules/verify (License): Re-license as LGPLv2+.
44715
44716 2008-04-22  Simon Josefsson  <simon@josefsson.org>
44717
44718         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
44719         parameter to void* as per POSIX standard (MinGW uses char*).
44720
44721 2008-04-21  Bruno Haible  <bruno@clisp.org>
44722
44723         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
44724         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
44725         Define to replacements if REPLACE_ISWCNTRL is 1.
44726         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
44727         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
44728         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
44729         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
44730         what it fixes.
44731         * doc/posix-functions/iswalpha.texi: Likewise.
44732         * doc/posix-functions/iswblank.texi: Likewise.
44733         * doc/posix-functions/iswcntrl.texi: Likewise.
44734         * doc/posix-functions/iswdigit.texi: Likewise.
44735         * doc/posix-functions/iswgraph.texi: Likewise.
44736         * doc/posix-functions/iswlower.texi: Likewise.
44737         * doc/posix-functions/iswprint.texi: Likewise.
44738         * doc/posix-functions/iswpunct.texi: Likewise.
44739         * doc/posix-functions/iswspace.texi: Likewise.
44740         * doc/posix-functions/iswupper.texi: Likewise.
44741         * doc/posix-functions/iswxdigit.texi: Likewise.
44742         Reported by Alain Guibert.
44743
44744 2008-04-21  Bruno Haible  <bruno@clisp.org>
44745
44746         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
44747         Patch by Alain Guibert.
44748
44749 2008-04-21  Bruno Haible  <bruno@clisp.org>
44750
44751         Fix test failures on mingw.
44752         * tests/test-xstrtol.c (print_no_progname): New function.
44753         (main): Install it in error_print_progname hook.
44754         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
44755         * tests/test-xstrtoimax.sh: Likewise.
44756         * tests/test-xstrtoumax.sh: Likewise.
44757
44758 2008-04-21  Bruno Haible  <bruno@clisp.org>
44759
44760         Fix test failure on mingw.
44761         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
44762
44763 2008-04-21  Bruno Haible  <bruno@clisp.org>
44764
44765         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
44766         Actually assign a value.
44767
44768 2008-04-20  Bruno Haible  <bruno@clisp.org>
44769
44770         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
44771         take 2.
44772         * lib/canonicalize.c (canonicalize_file_name): Elide if the
44773         'canonicalize-lgpl' module is also used.
44774         * lib/canonicalize-lgpl.c: Undo last change.
44775         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
44776
44777 2008-04-20  Bruno Haible  <bruno@clisp.org>
44778
44779         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
44780         config.h. Provide _mkdir based fallback for mingw.
44781         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
44782         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
44783         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
44784         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
44785         rather than defining mkdir in config.h.
44786         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
44787         (gl_SYS_STAT_H_DEFAULTS): New macro.
44788         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
44789         HAVE_IO_H any more.
44790         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
44791         HAVE_DECL_MKDIR and HAVE_IO_H.
44792
44793 2008-04-20  Bruno Haible  <bruno@clisp.org>
44794
44795         * lib/isapipe.c: Port to native Windows platforms.
44796
44797 2008-04-20  Bruno Haible  <bruno@clisp.org>
44798
44799         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
44800
44801 2008-04-21  Eric Blake  <ebb9@byu.net>
44802
44803         Work around preprocessors that don't handle UINTMAX_MAX.
44804         * lib/memchr2.c (memchr2): Avoid embedded #if.
44805         Reported by Alain Guibert, fix suggested by Bruno Haible.
44806
44807 2008-04-21  Simon Josefsson  <simon@josefsson.org>
44808
44809         * doc/posix-functions/strftime.texi (strftime): Explain better
44810         Windows incompatibility.  Suggested by Micah Cowan
44811         <micah@cowan.name>.
44812
44813 2008-04-20  Bruno Haible  <bruno@clisp.org>
44814
44815         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
44816         unistr/u8-mblen.
44817
44818 2008-04-20  Bruno Haible  <bruno@clisp.org>
44819
44820         Fix test failure on platforms with non-GNU iconv.
44821         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
44822         (U_TO_U8): Use it, rather than u16_to_u8.
44823         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
44824         units at the end of the input string.
44825         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
44826
44827 2008-04-20  Bruno Haible  <bruno@clisp.org>
44828
44829         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
44830         when the resulting length is 0.
44831         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
44832
44833 2008-04-20  Bruno Haible  <bruno@clisp.org>
44834
44835         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
44836         works.
44837         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
44838
44839 2008-04-20  Bruno Haible  <bruno@clisp.org>
44840
44841         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
44842         * modules/tsearch-tests (configure.ac): Test for initstate function.
44843
44844 2008-04-20  Bruno Haible  <bruno@clisp.org>
44845
44846         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
44847         for nlink_t if missing.
44848         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
44849
44850 2008-04-19  Bruno Haible  <bruno@clisp.org>
44851
44852         Work around snprintf bug on Linux libc5.
44853         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
44854         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
44855         gl_SNPRINTF_SIZE1.
44856         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44857         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
44858         that test failed.
44859         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
44860         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
44861         * modules/snprintf (Files): Add m4/printf.m4.
44862         * modules/vsnprintf (Files): Likewise.
44863         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
44864         * doc/posix-functions/vsnprintf.texi: Likewise.
44865
44866 2008-04-19  Bruno Haible  <bruno@clisp.org>
44867
44868         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
44869         from 0.0058 to less than 10^-7.
44870
44871 2008-04-19  Bruno Haible  <bruno@clisp.org>
44872
44873         Fix rounding when a precision is given.
44874         * lib/vasnprintf.c (is_borderline): New function.
44875         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
44876         9...9x.
44877         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
44878         %e, %g.
44879         * tests/test-vasprintf-posix.c (test_function): Likewise.
44880         * tests/test-snprintf-posix.h (test_function): Likewise.
44881         * tests/test-sprintf-posix.h (test_function): Likewise.
44882         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
44883         * tests/test-printf-posix.h (test_function): Likewise.
44884         * tests/test-printf-posix.output: Update.
44885         Reported by John Darrington <john@darrington.wattle.id.au> via
44886         Ben Pfaff <blp@cs.stanford.edu>.
44887
44888 2008-04-18  Simon Josefsson  <simon@josefsson.org>
44889
44890         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
44891         Suggested by Bruno Haible <bruno@clisp.org>.
44892
44893 2008-04-17  Bruno Haible  <bruno@clisp.org>
44894
44895         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
44896         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
44897         implementation.
44898         Patch by Bruce Merry <bmerry@gmail.com>.
44899
44900 2008-04-17  Simon Josefsson  <simon@josefsson.org>
44901
44902         * doc/posix-functions/strftime.texi (strftime): Mention that %e
44903         doesn't work under Windows.
44904
44905 2008-04-16  Bruno Haible  <bruno@clisp.org>
44906
44907         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
44908         New macros.
44909         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
44910         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
44911         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
44912         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
44913         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
44914         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
44915         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
44916         macros.
44917         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
44918         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
44919         Northern Sotho, Uighur.
44920
44921 2008-04-16  Bruno Haible  <bruno@clisp.org>
44922
44923         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
44924         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
44925         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
44926         Reported by Daniel Bergström <daniel@octocode.com>.
44927
44928 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
44929             Bruno Haible  <bruno@clisp.org>
44930
44931         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
44932         function.
44933         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
44934         New functions, mostly extracted from gl_locale_name_default.
44935         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
44936
44937 2008-04-16  Eric Blake  <ebb9@byu.net>
44938
44939         Adjust strtod detection to catch glibc 2.7 bug.
44940         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
44941         Reported by John Gatewood Ham.
44942
44943 2008-04-16  Bruno Haible  <bruno@clisp.org>
44944
44945         Add tentative support for Linux libc5.
44946         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
44947         * lib/fpurge.c (fpurge): Likewise.
44948         * lib/freadable.c (freadable): Likewise.
44949         * lib/freadahead.c (freadahead): Likewise.
44950         * lib/freading.c (freading): Likewise.
44951         * lib/freadptr.c (freadptr): Likewise.
44952         * lib/freadseek.c (freadptrinc): Likewise.
44953         * lib/fseeko.c (rpl_fseeko): Likewise.
44954         * lib/fseterr.c (fseterr): Likewise.
44955         * lib/fwritable.c (fwritable): Likewise.
44956         * lib/fwriting.c (fwriting): Likewise.
44957         Reported by Alain Guibert <alguibert+bts@free.fr>.
44958
44959 2008-04-15  Bruno Haible  <bruno@clisp.org>
44960
44961         * modules/mathl (configure.ac): Define module indicator.
44962
44963 2008-04-15  Bruno Haible  <bruno@clisp.org>
44964
44965         * lib/logl.c (logl): Remove unused variables.
44966
44967 2008-04-15  Bruno Haible  <bruno@clisp.org>
44968
44969         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
44970         fails.
44971
44972 2008-04-15  Bruno Haible  <bruno@clisp.org>
44973
44974         * lib/trim.c (trim2): Fix argument of isspace() macro.
44975
44976 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
44977
44978         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
44979         to 0.
44980         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
44981
44982 2008-04-14  Bruno Haible  <bruno@clisp.org>
44983
44984         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
44985         AC_LANG_PROGRAM argument.
44986         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
44987         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
44988         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
44989         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
44990         * m4/math_h.m4 (gl_MATH_H): Likewise.
44991         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
44992         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
44993         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
44994         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
44995         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
44996         * m4/regex.m4 (gl_REGEX): Likewise.
44997         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
44998         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
44999         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45000         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
45001         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
45002         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
45003         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
45004         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
45005
45006 2008-04-14  Jim Meyering  <meyering@redhat.com>
45007
45008         test-strtod: fix typos: s/abs/fabs/
45009         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
45010
45011 2008-04-13  Bruno Haible  <bruno@clisp.org>
45012
45013         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
45014         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
45015         module is also used and while not building the reloc-wrapper.
45016
45017 2008-04-13  Bruno Haible  <bruno@clisp.org>
45018
45019         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
45020
45021 2008-04-13  Bruno Haible  <bruno@clisp.org>
45022
45023         Fix AIX compilation failure introduced on 2008-04-02.
45024         * tests/test-frexp.c (exp): Undefine before redefining.
45025         * tests/test-frexpl.c (exp): Likewise.
45026
45027 2008-04-13  Bruno Haible  <bruno@clisp.org>
45028
45029         Work around a HP-UX stdio bug.
45030         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
45031         * tests/test-ftello.c (main): Likewise.
45032         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
45033         * doc/posix-functions/ftello.texi: Likewise.
45034
45035 2008-04-13  Bruno Haible  <bruno@clisp.org>
45036
45037         Make test-signbit pass on HP-UX/hppa.
45038         * tests/test-signbit.c (minus_zerol): New variable.
45039         (test_signbitl): Use it.
45040
45041 2008-04-13  Bruno Haible  <bruno@clisp.org>
45042
45043         Make truncl work on OSF/1 4.0.
45044         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
45045         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
45046         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
45047         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
45048         HAVE_DECL_TRUNCL.
45049         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
45050         HAVE_DECL_TRUNCL.
45051         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
45052
45053 2008-04-13  Bruno Haible  <bruno@clisp.org>
45054
45055         * lib/unictype.h: Remove trailing comma from enumeration definitions.
45056
45057 2008-04-13  Bruno Haible  <bruno@clisp.org>
45058
45059         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
45060         expression, so as to avoid HP-UX 11 cc compiler bug.
45061
45062 2008-04-13  Bruno Haible  <bruno@clisp.org>
45063
45064         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
45065
45066 2008-04-13  Bruno Haible  <bruno@clisp.org>
45067
45068         * lib/git-merge-changelog.c: Remove empty declaration outside of
45069         functions.
45070
45071 2008-04-13  Bruno Haible  <bruno@clisp.org>
45072
45073         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
45074
45075 2008-04-13  Bruno Haible  <bruno@clisp.org>
45076
45077         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
45078         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
45079         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
45080         also if it exists but lacks definitions of the SHUT_* macros.
45081         * modules/sys_socket (Description): Update.
45082         Reported by Elbert Pol <e.pol@chello.nl>.
45083
45084 2008-04-13  Bruno Haible  <bruno@clisp.org>
45085
45086         * lib/localcharset.c (OS2): Don't redefine if already defined.
45087         Reported by Elbert Pol <e.pol@chello.nl>.
45088
45089 2008-04-13  Bruno Haible  <bruno@clisp.org>
45090
45091         * lib/binary-io.h [__EMX__]: Include <io.h>.
45092         Reported by Elbert Pol <e.pol@chello.nl>.
45093
45094 2008-04-12  Bruno Haible  <bruno@clisp.org>
45095
45096         * lib/fpucw.h: Enable the definitions also for x86_64.
45097         Needed for NetBSD/x86_64.
45098         Reported by Thomas Klausner <tk@giga.or.at>.
45099
45100 2008-04-12  Bruno Haible  <bruno@clisp.org>
45101
45102         * tests/test-strtod.c: Include isnand.h.
45103         (main): Use isnand instead of isnan.
45104         Reported by Jim Meyering.
45105
45106 2008-04-12  Bruno Haible  <bruno@clisp.org>
45107
45108         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
45109         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
45110
45111 2008-04-12  Jim Meyering  <meyering@redhat.com>
45112
45113         * m4/math_h.m4 (gl_MATH_H): Fix typos.
45114
45115 2008-04-12  Bruno Haible  <bruno@clisp.org>
45116
45117         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
45118         Reported by Elbert Pol <e.pol@chello.nl>.
45119
45120 2008-04-12  Eric Blake  <ebb9@byu.net>
45121
45122         Work around Solaris 10 math.h bug.
45123         * m4/math_h.m4 (gl_MATH_H): Check for bug.
45124         (gl_MATH_H_DEFAULTS): Set up default.
45125         * modules/math (Makefile.am): Replace new indicators.
45126         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
45127         * tests/test-math.c (main): Test this.
45128         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
45129         * doc/posix-headers/math.texi (math.h): Mention bug.
45130         Reported by Nelson H. F. Beebe and Jim Meyering.
45131
45132 2008-04-11  Bruno Haible  <bruno@clisp.org>
45133
45134         Adapt to future versions of Apple GCC.
45135         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
45136         Reported by Peter O'Gorman <peter@pogma.com>.
45137
45138 2008-04-11  Bruno Haible  <bruno@clisp.org>
45139
45140         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
45141
45142 2008-04-11  Bruno Haible  <bruno@clisp.org>
45143
45144         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
45145
45146         * modules/getaddrinfo-tests (Makefile.am): Define
45147         test_getaddrinfo_LDADD.
45148
45149 2008-04-11  Bruno Haible  <bruno@clisp.org>
45150
45151         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
45152         (init): Fix syntax error.
45153         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
45154         is declared.
45155
45156 2008-04-11  Bruno Haible  <bruno@clisp.org>
45157
45158         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
45159         * modules/glob (Depends-on): Add stdbool.
45160
45161 2008-04-11  Bruno Haible  <bruno@clisp.org>
45162
45163         * lib/trim.c: Include <string.h>.
45164
45165 2008-04-11  Eric Blake  <ebb9@byu.net>
45166
45167         Avoid compile failure on OS/2.
45168         * lib/regex_internal.h (internal_function): Disable optimization
45169         on OS/2 (__EMX__), where it caused compiler error.
45170         Reported by Elbert Pol.
45171
45172 2008-04-11  Bruno Haible  <bruno@clisp.org>
45173
45174         Flush the standard error stream before aborting. Needed on mingw.
45175         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
45176         * tests/test-array_list.c (ASSERT): Likewise.
45177         * tests/test-array_oset.c (ASSERT): Likewise.
45178         * tests/test-avltree_list.c (ASSERT): Likewise.
45179         * tests/test-avltree_oset.c (ASSERT): Likewise.
45180         * tests/test-avltreehash_list.c (ASSERT): Likewise.
45181         * tests/test-binary-io.c (ASSERT): Likewise.
45182         * tests/test-byteswap.c (ASSERT): Likewise.
45183         * tests/test-c-ctype.c (ASSERT): Likewise.
45184         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
45185         * tests/test-c-strcasestr.c (ASSERT): Likewise.
45186         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
45187         * tests/test-c-strstr.c (ASSERT): Likewise.
45188         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
45189         * tests/test-canonicalize.c (ASSERT): Likewise.
45190         * tests/test-carray_list.c (ASSERT): Likewise.
45191         * tests/test-ceilf1.c (ASSERT): Likewise.
45192         * tests/test-ceilf2.c (ASSERT): Likewise.
45193         * tests/test-ceill.c (ASSERT): Likewise.
45194         * tests/test-count-one-bits.c (ASSERT): Likewise.
45195         * tests/test-fbufmode.c (ASSERT): Likewise.
45196         * tests/test-fflush2.c (ASSERT): Likewise.
45197         * tests/test-floorf1.c (ASSERT): Likewise.
45198         * tests/test-floorf2.c (ASSERT): Likewise.
45199         * tests/test-floorl.c (ASSERT): Likewise.
45200         * tests/test-fopen.c (ASSERT): Likewise.
45201         * tests/test-fpending.c (ASSERT): Likewise.
45202         * tests/test-fprintf-posix.c (ASSERT): Likewise.
45203         * tests/test-fpurge.c (ASSERT): Likewise.
45204         * tests/test-freadable.c (ASSERT): Likewise.
45205         * tests/test-freadahead.c (ASSERT): Likewise.
45206         * tests/test-freading.c (ASSERT): Likewise.
45207         * tests/test-freadptr.c (ASSERT): Likewise.
45208         * tests/test-freadptr2.c (ASSERT): Likewise.
45209         * tests/test-freadseek.c (ASSERT): Likewise.
45210         * tests/test-freopen.c (ASSERT): Likewise.
45211         * tests/test-frexp.c (ASSERT): Likewise.
45212         * tests/test-frexpl.c (ASSERT): Likewise.
45213         * tests/test-fseek.c (ASSERT): Likewise.
45214         * tests/test-fseeko.c (ASSERT): Likewise.
45215         * tests/test-fstrcmp.c (ASSERT): Likewise.
45216         * tests/test-ftell.c (ASSERT): Likewise.
45217         * tests/test-ftello.c (ASSERT): Likewise.
45218         * tests/test-func.c (ASSERT): Likewise.
45219         * tests/test-fwritable.c (ASSERT): Likewise.
45220         * tests/test-fwriting.c (ASSERT): Likewise.
45221         * tests/test-getdelim.c (ASSERT): Likewise.
45222         * tests/test-getline.c (ASSERT): Likewise.
45223         * tests/test-i-ring.c (ASSERT): Likewise.
45224         * tests/test-iconv-utf.c (ASSERT): Likewise.
45225         * tests/test-iconv.c (ASSERT): Likewise.
45226         * tests/test-isfinite.c (ASSERT): Likewise.
45227         * tests/test-isnand.c (ASSERT): Likewise.
45228         * tests/test-isnanf.c (ASSERT): Likewise.
45229         * tests/test-isnanl.h (ASSERT): Likewise.
45230         * tests/test-ldexpl.c (ASSERT): Likewise.
45231         * tests/test-linked_list.c (ASSERT): Likewise.
45232         * tests/test-linkedhash_list.c (ASSERT): Likewise.
45233         * tests/test-localename.c (ASSERT): Likewise.
45234         * tests/test-lseek.c (ASSERT): Likewise.
45235         * tests/test-mbscasecmp.c (ASSERT): Likewise.
45236         * tests/test-mbscasestr1.c (ASSERT): Likewise.
45237         * tests/test-mbscasestr2.c (ASSERT): Likewise.
45238         * tests/test-mbscasestr3.c (ASSERT): Likewise.
45239         * tests/test-mbscasestr4.c (ASSERT): Likewise.
45240         * tests/test-mbschr.c (ASSERT): Likewise.
45241         * tests/test-mbscspn.c (ASSERT): Likewise.
45242         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
45243         * tests/test-mbspbrk.c (ASSERT): Likewise.
45244         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
45245         * tests/test-mbsrchr.c (ASSERT): Likewise.
45246         * tests/test-mbsspn.c (ASSERT): Likewise.
45247         * tests/test-mbsstr1.c (ASSERT): Likewise.
45248         * tests/test-mbsstr2.c (ASSERT): Likewise.
45249         * tests/test-mbsstr3.c (ASSERT): Likewise.
45250         * tests/test-memchr2.c (ASSERT): Likewise.
45251         * tests/test-memmem.c (ASSERT): Likewise.
45252         * tests/test-open.c (ASSERT): Likewise.
45253         * tests/test-printf-frexp.c (ASSERT): Likewise.
45254         * tests/test-printf-frexpl.c (ASSERT): Likewise.
45255         * tests/test-printf-posix.c (ASSERT): Likewise.
45256         * tests/test-quotearg.c (ASSERT): Likewise.
45257         * tests/test-rbtree_list.c (ASSERT): Likewise.
45258         * tests/test-rbtree_oset.c (ASSERT): Likewise.
45259         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
45260         * tests/test-round1.c (ASSERT): Likewise.
45261         * tests/test-roundf1.c (ASSERT): Likewise.
45262         * tests/test-roundl.c (ASSERT): Likewise.
45263         * tests/test-signbit.c (ASSERT): Likewise.
45264         * tests/test-sleep.c (ASSERT): Likewise.
45265         * tests/test-snprintf-posix.c (ASSERT): Likewise.
45266         * tests/test-snprintf.c (ASSERT): Likewise.
45267         * tests/test-sprintf-posix.c (ASSERT): Likewise.
45268         * tests/test-stat-time.c (ASSERT): Likewise.
45269         * tests/test-strcasestr.c (ASSERT): Likewise.
45270         * tests/test-strerror.c (ASSERT): Likewise.
45271         * tests/test-striconv.c (ASSERT): Likewise.
45272         * tests/test-striconveh.c (ASSERT): Likewise.
45273         * tests/test-striconveha.c (ASSERT): Likewise.
45274         * tests/test-strsignal.c (ASSERT): Likewise.
45275         * tests/test-strstr.c (ASSERT): Likewise.
45276         * tests/test-strtod.c (ASSERT): Likewise.
45277         * tests/test-trunc1.c (ASSERT): Likewise.
45278         * tests/test-trunc2.c (ASSERT): Likewise.
45279         * tests/test-truncf1.c (ASSERT): Likewise.
45280         * tests/test-truncf2.c (ASSERT): Likewise.
45281         * tests/test-truncl.c (ASSERT): Likewise.
45282         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
45283         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
45284         * tests/test-vasnprintf.c (ASSERT): Likewise.
45285         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
45286         * tests/test-vasprintf.c (ASSERT): Likewise.
45287         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
45288         * tests/test-vprintf-posix.c (ASSERT): Likewise.
45289         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
45290         * tests/test-vsnprintf.c (ASSERT): Likewise.
45291         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
45292         * tests/test-wcwidth.c (ASSERT): Likewise.
45293         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
45294         * tests/test-xprintf-posix.c (ASSERT): Likewise.
45295         * tests/test-xvasprintf.c (ASSERT): Likewise.
45296         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
45297         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
45298         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
45299         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
45300         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
45301         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
45302         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
45303         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
45304         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
45305         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
45306         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
45307         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
45308         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
45309         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
45310         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
45311         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
45312         * tests/unictype/test-block_list.c (ASSERT): Likewise.
45313         * tests/unictype/test-block_of.c (ASSERT): Likewise.
45314         * tests/unictype/test-block_test.c (ASSERT): Likewise.
45315         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
45316         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
45317         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
45318         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
45319         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
45320         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
45321         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
45322         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
45323         * tests/unictype/test-combining.c (ASSERT): Likewise.
45324         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
45325         * tests/unictype/test-digit.c (ASSERT): Likewise.
45326         * tests/unictype/test-mirror.c (ASSERT): Likewise.
45327         * tests/unictype/test-numeric.c (ASSERT): Likewise.
45328         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
45329         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
45330         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
45331         * tests/unictype/test-scripts.c (ASSERT): Likewise.
45332         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
45333         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
45334         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
45335         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
45336         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
45337         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
45338         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
45339         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
45340         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
45341         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
45342         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
45343         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
45344         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
45345         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
45346         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
45347         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
45348         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
45349         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
45350         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
45351         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
45352         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
45353         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
45354         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
45355         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
45356         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
45357         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
45358         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
45359         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
45360         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
45361         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
45362         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
45363         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
45364         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
45365         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
45366         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
45367         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
45368         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
45369         Reported by Eric Blake.
45370
45371 2008-04-11  Bruno Haible  <bruno@clisp.org>
45372
45373         * lib/wchar.in.h: Tweak comment.
45374
45375 2008-04-11  Bruno Haible  <bruno@clisp.org>
45376
45377         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
45378         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
45379         gl_COMMON.
45380         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
45381
45382 2008-04-11  Bruno Haible  <bruno@clisp.org>
45383
45384         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
45385
45386 2008-04-11  Simon Josefsson  <simon@josefsson.org>
45387
45388         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
45389         of attempting to use non-existing /dev/*random.  Based on patch
45390         from Adam Strzelecki <ono@java.pl> in
45391         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
45392
45393 2008-04-08  Bruno Haible  <bruno@clisp.org>
45394
45395         Add tentative support for emx+gcc.
45396         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
45397         * lib/fpurge.c (fpurge): Likewise.
45398         * lib/freadable.c (freadable): Likewise.
45399         * lib/freadahead.c (freadahead): Likewise.
45400         * lib/freading.c (freading): Likewise.
45401         * lib/freadptr.c (freadptr): Likewise.
45402         * lib/freadseek.c (freadptrinc): Likewise.
45403         * lib/fseeko.c (rpl_fseeko): Likewise.
45404         * lib/fseterr.c (fseterr): Likewise.
45405         * lib/fwritable.c (fwritable): Likewise.
45406         * lib/fwriting.c (fwriting): Likewise.
45407         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
45408
45409 2008-04-09  Eric Blake  <ebb9@byu.net>
45410
45411         Avoid some autoconf warnings.
45412         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
45413         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
45414         * m4/afs.m4 (gl_AFS): Likewise.
45415         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
45416         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
45417         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
45418         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
45419         (gl_INTEGER_TYPE_SUFFIX): Likewise.
45420         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
45421         (AC_CHECK_DECLS_ONCE): Likewise.
45422         Rename file...
45423         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
45424         gnulib-tool requires autoconf 2.59 or better.
45425         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
45426
45427 2008-04-08  Eric Blake  <ebb9@byu.net>
45428
45429         Use 'git describe --match' if present (added in git 1.5.5).
45430         * build-aux/git-version-gen: Limit result to tags that match 'v*'
45431         if possible.
45432
45433 2008-04-08  Bruno Haible  <bruno@clisp.org>
45434
45435         Add tentative support for OpenServer.
45436         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
45437         _ptr, _cnt.
45438         * lib/fpurge.c (fpurge): Likewise.
45439         * lib/freadable.c (freadable): Likewise.
45440         * lib/freadahead.c (freadahead): Likewise.
45441         * lib/freading.c (freading): Likewise.
45442         * lib/freadptr.c (freadptr): Likewise.
45443         * lib/freadseek.c (freadptrinc): Likewise.
45444         * lib/fseeko.c (rpl_fseeko): Likewise.
45445         * lib/fseterr.c (fseterr): Likewise.
45446         * lib/fwritable.c (fwritable): Likewise.
45447         * lib/fwriting.c (fwriting): Likewise.
45448         Reported by Roger Cornelius <rac@tenzing.org> and
45449         Brian K. White <brian@aljex.com>.
45450
45451 2008-04-06  Jim Meyering  <meyering@redhat.com>
45452
45453         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
45454
45455 2008-04-06  Bruno Haible  <bruno@clisp.org>
45456
45457         Avoid possible error with non-ASCII bytes in UTF-8 locales.
45458         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
45459         * tests/test-printf-posix.sh: Likewise.
45460         * tests/test-vfprintf-posix.sh: Likewise.
45461         * tests/test-vprintf-posix.sh: Likewise.
45462         * tests/test-xprintf-posix.sh: Likewise.
45463
45464 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45465
45466         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
45467         hide error from 'ls', needed on OS/2.
45468         Report by Elbert Pol <elbert.pol@gmail.com>.
45469
45470 2008-04-04  Eric Blake  <ebb9@byu.net>
45471
45472         Make test-fseeko.c failures meaningful.
45473         * tests/test-fseeko.c: Print line number on failure.
45474         * tests/test-fseek.c: Likewise.
45475         Reported by Nelson H. F. Beebe.
45476
45477         Improve strtod bug detection check.
45478         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
45479         required for Solaris 10.
45480         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
45481
45482 2008-04-04  Bruno Haible  <bruno@clisp.org>
45483
45484         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
45485         by m4/setenv.m4.
45486
45487 2008-04-03  Eric Blake  <ebb9@byu.net>
45488
45489         Ensure sane .version contents.
45490         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
45491         version string.
45492         * build-aux/git-version-gen: Improve documentation.
45493
45494         Make GNU make output nicer.
45495         * top/GNUmakefile [!_have-Makefile]: Add dependency on
45496         MAKECMDGOALS to enforce message for all command line targets.  Set
45497         srcdir for use in maint.mk.
45498
45499         Another maintainer tweak.
45500         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
45501         a target that regenerates version.
45502
45503 2008-04-03  Jim Meyering  <meyering@redhat.com>
45504
45505         vc-list-files: don't cause coreutils "make po-check" failure
45506         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
45507
45508 2008-04-03  Eric Blake  <ebb9@byu.net>
45509
45510         Allow VPATH usage of vc-list-files.
45511         * build-aux/vc-list-files (scriptversion): Add timestamp.
45512         (options): Add --help, --version, -C.
45513         (CVS): Support installed cvsu.
45514
45515 2008-04-02  Bruno Haible  <bruno@clisp.org>
45516
45517         Avoid some "statement with no effect" warnings from gcc.
45518         * tests/test-wctype.c (main): Explicitly ignore unused values.
45519         Reported by Jim Meyering.
45520
45521 2008-04-02  Jim Meyering  <meyering@redhat.com>
45522
45523         Avoid some warnings from "gcc -Wshadow".
45524         * tests/test-frexp.c (exp): Define to a different identifier.
45525         * tests/test-frexpl.c (exp): Likewise.
45526
45527 2008-04-03  Jim Meyering  <meyering@redhat.com>
45528
45529         bootstrap: remove dangling *.[ch] symlinks from lib
45530         * build-aux/bootstrap [dangling symlink removal]: Move find's
45531         -depth option to precede all others, to avoid a warning.
45532         Remove *.[ch] files too, and from "$source_base" (usually lib/).
45533
45534 2008-04-02  Bruno Haible  <bruno@clisp.org>
45535
45536         Avoid some warnings from "gcc -Wshadow".
45537         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
45538         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
45539         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
45540         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
45541         Reported by Jim Meyering.
45542
45543 2008-04-01  Bruno Haible  <bruno@clisp.org>
45544
45545         Fix test to work on IRIX 6.5 with cc.
45546         * tests/test-math.c (numeric_equal): New function.
45547         (main): Use it.
45548
45549 2008-04-01  Bruno Haible  <bruno@clisp.org>
45550
45551         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
45552
45553 2008-04-01  Bruno Haible  <bruno@clisp.org>
45554
45555         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
45556         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
45557         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
45558         (Depends-on): Remove math.
45559
45560         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
45561         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
45562         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
45563         (Depends-on): Remove math.
45564
45565         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
45566         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
45567         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
45568         (Depends-on): Remove math.
45569         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
45570         (Depends-on): Remove math.
45571
45572         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
45573         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
45574         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
45575         (Depends-on): Remove math.
45576         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
45577         (Depends-on): Remove math.
45578
45579         * tests/test-round1.c: Include nan.h.
45580         (main): Use NaNd instead of NAN.
45581         * modules/round-tests (Files): Add tests/nan.h.
45582
45583         * tests/test-trunc1.c: Include nan.h.
45584         (main): Use NaNd instead of NAN.
45585         * modules/trunc-tests (Files): Add tests/nan.h.
45586
45587         * tests/test-roundf1.c: Include nan.h.
45588         (main): Use NaNf instead of NAN.
45589         * modules/roundf-tests (Files): Add tests/nan.h.
45590
45591         * tests/test-truncf1.c: Include nan.h.
45592         (main): Use NaNf instead of NAN.
45593         * modules/truncf-tests (Files): Add tests/nan.h.
45594
45595         * tests/test-ceilf1.c: Include nan.h.
45596         (main): Use NaNf instead of NAN.
45597         * modules/ceilf-tests (Files): Add tests/nan.h.
45598
45599         * tests/test-floorf1.c: Include nan.h.
45600         (main): Use NaNf instead of NAN.
45601         * modules/floorf-tests (Files): Add tests/nan.h.
45602
45603         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
45604         (main): Use NaNf instead of NAN.
45605         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
45606
45607         * tests/test-isnand.c: Include nan.h instead of <math.h>.
45608         (main): Use NaNd instead of NAN.
45609         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
45610
45611         * tests/test-frexp.c: Include nan.h.
45612         (main): Use NaNd instead of NAN.
45613         * modules/frexp-tests (Files): Add tests/nan.h.
45614
45615         * lib/isnan.c: Don't include <math.h>.
45616         (FUNC): Don't use NAN macro.
45617         * modules/isnand-nolibm (Depends-on): Remove math.
45618         * modules/isnanf-nolibm (Depends-on): Remove math.
45619         * modules/isnanl (Depends-on): Remove math.
45620         * modules/isnanl-nolibm (Depends-on): Remove math.
45621
45622         * tests/nan.h: New file.
45623
45624 2008-04-01  Eric Blake  <ebb9@byu.net>
45625
45626         Fix typos.
45627         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
45628         values to be the right type.
45629
45630         For now, cater to gnulib strtod inaccuracies.
45631         * tests/test-strtod.c (main): Allow 1-ulp error on expected
45632         fractional results.  While not as nice from a QoI perspective, it
45633         is a quicker patch than correctly implementing decimal to binary
45634         rounding.
45635
45636 2008-03-31  Eric Blake  <ebb9@byu.net>
45637
45638         Guarantee a definition of NAN.
45639         * lib/math.in.h (NAN): Define if missing.
45640         * tests/test-math.c (main): Test it.
45641         * doc/posix-headers/math.texi (math.h): Document this.
45642         * lib/isnan.c (rpl_isnand): Use it.
45643         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
45644         * tests/test-floorf1.c (NaN): Likewise.
45645         * tests/test-frexp.c (NaN): Likewise.
45646         * tests/test-isnand.c (NaN): Likewise.
45647         * tests/test-isnanf.c (NaN): Likewise.
45648         * tests/test-round1.c (NaN): Likewise.
45649         * tests/test-roundf1.c (NaN): Likewise.
45650         * tests/test-snprintf-posix.h (NaN): Likewise.
45651         * tests/test-sprintf-posix.h (NaN): Likewise.
45652         * tests/test-trunc1.c (NaN): Likewise.
45653         * tests/test-truncf1.c (NaN): Likewise.
45654         * tests/test-vasnprintf-posix.c (NaN): Likewise.
45655         * tests/test-vasprintf-posix.c (NaN): Likewise.
45656         * modules/isnand-nolibm (Depends-on): Add math.
45657         * modules/isnanf-nolibm (Depends-on): Likewise.
45658         * modules/isnanl (Depends-on): Likewise.
45659         * modules/isnanl-nolibm (Depends-on): Likewise.
45660         * modules/snprintf-posix-tests (Depends-on): Likewise.
45661         * modules/sprintf-posix-tests (Depends-on): Likewise.
45662         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
45663         * modules/vsprintf-posix-tests (Depends-on): Likewise.
45664         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
45665         * modules/vasprintf-posix-tests (Depends-on): Likewise.
45666
45667 2008-03-31  Bruno Haible  <bruno@clisp.org>
45668
45669         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
45670         * doc/posix-functions/strtod.texi: Likewise.
45671
45672 2008-03-31  Bruno Haible  <bruno@clisp.org>
45673
45674         * tests/test-strtod.c (main): Don't use C99 syntax.
45675
45676 2008-03-31  Bruno Haible  <bruno@clisp.org>
45677
45678         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
45679         Reported by Eric Blake.
45680
45681 2008-03-31  Jim Meyering  <meyering@redhat.com>
45682
45683         Don't compare actual signbit return values.
45684         * tests/test-strtod.c (main): Rather, compare only their
45685         zero/non-zero nature.
45686
45687 2008-03-31  Eric Blake  <ebb9@byu.net>
45688
45689         More strtod documentation.
45690         * doc/posix-functions/strtod.texi (strtod): Interpret more test
45691         failures as distinct bugs.
45692
45693 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
45694
45695         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
45696         Problem reported by Erik Benada in
45697         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
45698
45699 2008-03-30  Bruno Haible  <bruno@clisp.org>
45700
45701         * tests/test-strtod.c: Add comments about which assertion fails on which
45702         platform.
45703         * doc/posix-functions/strtod.texi: Add info about many more platforms.
45704
45705 2008-03-30  Eric Blake  <ebb9@byu.net>
45706
45707         Test signbit behavior on zeros.
45708         * tests/test-signbit.c (test_signbitf): Add tests for zero.
45709         (test_signbitd, test_signbitl): Likewise.
45710
45711         More strtod touchups.
45712         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
45713         sign of negative underflow, for now.  Use .5, not .1.
45714         * doc/posix-functions/strtod.texi (strtod): Mention these
45715         limitations.
45716         Reported by Jim Meyering.
45717
45718 2008-03-30  Bruno Haible  <bruno@clisp.org>
45719
45720         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
45721         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
45722
45723 2008-03-30  Bruno Haible  <bruno@clisp.org>
45724
45725         Avoid failure when attempting to return empty iconv results on some
45726         platforms.
45727         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
45728         allocation, don't report ENOMEM when the resulting string is empty.
45729
45730 2008-03-30  Bruno Haible  <bruno@clisp.org>
45731
45732         Fix buffer overrun.
45733         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
45734         Don't consider the width for tmp_length. Check count against tmp_length
45735         before doing the padding. Ensure enough allocation during padding.
45736
45737 2008-03-30  Eric Blake  <ebb9@byu.net>
45738
45739         strtod touchups.
45740         * lib/strtod.c (strtod): Avoid compiler warnings.
45741         Reported by Jim Meyering.
45742
45743 2008-03-30  Bruno Haible  <bruno@clisp.org>
45744
45745         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
45746         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
45747         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
45748         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
45749         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
45750         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
45751         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
45752         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
45753
45754         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
45755         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
45756         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
45757         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
45758         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
45759         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
45760         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
45761         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
45762
45763         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
45764         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
45765         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
45766         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
45767         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
45768         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
45769         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
45770         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
45771
45772         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
45773         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
45774
45775         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
45776         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
45777
45778         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
45779         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
45780
45781         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
45782         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
45783         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
45784
45785         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
45786         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
45787         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
45788
45789         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
45790         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
45791         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
45792
45793         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
45794         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
45795         * modules/vasprintf (Depends-on): Add EOVERFLOW.
45796
45797         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
45798         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
45799         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
45800         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
45801         (Depends-on): Add EOVERFLOW.
45802         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
45803         (Depends-on): Add EOVERFLOW.
45804         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
45805         (Depends-on): Add EOVERFLOW.
45806         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
45807         (Depends-on): Add EOVERFLOW.
45808         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
45809         (Depends-on): Add EOVERFLOW.
45810         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
45811         (Depends-on): Add EOVERFLOW.
45812         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
45813         (Depends-on): Add EOVERFLOW.
45814         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
45815         (Depends-on): Add EOVERFLOW.
45816
45817         * lib/sprintf.c (EOVERFLOW): Remove fallback.
45818         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
45819         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
45820
45821         * lib/snprintf.c (EOVERFLOW): Remove fallback.
45822         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
45823         * modules/snprintf (Depends-on): Add EOVERFLOW.
45824
45825         * lib/poll.c (EOVERFLOW): Remove fallback.
45826         * modules/poll (Depends-on): Add EOVERFLOW.
45827
45828         * lib/getugroups.c (EOVERFLOW): Remove fallback.
45829         * modules/getugroups (Depends-on): Add EOVERFLOW.
45830
45831         * lib/getdelim.c (EOVERFLOW): Remove fallback.
45832         * modules/getdelim (Depends-on): Add EOVERFLOW.
45833
45834         * lib/ftell.c (EOVERFLOW): Remove fallback.
45835         * modules/ftell (Depends-on): Add EOVERFLOW.
45836
45837         * lib/fprintf.c (EOVERFLOW): Remove fallback.
45838         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
45839         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
45840
45841         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
45842
45843         * modules/EOVERFLOW-tests: New file.
45844         * tests/test-EOVERFLOW.c: New file.
45845
45846         * modules/EOVERFLOW: New file.
45847         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
45848
45849 2008-03-30  Bruno Haible  <bruno@clisp.org>
45850
45851         Fix bug introduced on 2007-06-10.
45852         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
45853         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
45854
45855 2008-03-30  Bruno Haible  <bruno@clisp.org>
45856
45857         Improve freadseek's efficiency after ungetc.
45858         * lib/freadseek.c: Include freadahead.h.
45859         (freadptrinc): New function, extracted from freadseek.
45860         (freadseek): Use it in a loop. Use freadahead to determine the number
45861         of loop iterations.
45862         * modules/freadseek (Depends-on): Add freadahead.
45863         (configure.ac): Require AC_C_INLINE.
45864
45865 2008-03-30  Bruno Haible  <bruno@clisp.org>
45866
45867         * lib/freadseek.c (freadseek): Don't ignore the return value of
45868         freadptr.
45869
45870 2008-03-29  Eric Blake  <ebb9@byu.net>
45871
45872         Add hex float support.
45873         * modules/strtod (Depends-on): Add c-ctype.
45874         (Link): Mention POW_LIB.
45875         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
45876         whitespace between 'e' and exponent.
45877         * tests/test-strtod.c (main): Enable hex float tests.
45878         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
45879         now provides.
45880
45881         Document various strtod bugs, with some fixes.
45882         * doc/posix-functions/strtod.texi (strtod): Document bugs with
45883         "-0x", "inf", "nan", and hex constants.
45884         * doc/posix-functions/atof.texi (atof): Likewise.
45885         * modules/stdlib (Makefile.am): Support strtod.
45886         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
45887         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
45888         detect additional strtod bugs.
45889         * lib/stdlib.in.h (rpl_strtod): Add declarations.
45890         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
45891         bool where appropriate.  Parse 'inf' and 'nan'.
45892         * tests/test-strtod.c: New file.
45893         * modules/strtod (Depends-on): Add stdbool, stdlib.
45894         (configure.ac): Turn on module indicator.
45895         * modules/strtod-tests: New module.
45896
45897 2008-03-29  Eric Blake  <ebb9@byu.net>
45898
45899         Fix ftell on mingw.
45900         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
45901         * modules/ftell-tests (Depends-on): Add binary-io.
45902         * modules/ftello-tests (Depends-on): Likewise.
45903         * tests/test-ftell.c (main): Enhance test to cover behavior after
45904         ungetc.  Enforce binary mode.
45905         * tests/test-ftello.c (main): Likewise.
45906
45907         Pass test-freadseek on cygwin.
45908         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
45909         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
45910         ungetc buffer.
45911
45912         * tests/test-fflush2.c (main): Fix typo.
45913
45914 2008-03-29  Bruno Haible  <bruno@clisp.org>
45915
45916         * tests/test-fflush2.c (main): Temporarily disable the contents of
45917         this test.
45918         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
45919         Reported by Eric Blake.
45920
45921 2008-03-28  Simon Josefsson  <simon@josefsson.org>
45922
45923         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
45924         (GC_SHA224_DIGEST_SIZE): Add.
45925
45926         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
45927         (gc_hash_digest_length): Likewise.
45928         (gc_hash_buffer): Likewise.
45929
45930 2008-03-25  Bruno Haible  <bruno@clisp.org>
45931
45932         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
45933         detail which gettext release to use.
45934         Reported by Simon Josefsson.
45935
45936 2008-03-26  Jim Meyering  <meyering@redhat.com>
45937
45938         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
45939         * modules/gnumakefile (clean-GNUmakefile): Also, use
45940         test ... && ... || : syntax rather than if-then ... fi.
45941
45942         gnumakefile: Don't double-quote-expand $(VPATH) value.
45943         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
45944
45945 2008-03-24  Eric Blake  <ebb9@byu.net>
45946
45947         Alter GNUmakefile to install into top directory.
45948         * modules/maintainer-makefile: Split, and add dependency...
45949         * modules/gnumakefile: to this new module.
45950         * build-aux/GNUmakefile: Move...
45951         * top/GNUmakefile: ...here.
45952         * build-aux/maint.mk: Move...
45953         * top/maint.mk: ...here.
45954         * MODULES.html.sh (Support for maintaining...): Document new
45955         module.
45956
45957 2008-03-23  Bruno Haible  <bruno@clisp.org>
45958
45959         * gnulib-tool: New options --vc-files, --no-vc-files.
45960         (func_usage): Document them.
45961         (vc_files): New variable.
45962         (func_import): Consider vc_files.
45963         (func_create_testdir): Set vc_files to empty.
45964         Suggested by Jim Meyering and Karl Berry.
45965
45966 2008-03-23  Bruno Haible  <bruno@clisp.org>
45967
45968         Fix regex compilation error on HP-UX 11.
45969         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
45970         * modules/regex (Files): Add m4/mbstate_t.m4.
45971         Reported by Ton Voon <ton.voon@altinity.com>.
45972
45973 2008-03-23  Bruno Haible  <bruno@clisp.org>
45974
45975         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
45976
45977 2008-03-23  Eric Blake  <ebb9@byu.net>
45978             Bruno Haible  <bruno@clisp.org>
45979
45980         Install files from top/ in the destination directory.
45981         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
45982         augmentation also for the files from top/.
45983         (func_import, func_create_testdir): Rewrite file names:
45984         top/filename -> filename.
45985
45986 2008-03-23  Bruno Haible  <bruno@clisp.org>
45987
45988         Tweak "gnulib --version" output.
45989         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
45990
45991 2008-03-23  Bruno Haible  <bruno@clisp.org>
45992
45993         Tweak "gnulib --version" output.
45994         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
45995         rather than contents of ChangeLog, when possible.
45996
45997 2008-03-21  Eric Blake  <ebb9@byu.net>
45998
45999         More --version tweaks.
46000         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
46001         date of last ChangeLog entry.
46002
46003 2008-03-21  Jim Meyering  <meyering@redhat.com>
46004
46005         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
46006
46007 2008-03-20  Eric Blake  <ebb9@byu.net>
46008
46009         VPATH fix.
46010         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
46011
46012 2008-03-20  Simon Josefsson  <simon@josefsson.org>
46013
46014         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
46015         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
46016
46017 2008-03-20  Eric Blake  <ebb9@byu.net>
46018
46019         Sync GNUmakefile with coreutils.
46020         * build-aux/GNUmakefile (have-Makefile): Rename...
46021         (_have-Makefile): ...to this, for namespace consideration.
46022         (GNUmakefile.cfg): Include, if present.
46023         (_autoreconf): Define a default.
46024         (_is-dist-target): New rule for rebuilds to pick up intra-release
46025         version.
46026         (maint-cfg.mk): Rename...
46027         (cfg.mk): ...to this.
46028
46029 2008-03-18  Jim Meyering  <meyering@redhat.com>
46030
46031         New script and module: mktempd
46032         * MODULES.html.sh (maint+release support): Add mktempd.
46033         * build-aux/mktempd: New file.
46034         * modules/mktempd: New file.
46035
46036 2008-03-15  Jim Meyering  <meyering@redhat.com>
46037
46038         Undo last change.
46039         * lib/sha1.c, lib/md5.c: 63 != ~63.
46040         Reported by Andreas Schwab.
46041
46042         sha1.c, md5.c: Hoist a redundant expression.
46043         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
46044         "ctx->buflen" only once, before calling *_process_block.
46045         * lib/md5.c (md5_process_bytes): Likewise.
46046
46047 2008-03-14  Eric Blake  <ebb9@byu.net>
46048
46049         Bump copyright year in files generated by gnulib-tool.
46050         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
46051         gnulib-tool, rather than hard-coding it.
46052
46053         Fix 'gnulib-tool --version' output to work with git.
46054         * gnulib-tool (func_gnulib_dir): New function, extracted from...
46055         (startup): ...here.
46056         (func_version): Use it to invoke git-version-gen, rather than
46057         relying on CVS keyword expansion.  Modernize wording.
46058         (cvsdatestamp, last_checkin_date, version): Kill unused
46059         variables.
46060
46061 2008-03-12  Jim Meyering  <meyering@redhat.com>
46062
46063         Recognize optional cast of the argument to free.
46064         * build-aux/useless-if-before-free: Update regexps.
46065
46066         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
46067
46068 2008-03-11  Bruno Haible  <bruno@clisp.org>
46069
46070         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
46071         by a single package.
46072         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
46073         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
46074         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
46075         Reported by Sam Steingold <sds@gnu.org>.
46076
46077 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
46078
46079         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
46080         repositories.
46081
46082 2008-03-11  Bruno Haible  <bruno@clisp.org>
46083
46084         Avoid conflicts between local macro definitions.
46085         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
46086         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
46087
46088 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
46089             Bruno Haible  <bruno@clisp.org>
46090
46091         Make va_copy work with some version of xlc on AIX 5.1.
46092         * lib/stdarg.in.h: New file.
46093         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
46094         On AIX, use a <stdarg.h> file substitute.
46095         * modules/stdarg (Files): Add lib/stdarg.in.h.
46096         (Depends-on): Add include_next.
46097         (Makefile.am): Build a stdarg.h substitute if requested.
46098         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
46099
46100 2008-03-10  Bruno Haible  <bruno@clisp.org>
46101
46102         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
46103         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
46104         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
46105
46106 2008-03-10  Bruno Haible  <bruno@clisp.org>
46107
46108         * modules/stdlib (Depends-on): Add include_next, remove
46109         absolute-header.
46110
46111 2008-03-09  Bruno Haible  <bruno@clisp.org>
46112
46113         * lib/freadahead.h (freadahead): Document more precisely.
46114         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
46115         the sum of both buffer sizes.
46116         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
46117         * NEWS: Document the change.
46118
46119 2008-03-09  Bruno Haible  <bruno@clisp.org>
46120
46121         Extend freadptr to return also the buffer size.
46122         * lib/freadptr.h (freadptr): Add sizep argument.
46123         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
46124         (freadptr): Add sizep argument. Determine buffer size like freadahead
46125         does.
46126         * tests/test-freadptr.c: Don't include freadahead.h.
46127         (main): Adapt for new calling convention of freadptr.
46128         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
46129         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
46130         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
46131         tests/test-freadptr2.sh.
46132         (Depends): Remove freadahead.
46133         (TESTS): Add test-freadptr2.sh.
46134         (check_PROGRAMS): Add test-freadptr2.
46135
46136 2008-03-09  Bruno Haible  <bruno@clisp.org>
46137
46138         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
46139         Report and solution by Simon Josefsson.
46140
46141 2008-03-06  Bruno Haible  <bruno@clisp.org>
46142
46143         Make fflush after ungetc work on BSD platforms.
46144         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
46145         * tests/test-fflush2.c: New file.
46146         * tests/test-fflush2.sh: New file.
46147         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
46148         tests/test-fflush2.c.
46149         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
46150         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
46151
46152 2008-03-06  Eric Blake  <ebb9@byu.net>
46153
46154         Likewise for ftello.
46155         * modules/ftello (Dependencies): Add extensions.
46156         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
46157
46158 2008-03-06  Bruno Haible  <bruno@clisp.org>
46159
46160         * modules/fseeko (Dependencies): Add extensions.
46161         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
46162         Needed on glibc systems.
46163
46164 2008-03-06  Bruno Haible  <bruno@clisp.org>
46165
46166         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
46167         email address.
46168         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
46169
46170 2008-03-06  Bruno Haible  <bruno@clisp.org>
46171
46172         * users.txt: Add libgnupdf.
46173
46174 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
46175
46176         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
46177         (Header File Substitutes, Function Substitutes,
46178         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
46179         (Build robot for gnulib): Fix typo.
46180
46181 2008-03-06  Bruno Haible  <bruno@clisp.org>
46182
46183         * doc/gnulib-tool.texi (VCS Issues): Small updates.
46184         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
46185
46186 2008-03-06  Bruno Haible  <bruno@clisp.org>
46187
46188         * doc/func.texi: New file, extracted from doc/gnulib.texi.
46189         * doc/gnulib.texi: Include it.
46190
46191 2008-03-06  Simon Josefsson  <simon@josefsson.org>
46192
46193         * modules/func (License): Change license to unlimited; there was
46194         no LGPL parts in the module anyway.
46195
46196 2008-03-06  Simon Josefsson  <simon@josefsson.org>
46197
46198         * modules/__func__: Renamed to modules/func.
46199         * modules/__func__-tests: Renamed to modules/func-tests.
46200         * tests/test-__func__.c: Renamed to tests/test-func.c.
46201         * m4/__func__.m4: Renamed to m4/func.m4.
46202         * doc/gnulib.texi (__func__): Section renamed to func.
46203         Suggested by Eric Blake <ebb9@byu.net>.
46204
46205 2008-03-06  Simon Josefsson  <simon@josefsson.org>
46206
46207         * doc/gnulib.texi (__func__): Use C99 terminology when talking
46208         about __func__.  Make example self-contained.  Suggested by Eric
46209         Blake <ebb9@byu.net>.
46210
46211         * tests/test-__func__.c (main): Avoid extraneous () around __func.
46212         Suggested by Eric Blake <ebb9@byu.net>.
46213
46214 2008-03-06  Simon Josefsson  <simon@josefsson.org>
46215
46216         * modules/__func__: New file.
46217         * modules/__func__-tests: New file.
46218         * tests/test-__func__.c: New file.
46219         * m4/__func__.m4: New file.
46220         * doc/gnulib.texi (__func__): Document __func__ module.
46221
46222 2008-03-05  Simon Josefsson  <simon@josefsson.org>
46223
46224         * modules/byteswap (License): Re-license as LGPLv2+.
46225
46226 2008-03-05  Simon Josefsson  <simon@josefsson.org>
46227
46228         * doc/Makefile: Add pdf target.
46229
46230 2008-03-05  Simon Josefsson  <simon@josefsson.org>
46231
46232         * modules/inline (License): Use 'unlimited', since there are only
46233         *.m4 files in this module.
46234
46235 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
46236             Bruno Haible  <bruno@clisp.org>
46237
46238         Add support for HP C 7.1 on OpenVMS 8.3.
46239         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
46240
46241 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
46242
46243         Update VMS specifics.
46244         * lib/getopt.c [VMS]: Remove include of unixlib.h.
46245
46246 2008-03-02  Jim Meyering  <meyering@redhat.com>
46247
46248         Remove the last dependency on the "free" module.
46249         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
46250         Reported by Bob Proulx.
46251
46252         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
46253
46254         Remove useless "if" tests before free.  Deprecate "free" module.
46255         * doc/posix-functions/free.texi: Mention that this
46256         module is no longer useful.
46257         * modules/free (Notice): Say this module is obsolete.
46258         * modules/readutmp (Depends-on): Remove free.
46259         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
46260         * lib/putenv.c (putenv): Likewise.
46261         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
46262         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
46263         * tests/test-c-strcasestr.c (main): Likewise.
46264         * tests/test-c-strstr.c (main): Likewise.
46265         * tests/test-mbscasestr1.c (main): Likewise.
46266         * tests/test-mbscasestr2.c (main): Likewise.
46267         * tests/test-mbsstr1.c (main): Likewise.
46268         * tests/test-mbsstr2.c (main): Likewise.
46269         * tests/test-memmem.c (main): Likewise.
46270         * tests/test-strcasestr.c (main): Likewise.
46271         * tests/test-striconv.c (main): Likewise.
46272         * tests/test-striconveh.c (main): Likewise.
46273         * tests/test-striconveha.c (main): Likewise.
46274         * tests/test-strstr.c (main): Likewise.
46275
46276         * build-aux/git-version-gen: Adjust a comment and the Usage string.
46277
46278         bootstrap: sync from coreutils again
46279         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
46280
46281 2008-03-01  Jim Meyering  <meyering@redhat.com>
46282
46283         bootstrap: sync from coreutils
46284         * build-aux/bootstrap (update_po_files): Copy a .po file into place
46285         also when the target doesn't exist.
46286
46287 2008-03-01  Eric Blake  <ebb9@byu.net>
46288
46289         Fix bugs in last patch.
46290         * lib/memchr2.c (memchr2): Fix typo.
46291         * tests/test-memchr2.c: Test previous bug, and don't use GNU
46292         extension.
46293         Reported by Bruce Korb.
46294
46295         New module 'memchr2'.
46296         * modules/memchr2: New file.
46297         * modules/memchr2-tests: Likewise.
46298         * lib/memchr2.h: Likewise.
46299         * lib/memchr2.c: Likewise, based on memchr.c.
46300         * tests/test-memchr2.c: New test.
46301         * MODULES.html.sh (String handling): Add memchr2.
46302
46303 2008-02-29  Bruno Haible  <bruno@clisp.org>
46304
46305         * modules/freadseek-tests: New file.
46306         * tests/test-freadseek.sh: New file.
46307         * tests/test-freadseek.c: New file.
46308
46309         New module 'freadseek'.
46310         * modules/freadseek: New file.
46311         * lib/freadseek.h: New file.
46312         * lib/freadseek.c: New file.
46313         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
46314
46315 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
46316
46317         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
46318         wydawca.
46319
46320         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
46321         program_invocation_name and program_invocation_short_name are
46322         present.
46323
46324 2008-02-28  Bruno Haible  <bruno@clisp.org>
46325
46326         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
46327         * tests/test-freadptr.sh: Also test non-seekable stdin.
46328
46329 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
46330
46331         * build-aux/bootstrap (source_base, m4_base)
46332         (doc_base, tests_base): New variables.
46333         (gnulib_tool_options): Do not hardcode base directories, use
46334         the above variables instead.
46335
46336 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
46337
46338         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
46339
46340 2008-02-28  Bruno Haible  <bruno@clisp.org>
46341
46342         * modules/freadptr-tests: New file.
46343         * tests/test-freadptr.sh: New file.
46344         * tests/test-freadptr.c: New file.
46345
46346         New module 'freadptr'.
46347         * modules/freadptr: New file.
46348         * lib/freadptr.h: New file.
46349         * lib/freadptr.c: New file.
46350         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
46351
46352 2008-02-26  Karl Berry  <karl@freefriends.org>
46353
46354         Sync from Libtool:
46355         * libltdl/argz.c (argz_add, argz_count): New functions.
46356         * libltdl/argz.in.h: Declare them.
46357         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
46358
46359 2008-02-22  Bruno Haible  <bruno@clisp.org>
46360
46361         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
46362         is a pointer type.  Needed for HP-UX 10.
46363         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
46364         * doc/posix-functions/gmtime_r.texi: Likewise.
46365         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
46366
46367 2008-02-24  Bruno Haible  <bruno@clisp.org>
46368
46369         * modules/environ-tests: New file.
46370         * tests/test-environ.c: New file.
46371
46372         New module 'environ'.
46373         * modules/environ: New file.
46374         * lib/unistd.in.h (environ): New declaration.
46375         * m4/environ.m4: New file.
46376         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
46377         after use.
46378         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
46379         HAVE_DECL_ENVIRON.
46380         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
46381         HAVE_DECL_ENVIRON.
46382         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
46383         wrong claim that 'environ' is missing on some systems.
46384         * modules/execute (Depends-on): Add environ.
46385         * lib/execute.c (environ): Remove fallback declaration.
46386         * modules/pipe (Depends-on): Add environ.
46387         * lib/pipe.c (environ): Remove fallback declaration.
46388         * modules/setenv (Depends-on): Add environ.
46389         * lib/setenv.c (environ): Remove fallback declaration.
46390         * modules/unsetenv (Depends-on): Add environ.
46391         * lib/unsetenv.c (environ): Remove fallback declaration.
46392         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
46393         m4/environ.m4.
46394         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
46395         (gl_PREREQ_UNSETENV): Likewise.
46396
46397 2008-02-24  Bruno Haible  <bruno@clisp.org>
46398
46399         * doc/posix-functions/environ.texi: Document the MacOS X problem.
46400
46401 2008-02-20  Bob Proulx  <bob@proulx.com>
46402
46403         Enable use of older two part flavor 'git describe'.
46404         * build-aux/git-version-gen: If using the older two part flavor of
46405         git version then recreate the third part now present in the
46406         newer three part flavor of git describe.
46407
46408 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
46409
46410         * lib/fts.c (fts_build): Typo correction to comment.
46411
46412 2008-02-17  Bruno Haible  <bruno@clisp.org>
46413
46414         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
46415         generating no-op conflicts.
46416
46417 2008-02-17  Bruno Haible  <bruno@clisp.org>
46418
46419         Speed up by 10%.
46420         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
46421         result_entries, rather than an index-based loop.
46422
46423 2008-02-17  Bruno Haible  <bruno@clisp.org>
46424
46425         Speed up by 25%.
46426         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
46427         'hashcode_cached'.
46428         (entry_create): New function.
46429         (entry_hashcode): Use the cached hashcode if possible.
46430         (read_changelog_file, try_split_merged_entry): Use entry_create.
46431
46432 2008-02-17  Bruno Haible  <bruno@clisp.org>
46433
46434         Speed up from O(n^2) to O(n) for long ChangeLog files.
46435         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
46436         (read_changelog_file): Change implementation of entries_reversed list
46437         to rbtreehash.
46438         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
46439
46440 2008-02-17  Bruno Haible  <bruno@clisp.org>
46441
46442         New option --split-merged-entry.
46443         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
46444         (find_paragraph_end, try_split_merged_entry): New functions.
46445         (long_options): Add option --split-merged-entry.
46446         (usage): Document option --split-merged-entry.
46447         (main): Implement option --split-merged-entry.
46448         Reported by Eric Blake.
46449
46450 2008-02-17  Bruno Haible  <bruno@clisp.org>
46451
46452         * lib/git-merge-changelog.c: Include c-strstr.h.
46453         (main): Support the "git pull --rebase" situation.
46454         * modules/git-merge-changelog (Depends-on): Add c-strstr.
46455         Reported by Eric Blake.
46456
46457 2008-02-16  Eric Blake  <ebb9@byu.net>
46458
46459         Avoid doubling \ in common case of "c-maybe" quoting style.
46460         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
46461         eliding outer quotes.
46462         * lib/quotearg.h: Document this.
46463         * tests/test-quotearg.c (result_strings, inputs, results_g)
46464         (flag_results, locale_results): Test it by adding a new string to
46465         each test group.
46466         (compare_strings): Test new string.
46467
46468 2008-02-13  Eric Blake  <ebb9@byu.net>
46469
46470         Avoid trigraph quoting in default output.
46471         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
46472         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
46473         unless explicitly requested.
46474         * tests/test-quotearg.c (flag_results, main): Add additional tests.
46475
46476 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
46477
46478         Don't rely on signed integer overflowing to negative value.
46479         * lib/getugroups.c (getugroups): Include <limits.h>.
46480         Instead, compare against INT_MAX, and increment only if the test passes.
46481
46482 2008-02-13  Jim Meyering  <meyering@redhat.com>
46483         and Eric Blake  <ebb9@byu.net>
46484
46485         Avoid shadowing warning and compile errors on Linux.
46486         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
46487         forwarding macros on Linux.
46488         (dcgettext): Define a stub, for Linux.
46489         (results_g, main): Avoid warnings.
46490
46491 2008-02-12  Eric Blake  <ebb9@byu.net>
46492
46493         Silence warning in last patch.
46494         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
46495
46496         Quotearg part 4: add tests, fix c-maybe colon quoting.
46497         * lib/quotearg.h: Improve documentation.
46498         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
46499         escapes when adding outer quotes.  When quoting trigraphs, use
46500         valid C notation.  When quoting NUL, omit extra characters if next
46501         character is not digit.  Alter prototype.
46502         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
46503         callers.
46504         * modules/quotearg-tests: New module.
46505         * tests/test-quotearg.c: New test.
46506
46507 2008-02-07  Eric Blake  <ebb9@byu.net>
46508
46509         Quotearg part 3: add flag to control outer quote elision.
46510         * lib/quotearg.h (c_maybe_quoting_style): New style.
46511         (enum quoting_flags): Better documentation of flags.
46512         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
46513         c-maybe style.
46514         (quotearg_buffer_restyled): Handle new flag to elide outer
46515         quotes.
46516
46517         Quotearg part 2: add flag that can control NUL elision.
46518         * lib/quotearg.h (set_quoting_flags): New prototype.
46519         * lib/quotearg.c (struct quoting_options): Add flag field.
46520         (set_quoting_flags): New function.
46521         (quotearg_buffer_restyled): Add flags parameter.
46522         (quotearg_alloc_mem): Set the flag if length cannot be returned.
46523         (quotearg_n_options): Set the flag, since length cannot be
46524         returned.
46525         (quoting_options_from_style): Default flags correctly.
46526
46527         Quotearg part 1: more wrappers, restore quotearg_char state.
46528         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
46529         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
46530         (quotearg_colon_mem): New wrappers.
46531         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
46532         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
46533         functions.
46534         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
46535         (quotearg_colon_mem): New functions.
46536
46537 2008-02-11  Bruno Haible  <bruno@clisp.org>
46538
46539         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
46540         library in the current directory: it does not work with parallel make.
46541         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46542
46543 2008-02-11  Bruno Haible  <bruno@clisp.org>
46544
46545         * .gitattributes: New file.
46546
46547 2008-02-11  Jim Meyering  <meyering@redhat.com>
46548
46549         useless-if-before-free: Fix reversed exit values.
46550         * build-aux/useless-if-before-free: Use correct values
46551         for EXIT_MATCH and EXIT_NO_MATCH.
46552
46553         * build-aux/useless-if-before-free: Close stdout carefully.
46554
46555 2008-02-10  Bruno Haible  <bruno@clisp.org>
46556
46557         New module 'git-merge-changelog'.
46558         * modules/git-merge-changelog: New file.
46559         * lib/git-merge-changelog.c: New file.
46560
46561 2008-02-10  Jim Meyering  <meyering@redhat.com>
46562
46563         useless-if-before-free: New option: --list (-l).
46564
46565         useless-if-before-free: Don't exit immediately upon open failure.
46566         * build-aux/useless-if-before-free: Exit 2 for errors.
46567         Upon failure to open a file, don't exit immediately.
46568         Rather, just warn and continue with any remaining files.
46569
46570 2008-02-10  Bruno Haible  <bruno@clisp.org>
46571
46572         New abstract list operation 'node_set_value'.
46573         * lib/gl_list.h (gl_list_node_set_value): New function.
46574         (struct gl_list_implementation): New field node_set_value.
46575         * lib/gl_list.c (gl_list_node_set_value): New function.
46576         * lib/gl_array_list.c (gl_array_node_set_value): New function.
46577         (gl_array_list_implementation): Update.
46578         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
46579         (gl_carray_list_implementation): Update.
46580         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
46581         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
46582         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
46583         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
46584         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
46585         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
46586         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
46587         Update.
46588         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
46589         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
46590         (gl_sublist_list_implementation): Update.
46591
46592 2008-02-10  Bruno Haible  <bruno@clisp.org>
46593
46594         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
46595         Needed when ELEMENT is #defined to 'some_type *'.
46596
46597 2008-02-10  Jim Meyering  <meyering@redhat.com>
46598
46599         New script and module: useless-if-before-free
46600         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
46601         * build-aux/useless-if-before-free: New file.
46602         * modules/useless-if-before-free: New file.
46603
46604         * build-aux/gitlog-to-changelog: Use committer date, not author date.
46605
46606         xstrtol_error: Fix typo.
46607         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
46608         s/exit_failure/exit_status/.
46609
46610 2008-02-09  Jim Meyering  <meyering@redhat.com>
46611
46612         New script and module: gitlog-to-changelog
46613         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
46614         * modules/gitlog-to-changelog: New file.
46615         * build-aux/gitlog-to-changelog: New file.
46616
46617 2008-02-08  Jim Meyering  <meyering@redhat.com>
46618
46619         Avoid two "parameter unused" warnings.
46620         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
46621         Mark "st" as used.
46622
46623         Use "git COMMAND", not "git-COMMAND".
46624         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
46625         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
46626         * build-aux/git-version-gen: Use "git status", not "git-status".
46627
46628 2008-02-07  Bruno Haible  <bruno@clisp.org>
46629
46630         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
46631         Avoids a crash on Windows Vista.
46632         Reported by Adam Strzelecki <ono@java.pl> via
46633         Simon Josefsson <simon@josefsson.org>.
46634
46635 2008-02-06  Bruno Haible  <bruno@clisp.org>
46636
46637         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
46638         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
46639         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
46640         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
46641         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
46642         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46643         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
46644         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
46645         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46646         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46647         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46648         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46649         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46650         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46651         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46652         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
46653         left-adjust flag.
46654         * tests/test-snprintf-posix.h (test_function): Likewise.
46655         * tests/test-sprintf-posix.h (test_function): Likewise.
46656         * tests/test-vasprintf-posix.c (test_function): Likewise.
46657         * doc/posix-functions/fprintf.texi: Update.
46658         * doc/posix-functions/printf.texi: Update.
46659         * doc/posix-functions/snprintf.texi: Update.
46660         * doc/posix-functions/sprintf.texi: Update.
46661         * doc/posix-functions/vfprintf.texi: Update.
46662         * doc/posix-functions/vprintf.texi: Update.
46663         * doc/posix-functions/vsnprintf.texi: Update.
46664         * doc/posix-functions/vsprintf.texi: Update.
46665         Reported by Peter Fales <psfales@alcatel-lucent.com>.
46666
46667 2008-02-06  Bruno Haible  <bruno@clisp.org>
46668
46669         Fix bug introduced on 2008-01-26.
46670         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
46671
46672 2008-02-06  Bruno Haible  <bruno@clisp.org>
46673
46674         Fix bug introduced on 2007-06-10.
46675         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
46676         !NEED_PRINTF_FLAG_ZERO.
46677
46678 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
46679
46680         getloadavg: use libperfstat on AIX5
46681         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
46682
46683 2008-02-03  Bruno Haible  <bruno@clisp.org>
46684
46685         * lib/diffseq.h: Add comments about required #includes.
46686         Reported by Michael Biggs <gnulib@doubleplum.net>.
46687
46688 2008-02-01  Bruno Haible  <bruno@clisp.org>
46689
46690         * users.txt: Add gnuit.
46691
46692 2008-01-31  Bruno Haible  <bruno@clisp.org>
46693
46694         * lib/md4.c (set_uint32): Mark as inline.
46695         * lib/md5.c (set_uint32): Likewise.
46696         * lib/sha1.c (set_uint32): Likewise.
46697         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
46698         * m4/md5.m4 (gl_MD5): Likewise.
46699         * m4/sha1.m4 (gl_SHA1): Likewise.
46700
46701 2008-01-31  Jim Meyering  <meyering@redhat.com>
46702
46703         Use "sizeof VAR", rather than a literal "4".
46704         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
46705         * lib/md4.c (md4_read_ctx): Likewise.
46706         * lib/sha1.c (sha1_read_ctx): Likewise.
46707
46708 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46709
46710         * tests/test-sha1.c: New file, based on test-md5.c.
46711
46712         * modules/crypto/sha1-tests: New file.
46713
46714 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46715
46716         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
46717
46718 2008-01-31  Jim Meyering  <meyering@redhat.com>
46719
46720         Prefer "sizeof v" over the equivalent "4".
46721         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
46722         * lib/md5.c (set_uint32): Likewise.
46723         * lib/sha1.c (set_uint32): Likewise.
46724
46725 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46726
46727         * lib/sha1.c (set_uint32): Mark function as static.
46728
46729 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46730
46731         md2: clarify comments to say that alignment is not required.
46732         * lib/md2.h: Remove warning about alignment in comment.
46733         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
46734         never been required.
46735
46736 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46737
46738         md4: adapt alignment constraint fix from sha1.
46739         * lib/md4.c (set_uint32): New function, from sha1.c
46740         (md4_read_ctx): Use it.
46741         (md4_finish_ctx): Doc fix.
46742         * lib/md4.h: Doc fix.
46743
46744 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46745
46746         md5: adapt alignment constraint fix from sha1.
46747         * lib/md5.c (set_uint32): New function, from sha1.c
46748         (md5_read_ctx): Use it.
46749         (md5_finish_ctx): Doc fix.
46750         * lib/md5.h: Doc fix.
46751
46752 2008-01-30  Peter Palfrader  <weasel@debian.org>
46753
46754         sha1: remove the result buffer alignment constraint
46755         * lib/sha1.c (set_uint32): New function.
46756         (sha1_read_ctx): Rewrite to remove the result buffer alignment
46757         constraint.
46758         (sha1_finish_ctx): Remove comment warning about alignment constraint.
46759         * lib/sha1.h: Likewise.
46760
46761 2008-01-30  Andreas Schwab  <schwab@suse.de>
46762             Bruno Haible  <bruno@clisp.org>
46763
46764         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
46765         correct definition of LDBL_MIN_EXP.
46766
46767 2008-01-30  Karl Berry  <karl@gnu.org>
46768
46769         * config/srclist-update: try to preserve x bit on updates.
46770         * config/srclistvars.sh: update for karl.
46771
46772 2008-01-29  Jim Meyering  <meyering@redhat.com>
46773
46774         vasnprintf.c: Avoid warning about unused label
46775         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
46776         "overflow" label definition and associated code with the
46777         same cpp condition that guards the sole use of that label.
46778
46779 2008-01-26  Bruno Haible  <bruno@clisp.org>
46780
46781         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
46782         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
46783         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
46784         * lib/isnanl-nolibm.h (isnanl): Likewise.
46785         Reported by Paul Eggert <eggert@cs.ucla.edu>.
46786
46787 2008-01-26  Bruno Haible  <bruno@clisp.org>
46788
46789         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
46790         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
46791
46792 2008-01-26  Bruno Haible  <bruno@clisp.org>
46793
46794         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
46795         GCC >= 4.0 built-in.
46796         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
46797
46798 2008-01-26  Bruno Haible  <bruno@clisp.org>
46799
46800         Rename isnan, applicable to 'double' only, to isnand.
46801         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
46802         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
46803         (configure.ac): Update.
46804         (Include): Replace "isnan.h" with "isnand.h".
46805         * m4/isnand.m4: Renamed from m4/isnan.m4.
46806         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
46807         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
46808         instead of isnan.c.
46809         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
46810         instead of HAVE_ISNAN_IN_LIBC.
46811         (isnand): Renamed from isnan.
46812         * lib/isnand.c: New file.
46813         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
46814         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
46815         (Makefile.am): Update.
46816         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
46817         Include isnand.h instead of isnan.h.
46818         (main): Test isnand instead of isnan.
46819         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
46820         isnan-nolibm.
46821         * modules/frexp (Depends-on): Likewise.
46822         * modules/frexp-tests (Depends-on): Likewise.
46823         * modules/frexp-nolibm (Depends-on): Likewise.
46824         * modules/frexp-nolibm-tests (Depends-on): Likewise.
46825         * modules/isfinite (Depends-on): Likewise.
46826         * modules/round-tests (Depends-on): Likewise.
46827         * modules/signbit (Depends-on): Likewise.
46828         * modules/signbit-tests (Depends-on): Likewise.
46829         * modules/snprintf-posix (Depends-on): Likewise.
46830         * modules/sprintf-posix (Depends-on): Likewise.
46831         * modules/trunc-tests (Depends-on): Likewise.
46832         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
46833         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
46834         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
46835         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
46836         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
46837         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
46838         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
46839         * modules/vasnprintf-posix (Depends-on): Likewise.
46840         * modules/vasprintf-posix (Depends-on): Likewise.
46841         * modules/vfprintf-posix (Depends-on): Likewise.
46842         * modules/vsnprintf-posix (Depends-on): Likewise.
46843         * modules/vsprintf-posix (Depends-on): Likewise.
46844         * lib/frexp.c: Include isnand.h instead of isnan.h.
46845         (ISNAN): Set to isnand instead of isnan.
46846         * lib/isfinite.c: Include isnand.h instead of isnan.h.
46847         (gl_isfinited): Use isnand instead of isnan.
46848         * lib/signbitd.c: Include isnand.h instead of isnan.h.
46849         (gl_signbitd): Use isnand instead of isnan.
46850         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
46851         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
46852         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
46853         (main): Use isnand instead of isnan.
46854         * tests/test-round1.c: Include isnand.h.
46855         (main): Use isnand instead of isnan.
46856         * tests/test-round2.c: Include isnand.h instead of isnan.h.
46857         (ISNAN): Set to isnand instead of isnan.
46858         * tests/test-trunc1.c: Include isnand.h.
46859         (main): Use isnand instead of isnan.
46860         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
46861         (equal): Use isnand instead of isnan.
46862         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
46863         isnand-nolibm.
46864         * NEWS: Mention the change.
46865
46866 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
46867             Bruno Haible  <bruno@clisp.org>
46868
46869         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
46870         the GCC builtins for signbits are present and set
46871         REPLACE_SIGNBIT_USING_GCC if so.
46872         * lib/math.in.h (signbit): Define using GCC builtins if
46873         REPLACE_SIGNBIT_USING_GCC is set.
46874         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
46875         REPLACE_SIGNBIT_USING_GCC.
46876         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
46877
46878 2008-01-25  Jim Meyering  <meyering@redhat.com>
46879
46880         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
46881         * lib/poll.c: Include <config.h>, not "config.h".
46882         * tests/test-getaddrinfo.c: Likewise.
46883
46884 2008-01-25  Simon Josefsson  <simon@josefsson.org>
46885
46886         * modules/sockets-tests: New file.
46887
46888 2008-01-24  Simon Josefsson  <simon@josefsson.org>
46889
46890         * modules/sockets: New module, can be used to call WSA_Startup and
46891         WSA_Cleanup when needed.
46892
46893         * lib/sockets.h, lib/sockets.c: New files.
46894
46895         * m4/sockets.m4: New file.
46896
46897         * tests/test-sockets.c: New file.
46898
46899 2008-01-19  Bruno Haible  <bruno@clisp.org>
46900
46901         * doc/posix-headers: Renamed from doc/headers.
46902         * doc/posix-functions: Renamed from doc/functions.
46903         * doc/gnulib.texi: Update.
46904
46905 2008-01-19  Bruno Haible  <bruno@clisp.org>
46906
46907         * doc/glibc-functions/strcasestr.texi: Include contents of
46908         doc/functions/strcasestr.texi, fixing the list of platforms.
46909         * doc/functions/strcasestr.texi: Remove file.
46910
46911 2008-01-19  Bruno Haible  <bruno@clisp.org>
46912
46913         * doc/glibc-functions/memmem.texi: Include contents of
46914         doc/functions/memmem.texi.
46915         * doc/functions/memmem.texi: Remove file.
46916
46917 2008-01-18  Bruno Haible  <bruno@clisp.org>
46918
46919         * doc/glibc-functions/*.texi: New files.
46920         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
46921         to use the new files.
46922
46923 2008-01-17  Bruno Haible  <bruno@clisp.org>
46924
46925         * tests/test-gethostname.c (main): Fix printf statement.
46926
46927 2008-01-17  Simon Josefsson  <simon@josefsson.org>
46928
46929         * modules/gethostname-tests: New file.
46930
46931         * tests/test-gethostname.c: New file.
46932
46933 2008-01-17  Simon Josefsson  <simon@josefsson.org>
46934
46935         * lib/gethostname.c: Include string.h unconditionally, strncpy is
46936         used by the UNAME case.  Reported by Bruno Haible
46937         <bruno@clisp.org>.
46938
46939 2008-01-17  Eric Blake  <ebb9@byu.net>
46940
46941         Convert c-strcasestr to be more efficient.
46942         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
46943         (Depends-on): Add c-strcase, remove malloca, strnlen.
46944         * tests/test-c-strcasestr.c (main): Enhance test.
46945         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
46946
46947 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
46948
46949         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
46950         Use it in creating po/Makevars.
46951
46952 2008-01-15  Simon Josefsson  <simon@josefsson.org>
46953
46954         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
46955         Applications that requires it should initialize libgcrypt
46956         manually.
46957
46958 2008-01-16  Simon Josefsson  <simon@josefsson.org>
46959
46960         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
46961
46962 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
46963
46964         Fix problem with getdate on mingw32 reported by Simon Josefsson
46965         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
46966         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
46967         tzname", when deciding whether to declare tzname.
46968         * lib/strftime.c (tzname): Likewise.
46969
46970 2008-01-15  Bruno Haible  <bruno@clisp.org>
46971
46972         Work around a MacOS X 10.5 bug in frexpl().
46973         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
46974         * doc/functions/frexpl.texi: Document the bug.
46975         Reported by Elias Pipping <pipping@gentoo.org>.
46976
46977 2008-01-14  Eric Blake  <ebb9@byu.net>
46978
46979         Touch up previous patch.
46980         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
46981         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
46982
46983         Convert strcasestr module to use Two-Way algorithm.
46984         * modules/strcasestr-simple: New module, based on the old
46985         strcasestr, but with Two-Way rather than KMP.
46986         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
46987         * lib/string.in.h (rpl_strcasestr): Declare.
46988         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
46989         performance.
46990         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
46991         * modules/string (Makefile.am): Support strcasestr.
46992         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
46993         * modules/strcasestr-tests (Depends-on): Check for alarm.
46994         * tests/test-strcasestr.c: Augment test.
46995         * lib/str-two-way.h: Clean up stray macro.
46996         * NEWS: Document new module.
46997         * MODULES.html.sh (string handling): Likewise.
46998         * doc/functions/strcasestr.texi: New file.
46999         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
47000         here, since it is not a POSIX function.
47001
47002 2008-01-14  Colin Watson  <cjwatson@debian.org>
47003             Bruno Haible  <bruno@clisp.org>
47004
47005         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
47006         works fine; if not, set REPLACE_STRSIGNAL.
47007         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
47008         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
47009         REPLACE_STRSIGNAL.
47010         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
47011         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
47012         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
47013
47014 2008-01-14  Bruno Haible  <bruno@clisp.org>
47015
47016         * modules/strsignal (Include): Change to <string.h>.
47017
47018 2008-01-14  Colin Watson  <cjwatson@debian.org>
47019
47020         * modules/argp (Notice): Add a notice recommending to change
47021         XGETTEXT_OPTIONS.
47022         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
47023
47024 2008-01-13  Colin Watson  <cjwatson@debian.org>
47025
47026         * modules/strsignal-tests: New file.
47027         * tests/test-strsignal.c: New file.
47028
47029         * lib/strsignal.c: New file, from glibc with modifications.
47030         * lib/siglist.h: New file, from glibc with modifications.
47031         * lib/string.in.h (strsignal): New declaration.
47032         * m4/strsignal.m4: New file.
47033         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
47034         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
47035         * modules/strsignal: New file.
47036         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
47037         HAVE_DECL_STRSIGNAL.
47038
47039 2008-01-13  Bruno Haible  <bruno@clisp.org>
47040
47041         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
47042         locale encoding is not ASCII. Needed for OpenBSD 4.0.
47043         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
47044         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
47045
47046 2008-01-13  Bruno Haible  <bruno@clisp.org>
47047
47048         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
47049         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
47050         * lib/argp.h (__attribute__): Likewise.
47051         * lib/c-stack.c (__attribute__): Likewise.
47052         * lib/error.h (__attribute__): Likewise.
47053         * lib/fts.c (__attribute__): Likewise.
47054         * lib/openat.h (__attribute__): Likewise.
47055         * lib/stdio.in.h (__attribute__): Likewise.
47056         * lib/string.in.h (__attribute__): Likewise.
47057         * lib/utimens.c (__attribute__): Likewise.
47058         * lib/vasnprintf.h (__attribute__): Likewise.
47059         * lib/xalloc.h (__attribute__): Likewise.
47060         * lib/xprintf.h (__attribute__): Likewise.
47061         * lib/xstrtol.h (__attribute__): Likewise.
47062         * lib/xvasprintf.h (__attribute__): Likewise.
47063
47064 2008-01-12  Bruno Haible  <bruno@clisp.org>
47065
47066         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
47067         * doc/glibc-headers/a.out.texi: New file.
47068         * doc/glibc-headers/aliases.texi: New file.
47069         * doc/glibc-headers/alloca.texi: New file.
47070         * doc/glibc-headers/ar.texi: New file.
47071         * doc/glibc-headers/argp.texi: New file.
47072         * doc/glibc-headers/argz.texi: New file.
47073         * doc/glibc-headers/byteswap.texi: New file.
47074         * doc/glibc-headers/crypt.texi: New file.
47075         * doc/glibc-headers/endian.texi: New file.
47076         * doc/glibc-headers/envz.texi: New file.
47077         * doc/glibc-headers/err.texi: New file.
47078         * doc/glibc-headers/error.texi: New file.
47079         * doc/glibc-headers/execinfo.texi: New file.
47080         * doc/glibc-headers/fpu_control.texi: New file.
47081         * doc/glibc-headers/fstab.texi: New file.
47082         * doc/glibc-headers/fts.texi: New file.
47083         * doc/glibc-headers/getopt.texi: New file.
47084         * doc/glibc-headers/ieee754.texi: New file.
47085         * doc/glibc-headers/ifaddrs.texi: New file.
47086         * doc/glibc-headers/libintl.texi: New file.
47087         * doc/glibc-headers/mcheck.texi: New file.
47088         * doc/glibc-headers/mntent.texi: New file.
47089         * doc/glibc-headers/obstack.texi: New file.
47090         * doc/glibc-headers/paths.texi: New file.
47091         * doc/glibc-headers/printf.texi: New file.
47092         * doc/glibc-headers/pty.texi: New file.
47093         * doc/glibc-headers/resolv.texi: New file.
47094         * doc/glibc-headers/shadow.texi: New file.
47095         * doc/glibc-headers/sysexits.texi: New file.
47096         * doc/glibc-headers/ttyent.texi: New file.
47097
47098 2008-01-12  Jim Meyering  <meyering@redhat.com>
47099
47100         announce-gen: emit Gnulib's git-based version string.
47101         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
47102         New option --gnulib-version=V, where V is expected to be
47103         the output of running git describe in the gnulib directory.
47104         (get_tool_versions): Request feedback on xdelta.  I suspect it's
47105         not useful, and plan to stop publishing an xdelta file with each
47106         coreutils release.
47107
47108         * build-aux/announce-gen: Also check for lzma-compressed files.
47109
47110 2008-01-11  Bruno Haible  <bruno@clisp.org>
47111
47112         * tests/test-memmem.c (main): Increase maximum allowed time.
47113         * tests/test-strstr.c (main): Likewise.
47114
47115 2008-01-11  Bruno Haible  <bruno@clisp.org>
47116
47117         * doc/functions/memmem.texi: Add more precisions about platforms.
47118         * doc/functions/strstr.texi: Likewise.
47119
47120 2008-01-10  Eric Blake  <ebb9@byu.net>
47121
47122         * m4/strstr.m4: Delete cruft from copy-n-paste.
47123         Reported by Bruno Haible.
47124
47125 2008-01-10  Bruno Haible  <bruno@clisp.org>
47126
47127         Make c-strstr rely on strstr.
47128         * lib/c-strstr.c: Don't include str-kmp.h.
47129         (c_strstr): Define in terms of strstr.
47130         * modules/c-strstr (Files): Remove lib/str-kmp.h.
47131         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
47132
47133 2008-01-10  Bruno Haible  <bruno@clisp.org>
47134
47135         * doc/gnulib.texi (String Functions in C Locale): New section.
47136         * doc/c-ctype.texi: New file.
47137         * doc/c-strcase.texi: New file.
47138         * doc/c-strcaseeq.texi: New file.
47139         * doc/c-strcasestr.texi: New file.
47140         * doc/c-strstr.texi: New file.
47141         * doc/c-strtod.texi: New file.
47142         * doc/c-strtold.texi: New file.
47143
47144 2008-01-10  Eric Blake  <ebb9@byu.net>
47145
47146         * lib/relocatable.h: Fix a comment.
47147
47148 2008-01-10  Eric Blake  <ebb9@byu.net>
47149
47150         Share two-way algorithm.
47151         * lib/str-two-way.h: New file, merged from...
47152         * lib/memmem.c: ...here...
47153         * lib/strstr.c: ...and here.
47154         * modules/memmem (Files): Use it.
47155         * modules/strstr (Files): Likewise.
47156
47157         Avoid quadratic strstr implementations.
47158         * lib/strstr.c: New file.
47159         * m4/strstr.m4: Likewise.
47160         * modules/strstr: Likewise.
47161         * modules/strstr-tests: Likewise.
47162         * tests/test-strstr.c: Likewise.
47163         * lib/string.in.h (rpl_strstr): Declare.
47164         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
47165         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
47166         * modules/string (Makefile.am): Likewise.
47167         * MODULES.html.sh (string handling): Mention new module.
47168         * doc/functions/strstr.texi (strstr): Document the bug.
47169
47170 2008-01-10  Bruno Haible  <bruno@clisp.org>
47171
47172         * lib/relocatable.h (relocate): State whether result is freshly
47173         allocated or not.
47174         * lib/relocatable.c (relocate): Return a freshly allocated string
47175         instead of a pointer to a privately held string.
47176         Reported by Sylvain Beucler <beuc@gnu.org>.
47177
47178 2008-01-10  Colin Watson  <cjwatson@debian.org>
47179
47180         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
47181         s/S_ISNLK/S_ISLNK/.
47182
47183 2008-01-09  Bruno Haible  <bruno@clisp.org>
47184
47185         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
47186         and other files.
47187         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
47188         if it's only a guess.
47189         * modules/memmem: Simplify by depending on memmem-simple.
47190
47191 2008-01-09  Bruno Haible  <bruno@clisp.org>
47192
47193         Work around OpenBSD 4.0 tdelete() bug.
47194         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
47195         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
47196         macros and don't redefine the enum values.
47197         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
47198         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
47199         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
47200
47201 2008-01-09  Bruno Haible  <bruno@clisp.org>
47202
47203         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
47204         (main): Don't perform the tests if setlocale did not install a UTF-8
47205         locale. Needed on OpenBSD 4.0.
47206         * modules/wcwidth-tests (Depends-on): Add localcharset.
47207
47208 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
47209
47210         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
47211         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
47212         * NEWS: announce this.
47213         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
47214
47215 2008-01-09  Simon Josefsson  <simon@josefsson.org>
47216         and Eric Blake  <ebb9@byu.net>
47217
47218         Add memmem-simple module.
47219         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
47220         (gl_FUNC_MEMMEM): Separate performance from presence checks.
47221         * modules/memmem-simple: New file.
47222         * modules/memmem (Description): Tweak.
47223         * MODULES.html.sh (string handling): Mention new module.
47224         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
47225         addressed by memmem-simple.
47226         * NEWS: Document the difference.
47227
47228 2008-01-09  Eric Blake  <ebb9@byu.net>
47229
47230         Give gcc some memmem optimization hints.
47231         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
47232         (strcasestr): Declare as pure.
47233         * modules/memmem (Maintainer): Claim my implementation.
47234
47235 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47236
47237         Support AIX 6.1 and higher.
47238         * build-aux/config.libpath: Likewise.
47239         * build-aux/config.rpath: Likewise.
47240
47241 2008-01-08  Jim Meyering  <meyering@redhat.com>
47242             Bruno Haible  <bruno@clisp.org>
47243
47244         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
47245         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
47246         Reported by Peter Fales in
47247         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
47248
47249 2008-01-08  Bruno Haible  <bruno@clisp.org>
47250
47251         * modules/unictype/category-of (Depends-on): Add
47252         unictype/category-none.
47253         * modules/unictype/category-and-tests (Depends-on): Add
47254         unictype/category-{L,N,Lu,Nd}.
47255         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
47256         * modules/unictype/category-or-tests (Depends-on): Add
47257         unictype/category-{L,N}.
47258         * modules/unictype/category-name-tests (Depends-on): Add
47259         unictype/category-{Z,Nl}.
47260         Reported by Simon Josefsson.
47261
47262 2008-01-08  Bruno Haible  <bruno@clisp.org>
47263
47264         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
47265         convention better.
47266         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
47267         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
47268         Reported by Peter Miller <millerp@canb.auug.org.au>.
47269
47270 2008-01-08  Eric Blake  <ebb9@byu.net>
47271
47272         Rewrite memmem to guarantee linear complexity without malloc.
47273         * lib/memmem.c (memmem): Use Two-Way rather than
47274         Knuth-Morris-Pratt, to allow O(1) space usage.
47275         (critical_factorization, two_way_short_needle)
47276         (two_way_long_needle): New functions.
47277         (knuth_morris_pratt): Delete.
47278         * modules/memmem (Depends-on): No longer need malloca or stdbool.
47279         Add stdint.
47280         * tests/test-memmem.c (main): Add tests for periodic needle and
47281         sublinear performance.
47282         * doc/functions/memmem.texi (memmem): Document other deficiencies
47283         in cygwin and older glibc.
47284
47285 2008-01-08  Bruno Haible  <bruno@clisp.org>
47286
47287         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
47288         augmentation.
47289
47290 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
47291
47292         Add a configure time option: --disable-acl.
47293         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
47294         AC_ARG_ENABLE(acl).
47295
47296 2008-01-06  Simon Josefsson  <simon@josefsson.org>
47297
47298         * tests/test-localename.c: Don't include obsolete "setenv.h".
47299
47300         * modules/localename-tests (Depends-on): Need unsetenv.
47301
47302 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47303
47304         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
47305
47306 2008-01-06  Colin Watson  <cjwatson@debian.org>
47307
47308         * users.txt: Add man-db.
47309
47310 2008-01-07  Bruno Haible  <bruno@clisp.org>
47311
47312         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
47313         previous section name.
47314
47315 2008-01-07  Bruno Haible  <bruno@clisp.org>
47316
47317         * lib/progname.c (set_program_name): Don't strip off a leading
47318         "lt-" prefix outside a .libs directory.
47319         Suggested by Paul Eggert.
47320
47321 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
47322             Bruno Haible  <bruno@clisp.org>
47323
47324         Improve memory cleanup in 'relocatable' module.
47325         * lib/relocatable.h (compute_curr_prefix): Change return type to
47326         'char *'.
47327         * lib/relocatable.c (compute_curr_prefix): Change return type to
47328         'char *'. Free curr_installdir after use.
47329         (relocate): Free curr_prefix_better after use.
47330         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
47331
47332 2008-01-01  Bruno Haible  <bruno@clisp.org>
47333
47334         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
47335         failure on older glibc systems.
47336         Reported by Peter Fales <psfales@alcatel-lucent.com>.
47337
47338 2008-01-05  Eric Blake  <ebb9@byu.net>
47339
47340         Avoid quadratic system memmem.
47341         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
47342         Reported by Ralf Wildenhues.
47343
47344         Fix memmem test for mingw.
47345         * modules/memmem-tests (configure.ac): Check for alarm.
47346         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
47347         it.
47348         * doc/functions/memmem.texi: New file.
47349         * doc/gnulib.texi (Function Substitutes): Add memmem.
47350         Reported by Bruno Haible.
47351
47352 2008-01-04  Bruno Haible  <bruno@clisp.org>
47353
47354         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
47355         Require gl_HEADER_STRINGS_H_DEFAULTS, not
47356         gl_HEADER_STRING_H_DEFAULTS.
47357
47358 2008-01-04  Eric Blake  <ebb9@byu.net>
47359
47360         Shorten duration of memmem test.
47361         * tests/test-memmem.c (main): Use alarm to declare failure if test
47362         is taking too long.
47363         Reported by Ralf Wildenhues.
47364
47365 2007-12-21  Simon Josefsson  <simon@josefsson.org>
47366
47367         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
47368         string, needed by strerror.
47369
47370 2008-01-03  Colin Watson  <cjwatson@debian.org>
47371             Bruno Haible  <bruno@clisp.org>
47372
47373         * doc/gnulib-tool.texi (Localization): New section.
47374
47375 2008-01-02  Bruno Haible  <bruno@clisp.org>
47376
47377         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
47378         variables to 'unsigned char *' type.
47379         Reported by Paul Eggert.
47380
47381 2008-01-02  Jim Meyering  <jim@meyering.net>
47382
47383         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
47384
47385 2007-12-31  Jim Meyering  <jim@meyering.net>
47386
47387         Avoid use of private FTS type name.
47388         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
47389
47390 2007-12-30  Karl Berry  <karl@gnu.org>
47391
47392         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
47393         work around defect in Texinfo and/or the standalone Info browser.
47394
47395 2007-12-30  Bruno Haible  <bruno@clisp.org>
47396
47397         Unify 5 copies of the KMP code.
47398         * lib/str-kmp.h: New file.
47399         * lib/c-strcasestr.c: Include str-kmp.h.
47400         (knuth_morris_pratt): Remove function.
47401         (c_strcasestr): Update.
47402         * lib/c-strstr.c: Include str-kmp.h.
47403         (knuth_morris_pratt): Remove function.
47404         (c_strcasestr): Update.
47405         * lib/mbscasestr.c: Include str-kmp.h.
47406         (knuth_morris_pratt_unibyte): Remove function.
47407         * lib/mbsstr.c: Include str-kmp.h.
47408         (knuth_morris_pratt_unibyte): Remove function.
47409         * lib/strcasestr.c: Include str-kmp.h.
47410         (knuth_morris_pratt): Remove function.
47411         (strcasestr): Update.
47412         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
47413         * modules/c-strstr (Files): Likewise.
47414         * modules/mbscasestr (Files): Likewise.
47415         * modules/mbsstr (Files): Likewise.
47416         * modules/strcasestr (Files): Likewise.
47417         Suggested by Paul Eggert.
47418
47419 2007-12-30  Bruno Haible  <bruno@clisp.org>
47420
47421         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
47422         defined.
47423
47424 2007-12-30  Bruno Haible  <bruno@clisp.org>
47425
47426         * lib/xmalloca.h: Include xalloc.h.
47427         (xnmalloca): New macro.
47428
47429 2007-12-30  Bruno Haible  <bruno@clisp.org>
47430
47431         * lib/malloca.h (nmalloca): New macro.
47432         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
47433         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
47434         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
47435         knuth_morris_pratt_multibyte): Likewise.
47436         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
47437         knuth_morris_pratt_multibyte): Likewise.
47438         * lib/memmem.c (knuth_morris_pratt): Likewise.
47439         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
47440
47441 2007-12-25  Bruno Haible  <bruno@clisp.org>
47442
47443         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
47444         * lib/glob.c: Don't include openat.h.
47445         (link_exists2_p): Add back the code that deals with the
47446         !GLOB_ALTDIRFUNC case.
47447         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
47448         let it do the filename concatenation.
47449         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
47450         * modules/glob (Depends-on): Remove openat.
47451
47452 2007-12-31  Bruno Haible  <bruno@clisp.org>
47453
47454         * modules/dirfd (License): Change to LGPLv2+.
47455         Approved by Jim Meyering.
47456
47457 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
47458
47459         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
47460         when multiplying M by sizeof (size_t).
47461
47462 2007-12-10  Martin Lambers  <marlam@marlam.de>
47463
47464         Override getpagesize on mingw.
47465         * lib/getpagesize.c: New file.
47466         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
47467         * modules/getpagesize (Files): Add lib/getpagesize.c.
47468         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
47469         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47470         REPLACE_GETPAGESIZE.
47471         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
47472
47473 2007-12-25  Bruno Haible  <bruno@clisp.org>
47474
47475         * modules/localcharset (Notice): New field.
47476         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
47477         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
47478
47479 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
47480             Bruno Haible  <bruno@clisp.org>
47481
47482         Avoid using the syntax symbol() in formatted documentation.
47483         * MODULES.html.sh (func_module): When replacing symbol() with a
47484         hyperlink, remove the parentheses. Show an error if some remain.
47485         Recognize and render the '...' syntax.
47486         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
47487         Rework. Add paragraph about GCC's inlining.
47488         * doc/alloca.texi: Likewise.
47489         * doc/error.texi: Remove parentheses from symbol reference.
47490         * doc/gnulib-intro.texi: Likewise.
47491         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
47492         * modules/fnmatch (Description): Reword to say "the ... function".
47493         * modules/full-read (Description): Likewise.
47494         * modules/full-write (Description): Likewise.
47495         * modules/safe-read (Description): Likewise.
47496         * modules/safe-write (Description): Likewise.
47497         * modules/strchrnul (Description): Likewise.
47498         * modules/trim (Description): Likewise.
47499         * modules/error (Description): Remove parentheses from symbol
47500         references.
47501         * modules/verror (Description): Likewise.
47502         Reported by Karl Berry.
47503
47504 2007-12-25  Bruno Haible  <bruno@clisp.org>
47505
47506         Fixup after 2007-10-16 commit.
47507         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
47508
47509 2007-12-24  Bruno Haible  <bruno@clisp.org>
47510
47511         Make --enable-relocatable work with DESTDIR.
47512         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
47513         to compute installdir from destprog.
47514         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
47515         also set the RELOC_DESTDIR variable.
47516         Reported by Левашев Иван <octagram@bluebottle.com>.
47517
47518 2007-12-24  Bruno Haible  <bruno@clisp.org>
47519
47520         Fix link error due to xalloc_die().
47521         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
47522         of xreadlink.
47523         * lib/relocwrapper.c: Update comments.
47524         * build-aux/install-reloc: Remove xreadlink.c from file list.
47525         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
47526         xreadlink.c.
47527         Reported by Левашев Иван <octagram@bluebottle.com>.
47528
47529 2007-12-24  Bruno Haible  <bruno@clisp.org>
47530
47531         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
47532         * lib/setenv.h: Remove file.
47533         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
47534         lib/setenv.h.
47535         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
47536         (Depends-on): Add stdlib.
47537         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
47538         gl_FUNC_UNSETENV.
47539         (Include): Replace setenv.h with <stdlib.h>.
47540         * modules/unsetenv: New file.
47541         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
47542         * lib/unsetenv.c: Include <stdlib.h> first.
47543         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
47544         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
47545         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
47546         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
47547         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
47548         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
47549         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
47550         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
47551         * doc/functions/unsetenv.texi: Update.
47552         * modules/xsetenv (Depends-on): Add unsetenv.
47553         * modules/getdate (Depends-on): Likewise.
47554         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
47555         * lib/xsetenv.c: Don't include setenv.h.
47556         * lib/getdate.y: Likewise.
47557         * lib/relocwrapper.c: Likewise.
47558         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
47559         (Depends-on): Add stdlib.
47560         * NEWS: Mention the changes.
47561         Reported by Левашев Иван <octagram@bluebottle.com>.
47562
47563 2007-12-23  Bruno Haible  <bruno@clisp.org>
47564
47565         * lib/memmem.c (memmem): Use lowercase variable names. Tab
47566         indentation.
47567
47568 2007-12-23  Bruno Haible  <bruno@clisp.org>
47569
47570         * lib/c-strcasestr.c: Add more comments.
47571         * lib/c-strstr.c: Likewise.
47572         * lib/mbscasestr.c: Likewise.
47573         * lib/mbsstr.c: Likewise.
47574         * lib/strcasestr.c: Likewise.
47575         * lib/memmem.c: Likewise.
47576
47577 2007-12-23  Bruno Haible  <bruno@clisp.org>
47578
47579         * tests/test-memmem.c: Include <string.h> first.
47580
47581 2007-12-22  Bruno Haible  <bruno@clisp.org>
47582
47583         * gnulib-tool (func_create_testdir): Change $auxdir while generating
47584         the contents of $testsbase.
47585         Reported by Ralf Wildenhues.
47586
47587 2007-12-22  Bruno Haible  <bruno@clisp.org>
47588
47589         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
47590         two variables local_ldadd_before, local_ldadd_last.
47591
47592 2007-12-20  Eric Blake  <ebb9@byu.net>
47593
47594         Work around circular library issue when cross-compiling.
47595         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
47596         that progname.o does not need to pull in rpl_memcmp.
47597
47598 2007-12-19  Eric Blake  <ebb9@byu.net>
47599
47600         Fix memmem to avoid O(n^2) worst-case complexity.
47601         * lib/memmem.c (knuth_morris_pratt): New function.
47602         (memmem): Use it if first few naive iterations fail.
47603         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
47604         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
47605         * modules/memchr (License): Likewise.
47606         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
47607         malloca.
47608         * tests/test-memmem.c: Rewrite, borrowing ideas from
47609         test-mbsstr1.c; the old version wouldn't even compile!
47610         * modules/memmem-tests: New file.
47611         * lib/string.in.h (rpl_memmem): Add declaration.
47612         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
47613         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
47614         REPLACE_MEMMEM.
47615
47616 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
47617
47618         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
47619         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
47620         before any system include files, and undef after them all.  This
47621         should fix a problem on VMS reported by John E. Malmberg in
47622         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
47623
47624 2007-12-17  Eric Blake  <ebb9@byu.net>
47625
47626         Revert addition of verify, for BSD/OS.
47627         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
47628         can't handle large files, for the sake of obsolete platforms.
47629         * modules/fseeko (Depends-on): Remove verify.
47630         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
47631         * doc/functions/ftello.texi (ftello): Likewise.
47632         * doc/functions/fgetpos.texi (fgetpos): Likewise.
47633         Reported by Larry Jones.
47634
47635 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
47636
47637         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
47638         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
47639
47640 2007-12-17  Jim Meyering  <meyering@redhat.com>
47641
47642         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
47643         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
47644         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
47645         * modules/getcwd (Depends-on): Add openat.
47646         Reported by Petr Salinger.
47647
47648 2007-12-17  Bruno Haible  <bruno@clisp.org>
47649
47650         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
47651         avoid a segmentation fault of the configure test on x86_64 systems.
47652
47653 2007-12-15  Jim Meyering  <meyering@redhat.com>
47654
47655         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
47656
47657 2007-12-13  Eric Blake  <ebb9@byu.net>
47658
47659         Another fseek test.
47660         * tests/test-fseek.c (main): Also test ungetc handling.
47661         * tests/test-fseeko.c (main): Likewise.
47662         * modules/fseeko (Depends-on): Add verify.
47663         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
47664         large.
47665         Reported by Larry Jones.
47666
47667         Fix fseeko on mingw.
47668         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
47669         seek.
47670
47671         Beef up fseek tests.
47672         * tests/test-fseek.c (main): Also test eof handling.
47673         * tests/test-fseeko.c (main): Likewise.
47674         Reported by Larry Jones.
47675
47676 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
47677
47678         Fix fseeko on BSD-based platforms.
47679         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
47680         successful seek.
47681
47682 2007-12-12  Eric Blake  <ebb9@byu.net>
47683
47684         Allow circular dependency of separate libtests.a
47685         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
47686         when use_libtests.
47687
47688 2007-12-11  Eric Blake  <ebb9@byu.net>
47689
47690         Fix bug with -0.0L in previous patch.
47691         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
47692         * tests/test-isnan.c (main): Also test on zeroes.
47693         * tests/test-isnanf.c (main): Likewise.
47694         * tests/test-isnanl.h (main): Likewise.
47695
47696         Detect pseudo-denormals on x86 even when cross-compiling.
47697         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
47698         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
47699         invalid bit patterns that happen to satisfy ==.
47700
47701         Avoid link failures with separate libtests.a.
47702         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
47703         last, to satisfy circular dependencies.
47704
47705 2007-12-11  Eric Blake  <ebb9@byu.net>
47706         and Bruno Haible  <bruno@clisp.org>
47707
47708         Fix OpenBSD 4.0 <float.h> handling of long double.
47709         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
47710         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
47711         * doc/headers/float.texi (float.h): Document OpenBSD bug.
47712
47713 2007-12-11  Jim Meyering  <meyering@redhat.com>
47714
47715         * users.txt: Add libvirt.
47716
47717         Support versions of autoconf prior to 2.59c.
47718         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
47719         if it is not already defined.
47720
47721 2007-12-09  Bruno Haible  <bruno@clisp.org>
47722
47723         Let 'gnulib-tool --import' collect sources needed for the tests in
47724         tests/ rather than in lib/.
47725         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
47726         argument. If true, add rules to generate libtests.a, and put libtests.a
47727         into $(LDADD). Consider source files in subdirectories and set
47728         uses_subdirs.
47729         (func_emit_initmacro_start, func_emit_initmacro_end,
47730         func_emit_initmacro_done): Pass all arguments explicitly.
47731         (func_import): Determine two module lists main_modules,
47732         testsrelated_modules. Determine use_libtests. Determine two variables
47733         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
47734         instead of just sed_transform_lib_file. Determine two variables
47735         main_files and testsrelated_files. Compute 'files' as the union of
47736         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
47737         func_add_or_update. In the generated gnulib-comp.m4, collect the
47738         object files for tests/ in different variables than those for lib/.
47739         Substitute LIBTESTS_LIBDEPS.
47740         (func_create_testdir): Combine the uses_subdirs results from
47741         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
47742
47743 2007-12-09  Bruno Haible  <bruno@clisp.org>
47744
47745         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
47746         the build-aux directory.
47747
47748 2007-12-09  Bruno Haible  <bruno@clisp.org>
47749
47750         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
47751         introduced on 2006-09-09.
47752
47753 2007-12-07  Jim Meyering  <meyering@redhat.com>
47754
47755         Let these macros work also with autoconf-2.59.
47756         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
47757         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
47758         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
47759
47760 2007-12-06  Jim Meyering  <meyering@redhat.com>
47761
47762         Avoid a configure-time syntax error in gl_FUNC_ACL.
47763         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
47764         function in each branch, before testing the cache variable.
47765
47766 2007-12-04  Eric Blake  <ebb9@byu.net>
47767
47768         Make scripts executable.
47769         * build-aux/config.guess: Add execute permissions.
47770         * build-aux/config.sub: Likewise.
47771         * build-aux/gendocs.sh: Likewise.
47772
47773         Fix frexp on mingw.
47774         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
47775         cross-compiling.
47776         * doc/functions/frexp.texi (frexp): Document the bug.
47777
47778         Make cygwin fseeko check more reliable.
47779         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
47780         version numbers, rather than unrelated feature check.
47781         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
47782         * doc/functions/ftello.texi (ftello): Likewise.
47783         Reported by Bruno Haible.
47784
47785         * m4/strerror.m4: Bump version number.
47786
47787 2007-12-03  Bruno Haible  <bruno@clisp.org>
47788
47789         * doc/functions/mprotect.texi: Mention the mingw problem.
47790
47791 2007-12-03  Eric Blake  <ebb9@byu.net>
47792
47793         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
47794         REPLACE_STRERROR is initialized before this macro.
47795
47796 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
47797
47798         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
47799         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
47800         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
47801         put -lsec in even for programs other than 'ls'.  This fixes a problem
47802         for gettext reported by Bruno Haible in
47803         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
47804         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
47805         Add support for Solaris 10.  This isn't efficient, but should get the
47806         job done for now.
47807
47808 2007-12-03  James Youngman  <jay@gnu.org>
47809
47810         * doc/regexprops-generic.texi: change "an close-group" to "a
47811         close-group" and "illegal" to "not allowed".
47812
47813 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47814
47815         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
47816         pr_byname.h. Needed for the rare case when the maintainer has done
47817         "make maintainer-clean" in the source directory and then attempts a
47818         build outside the source directory.
47819         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
47820         scripts_byname.h.
47821
47822 2007-12-02  Martin Lambers <marlam@marlam.de>
47823             Bruno Haible  <bruno@clisp.org>
47824
47825         * lib/getpagesize.h: Remove file.
47826         * lib/unistd.in.h: Include declaration of getpagesize here.
47827         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
47828         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
47829         HAVE_SYS_PARAM_H.
47830         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
47831         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
47832         * modules/getpagesize (Files): Remove lib/getpagesize.h.
47833         (Depends-on): Add unistd.
47834         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47835         (Include): Use <unistd.h> instead of getpagesize.h.
47836         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
47837         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
47838         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
47839         gl_GETPAGESIZE invocation, already handled by module dependency.
47840         * lib/pagealign_alloc.c: Don't include getpagesize.h.
47841
47842 2007-12-02  Bruno Haible  <bruno@clisp.org>
47843
47844         * modules/strings-tests: New file.
47845         * tests/test-strings.c: New file.
47846
47847         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
47848         * lib/strings.in.h: New file.
47849         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
47850         * m4/strings_h.m4: New file.
47851         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
47852         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
47853         * modules/strings: New file.
47854         * modules/string (Makefile.am): Update.
47855         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
47856         Reported by Karl Berry.
47857
47858 2007-12-01  Eric Blake  <ebb9@byu.net>
47859
47860         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
47861         accomodate fix in cygwin 1.5.25.
47862
47863 2007-12-01  Jim Meyering  <meyering@redhat.com>
47864
47865         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
47866         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
47867         that would inhibit utf8-optimization of a regexp containing line-
47868         or buffer-anchors, e.g., `^', `$'.
47869
47870 2007-11-30  Bruno Haible  <bruno@clisp.org>
47871
47872         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
47873         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
47874         glthread_recursive_lock_init.
47875         * lib/lock.c (glthread_recursive_lock_init)
47876         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
47877         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47878
47879 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
47880
47881         New function qset_acl, like set_acl but with syscall semantics.
47882         * lib/acl.h (qset_acl): New decl.
47883         * lib/acl.c (qset_acl): New function.
47884         (set_acl): Use new function.  Use more-consistent diagnostics.
47885
47886 2007-11-28  Jim Meyering  <meyering@redhat.com>
47887
47888         * modules/physmem (License): Change from GPL to LGPLv2+.
47889
47890 2007-11-26  Bruno Haible  <bruno@clisp.org>
47891
47892         * lib/vasnprintf.c (decode_long_double): Don't abort if the
47893         'long double' type has excess precision.
47894         Reported by Jim Meyering in
47895         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
47896
47897 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47898
47899         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
47900         Sync from <http://gnu.org/licenses>.
47901         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
47902         with license text from same location.
47903         * doc/maintain.texi, doc/standards.texi:  Sync from
47904         <http://savannah.gnu.org/projects/gnustandards>.
47905
47906 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
47907         and Jim Meyering  <meyering@redhat.com>
47908
47909         Adjust getdate' grammar to accept a slightly more regular language.
47910         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
47911         Before, the former was rejected.
47912         * lib/getdate.y (digits_to_date_time): New function, factored
47913         out of ...
47914         (number): ...here.  Just call digits_to_date_time.
47915         (hybrid): New non-terminal to handle an <unsigned number,
47916         signed relative offset> sequence consistently.
47917
47918 2007-11-18  Jim Meyering  <meyering@redhat.com>
47919
47920         Pull my changes from coreutils:
47921         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
47922         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
47923         use of $gnulib_tool_option_extras, so that it's separated from the
47924         preceding argument.
47925
47926         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
47927         * build-aux/bootstrap (cp_mark_as_generated): Create any required
47928         parent destination directories before copying a file into place.
47929
47930 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
47931
47932         bootstrap: work also with 4-argument variant of AC_INIT
47933         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
47934
47935 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
47936
47937         Port test-getaddrinfo to Solaris.
47938         Problem reported by Bruno Haible in
47939         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
47940         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
47941         explanation of setting 'hints'.
47942         Don't reject an implementation merely because it returns EAI_SERVICE.
47943         (EAI_SERVICE): Define to 0 if not defined.
47944
47945 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
47946
47947         The license of gnu-make and posix-shell is now "GPLed build tool".
47948         * modules/gnu-make (License): Likewise.
47949         * modules/posix-shell (License): Likewise.
47950
47951         New module posix-shell, for determining a POSIX shell
47952         or perhaps something that is close enough to a POSIX shell.
47953         * m4/posix-shell.m4: New file.
47954         * modules/posix-shell: New file.
47955
47956         * MODULES.html.sh: Mention new module.
47957
47958         New module gnu-make, for determining whether we're using GNU Make.
47959         * m4/gnu-make.m4: New file.
47960         * modules/gnu-make: New file.
47961         * MODULES.html.sh: Mention new module.
47962
47963 2007-11-14  Jim Meyering  <meyering@redhat.com>
47964
47965         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
47966         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
47967         use this macro to create a function _definition_.
47968         Remove useless "#undef ARGMATCH_DIE".
47969
47970 2007-11-14  Bruno Haible  <bruno@clisp.org>
47971
47972         * lib/config.charset: Update for OpenBSD 4.1.
47973         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
47974
47975 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
47976
47977         Document 64-bit #if problems in stdint.texi.
47978         * doc/headers/stdint.texi (stdint.h): Mention problems with
47979         64-bit-#if, and how to work around them.
47980
47981         Don't insist on 'long long int' support in the preprocessor.  It
47982         breaks too many things.  For example, PRIdMAX still uses a 'long
47983         long int' format with the latest Sun compiler, even though
47984         HAVE_LONG_LONG_INT isn't defined due to that compiler's
47985         preprocessor problem.  This causes the latest coreutils to dump
47986         core on Solaris 10 sparc with the Sun C compiler.
47987         Instead, fix the 2007-10-16 problem in a different way, by evaluating
47988         the troublesome expressions at configure-time, not at #if-time.
47989         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
47990         preprocessor.
47991         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
47992         compile-time C checks, done at 'configure'-time.
47993         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
47994         * modules/inttypes (Makefile): Substitute the new symbols that
47995         gl_INTTYPES_H now generates.
47996         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
47997
47998 2007-11-12  Bruno Haible  <bruno@clisp.org>
47999
48000         Tests for Unicode character classification functions.
48001
48002         * modules/unictype/bidicategory-byname-tests: New file.
48003         * modules/unictype/bidicategory-name-tests: New file.
48004         * modules/unictype/bidicategory-of-tests: New file.
48005         * modules/unictype/bidicategory-test-tests: New file.
48006         * modules/unictype/block-list-tests: New file.
48007         * modules/unictype/block-of-tests: New file.
48008         * modules/unictype/block-test-tests: New file.
48009         * modules/unictype/category-C-tests: New file.
48010         * modules/unictype/category-Cc-tests: New file.
48011         * modules/unictype/category-Cf-tests: New file.
48012         * modules/unictype/category-Cn-tests: New file.
48013         * modules/unictype/category-Co-tests: New file.
48014         * modules/unictype/category-Cs-tests: New file.
48015         * modules/unictype/category-L-tests: New file.
48016         * modules/unictype/category-Ll-tests: New file.
48017         * modules/unictype/category-Lm-tests: New file.
48018         * modules/unictype/category-Lo-tests: New file.
48019         * modules/unictype/category-Lt-tests: New file.
48020         * modules/unictype/category-Lu-tests: New file.
48021         * modules/unictype/category-M-tests: New file.
48022         * modules/unictype/category-Mc-tests: New file.
48023         * modules/unictype/category-Me-tests: New file.
48024         * modules/unictype/category-Mn-tests: New file.
48025         * modules/unictype/category-N-tests: New file.
48026         * modules/unictype/category-Nd-tests: New file.
48027         * modules/unictype/category-Nl-tests: New file.
48028         * modules/unictype/category-No-tests: New file.
48029         * modules/unictype/category-P-tests: New file.
48030         * modules/unictype/category-Pc-tests: New file.
48031         * modules/unictype/category-Pd-tests: New file.
48032         * modules/unictype/category-Pe-tests: New file.
48033         * modules/unictype/category-Pf-tests: New file.
48034         * modules/unictype/category-Pi-tests: New file.
48035         * modules/unictype/category-Po-tests: New file.
48036         * modules/unictype/category-Ps-tests: New file.
48037         * modules/unictype/category-S-tests: New file.
48038         * modules/unictype/category-Sc-tests: New file.
48039         * modules/unictype/category-Sk-tests: New file.
48040         * modules/unictype/category-Sm-tests: New file.
48041         * modules/unictype/category-So-tests: New file.
48042         * modules/unictype/category-Z-tests: New file.
48043         * modules/unictype/category-Zl-tests: New file.
48044         * modules/unictype/category-Zp-tests: New file.
48045         * modules/unictype/category-Zs-tests: New file.
48046         * modules/unictype/category-and-not-tests: New file.
48047         * modules/unictype/category-and-tests: New file.
48048         * modules/unictype/category-byname-tests: New file.
48049         * modules/unictype/category-name-tests: New file.
48050         * modules/unictype/category-none-tests: New file.
48051         * modules/unictype/category-of-tests: New file.
48052         * modules/unictype/category-or-tests: New file.
48053         * modules/unictype/category-test-withtable-tests: New file.
48054         * modules/unictype/combining-class-tests: New file.
48055         * modules/unictype/ctype-alnum-tests: New file.
48056         * modules/unictype/ctype-alpha-tests: New file.
48057         * modules/unictype/ctype-blank-tests: New file.
48058         * modules/unictype/ctype-cntrl-tests: New file.
48059         * modules/unictype/ctype-digit-tests: New file.
48060         * modules/unictype/ctype-graph-tests: New file.
48061         * modules/unictype/ctype-lower-tests: New file.
48062         * modules/unictype/ctype-print-tests: New file.
48063         * modules/unictype/ctype-punct-tests: New file.
48064         * modules/unictype/ctype-space-tests: New file.
48065         * modules/unictype/ctype-upper-tests: New file.
48066         * modules/unictype/ctype-xdigit-tests: New file.
48067         * modules/unictype/decimal-digit-tests: New file.
48068         * modules/unictype/digit-tests: New file.
48069         * modules/unictype/mirror-tests: New file.
48070         * modules/unictype/numeric-tests: New file.
48071         * modules/unictype/property-alphabetic-tests: New file.
48072         * modules/unictype/property-ascii-hex-digit-tests: New file.
48073         * modules/unictype/property-bidi-arabic-digit-tests: New file.
48074         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
48075         * modules/unictype/property-bidi-block-separator-tests: New file.
48076         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
48077         * modules/unictype/property-bidi-common-separator-tests: New file.
48078         * modules/unictype/property-bidi-control-tests: New file.
48079         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
48080         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
48081         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
48082         * modules/unictype/property-bidi-european-digit-tests: New file.
48083         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
48084         * modules/unictype/property-bidi-left-to-right-tests: New file.
48085         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
48086         * modules/unictype/property-bidi-other-neutral-tests: New file.
48087         * modules/unictype/property-bidi-pdf-tests: New file.
48088         * modules/unictype/property-bidi-segment-separator-tests: New file.
48089         * modules/unictype/property-bidi-whitespace-tests: New file.
48090         * modules/unictype/property-byname-tests: New file.
48091         * modules/unictype/property-combining-tests: New file.
48092         * modules/unictype/property-composite-tests: New file.
48093         * modules/unictype/property-currency-symbol-tests: New file.
48094         * modules/unictype/property-dash-tests: New file.
48095         * modules/unictype/property-decimal-digit-tests: New file.
48096         * modules/unictype/property-default-ignorable-code-point-tests: New file.
48097         * modules/unictype/property-deprecated-tests: New file.
48098         * modules/unictype/property-diacritic-tests: New file.
48099         * modules/unictype/property-extender-tests: New file.
48100         * modules/unictype/property-format-control-tests: New file.
48101         * modules/unictype/property-grapheme-base-tests: New file.
48102         * modules/unictype/property-grapheme-extend-tests: New file.
48103         * modules/unictype/property-grapheme-link-tests: New file.
48104         * modules/unictype/property-hex-digit-tests: New file.
48105         * modules/unictype/property-hyphen-tests: New file.
48106         * modules/unictype/property-id-continue-tests: New file.
48107         * modules/unictype/property-id-start-tests: New file.
48108         * modules/unictype/property-ideographic-tests: New file.
48109         * modules/unictype/property-ids-binary-operator-tests: New file.
48110         * modules/unictype/property-ids-trinary-operator-tests: New file.
48111         * modules/unictype/property-ignorable-control-tests: New file.
48112         * modules/unictype/property-iso-control-tests: New file.
48113         * modules/unictype/property-join-control-tests: New file.
48114         * modules/unictype/property-left-of-pair-tests: New file.
48115         * modules/unictype/property-line-separator-tests: New file.
48116         * modules/unictype/property-logical-order-exception-tests: New file.
48117         * modules/unictype/property-lowercase-tests: New file.
48118         * modules/unictype/property-math-tests: New file.
48119         * modules/unictype/property-non-break-tests: New file.
48120         * modules/unictype/property-not-a-character-tests: New file.
48121         * modules/unictype/property-numeric-tests: New file.
48122         * modules/unictype/property-other-alphabetic-tests: New file.
48123         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
48124         * modules/unictype/property-other-grapheme-extend-tests: New file.
48125         * modules/unictype/property-other-id-continue-tests: New file.
48126         * modules/unictype/property-other-id-start-tests: New file.
48127         * modules/unictype/property-other-lowercase-tests: New file.
48128         * modules/unictype/property-other-math-tests: New file.
48129         * modules/unictype/property-other-uppercase-tests: New file.
48130         * modules/unictype/property-paired-punctuation-tests: New file.
48131         * modules/unictype/property-paragraph-separator-tests: New file.
48132         * modules/unictype/property-pattern-syntax-tests: New file.
48133         * modules/unictype/property-pattern-white-space-tests: New file.
48134         * modules/unictype/property-private-use-tests: New file.
48135         * modules/unictype/property-punctuation-tests: New file.
48136         * modules/unictype/property-quotation-mark-tests: New file.
48137         * modules/unictype/property-radical-tests: New file.
48138         * modules/unictype/property-sentence-terminal-tests: New file.
48139         * modules/unictype/property-soft-dotted-tests: New file.
48140         * modules/unictype/property-space-tests: New file.
48141         * modules/unictype/property-terminal-punctuation-tests: New file.
48142         * modules/unictype/property-test-tests: New file.
48143         * modules/unictype/property-titlecase-tests: New file.
48144         * modules/unictype/property-unassigned-code-value-tests: New file.
48145         * modules/unictype/property-unified-ideograph-tests: New file.
48146         * modules/unictype/property-uppercase-tests: New file.
48147         * modules/unictype/property-variation-selector-tests: New file.
48148         * modules/unictype/property-white-space-tests: New file.
48149         * modules/unictype/property-xid-continue-tests: New file.
48150         * modules/unictype/property-xid-start-tests: New file.
48151         * modules/unictype/property-zero-width-tests: New file.
48152         * modules/unictype/scripts-tests: New file.
48153         * modules/unictype/syntax-c-ident-tests: New file.
48154         * modules/unictype/syntax-c-whitespace-tests: New file.
48155         * modules/unictype/syntax-java-ident-tests: New file.
48156         * modules/unictype/syntax-java-whitespace-tests: New file.
48157         * tests/unictype/test-bidi_byname.c: New file.
48158         * tests/unictype/test-bidi_name.c: New file.
48159         * tests/unictype/test-bidi_of.c: New file.
48160         * tests/unictype/test-bidi_test.c: New file.
48161         * tests/unictype/test-block_list.c: New file.
48162         * tests/unictype/test-block_of.c: New file.
48163         * tests/unictype/test-block_test.c: New file.
48164         * tests/unictype/test-categ_and.c: New file.
48165         * tests/unictype/test-categ_and_not.c: New file.
48166         * tests/unictype/test-categ_byname.c: New file.
48167         * tests/unictype/test-categ_name.c: New file.
48168         * tests/unictype/test-categ_none.c: New file.
48169         * tests/unictype/test-categ_of.c: New file.
48170         * tests/unictype/test-categ_or.c: New file.
48171         * tests/unictype/test-categ_test_withtable.c: New file.
48172         * tests/unictype/test-combining.c: New file.
48173         * tests/unictype/test-decdigit.c: New file.
48174         * tests/unictype/test-digit.c: New file.
48175         * tests/unictype/test-mirror.c: New file.
48176         * tests/unictype/test-numeric.c: New file.
48177         * tests/unictype/test-pr_byname.c: New file.
48178         * tests/unictype/test-pr_test.c: New file.
48179         * tests/unictype/test-predicate-part1.h: New file.
48180         * tests/unictype/test-predicate-part2.h: New file.
48181         * tests/unictype/test-scripts.c: New file.
48182         * tests/unictype/test-sy_c_ident.c: New file.
48183         * tests/unictype/test-sy_java_ident.c: New file.
48184
48185         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
48186         for Unicode 5.0.0.
48187         * tests/unictype/test-categ_Cc.c: Likewise.
48188         * tests/unictype/test-categ_Cf.c: Likewise.
48189         * tests/unictype/test-categ_Cn.c: Likewise.
48190         * tests/unictype/test-categ_Co.c: Likewise.
48191         * tests/unictype/test-categ_Cs.c: Likewise.
48192         * tests/unictype/test-categ_L.c: Likewise.
48193         * tests/unictype/test-categ_Ll.c: Likewise.
48194         * tests/unictype/test-categ_Lm.c: Likewise.
48195         * tests/unictype/test-categ_Lo.c: Likewise.
48196         * tests/unictype/test-categ_Lt.c: Likewise.
48197         * tests/unictype/test-categ_Lu.c: Likewise.
48198         * tests/unictype/test-categ_M.c: Likewise.
48199         * tests/unictype/test-categ_Mc.c: Likewise.
48200         * tests/unictype/test-categ_Me.c: Likewise.
48201         * tests/unictype/test-categ_Mn.c: Likewise.
48202         * tests/unictype/test-categ_N.c: Likewise.
48203         * tests/unictype/test-categ_Nd.c: Likewise.
48204         * tests/unictype/test-categ_Nl.c: Likewise.
48205         * tests/unictype/test-categ_No.c: Likewise.
48206         * tests/unictype/test-categ_P.c: Likewise.
48207         * tests/unictype/test-categ_Pc.c: Likewise.
48208         * tests/unictype/test-categ_Pd.c: Likewise.
48209         * tests/unictype/test-categ_Pe.c: Likewise.
48210         * tests/unictype/test-categ_Pf.c: Likewise.
48211         * tests/unictype/test-categ_Pi.c: Likewise.
48212         * tests/unictype/test-categ_Po.c: Likewise.
48213         * tests/unictype/test-categ_Ps.c: Likewise.
48214         * tests/unictype/test-categ_S.c: Likewise.
48215         * tests/unictype/test-categ_Sc.c: Likewise.
48216         * tests/unictype/test-categ_Sk.c: Likewise.
48217         * tests/unictype/test-categ_Sm.c: Likewise.
48218         * tests/unictype/test-categ_So.c: Likewise.
48219         * tests/unictype/test-categ_Z.c: Likewise.
48220         * tests/unictype/test-categ_Zl.c: Likewise.
48221         * tests/unictype/test-categ_Zp.c: Likewise.
48222         * tests/unictype/test-categ_Zs.c: Likewise.
48223         * tests/unictype/test-ctype_alnum.c: Likewise.
48224         * tests/unictype/test-ctype_alpha.c: Likewise.
48225         * tests/unictype/test-ctype_blank.c: Likewise.
48226         * tests/unictype/test-ctype_cntrl.c: Likewise.
48227         * tests/unictype/test-ctype_digit.c: Likewise.
48228         * tests/unictype/test-ctype_graph.c: Likewise.
48229         * tests/unictype/test-ctype_lower.c: Likewise.
48230         * tests/unictype/test-ctype_print.c: Likewise.
48231         * tests/unictype/test-ctype_punct.c: Likewise.
48232         * tests/unictype/test-ctype_space.c: Likewise.
48233         * tests/unictype/test-ctype_upper.c: Likewise.
48234         * tests/unictype/test-ctype_xdigit.c: Likewise.
48235         * tests/unictype/test-decdigit.h: Likewise.
48236         * tests/unictype/test-digit.h: Likewise.
48237         * tests/unictype/test-numeric.h: Likewise.
48238         * tests/unictype/test-pr_alphabetic.c: Likewise.
48239         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
48240         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
48241         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
48242         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
48243         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
48244         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
48245         * tests/unictype/test-pr_bidi_control.c: Likewise.
48246         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
48247         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
48248         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
48249         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
48250         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
48251         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
48252         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
48253         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
48254         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
48255         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
48256         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
48257         * tests/unictype/test-pr_combining.c: Likewise.
48258         * tests/unictype/test-pr_composite.c: Likewise.
48259         * tests/unictype/test-pr_currency_symbol.c: Likewise.
48260         * tests/unictype/test-pr_dash.c: Likewise.
48261         * tests/unictype/test-pr_decimal_digit.c: Likewise.
48262         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
48263         * tests/unictype/test-pr_deprecated.c: Likewise.
48264         * tests/unictype/test-pr_diacritic.c: Likewise.
48265         * tests/unictype/test-pr_extender.c: Likewise.
48266         * tests/unictype/test-pr_format_control.c: Likewise.
48267         * tests/unictype/test-pr_grapheme_base.c: Likewise.
48268         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
48269         * tests/unictype/test-pr_grapheme_link.c: Likewise.
48270         * tests/unictype/test-pr_hex_digit.c: Likewise.
48271         * tests/unictype/test-pr_hyphen.c: Likewise.
48272         * tests/unictype/test-pr_id_continue.c: Likewise.
48273         * tests/unictype/test-pr_id_start.c: Likewise.
48274         * tests/unictype/test-pr_ideographic.c: Likewise.
48275         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
48276         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
48277         * tests/unictype/test-pr_ignorable_control.c: Likewise.
48278         * tests/unictype/test-pr_iso_control.c: Likewise.
48279         * tests/unictype/test-pr_join_control.c: Likewise.
48280         * tests/unictype/test-pr_left_of_pair.c: Likewise.
48281         * tests/unictype/test-pr_line_separator.c: Likewise.
48282         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
48283         * tests/unictype/test-pr_lowercase.c: Likewise.
48284         * tests/unictype/test-pr_math.c: Likewise.
48285         * tests/unictype/test-pr_non_break.c: Likewise.
48286         * tests/unictype/test-pr_not_a_character.c: Likewise.
48287         * tests/unictype/test-pr_numeric.c: Likewise.
48288         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
48289         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
48290         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
48291         * tests/unictype/test-pr_other_id_continue.c: Likewise.
48292         * tests/unictype/test-pr_other_id_start.c: Likewise.
48293         * tests/unictype/test-pr_other_lowercase.c: Likewise.
48294         * tests/unictype/test-pr_other_math.c: Likewise.
48295         * tests/unictype/test-pr_other_uppercase.c: Likewise.
48296         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
48297         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
48298         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
48299         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
48300         * tests/unictype/test-pr_private_use.c: Likewise.
48301         * tests/unictype/test-pr_punctuation.c: Likewise.
48302         * tests/unictype/test-pr_quotation_mark.c: Likewise.
48303         * tests/unictype/test-pr_radical.c: Likewise.
48304         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
48305         * tests/unictype/test-pr_soft_dotted.c: Likewise.
48306         * tests/unictype/test-pr_space.c: Likewise.
48307         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
48308         * tests/unictype/test-pr_titlecase.c: Likewise.
48309         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
48310         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
48311         * tests/unictype/test-pr_uppercase.c: Likewise.
48312         * tests/unictype/test-pr_variation_selector.c: Likewise.
48313         * tests/unictype/test-pr_white_space.c: Likewise.
48314         * tests/unictype/test-pr_xid_continue.c: Likewise.
48315         * tests/unictype/test-pr_xid_start.c: Likewise.
48316         * tests/unictype/test-pr_zero_width.c: Likewise.
48317         * tests/unictype/test-sy_c_whitespace.c: Likewise.
48318         * tests/unictype/test-sy_java_whitespace.c: Likewise.
48319
48320 2007-11-12  Bruno Haible  <bruno@clisp.org>
48321
48322         Unicode character classification functions.
48323         * lib/unictype.h: New file.
48324         * modules/unictype/base: New file.
48325         * modules/unictype/category-L: New file.
48326         * modules/unictype/category-Lu: New file.
48327         * modules/unictype/category-Ll: New file.
48328         * modules/unictype/category-Lt: New file.
48329         * modules/unictype/category-Lm: New file.
48330         * modules/unictype/category-Lo: New file.
48331         * modules/unictype/category-M: New file.
48332         * modules/unictype/category-Mn: New file.
48333         * modules/unictype/category-Mc: New file.
48334         * modules/unictype/category-Me: New file.
48335         * modules/unictype/category-N: New file.
48336         * modules/unictype/category-Nd: New file.
48337         * modules/unictype/category-Nl: New file.
48338         * modules/unictype/category-No: New file.
48339         * modules/unictype/category-P: New file.
48340         * modules/unictype/category-Pc: New file.
48341         * modules/unictype/category-Pd: New file.
48342         * modules/unictype/category-Ps: New file.
48343         * modules/unictype/category-Pe: New file.
48344         * modules/unictype/category-Pi: New file.
48345         * modules/unictype/category-Pf: New file.
48346         * modules/unictype/category-Po: New file.
48347         * modules/unictype/category-S: New file.
48348         * modules/unictype/category-Sm: New file.
48349         * modules/unictype/category-Sc: New file.
48350         * modules/unictype/category-Sk: New file.
48351         * modules/unictype/category-So: New file.
48352         * modules/unictype/category-Z: New file.
48353         * modules/unictype/category-Zs: New file.
48354         * modules/unictype/category-Zl: New file.
48355         * modules/unictype/category-Zp: New file.
48356         * modules/unictype/category-C: New file.
48357         * modules/unictype/category-Cc: New file.
48358         * modules/unictype/category-Cf: New file.
48359         * modules/unictype/category-Cs: New file.
48360         * modules/unictype/category-Co: New file.
48361         * modules/unictype/category-Cn: New file.
48362         * modules/unictype/category-or: New file.
48363         * modules/unictype/category-of: New file.
48364         * modules/unictype/category-test: New file.
48365         * modules/unictype/category-test-withtable: New file.
48366         * modules/unictype/category-byname: New file.
48367         * modules/unictype/category-none: New file.
48368         * modules/unictype/category-and: New file.
48369         * modules/unictype/category-and-not: New file.
48370         * modules/unictype/category-name: New file.
48371         * modules/unictype/combining-class: New file.
48372         * modules/unictype/category-all: New file.
48373         * modules/unictype/bidicategory-all: New file.
48374         * modules/unictype/bidicategory-byname: New file.
48375         * modules/unictype/bidicategory-name: New file.
48376         * modules/unictype/bidicategory-of: New file.
48377         * modules/unictype/bidicategory-test: New file.
48378         * modules/unictype/decimal-digit: New file.
48379         * modules/unictype/digit: New file.
48380         * modules/unictype/numeric: New file.
48381         * modules/unictype/mirror: New file.
48382         * modules/unictype/property-white-space: New file.
48383         * modules/unictype/property-alphabetic: New file.
48384         * modules/unictype/property-other-alphabetic: New file.
48385         * modules/unictype/property-not-a-character: New file.
48386         * modules/unictype/property-default-ignorable-code-point: New file.
48387         * modules/unictype/property-other-default-ignorable-code-point: New
48388         file.
48389         * modules/unictype/property-deprecated: New file.
48390         * modules/unictype/property-logical-order-exception: New file.
48391         * modules/unictype/property-variation-selector: New file.
48392         * modules/unictype/property-private-use: New file.
48393         * modules/unictype/property-unassigned-code-value: New file.
48394         * modules/unictype/property-uppercase: New file.
48395         * modules/unictype/property-other-uppercase: New file.
48396         * modules/unictype/property-lowercase: New file.
48397         * modules/unictype/property-other-lowercase: New file.
48398         * modules/unictype/property-titlecase: New file.
48399         * modules/unictype/property-soft-dotted: New file.
48400         * modules/unictype/property-id-start: New file.
48401         * modules/unictype/property-other-id-start: New file.
48402         * modules/unictype/property-id-continue: New file.
48403         * modules/unictype/property-other-id-continue: New file.
48404         * modules/unictype/property-xid-start: New file.
48405         * modules/unictype/property-xid-continue: New file.
48406         * modules/unictype/property-pattern-white-space: New file.
48407         * modules/unictype/property-pattern-syntax: New file.
48408         * modules/unictype/property-join-control: New file.
48409         * modules/unictype/property-grapheme-base: New file.
48410         * modules/unictype/property-grapheme-extend: New file.
48411         * modules/unictype/property-other-grapheme-extend: New file.
48412         * modules/unictype/property-grapheme-link: New file.
48413         * modules/unictype/property-bidi-control: New file.
48414         * modules/unictype/property-bidi-left-to-right: New file.
48415         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
48416         * modules/unictype/property-bidi-arabic-right-to-left: New file.
48417         * modules/unictype/property-bidi-european-digit: New file.
48418         * modules/unictype/property-bidi-eur-num-separator: New file.
48419         * modules/unictype/property-bidi-eur-num-terminator: New file.
48420         * modules/unictype/property-bidi-arabic-digit: New file.
48421         * modules/unictype/property-bidi-common-separator: New file.
48422         * modules/unictype/property-bidi-block-separator: New file.
48423         * modules/unictype/property-bidi-segment-separator: New file.
48424         * modules/unictype/property-bidi-whitespace: New file.
48425         * modules/unictype/property-bidi-non-spacing-mark: New file.
48426         * modules/unictype/property-bidi-boundary-neutral: New file.
48427         * modules/unictype/property-bidi-pdf: New file.
48428         * modules/unictype/property-bidi-embedding-or-override: New file.
48429         * modules/unictype/property-bidi-other-neutral: New file.
48430         * modules/unictype/property-hex-digit: New file.
48431         * modules/unictype/property-ascii-hex-digit: New file.
48432         * modules/unictype/property-ideographic: New file.
48433         * modules/unictype/property-unified-ideograph: New file.
48434         * modules/unictype/property-radical: New file.
48435         * modules/unictype/property-ids-binary-operator: New file.
48436         * modules/unictype/property-ids-trinary-operator: New file.
48437         * modules/unictype/property-zero-width: New file.
48438         * modules/unictype/property-space: New file.
48439         * modules/unictype/property-non-break: New file.
48440         * modules/unictype/property-iso-control: New file.
48441         * modules/unictype/property-format-control: New file.
48442         * modules/unictype/property-dash: New file.
48443         * modules/unictype/property-hyphen: New file.
48444         * modules/unictype/property-punctuation: New file.
48445         * modules/unictype/property-line-separator: New file.
48446         * modules/unictype/property-paragraph-separator: New file.
48447         * modules/unictype/property-quotation-mark: New file.
48448         * modules/unictype/property-sentence-terminal: New file.
48449         * modules/unictype/property-terminal-punctuation: New file.
48450         * modules/unictype/property-currency-symbol: New file.
48451         * modules/unictype/property-math: New file.
48452         * modules/unictype/property-other-math: New file.
48453         * modules/unictype/property-paired-punctuation: New file.
48454         * modules/unictype/property-left-of-pair: New file.
48455         * modules/unictype/property-combining: New file.
48456         * modules/unictype/property-composite: New file.
48457         * modules/unictype/property-decimal-digit: New file.
48458         * modules/unictype/property-numeric: New file.
48459         * modules/unictype/property-diacritic: New file.
48460         * modules/unictype/property-extender: New file.
48461         * modules/unictype/property-ignorable-control: New file.
48462         * modules/unictype/property-test: New file.
48463         * modules/unictype/property-byname: New file.
48464         * modules/unictype/property-all: New file.
48465         * modules/unictype/scripts: New file.
48466         * modules/unictype/scripts-all: New file.
48467         * modules/unictype/block-of: New file.
48468         * modules/unictype/block-test: New file.
48469         * modules/unictype/block-list: New file.
48470         * modules/unictype/block-all: New file.
48471         * modules/unictype/syntax-c-whitespace: New file.
48472         * modules/unictype/syntax-java-whitespace: New file.
48473         * modules/unictype/syntax-c-ident: New file.
48474         * modules/unictype/syntax-java-ident: New file.
48475         * modules/unictype/ctype-alnum: New file.
48476         * modules/unictype/ctype-alpha: New file.
48477         * modules/unictype/ctype-cntrl: New file.
48478         * modules/unictype/ctype-digit: New file.
48479         * modules/unictype/ctype-graph: New file.
48480         * modules/unictype/ctype-lower: New file.
48481         * modules/unictype/ctype-print: New file.
48482         * modules/unictype/ctype-punct: New file.
48483         * modules/unictype/ctype-space: New file.
48484         * modules/unictype/ctype-upper: New file.
48485         * modules/unictype/ctype-xdigit: New file.
48486         * modules/unictype/ctype-blank: New file.
48487         * lib/unictype/bidi_byname.c: New file.
48488         * lib/unictype/bidi_name.c: New file.
48489         * lib/unictype/bidi_of.c: New file.
48490         * lib/unictype/bidi_test.c: New file.
48491         * lib/unictype/bitmap.h: New file.
48492         * lib/unictype/block_test.c: New file.
48493         * lib/unictype/blocks.c: New file.
48494         * lib/unictype/categ_C.c: New file.
48495         * lib/unictype/categ_Cc.c: New file.
48496         * lib/unictype/categ_Cf.c: New file.
48497         * lib/unictype/categ_Cn.c: New file.
48498         * lib/unictype/categ_Co.c: New file.
48499         * lib/unictype/categ_Cs.c: New file.
48500         * lib/unictype/categ_L.c: New file.
48501         * lib/unictype/categ_Ll.c: New file.
48502         * lib/unictype/categ_Lm.c: New file.
48503         * lib/unictype/categ_Lo.c: New file.
48504         * lib/unictype/categ_Lt.c: New file.
48505         * lib/unictype/categ_Lu.c: New file.
48506         * lib/unictype/categ_M.c: New file.
48507         * lib/unictype/categ_Mc.c: New file.
48508         * lib/unictype/categ_Me.c: New file.
48509         * lib/unictype/categ_Mn.c: New file.
48510         * lib/unictype/categ_N.c: New file.
48511         * lib/unictype/categ_Nd.c: New file.
48512         * lib/unictype/categ_Nl.c: New file.
48513         * lib/unictype/categ_No.c: New file.
48514         * lib/unictype/categ_P.c: New file.
48515         * lib/unictype/categ_Pc.c: New file.
48516         * lib/unictype/categ_Pd.c: New file.
48517         * lib/unictype/categ_Pe.c: New file.
48518         * lib/unictype/categ_Pf.c: New file.
48519         * lib/unictype/categ_Pi.c: New file.
48520         * lib/unictype/categ_Po.c: New file.
48521         * lib/unictype/categ_Ps.c: New file.
48522         * lib/unictype/categ_S.c: New file.
48523         * lib/unictype/categ_Sc.c: New file.
48524         * lib/unictype/categ_Sk.c: New file.
48525         * lib/unictype/categ_Sm.c: New file.
48526         * lib/unictype/categ_So.c: New file.
48527         * lib/unictype/categ_Z.c: New file.
48528         * lib/unictype/categ_Zl.c: New file.
48529         * lib/unictype/categ_Zp.c: New file.
48530         * lib/unictype/categ_Zs.c: New file.
48531         * lib/unictype/categ_and.c: New file.
48532         * lib/unictype/categ_and_not.c: New file.
48533         * lib/unictype/categ_byname.c: New file.
48534         * lib/unictype/categ_name.c: New file.
48535         * lib/unictype/categ_none.c: New file.
48536         * lib/unictype/categ_of.c: New file.
48537         * lib/unictype/categ_or.c: New file.
48538         * lib/unictype/categ_test.c: New file.
48539         * lib/unictype/combining.c: New file.
48540         * lib/unictype/ctype_alnum.c: New file.
48541         * lib/unictype/ctype_alpha.c: New file.
48542         * lib/unictype/ctype_blank.c: New file.
48543         * lib/unictype/ctype_cntrl.c: New file.
48544         * lib/unictype/ctype_digit.c: New file.
48545         * lib/unictype/ctype_graph.c: New file.
48546         * lib/unictype/ctype_lower.c: New file.
48547         * lib/unictype/ctype_print.c: New file.
48548         * lib/unictype/ctype_punct.c: New file.
48549         * lib/unictype/ctype_space.c: New file.
48550         * lib/unictype/ctype_upper.c: New file.
48551         * lib/unictype/ctype_xdigit.c: New file.
48552         * lib/unictype/decdigit.c: New file.
48553         * lib/unictype/digit.c: New file.
48554         * lib/unictype/identsyntaxmap.h: New file.
48555         * lib/unictype/mirror.c: New file.
48556         * lib/unictype/numeric.c: New file.
48557         * lib/unictype/pr_alphabetic.c: New file.
48558         * lib/unictype/pr_ascii_hex_digit.c: New file.
48559         * lib/unictype/pr_bidi_arabic_digit.c: New file.
48560         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
48561         * lib/unictype/pr_bidi_block_separator.c: New file.
48562         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
48563         * lib/unictype/pr_bidi_common_separator.c: New file.
48564         * lib/unictype/pr_bidi_control.c: New file.
48565         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
48566         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
48567         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
48568         * lib/unictype/pr_bidi_european_digit.c: New file.
48569         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
48570         * lib/unictype/pr_bidi_left_to_right.c: New file.
48571         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
48572         * lib/unictype/pr_bidi_other_neutral.c: New file.
48573         * lib/unictype/pr_bidi_pdf.c: New file.
48574         * lib/unictype/pr_bidi_segment_separator.c: New file.
48575         * lib/unictype/pr_bidi_whitespace.c: New file.
48576         * lib/unictype/pr_byname.c: New file.
48577         * lib/unictype/pr_byname.gperf: New file.
48578         * lib/unictype/pr_combining.c: New file.
48579         * lib/unictype/pr_composite.c: New file.
48580         * lib/unictype/pr_currency_symbol.c: New file.
48581         * lib/unictype/pr_dash.c: New file.
48582         * lib/unictype/pr_decimal_digit.c: New file.
48583         * lib/unictype/pr_default_ignorable_code_point.c: New file.
48584         * lib/unictype/pr_deprecated.c: New file.
48585         * lib/unictype/pr_diacritic.c: New file.
48586         * lib/unictype/pr_extender.c: New file.
48587         * lib/unictype/pr_format_control.c: New file.
48588         * lib/unictype/pr_grapheme_base.c: New file.
48589         * lib/unictype/pr_grapheme_extend.c: New file.
48590         * lib/unictype/pr_grapheme_link.c: New file.
48591         * lib/unictype/pr_hex_digit.c: New file.
48592         * lib/unictype/pr_hyphen.c: New file.
48593         * lib/unictype/pr_id_continue.c: New file.
48594         * lib/unictype/pr_id_start.c: New file.
48595         * lib/unictype/pr_ideographic.c: New file.
48596         * lib/unictype/pr_ids_binary_operator.c: New file.
48597         * lib/unictype/pr_ids_trinary_operator.c: New file.
48598         * lib/unictype/pr_ignorable_control.c: New file.
48599         * lib/unictype/pr_iso_control.c: New file.
48600         * lib/unictype/pr_join_control.c: New file.
48601         * lib/unictype/pr_left_of_pair.c: New file.
48602         * lib/unictype/pr_line_separator.c: New file.
48603         * lib/unictype/pr_logical_order_exception.c: New file.
48604         * lib/unictype/pr_lowercase.c: New file.
48605         * lib/unictype/pr_math.c: New file.
48606         * lib/unictype/pr_non_break.c: New file.
48607         * lib/unictype/pr_not_a_character.c: New file.
48608         * lib/unictype/pr_numeric.c: New file.
48609         * lib/unictype/pr_other_alphabetic.c: New file.
48610         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
48611         * lib/unictype/pr_other_grapheme_extend.c: New file.
48612         * lib/unictype/pr_other_id_continue.c: New file.
48613         * lib/unictype/pr_other_id_start.c: New file.
48614         * lib/unictype/pr_other_lowercase.c: New file.
48615         * lib/unictype/pr_other_math.c: New file.
48616         * lib/unictype/pr_other_uppercase.c: New file.
48617         * lib/unictype/pr_paired_punctuation.c: New file.
48618         * lib/unictype/pr_paragraph_separator.c: New file.
48619         * lib/unictype/pr_pattern_syntax.c: New file.
48620         * lib/unictype/pr_pattern_white_space.c: New file.
48621         * lib/unictype/pr_private_use.c: New file.
48622         * lib/unictype/pr_punctuation.c: New file.
48623         * lib/unictype/pr_quotation_mark.c: New file.
48624         * lib/unictype/pr_radical.c: New file.
48625         * lib/unictype/pr_sentence_terminal.c: New file.
48626         * lib/unictype/pr_soft_dotted.c: New file.
48627         * lib/unictype/pr_space.c: New file.
48628         * lib/unictype/pr_terminal_punctuation.c: New file.
48629         * lib/unictype/pr_test.c: New file.
48630         * lib/unictype/pr_titlecase.c: New file.
48631         * lib/unictype/pr_unassigned_code_value.c: New file.
48632         * lib/unictype/pr_unified_ideograph.c: New file.
48633         * lib/unictype/pr_uppercase.c: New file.
48634         * lib/unictype/pr_variation_selector.c: New file.
48635         * lib/unictype/pr_white_space.c: New file.
48636         * lib/unictype/pr_xid_continue.c: New file.
48637         * lib/unictype/pr_xid_start.c: New file.
48638         * lib/unictype/pr_zero_width.c: New file.
48639         * lib/unictype/scripts.c: New file.
48640         * lib/unictype/sy_c_ident.c: New file.
48641         * lib/unictype/sy_c_whitespace.c: New file.
48642         * lib/unictype/sy_java_ident.c: New file.
48643         * lib/unictype/sy_java_whitespace.c: New file.
48644
48645         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
48646         Unicode 5.0.0.
48647         * lib/unictype/blocks.h: Likewise.
48648         * lib/unictype/categ_C.h: Likewise.
48649         * lib/unictype/categ_Cc.h: Likewise.
48650         * lib/unictype/categ_Cf.h: Likewise.
48651         * lib/unictype/categ_Cn.h: Likewise.
48652         * lib/unictype/categ_Co.h: Likewise.
48653         * lib/unictype/categ_Cs.h: Likewise.
48654         * lib/unictype/categ_L.h: Likewise.
48655         * lib/unictype/categ_Ll.h: Likewise.
48656         * lib/unictype/categ_Lm.h: Likewise.
48657         * lib/unictype/categ_Lo.h: Likewise.
48658         * lib/unictype/categ_Lt.h: Likewise.
48659         * lib/unictype/categ_Lu.h: Likewise.
48660         * lib/unictype/categ_M.h: Likewise.
48661         * lib/unictype/categ_Mc.h: Likewise.
48662         * lib/unictype/categ_Me.h: Likewise.
48663         * lib/unictype/categ_Mn.h: Likewise.
48664         * lib/unictype/categ_N.h: Likewise.
48665         * lib/unictype/categ_Nd.h: Likewise.
48666         * lib/unictype/categ_Nl.h: Likewise.
48667         * lib/unictype/categ_No.h: Likewise.
48668         * lib/unictype/categ_P.h: Likewise.
48669         * lib/unictype/categ_Pc.h: Likewise.
48670         * lib/unictype/categ_Pd.h: Likewise.
48671         * lib/unictype/categ_Pe.h: Likewise.
48672         * lib/unictype/categ_Pf.h: Likewise.
48673         * lib/unictype/categ_Pi.h: Likewise.
48674         * lib/unictype/categ_Po.h: Likewise.
48675         * lib/unictype/categ_Ps.h: Likewise.
48676         * lib/unictype/categ_S.h: Likewise.
48677         * lib/unictype/categ_Sc.h: Likewise.
48678         * lib/unictype/categ_Sk.h: Likewise.
48679         * lib/unictype/categ_Sm.h: Likewise.
48680         * lib/unictype/categ_So.h: Likewise.
48681         * lib/unictype/categ_Z.h: Likewise.
48682         * lib/unictype/categ_Zl.h: Likewise.
48683         * lib/unictype/categ_Zp.h: Likewise.
48684         * lib/unictype/categ_Zs.h: Likewise.
48685         * lib/unictype/categ_of.h: Likewise.
48686         * lib/unictype/combining.h: Likewise.
48687         * lib/unictype/ctype_alnum.h: Likewise.
48688         * lib/unictype/ctype_alpha.h: Likewise.
48689         * lib/unictype/ctype_blank.h: Likewise.
48690         * lib/unictype/ctype_cntrl.h: Likewise.
48691         * lib/unictype/ctype_digit.h: Likewise.
48692         * lib/unictype/ctype_graph.h: Likewise.
48693         * lib/unictype/ctype_lower.h: Likewise.
48694         * lib/unictype/ctype_print.h: Likewise.
48695         * lib/unictype/ctype_punct.h: Likewise.
48696         * lib/unictype/ctype_space.h: Likewise.
48697         * lib/unictype/ctype_upper.h: Likewise.
48698         * lib/unictype/ctype_xdigit.h: Likewise.
48699         * lib/unictype/decdigit.h: Likewise.
48700         * lib/unictype/digit.h: Likewise.
48701         * lib/unictype/mirror.h: Likewise.
48702         * lib/unictype/numeric.h: Likewise.
48703         * lib/unictype/pr_alphabetic.h: Likewise.
48704         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
48705         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
48706         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
48707         * lib/unictype/pr_bidi_block_separator.h: Likewise.
48708         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
48709         * lib/unictype/pr_bidi_common_separator.h: Likewise.
48710         * lib/unictype/pr_bidi_control.h: Likewise.
48711         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
48712         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
48713         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
48714         * lib/unictype/pr_bidi_european_digit.h: Likewise.
48715         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
48716         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
48717         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
48718         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
48719         * lib/unictype/pr_bidi_pdf.h: Likewise.
48720         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
48721         * lib/unictype/pr_bidi_whitespace.h: Likewise.
48722         * lib/unictype/pr_combining.h: Likewise.
48723         * lib/unictype/pr_composite.h: Likewise.
48724         * lib/unictype/pr_currency_symbol.h: Likewise.
48725         * lib/unictype/pr_dash.h: Likewise.
48726         * lib/unictype/pr_decimal_digit.h: Likewise.
48727         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
48728         * lib/unictype/pr_deprecated.h: Likewise.
48729         * lib/unictype/pr_diacritic.h: Likewise.
48730         * lib/unictype/pr_extender.h: Likewise.
48731         * lib/unictype/pr_format_control.h: Likewise.
48732         * lib/unictype/pr_grapheme_base.h: Likewise.
48733         * lib/unictype/pr_grapheme_extend.h: Likewise.
48734         * lib/unictype/pr_grapheme_link.h: Likewise.
48735         * lib/unictype/pr_hex_digit.h: Likewise.
48736         * lib/unictype/pr_hyphen.h: Likewise.
48737         * lib/unictype/pr_id_continue.h: Likewise.
48738         * lib/unictype/pr_id_start.h: Likewise.
48739         * lib/unictype/pr_ideographic.h: Likewise.
48740         * lib/unictype/pr_ids_binary_operator.h: Likewise.
48741         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
48742         * lib/unictype/pr_ignorable_control.h: Likewise.
48743         * lib/unictype/pr_iso_control.h: Likewise.
48744         * lib/unictype/pr_join_control.h: Likewise.
48745         * lib/unictype/pr_left_of_pair.h: Likewise.
48746         * lib/unictype/pr_line_separator.h: Likewise.
48747         * lib/unictype/pr_logical_order_exception.h: Likewise.
48748         * lib/unictype/pr_lowercase.h: Likewise.
48749         * lib/unictype/pr_math.h: Likewise.
48750         * lib/unictype/pr_non_break.h: Likewise.
48751         * lib/unictype/pr_not_a_character.h: Likewise.
48752         * lib/unictype/pr_numeric.h: Likewise.
48753         * lib/unictype/pr_other_alphabetic.h: Likewise.
48754         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
48755         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
48756         * lib/unictype/pr_other_id_continue.h: Likewise.
48757         * lib/unictype/pr_other_id_start.h: Likewise.
48758         * lib/unictype/pr_other_lowercase.h: Likewise.
48759         * lib/unictype/pr_other_math.h: Likewise.
48760         * lib/unictype/pr_other_uppercase.h: Likewise.
48761         * lib/unictype/pr_paired_punctuation.h: Likewise.
48762         * lib/unictype/pr_paragraph_separator.h: Likewise.
48763         * lib/unictype/pr_pattern_syntax.h: Likewise.
48764         * lib/unictype/pr_pattern_white_space.h: Likewise.
48765         * lib/unictype/pr_private_use.h: Likewise.
48766         * lib/unictype/pr_punctuation.h: Likewise.
48767         * lib/unictype/pr_quotation_mark.h: Likewise.
48768         * lib/unictype/pr_radical.h: Likewise.
48769         * lib/unictype/pr_sentence_terminal.h: Likewise.
48770         * lib/unictype/pr_soft_dotted.h: Likewise.
48771         * lib/unictype/pr_space.h: Likewise.
48772         * lib/unictype/pr_terminal_punctuation.h: Likewise.
48773         * lib/unictype/pr_titlecase.h: Likewise.
48774         * lib/unictype/pr_unassigned_code_value.h: Likewise.
48775         * lib/unictype/pr_unified_ideograph.h: Likewise.
48776         * lib/unictype/pr_uppercase.h: Likewise.
48777         * lib/unictype/pr_variation_selector.h: Likewise.
48778         * lib/unictype/pr_white_space.h: Likewise.
48779         * lib/unictype/pr_xid_continue.h: Likewise.
48780         * lib/unictype/pr_xid_start.h: Likewise.
48781         * lib/unictype/pr_zero_width.h: Likewise.
48782         * lib/unictype/scripts.h: Likewise.
48783         * lib/unictype/scripts_byname.gperf: Likewise.
48784         * lib/unictype/sy_c_ident.h: Likewise.
48785         * lib/unictype/sy_c_whitespace.h: Likewise.
48786         * lib/unictype/sy_java_ident.h: Likewise.
48787         * lib/unictype/sy_java_whitespace.h: Likewise.
48788
48789         * lib/unictype/Makefile: New file.
48790         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
48791         glibc.
48792         * lib/unictype/3level.h: New file, copied from glibc.
48793         * lib/unictype/3levelbit.h: New file.
48794
48795 2007-11-11  Bruno Haible  <bruno@clisp.org>
48796
48797         * modules/gperf: New file.
48798         * modules/iconv_open (Depends-on): Add it.
48799         (Makefile.am): Remove the GPERF definition.
48800
48801 2007-11-11  Bruno Haible  <bruno@clisp.org>
48802
48803         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
48804         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
48805
48806 2007-11-11  Bruno Haible  <bruno@clisp.org>
48807
48808         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
48809         (usage): Remove function.
48810
48811 2007-11-11  Bruno Haible  <bruno@clisp.org>
48812
48813         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
48814         gl_FUNC_CEILF_LIBS.
48815         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
48816         gl_FUNC_CEIL_LIBS.
48817         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
48818         gl_FUNC_CEILL_LIBS.
48819         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
48820         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
48821         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
48822
48823 2007-11-11  Bruno Haible  <bruno@clisp.org>
48824
48825         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
48826         roundf were declared but do not exist on functions.
48827         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
48828         roundl were declared but do not exist on functions.
48829         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
48830         HAVE_FLOORL_AND_CEILL, respectively.
48831         Needed for Sun C on Solaris 10.
48832
48833 2007-11-11  Bruno Haible  <bruno@clisp.org>
48834
48835         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
48836         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
48837         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
48838         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
48839         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
48840         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
48841         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
48842         HAVE_DECL_ROUNDF.
48843         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
48844         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
48845         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
48846         of HAVE_DECL_ROUND*.
48847         * modules/math (Makefile.am): Update.
48848
48849 2007-11-10  Bruno Haible  <bruno@clisp.org>
48850
48851         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
48852         ptrdiff_t as m4/intl.m4.
48853
48854 2007-11-10  Jim Meyering  <meyering@redhat.com>
48855
48856         Avoid link failure for the argmatch test.
48857         * tests/test-argmatch.c (usage): Define function to avoid a link
48858         failure: argmatch_die requires a usage function.
48859
48860 2007-11-09  Bruno Haible  <bruno@clisp.org>
48861
48862         * doc/functions/snprintf.texi: Mention BeOS deficiency.
48863         * doc/functions/vsnprintf.texi: Likewise.
48864         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
48865         with a size argument < 2.
48866
48867 2007-11-09  Bruno Haible  <bruno@clisp.org>
48868
48869         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
48870         buffer. Fixes an inefficiency introduced on 2007-11-03.
48871
48872 2007-11-09  Bruno Haible  <bruno@clisp.org>
48873
48874         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
48875         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
48876
48877 2007-11-08  Jim Meyering  <meyering@redhat.com>
48878
48879         Change cache variable name prefix "jm_" to "gl_" everywhere.
48880         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
48881         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
48882         * m4/uptime.m4: s/gl_/jm_/
48883
48884 2007-11-07  Bruno Haible  <bruno@clisp.org>
48885
48886         Update to GNU gettext 0.17.
48887         * m4/intl.m4: Update to GNU gettext 0.17.
48888         * m4/po.m4: Likewise.
48889         * modules/gettext (Files): Remove m4/ulonglong.m4.
48890         (configure.ac): Require gettext infrastructure from version 0.17.
48891
48892 2007-11-06  Bruno Haible  <bruno@clisp.org>
48893
48894         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
48895         symbolic values are not defined in a public header.
48896         * lib/freadable.c (freadable) [QNX]: Likewise.
48897         * lib/freadahead.c (freadahead) [QNX]: Likewise.
48898         * lib/freading.c (freading) [QNX]: Likewise.
48899         * lib/fseterr.c (fseterr) [QNX]: Likewise.
48900         * lib/fwritable.c (fwritable) [QNX]: Likewise.
48901         * lib/fwriting.c (fwriting) [QNX]: Likewise.
48902         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
48903         Reported by Alain Magloire.
48904
48905         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
48906
48907 2007-11-05  Bruno Haible  <bruno@clisp.org>
48908
48909         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
48910         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
48911         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
48912         Reported by Eric Blake.
48913
48914 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48915             Bruno Haible  <bruno@clisp.org>
48916
48917         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
48918         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
48919         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
48920         (malloc): Undefine also before including <stdlib.h>.
48921         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
48922         Needed on OSF/1 4.0.
48923
48924 2007-11-05  Jim Meyering  <meyering@redhat.com>
48925
48926         git-version-gen: sync from coreutils.
48927         * build-aux/git-version-gen: Add comments.
48928         Change the first '-' to '.' in the snapshot version string,
48929         e.g., 6.9-377-08144 -> 6.9.377-08144
48930         Remove first parameter.
48931         Don't declare a version "-dirty" merely because a time
48932         stamp has changed.
48933
48934 2007-11-04  Bruno Haible  <bruno@clisp.org>
48935
48936         * lib/lock.h: Protect all macro definitions containing an 'if'
48937         statement through a "do { ... } while (0)".
48938         * lib/tls.h: Likewise.
48939
48940 2007-11-04  Bruno Haible  <bruno@clisp.org>
48941
48942         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
48943
48944 2007-11-04  Bruno Haible  <bruno@clisp.org>
48945
48946         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
48947         * modules/fprintf-posix (Depends-on): Add nocrash.
48948         * modules/snprintf-posix (Depends-on): Likewise.
48949         * modules/sprintf-posix (Depends-on): Likewise.
48950         * modules/vasnprintf-posix (Depends-on): Likewise.
48951         * modules/vasprintf-posix (Depends-on): Likewise.
48952         * modules/vfprintf-posix (Depends-on): Likewise.
48953         * modules/vsnprintf-posix (Depends-on): Likewise.
48954         * modules/vsprintf-posix (Depends-on): Likewise.
48955         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48956         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48957         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48958         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48959         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48960         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48961         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48962
48963 2007-11-04  Bruno Haible  <bruno@clisp.org>
48964
48965         * modules/nocrash: New file.
48966         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
48967         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
48968
48969 2007-11-04  Bruno Haible  <bruno@clisp.org>
48970
48971         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
48972         precision handling.
48973         * tests/test-vasprintf-posix.c (test_function): Likewise.
48974         * tests/test-snprintf-posix.h (test_function): Likewise.
48975         * tests/test-sprintf-posix.h (test_function): Likewise.
48976
48977         Fix *printf behaviour for large precisions on mingw and BeOS.
48978         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
48979         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
48980         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
48981         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
48982         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48983         gl_PRINTF_PRECISION and test its result. Invoke
48984         gl_PREREQ_VASNPRINTF_PRECISION.
48985         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48986         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48987         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48988         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48989         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48990         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48991         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48992         * doc/functions/fprintf.texi: Update.
48993         * doc/functions/printf.texi: Update.
48994         * doc/functions/snprintf.texi: Update.
48995         * doc/functions/sprintf.texi: Update.
48996         * doc/functions/vfprintf.texi: Update.
48997         * doc/functions/vprintf.texi: Update.
48998         * doc/functions/vsnprintf.texi: Update.
48999         * doc/functions/vsprintf.texi: Update.
49000
49001 2007-11-04  Bruno Haible  <bruno@clisp.org>
49002
49003         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
49004
49005 2007-11-04  Bruno Haible  <bruno@clisp.org>
49006
49007         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
49008         Reported by Sylvain Beucler <beuc@gnu.org>.
49009
49010 2007-11-03  Bruno Haible  <bruno@clisp.org>
49011
49012         * tests/test-fprintf-posix2.sh: New file.
49013         * tests/test-fprintf-posix2.c: New file.
49014         * modules/fprintf-posix-tests (Files): Add them.
49015         (TESTS): Add test-fprintf-posix2.sh.
49016         (configure.ac): Check for getrlimit and setrlimit.
49017         (check_PROGRAMS): Add test-fprintf-posix2.
49018
49019         * tests/test-printf-posix2.sh: New file.
49020         * tests/test-printf-posix2.c: New file.
49021         * modules/printf-posix-tests (Files): Add them.
49022         (TESTS): Add test-printf-posix2.sh.
49023         (configure.ac): Check for getrlimit and setrlimit.
49024         (check_PROGRAMS): Add test-printf-posix2.
49025
49026         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
49027         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
49028         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
49029         (decode_double): New function, copied from decode_long_double.
49030         (scale10_round_decimal_decoded): New function, extracted from
49031         scale10_round_decimal_long_double.
49032         (scale10_round_decimal_long_double): Use it.
49033         (scale10_round_decimal_double): New function.
49034         (floorlog10): New function.
49035         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
49036         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
49037         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
49038         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49039         gl_PRINTF_ENOMEM and test its result. Invoke
49040         gl_PREREQ_VASNPRINTF_ENOMEM.
49041         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49042         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49043         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49044         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49045         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49046         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49047         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49048         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
49049         * modules/snprintf-posix (Depends-on): Likewise.
49050         * modules/sprintf-posix (Depends-on): Likewise.
49051         * modules/vasnprintf-posix (Depends-on): Likewise.
49052         * modules/vasprintf-posix (Depends-on): Likewise.
49053         * modules/vfprintf-posix (Depends-on): Likewise.
49054         * modules/vsnprintf-posix (Depends-on): Likewise.
49055         * modules/vsprintf-posix (Depends-on): Likewise.
49056         * doc/functions/fprintf.texi: Update.
49057         * doc/functions/printf.texi: Update.
49058         * doc/functions/snprintf.texi: Update.
49059         * doc/functions/sprintf.texi: Update.
49060         * doc/functions/vfprintf.texi: Update.
49061         * doc/functions/vprintf.texi: Update.
49062         * doc/functions/vsnprintf.texi: Update.
49063         * doc/functions/vsprintf.texi: Update.
49064
49065 2007-11-03  Bruno Haible  <bruno@clisp.org>
49066
49067         * modules/frexp-nolibm-tests: New file.
49068
49069         * modules/frexp-nolibm: New file.
49070         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
49071
49072 2007-11-03  Bruno Haible  <bruno@clisp.org>
49073
49074         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
49075         value is C99 compliant.
49076         Needed for OSF/1 5.1.
49077
49078 2007-11-03  Bruno Haible  <bruno@clisp.org>
49079
49080         Fix out-of-memory handling of vasnprintf.
49081         * lib/printf-parse.c: Include <errno.h>.
49082         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
49083         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
49084         is already set.
49085
49086 2007-11-02  Eric Blake  <ebb9@byu.net>
49087
49088         Fix tests on cygwin.
49089         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
49090
49091 2007-11-01  Bruno Haible  <bruno@clisp.org>
49092
49093         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
49094         warning.
49095         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
49096         needed for POSIX compatibility.
49097
49098 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
49099
49100         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
49101         for compatibility with GNU.
49102
49103 2007-11-01  Bruno Haible  <bruno@clisp.org>
49104
49105         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
49106         (putenv): Renamed from rpl_putenv. Change argument type from
49107         'const char *' to 'char *'.
49108         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
49109         of defining putenv in config.h, just set REPLACE_PUTENV.
49110         * modules/putenv (Depends-on): Add stdlib.
49111         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
49112         (Include): Use <stdlib.h>.
49113         * lib/stdlib.in.h (putenv): New declaration.
49114         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
49115         REPLACE_PUTENV.
49116         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
49117         REPLACE_PUTENV.
49118         Needed for MacOS X 10.5.0.
49119         Reported by Peter O'Gorman <peter@pogma.com>.
49120
49121 2007-11-01  Jim Meyering  <meyering@redhat.com>
49122
49123         Treat an empty date string exactly like "0".
49124         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
49125         if the remaining date string (to be parsed) is empty, use "0".
49126         Reported by Mischa Molhoek and discussed in this thread:
49127         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
49128
49129 2007-10-31  Bruno Haible  <bruno@clisp.org>
49130
49131         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
49132         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
49133         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
49134         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
49135         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
49136         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
49137
49138 2007-10-31  Bruno Haible  <bruno@clisp.org>
49139
49140         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
49141         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
49142         (AC_TYPE_LONG_LONG_INT): Use it.
49143         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
49144         it as well.
49145         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
49146         to m4/longlong.m4.
49147         * modules/stdint (Files): Remove m4/ulonglong.m4.
49148         * modules/strtoull (Files): Use m4/longlong.m4 instead of
49149         m4/ulonglong.m4.
49150         * modules/strtoumax (Files): Likewise.
49151
49152 2007-10-30  Bruno Haible  <bruno@clisp.org>
49153
49154         * modules/xvasprintf-posix: New file.
49155         Suggested by Eric Blake.
49156
49157 2007-10-30  Bruno Haible  <bruno@clisp.org>
49158
49159         * modules/xprintf-posix-tests: New file.
49160         * tests/test-xprintf-posix.sh: New file.
49161         * tests/test-xprintf-posix.c: New file.
49162         * tests/test-xfprintf-posix.c: New file.
49163
49164         * modules/xprintf-posix: New file.
49165
49166 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49167
49168         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
49169         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
49170         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
49171
49172 2007-10-29  Bruno Haible  <bruno@clisp.org>
49173
49174         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
49175         contain the special marker '_cv_'.
49176         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
49177         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
49178         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
49179         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
49180         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
49181         Reported by Ralf Wildenhues.
49182
49183 2007-10-29  Bruno Haible  <bruno@clisp.org>
49184
49185         * gnulib-tool (func_import): When --lgpl is not specified, set
49186         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
49187         GPLv3.
49188         Reported by Simon Josefsson.
49189
49190 2007-10-28  Bruno Haible  <bruno@clisp.org>
49191
49192         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
49193         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
49194         HAVE_DECL_ISFINITE.
49195         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
49196         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
49197         HAVE_DECL_ISFINITE.
49198
49199 2007-10-28  Bruno Haible  <bruno@clisp.org>
49200
49201         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
49202         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
49203
49204 2007-10-28  Bruno Haible  <bruno@clisp.org>
49205
49206         Fix link errors with Sun C 5.0 on Solaris 10.
49207         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
49208         function is declared but not present in the compiler's libm.
49209         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
49210         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
49211         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
49212         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
49213         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
49214         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
49215         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
49216         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
49217         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
49218         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
49219         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
49220         HAVE_DECL_FLOORL.
49221
49222 2007-10-28  Bruno Haible  <bruno@clisp.org>
49223
49224         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
49225         gl_FUNC_FLOORL. Cache the result.
49226         (gl_FUNC_FLOORL): Use it.
49227         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
49228         gl_FUNC_CEILL. Cache the result.
49229         (gl_FUNC_CEILL): Use it.
49230
49231         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
49232         gl_FUNC_FLOOR. Cache the result.
49233         (gl_FUNC_FLOOR): Use it.
49234         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
49235         gl_FUNC_CEIL. Cache the result.
49236         (gl_FUNC_CEIL): Use it.
49237
49238         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
49239         gl_FUNC_FLOORF. Cache the result.
49240         (gl_FUNC_FLOORF): Use it.
49241         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
49242         gl_FUNC_CEILF. Cache the result.
49243         (gl_FUNC_CEILF): Use it.
49244
49245 2007-10-28  Bruno Haible  <bruno@clisp.org>
49246
49247         * gnulib-tool: Allow specifying the LGPL version number through
49248         --lgpl=2 or --lgpl=3.
49249         (func_usage): Document --lgpl with argument.
49250         Handle --lgpl=... arguments.
49251         (func_import): Recognize also gl_LGPL calls with an argument. When
49252         --lgpl=2 is used and the module's license is just LGPL, report an
49253         error. Set sed_transform_lib_file according to the lgpl variable. In
49254         the generated files, use --lgpl or gl_LGPL invocations with argument,
49255         if necessary.
49256         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
49257         an LGPv2+ license.
49258         * doc/gnulib-tool.texi (Modified imports): Update explanation of
49259         gl_LGPL macro.
49260
49261 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49262             Bruno Haible  <bruno@clisp.org>
49263
49264         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
49265         (u16_uctomb_aux): Likewise.
49266         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
49267         !HAVE_INLINE.
49268         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
49269
49270 2007-10-28  Bruno Haible  <bruno@clisp.org>
49271
49272         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
49273         Invoke AM_GETTEXT_OPTION if it exists.
49274         * modules/vasprintf: Likewise.
49275         * modules/verror: Likewise.
49276         * modules/xprintf: Likewise.
49277         * modules/xvasprintf: Likewise.
49278
49279 2007-10-27  Ben Pfaff  <blp@gnu.org>
49280
49281         * lib/math.in.h: Define isfinite macro and prototypes for
49282         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
49283         implementations.
49284         * m4/math_h.m4: New substitutions for isfinite module.
49285         * lib/isfinite.c: New file.
49286         * m4/isfinite.m4: New file.
49287         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
49288         * modules/isfinite: New file.
49289         * modules/isfinite-tests: New file.
49290         * tests/tests-isfinite.c: New file.
49291         * doc/functions/isfinite.texi: Mention isfinite module.
49292         * MODULES.html.sh: Mention new module.
49293
49294 2007-10-27  Ben Pfaff  <blp@gnu.org>
49295
49296         Ralf Wildenhues reported that Tru64 4.0D declares the round
49297         functions but does not have definitions.
49298         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
49299         cannot be found in any library, set the output variable to
49300         "missing" instead of "".
49301         * m4/round.m4: Also use our substitute if we cannot find round in
49302         any library, even if it is declared.
49303         * m4/roundf.m4: Likewise for roundf.
49304         * m4/roundl.m4: Likewise for roundl.
49305         * lib/math.in.h: Undefine roundf, round, roundl before defining
49306         their replacements, to allow for hypothetical systems where these
49307         may be defined as macros but not available in libraries.
49308
49309 2007-10-27  Bruno Haible  <bruno@clisp.org>
49310
49311         * doc/gnulib.texi: Invoke @firstparagraphindent.
49312         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
49313         changes in gnulib.
49314         (Source changes): New section.
49315
49316 2007-10-26  Bruno Haible  <bruno@clisp.org>
49317
49318         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
49319         borrowed from autoconf.
49320
49321 2007-10-26  Bruno Haible  <bruno@clisp.org>
49322
49323         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
49324         strerror returned the empty string. Needed on HP-UX 11.00.
49325
49326 2007-10-24  Micah Cowan  <micah@cowan.name>
49327
49328         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
49329         * build-aux/bootstrap: Remove support for now-unnecessary option,
49330         --cvs-user, and envvars CVS_USER, CVS_RSH.
49331
49332 2007-10-24  Jim Meyering  <meyering@redhat.com>
49333
49334         Avoid diagnostics from sha1sum when there is no cached checksum.
49335         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
49336         if the po.s1 file hasn't been created yet.
49337
49338         * build-aux/bootstrap: Sync from coreutils:
49339         2007-10-24  Jim Meyering  <meyering@redhat.com>
49340         Get gnulib from the git repository, not from an obsolete cvs one.
49341         * build-aux/bootstrap: Suggestion from Micah Cowan.
49342         2007-10-04  Jim Meyering  <jim@meyering.net>
49343         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
49344         (update_po_files): Work also when there are no .po files in po/.
49345
49346 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
49347
49348         * README: Append ".git" to git and cg examples.
49349         Problem reported by Benoit Sigoure.
49350
49351 2007-10-23  Micah Cowan  <micah@cowan.name>
49352
49353         * users.txt: Add wget.
49354
49355 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49356
49357         Fix linking of some unistdio tests on FreeBSD.
49358         * modules/unistdio/u16-vsnprintf-tests
49359         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
49360         * modules/unistdio/u16-vsprintf-tests
49361         (test_u16_vsnprintf1_LDADD): Likewise.
49362         * modules/unistdio/u32-vsnprintf-tests
49363         (test_u32_vsnprintf1_LDADD): Likewise.
49364         * modules/unistdio/u32-vsprintf-tests
49365         (test_u32_vsprintf1_LDADD): Likewise.
49366         * modules/unistdio/u8-vsnprintf-tests
49367         (test_u8_vsnprintf1_LDADD): Likewise.
49368         * modules/unistdio/u8-vsprintf-tests
49369         (test_u8_vsprintf1_LDADD): Likewise.
49370         * modules/unistdio/ulc-vsnprintf-tests
49371         (test_ulc_vsnprintf1_LDADD): Likewise.
49372         * modules/unistdio/ulc-vsprintf-tests
49373         (test_ulc_vsprintf1_LDADD): Likewise.
49374
49375         Fix linking of some uniconv tests on FreeBSD.
49376         * modules/uniconv/u16-conv-from-enc-tests
49377         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
49378         * modules/uniconv/u16-conv-to-enc-tests
49379         (test_u16_conv_to_enc_LDADD): Likewise.
49380         * modules/uniconv/u16-strconv-from-enc-tests
49381         (test_u16_strconv_from_enc_LDADD): Likewise.
49382         * modules/uniconv/u16-strconv-to-enc-tests
49383         (test_u16_strconv_to_enc_LDADD): Likewise.
49384         * modules/uniconv/u32-conv-from-enc-tests
49385         (test_u32_conv_from_enc_LDADD): Likewise.
49386         * modules/uniconv/u32-conv-to-enc-tests
49387         (test_u32_conv_to_enc_LDADD): Likewise.
49388         * modules/uniconv/u32-strconv-from-enc-tests
49389         (test_u32_strconv_from_enc_LDADD): Likewise.
49390         * modules/uniconv/u32-strconv-to-enc-tests
49391         (test_u32_strconv_to_enc_LDADD): Likewise.
49392         * modules/uniconv/u8-conv-from-enc-tests
49393         (test_u8_conv_from_enc_LDADD): Likewise.
49394         * modules/uniconv/u8-conv-to-enc-tests
49395         (test_u8_conv_to_enc_LDADD): Likewise.
49396         * modules/uniconv/u8-strconv-from-enc-tests
49397         (test_u8_strconv_from_enc_LDADD): Likewise.
49398         * modules/uniconv/u8-strconv-to-enc-tests
49399         (test_u8_strconv_to_enc_LDADD): Likewise.
49400
49401 2007-10-22  Bruno Haible  <bruno@clisp.org>
49402
49403         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
49404         size.
49405
49406 2007-10-22  Eric Blake  <ebb9@byu.net>
49407
49408         Tweak x*printf documentation.
49409         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
49410         variable name and comments.
49411         Suggested by Bruno Haible.
49412
49413 2007-10-22  Bruno Haible  <bruno@clisp.org>
49414
49415         * lib/acl.c (copy_acl): Fix file name in comment.
49416
49417 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
49418
49419         Fix Tru64 problem with stdbool.h.
49420         * lib/stdbool.in.h (false, true):
49421         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
49422         Don't declare as an enum in this situation; it runs afoul of Tru64.
49423         Problem reported by Steven M. Schweda in
49424         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
49425
49426 2007-10-22  Eric Blake  <ebb9@byu.net>
49427
49428         Also wrap vf?printf.
49429         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
49430         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
49431         (xvprintf, xvfprintf): New functions.
49432
49433 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49434
49435         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
49436         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
49437
49438         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
49439         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
49440
49441 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
49442
49443         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
49444         by Bruno Haible.
49445
49446 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49447
49448         * lib/getloadavg.c
49449         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
49450         Undef `sys' after including sys/table.h, for Tru64 4.0D.
49451
49452         * tests/test-i-ring.c: Work for C89.
49453
49454 2007-10-22  Bruno Haible  <bruno@clisp.org>
49455
49456         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
49457         -1u, in preprocessor expression, so that we don't test for the bug
49458         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
49459         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
49460
49461 2007-10-22  Eric Blake  <ebb9@byu.net>
49462
49463         * tests/test-yesno.sh: Silence stderr during test.
49464
49465 2007-10-22  Simon Josefsson  <simon@josefsson.org>
49466
49467         * modules/crypto/gc-camellia: New file.
49468
49469         * m4/gc-camellia.m4: New file.
49470
49471         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
49472
49473         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
49474
49475 2007-10-22  Simon Josefsson  <simon@josefsson.org>
49476
49477         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
49478         --help to stdout.  Reported by sms@antinode.org (Steven
49479         M. Schweda).
49480
49481 2007-10-22  Simon Josefsson  <simon@josefsson.org>
49482
49483         * users.txt: Fix link to libksba.
49484
49485 2007-10-21  Ben Pfaff  <blp@gnu.org>
49486
49487         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
49488         round.c roundf implementation that depends on floorf and ceilf to
49489         be tested unconditionally.
49490
49491 2007-10-21  Ben Pfaff  <blp@gnu.org>
49492
49493         * m4/check-libm-func.m4: Removed.
49494         * m4/check-math-lib.m4: New file.
49495         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
49496         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
49497         definition and lack of AC_LIBOBJ([roundf]).
49498         * m4/roundl.m4: Ditto, and similarly for roundl.
49499         * modules/round: Reference new m4 file.
49500         * modules/roundf: Ditto.
49501         * modules/roundl: Ditto.
49502         * tests/test-round2.c (main): Use ROUND instead of round.
49503         Bug report from Bruno Haible.
49504
49505 2007-10-21  Bruno Haible  <bruno@clisp.org>
49506
49507         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
49508         context.
49509
49510 2007-10-21  Bruno Haible  <bruno@clisp.org>
49511
49512         * tests/test-wcwidth.c (main): Allow negative result for some control
49513         characters.
49514
49515         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
49516         Needed on OSF/1 5.1.
49517
49518 2007-10-21  Bruno Haible  <bruno@clisp.org>
49519
49520         * tests/test-floorf1.c: Include isnanf.h.
49521         (main): Use isnanf() instead of isnan().
49522         * tests/test-ceilf1.c: Include isnanf.h.
49523         (main): Use isnanf() instead of isnan().
49524         * tests/test-truncf1.c: Include isnanf.h.
49525         (main): Use isnanf() instead of isnan().
49526         * tests/test-roundf1.c: Include isnanf.h.
49527         (main): Use isnanf() instead of isnan().
49528
49529 2007-10-21  Eric Blake  <ebb9@byu.net>
49530
49531         * users.txt: Update URL for m4.
49532
49533 2007-10-21  Bruno Haible  <bruno@clisp.org>
49534
49535         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
49536
49537 2007-10-21  Bruno Haible  <bruno@clisp.org>
49538
49539         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
49540         Git's management files if the CVS files are not present.
49541
49542 2007-10-20  Bruno Haible  <bruno@clisp.org>
49543
49544         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
49545         gcc-3.4.x.
49546
49547 2007-10-20  Ben Pfaff  <blp@gnu.org>
49548
49549         * lib/math.in.h: Declare round, roundf, roundl if we are providing
49550         implementations.
49551         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
49552         * lib/round.c: New file.
49553         * lib/roundf.c: New file.
49554         * lib/roundl.c: New file.
49555         * m4/round.m4: New file.
49556         * m4/roundf.m4: New file.
49557         * m4/roundl.m4: New file.
49558         * m4/check-libm-func-m4: New file.
49559         * modules/math: Replace round, roundf, roundl related @VARS@ in
49560         math.in.h.
49561         * modules/round: New file.
49562         * modules/round-tests: New file.
49563         * modules/roundf: New file.
49564         * modules/roundf-tests: New file.
49565         * modules/roundl: New file.
49566         * modules/roundl-tests: New file.
49567         * tests/test-round1.c: New file.
49568         * tests/test-round2.c: New file.
49569         * tests/test-roundf1.c: New file.
49570         * tests/test-roundf2.c: New file.
49571         * tests/test-roundl.c: New file.
49572         * doc/functions/round.texi: Mention round module.
49573         * doc/functions/roundf.texi: Mention roundf module.
49574         * doc/functions/roundl.texi: Mention roundl module.
49575         * MODULES.html.sh: Mention new modules.
49576         Thanks to Bruno Haible for suggestions.
49577
49578 2007-10-20  Jim Meyering  <meyering@redhat.com>
49579
49580         * lib/xprintf.c: Include <config.h> unconditionally.
49581
49582         Change xprintf's license to GPL.
49583         * modules/xprintf (License): s/LGPL/GPL/, since this module
49584         depends on modules (exit and exitfail) which are GPL.
49585         Suggestion from Bruno Haible.
49586
49587         xprintf fixes.
49588         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
49589         Use a clearer diagnostic.
49590         Patch from Bruno Haible.
49591
49592 2007-10-20  Bruno Haible  <bruno@clisp.org>
49593
49594         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
49595         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
49596         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49597
49598 2007-10-20  Bruno Haible  <bruno@clisp.org>
49599
49600         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
49601         precision in the comparison result > x - 1 or similar.
49602         * tests/test-ceilf2.c (correct_result_p): Likewise.
49603         * tests/test-truncf2.c (correct_result_p): Likewise.
49604         * tests/test-trunc2.c (correct_result_p): Likewise.
49605         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49606
49607 2007-10-20  Bruno Haible  <bruno@clisp.org>
49608
49609         * modules/ceil: New file.
49610         * m4/ceil.m4: New file.
49611         * doc/functions/ceil.texi: Mention the 'ceil' module.
49612
49613 2007-10-20  Bruno Haible  <bruno@clisp.org>
49614
49615         * modules/floor: New file.
49616         * m4/floor.m4: New file.
49617         * doc/functions/floor.texi: Mention the 'floor' module.
49618
49619 2007-10-20  Bruno Haible  <bruno@clisp.org>
49620
49621         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
49622         of %a.
49623         * modules/floorf-tests (Depends-on): Likewise.
49624         * modules/truncf-tests (Depends-on): Likewise.
49625         * modules/trunc-tests (Depends-on): Likewise.
49626         Reported by Ben Pfaff.
49627
49628 2007-10-19  Jim Meyering  <meyering@redhat.com>
49629
49630         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
49631         Don't bother testing specific errno values.  Just test ferror.
49632
49633         New module: xprintf
49634         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
49635
49636 2007-10-19  Bruno Haible  <bruno@clisp.org>
49637
49638         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
49639         syntax.
49640         * modules/javaexec (Makefile.am): Likewise.
49641         * modules/relocatable-prog (Makefile.am): Likewise.
49642         Suggested by Jim Meyering.
49643
49644 2007-10-18  Bruno Haible  <bruno@clisp.org>
49645
49646         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
49647         Reported by Jim Meyering.
49648
49649 2007-10-18  Eric Blake  <ebb9@byu.net>
49650
49651         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
49652
49653 2007-10-18  Bruno Haible  <bruno@clisp.org>
49654
49655         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
49656         the format string into writable memory. Needed in Fortify conditions.
49657
49658 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
49659             Bruno Haible  <bruno@clisp.org>
49660
49661         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
49662         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
49663         * modules/trim (Depends-on): Add mbchar.
49664         (configure.ac): Add gl_FUNC_MBRTOWC.
49665         (Makefile.am): Augment lib_SOURCES.
49666
49667 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
49668
49669         Modify glob.c to use fstatat and dirfd, to simplify it.
49670         Suggested by Eric Blake.
49671         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
49672         Don't include <stdbool.h>; not used.
49673         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
49674         (link_exists_p): Simplify implementation, since we can now assume
49675         dirfd and fstatat.
49676         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
49677
49678 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49679
49680         * gnulib-tool (func_get_dependencies): Fix sed script to
49681         match only tests.
49682
49683 2007-10-17  Bruno Haible  <bruno@clisp.org>
49684
49685         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
49686         allow locale names without encoding suffix.
49687         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
49688         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
49689
49690 2007-10-16  Bruno Haible  <bruno@clisp.org>
49691
49692         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
49693         * lib/getgroups.c (getgroups): Likewise.
49694         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
49695
49696 2007-10-16  Bruno Haible  <bruno@clisp.org>
49697
49698         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
49699         * modules/malloc-posix (License): Likewise.
49700         * modules/realloc-posix (License): Likewise.
49701         * modules/calloc-posix (License): Likewise.
49702         * modules/intprops (License): Change from GPL to LGPL, with
49703         Paul Eggert's approval.
49704
49705 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
49706
49707         Merge glibc changes into lib/glob.c.
49708
49709         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
49710         2007-10-15 04:59:03 UTC.  Here are the changes:
49711
49712         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
49713
49714         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
49715
49716         * lib/glob.c: Add some branch prediction throughout.
49717
49718         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
49719
49720         [BZ #5103]
49721         * lib/glob.c (glob): Recognize patterns starting \/.
49722
49723         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
49724
49725         [BZ #3996]
49726         * lib/glob.c (attribute_hidden): Define if not defined.
49727         (glob): Unescape dirname, filename or username when needed and not
49728         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
49729         is NULL.  Handle unescaped [ in pattern without closing ].
49730         Don't pass GLOB_CHECK down to recursive glob for directories.
49731         (__glob_pattern_type): New function.
49732         (__glob_pattern_p): Implement using __glob_pattern_type.
49733         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
49734         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
49735         Remove unreachable code.
49736
49737         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
49738
49739         * lib/glob.c (glob_in_dir): Add some comments and asserts to
49740         explain why there are no leaks.
49741
49742         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
49743
49744         [BZ #3253]
49745         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
49746         time, rather allocate increasingly bigger arrays of pointers, if
49747         possible with alloca, if too large with malloc.
49748
49749 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
49750
49751         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
49752         Problem reported by H.Merijn Brand in
49753         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
49754         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
49755         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
49756
49757 2007-10-15  Bruno Haible  <bruno@clisp.org>
49758
49759         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
49760         with explicit rpl_ prefix.
49761         * lib/fopen.c (fopen): Likewise.
49762         * lib/freopen.c (freopen): Likewise.
49763         * lib/iconv.c (iconv): Likewise.
49764         * lib/iconv_close.c (iconv_close): Likewise.
49765
49766 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49767
49768         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
49769
49770 2007-10-15  Bruno Haible  <bruno@clisp.org>
49771
49772         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
49773         <stddef.h> instead of <stdlib.h> since we only need NULL.
49774         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49775
49776 2007-10-15  Bruno Haible  <bruno@clisp.org>
49777
49778         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
49779         Replace paragraph talking about LIBOBJS.
49780         Reported by Colin Watson <cjwatson@debian.org>.
49781
49782 2007-10-15  Bruno Haible  <bruno@clisp.org>
49783
49784         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
49785         <stdlib.h> before using NULL.
49786
49787 2007-10-15  Simon Josefsson  <simon@josefsson.org>
49788
49789         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
49790         Reported by Albert Chin <china@thewrittenword.com>.
49791
49792 2007-10-14  Bruno Haible  <bruno@clisp.org>
49793
49794         * modules/iconv_open-utf-tests: New file.
49795         * tests/test-iconv-utf.c: New file.
49796
49797         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
49798         * modules/iconv_open-utf: New file.
49799         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
49800         (iconv, iconv_close): New declarations.
49801         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
49802         be defined.
49803         (iconv_open): Add special handling of conversion between UTF-8 and
49804         UTF-{16,32}{BE,LE}.
49805         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
49806         * lib/iconv_close.c: New file.
49807         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
49808         gl_FUNC_ICONV_OPEN.
49809         (gl_FUNC_ICONV_OPEN): Use it.
49810         (gl_FUNC_ICONV_OPEN_UTF): New macro.
49811         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
49812         and REPLACE_ICONV_UTF.
49813         * modules/iconv_open (Depends-on): Add c-strcase.
49814         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
49815         ICONV_CONST.
49816         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
49817
49818 2007-10-13  Albert Chin  <china@thewrittenword.com>
49819             Bruno Haible  <bruno@clisp.org>
49820
49821         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
49822         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
49823
49824 2007-10-13  Bruno Haible  <bruno@clisp.org>
49825
49826         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
49827         defined, use the ISO C99 inline semantics.
49828         * lib/argp.h (ARGP_EI): Likewise.
49829
49830 2007-10-13  Bruno Haible  <bruno@clisp.org>
49831
49832         Handle 'inline' change in gcc 4.3.0.
49833         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
49834         argp_fmtstream_write, argp_fmtstream_set_lmargin,
49835         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
49836         argp_fmtstream_point): Disable 'extern' declaration if the function
49837         definition is going to be provided inline.
49838         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
49839         semantics, not the ISO C99 inline semantics.
49840         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
49841         'extern' declaration if the function definition is going to be provided
49842         inline.
49843         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
49844         the GNU C inline semantics, not the ISO C99 inline semantics. With
49845         GCC 4.2, avoid a warning.
49846
49847 2007-10-13  Bruno Haible  <bruno@clisp.org>
49848
49849         * lib/freading.h (freading): Enable the use of __freading for
49850         glibc >= 2.7.
49851         * lib/freading.c (freading): Likewise.
49852
49853 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
49854
49855         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
49856         "warning: C99 inline functions are not supported; using GNU89".
49857
49858 2007-10-12  Bruno Haible  <bruno@clisp.org>
49859
49860         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
49861         of 2.
49862         * tests/test-ceilf2.c: New file.
49863         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
49864
49865         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
49866         * modules/ceilf-tests: Update.
49867
49868 2007-10-12  Bruno Haible  <bruno@clisp.org>
49869
49870         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
49871         of 2.
49872         * tests/test-floorf2.c: New file.
49873         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
49874
49875         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
49876         * modules/floorf-tests: Update.
49877
49878 2007-10-12  Bruno Haible  <bruno@clisp.org>
49879
49880         * tests/test-trunc2.c: New file.
49881         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
49882
49883         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
49884         * modules/trunc-tests: Update.
49885
49886 2007-10-12  Bruno Haible  <bruno@clisp.org>
49887
49888         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
49889         of 2.
49890         * tests/test-truncf2.c: New file.
49891         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
49892
49893         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
49894         * modules/truncf-tests: Update.
49895
49896 2007-10-11  Eric Blake  <ebb9@byu.net>
49897
49898         Don't claim strerror is broken on Interix.
49899         * doc/functions/strerror.texi (strerror): Known broken systems are
49900         now Solaris 8, and not Interix.
49901         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
49902         Interix on cross-compile.
49903         Reported by Martin Koeppe in
49904         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
49905
49906 2007-10-11  Bruno Haible  <bruno@clisp.org>
49907
49908         * modules/i-ring-tests: New file.
49909         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
49910         instead of assert.
49911
49912 2007-10-11  Bruno Haible  <bruno@clisp.org>
49913
49914         * modules/filenamecat-tests: New file.
49915         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
49916         * lib/filenamecat.c: Remove test code.
49917
49918 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
49919
49920         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
49921
49922         * lib/strerror.c: Include <string.h> always, to test interface,
49923         and to remove the need for the dummy.
49924         Include intprops.h to compute width instead of doing it ourselves
49925         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
49926         (strerror): Define it to return NULL if there's no system strerror.
49927         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
49928         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
49929         ancient pre-strerror Unix systems well any more.  Saying "unknown
49930         system error" is enough.
49931         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
49932         simpler strerror.c implementation.
49933         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
49934         Simplify the tests to reflect the simpler strerror implementation.
49935         * modules/strerror (Depends-on): Add intprops.
49936
49937 2007-10-09  Eric Blake  <ebb9@byu.net>
49938
49939         Silence test-fpending.
49940         * modules/fpending-tests (Files): Add wrapper script.
49941         * tests/test-fpending.sh: New file.
49942
49943 2007-10-09  Bruno Haible  <bruno@clisp.org>
49944
49945         * MODULES.html.sh (func_module): Don't create a hyperlink for
49946         function names like 'printf_frexp'.
49947         (Misc): Add crc, memxor.
49948         (Characteristics of floating types): New section.
49949         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
49950         isnanf-nolibm, signbit, trunc, truncf, truncl.
49951         (Enhancements for ISO C 99 functions): New subsection Input/output.
49952         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
49953         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
49954         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
49955         (Compatibility checks for POSIX:2001 functions): Add clock-time.
49956         (Enhancements for POSIX:2001 functions): Add chdir-long.
49957         (File system functions): Add areadlink, chdir-safer, read-file.
49958         Remove cycle-check.
49959         (File system as inode set): New section.
49960         (Date and time): Add gethrxtime.
49961         (Multithreading): Add openmp.
49962         (Internationalization functions): Add localename.
49963         (Unicode string functions): Add unistr/u*-mbsnlen.
49964         (Support for maintaining and releasing projects): Add git-version-gen.
49965         (Lone files): Remove directories.
49966
49967 2007-10-08  Ben Pfaff  <blp@gnu.org>
49968
49969         * lib/xmalloca.h: Fix typo in comment.
49970
49971 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
49972
49973         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
49974         when avoiding problems with integer overflow.  Use a portable test
49975         instead.
49976
49977 2007-10-08  Simon Josefsson  <simon@josefsson.org>
49978
49979         * modules/dummy (License): Change to LGPLv2+.
49980         * modules/float (License): Likewise
49981         * modules/realloc (License): Likewise
49982         * modules/stdlib (License): Likewise
49983
49984 2007-10-07  Bruno Haible  <bruno@clisp.org>
49985
49986         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
49987         * floor.c (TWO_MANT_DIG): Likewise.
49988         * ceil.c (TWO_MANT_DIG): Likewise.
49989         Reported by Ben Pfaff.
49990
49991 2007-10-07  Bruno Haible  <bruno@clisp.org>
49992
49993         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
49994         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
49995         * lib/frexp.c (FUNC): Likewise.
49996         * lib/printf-frexp.h (printf_frexp): Likewise.
49997         * lib/printf-frexpl.h (printf_frexpl): Likewise.
49998         * lib/printf-frexp.c (FUNC): Likewise.
49999         Suggested by Jim Meyering.
50000
50001 2007-10-07  Jim Meyering  <meyering@redhat.com>
50002
50003         Make xnanosleep's integer overflow test more robust.
50004         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
50005         so that gcc-4.3.0 doesn't optimize away this test for overflow.
50006
50007 2007-10-07  Bruno Haible  <bruno@clisp.org>
50008
50009         * NEWS: Mention the license change.
50010
50011         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
50012         abbreviations in the modules files.
50013
50014         Change copyright notice from GPLv2+ to GPLv3+.
50015         * README: Change copyright notice.
50016         * MODULES.html.sh: Likewise.
50017         * build-aux/bootstrap.conf: Likewise.
50018         * build-aux/config.libpath: Likewise.
50019         * build-aux/csharpcomp.sh.in: Likewise.
50020         * build-aux/csharpexec.sh.in: Likewise.
50021         * build-aux/install-reloc: Likewise.
50022         * build-aux/javacomp.sh.in: Likewise.
50023         * build-aux/javaexec.sh.in: Likewise.
50024         * build-aux/ldd.sh.in: Likewise.
50025         * build-aux/reloc-ldflags: Likewise.
50026         * build-aux/relocatable.sh.in: Likewise.
50027         * build-aux/x-to-1.in: Likewise.
50028         * check-module: Likewise.
50029         * config/srclistvars.sh: Likewise.
50030         * gnulib-tool: Likewise.
50031         * lib/acl-internal.h: Likewise.
50032         * lib/acl.c: Likewise.
50033         * lib/acl.h: Likewise.
50034         * lib/acl_entries.c: Likewise.
50035         * lib/areadlink-with-size.c: Likewise.
50036         * lib/areadlink.c: Likewise.
50037         * lib/areadlink.h: Likewise.
50038         * lib/argmatch.c: Likewise.
50039         * lib/argmatch.h: Likewise.
50040         * lib/argp-ba.c: Likewise.
50041         * lib/argp-eexst.c: Likewise.
50042         * lib/argp-fmtstream.c: Likewise.
50043         * lib/argp-fmtstream.h: Likewise.
50044         * lib/argp-fs-xinl.c: Likewise.
50045         * lib/argp-help.c: Likewise.
50046         * lib/argp-namefrob.h: Likewise.
50047         * lib/argp-parse.c: Likewise.
50048         * lib/argp-pin.c: Likewise.
50049         * lib/argp-pv.c: Likewise.
50050         * lib/argp-pvh.c: Likewise.
50051         * lib/argp-xinl.c: Likewise.
50052         * lib/argp.h: Likewise.
50053         * lib/at-func.c: Likewise.
50054         * lib/atanl.c: Likewise.
50055         * lib/backupfile.c: Likewise.
50056         * lib/backupfile.h: Likewise.
50057         * lib/basename.c: Likewise.
50058         * lib/binary-io.h: Likewise.
50059         * lib/byteswap.in.h: Likewise.
50060         * lib/c-stack.c: Likewise.
50061         * lib/c-stack.h: Likewise.
50062         * lib/c-strcasestr.c: Likewise.
50063         * lib/c-strcasestr.h: Likewise.
50064         * lib/c-strstr.c: Likewise.
50065         * lib/c-strstr.h: Likewise.
50066         * lib/c-strtod.c: Likewise.
50067         * lib/calloc.c: Likewise.
50068         * lib/canon-host.c: Likewise.
50069         * lib/canon-host.h: Likewise.
50070         * lib/canonicalize-lgpl.c: Likewise.
50071         * lib/canonicalize.c: Likewise.
50072         * lib/canonicalize.h: Likewise.
50073         * lib/ceil.c: Likewise.
50074         * lib/ceilf.c: Likewise.
50075         * lib/ceill.c: Likewise.
50076         * lib/chdir-long.c: Likewise.
50077         * lib/chdir-long.h: Likewise.
50078         * lib/chdir-safer.c: Likewise.
50079         * lib/chdir-safer.h: Likewise.
50080         * lib/chown.c: Likewise.
50081         * lib/classpath.c: Likewise.
50082         * lib/classpath.h: Likewise.
50083         * lib/clean-temp.c: Likewise.
50084         * lib/clean-temp.h: Likewise.
50085         * lib/cloexec.c: Likewise.
50086         * lib/close-stream.c: Likewise.
50087         * lib/closein.c: Likewise.
50088         * lib/closein.h: Likewise.
50089         * lib/closeout.c: Likewise.
50090         * lib/closeout.h: Likewise.
50091         * lib/concat-filename.c: Likewise.
50092         * lib/copy-file.c: Likewise.
50093         * lib/copy-file.h: Likewise.
50094         * lib/count-one-bits.h: Likewise.
50095         * lib/crc.c: Likewise.
50096         * lib/crc.h: Likewise.
50097         * lib/creat-safer.c: Likewise.
50098         * lib/csharpcomp.c: Likewise.
50099         * lib/csharpcomp.h: Likewise.
50100         * lib/csharpexec.c: Likewise.
50101         * lib/csharpexec.h: Likewise.
50102         * lib/cycle-check.c: Likewise.
50103         * lib/cycle-check.h: Likewise.
50104         * lib/diacrit.c: Likewise.
50105         * lib/diacrit.h: Likewise.
50106         * lib/diffseq.h: Likewise.
50107         * lib/dirchownmod.c: Likewise.
50108         * lib/dirent.in.h: Likewise.
50109         * lib/dirfd.c: Likewise.
50110         * lib/dirfd.h: Likewise.
50111         * lib/dirname.c: Likewise.
50112         * lib/dirname.h: Likewise.
50113         * lib/dummy.c: Likewise.
50114         * lib/dup-safer.c: Likewise.
50115         * lib/dup2.c: Likewise.
50116         * lib/eealloc.h: Likewise.
50117         * lib/error.c: Likewise.
50118         * lib/error.h: Likewise.
50119         * lib/euidaccess.c: Likewise.
50120         * lib/exclude.c: Likewise.
50121         * lib/exclude.h: Likewise.
50122         * lib/execute.c: Likewise.
50123         * lib/execute.h: Likewise.
50124         * lib/exitfail.c: Likewise.
50125         * lib/exitfail.h: Likewise.
50126         * lib/expl.c: Likewise.
50127         * lib/fatal-signal.c: Likewise.
50128         * lib/fatal-signal.h: Likewise.
50129         * lib/fbufmode.c: Likewise.
50130         * lib/fbufmode.h: Likewise.
50131         * lib/fchdir.c: Likewise.
50132         * lib/fchmodat.c: Likewise.
50133         * lib/fchownat.c: Likewise.
50134         * lib/fcntl--.h: Likewise.
50135         * lib/fcntl-safer.h: Likewise.
50136         * lib/fcntl.in.h: Likewise.
50137         * lib/fd-safer.c: Likewise.
50138         * lib/fflush.c: Likewise.
50139         * lib/file-has-acl.c: Likewise.
50140         * lib/file-set.c: Likewise.
50141         * lib/file-type.c: Likewise.
50142         * lib/file-type.h: Likewise.
50143         * lib/fileblocks.c: Likewise.
50144         * lib/filemode.c: Likewise.
50145         * lib/filemode.h: Likewise.
50146         * lib/filename.h: Likewise.
50147         * lib/filenamecat.c: Likewise.
50148         * lib/filenamecat.h: Likewise.
50149         * lib/findprog.c: Likewise.
50150         * lib/findprog.h: Likewise.
50151         * lib/float.in.h: Likewise.
50152         * lib/floor.c: Likewise.
50153         * lib/floorf.c: Likewise.
50154         * lib/floorl.c: Likewise.
50155         * lib/fopen-safer.c: Likewise.
50156         * lib/fopen.c: Likewise.
50157         * lib/fpending.c: Likewise.
50158         * lib/fpending.h: Likewise.
50159         * lib/fprintf.c: Likewise.
50160         * lib/fprintftime.h: Likewise.
50161         * lib/fpucw.h: Likewise.
50162         * lib/fpurge.c: Likewise.
50163         * lib/fpurge.h: Likewise.
50164         * lib/freadable.c: Likewise.
50165         * lib/freadable.h: Likewise.
50166         * lib/freadahead.c: Likewise.
50167         * lib/freadahead.h: Likewise.
50168         * lib/freading.c: Likewise.
50169         * lib/freading.h: Likewise.
50170         * lib/free.c: Likewise.
50171         * lib/freopen.c: Likewise.
50172         * lib/frexp.c: Likewise.
50173         * lib/frexpl.c: Likewise.
50174         * lib/fseek.c: Likewise.
50175         * lib/fseterr.c: Likewise.
50176         * lib/fseterr.h: Likewise.
50177         * lib/fstatat.c: Likewise.
50178         * lib/fstrcmp.c: Likewise.
50179         * lib/fstrcmp.h: Likewise.
50180         * lib/fsusage.c: Likewise.
50181         * lib/fsusage.h: Likewise.
50182         * lib/ftell.c: Likewise.
50183         * lib/ftello.c: Likewise.
50184         * lib/fts-cycle.c: Likewise.
50185         * lib/fts.c: Likewise.
50186         * lib/fts_.h: Likewise.
50187         * lib/full-read.c: Likewise.
50188         * lib/full-read.h: Likewise.
50189         * lib/full-write.c: Likewise.
50190         * lib/full-write.h: Likewise.
50191         * lib/fwritable.c: Likewise.
50192         * lib/fwritable.h: Likewise.
50193         * lib/fwriteerror.c: Likewise.
50194         * lib/fwriteerror.h: Likewise.
50195         * lib/fwriting.c: Likewise.
50196         * lib/fwriting.h: Likewise.
50197         * lib/gcd.c: Likewise.
50198         * lib/gcd.h: Likewise.
50199         * lib/getcwd.c: Likewise.
50200         * lib/getdate.h: Likewise.
50201         * lib/getdate.y: Likewise.
50202         * lib/getdomainname.c: Likewise.
50203         * lib/getdomainname.h: Likewise.
50204         * lib/getgroups.c: Likewise.
50205         * lib/gethostname.c: Likewise.
50206         * lib/gethrxtime.c: Likewise.
50207         * lib/gethrxtime.h: Likewise.
50208         * lib/getloadavg.c: Likewise.
50209         * lib/getndelim2.c: Likewise.
50210         * lib/getndelim2.h: Likewise.
50211         * lib/getnline.c: Likewise.
50212         * lib/getnline.h: Likewise.
50213         * lib/getopt.c: Likewise.
50214         * lib/getopt.in.h: Likewise.
50215         * lib/getopt1.c: Likewise.
50216         * lib/getopt_int.h: Likewise.
50217         * lib/getpagesize.h: Likewise.
50218         * lib/getsubopt.c: Likewise.
50219         * lib/gettime.c: Likewise.
50220         * lib/getugroups.c: Likewise.
50221         * lib/getugroups.h: Likewise.
50222         * lib/getusershell.c: Likewise.
50223         * lib/gl_anyavltree_list1.h: Likewise.
50224         * lib/gl_anyavltree_list2.h: Likewise.
50225         * lib/gl_anyhash_list1.h: Likewise.
50226         * lib/gl_anyhash_list2.h: Likewise.
50227         * lib/gl_anylinked_list1.h: Likewise.
50228         * lib/gl_anylinked_list2.h: Likewise.
50229         * lib/gl_anyrbtree_list1.h: Likewise.
50230         * lib/gl_anyrbtree_list2.h: Likewise.
50231         * lib/gl_anytree_list1.h: Likewise.
50232         * lib/gl_anytree_list2.h: Likewise.
50233         * lib/gl_anytree_oset.h: Likewise.
50234         * lib/gl_anytreehash_list1.h: Likewise.
50235         * lib/gl_anytreehash_list2.h: Likewise.
50236         * lib/gl_array_list.c: Likewise.
50237         * lib/gl_array_list.h: Likewise.
50238         * lib/gl_array_oset.c: Likewise.
50239         * lib/gl_array_oset.h: Likewise.
50240         * lib/gl_avltree_list.c: Likewise.
50241         * lib/gl_avltree_list.h: Likewise.
50242         * lib/gl_avltree_oset.c: Likewise.
50243         * lib/gl_avltree_oset.h: Likewise.
50244         * lib/gl_avltreehash_list.c: Likewise.
50245         * lib/gl_avltreehash_list.h: Likewise.
50246         * lib/gl_carray_list.c: Likewise.
50247         * lib/gl_carray_list.h: Likewise.
50248         * lib/gl_linked_list.c: Likewise.
50249         * lib/gl_linked_list.h: Likewise.
50250         * lib/gl_linkedhash_list.c: Likewise.
50251         * lib/gl_linkedhash_list.h: Likewise.
50252         * lib/gl_list.c: Likewise.
50253         * lib/gl_list.h: Likewise.
50254         * lib/gl_oset.c: Likewise.
50255         * lib/gl_oset.h: Likewise.
50256         * lib/gl_rbtree_list.c: Likewise.
50257         * lib/gl_rbtree_list.h: Likewise.
50258         * lib/gl_rbtree_oset.c: Likewise.
50259         * lib/gl_rbtree_oset.h: Likewise.
50260         * lib/gl_rbtreehash_list.c: Likewise.
50261         * lib/gl_rbtreehash_list.h: Likewise.
50262         * lib/gl_sublist.c: Likewise.
50263         * lib/gl_sublist.h: Likewise.
50264         * lib/group-member.c: Likewise.
50265         * lib/group-member.h: Likewise.
50266         * lib/hard-locale.c: Likewise.
50267         * lib/hard-locale.h: Likewise.
50268         * lib/hash-pjw.c: Likewise.
50269         * lib/hash-pjw.h: Likewise.
50270         * lib/hash-triple.c: Likewise.
50271         * lib/hash.c: Likewise.
50272         * lib/hash.h: Likewise.
50273         * lib/human.c: Likewise.
50274         * lib/human.h: Likewise.
50275         * lib/i-ring.c: Likewise.
50276         * lib/i-ring.h: Likewise.
50277         * lib/idcache.c: Likewise.
50278         * lib/imaxabs.c: Likewise.
50279         * lib/imaxdiv.c: Likewise.
50280         * lib/inet_pton.c: Likewise.
50281         * lib/inet_pton.h: Likewise.
50282         * lib/intprops.h: Likewise.
50283         * lib/inttostr.c: Likewise.
50284         * lib/inttostr.h: Likewise.
50285         * lib/inttypes.in.h: Likewise.
50286         * lib/isapipe.c: Likewise.
50287         * lib/isdir.c: Likewise.
50288         * lib/isnan.c: Likewise.
50289         * lib/isnan.h: Likewise.
50290         * lib/isnanf.c: Likewise.
50291         * lib/isnanf.h: Likewise.
50292         * lib/isnanl-nolibm.h: Likewise.
50293         * lib/isnanl.c: Likewise.
50294         * lib/isnanl.h: Likewise.
50295         * lib/javacomp.c: Likewise.
50296         * lib/javacomp.h: Likewise.
50297         * lib/javaexec.c: Likewise.
50298         * lib/javaexec.h: Likewise.
50299         * lib/javaversion.c: Likewise.
50300         * lib/javaversion.h: Likewise.
50301         * lib/javaversion.java: Likewise.
50302         * lib/lbrkprop.h: Likewise.
50303         * lib/lchmod.h: Likewise.
50304         * lib/lchown.c: Likewise.
50305         * lib/ldexpl.c: Likewise.
50306         * lib/linebreak.c: Likewise.
50307         * lib/linebreak.h: Likewise.
50308         * lib/linebuffer.c: Likewise.
50309         * lib/linebuffer.h: Likewise.
50310         * lib/locale.in.h: Likewise.
50311         * lib/logl.c: Likewise.
50312         * lib/long-options.c: Likewise.
50313         * lib/long-options.h: Likewise.
50314         * lib/lstat.c: Likewise.
50315         * lib/lstat.h: Likewise.
50316         * lib/math.in.h: Likewise.
50317         * lib/mbchar.c: Likewise.
50318         * lib/mbchar.h: Likewise.
50319         * lib/mbfile.h: Likewise.
50320         * lib/mbiter.h: Likewise.
50321         * lib/mbscasecmp.c: Likewise.
50322         * lib/mbscasestr.c: Likewise.
50323         * lib/mbschr.c: Likewise.
50324         * lib/mbscspn.c: Likewise.
50325         * lib/mbslen.c: Likewise.
50326         * lib/mbsncasecmp.c: Likewise.
50327         * lib/mbsnlen.c: Likewise.
50328         * lib/mbspbrk.c: Likewise.
50329         * lib/mbspcasecmp.c: Likewise.
50330         * lib/mbsrchr.c: Likewise.
50331         * lib/mbssep.c: Likewise.
50332         * lib/mbsspn.c: Likewise.
50333         * lib/mbsstr.c: Likewise.
50334         * lib/mbstok_r.c: Likewise.
50335         * lib/mbswidth.c: Likewise.
50336         * lib/mbswidth.h: Likewise.
50337         * lib/mbuiter.h: Likewise.
50338         * lib/memcasecmp.c: Likewise.
50339         * lib/memcasecmp.h: Likewise.
50340         * lib/memchr.c: Likewise.
50341         * lib/memcmp.c: Likewise.
50342         * lib/memcoll.c: Likewise.
50343         * lib/memcoll.h: Likewise.
50344         * lib/memcpy.c: Likewise.
50345         * lib/memrchr.c: Likewise.
50346         * lib/mkancesdirs.c: Likewise.
50347         * lib/mkdir-p.c: Likewise.
50348         * lib/mkdir-p.h: Likewise.
50349         * lib/mkdir.c: Likewise.
50350         * lib/mkdirat.c: Likewise.
50351         * lib/mkdtemp.c: Likewise.
50352         * lib/mkstemp-safer.c: Likewise.
50353         * lib/mkstemp.c: Likewise.
50354         * lib/modechange.c: Likewise.
50355         * lib/modechange.h: Likewise.
50356         * lib/mountlist.c: Likewise.
50357         * lib/mountlist.h: Likewise.
50358         * lib/mpsort.c: Likewise.
50359         * lib/nanosleep.c: Likewise.
50360         * lib/obstack.c: Likewise.
50361         * lib/obstack.h: Likewise.
50362         * lib/open-safer.c: Likewise.
50363         * lib/open.c: Likewise.
50364         * lib/openat-die.c: Likewise.
50365         * lib/openat-priv.h: Likewise.
50366         * lib/openat-proc.c: Likewise.
50367         * lib/openat.c: Likewise.
50368         * lib/openat.h: Likewise.
50369         * lib/pagealign_alloc.c: Likewise.
50370         * lib/pagealign_alloc.h: Likewise.
50371         * lib/physmem.c: Likewise.
50372         * lib/physmem.h: Likewise.
50373         * lib/pipe-safer.c: Likewise.
50374         * lib/pipe.c: Likewise.
50375         * lib/pipe.h: Likewise.
50376         * lib/posixtm.c: Likewise.
50377         * lib/posixtm.h: Likewise.
50378         * lib/posixver.c: Likewise.
50379         * lib/printf-frexp.c: Likewise.
50380         * lib/printf-frexp.h: Likewise.
50381         * lib/printf-frexpl.c: Likewise.
50382         * lib/printf-frexpl.h: Likewise.
50383         * lib/printf.c: Likewise.
50384         * lib/progname.c: Likewise.
50385         * lib/progname.h: Likewise.
50386         * lib/progreloc.c: Likewise.
50387         * lib/putenv.c: Likewise.
50388         * lib/quote.c: Likewise.
50389         * lib/quote.h: Likewise.
50390         * lib/quotearg.c: Likewise.
50391         * lib/quotearg.h: Likewise.
50392         * lib/raise.c: Likewise.
50393         * lib/readline.c: Likewise.
50394         * lib/readline.h: Likewise.
50395         * lib/readlink.c: Likewise.
50396         * lib/readtokens.c: Likewise.
50397         * lib/readtokens.h: Likewise.
50398         * lib/readtokens0.c: Likewise.
50399         * lib/readtokens0.h: Likewise.
50400         * lib/readutmp.c: Likewise.
50401         * lib/readutmp.h: Likewise.
50402         * lib/realloc.c: Likewise.
50403         * lib/relocwrapper.c: Likewise.
50404         * lib/rename-dest-slash.c: Likewise.
50405         * lib/rename.c: Likewise.
50406         * lib/rmdir.c: Likewise.
50407         * lib/rpmatch.c: Likewise.
50408         * lib/safe-read.c: Likewise.
50409         * lib/safe-read.h: Likewise.
50410         * lib/safe-write.c: Likewise.
50411         * lib/safe-write.h: Likewise.
50412         * lib/same-inode.h: Likewise.
50413         * lib/same.c: Likewise.
50414         * lib/same.h: Likewise.
50415         * lib/save-cwd.c: Likewise.
50416         * lib/save-cwd.h: Likewise.
50417         * lib/savedir.c: Likewise.
50418         * lib/savedir.h: Likewise.
50419         * lib/savewd.c: Likewise.
50420         * lib/savewd.h: Likewise.
50421         * lib/search.in.h: Likewise.
50422         * lib/setenv.c: Likewise.
50423         * lib/setenv.h: Likewise.
50424         * lib/settime.c: Likewise.
50425         * lib/sh-quote.c: Likewise.
50426         * lib/sh-quote.h: Likewise.
50427         * lib/sig2str.c: Likewise.
50428         * lib/sig2str.h: Likewise.
50429         * lib/signal.in.h: Likewise.
50430         * lib/signbitd.c: Likewise.
50431         * lib/signbitf.c: Likewise.
50432         * lib/signbitl.c: Likewise.
50433         * lib/sigprocmask.c: Likewise.
50434         * lib/sincosl.c: Likewise.
50435         * lib/sleep.c: Likewise.
50436         * lib/sprintf.c: Likewise.
50437         * lib/sqrtl.c: Likewise.
50438         * lib/stat-time.h: Likewise.
50439         * lib/stdio--.h: Likewise.
50440         * lib/stdio-safer.h: Likewise.
50441         * lib/stdlib--.h: Likewise.
50442         * lib/stdlib-safer.h: Likewise.
50443         * lib/stdlib.in.h: Likewise.
50444         * lib/stpcpy.c: Likewise.
50445         * lib/stpncpy.c: Likewise.
50446         * lib/strchrnul.c: Likewise.
50447         * lib/strcspn.c: Likewise.
50448         * lib/strerror.c: Likewise.
50449         * lib/strftime.c: Likewise.
50450         * lib/strftime.h: Likewise.
50451         * lib/striconveh.c: Likewise.
50452         * lib/striconveh.h: Likewise.
50453         * lib/striconveha.c: Likewise.
50454         * lib/striconveha.h: Likewise.
50455         * lib/stripslash.c: Likewise.
50456         * lib/strnlen1.c: Likewise.
50457         * lib/strnlen1.h: Likewise.
50458         * lib/strtod.c: Likewise.
50459         * lib/strtoimax.c: Likewise.
50460         * lib/strtok_r.c: Likewise.
50461         * lib/strtol.c: Likewise.
50462         * lib/strtoll.c: Likewise.
50463         * lib/strtoul.c: Likewise.
50464         * lib/strtoull.c: Likewise.
50465         * lib/sysexits.in.h: Likewise.
50466         * lib/tempname.c: Likewise.
50467         * lib/tempname.h: Likewise.
50468         * lib/timespec.h: Likewise.
50469         * lib/tls.c: Likewise.
50470         * lib/tls.h: Likewise.
50471         * lib/tmpdir.c: Likewise.
50472         * lib/tmpdir.h: Likewise.
50473         * lib/tmpfile-safer.c: Likewise.
50474         * lib/tmpfile.c: Likewise.
50475         * lib/trigl.c: Likewise.
50476         * lib/trigl.h: Likewise.
50477         * lib/trim.c: Likewise.
50478         * lib/trim.h: Likewise.
50479         * lib/trunc.c: Likewise.
50480         * lib/truncf.c: Likewise.
50481         * lib/truncl.c: Likewise.
50482         * lib/tsearch.c: Likewise.
50483         * lib/unicodeio.c: Likewise.
50484         * lib/unicodeio.h: Likewise.
50485         * lib/unistd--.h: Likewise.
50486         * lib/unistd-safer.h: Likewise.
50487         * lib/unistdio/ulc-fprintf.c: Likewise.
50488         * lib/unistdio/ulc-vfprintf.c: Likewise.
50489         * lib/unlinkdir.c: Likewise.
50490         * lib/unlinkdir.h: Likewise.
50491         * lib/unlocked-io.h: Likewise.
50492         * lib/unsetenv.c: Likewise.
50493         * lib/userspec.c: Likewise.
50494         * lib/utime.c: Likewise.
50495         * lib/utimecmp.c: Likewise.
50496         * lib/utimecmp.h: Likewise.
50497         * lib/utimens.c: Likewise.
50498         * lib/verify.h: Likewise.
50499         * lib/verror.c: Likewise.
50500         * lib/verror.h: Likewise.
50501         * lib/version-etc-fsf.c: Likewise.
50502         * lib/version-etc.c: Likewise.
50503         * lib/version-etc.h: Likewise.
50504         * lib/vfprintf.c: Likewise.
50505         * lib/vprintf.c: Likewise.
50506         * lib/vsprintf.c: Likewise.
50507         * lib/w32spawn.h: Likewise.
50508         * lib/wait-process.c: Likewise.
50509         * lib/wait-process.h: Likewise.
50510         * lib/wcwidth.c: Likewise.
50511         * lib/write-any-file.c: Likewise.
50512         * lib/xalloc-die.c: Likewise.
50513         * lib/xalloc.h: Likewise.
50514         * lib/xasprintf.c: Likewise.
50515         * lib/xgetcwd.c: Likewise.
50516         * lib/xgetcwd.h: Likewise.
50517         * lib/xgetdomainname.c: Likewise.
50518         * lib/xgetdomainname.h: Likewise.
50519         * lib/xgethostname.c: Likewise.
50520         * lib/xmalloc.c: Likewise.
50521         * lib/xmalloca.c: Likewise.
50522         * lib/xmalloca.h: Likewise.
50523         * lib/xmemcoll.c: Likewise.
50524         * lib/xnanosleep.c: Likewise.
50525         * lib/xreadlink.c: Likewise.
50526         * lib/xreadlink.h: Likewise.
50527         * lib/xsetenv.c: Likewise.
50528         * lib/xsetenv.h: Likewise.
50529         * lib/xstriconv.c: Likewise.
50530         * lib/xstriconv.h: Likewise.
50531         * lib/xstrndup.c: Likewise.
50532         * lib/xstrndup.h: Likewise.
50533         * lib/xstrtod.c: Likewise.
50534         * lib/xstrtod.h: Likewise.
50535         * lib/xstrtol-error.c: Likewise.
50536         * lib/xstrtol.c: Likewise.
50537         * lib/xstrtol.h: Likewise.
50538         * lib/xtime.h: Likewise.
50539         * lib/xvasprintf.c: Likewise.
50540         * lib/xvasprintf.h: Likewise.
50541         * lib/yesno.c: Likewise.
50542         * lib/yesno.h: Likewise.
50543         * posix-modules: Likewise.
50544         * tests/test-alloca-opt.c: Likewise.
50545         * tests/test-arcfour.c: Likewise.
50546         * tests/test-arctwo.c: Likewise.
50547         * tests/test-argmatch.c: Likewise.
50548         * tests/test-argp-2.sh: Likewise.
50549         * tests/test-argp.c: Likewise.
50550         * tests/test-arpa_inet.c: Likewise.
50551         * tests/test-array_list.c: Likewise.
50552         * tests/test-array_oset.c: Likewise.
50553         * tests/test-atexit.c: Likewise.
50554         * tests/test-avltree_list.c: Likewise.
50555         * tests/test-avltree_oset.c: Likewise.
50556         * tests/test-avltreehash_list.c: Likewise.
50557         * tests/test-base64.c: Likewise.
50558         * tests/test-binary-io.c: Likewise.
50559         * tests/test-byteswap.c: Likewise.
50560         * tests/test-c-ctype.c: Likewise.
50561         * tests/test-c-strcasecmp.c: Likewise.
50562         * tests/test-c-strcasestr.c: Likewise.
50563         * tests/test-c-strncasecmp.c: Likewise.
50564         * tests/test-c-strstr.c: Likewise.
50565         * tests/test-canonicalize-lgpl.c: Likewise.
50566         * tests/test-canonicalize.c: Likewise.
50567         * tests/test-carray_list.c: Likewise.
50568         * tests/test-ceilf.c: Likewise.
50569         * tests/test-ceill.c: Likewise.
50570         * tests/test-count-one-bits.c: Likewise.
50571         * tests/test-crc.c: Likewise.
50572         * tests/test-dirname.c: Likewise.
50573         * tests/test-fbufmode.c: Likewise.
50574         * tests/test-fcntl.c: Likewise.
50575         * tests/test-fflush.c: Likewise.
50576         * tests/test-floorf.c: Likewise.
50577         * tests/test-floorl.c: Likewise.
50578         * tests/test-fopen.c: Likewise.
50579         * tests/test-fprintf-posix.c: Likewise.
50580         * tests/test-fprintf-posix.h: Likewise.
50581         * tests/test-fpurge.c: Likewise.
50582         * tests/test-freadable.c: Likewise.
50583         * tests/test-freadahead.c: Likewise.
50584         * tests/test-freading.c: Likewise.
50585         * tests/test-freopen.c: Likewise.
50586         * tests/test-frexp.c: Likewise.
50587         * tests/test-frexpl.c: Likewise.
50588         * tests/test-fseek.c: Likewise.
50589         * tests/test-fseeko.c: Likewise.
50590         * tests/test-fseterr.c: Likewise.
50591         * tests/test-fstrcmp.c: Likewise.
50592         * tests/test-ftell.c: Likewise.
50593         * tests/test-ftello.c: Likewise.
50594         * tests/test-fwritable.c: Likewise.
50595         * tests/test-fwriting.c: Likewise.
50596         * tests/test-getaddrinfo.c: Likewise.
50597         * tests/test-getpass.c: Likewise.
50598         * tests/test-gettimeofday.c: Likewise.
50599         * tests/test-hmac-md5.c: Likewise.
50600         * tests/test-hmac-sha1.c: Likewise.
50601         * tests/test-iconv.c: Likewise.
50602         * tests/test-iconvme.c: Likewise.
50603         * tests/test-inttypes.c: Likewise.
50604         * tests/test-isnan.c: Likewise.
50605         * tests/test-isnanf.c: Likewise.
50606         * tests/test-isnanl-nolibm.c: Likewise.
50607         * tests/test-isnanl.c: Likewise.
50608         * tests/test-isnanl.h: Likewise.
50609         * tests/test-ldexpl.c: Likewise.
50610         * tests/test-linked_list.c: Likewise.
50611         * tests/test-linkedhash_list.c: Likewise.
50612         * tests/test-locale.c: Likewise.
50613         * tests/test-localename.c: Likewise.
50614         * tests/test-lock.c: Likewise.
50615         * tests/test-lseek.c: Likewise.
50616         * tests/test-malloca.c: Likewise.
50617         * tests/test-math.c: Likewise.
50618         * tests/test-mbscasecmp.c: Likewise.
50619         * tests/test-mbscasestr1.c: Likewise.
50620         * tests/test-mbscasestr2.c: Likewise.
50621         * tests/test-mbscasestr3.c: Likewise.
50622         * tests/test-mbscasestr4.c: Likewise.
50623         * tests/test-mbschr.c: Likewise.
50624         * tests/test-mbscspn.c: Likewise.
50625         * tests/test-mbsncasecmp.c: Likewise.
50626         * tests/test-mbspbrk.c: Likewise.
50627         * tests/test-mbspcasecmp.c: Likewise.
50628         * tests/test-mbsrchr.c: Likewise.
50629         * tests/test-mbsspn.c: Likewise.
50630         * tests/test-mbsstr1.c: Likewise.
50631         * tests/test-mbsstr2.c: Likewise.
50632         * tests/test-mbsstr3.c: Likewise.
50633         * tests/test-md5.c: Likewise.
50634         * tests/test-memmem.c: Likewise.
50635         * tests/test-netinet_in.c: Likewise.
50636         * tests/test-open.c: Likewise.
50637         * tests/test-printf-frexp.c: Likewise.
50638         * tests/test-printf-frexpl.c: Likewise.
50639         * tests/test-printf-posix.c: Likewise.
50640         * tests/test-printf-posix.h: Likewise.
50641         * tests/test-rbtree_list.c: Likewise.
50642         * tests/test-rbtree_oset.c: Likewise.
50643         * tests/test-rbtreehash_list.c: Likewise.
50644         * tests/test-read-file.c: Likewise.
50645         * tests/test-rijndael.c: Likewise.
50646         * tests/test-search.c: Likewise.
50647         * tests/test-signbit.c: Likewise.
50648         * tests/test-sleep.c: Likewise.
50649         * tests/test-snprintf-posix.c: Likewise.
50650         * tests/test-snprintf-posix.h: Likewise.
50651         * tests/test-snprintf.c: Likewise.
50652         * tests/test-sprintf-posix.c: Likewise.
50653         * tests/test-sprintf-posix.h: Likewise.
50654         * tests/test-stat-time.c: Likewise.
50655         * tests/test-stdbool.c: Likewise.
50656         * tests/test-stdint.c: Likewise.
50657         * tests/test-stdio.c: Likewise.
50658         * tests/test-stdlib.c: Likewise.
50659         * tests/test-stpncpy.c: Likewise.
50660         * tests/test-strcasestr.c: Likewise.
50661         * tests/test-striconv.c: Likewise.
50662         * tests/test-striconveh.c: Likewise.
50663         * tests/test-striconveha.c: Likewise.
50664         * tests/test-string.c: Likewise.
50665         * tests/test-sys_select.c: Likewise.
50666         * tests/test-sys_socket.c: Likewise.
50667         * tests/test-sys_stat.c: Likewise.
50668         * tests/test-sys_time.c: Likewise.
50669         * tests/test-sysexits.c: Likewise.
50670         * tests/test-time.c: Likewise.
50671         * tests/test-tls.c: Likewise.
50672         * tests/test-trunc.c: Likewise.
50673         * tests/test-truncf.c: Likewise.
50674         * tests/test-truncl.c: Likewise.
50675         * tests/test-unistd.c: Likewise.
50676         * tests/test-vasnprintf-posix.c: Likewise.
50677         * tests/test-vasnprintf-posix2.c: Likewise.
50678         * tests/test-vasnprintf.c: Likewise.
50679         * tests/test-vasprintf-posix.c: Likewise.
50680         * tests/test-vasprintf.c: Likewise.
50681         * tests/test-verify.c: Likewise.
50682         * tests/test-vfprintf-posix.c: Likewise.
50683         * tests/test-vprintf-posix.c: Likewise.
50684         * tests/test-vsnprintf-posix.c: Likewise.
50685         * tests/test-vsnprintf.c: Likewise.
50686         * tests/test-vsprintf-posix.c: Likewise.
50687         * tests/test-wchar.c: Likewise.
50688         * tests/test-wctype.c: Likewise.
50689         * tests/test-wcwidth.c: Likewise.
50690         * tests/test-xstrtol.c: Likewise.
50691         * tests/test-xvasprintf.c: Likewise.
50692         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
50693         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
50694         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
50695         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
50696         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
50697         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
50698         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
50699         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
50700         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
50701         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
50702         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
50703         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
50704         * tests/uniname/test-uninames.c: Likewise.
50705         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
50706         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
50707         * tests/unistdio/test-u16-printf1.h: Likewise.
50708         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
50709         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
50710         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
50711         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
50712         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
50713         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
50714         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
50715         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
50716         * tests/unistdio/test-u32-printf1.h: Likewise.
50717         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
50718         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
50719         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
50720         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
50721         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
50722         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
50723         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
50724         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
50725         * tests/unistdio/test-u8-printf1.h: Likewise.
50726         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
50727         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
50728         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
50729         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
50730         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
50731         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
50732         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
50733         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
50734         * tests/unistdio/test-ulc-printf1.h: Likewise.
50735         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
50736         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
50737         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
50738         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
50739         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
50740         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
50741         * tests/uniwidth/test-u16-strwidth.c: Likewise.
50742         * tests/uniwidth/test-u16-width.c: Likewise.
50743         * tests/uniwidth/test-u32-strwidth.c: Likewise.
50744         * tests/uniwidth/test-u32-width.c: Likewise.
50745         * tests/uniwidth/test-u8-strwidth.c: Likewise.
50746         * tests/uniwidth/test-u8-width.c: Likewise.
50747         * tests/uniwidth/test-uc_width.c: Likewise.
50748         * config/srclist-update: Likewise.
50749         (fixlicense): Update to GPLv3+.
50750
50751         Change copyright notice from LGPLv2.1+ to LGPLv3+.
50752         * tests/test-tsearch.c: Change copyright notice.
50753
50754         Change copyright notice from LGPLv2.0+ to LGPLv3+.
50755         * lib/c-strcaseeq.h: Change copyright notice.
50756         * lib/streq.h: Likewise.
50757         * lib/uniconv.h: Likewise.
50758         * lib/uniconv/u-conv-from-enc.h: Likewise.
50759         * lib/uniconv/u-conv-to-enc.h: Likewise.
50760         * lib/uniconv/u-strconv-from-enc.h: Likewise.
50761         * lib/uniconv/u-strconv-to-enc.h: Likewise.
50762         * lib/uniconv/u16-conv-from-enc.c: Likewise.
50763         * lib/uniconv/u16-conv-to-enc.c: Likewise.
50764         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
50765         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
50766         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
50767         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
50768         * lib/uniconv/u32-conv-from-enc.c: Likewise.
50769         * lib/uniconv/u32-conv-to-enc.c: Likewise.
50770         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
50771         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
50772         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
50773         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
50774         * lib/uniconv/u8-conv-from-enc.c: Likewise.
50775         * lib/uniconv/u8-conv-to-enc.c: Likewise.
50776         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
50777         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
50778         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
50779         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
50780         * lib/uniname.h: Likewise.
50781         * lib/uniname/uniname.c: Likewise.
50782         * lib/unistdio.h: Likewise.
50783         * lib/unistdio/u-asnprintf.h: Likewise.
50784         * lib/unistdio/u-asprintf.h: Likewise.
50785         * lib/unistdio/u-printf-args.c: Likewise.
50786         * lib/unistdio/u-printf-args.h: Likewise.
50787         * lib/unistdio/u-printf-parse.h: Likewise.
50788         * lib/unistdio/u-snprintf.h: Likewise.
50789         * lib/unistdio/u-sprintf.h: Likewise.
50790         * lib/unistdio/u-vasprintf.h: Likewise.
50791         * lib/unistdio/u-vsnprintf.h: Likewise.
50792         * lib/unistdio/u-vsprintf.h: Likewise.
50793         * lib/unistdio/u16-asnprintf.c: Likewise.
50794         * lib/unistdio/u16-asprintf.c: Likewise.
50795         * lib/unistdio/u16-printf-parse.c: Likewise.
50796         * lib/unistdio/u16-snprintf.c: Likewise.
50797         * lib/unistdio/u16-sprintf.c: Likewise.
50798         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
50799         * lib/unistdio/u16-u16-asprintf.c: Likewise.
50800         * lib/unistdio/u16-u16-snprintf.c: Likewise.
50801         * lib/unistdio/u16-u16-sprintf.c: Likewise.
50802         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
50803         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
50804         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
50805         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
50806         * lib/unistdio/u16-vasnprintf.c: Likewise.
50807         * lib/unistdio/u16-vasprintf.c: Likewise.
50808         * lib/unistdio/u16-vsnprintf.c: Likewise.
50809         * lib/unistdio/u16-vsprintf.c: Likewise.
50810         * lib/unistdio/u32-asnprintf.c: Likewise.
50811         * lib/unistdio/u32-asprintf.c: Likewise.
50812         * lib/unistdio/u32-printf-parse.c: Likewise.
50813         * lib/unistdio/u32-snprintf.c: Likewise.
50814         * lib/unistdio/u32-sprintf.c: Likewise.
50815         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
50816         * lib/unistdio/u32-u32-asprintf.c: Likewise.
50817         * lib/unistdio/u32-u32-snprintf.c: Likewise.
50818         * lib/unistdio/u32-u32-sprintf.c: Likewise.
50819         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
50820         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
50821         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
50822         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
50823         * lib/unistdio/u32-vasnprintf.c: Likewise.
50824         * lib/unistdio/u32-vasprintf.c: Likewise.
50825         * lib/unistdio/u32-vsnprintf.c: Likewise.
50826         * lib/unistdio/u32-vsprintf.c: Likewise.
50827         * lib/unistdio/u8-asnprintf.c: Likewise.
50828         * lib/unistdio/u8-asprintf.c: Likewise.
50829         * lib/unistdio/u8-printf-parse.c: Likewise.
50830         * lib/unistdio/u8-snprintf.c: Likewise.
50831         * lib/unistdio/u8-sprintf.c: Likewise.
50832         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
50833         * lib/unistdio/u8-u8-asprintf.c: Likewise.
50834         * lib/unistdio/u8-u8-snprintf.c: Likewise.
50835         * lib/unistdio/u8-u8-sprintf.c: Likewise.
50836         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
50837         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
50838         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
50839         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
50840         * lib/unistdio/u8-vasnprintf.c: Likewise.
50841         * lib/unistdio/u8-vasprintf.c: Likewise.
50842         * lib/unistdio/u8-vsnprintf.c: Likewise.
50843         * lib/unistdio/u8-vsprintf.c: Likewise.
50844         * lib/unistdio/ulc-asnprintf.c: Likewise.
50845         * lib/unistdio/ulc-asprintf.c: Likewise.
50846         * lib/unistdio/ulc-printf-parse.c: Likewise.
50847         * lib/unistdio/ulc-snprintf.c: Likewise.
50848         * lib/unistdio/ulc-sprintf.c: Likewise.
50849         * lib/unistdio/ulc-vasnprintf.c: Likewise.
50850         * lib/unistdio/ulc-vasprintf.c: Likewise.
50851         * lib/unistdio/ulc-vsnprintf.c: Likewise.
50852         * lib/unistdio/ulc-vsprintf.c: Likewise.
50853         * lib/unistr.h: Likewise.
50854         * lib/unistr/u-cpy-alloc.h: Likewise.
50855         * lib/unistr/u-cpy.h: Likewise.
50856         * lib/unistr/u-endswith.h: Likewise.
50857         * lib/unistr/u-move.h: Likewise.
50858         * lib/unistr/u-set.h: Likewise.
50859         * lib/unistr/u-startswith.h: Likewise.
50860         * lib/unistr/u-stpcpy.h: Likewise.
50861         * lib/unistr/u-stpncpy.h: Likewise.
50862         * lib/unistr/u-strcat.h: Likewise.
50863         * lib/unistr/u-strcpy.h: Likewise.
50864         * lib/unistr/u-strcspn.h: Likewise.
50865         * lib/unistr/u-strdup.h: Likewise.
50866         * lib/unistr/u-strlen.h: Likewise.
50867         * lib/unistr/u-strncat.h: Likewise.
50868         * lib/unistr/u-strncpy.h: Likewise.
50869         * lib/unistr/u-strnlen.h: Likewise.
50870         * lib/unistr/u-strpbrk.h: Likewise.
50871         * lib/unistr/u-strspn.h: Likewise.
50872         * lib/unistr/u-strstr.h: Likewise.
50873         * lib/unistr/u-strtok.h: Likewise.
50874         * lib/unistr/u16-check.c: Likewise.
50875         * lib/unistr/u16-chr.c: Likewise.
50876         * lib/unistr/u16-cmp.c: Likewise.
50877         * lib/unistr/u16-cpy-alloc.c: Likewise.
50878         * lib/unistr/u16-cpy.c: Likewise.
50879         * lib/unistr/u16-endswith.c: Likewise.
50880         * lib/unistr/u16-mblen.c: Likewise.
50881         * lib/unistr/u16-mbsnlen.c: Likewise.
50882         * lib/unistr/u16-mbtouc-aux.c: Likewise.
50883         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
50884         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
50885         * lib/unistr/u16-mbtouc.c: Likewise.
50886         * lib/unistr/u16-mbtoucr.c: Likewise.
50887         * lib/unistr/u16-move.c: Likewise.
50888         * lib/unistr/u16-next.c: Likewise.
50889         * lib/unistr/u16-prev.c: Likewise.
50890         * lib/unistr/u16-set.c: Likewise.
50891         * lib/unistr/u16-startswith.c: Likewise.
50892         * lib/unistr/u16-stpcpy.c: Likewise.
50893         * lib/unistr/u16-stpncpy.c: Likewise.
50894         * lib/unistr/u16-strcat.c: Likewise.
50895         * lib/unistr/u16-strchr.c: Likewise.
50896         * lib/unistr/u16-strcmp.c: Likewise.
50897         * lib/unistr/u16-strcpy.c: Likewise.
50898         * lib/unistr/u16-strcspn.c: Likewise.
50899         * lib/unistr/u16-strdup.c: Likewise.
50900         * lib/unistr/u16-strlen.c: Likewise.
50901         * lib/unistr/u16-strmblen.c: Likewise.
50902         * lib/unistr/u16-strmbtouc.c: Likewise.
50903         * lib/unistr/u16-strncat.c: Likewise.
50904         * lib/unistr/u16-strncmp.c: Likewise.
50905         * lib/unistr/u16-strncpy.c: Likewise.
50906         * lib/unistr/u16-strnlen.c: Likewise.
50907         * lib/unistr/u16-strpbrk.c: Likewise.
50908         * lib/unistr/u16-strrchr.c: Likewise.
50909         * lib/unistr/u16-strspn.c: Likewise.
50910         * lib/unistr/u16-strstr.c: Likewise.
50911         * lib/unistr/u16-strtok.c: Likewise.
50912         * lib/unistr/u16-to-u32.c: Likewise.
50913         * lib/unistr/u16-to-u8.c: Likewise.
50914         * lib/unistr/u16-uctomb-aux.c: Likewise.
50915         * lib/unistr/u16-uctomb.c: Likewise.
50916         * lib/unistr/u32-check.c: Likewise.
50917         * lib/unistr/u32-chr.c: Likewise.
50918         * lib/unistr/u32-cmp.c: Likewise.
50919         * lib/unistr/u32-cpy-alloc.c: Likewise.
50920         * lib/unistr/u32-cpy.c: Likewise.
50921         * lib/unistr/u32-endswith.c: Likewise.
50922         * lib/unistr/u32-mblen.c: Likewise.
50923         * lib/unistr/u32-mbsnlen.c: Likewise.
50924         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
50925         * lib/unistr/u32-mbtouc.c: Likewise.
50926         * lib/unistr/u32-mbtoucr.c: Likewise.
50927         * lib/unistr/u32-move.c: Likewise.
50928         * lib/unistr/u32-next.c: Likewise.
50929         * lib/unistr/u32-prev.c: Likewise.
50930         * lib/unistr/u32-set.c: Likewise.
50931         * lib/unistr/u32-startswith.c: Likewise.
50932         * lib/unistr/u32-stpcpy.c: Likewise.
50933         * lib/unistr/u32-stpncpy.c: Likewise.
50934         * lib/unistr/u32-strcat.c: Likewise.
50935         * lib/unistr/u32-strchr.c: Likewise.
50936         * lib/unistr/u32-strcmp.c: Likewise.
50937         * lib/unistr/u32-strcpy.c: Likewise.
50938         * lib/unistr/u32-strcspn.c: Likewise.
50939         * lib/unistr/u32-strdup.c: Likewise.
50940         * lib/unistr/u32-strlen.c: Likewise.
50941         * lib/unistr/u32-strmblen.c: Likewise.
50942         * lib/unistr/u32-strmbtouc.c: Likewise.
50943         * lib/unistr/u32-strncat.c: Likewise.
50944         * lib/unistr/u32-strncmp.c: Likewise.
50945         * lib/unistr/u32-strncpy.c: Likewise.
50946         * lib/unistr/u32-strnlen.c: Likewise.
50947         * lib/unistr/u32-strpbrk.c: Likewise.
50948         * lib/unistr/u32-strrchr.c: Likewise.
50949         * lib/unistr/u32-strspn.c: Likewise.
50950         * lib/unistr/u32-strstr.c: Likewise.
50951         * lib/unistr/u32-strtok.c: Likewise.
50952         * lib/unistr/u32-to-u16.c: Likewise.
50953         * lib/unistr/u32-to-u8.c: Likewise.
50954         * lib/unistr/u32-uctomb.c: Likewise.
50955         * lib/unistr/u8-check.c: Likewise.
50956         * lib/unistr/u8-chr.c: Likewise.
50957         * lib/unistr/u8-cmp.c: Likewise.
50958         * lib/unistr/u8-cpy-alloc.c: Likewise.
50959         * lib/unistr/u8-cpy.c: Likewise.
50960         * lib/unistr/u8-endswith.c: Likewise.
50961         * lib/unistr/u8-mblen.c: Likewise.
50962         * lib/unistr/u8-mbsnlen.c: Likewise.
50963         * lib/unistr/u8-mbtouc-aux.c: Likewise.
50964         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
50965         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
50966         * lib/unistr/u8-mbtouc.c: Likewise.
50967         * lib/unistr/u8-mbtoucr.c: Likewise.
50968         * lib/unistr/u8-move.c: Likewise.
50969         * lib/unistr/u8-next.c: Likewise.
50970         * lib/unistr/u8-prev.c: Likewise.
50971         * lib/unistr/u8-set.c: Likewise.
50972         * lib/unistr/u8-startswith.c: Likewise.
50973         * lib/unistr/u8-stpcpy.c: Likewise.
50974         * lib/unistr/u8-stpncpy.c: Likewise.
50975         * lib/unistr/u8-strcat.c: Likewise.
50976         * lib/unistr/u8-strchr.c: Likewise.
50977         * lib/unistr/u8-strcmp.c: Likewise.
50978         * lib/unistr/u8-strcpy.c: Likewise.
50979         * lib/unistr/u8-strcspn.c: Likewise.
50980         * lib/unistr/u8-strdup.c: Likewise.
50981         * lib/unistr/u8-strlen.c: Likewise.
50982         * lib/unistr/u8-strmblen.c: Likewise.
50983         * lib/unistr/u8-strmbtouc.c: Likewise.
50984         * lib/unistr/u8-strncat.c: Likewise.
50985         * lib/unistr/u8-strncmp.c: Likewise.
50986         * lib/unistr/u8-strncpy.c: Likewise.
50987         * lib/unistr/u8-strnlen.c: Likewise.
50988         * lib/unistr/u8-strpbrk.c: Likewise.
50989         * lib/unistr/u8-strrchr.c: Likewise.
50990         * lib/unistr/u8-strspn.c: Likewise.
50991         * lib/unistr/u8-strstr.c: Likewise.
50992         * lib/unistr/u8-strtok.c: Likewise.
50993         * lib/unistr/u8-to-u16.c: Likewise.
50994         * lib/unistr/u8-to-u32.c: Likewise.
50995         * lib/unistr/u8-uctomb-aux.c: Likewise.
50996         * lib/unistr/u8-uctomb.c: Likewise.
50997         * lib/unitypes.h: Likewise.
50998         * lib/uniwidth.h: Likewise.
50999         * lib/uniwidth/cjk.h: Likewise.
51000         * lib/uniwidth/u16-strwidth.c: Likewise.
51001         * lib/uniwidth/u16-width.c: Likewise.
51002         * lib/uniwidth/u32-strwidth.c: Likewise.
51003         * lib/uniwidth/u32-width.c: Likewise.
51004         * lib/uniwidth/u8-strwidth.c: Likewise.
51005         * lib/uniwidth/u8-width.c: Likewise.
51006         * lib/uniwidth/width.c: Likewise.
51007
51008 2007-10-07  Bruno Haible  <bruno@clisp.org>
51009
51010         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
51011         The file is still under LGPL (see modules/inttypes).
51012
51013 2007-10-06  Bruno Haible  <bruno@clisp.org>
51014
51015         * modules/trunc (Dependencies): Add 'extensions'.
51016         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
51017         Reported by Ben Pfaff <blp@gnu.org>.
51018
51019 2007-10-06  Bruno Haible  <bruno@clisp.org>
51020
51021         * modules/freopen-tests: New file.
51022         * tests/test-freopen.c: New file.
51023
51024         * modules/fopen-tests: New file.
51025         * tests/test-fopen.c: New file.
51026
51027         * modules/fopen: New file.
51028         * lib/fopen.c: New file.
51029         * m4/fopen.m4: New file.
51030         * modules/freopen: New file.
51031         * lib/freopen.c: New file.
51032         * m4/freopen.m4: New file.
51033         * lib/stdio.in.h (fopen, freopen): New declarations.
51034         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
51035         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
51036         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
51037         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
51038         * doc/functions/fopen.texi: Mention the 'fopen' module.
51039         * doc/functions/freopen.texi: Mention the 'freopen' module.
51040
51041 2007-10-06  Bruno Haible  <bruno@clisp.org>
51042
51043         * modules/open-tests: New file.
51044         * tests/test-open.c: New file.
51045
51046         * modules/open: New file.
51047         * lib/open.c: New file.
51048         * m4/open.m4: New file.
51049         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
51050         lib/open.c does.
51051         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
51052         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
51053         macros.
51054         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
51055         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
51056         REPLACE_OPEN.
51057         * doc/functions/open.texi: Mention the 'open' module.
51058
51059 2007-10-04  Bruno Haible  <bruno@clisp.org>
51060
51061         * modules/ceill-tests: New file.
51062         * tests/test-ceill.c: New file.
51063
51064         * modules/ceill: New file.
51065         * lib/ceill.c: Replace entire file.
51066         * m4/ceill.m4: New file.
51067         * lib/math.in.h (ceill): Replace declaration.
51068         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
51069         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
51070         * doc/functions/ceill.texi: Mention the 'ceill' module.
51071         * modules/mathl (Files): Remove lib/ceill.c.
51072         (Depends-on): Add ceill.
51073
51074 2007-10-04  Bruno Haible  <bruno@clisp.org>
51075
51076         * modules/ceilf-tests: New file.
51077         * tests/test-ceilf.c: New file.
51078
51079         * modules/ceilf: New file.
51080         * lib/ceil.c: New file.
51081         * lib/ceilf.c: New file.
51082         * m4/ceilf.m4: New file.
51083         * lib/math.in.h (ceilf): New declaration.
51084         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
51085         HAVE_DECL_CEILF.
51086         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
51087         HAVE_DECL_CEILF.
51088         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
51089
51090 2007-10-04  Bruno Haible  <bruno@clisp.org>
51091
51092         * modules/floorl-tests: New file.
51093         * tests/test-floorl.c: New file.
51094
51095         * modules/floorl: New file.
51096         * lib/floorl.c: Replace entire file.
51097         * m4/floorl.m4: New file.
51098         * lib/math.in.h (floorl): Replace declaration.
51099         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
51100         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
51101         * doc/functions/floorl.texi: Mention the 'floorl' module.
51102         * modules/mathl (Files): Remove lib/floorl.c.
51103         (Depends-on): Add floorl.
51104
51105 2007-10-04  Bruno Haible  <bruno@clisp.org>
51106
51107         * modules/floorf-tests: New file.
51108         * tests/test-floorf.c: New file.
51109
51110         * modules/floorf: New file.
51111         * lib/floor.c: New file.
51112         * lib/floorf.c: New file.
51113         * m4/floorf.m4: New file.
51114         * lib/math.in.h (floorf): New declaration.
51115         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
51116         HAVE_DECL_FLOORF.
51117         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
51118         HAVE_DECL_FLOORF.
51119         * doc/functions/floorf.texi: Mention the 'floorf' module.
51120
51121 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
51122             Bruno Haible  <bruno@clisp.org>
51123
51124         Advertise for the Git server instead of the CVS server.
51125         * doc/gnulib-intro.texi (Steady Development): Mention the Git
51126         repository instead of the CVS one.
51127         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
51128         about all VCS systems generically.
51129         * doc/gnulib.texi (Introduction): Capitalize `Git'.
51130
51131 2007-10-04  Bruno Haible  <bruno@clisp.org>
51132
51133         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
51134         means.
51135         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
51136
51137 2007-10-04  Bruno Haible  <bruno@clisp.org>
51138
51139         * modules/truncl-tests: New file.
51140         * tests/test-truncl.c: New file.
51141
51142         * modules/truncl: New file.
51143         * lib/truncl.c: New file.
51144         * m4/truncl.m4: New file.
51145         * lib/math.in.h (truncl): New declaration.
51146         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
51147         HAVE_DECL_TRUNCL.
51148         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
51149         HAVE_DECL_TRUNCL.
51150         * doc/functions/truncl.texi: Mention the 'truncl' module.
51151
51152 2007-10-04  Bruno Haible  <bruno@clisp.org>
51153
51154         * modules/truncf-tests: New file.
51155         * tests/test-truncf.c: New file.
51156
51157         * modules/truncf: New file.
51158         * lib/trunc.c: Make paramerizable through USE_* macros.
51159         * lib/truncf.c: New file.
51160         * m4/truncf.m4: New file.
51161         * lib/math.in.h (truncf): New declaration.
51162         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
51163         HAVE_DECL_TRUNCF.
51164         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
51165         HAVE_DECL_TRUNCF.
51166         * doc/functions/truncf.texi: Mention the 'truncf' module.
51167
51168 2007-10-03  Bruno Haible  <bruno@clisp.org>
51169
51170         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
51171         augmentation also for tests modules.
51172         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
51173         * modules/atexit-tests (Makefile.am): Likewise.
51174         * modules/binary-io-tests (Makefile.am): Likewise.
51175         * modules/c-strcase-tests (Makefile.am): Likewise.
51176         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
51177         * modules/canonicalize-tests (Makefile.am): Likewise.
51178         * modules/closein-tests (Makefile.am): Likewise.
51179         * modules/fprintf-posix-tests (Makefile.am): Likewise.
51180         * modules/freadahead-tests (Makefile.am): Likewise.
51181         * modules/fseek-tests (Makefile.am): Likewise.
51182         * modules/fseeko-tests (Makefile.am): Likewise.
51183         * modules/ftell-tests (Makefile.am): Likewise.
51184         * modules/ftello-tests (Makefile.am): Likewise.
51185         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
51186         * modules/isnanl-tests (Makefile.am): Likewise.
51187         * modules/lseek-tests (Makefile.am): Likewise.
51188         * modules/mbscasecmp-tests (Makefile.am): Likewise.
51189         * modules/mbscasestr-tests (Makefile.am): Likewise.
51190         * modules/mbschr-tests (Makefile.am): Likewise.
51191         * modules/mbscspn-tests (Makefile.am): Likewise.
51192         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
51193         * modules/mbspbrk-tests (Makefile.am): Likewise.
51194         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
51195         * modules/mbsrchr-tests (Makefile.am): Likewise.
51196         * modules/mbsspn-tests (Makefile.am): Likewise.
51197         * modules/mbsstr-tests (Makefile.am): Likewise.
51198         * modules/printf-posix-tests (Makefile.am): Likewise.
51199         * modules/snprintf-posix-tests (Makefile.am): Likewise.
51200         * modules/sprintf-posix-tests (Makefile.am): Likewise.
51201         * modules/tsearch-tests (Makefile.am): Likewise.
51202         * modules/uniname/uniname-tests (Makefile.am): Likewise.
51203         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
51204         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
51205         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
51206         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
51207         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
51208         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
51209         * modules/vprintf-posix-tests (Makefile.am): Likewise.
51210         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
51211         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
51212         * modules/xstrtoimax-tests (Makefile.am): Likewise.
51213         * modules/xstrtol-tests (Makefile.am): Likewise.
51214         * modules/xstrtoumax-tests (Makefile.am): Likewise.
51215         * modules/yesno-tests (Makefile.am): Likewise.
51216
51217 2007-10-03  Bruno Haible  <bruno@clisp.org>
51218
51219         * modules/trunc-tests: New file.
51220         * tests/test-trunc.c: New file.
51221
51222         * modules/trunc: New file.
51223         * lib/trunc.c: New file.
51224         * m4/trunc.m4: New file.
51225         * lib/math.in.h (trunc): New declaration.
51226         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
51227         HAVE_DECL_TRUNC.
51228         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
51229         HAVE_DECL_TRUNC.
51230         * doc/functions/trunc.texi: Mention the 'trunc' module.
51231
51232 2007-10-03  Bruno Haible  <bruno@clisp.org>
51233
51234         * tests/test-fpending.c: New file, mostly copied
51235         from coreutils/lib/t-fpending.c.
51236         * modules/fpending-tests: New file.
51237
51238 2007-10-03  Bruno Haible  <bruno@clisp.org>
51239
51240         Port the stdio extensions to QNX (untested).
51241         * lib/fseterr.c (fseterr): Add support for QNX.
51242         * lib/fbufmode.c (fbufmode): Likewise.
51243         * lib/freadable.c (freadable): Likewise.
51244         * lib/fwritable.c (fwritable): Likewise.
51245         * lib/freading.c (freading): Likewise.
51246         * lib/fwriting.c (fwriting): Likewise.
51247         * lib/freadahead.c (freadahed): Likewise.
51248         * lib/fpurge.c (fpurge): Likewise.
51249         * lib/fseeko.c (rpl_fseeko): Likewise.
51250
51251 2007-10-03  Bruno Haible  <bruno@clisp.org>
51252             Jim Meyering  <jim@meyering.net>
51253             Eric Blake  <ebb9@byu.net>
51254
51255         * doc/relocatable.texi: Use @command instead of @program.
51256
51257 2007-10-02  Jim Meyering  <jim@meyering.net>
51258
51259         Perform one more "_.h" -> ".in.h" substitution.
51260         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
51261         instead of unistd_.h here, too.
51262
51263 2007-10-01  Bruno Haible  <bruno@clisp.org>
51264
51265         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
51266         Needed for the alloca-opt module.
51267
51268 2007-09-30  Bruno Haible  <bruno@clisp.org>
51269
51270         * lib/alloca.in.h: Renamed from lib/alloca_.h.
51271         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
51272         alloca_.h.
51273         * lib/argz.in.h: Renamed from lib/argz_.h.
51274         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
51275         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
51276         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
51277         byteswap_.h.
51278         * lib/dirent.in.h: Renamed from lib/dirent_.h.
51279         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
51280         dirent_.h.
51281         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
51282         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
51283         fcntl_.h.
51284         * lib/float.in.h: Renamed from lib/float_.h.
51285         * modules/float (Files, Makefile.am): Use float.in.h instead of
51286         float_.h.
51287         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
51288         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
51289         fnmatch_.h.
51290         * lib/getopt.in.h: Renamed from lib/getopt_.h.
51291         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
51292         getopt_.h.
51293         * lib/glob.in.h: Renamed from lib/glob_.h.
51294         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
51295         * lib/iconv.in.h: Renamed from lib/iconv_.h.
51296         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
51297         iconv_.h.
51298         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
51299         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
51300         inttypes_.h.
51301         * lib/locale.in.h: Renamed from lib/locale_.h.
51302         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
51303         locale_.h.
51304         * lib/math.in.h: Renamed from lib/math_.h.
51305         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
51306         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
51307         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
51308         of netinet_in_.h. Add dependency.
51309         * lib/poll.in.h: Renamed from lib/poll_.h.
51310         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
51311         * lib/search.in.h: Renamed from lib/search_.h.
51312         * modules/search (Files, Makefile.am): Use search.in.h instead of
51313         search_.h.
51314         * lib/signal.in.h: Renamed from lib/signal_.h.
51315         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
51316         _signal.h.
51317         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
51318         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
51319         stdbool_.h.
51320         * lib/stdint.in.h: Renamed from lib/stdint_.h.
51321         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
51322         stdint_.h.
51323         * lib/stdio.in.h: Renamed from lib/stdio_.h.
51324         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
51325         stdio_.h.
51326         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
51327         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
51328         stdlib_.h.
51329         * lib/string.in.h: Renamed from lib/string_.h.
51330         * modules/string (Files, Makefile.am): Use string.in.h instead of
51331         string_.h.
51332         * doc/gnulib-tool.texi (Initial import): Update.
51333         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
51334         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
51335         of sys_select_.h. Add dependency.
51336         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
51337         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
51338         of sys_socket_.h.
51339         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
51340         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
51341         sys_stat_.h.
51342         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
51343         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
51344         sys_time_.h.
51345         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
51346         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
51347         sysexits_.h.
51348         * lib/time.in.h: Renamed from lib/time_.h.
51349         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
51350         * lib/unistd.in.h: Renamed from lib/unistd_.h.
51351         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
51352         unistd_.h.
51353         * lib/wchar.in.h: Renamed from lib/wchar_.h.
51354         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
51355         wchar_.h.
51356         * lib/wctype.in.h: Renamed from lib/wctype_.h.
51357         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
51358         wctype_.h.
51359         * build-aux/bootstrap (slurp): Update.
51360         * lib/.cppi-disable: Update.
51361
51362 2007-09-30  Bruno Haible  <bruno@clisp.org>
51363
51364         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
51365         Needed on BeOS.
51366
51367 2007-09-30  Bruno Haible  <bruno@clisp.org>
51368
51369         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
51370
51371 2007-09-29  Bruno Haible  <bruno@clisp.org>
51372
51373         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
51374
51375 2007-09-29  Bruno Haible  <bruno@clisp.org>
51376
51377         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
51378         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
51379         * build-aux/install-reloc: Compile also areadlink.c.
51380         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
51381
51382 2007-09-29  Bruno Haible  <bruno@clisp.org>
51383
51384         * gnulib-tool (func_emit_initmacro_done): Indentation.
51385
51386 2007-09-29  Bruno Haible  <bruno@clisp.org>
51387
51388         * README: Add CVS checkout update instructions.
51389         Info from Bob Proulx <bob@proulx.com>.
51390
51391 2007-09-28  Eric Blake  <ebb9@byu.net>
51392
51393         Provide move-if-change.
51394         * build-aux/move-if-change: New file, based on best practice
51395         rather than any canonical upstream location.
51396
51397 2007-09-28  Jim Meyering  <jim@meyering.net>
51398
51399         Fix canonicalize loop-detection corner case.
51400         Do not attempt to stat the symlink values stored via seen_triple.
51401         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
51402         on linux-2.6.18, (but not 2.6.22).
51403         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
51404         triple_compare.  The former compares dev,ino,filename, while the latter
51405         would actually stat dirname(filename) when dev and ino were equal.
51406         * lib/hash-triple.c: Install <string.h>.
51407         (STREQ): Define.
51408         (triple_compare_ino_str): New function.
51409         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
51410
51411 2007-09-28  Eric Blake  <ebb9@byu.net>
51412
51413         Enforce that AC_REPLACE_FUNCS files exist.
51414         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
51415         override check for typos.
51416
51417         Fix test-closein on Solaris 10.
51418         * tests/test-closein.c (main): Don't assume stdin can be inherited
51419         closed on all systems.
51420         * tests/test-closein.sh: Likewise.
51421         Reported by Piotr Tarnowski.
51422
51423 2007-09-28  Jim Meyering  <jim@meyering.net>
51424
51425         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
51426
51427 2007-09-27  Jim Meyering  <jim@meyering.net>
51428
51429         canonicalize: Avoid a false-positive cycle failure.
51430         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
51431         Sort.  Remove cycle-check.
51432         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
51433         not cycle-check.h.
51434         (seen_triple): New function.
51435         (canonicalize_filename_mode): Use it instead of cycle-check.
51436         * tests/test-canonicalize.c: Add a test for this bug.
51437         * tests/test-canonicalize.sh: Set up and run the test.
51438
51439         New module, file-set, from coreutils.
51440         * modules/file-set: Define it.
51441         * lib/file-set.c, lib/file-set.h: Implement.
51442
51443         New module, hash-triple, from coreutils.
51444         * modules/hash-triple: Define it.
51445         * lib/hash-triple.c, lib/hash-triple.h: Implement.
51446
51447 2007-09-25  Eric Blake  <ebb9@byu.net>
51448
51449         Fix strerror on Interix.
51450         * lib/string_.h (strerror): Declare replacement.
51451         * doc/functions/strerror.texi (strerror): Document the Interix
51452         shortcoming.
51453         * modules/string (Makefile.am): Support new hooks.
51454         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
51455         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
51456         gl_FUNC_STRERROR_SEPARATE.
51457         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
51458         * lib/strerror.c (rpl_strerror): Provide replacement.
51459         * modules/strerror (Depends-on): Add string.
51460         (configure.ac): Detect use of module.
51461         * tests/test-strerror.c: New file.
51462         * modules/strerror-tests: New test module.
51463         * modules/argp (Depends-on): Add strerror.
51464         * modules/error (Depends-on): Likewise.
51465         Reported by Martin Koeppe.
51466
51467 2007-09-24  Bruno Haible  <bruno@clisp.org>
51468
51469         * README: Update git instructions.
51470
51471 2007-09-24  Eric Blake  <ebb9@byu.net>
51472
51473         Revert fpending breakage from 2007-09-08.
51474         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
51475         __fpending.c.
51476
51477 2007-09-24  Jim Meyering  <jim@meyering.net>
51478
51479         filenamecat.c: Add a test.
51480         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
51481         showing how the function works when DIR is the empty string.
51482
51483 2007-09-21  Simon Josefsson  <simon@josefsson.org>
51484
51485         * tests/test-canonicalize.sh: Turn on executable bit.
51486
51487 2007-09-19  Eric Blake  <ebb9@byu.net>
51488
51489         * README: Update CVS instructions.
51490
51491 2007-09-18  Bruno Haible  <bruno@clisp.org>
51492
51493         * modules/areadlink: New file.
51494         * lib/areadlink.h (areadlink): New declaration.
51495         * lib/areadlink.c: New file, based on lib/xreadlink.c.
51496
51497 2007-09-17  Jim Meyering  <jim@meyering.net>
51498
51499         * lib/savewd.c (ESTALE) [!defined]: Define.
51500         Reported to be required on Interix by Martin Koeppe.
51501
51502 2007-09-17  Bruno Haible  <bruno@clisp.org>
51503
51504         * gnulib-tool (func_version): Use $version.
51505
51506 2007-09-16  Bruno Haible  <bruno@clisp.org>
51507
51508         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
51509         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
51510         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
51511         Reported by Greg Schafer <gschafer@zip.com.au>.
51512
51513 2007-09-15  Bruno Haible  <bruno@clisp.org>
51514
51515         * gnulib-tool (sed): Try a little harder to make bash understand the
51516         alias.
51517         Reported by Bruce Korb <bruce.korb@gmail.com>.
51518
51519 2007-09-13  Eric Blake  <ebb9@byu.net>
51520
51521         * ChangeLog: Remove conflict markers.
51522
51523 2007-09-13  Simon Josefsson  <simon@josefsson.org>
51524
51525         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
51526         Reported by Bruno Haible <bruno@clisp.org>.
51527
51528 2007-09-12  Bruno Haible  <bruno@clisp.org>
51529
51530         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
51531         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
51532         is not defined.
51533
51534 2007-09-12  Eric Blake  <ebb9@byu.net>
51535
51536         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
51537         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
51538         Autoconf definition.
51539         * modules/euidaccess (Depends-on): Add extensions, for
51540         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
51541         * modules/fnmatch (Depends-on): Likewise.
51542         * modules/getaddrinfo (Depends-on): Likewise.
51543         * modules/getdelim (Depends-on): Likewise.
51544         * modules/getline (Depends-on): Likewise.
51545         * modules/getsubopt (Depends-on): Likewise.
51546         * modules/gettext (Depends-on): Likewise.
51547         * modules/group-member (Depends-on): Likewise.
51548         * modules/mbchar (Depends-on): Likewise.
51549         * modules/memmem (Depends-on): Likewise.
51550         * modules/mempcpy (Depends-on): Likewise.
51551         * modules/memrchr (Depends-on): Likewise.
51552         * modules/pagealign_alloc (Depends-on): Likewise.
51553         * modules/readutmp (Depends-on): Likewise.
51554         * modules/stpcpy (Depends-on): Likewise.
51555         * modules/stpncpy (Depends-on): Likewise.
51556         * modules/strchrnul (Depends-on): Likewise.
51557         * modules/strndup (Depends-on): Likewise.
51558         * modules/strsep (Depends-on): Likewise.
51559         * modules/strverscmp (Depends-on): Likewise.
51560         * modules/vasprintf (Depends-on): Likewise.
51561         * modules/wcwidth (Depends-on): Likewise.
51562         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
51563         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
51564         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
51565         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
51566         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
51567         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
51568         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
51569         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
51570         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
51571         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
51572         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
51573         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
51574         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
51575         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
51576         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
51577         * m4/readutmp.m4 (gl_READUTMP): Likewise.
51578         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
51579         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
51580         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
51581         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
51582         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
51583         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
51584         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
51585         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
51586         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
51587         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
51588         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
51589         so that lock.m4 can be used in gettext without extensions module.
51590
51591 2007-09-11  Bruno Haible  <bruno@clisp.org>
51592
51593         * m4/isc-posix.m4: Remove file.
51594         Suggested by Eric Blake.
51595
51596 2007-09-11  Eric Blake  <ebb9@byu.net>
51597
51598         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
51599
51600 2007-09-10  Bruno Haible  <bruno@clisp.org>
51601
51602         * posix-modules: Fix typo in error message.
51603         Reported by Matt <mkraai@beckman.com>.
51604
51605 2007-09-09  Bruno Haible  <bruno@clisp.org>
51606
51607         * doc/functions/getdelim.texi: Update list of platforms lacking the
51608         function.
51609         * doc/functions/getline.texi: Likewise.
51610
51611 2007-09-09  Jim Meyering  <jim@meyering.net>
51612
51613         * lib/hash.c (hash_initialize): Detect calloc failure.
51614         Reported by Bruno Haible.
51615
51616 2007-09-09  Bruno Haible  <bruno@clisp.org>
51617
51618         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
51619         malloc or realloc fails.
51620
51621 2007-09-09  Bruno Haible  <bruno@clisp.org>
51622
51623         * modules/getcwd (Depends-on): Add malloc-posix.
51624         * modules/glob (Depends-on): Likewise.
51625         * modules/putenv (Depends-on): Likewise.
51626         * modules/strdup (Depends-on): Likewise.
51627         * modules/getdelim (Depends-on): Add realloc-posix.
51628         * modules/read-file (Depends-on): Likewise.
51629
51630 2007-09-09  Bruno Haible  <bruno@clisp.org>
51631
51632         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
51633         (gl_FUNC_MALLOC_POSIX): Require it.
51634         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
51635         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
51636         * modules/realloc (Files): Add m4/malloc.m4.
51637         * modules/calloc (Files): Likewise.
51638
51639 2007-09-09  Bruno Haible  <bruno@clisp.org>
51640
51641         * modules/malloc-posix: New file.
51642         * modules/malloc (Depends-on): Add malloc-posix.
51643         * lib/malloc.c: Include errno.h.
51644         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
51645         and a POSIX-compatible malloc into a single function. Set ENOMEM
51646         when returning NULL.
51647         * m4/malloc.m4: New file.
51648         * doc/functions/malloc.texi: Mention the malloc-posix module.
51649         * lib/stdlib_.h (malloc): New declaration.
51650         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
51651         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
51652         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
51653         and HAVE_MALLOC_POSIX.
51654
51655 2007-09-09  Bruno Haible  <bruno@clisp.org>
51656
51657         * modules/realloc-posix: New file.
51658         * modules/realloc (Depends-on): Add realloc-posix.
51659         * lib/realloc.c: Include errno.h.
51660         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
51661         and a POSIX-compatible realloc into a single function. Set ENOMEM
51662         when returning NULL.
51663         * m4/realloc.m4: New file.
51664         * doc/functions/realloc.texi: Mention the realloc-posix module.
51665         * lib/stdlib_.h (realloc): New declaration.
51666         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
51667         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
51668         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
51669         and HAVE_REALLOC_POSIX.
51670
51671 2007-09-09  Bruno Haible  <bruno@clisp.org>
51672
51673         * modules/calloc-posix: New file.
51674         * modules/calloc (Depends-on): Add calloc-posix.
51675         * lib/calloc.c: Include errno.h.
51676         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
51677         and a POSIX-compatible calloc into a single function. Set ENOMEM
51678         when returning NULL.
51679         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
51680         * doc/functions/calloc.texi: Mention the calloc-posix module.
51681         * lib/stdlib_.h (calloc): New declaration.
51682         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
51683         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
51684         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
51685         and HAVE_CALLOC_POSIX.
51686
51687 2007-09-09  Bruno Haible  <bruno@clisp.org>
51688
51689         Allow for modules to show an arbitrary notice.
51690         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
51691         * gnulib-tool: New option --extract-notice.
51692         (func_usage): Document it.
51693         (sed_extract_prog): Update.
51694         (func_get_notice): New function.
51695         (func_modules_notice): New function.
51696         (func_import, func_create_testdir): Invoke it.
51697         Suggested by Jim Meyering.
51698
51699 2007-09-09  Bruno Haible  <bruno@clisp.org>
51700
51701         * gnulib-tool: New options --verbose, --quiet.
51702         (func_usage): Document them.
51703         (verbose): New variable.
51704         (func_execute_command): New function.
51705         (func_import): Don't show the module list and the file list if
51706         $verbose < 0.
51707         (func_create_testdir): Likewise. Use func_execute_command.
51708         (func_create_megatestdir): Use func_execute_command.
51709
51710 2007-09-08  Bruno Haible  <bruno@clisp.org>
51711
51712         * gnulib-tool (func_import): Prefer rsync over wget when available,
51713         for fetching the PO files.
51714
51715 2007-09-08  Bruno Haible  <bruno@clisp.org>
51716
51717         * posix-modules: New file. Portions copied from gnulib-tool.
51718         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
51719
51720 2007-09-08  Jim Meyering  <jim@meyering.net>
51721
51722         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
51723         * lib/fpending.h: Rename from __fpending.h.
51724         * lib/fpending.c: Rename from __fpending.c.
51725         Include "fpending.h", not "__fpending.h".
51726         * lib/__fpending.h, lib/__fpending.c: Remove files.
51727         * modules/fpending (Files): Reflect new file names.
51728         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
51729
51730 2007-09-08  Bruno Haible  <bruno@clisp.org>
51731
51732         * m4/inttypes-h.m4: Remove stub file.
51733
51734 2007-09-07  Simon Josefsson  <simon@josefsson.org>
51735
51736         * doc/headers/stdint.texi: Discuss #include_next issue.
51737
51738 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
51739
51740         * build-aux/bootstrap: Remove obsolete comment about wget --help.
51741
51742 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51743
51744         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
51745         in variable name.
51746
51747 2007-09-03  Jim Meyering  <jim@meyering.net>
51748
51749         New module: git-version-gen.
51750         * modules/git-version-gen: New file.
51751
51752         Import changes from coreutils for bootstrap script.
51753
51754         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
51755
51756         bootstrap: uses rsync to download the .po files
51757         * build-aux/bootstrap (po_download_command_format): New global.
51758         (download_po_files): Use rsync.
51759         (update_po_files): Don't remove .po files after download,
51760         so future rsync runs can take advantage of the copies.
51761
51762         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
51763
51764         Solve the unnecessary-.po-file-regeneration problem once and for all.
51765         * build-aux/bootstrap (download_po_files): New function, renamed from
51766         get_translations.  Now, downloads, but doesn't update LINGUAS.
51767         (update_po_files): New function.
51768
51769         bootstrap: Ignore more.
51770         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
51771         uniwidth to e.g., lib/.gitignore.
51772         (slurp): Handle the sys_stat_.h -> sys mapping, too.
51773
51774         * build-aux/bootstrap: New setting: vc_ignore.
51775         (insert_sorted_if_absent): Create $file if absent.
51776         Adapt to new, possibly empty, list: $vc_ignore.
51777
51778         bootstrap: generate more ignorable names
51779         * build-aux/bootstrap (slurp): When generating ignorable names,
51780         also map .sin to .sed, .gperf to .c, and .y to .c.
51781
51782 2007-09-03  Jim Meyering  <jim@meyering.net>
51783
51784         * build-aux/git-version-gen: New file, from coreutils.  For details, see
51785         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
51786
51787 2007-09-02  Bruno Haible  <bruno@clisp.org>
51788
51789         Fix mis-recognition of 'mcs' on QNX 6.
51790         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
51791         output contains the string "Mono".
51792         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
51793         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
51794
51795 2007-09-01  Bruno Haible  <bruno@clisp.org>
51796
51797         Fix collision between uniwidth/* and linebreak modules.
51798         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
51799         u32_width): Remove declarations.
51800         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
51801         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
51802         streq3, streq2, streq1, streq0): Remove functions.
51803         (STREQ): Remove macro.
51804         (is_cjk_encoding): Remove function.
51805         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
51806         (uc_width, u8_width, u16_width, u32_width): Remove functions.
51807         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
51808         * NEWS: Document the change.
51809
51810 2007-09-01  Bruno Haible  <bruno@clisp.org>
51811
51812         * lib/streq.h: Add double-inclusion guard.
51813
51814 2007-09-01  Karl Berry  <karl@gnu.org>
51815
51816         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
51817
51818 2007-08-28  Jim Meyering  <jim@meyering.net>
51819
51820         Rename mreadlink_with_size to areadlink_with_size.
51821         * NEWS: Document the change.
51822         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
51823         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
51824         * lib/mreadlink.h: Rename this to...
51825         * lib/areadlink.h: ...this.
51826         * modules/mreadlink-with-size: Rename this to...
51827         * modules/areadlink-with-size: ...this.
51828         * lib/canonicalize.c: Reflect the renaming.
51829         * modules/canonicalize: Likewise.
51830
51831 2007-08-26  Bruno Haible  <bruno@clisp.org>
51832
51833         * gnulib-tool (func_import): When deciding which files to remove,
51834         consider also dangling symbolic links.
51835         Reported by Eric Blake.
51836
51837 2007-08-26  Bruno Haible  <bruno@clisp.org>
51838
51839         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
51840
51841 2007-08-23  Simon Josefsson  <simon@josefsson.org>
51842
51843         * lib/readline.c: Don't include getline.h, the prototype is now
51844         found in stdio.h.
51845
51846 2007-08-23  Jim Meyering  <jim@meyering.net>
51847
51848         Getdelim touchup.
51849         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
51850         around the funlockfile call, since funlockfile never sets errno.
51851         Don't set errno upon failed realloc.
51852
51853 2007-08-22  Eric Blake  <ebb9@byu.net>
51854
51855         Getline touchups.
51856         * lib/getdelim.c (getdelim): Revert regression that required *n to
51857         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
51858         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
51859         getdelim, rather than whether implementation is missing.
51860         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
51861         * lib/stdio_.h (getline): Also declare if replacement is
51862         required.
51863         * doc/functions/getdelim.texi: New file.
51864         * doc/functions/getline.texi: Likewise.
51865         * doc/gnulib.texi (Function Substitutes): Add new files.
51866         Reported by Bruno Haible.
51867
51868 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
51869
51870         * users.txt: Add Guile.
51871
51872 2007-08-22  Eric Blake  <ebb9@byu.net>
51873
51874         * tests/test-getdelim.c (main): Use remove, not unlink.
51875         * tests/test-getline.c (main): Likewise.
51876
51877         Move getline and getdelim into stdio.h, per POSIX 200x.
51878         * modules/getline (Files): Remove getline.h.
51879         (Depends-on): Add stdio.
51880         (configure.ac): Add module indicator.
51881         * modules/getdelim (Files): Remove getdelim.h.
51882         (Depends-on): Add stdio.
51883         (configure.ac): Add module indicator.
51884         * modules/stdio (Makefile.am): Work with new indicators.
51885         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
51886         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
51887         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
51888         * lib/getdelim.h: Delete.
51889         * lib/getline.h: Delete.
51890         * lib/stdio_.h (getdelim, getline): Declare.
51891         * modules/getdelim-tests: New module.
51892         * modules/getline-tests: Likewise.
51893         * tests/test-getdelim.c: New file.
51894         * tests/test-getline.c: Likewise.
51895         * NEWS: Document the change.
51896         * lib/getline.c: Update choice of header.
51897         * lib/csharpcomp.c: Likewise.
51898         * lib/getpass.c: Likewise.
51899         * lib/javacomp.c: Likewise.
51900         * lib/javaversion.c: Likewise.
51901         * lib/yesno.c: Likewise.
51902         * lib/getdelim.c: Likewise.
51903         (getdelim): Set errno on failure, and avoid memory leak.
51904
51905 2007-08-19  Bruno Haible  <bruno@clisp.org>
51906
51907         * modules/closein (Depends-on): Add freadahead.
51908         * lib/closein.c: Include freadahead.h.
51909         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
51910         is zero.
51911
51912 2007-08-19  Bruno Haible  <bruno@clisp.org>
51913
51914         * modules/freadahead-tests: New file.
51915         * tests/test-freadahead.sh: New file.
51916         * tests/test-freadahead.c: New file.
51917
51918         * modules/freadahead: New file.
51919         * lib/freadahead.h: New file.
51920         * lib/freadahead.c: New file.
51921         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
51922         fbufmode, fpurge, freadable, fwritable.
51923
51924 2007-08-19  Eric Blake  <ebb9@byu.net>
51925
51926         Test yesno in combination with closein.
51927         * lib/yesno.c (yesno): Document use of stdin.
51928         * modules/yesno-tests (Files): New module.
51929         * tests/test-yesno.c (main): New file.
51930         * tests/test-yesno.sh: Likewise.
51931
51932 2007-08-19  Bruno Haible  <bruno@clisp.org>
51933
51934         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
51935         * lib/fseeko.c (rpl_fseeko): Likewise.
51936         * lib/fseterr.c (fseterr): Likewise.
51937
51938 2007-08-19  Bruno Haible  <bruno@clisp.org>
51939
51940         * tests/test-lseek.c (main): Disable a test for BeOS.
51941         * doc/functions/lseek.texi: Document the BeOS bug.
51942
51943 2007-08-19  Bruno Haible  <bruno@clisp.org>
51944             Eric Blake  <ebb9@byu.net>
51945
51946         * lib/lseek.c: Include <sys/stat.h>.
51947         (rpl_lseek): Add workaround code also for Unix platforms.
51948         Needed for BeOS.
51949         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
51950         * doc/functions/lseek.texi: Document BeOS definiency.
51951
51952 2007-08-18  Bruno Haible  <bruno@clisp.org>
51953
51954         * modules/fstrcmp-tests: New file.
51955         * tests/test-fstrcmp.c: New file.
51956
51957 2007-08-18  Bruno Haible  <bruno@clisp.org>
51958
51959         * modules/fstrcmp: New file, from GNU gettext with modifications.
51960         * lib/fstrcmp.h: New file, from GNU gettext.
51961         * lib/fstrcmp.c: New file, from GNU gettext.
51962         * MODULES.html.sh (String handling): Add fstrcmp.
51963
51964 2007-08-18  Bruno Haible  <bruno@clisp.org>
51965
51966         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
51967         'bool'.
51968         (diag, compareseq): Remove const from the ctxt argument.
51969         (USE_HEURISTIC): Undefine at the end.
51970
51971 2007-08-18  Jim Meyering  <jim@meyering.net>
51972
51973         New file: lib/idcache.h
51974         * NEWS: Mention the addition.
51975         * modules/idcache (Files): Add lib/idcache.h
51976         * lib/idcache.c: Include "idcache.h".
51977         Don't include <sys/types.h>.
51978         Add a FIXME comment.
51979         Move file-scoped "static" declarations to the top.
51980         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
51981
51982 2007-08-17  Bruno Haible  <bruno@clisp.org>
51983         and Paul Eggert  <eggert@cs.ucla.edu>
51984
51985         * MODULES.html.sh: Add diffseq.
51986         * modules/diffseq: New file.
51987         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
51988         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
51989
51990 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51991
51992         Import changes from coreutils for bootstrap script.
51993
51994         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
51995
51996         * build-aux/bootstrap (slurp): Work even in environments where
51997         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
51998         current code does not slurp files whose names start with ".", and
51999         this looks like it might be a troublesome area.
52000
52001         2007-07-11  Jim Meyering  <jim@meyering.net>
52002
52003         If there's a GPL vN copyright comment, require that N == 3.
52004
52005         2007-07-08  Jim Meyering  <jim@meyering.net>
52006
52007         Run the coreutils-specific code only if tests/Makefile.am.in exists.
52008         * build-aux/bootstrap (mam_template): Move definition out of loop.
52009
52010         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
52011
52012         * build-aux/bootstrap (symlink_to_dir): Rename function from
52013         symlink_to_gnulib.  Add a directory parameter.  Update all
52014         callers.
52015         (cp_mark_as_generated): Also check for -- and link to -- files in
52016         gl/.
52017
52018         2007-07-08  Jim Meyering  <jim@meyering.net>
52019
52020         Adapt to deeper hierarchy in gnulib.
52021         * build-aux/bootstrap (symlink_to_dir): If the destination
52022         directory doesn't exist, create it. This is required at least for
52023         "lib/uniwidth/cjk.h".
52024
52025         2007-05-15  Jim Meyering  <jim@meyering.net>
52026
52027         * build-aux/bootstrap: Now that generated Makefile.am files
52028         are no longer under version control, they must be created at
52029         bootstrap time.
52030
52031 2007-08-14  Ben Pfaff  <blp@gnu.org>
52032
52033         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
52034
52035 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
52036
52037         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
52038         given the changes below.
52039         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
52040         even on hosts that have padding bits beyond the supported 64.
52041
52042 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
52043
52044         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
52045         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
52046         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
52047         depends on it.
52048         (xstrtol_error): Remove.
52049         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
52050         but with a different signature.
52051         (ATTRIBUTE_NORETURN, __attribute__): New macros.
52052         * lib/xstrtol-error.c: Include exitfail.h.
52053         (xstrtol_fatal): New function, with a different signature from the
52054         old xstrtol_error, so that the caller need not worry about passing
52055         in an exit status, or about storage management of the option argument.
52056         (xstrtol_error): Now a static function.  Redo signature to
52057         implement xstrtol_fatal.  Output the correct number of hyphens in
52058         front of the option so that the caller need not worry about
52059         storage management.
52060         (N_): New macro.
52061         (_): Remove; not used now.
52062         * modules/xstrtol: Depend on getopt.
52063         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
52064         of old STRTOL_FATAL_ERROR macro.
52065         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
52066         of test program.
52067         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
52068         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
52069
52070 2007-08-08  Eric Blake  <ebb9@byu.net>
52071
52072         * lib/xstrtol-error.c: Add missing include.
52073
52074         Move xstrtol messages into gnulib domain, when --pobase is used.
52075         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
52076         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
52077         * modules/xstrtol (Files): Distribute new file.
52078         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
52079         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
52080         * tests/test-xstrtol.c: ...into new file.
52081         * tests/test-xstrtoul.c: Also test xstrtoul.
52082         * tests/test-xstrtoimax.c: Also test xstrtoimax.
52083         * tests/test-xstrtoumax.c: Also test xstrtoumax.
52084         * tests/test-xstrtol.sh: Drive the tests.
52085         * tests/test-xstrtoimax.sh: Likewise.
52086         * tests/test-xstrtoumax.sh: Likewise.
52087         * modules/xstrtol-tests: New module.
52088         * modules/xstrtoimax-tests: Likewise.
52089         * modules/xstrtoumax-tests: Likewise.
52090
52091 2007-08-08  Jim Meyering  <jim@meyering.net>
52092
52093         New function: mfile_name_concat.
52094         * lib/filenamecat.c (mfile_name_concat): New function, just like
52095         file_name_concat, but return NULL upon failure rather than exiting
52096         with a diagnostic.
52097         * lib/filenamecat.h: Declare it.
52098
52099 2007-08-07  Bruno Haible  <bruno@clisp.org>
52100
52101         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
52102         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
52103         warning from gcc.
52104         Reported by Eric Blake.
52105
52106 2007-08-07  Simon Josefsson  <simon@josefsson.org>
52107
52108         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
52109         * modules/crypto/arcfour (License): Likewise.
52110         * modules/crypto/des-tests (License): Likewise.
52111         * modules/crypto/gc-arctwo-tests (License): Likewise.
52112         * modules/crypto/gc-des-tests (License): Likewise.
52113         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
52114         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
52115         * modules/crypto/gc-md2-tests (License): Likewise.
52116         * modules/crypto/gc-md4-tests (License): Likewise.
52117         * modules/crypto/gc-md5-tests (License): Likewise.
52118         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
52119         * modules/crypto/gc-rijndael-tests (License): Likewise.
52120         * modules/crypto/gc-sha1-tests (License): Likewise.
52121         * modules/crypto/gc-tests (License): Likewise.
52122         * modules/crypto/hmac-md5 (License): Likewise.
52123         * modules/crypto/hmac-sha1 (License): Likewise.
52124         * modules/crypto/md2-tests (License): Likewise.
52125         * modules/crypto/md4-tests (License): Likewise.
52126         * modules/crypto/md5 (License): Likewise.
52127         * modules/crypto/rijndael (License): Likewise.
52128         * modules/crypto/sha1 (License): Likewise.
52129         * modules/memxor (License): Likewise.
52130
52131 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
52132         and Bruno Haible  <bruno@clisp.org>
52133
52134         * NEWS: Describe interface changes to human, xstrtol.
52135         * lib/human.h: Include <xstrtol.h>.
52136         (human_options): Return enum strtol_error, not int.  Remove
52137         bool arg; take int * instead.
52138         * lib/human.c: Don't include "gettext.h".
52139         (_): Remove; no longer used.
52140         Don't include <xstrtol.h>, since human.h does it.
52141         (human_options): Adjust to abovementioned interface changes.
52142         Do not report error to stderr; that's now the caller's
52143         responsibility.
52144         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
52145         interface change.
52146         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
52147         Str, Argument_type_string.  All uses changed.  Put " argument"
52148         in diagnostics to make them clearer.  Change wording of suffix
52149         message for clarity.
52150         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
52151         Argument_type_string.
52152         (STRTOL_FATAL_WARN): Remove; no longer used.
52153         * modules/human (Depends-on): Remove gettext-h.
52154
52155 2007-08-06  Simon Josefsson  <simon@josefsson.org>
52156
52157         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
52158
52159 2007-07-31  Bruno Haible  <bruno@clisp.org>
52160
52161         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
52162         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
52163         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
52164
52165 2007-07-31  Bruno Haible  <bruno@clisp.org>
52166
52167         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
52168         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
52169
52170 2007-07-30  Bruno Haible  <bruno@clisp.org>
52171
52172         * modules/base64 (License): Use the synonymous term "LGPLv2+".
52173         * modules/c-ctype (License): Likewise.
52174         * modules/c-strcase (License): Likewise.
52175         * modules/check-version (License): Likewise.
52176         * modules/iconv (License): Likewise.
52177         * modules/iconv_open (License): Likewise.
52178         * modules/read-file (License): Likewise.
52179         * modules/striconv (License): Likewise.
52180         * modules/strverscmp (License): Likewise.
52181         * modules/vasprintf (License): Likewise.
52182         * modules/crypto/des (License): Likewise.
52183         * modules/crypto/gc (License): Likewise.
52184         * modules/crypto/gc-arcfour (License): Likewise.
52185         * modules/crypto/gc-arctwo (License): Likewise.
52186         * modules/crypto/gc-des (License): Likewise.
52187         * modules/crypto/gc-hmac-md5 (License): Likewise.
52188         * modules/crypto/gc-hmac-sha1 (License): Likewise.
52189         * modules/crypto/gc-md2 (License): Likewise.
52190         * modules/crypto/gc-md4 (License): Likewise.
52191         * modules/crypto/gc-md5 (License): Likewise.
52192         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
52193         * modules/crypto/gc-random (License): Likewise.
52194         * modules/crypto/gc-rijndael (License): Likewise.
52195         * modules/crypto/gc-sha1 (License): Likewise.
52196         * modules/crypto/md2 (License): Likewise.
52197         * modules/crypto/md4 (License): Likewise.
52198
52199 2007-07-30  Jim Meyering  <jim@meyering.net>
52200
52201         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
52202         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
52203         it has valid stat data.  This bug would cause du not to count the
52204         sizes of inaccessible directories.
52205         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
52206         in <http://bugzilla.redhat.com/250077>.
52207
52208 2007-07-25  Peter O'Gorman  <peter@pogma.com>
52209             Bruno Haible  <bruno@clisp.org>
52210
52211         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
52212         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
52213         #include_next, gives a diagnostic about it, but reports no error in
52214         the exit code.
52215         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
52216
52217 2007-07-24  Ben Pfaff  <blp@gnu.org>
52218
52219         Improve name: "count-one-bits" is better than "popcount".
52220         * MODULES.html.sh: Update name.
52221         * lib/popcount.h: Renamed lib/count-one-bits.h.
52222         (popcount): Renamed count_one_bits.
52223         (popcountl): Renamed count_one_bits_l.
52224         (popcountll): Renamed count_one_bits_ll.
52225         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
52226         * modules/popcount: Renamed module/count-one-bits.
52227         * modules/popcount-tests: Renamed module/count-one-bits-tests.
52228         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
52229
52230 2007-07-23  Ben Pfaff  <blp@gnu.org>
52231
52232         * lib/popcount.h (popcount32): Reduce size of constants, to allow
52233         better code generation, and add U to large constants to avoid
52234         warnings, in non-GCC case.
52235         Suggested by Bruno Haible.
52236
52237 2007-07-23  Ben Pfaff  <blp@gnu.org>
52238
52239         * lib/popcount.h: Use verify_true instead of if...abort.
52240         * modules/popcount: Depend on verify module.
52241         Suggested by Jim Meyering.
52242
52243 2007-07-23  Bruno Haible  <bruno@clisp.org>
52244
52245         * gnulib-tool (func_import): Create a .cvsignore file also when the
52246         directory is not yet in CVS but the toplevel directory is. When
52247         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
52248         Reported by Karl Berry.
52249
52250 2007-07-22  Ben Pfaff  <blp@gnu.org>
52251
52252         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
52253         case.
52254         Suggested by Eric Blake.
52255
52256 2007-07-22  Ben Pfaff  <blp@gnu.org>
52257
52258         New module: popcount.
52259         * MODULES.html.sh: Add popcount.
52260         * modules/popcount: New file.
52261         * modules/popcount-tests: New file.
52262         * tests/test-popcount.c: New file.
52263         * lib/popcount.h: New file.
52264         * m4/popcount.m4: New file.
52265
52266 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
52267
52268         * build-aux/announce-gen: Update to GPLv3.
52269
52270         * build-aux/config.guess: Update from config.
52271
52272 2007-07-21  Bruno Haible  <bruno@clisp.org>
52273
52274         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
52275         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
52276
52277 2007-07-20  Jim Meyering  <jim@meyering.net>
52278
52279         * check-module: Diagnose a self-dependency.
52280
52281 2007-07-19  Bruno Haible  <bruno@clisp.org>
52282
52283         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
52284         empty.
52285         Reported by Eric Blake.
52286
52287 2007-07-18  Bruno Haible  <bruno@clisp.org>
52288
52289         * gnulib-tool: New options --po-base, --po-domain.
52290         (func_usage): Document them.
52291         (pobase, po_domain): New variables.
52292         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
52293         DEFAULT_TEXT_DOMAIN.
52294         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
52295         (func_import): Consider pobase and po_domain. Create a po/ directory.
52296         (func_create_testdir): Set pobase and po_domain to empty.
52297         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
52298         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
52299
52300 2007-07-18  Bruno Haible  <bruno@clisp.org>
52301
52302         * gnulib-tool (func_get_automake_snippet): Synthesize also an
52303         EXTRA_DIST augmentation for files in build-aux/.
52304
52305 2007-07-16  Bruno Haible  <bruno@clisp.org>
52306
52307         * modules/lseek (License): Use the synonymous term "LGPLv2+".
52308         * modules/getdelim (License): Likewise.
52309
52310 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52311
52312         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
52313         * modules/d-type (License): Likewise.
52314         * modules/extensions (License): Likewise.
52315         * modules/fnmatch (License): Likewise.
52316         * modules/fseeko (License): Likewise.
52317         * modules/getaddrinfo (License): Likewise.
52318         * modules/getline (License): Likewise.
52319         * modules/getlogin_r (License): Likewise.
52320         * modules/getpass (License): Likewise.
52321         * modules/gettimeofday (License): Likewise.
52322         * modules/glob (License): Likewise.
52323         * modules/inet_ntop (License): Likewise.
52324         * modules/malloc (License): Likewise.
52325         * modules/malloca (License): Likewise.
52326         * modules/memmem (License): Likewise.
52327         * modules/mempcpy (License): Likewise.
52328         * modules/memset (License): Likewise.
52329         * modules/minmax (License): Likewise.
52330         * modules/mktime (License): Likewise.
52331         * modules/netinet_in (License): Likewise.
52332         * modules/pathmax (License): Likewise.
52333         * modules/poll (License): Likewise.
52334         * modules/regex (License): Likewise.
52335         * modules/snprintf (License): Likewise.
52336         * modules/stdbool (License): Likewise.
52337         * modules/stdint (License): Likewise.
52338         * modules/stdio (License): Likewise.
52339         * modules/strcase (License): Likewise.
52340         * modules/strcasestr (License): Likewise.
52341         * modules/strdup (License): Likewise.
52342         * modules/string (License): Likewise.
52343         * modules/strndup (License): Likewise.
52344         * modules/strnlen (License): Likewise.
52345         * modules/strpbrk (License): Likewise.
52346         * modules/strptime (License): Likewise.
52347         * modules/strsep (License): Likewise.
52348         * modules/sys_select (License): Likewise.
52349         * modules/sys_socket (License): Likewise.
52350         * modules/sys_stat (License): Likewise.
52351         * modules/sys_time (License): Likewise.
52352         * modules/time (License): Likewise.
52353         * modules/time_r (License): Likewise.
52354         * modules/timegm (License): Likewise.
52355         * modules/unistd (License): Likewise.
52356         * modules/vsnprintf (License): Likewise.
52357         * modules/wctype (License): Likewise.
52358
52359 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52360
52361         * modules/argz (License): LGPLv2+.
52362
52363 2007-07-15  Karl Berry  <karl@gnu.org>
52364
52365         * doc/gnulib.texi: revise node structure per new fdl.texi.
52366
52367 2007-07-14  Bruno Haible  <bruno@clisp.org>
52368
52369         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
52370         the output file.
52371         * lib/uniname/uninames.h: Regenerated.
52372
52373 2007-07-14  Karl Berry  <karl@gnu.org>
52374
52375         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
52376         omitting sectioning and index commands.
52377
52378 2007-07-13  Bruno Haible  <bruno@clisp.org>
52379
52380         New gnulib-tool option --more-symlinks.
52381         * gnulib-tool (func_usage): Document --more-symlinks.
52382         (do_copyrights): New variable.
52383         Recognize option --more-symlinks.
52384         (func_import): Don't add a copyright notice transform to
52385         sed_transform_lib_file if do_copyrights is empty.
52386
52387 2007-07-13  Bruno Haible  <bruno@clisp.org>
52388
52389         * lib/vasnprintf.c (decimal_point_char): Define also if
52390         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
52391         && !NEED_PRINTF_DIRECTIVE_A.
52392         Reported by Clemens Koller <clemens.koller@anagramm.de> via
52393         Gary V. Vaughan <gary@gnu.org>.
52394
52395 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
52396
52397         * lib/inttypes_.h: Undo previous change, since it was fixed
52398         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
52399
52400 2007-07-13  Bruno Haible  <bruno@clisp.org>
52401
52402         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
52403         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
52404
52405 2007-07-13  Jim Meyering  <jim@meyering.net>
52406
52407         df: Don't fail for Tru64's "file-on-file mount".
52408         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
52409         so we fall through and use statfs instead.  Details here:
52410         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
52411         Reported by Albert Chin.
52412
52413 2007-07-13  Bruno Haible  <bruno@clisp.org>
52414
52415         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
52416         * modules/configmake (License): Likewise.
52417         * modules/gettext (License): Likewise.
52418         * modules/gettext-h (License): Likewise.
52419         * modules/include_next (License): Likewise.
52420         * modules/link-warning (License): Likewise.
52421         * modules/localcharset (License): Likewise.
52422         * modules/localename (License): Likewise.
52423         * modules/lock (License): Likewise.
52424         * modules/relocatable-lib-lgpl (License): Likewise.
52425         * modules/size_max (License): Likewise.
52426         * modules/vasnprintf (License): Likewise.
52427         * modules/wchar (License): Likewise.
52428         * modules/xsize (License): Likewise.
52429
52430 2007-07-13  Bruno Haible  <bruno@clisp.org>
52431
52432         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
52433         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
52434
52435 2007-07-12  Bruno Haible  <bruno@clisp.org>
52436
52437         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
52438         in the modules files.
52439
52440 2007-07-11  Karl Berry  <karl@gnu.org>
52441
52442         * MODULES.html.sh (func_module): use
52443          sed -e '\|^'"${includefile}"'$|d'
52444          instead of /.../d, to avoid errors on $includefile's containing /.
52445
52446 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
52447
52448         * gnulib-tool (func_import): Avoid duplication of --avoid
52449         statements
52450         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
52451         names to `_' in variable names.
52452
52453 2007-07-10  Eric Blake  <ebb9@byu.net>
52454
52455         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
52456         * NEWS: Document this change.
52457
52458 2007-07-08  Bruno Haible  <bruno@clisp.org>
52459
52460         Update to Unicode 5.0.
52461         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
52462         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
52463         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
52464         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
52465         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
52466         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
52467         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
52468         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
52469         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
52470         U+10A3F, U+1D242..U+1D244.
52471         (nonspacing_table_ind): Update.
52472         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
52473         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
52474
52475 2007-07-08  Bruno Haible  <bruno@clisp.org>
52476
52477         Update to Unicode 5.0.
52478         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
52479         code transform. Extend the name index field of unicode_name_to_code and
52480         unicode_code_to_name from 16 to 24 bits.
52481         * lib/uniname/uniname.c (unicode_character_name,
52482         unicode_name_character): Add the range 0x12xxx to the code transform.
52483         * lib/uniname/uninames.h: Regenerated.
52484         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
52485
52486 2007-07-07  Bruno Haible  <bruno@clisp.org>
52487
52488         * modules/wcwidth-tests: New file.
52489         * tests/test-wcwidth.c: New file.
52490
52491         Work around MacOS X wcwidth() bug.
52492         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
52493         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
52494         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
52495         original wcwidth in non-UTF-8 locales.
52496         * modules/wcwidth (Depends-on): Add localcharset, streq,
52497         uniwidth/width.
52498         * doc/functions/wcwidth.texi: Update.
52499
52500 2007-07-07  Bruno Haible  <bruno@clisp.org>
52501
52502         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
52503         (wcwidth): New declaration.
52504         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
52505         macros.
52506         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
52507         here. Prepare for creating <wchar.h> unconditionally.
52508         * modules/wchar (Depends-on): Add link-warning.
52509         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
52510         REPLACE_WCWIDTH, and GL_LINK_WARNING.
52511         * lib/wcwidth.h: Remove file.
52512         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
52513         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
52514         * modules/wcwidth (Files): Remove lib/wcwidth.h.
52515         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
52516         (Include): Replace wcwidth.h with <wchar.h>.
52517         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
52518         * lib/mbchar.h: Don't include wcwidth.h.
52519         * lib/mbswidth.c: Likewise.
52520         * NEWS: Mention the change.
52521
52522 2007-07-07  Bruno Haible  <bruno@clisp.org>
52523
52524         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
52525         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
52526         definition with an external declaration.
52527         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
52528         defined as a function. Remove AC_C_INLINE requirement.
52529         * modules/wcwidth (Files): Add lib/wcwidth.c.
52530         (Makefile.am): Remove redundant statement.
52531
52532 2007-07-07  Bruno Haible  <bruno@clisp.org>
52533
52534         * MODULES.html.sh (Unicode string functions): Add the new modules.
52535
52536         * tests/uniwidth/test-u32-strwidth.c: New file.
52537         * modules/uniwidth/u32-strwidth-tests: New file.
52538
52539         * lib/uniwidth/u32-strwidth.c: New file.
52540         * modules/uniwidth/u32-strwidth: New file.
52541
52542         * tests/uniwidth/test-u16-strwidth.c: New file.
52543         * modules/uniwidth/u16-strwidth-tests: New file.
52544
52545         * lib/uniwidth/u16-strwidth.c: New file.
52546         * modules/uniwidth/u16-strwidth: New file.
52547
52548         * tests/uniwidth/test-u8-strwidth.c: New file.
52549         * modules/uniwidth/u8-strwidth-tests: New file.
52550
52551         * lib/uniwidth/u8-strwidth.c: New file.
52552         * modules/uniwidth/u8-strwidth: New file.
52553
52554         * tests/uniwidth/test-u32-width.c: New file.
52555         * modules/uniwidth/u32-width-tests: New file.
52556
52557         * lib/uniwidth/u32-width.c: New file.
52558         * modules/uniwidth/u32-width: New file.
52559
52560         * tests/uniwidth/test-u16-width.c: New file.
52561         * modules/uniwidth/u16-width-tests: New file.
52562
52563         * lib/uniwidth/u16-width.c: New file.
52564         * modules/uniwidth/u16-width: New file.
52565
52566         * tests/uniwidth/test-u8-width.c: New file.
52567         * modules/uniwidth/u8-width-tests: New file.
52568
52569         * lib/uniwidth/u8-width.c: New file.
52570         * modules/uniwidth/u8-width: New file.
52571
52572         * tests/uniwidth/test-uc_width.c: New file.
52573         * modules/uniwidth/width-tests: New file.
52574
52575         * lib/uniwidth/width.c: New file, from GNU libiconv.
52576         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
52577         * modules/uniwidth/width: New file.
52578
52579         * lib/uniwidth.h: New file, from GNU libiconv.
52580         * modules/uniwidth/base: New file.
52581
52582 2007-07-07  Bruno Haible  <bruno@clisp.org>
52583
52584         * lib/uniname.h: New file, from GNU gettext.
52585         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
52586         * lib/uniname/uninames.h: New file, from GNU gettext.
52587         * lib/uniname/uniname.c: New file, from GNU gettext.
52588         * tests/uniname/test-uninames.sh: New file.
52589         * tests/uniname/test-uninames.c: New file, from GNU gettext.
52590         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
52591         * modules/uniname/base: New file.
52592         * modules/uniname/uniname: New file.
52593         * modules/uniname/uniname-tests: New file.
52594         * MODULES.html.sh (Unicode string functions): Add the new modules.
52595
52596 2007-07-06  Bruno Haible  <bruno@clisp.org>
52597
52598         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
52599
52600 2007-07-06  Bruno Haible  <bruno@clisp.org>
52601
52602         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
52603         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
52604         includes <cygwin/sys_time.h> which includes <sys/select.h> which
52605         include <sys/time.h>.
52606         Reported by Eric Blake.
52607
52608 2007-07-06  Eric Blake  <ebb9@byu.net>
52609
52610         Fix testing canonicalize on cygwin.
52611         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
52612         Revert patch from 2007-06-19.
52613         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
52614         canonicalize module is also in use.
52615         * tests/test-canonicalize.c: New file.
52616         * tests/test-canonicalize.sh: Likewise.
52617         * modules/canonicalize-tests: Likewise.
52618
52619 2007-07-06  Jim Meyering  <jim@meyering.net>
52620
52621         * lib/getugroups.c (getugroups): Detect getgrent failure.
52622         Adjust comment to reflect reality: this function may return -1.
52623
52624 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
52625
52626         * build-aux/bootstrap (TP_URL,get_translations): Update to use
52627         the new TP address.
52628         (usage): Fix typo
52629         (gnulib_mk): New variable.
52630
52631 2007-07-05  Jim Meyering  <jim@meyering.net>
52632
52633         Don't let endgrent clobber errno, no matter how improbable.
52634         * lib/getugroups.c (getugroups): Save and restore errno around
52635         endgrent call.
52636
52637         Close the group DB even when failing with 2^31 or more members.
52638         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
52639
52640 2007-07-04  Jim Meyering  <jim@meyering.net>
52641
52642         * lib/getugroups.h: New file.
52643         * lib/getugroups.c: Include "getugroups.h".
52644         Remove uses of "register" keyword.
52645         Move local variable, "cp", down into scope where used.
52646         Give "username" parameter the "const" attribute.
52647         * modules/getugroups (Files): Add lib/getugroups.h
52648
52649 2007-07-04  Karl Berry  <karl@gnu.org>
52650
52651         * MODULES.html.sh (func_all_modules): Complete rename of
52652         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
52653
52654 2007-07-02  Bruno Haible  <bruno@clisp.org>
52655
52656         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
52657         mode, when inttypes.h comes from gnulib.
52658         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
52659
52660 2007-07-02  Simon Josefsson  <simon@josefsson.org>
52661
52662         * NEWS: Mention lgpl module name change.
52663
52664         * modules/lgpl-2.1: Renamed from lgpl.
52665
52666         * NEWS: Mention gpl module name change.
52667
52668         * modules/gpl-3.0: New file, based on gpl-2.0.
52669
52670         * modules/gpl-2.0: Renamed from gpl.
52671
52672         * modules/gpl: Fix filename, doc/gpl.texi is now found at
52673         doc/gpl-2.0.texi.
52674
52675 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
52676
52677         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
52678         #define __STDC_LIMIT_MACROS temporarily while including
52679         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
52680         Problem reported by Joel E. Denny in
52681         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
52682
52683 2007-07-01  Bruno Haible  <bruno@clisp.org>
52684
52685         * lib/unistdio.h: New file.
52686         * lib/unistdio/u-asnprintf.h: New file.
52687         * lib/unistdio/u-asprintf.h: New file.
52688         * lib/unistdio/u-printf-args.c: New file.
52689         * lib/unistdio/u-printf-args.h: New file.
52690         * lib/unistdio/u-printf-parse.h: New file.
52691         * lib/unistdio/u-snprintf.h: New file.
52692         * lib/unistdio/u-sprintf.h: New file.
52693         * lib/unistdio/u-vasprintf.h: New file.
52694         * lib/unistdio/u-vsnprintf.h: New file.
52695         * lib/unistdio/u-vsprintf.h: New file.
52696         * lib/unistdio/ulc-asnprintf.c: New file.
52697         * lib/unistdio/ulc-asprintf.c: New file.
52698         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
52699         * lib/unistdio/ulc-printf-parse.c: New file.
52700         * lib/unistdio/ulc-snprintf.c: New file.
52701         * lib/unistdio/ulc-sprintf.c: New file.
52702         * lib/unistdio/ulc-vasnprintf.c: New file.
52703         * lib/unistdio/ulc-vasprintf.c: New file.
52704         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
52705         * lib/unistdio/ulc-vsnprintf.c: New file.
52706         * lib/unistdio/ulc-vsprintf.c: New file.
52707         * lib/unistdio/u8-asnprintf.c: New file.
52708         * lib/unistdio/u8-asprintf.c: New file.
52709         * lib/unistdio/u8-printf-parse.c: New file.
52710         * lib/unistdio/u8-snprintf.c: New file.
52711         * lib/unistdio/u8-sprintf.c: New file.
52712         * lib/unistdio/u8-vasnprintf.c: New file.
52713         * lib/unistdio/u8-vasprintf.c: New file.
52714         * lib/unistdio/u8-vsnprintf.c: New file.
52715         * lib/unistdio/u8-vsprintf.c: New file.
52716         * lib/unistdio/u8-u8-asnprintf.c: New file.
52717         * lib/unistdio/u8-u8-asprintf.c: New file.
52718         * lib/unistdio/u8-u8-snprintf.c: New file.
52719         * lib/unistdio/u8-u8-sprintf.c: New file.
52720         * lib/unistdio/u8-u8-vasnprintf.c: New file.
52721         * lib/unistdio/u8-u8-vasprintf.c: New file.
52722         * lib/unistdio/u8-u8-vsnprintf.c: New file.
52723         * lib/unistdio/u8-u8-vsprintf.c: New file.
52724         * lib/unistdio/u16-asnprintf.c: New file.
52725         * lib/unistdio/u16-asprintf.c: New file.
52726         * lib/unistdio/u16-printf-parse.c: New file.
52727         * lib/unistdio/u16-snprintf.c: New file.
52728         * lib/unistdio/u16-sprintf.c: New file.
52729         * lib/unistdio/u16-vasnprintf.c: New file.
52730         * lib/unistdio/u16-vasprintf.c: New file.
52731         * lib/unistdio/u16-vsnprintf.c: New file.
52732         * lib/unistdio/u16-vsprintf.c: New file.
52733         * lib/unistdio/u16-u16-asnprintf.c: New file.
52734         * lib/unistdio/u16-u16-asprintf.c: New file.
52735         * lib/unistdio/u16-u16-snprintf.c: New file.
52736         * lib/unistdio/u16-u16-sprintf.c: New file.
52737         * lib/unistdio/u16-u16-vasnprintf.c: New file.
52738         * lib/unistdio/u16-u16-vasprintf.c: New file.
52739         * lib/unistdio/u16-u16-vsnprintf.c: New file.
52740         * lib/unistdio/u16-u16-vsprintf.c: New file.
52741         * lib/unistdio/u32-asnprintf.c: New file.
52742         * lib/unistdio/u32-asprintf.c: New file.
52743         * lib/unistdio/u32-printf-parse.c: New file.
52744         * lib/unistdio/u32-snprintf.c: New file.
52745         * lib/unistdio/u32-sprintf.c: New file.
52746         * lib/unistdio/u32-vasnprintf.c: New file.
52747         * lib/unistdio/u32-vasprintf.c: New file.
52748         * lib/unistdio/u32-vsnprintf.c: New file.
52749         * lib/unistdio/u32-vsprintf.c: New file.
52750         * lib/unistdio/u32-u32-asnprintf.c: New file.
52751         * lib/unistdio/u32-u32-asprintf.c: New file.
52752         * lib/unistdio/u32-u32-snprintf.c: New file.
52753         * lib/unistdio/u32-u32-sprintf.c: New file.
52754         * lib/unistdio/u32-u32-vasnprintf.c: New file.
52755         * lib/unistdio/u32-u32-vasprintf.c: New file.
52756         * lib/unistdio/u32-u32-vsnprintf.c: New file.
52757         * lib/unistdio/u32-u32-vsprintf.c: New file.
52758         * tests/unistdio/test-ulc-asnprintf1.c: New file.
52759         * tests/unistdio/test-ulc-asnprintf1.h: New file.
52760         * tests/unistdio/test-ulc-printf1.h: New file.
52761         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
52762         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
52763         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
52764         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
52765         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
52766         * tests/unistdio/test-ulc-vasprintf1.c: New file.
52767         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
52768         * tests/unistdio/test-ulc-vsprintf1.c: New file.
52769         * tests/unistdio/test-u8-asnprintf1.c: New file.
52770         * tests/unistdio/test-u8-asnprintf1.h: New file.
52771         * tests/unistdio/test-u8-printf1.h: New file.
52772         * tests/unistdio/test-u8-vasnprintf1.c: New file.
52773         * tests/unistdio/test-u8-vasnprintf2.c: New file.
52774         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
52775         * tests/unistdio/test-u8-vasnprintf3.c: New file.
52776         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
52777         * tests/unistdio/test-u8-vasprintf1.c: New file.
52778         * tests/unistdio/test-u8-vsnprintf1.c: New file.
52779         * tests/unistdio/test-u8-vsprintf1.c: New file.
52780         * tests/unistdio/test-u16-asnprintf1.c: New file.
52781         * tests/unistdio/test-u16-asnprintf1.h: New file.
52782         * tests/unistdio/test-u16-printf1.h: New file.
52783         * tests/unistdio/test-u16-vasnprintf1.c: New file.
52784         * tests/unistdio/test-u16-vasnprintf2.c: New file.
52785         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
52786         * tests/unistdio/test-u16-vasnprintf3.c: New file.
52787         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
52788         * tests/unistdio/test-u16-vasprintf1.c: New file.
52789         * tests/unistdio/test-u16-vsnprintf1.c: New file.
52790         * tests/unistdio/test-u16-vsprintf1.c: New file.
52791         * tests/unistdio/test-u32-asnprintf1.c: New file.
52792         * tests/unistdio/test-u32-asnprintf1.h: New file.
52793         * tests/unistdio/test-u32-printf1.h: New file.
52794         * tests/unistdio/test-u32-vasnprintf1.c: New file.
52795         * tests/unistdio/test-u32-vasnprintf2.c: New file.
52796         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
52797         * tests/unistdio/test-u32-vasnprintf3.c: New file.
52798         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
52799         * tests/unistdio/test-u32-vasprintf1.c: New file.
52800         * tests/unistdio/test-u32-vsnprintf1.c: New file.
52801         * tests/unistdio/test-u32-vsprintf1.c: New file.
52802         * modules/unistdio/base: New file.
52803         * modules/unistdio/u-printf-args: New file.
52804         * modules/unistdio/ulc-asnprintf: New file.
52805         * modules/unistdio/ulc-asprintf: New file.
52806         * modules/unistdio/ulc-fprintf: New file.
52807         * modules/unistdio/ulc-printf-parse: New file.
52808         * modules/unistdio/ulc-snprintf: New file.
52809         * modules/unistdio/ulc-sprintf: New file.
52810         * modules/unistdio/ulc-vasnprintf: New file.
52811         * modules/unistdio/ulc-vasprintf: New file.
52812         * modules/unistdio/ulc-vfprintf: New file.
52813         * modules/unistdio/ulc-vsnprintf: New file.
52814         * modules/unistdio/ulc-vsprintf: New file.
52815         * modules/unistdio/u8-asnprintf: New file.
52816         * modules/unistdio/u8-asprintf: New file.
52817         * modules/unistdio/u8-printf-parse: New file.
52818         * modules/unistdio/u8-snprintf: New file.
52819         * modules/unistdio/u8-sprintf: New file.
52820         * modules/unistdio/u8-vasnprintf: New file.
52821         * modules/unistdio/u8-vasprintf: New file.
52822         * modules/unistdio/u8-vsnprintf: New file.
52823         * modules/unistdio/u8-vsprintf: New file.
52824         * modules/unistdio/u8-u8-asnprintf: New file.
52825         * modules/unistdio/u8-u8-asprintf: New file.
52826         * modules/unistdio/u8-u8-snprintf: New file.
52827         * modules/unistdio/u8-u8-sprintf: New file.
52828         * modules/unistdio/u8-u8-vasnprintf: New file.
52829         * modules/unistdio/u8-u8-vasprintf: New file.
52830         * modules/unistdio/u8-u8-vsnprintf: New file.
52831         * modules/unistdio/u8-u8-vsprintf: New file.
52832         * modules/unistdio/u16-asnprintf: New file.
52833         * modules/unistdio/u16-asprintf: New file.
52834         * modules/unistdio/u16-printf-parse: New file.
52835         * modules/unistdio/u16-snprintf: New file.
52836         * modules/unistdio/u16-sprintf: New file.
52837         * modules/unistdio/u16-vasnprintf: New file.
52838         * modules/unistdio/u16-vasprintf: New file.
52839         * modules/unistdio/u16-vsnprintf: New file.
52840         * modules/unistdio/u16-vsprintf: New file.
52841         * modules/unistdio/u16-u16-asnprintf: New file.
52842         * modules/unistdio/u16-u16-asprintf: New file.
52843         * modules/unistdio/u16-u16-snprintf: New file.
52844         * modules/unistdio/u16-u16-sprintf: New file.
52845         * modules/unistdio/u16-u16-vasnprintf: New file.
52846         * modules/unistdio/u16-u16-vasprintf: New file.
52847         * modules/unistdio/u16-u16-vsnprintf: New file.
52848         * modules/unistdio/u16-u16-vsprintf: New file.
52849         * modules/unistdio/u32-asnprintf: New file.
52850         * modules/unistdio/u32-asprintf: New file.
52851         * modules/unistdio/u32-printf-parse: New file.
52852         * modules/unistdio/u32-snprintf: New file.
52853         * modules/unistdio/u32-sprintf: New file.
52854         * modules/unistdio/u32-vasnprintf: New file.
52855         * modules/unistdio/u32-vasprintf: New file.
52856         * modules/unistdio/u32-vsnprintf: New file.
52857         * modules/unistdio/u32-vsprintf: New file.
52858         * modules/unistdio/u32-u32-asnprintf: New file.
52859         * modules/unistdio/u32-u32-asprintf: New file.
52860         * modules/unistdio/u32-u32-snprintf: New file.
52861         * modules/unistdio/u32-u32-sprintf: New file.
52862         * modules/unistdio/u32-u32-vasnprintf: New file.
52863         * modules/unistdio/u32-u32-vasprintf: New file.
52864         * modules/unistdio/u32-u32-vsnprintf: New file.
52865         * modules/unistdio/u32-u32-vsprintf: New file.
52866         * modules/unistdio/ulc-asnprintf-tests: New file.
52867         * modules/unistdio/ulc-vasnprintf-tests: New file.
52868         * modules/unistdio/ulc-vasprintf-tests: New file.
52869         * modules/unistdio/ulc-vsnprintf-tests: New file.
52870         * modules/unistdio/ulc-vsprintf-tests: New file.
52871         * modules/unistdio/u8-asnprintf-tests: New file.
52872         * modules/unistdio/u8-vasnprintf-tests: New file.
52873         * modules/unistdio/u8-vasprintf-tests: New file.
52874         * modules/unistdio/u8-vsnprintf-tests: New file.
52875         * modules/unistdio/u8-vsprintf-tests: New file.
52876         * modules/unistdio/u16-asnprintf-tests: New file.
52877         * modules/unistdio/u16-vasnprintf-tests: New file.
52878         * modules/unistdio/u16-vasprintf-tests: New file.
52879         * modules/unistdio/u16-vsnprintf-tests: New file.
52880         * modules/unistdio/u16-vsprintf-tests: New file.
52881         * modules/unistdio/u32-asnprintf-tests: New file.
52882         * modules/unistdio/u32-vasnprintf-tests: New file.
52883         * modules/unistdio/u32-vasprintf-tests: New file.
52884         * modules/unistdio/u32-vsnprintf-tests: New file.
52885         * modules/unistdio/u32-vsprintf-tests: New file.
52886         * MODULES.html.sh (Unicode string functions): Add the new modules.
52887
52888 2007-07-01  Bruno Haible  <bruno@clisp.org>
52889
52890         * lib/sprintf.c (sprintf): Limit the available length estimation,
52891         to avoid address wraparound.
52892         * lib/vsprintf.c (vsprintf): Likewise.
52893         * modules/sprintf-posix (Dependencies): Add stdint.
52894         * modules/vsprintf-posix (Dependencies): Likewise.
52895
52896 2007-07-01  Bruno Haible  <bruno@clisp.org>
52897
52898         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
52899         Windows PATH as well. Conservative double-quoting. Comments.
52900
52901 2007-07-01  Bruno Haible  <bruno@clisp.org>
52902             Eric Blake  <ebb9@byu.net>
52903             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52904
52905         * gnulib-tool (self_abspathname): Fix algorithm to cope with
52906         empty components in $PATH, denoting '.'.
52907
52908 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52909
52910         * gnulib-tool: Fix indentation.
52911         (func_create_megatestdir): Likewise.
52912         Report by Bruno Haible.
52913
52914 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52915
52916         Sync from Automake.
52917         * build-aux/gnupload: Fix shell portability issues with for loops.
52918         Report by Karl Berry.
52919
52920 2007-06-29  Simon Josefsson  <simon@josefsson.org>
52921
52922         * build-aux/maint.mk (POURL): Use translationproject.org.
52923
52924 2007-06-27  Simon Josefsson  <simon@josefsson.org>
52925             Bruno Haible  <bruno@clisp.org>
52926
52927         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
52928         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
52929         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
52930         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
52931         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
52932
52933 2007-06-27  Bruno Haible  <bruno@clisp.org>
52934
52935         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
52936         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
52937
52938 2007-06-26  Karl Berry  <karl@gnu.org>
52939
52940         * MODULES.html.sh: remove xreadlink-with-size.
52941
52942 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
52943
52944         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
52945         method that I hope also handles the double-include problem noted
52946         by Bruno Haible in
52947         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
52948
52949 2007-06-23  Bruno Haible  <bruno@clisp.org>
52950
52951         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52952         Don't let the 'mostlyclean' target fail if the last subdirectory could
52953         not be removed.
52954         Reported by Karl Berry.
52955
52956 2007-06-23  Bruno Haible  <bruno@clisp.org>
52957
52958         * gnulib-tool (echo): Add a speedier workaround for ksh.
52959         * tests/test-echo.sh: Likewise.
52960
52961 2007-06-23  Bruno Haible  <bruno@clisp.org>
52962
52963         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
52964         * tests/test-echo.sh: Likewise.
52965
52966 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52967
52968         * gnulib-tool (IFS): Initialize early, so we don't set it to
52969         empty later.
52970         (self_abspathname): Rewrite algorithm to set it, reindent.
52971         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
52972         (func_create_megatestdir): Merge some sed scripts.
52973
52974 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
52975
52976         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
52977         exposed by Sun Studio 11 cc on Solaris 8.
52978
52979 2007-06-22  Bruno Haible  <bruno@clisp.org>
52980
52981         * gnulib-tool (echo): Ensure the echo primitive does not interpret
52982         backslashes.
52983         * tests/test-echo.sh: New file.
52984
52985 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52986
52987         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
52988         simplify `sed_replace_build_aux' scripts, they are portable but
52989         echoing them with `echo' is not.
52990         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
52991
52992 2007-06-21  Karl Berry  <karl@gnu.org>
52993
52994         * config/srclist.txt: guess we can't handle the licenses via
52995         srclist at the moment.
52996
52997 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
52998
52999         * MODULES.html.sh: Add include_next.
53000         * modules/include_next: New file.
53001
53002 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
53003
53004         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
53005         INCLUDE_NEXT.
53006         (gl_CHECK_NEXT_HEADERS): New macro.
53007         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
53008         the obsolescent gl_ABSOLUTE_HEADER.
53009         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
53010         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
53011         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
53012         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
53013         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
53014         * m4/math_h.m4 (gl_MATH_H): Likewise.
53015         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
53016         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
53017         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
53018         * m4/stdint.m4 (gl_STDINT_H): Likewise.
53019         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
53020         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
53021         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
53022         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
53023         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
53024         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
53025         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
53026         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
53027         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
53028         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
53029         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
53030         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
53031         * m4/inttypes.m4 (gl_INTTYPES_H): Define
53032         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
53033         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
53034         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
53035         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
53036         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
53037         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
53038         * lib/float_.h: Likewise.
53039         * lib/inttypes_.h: Likewise.
53040         * lib/math_.h: Likewise.
53041         * lib/search_.h: Likewise.
53042         * lib/signal_.h: Likewise.
53043         * lib/stdint_.h: Likewise.
53044         * lib/stdio_.h: Likewise.
53045         * lib/stdlib_.h: Likewise.
53046         * lib/string_.h: Likewise.
53047         * lib/sys_stat_.h: Likewise.
53048         * lib/sys_time_.h: Likewise.
53049         * lib/time_.h: Likewise.
53050         * lib/unistd_.h: Likewise.
53051         * lib/wchar_.h: Likewise.
53052         * lib/wctype_.h: Likewise.
53053         * lib/dirent_.h: Likewise.
53054         * lib/iconv_.h: Likewise.
53055         * lib/locale_.h: Likewise.
53056         * lib/netinet_in_.h: Likewise.
53057         * lib/sys_select_.h: Likewise.
53058         * lib/sys_socket_.h: Likewise.
53059         * lib/sysexits_.h: Likewise.
53060         * modules/fcntl (Depends-on): Depend on include_next, not
53061         absolute_header.
53062         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
53063         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
53064         * modules/fchdir: Likewise.
53065         * modules/float: Likewise.
53066         * modules/iconv_open: Likewise.
53067         * modules/inttypes: Likewise.
53068         * modules/locale: Likewise.
53069         * modules/math: Likewise.
53070         * modules/netinet_in: Likewise.
53071         * modules/search: Likewise.
53072         * modules/signal: Likewise.
53073         * modules/stdint: Likewise.
53074         * modules/stdio: Likewise.
53075         * modules/stdlib: Likewise.
53076         * modules/string: Likewise.
53077         * modules/sys_select: Likewise.
53078         * modules/sys_socket: Likewise.
53079         * modules/sys_stat: Likewise.
53080         * modules/sys_time: Likewise.
53081         * modules/sysexits: Likewise.
53082         * modules/time: Likewise.
53083         * modules/unistd: Likewise.
53084         * modules/wchar: Likewise.
53085         * modules/wctype: Likewise.
53086         * modules/sys_stat: Change maintainer to "all".
53087         * modules/unistd: Likewise.
53088
53089 2007-06-20  Karl Berry  <karl@gnu.org>
53090
53091         * config/srclist.txt: track www changes in license files.
53092
53093 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
53094
53095         * build-aux/bootstrap: Remove stray dot.
53096         Make sure build_aux settings are honored when linking
53097         gnulib_extra_files.
53098
53099 2007-06-19  Eric Blake  <ebb9@byu.net>
53100
53101         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
53102         Allow compilation on cygwin.
53103
53104 2007-06-19  Jim Meyering  <jim@meyering.net>
53105
53106         xreadlink-with-size: Remove module.  No longer used.
53107         Ex-callers now use xreadlink or mreadlink-with-size.
53108         * modules/xreadlink-with-size: Remove module.
53109         * lib/xreadlink-with-size.c: Remove file.
53110         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
53111         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
53112         just before the function definition *is* accurate.
53113
53114         Eliminate one way canonicalize_filename_mode could exit.
53115         * lib/canonicalize.c (canonicalize_filename_mode):
53116         Use mreadlink_with_size, not xreadlink_with_size.
53117
53118 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
53119
53120         Detect porting problems to FreeBSD/arm, which has time_t wider than
53121         long int.  Original problem reported for GNU diff by Xin Li in
53122         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
53123         * modules/getdate (Depends-on): Add intprops, verify.
53124         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
53125         is an integer type no wider than long int.
53126
53127 2007-06-18  Jim Meyering  <jim@meyering.net>
53128
53129         New module: mreadlink-with-size.
53130         * MODULES.html.sh: Add mreadlink-with-size.
53131         * modules/mreadlink-with-size: New module
53132         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
53133         not xreadlink-with-size.
53134         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
53135
53136 2007-06-16  Bruno Haible  <bruno@clisp.org>
53137
53138         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
53139         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
53140         Reported by Gary V. Vaughan <gary@gnu.org>.
53141
53142 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
53143
53144         Revamp lchown so that it lives in unistd.h where it belongs.
53145         * lib/lchown.h: Remove.
53146         * lib/dirchownmod.c: Don't include lib/lchown.h.
53147         * lib/fchownat.c: Likewise.
53148         * lib/openat.c: Likewise.
53149         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
53150         does not follow symlinks.
53151         (EOPNOTSUPP): Define if not defined.
53152         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
53153         is defined to 0.
53154         (lchown): New decl.
53155         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
53156         Do not check for lchown decl.
53157         Set REPLACE_LCHOWN.
53158         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
53159         REPLACE_LCHOWN.
53160         * modules/chown: Make it clear it follows symlinks.
53161         * modules/lchown: Make it clear it doesn't follow symlinks.
53162         (Files): Remove lib/lchown.h
53163         (Depends-on): Add unistd.
53164         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
53165         (Include): Include <unistd.h>, not "lchown.h".
53166         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
53167         REPLACE_LCHOWN.
53168
53169 2007-06-15  Jim Meyering  <jim@meyering.net>
53170
53171         Change license (GPL to LGPL) of fsusage and dependents.
53172         * modules/fsusage (License): Change to LGPL.
53173         * modules/full-read (License): Likewise.
53174         * modules/full-write (License): Likewise.
53175         * modules/safe-read (License): Likewise.
53176         * modules/safe-write (License): Likewise.
53177
53178 2007-06-14  Ben Pfaff  <blp@gnu.org>
53179
53180         Missing part of allocsa -> malloca transition.
53181         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
53182         gl_MALLOCA.
53183
53184 2007-06-12  Bruno Haible  <bruno@clisp.org>
53185
53186         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
53187         to ia64, x86_64, i386.
53188         Reported by Eric Blake.
53189
53190 2007-06-12  Bruno Haible  <bruno@clisp.org>
53191
53192         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
53193         cross-compiling to x86_64.
53194
53195 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
53196
53197         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
53198         glitch reported by Ralf Wildenhues in
53199         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
53200
53201         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
53202         Vin Shelton.
53203
53204 2007-06-11  Bruno Haible  <bruno@clisp.org>
53205
53206         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
53207         replacement string.
53208         Reported by Eric Blake.
53209
53210 2007-06-10  Bruno Haible  <bruno@clisp.org>
53211
53212         Prepare vasnprintf code for use with Unicode strings.
53213         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
53214         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
53215         TYPE_U32_STRING.
53216         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
53217         a_u32_string variants.
53218         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
53219         * lib/printf-args.c: Don't include config.h and the specification
53220         header if PRINTF_FETCHARGS is already defined.
53221         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
53222         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
53223         TYPE_U16_STRING, TYPE_U32_STRING.
53224         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
53225         u16_directive, u16_directives, u32_directive, u32_directives): New
53226         types.
53227         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
53228         New declarations.
53229         * lib/printf-parse.c: Don't include config.h and the specification
53230         header if PRINTF_PARSE is already defined. Eliminate the set of
53231         parameters for WIDE_CHAR_VERSION; the user of this file must provide
53232         them now. Include c-ctype.h.
53233         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
53234         directive and CHAR_T_ONLY_ASCII.
53235         * lib/vasnprintf.c: Don't include config.h and the specification header
53236         if VASNPRINTF is already defined.
53237         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
53238         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
53239         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
53240         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
53241         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
53242         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
53243         code accordingly.
53244         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
53245         pad_ourselves also in this case, with the 'c' and 's' directives, and
53246         with a different notion of "width".
53247         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
53248
53249 2007-06-10  Bruno Haible  <bruno@clisp.org>
53250
53251         * modules/unistr/u32-mbsnlen: New file.
53252         * lib/unistr/u32-mbsnlen.c: New file.
53253
53254         * modules/unistr/u16-mbsnlen: New file.
53255         * lib/unistr/u16-mbsnlen.c: New file.
53256
53257         * modules/unistr/u8-mbsnlen: New file.
53258         * lib/unistr/u8-mbsnlen.c: New file.
53259
53260         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
53261         declarations.
53262
53263 2007-06-10  Bruno Haible  <bruno@clisp.org>
53264
53265         * lib/string_.h (mbsnlen): New declaration.
53266         * lib/mbsnlen.c: New file.
53267         * m4/mbsnlen.m4: New file.
53268         * modules/mbsnlen: New file.
53269         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
53270         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
53271         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
53272
53273 2007-06-10  Bruno Haible  <bruno@clisp.org>
53274
53275         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
53276
53277 2007-06-10  Bruno Haible  <bruno@clisp.org>
53278
53279         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
53280         * lib/mbuiter.h: Likewise.
53281
53282 2007-06-10  Bruno Haible  <bruno@clisp.org>
53283
53284         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
53285         declaration.
53286
53287 2007-06-10  Karl Berry  <karl@gnu.org>
53288
53289         * config/srclist.txt: remove gettext entries, Bruno prefers
53290         to update individually.
53291
53292 2007-06-10  Bruno Haible  <bruno@clisp.org>
53293
53294         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
53295         'maxlen'. Ensure only length + width bytes are allocated, not
53296         length + 1 + width.
53297
53298 2007-06-09  Bruno Haible  <bruno@clisp.org>
53299
53300         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
53301         (CHAR_T): Remove macro.
53302         (VASNPRINTF): Update.
53303
53304 2007-06-09  Bruno Haible  <bruno@clisp.org>
53305
53306         * MODULES.html.sh (Unicode string functions): Add the new modules.
53307
53308         * modules/uniconv/u32-conv-to-enc: New file.
53309         * lib/uniconv/u32-conv-to-enc.c: New file.
53310         * modules/uniconv/u32-conv-to-enc-tests: New file.
53311         * tests/uniconv/test-u32-conv-to-enc.c: New file.
53312
53313         * modules/uniconv/u16-conv-to-enc: New file.
53314         * lib/uniconv/u16-conv-to-enc.c: New file.
53315         * lib/uniconv/u-conv-to-enc.h: New file.
53316         * modules/uniconv/u16-conv-to-enc-tests: New file.
53317         * tests/uniconv/test-u16-conv-to-enc.c: New file.
53318
53319         * modules/uniconv/u8-conv-to-enc: New file.
53320         * lib/uniconv/u8-conv-to-enc.c: New file.
53321         * modules/uniconv/u8-conv-to-enc-tests: New file.
53322         * tests/uniconv/test-u8-conv-to-enc.c: New file.
53323
53324         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
53325         u32_conv_to_encoding): New declarations.
53326
53327 2007-06-09  Bruno Haible  <bruno@clisp.org>
53328
53329         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
53330
53331 2007-06-09  Bruno Haible  <bruno@clisp.org>
53332
53333         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
53334         * modules/malloca: Renamed from modules/allocsa, updated.
53335         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
53336         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
53337         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
53338         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
53339         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
53340         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
53341         * modules/xmalloca: Renamed from modules/xallocsa, updated.
53342         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
53343         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
53344         * modules/c-strcasestr (Depends-on): Update.
53345         * lib/c-strcasestr.c: Update.
53346         * modules/c-strstr (Depends-on): Update.
53347         * lib/c-strstr.c: Update.
53348         * modules/canonicalize-lgpl (Depends-on): Update.
53349         * lib/canonicalize-lgpl.c: Update.
53350         * modules/clean-temp (Depends-on): Update.
53351         * lib/clean-temp.c: Update.
53352         * modules/csharpcomp (Depends-on): Update.
53353         * lib/csharpcomp.c: Update.
53354         * modules/csharpexec (Depends-on): Update.
53355         * lib/csharpexec.c: Update.
53356         * modules/javacomp (Depends-on): Update.
53357         * lib/javacomp.c: Update.
53358         * modules/javaexec (Depends-on): Update.
53359         * lib/javaexec.c: Update.
53360         * modules/mbscasestr (Depends-on): Update.
53361         * lib/mbscasestr.c: Update.
53362         * modules/mbsstr (Depends-on): Update.
53363         * lib/mbsstr.c: Update.
53364         * modules/setenv (Depends-on): Update.
53365         * lib/setenv.c: Update.
53366         * modules/strcasestr (Depends-on): Update.
53367         * lib/strcasestr.c: Update.
53368         * modules/striconveha (Depends-on): Update.
53369         * lib/striconveha.c: Update.
53370         * modules/relocatable-prog-wrapper (Files): Update.
53371         * lib/relocwrapper.c: Update.
53372         * build-aux/install-reloc: Update.
53373         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
53374
53375 2007-06-08  Bruno Haible  <bruno@clisp.org>
53376
53377         Port to uClibc.
53378         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
53379         * lib/fpurge.c (fpurge): Likewise.
53380         * lib/freading.c (freading): Likewise.
53381         * lib/fseeko.c (rpl_fseeko): Likewise.
53382         * lib/fseterr.c (fseterr): Likewise.
53383         * lib/fwriting.c (fwriting): Likewise.
53384         * tests/test-fflush.c (main): Avoid a failure on uClibc.
53385
53386 2007-06-08  Bruno Haible  <bruno@clisp.org>
53387
53388         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
53389         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
53390         * modules/gettext (Files): Add m4/intlmacosx.m4.
53391
53392 2007-06-07  Bruno Haible  <bruno@clisp.org>
53393
53394         * modules/localename-tests: New file.
53395         * tests/test-localename.c: New file.
53396
53397         New module 'localename'.
53398         * lib/localename.h: New file.
53399         * lib/localename.c: New file, from GNU gettext.
53400         * m4/localename.m4: New file.
53401         * modules/localename: New file.
53402
53403 2007-06-07  Bruno Haible  <bruno@clisp.org>
53404
53405         Work around the lack of <wchar.h> on some builds of uClibc.
53406         * doc/headers/wchar.texi: Update.
53407         * lib/wchar_.h: Include <wchar.h> only if it exists.
53408         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
53409         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
53410         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
53411         doesn't exist.
53412         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
53413         * modules/mbfile (Depends-on): Add wchar.
53414         * modules/mbiter (Depends-on): Likewise.
53415         * modules/mbuiter (Depends-on): Likewise.
53416         Reported by Simon Josefsson.
53417
53418 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
53419
53420         Work around problem reported by Steven M. Schweda in
53421         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
53422         Tru64 5.1B with the Compaq compiler environment installed declares
53423         an 'isblank' function but does not define it in the C library.
53424         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
53425         * lib/regex_internal.h (isblank): Likewise.
53426         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
53427         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
53428
53429 2007-06-05  Bruno Haible  <bruno@clisp.org>
53430
53431         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
53432         ia64.
53433         * modules/printf-safe: New file.
53434         * modules/fprintf-posix (Depends-on): Add printf-safe.
53435         * modules/printf-posix (Depends-on): Likewise.
53436         * modules/snprintf-posix (Depends-on): Likewise.
53437         * modules/sprintf-posix (Depends-on): Likewise.
53438         * modules/vasnprintf-posix (Depends-on): Likewise.
53439         * modules/vasprintf-posix (Depends-on): Likewise.
53440         * modules/vfprintf-posix (Depends-on): Likewise.
53441         * modules/vprintf-posix (Depends-on): Likewise.
53442         * modules/vsnprintf-posix (Depends-on): Likewise.
53443         * modules/vsprintf-posix (Depends-on): Likewise.
53444         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
53445         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
53446         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
53447         "no" on i386, x86_64, ia64.
53448         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
53449         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
53450         on i386, x86_64, ia64.
53451         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
53452         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
53453         on i386, x86_64, ia64.
53454         * tests/test-vasnprintf-posix.c: Include float.h.
53455         (LDBL80_WORDS): New macro.
53456         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
53457         on i386, x86_64, ia64.
53458         * tests/test-vasprintf-posix.c: Include float.h.
53459         (LDBL80_WORDS): New macro.
53460         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
53461         on i386, x86_64, ia64.
53462         * tests/test-snprintf-posix.c: Include float.h.
53463         * tests/test-sprintf-posix.c: Likewise.
53464         * tests/test-vsnprintf-posix.c: Likewise.
53465         * tests/test-vsprintf-posix.c: Likewise.
53466
53467 2007-06-05  Bruno Haible  <bruno@clisp.org>
53468
53469         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
53470         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
53471         non-IEEE numbers on i386, x86_64, ia64.
53472         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
53473         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
53474         * tests/test-isnanl.h: Include float.h.
53475         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
53476
53477 2007-06-05  Bruno Haible  <bruno@clisp.org>
53478
53479         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
53480         also the %a / %A. Handle the %a / %A code before this extra handling.
53481
53482 2007-06-05  Bruno Haible  <bruno@clisp.org>
53483
53484         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
53485         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
53486
53487 2007-06-05  Bruno Haible  <bruno@clisp.org>
53488
53489         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
53490         typo in variable name.
53491
53492 2007-06-05  Eric Blake  <ebb9@byu.net>
53493
53494         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
53495         Reported by Simon Josefsson.
53496
53497 2007-06-04  Bruno Haible  <bruno@clisp.org>
53498
53499         Avoid test failures on some PowerPC platforms.
53500         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
53501         Define differently for PowerPC.
53502         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
53503         Reported by Gary V. Vaughan <gary@gnu.org>.
53504
53505 2007-06-02  Bruno Haible  <bruno@clisp.org>
53506
53507         Fix test-stdint failure on FreeBSD/ia64.
53508         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
53509         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
53510         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
53511         * doc/headers/stdint.texi: Update.
53512
53513 2007-06-01  Bruno Haible  <bruno@clisp.org>
53514
53515         * tests/test-binary-io.c (main): Pass a third argument to open().
53516         Reported by Gary V. Vaughan <gary@gnu.org>.
53517
53518 2007-06-01  Bruno Haible  <bruno@clisp.org>
53519
53520         * doc/functions/frexpl.texi: Update for mingw.
53521
53522 2007-06-01  Bruno Haible  <bruno@clisp.org>
53523
53524         * tests/test-lseek.c (main): Disable test of errno for invalid third
53525         argument.
53526         * doc/functions/lseek.texi: Update.
53527         Reported by Gary V. Vaughan <gary@gnu.org>.
53528
53529 2007-05-28  Bruno Haible  <bruno@clisp.org>
53530
53531         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
53532
53533 2007-05-31  Eric Blake  <ebb9@byu.net>
53534
53535         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
53536         cross compiling.
53537
53538 2007-05-30  Eric Blake  <ebb9@byu.net>
53539         and Bruno Haible  <bruno@clisp.org>
53540
53541         Work around mingw test failures exposed by m4-1.4.9b.
53542         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
53543         * tests/test-unistd.c: Disable uid_t and git_t tests for the
53544         moment.
53545
53546 2007-05-30  Bruno Haible  <bruno@clisp.org>
53547
53548         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
53549         assuming that they are closed. Needed on HP-UX 11.
53550
53551 2007-05-29  Bruno Haible  <bruno@clisp.org>
53552
53553         Fix a problem with #include_next.
53554         * lib/dirent_.h: Split the double-inclusion guard.
53555         * lib/fcntl_.h: Likewise.
53556         * lib/float_.h: Likewise.
53557         * lib/iconv_.h: Likewise.
53558         * lib/inttypes_.h: Likewise.
53559         * lib/locale_.h: Likewise.
53560         * lib/math_.h: Likewise.
53561         * lib/netinet_in_.h: Likewise.
53562         * lib/search_.h: Likewise.
53563         * lib/signal_.h: Likewise.
53564         * lib/stdint_.h: Likewise.
53565         * lib/stdio_.h: Likewise.
53566         * lib/stdlib_.h: Likewise.
53567         * lib/string_.h: Likewise.
53568         * lib/sys_select_.h: Likewise.
53569         * lib/sys_socket_.h: Likewise.
53570         * lib/sys_stat_.h: Likewise.
53571         * lib/sys_time_.h: Likewise.
53572         * lib/sysexits_.h: Likewise.
53573         * lib/time_.h: Likewise.
53574         * lib/unistd_.h: Likewise.
53575         * lib/wchar_.h: Likewise.
53576         * lib/wctype_.h: Likewise.
53577
53578 2007-05-29  Bruno Haible  <bruno@clisp.org>
53579
53580         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
53581         for the moment.
53582
53583 2007-05-29  Bruno Haible  <bruno@clisp.org>
53584
53585         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
53586         invocation.
53587         Reported by Eric Blake.
53588
53589 2007-05-29  Bruno Haible  <bruno@clisp.org>
53590
53591         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
53592         compiling case.
53593
53594 2007-05-29  Eric Blake  <ebb9@byu.net>
53595             Bruno Haible  <bruno@clisp.org>
53596
53597         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
53598         cross compiles.
53599
53600 2007-05-28  Eric Blake  <ebb9@byu.net>
53601
53602         * modules/closein-tests (test_closein_LDADD): Support test on
53603         cygwin with libtool.
53604
53605 2007-05-28  Bruno Haible  <bruno@clisp.org>
53606
53607         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
53608         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
53609         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
53610         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
53611         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
53612         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
53613         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
53614         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
53615         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
53616
53617 2007-05-28  Eric Blake  <ebb9@byu.net>
53618
53619         Unconditionally include <config.h> in unit tests.
53620         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
53621         * tests/test-allocsa.c, tests/test-arcfour.c,
53622         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
53623         tests/test-array_list.c, tests/test-array_oset.c,
53624         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
53625         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
53626         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
53627         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
53628         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
53629         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
53630         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
53631         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
53632         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
53633         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
53634         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
53635         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
53636         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
53637         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
53638         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
53639         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
53640         test-md5.c, test-memmem.c, test-printf-posix.c,
53641         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
53642         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
53643         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
53644         test-strcasestr.c, test-striconv.c, test-striconveh.c,
53645         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
53646         test-vasnprintf-posix2.c, test-vasnprintf.c,
53647         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
53648         test-vfprintf-posix.c, test-vprintf-posix.c,
53649         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
53650         test-xvasprintf.c: Likewise.
53651
53652 2007-05-28  Bruno Haible  <bruno@clisp.org>
53653
53654         * gnulib-tool (func_import): Remember the --with-tests command-line
53655         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
53656         Reported by Eric Blake.
53657
53658 2007-05-28  Bruno Haible  <bruno@clisp.org>
53659
53660         * modules/ftell-tests: New file.
53661         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
53662         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
53663
53664         * lib/ftell.c: New file.
53665         * modules/ftell: New file.
53666         * m4/ftell.m4: New file.
53667         * doc/functions/ftell.texi: Update.
53668         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
53669         REPLACE_FTELL.
53670         * lib/stdio_.h (rpl_ftell): New declaration.
53671         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
53672         REPLACE_FTELL.
53673
53674 2007-05-28  Eric Blake  <ebb9@byu.net>
53675
53676         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
53677
53678 2007-05-28  Bruno Haible  <bruno@clisp.org>
53679
53680         * modules/fseek-tests: New file.
53681         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
53682         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
53683
53684         * lib/fseek.c: New file.
53685         * modules/fseek: New file.
53686         * m4/fseek.m4: New file.
53687         * doc/functions/fseek.texi: Update.
53688         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
53689         REPLACE_FSEEK.
53690         * lib/stdio_.h (rpl_fseek): New declaration.
53691         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
53692         REPLACE_FSEEK.
53693
53694 2007-05-28  Bruno Haible  <bruno@clisp.org>
53695
53696         * lib/stdio_.h (fflush): More comments.
53697
53698 2007-05-28  Bruno Haible  <bruno@clisp.org>
53699
53700         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
53701         runtime test.
53702
53703 2007-05-28  Eric Blake  <ebb9@byu.net>
53704
53705         Improve lseek module.
53706         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
53707         * lib/unistd_.h (lseek): Scale back link warning message.
53708         * tests/test-lseek.c: Beef up test.
53709         * tests/test-lseek.sh: Exercise more facets of lseek.
53710         Reported by Bruno Haible.
53711
53712 2007-05-28  Bruno Haible  <bruno@clisp.org>
53713
53714         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
53715         to define.
53716
53717 2007-05-27  Bruno Haible  <bruno@clisp.org>
53718
53719         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
53720
53721 2007-05-27  Bruno Haible  <bruno@clisp.org>
53722
53723         * modules/openmp: New file.
53724         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
53725         Noah Misch.
53726
53727 2007-05-26  Bruno Haible  <bruno@clisp.org>
53728
53729         * modules/chdir-long (Depends-on): Add fchdir.
53730         * modules/chdir-safer (Depends-on): Likewise.
53731         * modules/fts (Depends-on): Likewise.
53732         * modules/fts-lgpl (Depends-on): Likewise.
53733         * modules/openat (Depends-on): Likewise.
53734         * modules/savewd (Depends-on): Likewise.
53735
53736 2007-05-24  Eric Blake  <ebb9@byu.net>
53737
53738         Fix lseek on mingw.
53739         * modules/lseek: New module.
53740         * m4/lseek.m4: New file.
53741         * lib/lseek.c: New file.
53742         * modules/lseek-tests: New file.
53743         * tests/test-lseek.c: New file.
53744         * tests/test-lseek.sh: New file.
53745         * MODULES.html.sh: Document lseek module.
53746         * modules/fflush (Depends-on): Add lseek, fseeko.
53747         * modules/fseeko (Depends-on): Likewise.
53748         * modules/ftello (Depends-on): Likewise.
53749         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
53750         broken.
53751         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
53752         broken.
53753         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
53754         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
53755         * lib/ftello.c (rpl_ftello): Likewise.
53756         * tests/test-fseeko.c (main): Test this.
53757         * tests/test-fseeko.sh: Likewise.
53758         * tests/test-ftello.c (main): Likewise.
53759         * tests/test-ftello.sh: Likewise.
53760         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
53761         implies replacing fseek.
53762         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
53763         HAVE_FTELLO.
53764         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
53765         * modules/unistd (Makefile.am): Likewise.
53766         * lib/unistd_.h (lseek): Declare a replacement.
53767         * doc/functions/lseek.texi (lseek): Document this fix.
53768         * doc/functions/fseek.texi (fseek): Likewise.
53769         * doc/functions/ftell.texi (ftell): Likewise.
53770
53771 2007-05-24  Bruno Haible  <bruno@clisp.org>
53772
53773         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
53774         in the printed representation of a NaN.
53775         * tests/test-vasprintf-posix.c (test_function): Likewise.
53776         * tests/test-snprintf-posix.h (test_function): Likewise.
53777         * tests/test-sprintf-posix.h (test_function): Likewise.
53778         Reported by Eric Blake.
53779
53780 2007-05-23  Eric Blake  <ebb9@byu.net>
53781
53782         Fix fseeko/ftello on cygwin 1.5.24.
53783         * doc/functions/fseeko.texi (fseeko): Document the fix.
53784         * doc/functions/ftello.texi (ftello): Document the fix.
53785         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
53786         * doc/functions/stdout.text (stdout): New file.
53787         * doc/functions/stderr.text (stderr): New file.
53788         * doc/gnulib.texi (Function Substitutes): Use new files.
53789         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
53790         prior to 1.7.0.
53791         * tests/test-ftello.c (main): Likewise for ftello.
53792         * tests/test-fseeko.sh: New file.
53793         * tests/test-ftello.sh: New file.
53794         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
53795         with seekable stdin.
53796         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
53797         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
53798         (gl_REPLACE_FSEEKO): New macro.
53799         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
53800         * modules/fseeko (Files): Distribute fseeko.c.
53801         * modules/ftello (Files): Distribute ftello.c.
53802         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
53803         mode.
53804         * lib/ftello.c (rpl_ftello): New file.
53805         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
53806         fseeko, ftello.
53807         (gl_STDIN_LARGE_OFFSET): New macro.
53808         * modules/stdio (Makefile.am): Perform the replacement.
53809         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
53810
53811 2007-05-23  Bruno Haible  <bruno@clisp.org>
53812
53813         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
53814         GNULIB_POSIXCHECK is defined.
53815
53816 2007-05-21  Bruno Haible  <bruno@clisp.org>
53817
53818         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
53819         Check also the output for NaN arguments. When cross-compiling, guess
53820         no on IRIX.
53821         * lib/vasnprintf.c: Update comments.
53822         * tests/test-vasnprintf-posix.c (strisnan): New function.
53823         (test_function): Use it.
53824         * tests/test-vasprintf-posix.c (strisnan): New function.
53825         (test_function): Use it.
53826         * tests/test-snprintf-posix.h (strisnan): New function.
53827         (test_function): Use it.
53828         * tests/test-sprintf-posix.h (strisnan): New function.
53829         (test_function): Use it.
53830         Reported by Eric Blake.
53831
53832 2007-05-20  Bruno Haible  <bruno@clisp.org>
53833
53834         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
53835         numbers that fails on BeOS.
53836         * doc/functions/frexpl.texi: Update.
53837
53838 2007-05-20  Jim Meyering  <jim@meyering.net>
53839
53840         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
53841         forced upon us by glibc-2.6.
53842
53843 2007-05-20  Bruno Haible  <bruno@clisp.org>
53844
53845         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
53846         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
53847         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
53848         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
53849         NEED_PRINTF_INFINITE.
53850         (is_infinitel): New function.
53851         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
53852         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
53853         gl_PREREQ_VASNPRINTF_INFINITE.
53854         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
53855         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53856         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
53857         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
53858         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
53859         gl_PREREQ_VASNPRINTF_INFINITE.
53860         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53861         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53862         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53863         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53864         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53865         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53866         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53867         * doc/functions/fprintf.texi: Update.
53868         * doc/functions/printf.texi: Update.
53869         * doc/functions/snprintf.texi: Update.
53870         * doc/functions/sprintf.texi: Update.
53871         * doc/functions/vfprintf.texi: Update.
53872         * doc/functions/vprintf.texi: Update.
53873         * doc/functions/vsnprintf.texi: Update.
53874         * doc/functions/vsprintf.texi: Update.
53875
53876 2007-05-20  Bruno Haible  <bruno@clisp.org>
53877
53878         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
53879         was not found in libc.
53880         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
53881
53882 2007-05-20  Bruno Haible  <bruno@clisp.org>
53883
53884         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
53885         printed as "-nan" instead of "nan".
53886         * tests/test-vasprintf-posix.c (test_function): Likewise.
53887         * tests/test-snprintf-posix.h (test_function): Likewise.
53888         * tests/test-sprintf-posix.h (test_function): Likewise.
53889         Needed for HP-UX 11.
53890
53891 2007-05-20  Jim Meyering  <jim@meyering.net>
53892
53893         Fix buggy test for the fchownat-deref bug.
53894         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
53895         symlink required for the run-test.  Without it, this test would
53896         always declare that fchownat doesn't work, and client code would
53897         unnecessarily use the replacement function with fixed libc.
53898         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
53899         Reported by Greg Schafer.
53900
53901 2007-05-19  Bruno Haible  <bruno@clisp.org>
53902
53903         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
53904         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
53905         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
53906         Needed for IRIX 6.5 and Solaris 2.5.1.
53907
53908 2007-05-19  Bruno Haible  <bruno@clisp.org>
53909
53910         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
53911         (test_function): Skip tests involving -0.0 on platforms where
53912         -0.0 = 0.0.
53913         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
53914         (test_function): Skip tests involving -0.0 on platforms where
53915         -0.0 = 0.0.
53916         * tests/test-snprintf-posix.h (have_minus_zero): New function.
53917         (test_function): Skip tests involving -0.0 on platforms where
53918         -0.0 = 0.0.
53919         * tests/test-sprintf-posix.h (have_minus_zero): New function.
53920         (test_function): Skip tests involving -0.0 on platforms where
53921         -0.0 = 0.0.
53922         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
53923         tests.
53924         * tests/test-printf-posix.h (test_function): Likewise.
53925         * tests/test-printf-posix.output: Remove all -0.0 related results.
53926         Needed for IRIX 6.5.
53927
53928 2007-05-19  Bruno Haible  <bruno@clisp.org>
53929
53930         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
53931         printed as "nan0x7fffffff" instead of "nan".
53932         * tests/test-vasprintf-posix.c (test_function): Likewise.
53933         * tests/test-snprintf-posix.h (test_function): Likewise.
53934         * tests/test-sprintf-posix.h (test_function): Likewise.
53935         * tests/test-fprintf-posix.h (NaN): Remove macro.
53936         (test_function): Remove all NaN related tests.
53937         * tests/test-printf-posix.h (NaN): Remove macro.
53938         (test_function): Remove all NaN related tests.
53939         * tests/test-printf-posix.output: Remove all NaN related results.
53940         Needed for IRIX 6.5.
53941
53942 2007-05-19  Bruno Haible  <bruno@clisp.org>
53943
53944         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
53945         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
53946
53947 2007-05-19  Bruno Haible  <bruno@clisp.org>
53948
53949         * lib/float_.h: New file.
53950         * m4/float_h.m4: New file.
53951         * modules/float: New file.
53952         * modules/isnanl (Dependencies): Add float.
53953         * modules/isnanl-nolibm (Dependencies): Likewise.
53954         * modules/mathl (Dependencies): Likewise.
53955         * modules/printf-frexpl (Dependencies): Likewise.
53956         * modules/signbit (Dependencies): Likewise.
53957         * modules/vasnprintf (Dependencies): Likewise.
53958         * doc/headers/float.texi: Update.
53959
53960 2007-05-19  Jim Meyering  <jim@meyering.net>
53961
53962         * lib/utimens.c (gl_futimens): Rename from futimens,
53963         now that glibc-2.6 declares futimens.
53964         * lib/utimens.h: Likewise.
53965
53966 2007-05-19  Bruno Haible  <bruno@clisp.org>
53967
53968         Avoid test failures on mingw.
53969         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
53970         * tests/test-printf-posix.sh: Likewise.
53971         * tests/test-vfprintf-posix.sh: Likewise.
53972         * tests/test-vprintf-posix.sh: Likewise.
53973
53974 2007-05-19  Bruno Haible  <bruno@clisp.org>
53975
53976         Fix *printf result for NaN, Inf, -0.0 on mingw.
53977         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
53978         * lib/vasnprintf.c: Include math.h and isnan.h.
53979         (is_infinite_or_zero): New function.
53980         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
53981         values in the %f, %F, %e, %E, %g, %G directives.
53982         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
53983         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53984         gl_PRINTF_INFINITE and test its result. Invoke
53985         gl_PREREQ_VASNPRINTF_INFINITE.
53986         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53987         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53988         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53989         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53990         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53991         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53992         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53993         * doc/functions/fprintf.texi: Update.
53994         * doc/functions/printf.texi: Update.
53995         * doc/functions/snprintf.texi: Update.
53996         * doc/functions/sprintf.texi: Update.
53997         * doc/functions/vfprintf.texi: Update.
53998         * doc/functions/vprintf.texi: Update.
53999         * doc/functions/vsnprintf.texi: Update.
54000         * doc/functions/vsprintf.texi: Update.
54001
54002 2007-05-19  Bruno Haible  <bruno@clisp.org>
54003
54004         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
54005         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
54006         Instead of multiplying with 10^k, set extra_zeroes to k.
54007         (scale10_round_long_double): Remove function.
54008
54009 2007-05-18  Bruno Haible  <bruno@clisp.org>
54010
54011         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
54012         introduced on 2007-05-06.
54013
54014 2007-05-18  Bruno Haible  <bruno@clisp.org>
54015
54016         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
54017         %g directives.
54018         * tests/test-vasprintf-posix.c (test_function): Likewise.
54019         * tests/test-snprintf-posix.h (test_function): Likewise.
54020         * tests/test-sprintf-posix.h (test_function): Likewise.
54021
54022 2007-05-18  Bruno Haible  <bruno@clisp.org>
54023
54024         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
54025         (strmatch): New function.
54026         (test_function): Test the %f directive on numbers of various exponents.
54027         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
54028         (strmatch): New function.
54029         (test_function): Test the %f directive on numbers of various exponents.
54030         * tests/test-snprintf-posix.h (strmatch): New function.
54031         (test_function): Test the %f directive on numbers of various exponents.
54032         * tests/test-sprintf-posix.h (strmatch): New function.
54033         (test_function): Test the %f directive on numbers of various exponents.
54034         * tests/test-snprintf-posix.c (SIZEOF): New macro.
54035         * tests/test-sprintf-posix.c (SIZEOF): New macro.
54036         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
54037         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
54038
54039 2007-05-18  Bruno Haible  <bruno@clisp.org>
54040
54041         Add support for 'long double' number output.
54042         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
54043         * lib/vasnprintf.c: Include math.h and float+.h.
54044         (mp_limb_t): New type.
54045         (GMP_LIMB_BITS): New macro.
54046         (mp_twolimb_t): New type.
54047         (GMP_TWOLIMB_BITS): New macro.
54048         (mpn_t): New type.
54049         (multiply, divide, convert_to_decimal, decode_long_double,
54050         scale10_round_long_double, scale10_round_decimal_long_double,
54051         floorlog10l): New functions.
54052         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
54053         for the %f, %F, %e, %E, %g, %G directives.
54054         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
54055         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54056         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
54057         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
54058         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54059         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54060         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54061         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54062         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54063         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54064         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54065         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
54066         * modules/snprintf-posix (Depends-on): Likewise.
54067         * modules/sprintf-posix (Depends-on): Likewise.
54068         * modules/vasnprintf-posix (Depends-on): Likewise.
54069         * modules/vasprintf-posix (Depends-on): Likewise.
54070         * modules/vfprintf-posix (Depends-on): Likewise.
54071         * modules/vsnprintf-posix (Depends-on): Likewise.
54072         * modules/vsprintf-posix (Depends-on): Likewise.
54073         * modules/vasnprintf (Files): Add lib/float+.h.
54074         * doc/functions/fprintf.texi: Update.
54075         * doc/functions/printf.texi: Update.
54076         * doc/functions/snprintf.texi: Update.
54077         * doc/functions/sprintf.texi: Update.
54078         * doc/functions/vfprintf.texi: Update.
54079         * doc/functions/vprintf.texi: Update.
54080         * doc/functions/vsnprintf.texi: Update.
54081         * doc/functions/vsprintf.texi: Update.
54082
54083 2007-05-18  Bruno Haible  <bruno@clisp.org>
54084
54085         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
54086
54087 2007-05-18  Bruno Haible  <bruno@clisp.org>
54088
54089         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
54090         for printing 64-bit integers. Needed for mingw.
54091
54092 2007-05-18  Bruno Haible  <bruno@clisp.org>
54093
54094         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
54095         gl_FUNC_FREXPL_WORKS.
54096         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
54097
54098 2007-05-18  Bruno Haible  <bruno@clisp.org>
54099
54100         * modules/frexpl-nolibm-tests: New file.
54101
54102         * modules/frexpl-nolibm: New file.
54103         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
54104
54105 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
54106
54107         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
54108         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
54109         GCC 4.2, which otherwise issues a lot of warnings.
54110         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
54111         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
54112         Likewise.
54113         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
54114         * modules/iconv_open (iconv.h): Likewise.
54115         * modules/locale (locale.h): Likewise.
54116         * modules/netinet_in (netinet/in.h): Likewise.
54117         * modules/sys_select (sys_select.h): Likewise.
54118         * modules/sys_socket (sys/socket.h): Likewise.
54119         * modules/sys_stat (sys/stat.h): Likewise.
54120         * modules/sysexits (sysexits.h): Likewise.
54121         * modules/unistd (unistd.h): Likewise.
54122
54123 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54124
54125         * modules/closein-tests (Makefile.am): Distribute
54126         `test-closein.sh'.
54127
54128 2007-05-17  Bruno Haible  <bruno@clisp.org>
54129
54130         * tests/test-printf-posix.output: Renamed from
54131         tests/test-fprintf-posix.out.
54132         * modules/fprintf-posix-tests: Update.
54133         * modules/printf-posix-tests: Update.
54134         * modules/vfprintf-posix-tests: Update.
54135         * modules/vprintf-posix-tests: Update.
54136         * tests/test-fprintf-posix.sh: Update.
54137         * tests/test-printf-posix.sh: Update.
54138         * tests/test-vfprintf-posix.sh: Update.
54139         * tests/test-vprintf-posix.sh: Update.
54140         Reported by Ralf Wildenhues.
54141
54142 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
54143
54144         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
54145         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
54146         GCC 4.2, which otherwise issues a lot of warnings.
54147         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
54148         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
54149         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
54150         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
54151         it should no longer be needed.
54152         * lib/string_.h: Likewise.
54153         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
54154         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
54155         * modules/inttypes (inttypes.h): Likewise.
54156         * modules/math (math.h): Likewise.
54157         * modules/search (search.h): Likewise.
54158         * modules/signal (signal.h): Likewise.
54159         * modules/stdint (stdint.h): Likewise.
54160         * modules/stdio (stdio.h): Likewise.
54161         * modules/stdlib (stdlib.h): Likewise.
54162         * modules/string (string.h): Likewise.
54163         * modules/sys_time (sys/time.h): Likewise.
54164         * modules/time (time.h): Likewise.
54165         * modules/wchar (wchar.h): Likewise.
54166         * modules/wctype (wtype.h): Likewise.
54167
54168 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
54169
54170         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
54171
54172 2007-05-13  Bruno Haible  <bruno@clisp.org>
54173
54174         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
54175         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
54176         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
54177         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
54178         (gl_PREREQ_STRTOK_R): Don't require it here.
54179
54180 2007-05-13  Bruno Haible  <bruno@clisp.org>
54181
54182         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
54183         when used in C++ mode.
54184
54185 2007-05-12  Bruno Haible  <bruno@clisp.org>
54186
54187         * lib/linebuffer.h: Tweak doc.
54188         * lib/linebuffer.c: Likewise.
54189
54190 2007-05-12  James Youngman  <jay@gnu.org>
54191
54192         * lib/linebuffer.c (readlinebuffer_delim): New function,
54193         like readlinebuffer, but use a caller-specified delimiter.
54194         (readlinebuffer): Just call readlinebuffer_delim with '\n'
54195         as the delimiter.
54196         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
54197
54198 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
54199
54200         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
54201         * modules/openat (Files): Remove openat-die.c.
54202         (Depends-on): Add openat-die.
54203         * modules/openat-die: New module.
54204
54205 2007-05-06  Bruno Haible  <bruno@clisp.org>
54206
54207         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
54208         Update with info about Cygwin.
54209         * doc/functions/fprintf.texi: Update.
54210         * doc/functions/printf.texi: Update.
54211         * doc/functions/snprintf.texi: Update.
54212         * doc/functions/sprintf.texi: Update.
54213         * doc/functions/vfprintf.texi: Update.
54214         * doc/functions/vprintf.texi: Update.
54215         * doc/functions/vsnprintf.texi: Update.
54216         * doc/functions/vsprintf.texi: Update.
54217         Reported by Eric Blake.
54218
54219 2007-05-06  Bruno Haible  <bruno@clisp.org>
54220
54221         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
54222         padding ourselves for the floating-point directives.
54223         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
54224         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
54225         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
54226         gl_PRINTF_FLAG_ZERO and test its result. Invoke
54227         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
54228         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54229         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
54230         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54231         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54232         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54233         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54234         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54235         * tests/test-snprintf-posix.h (test_function): Also check the width
54236         and some flags in the %f directive.
54237         * tests/test-sprintf-posix.h (test_function): Likewise.
54238         * tests/test-vasnprintf-posix.c (test_function): Likewise.
54239         * tests/test-vasprintf-posix.c (test_function): Likewise.
54240         * doc/functions/fprintf.texi: Update.
54241         * doc/functions/printf.texi: Update.
54242         * doc/functions/snprintf.texi: Update.
54243         * doc/functions/sprintf.texi: Update.
54244         * doc/functions/vfprintf.texi: Update.
54245         * doc/functions/vprintf.texi: Update.
54246         * doc/functions/vsnprintf.texi: Update.
54247         * doc/functions/vsprintf.texi: Update.
54248
54249 2007-05-06  Bruno Haible  <bruno@clisp.org>
54250
54251         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
54252         pass the ' flag character to sprintf or snprintf.
54253         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
54254         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
54255         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
54256         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
54257         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
54258         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54259         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
54260         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54261         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54262         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54263         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54264         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54265         * tests/test-snprintf-posix.h (test_function): Also check the grouping
54266         flag.
54267         * tests/test-sprintf-posix.h (test_function): Likewise.
54268         * tests/test-vasnprintf-posix.c (test_function): Likewise.
54269         * tests/test-vasprintf-posix.c (test_function): Likewise.
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
54279 2007-05-01  Bruno Haible  <bruno@clisp.org>
54280
54281         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
54282
54283 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
54284
54285         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
54286         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
54287
54288 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
54289
54290         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
54291         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
54292         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
54293
54294 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
54295
54296         * lib/argp-help.c (struct hol_entry): New member `ord'.
54297         (HOL_ENTRY_PTRCMP): Use ord for comparison
54298         (hol_sort): Initialize ord.
54299
54300 2007-05-01  Bruno Haible  <bruno@clisp.org>
54301
54302         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
54303         Reported by Eric Blake.
54304         * doc/gnulib.texi (Function Substitutes): Update.
54305
54306 2007-05-01  Bruno Haible  <bruno@clisp.org>
54307
54308         * doc/functions.texi: Remove file, now redundant through
54309         doc/functions/*.texi.
54310
54311 2007-05-01  Bruno Haible  <bruno@clisp.org>
54312
54313         * modules/argp (Depends-on): Add sleep.
54314
54315 2007-05-01  Bruno Haible  <bruno@clisp.org>
54316
54317         * modules/sleep-tests: New file.
54318         * tests/test-sleep.c: New file.
54319
54320         * modules/sleep: New file.
54321         * lib/sleep.c: New file.
54322         * m4/sleep.m4: New file.
54323         * lib/unistd_.h (sleep): New declaration.
54324         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
54325         HAVE_SLEEP.
54326         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
54327         * doc/functions/sleep.texi: Document the sleep module.
54328
54329 2007-05-01  Bruno Haible  <bruno@clisp.org>
54330
54331         * lib/sigprocmask.h: Remove file.
54332         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
54333         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
54334         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
54335         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
54336         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
54337         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
54338         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
54339         HAVE_SIGSET_T as a shell variable.
54340         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
54341         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
54342         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
54343         (Depends-on): Add signal. Remove verify.
54344         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
54345         (Include): Mention <signal.h> instead of sigprocmask.h.
54346         * NEWS: Mention the change.
54347         * lib/fatal-signal.c: Don't include sigprocmask.h.
54348
54349 2007-05-01  Bruno Haible  <bruno@clisp.org>
54350
54351         * modules/signal: New file.
54352         * lib/signal_.h: New file.
54353         * m4/signal_h.m4: New file.
54354
54355 2007-05-01  Bruno Haible  <bruno@clisp.org>
54356
54357         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
54358         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
54359         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
54360         HAVE_WCTYPE_CTMP_BUG into wctype.h.
54361
54362 2007-05-01  Bruno Haible  <bruno@clisp.org>
54363
54364         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
54365         configure time.
54366         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
54367         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
54368         * modules/sys_stat (Makefile.am): Substitute their values into
54369         sys/stat.h.
54370
54371 2007-05-01  Bruno Haible  <bruno@clisp.org>
54372
54373         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
54374         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
54375         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
54376
54377 2007-05-01  Bruno Haible  <bruno@clisp.org>
54378
54379         * doc/header/assert.texi: Undo last change: don't mention the gnulib
54380         'assert' module here.
54381
54382 2007-05-01  Bruno Haible  <bruno@clisp.org>
54383
54384         * doc/functions/*.texi: New files.
54385         * doc/functions/google-ranking.txt: New file.
54386         * doc/gnulib.texi (Function Substitutes): New chapter.
54387         (ctime, inet_ntoa): Remove sections.
54388         * doc/ctime.texi: Remove file.
54389         * doc/inet_ntoa.texi: Remove file.
54390         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
54391         dependencies.
54392         (%.info): New rule, specifying a --reference-limit.
54393
54394 2007-05-01  Bruno Haible  <bruno@clisp.org>
54395
54396         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
54397
54398 2007-05-01  Bruno Haible  <bruno@clisp.org>
54399
54400         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
54401         the portability of 'mkdir' to mingw systems.
54402
54403 2007-05-01  Bruno Haible  <bruno@clisp.org>
54404
54405         * doc/headers/google-ranking.txt: New file.
54406
54407 2007-04-30  Eric Blake  <ebb9@byu.net>
54408
54409         Prefer fseeko to fseek.
54410         * modules/getpass (Depends-on): Add fseeko.
54411         * lib/getpass.c (getpass): Use fseeko, not fseek.
54412
54413 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
54414
54415         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
54416         assumes the sorting is stable, while most qsort implementations
54417         are not.  Use argument addresses to ensure they never compare as
54418         equal.
54419
54420         * tests/test-argp-2.sh (usage-indent test): Fix output
54421         (func_compare): Restore diff options
54422         * tests/test-argp.c: Restore #include "progname.h"
54423
54424 2007-04-29  Bruno Haible  <bruno@clisp.org>
54425
54426         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
54427         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
54428         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
54429         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54430         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
54431         (configure.ac): Define CHECK_SNPRINTF_POSIX.
54432         (TESTS, check_PROGRAMS): Add test-snprintf.
54433         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
54434         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
54435         (TESTS, check_PROGRAMS): Add test-vsnprintf.
54436         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
54437         assertions that fail on HP-UX, OSF/1, or IRIX.
54438         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
54439
54440 2007-04-29  Bruno Haible  <bruno@clisp.org>
54441
54442         * MODULES.html.sh (posix_functions): Remove 'contents'.
54443
54444 2007-04-29  Karl Berry  <karl@gnu.org>
54445
54446         * config/srclist.txt (gendocs_template_min): new entry.
54447
54448 2007-04-29  Bruno Haible  <bruno@clisp.org>
54449
54450         Work around fpurge bug on BSD systems.
54451         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
54452         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
54453         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
54454         fpurge to rpl_fpurge if the system already has this function.
54455         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
54456         the case where the system already has this function. Correct invariants
54457         on BSD systems.
54458         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
54459         BSD systems.
54460
54461 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
54462
54463         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
54464         proposed by Sven Verdoolaege.
54465
54466         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
54467         options.
54468         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
54469         (usage and help tests): Update
54470
54471 2007-04-29  Bruno Haible  <bruno@clisp.org>
54472
54473         * tests/test-fflush.c (main): Use a file of size 17, not 10.
54474         Print more information in case of failure. Disable a test on BeOS.
54475
54476 2007-04-29  Bruno Haible  <bruno@clisp.org>
54477
54478         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
54479         This helps debugging on systems on which no gdb is available.
54480
54481 2007-04-29  Bruno Haible  <bruno@clisp.org>
54482
54483         * lib/freading.h: Improve comments.
54484         * lib/fwriting.h: Likewise.
54485         * tests/test-freading.c (main): Don't check freading immediately after
54486         repositioning. Needed for glibc.
54487
54488 2007-04-29  Bruno Haible  <bruno@clisp.org>
54489
54490         * lib/freading.c (freading): Trivial simplification.
54491
54492 2007-04-28  Bruno Haible  <bruno@clisp.org>
54493
54494         * tests/test-fwriting.c (main): Also test the interaction between
54495         fflush and fwriting.
54496         * modules/fwriting-tests (Depends-on): Add fflush.
54497
54498         * tests/test-freading.c (main): Also test the interaction between
54499         fflush and freading.
54500         * modules/freading-tests (Depends-on): Add fflush.
54501
54502 2007-04-28  Bruno Haible  <bruno@clisp.org>
54503
54504         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
54505         fseeko and ftello.
54506         Suggested by Eric Blake.
54507
54508 2007-04-28  Jim Meyering  <jim@meyering.net>
54509
54510         Avoid false-negative in gl_STDINT_H's C99 conformance test.
54511         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
54512         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
54513
54514 2007-04-27  Eric Blake  <ebb9@byu.net>
54515
54516         * doc/headers/assert.texi (assert.h): Document assert module use.
54517
54518 2007-04-27  Bruno Haible  <bruno@clisp.org>
54519
54520         * doc/headers/*.texi: New files.
54521         * doc/gnulib.texi (Header File Substitutes): New chapter.
54522         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
54523         dependencies.
54524         (standards.info ,standards.html, standards.dvi): Update dependencies.
54525         (mostlyclean, clean): New targets.
54526
54527 2007-04-27  Bruno Haible  <bruno@clisp.org>
54528
54529         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
54530         * modules/sysexits (Files, Makefile.am): Update.
54531
54532         * lib/sys_socket_.h: Renamed from lib/socket_.h.
54533         * modules/sys_socket (Files, Makefile.am): Update.
54534
54535         * lib/sys_stat_.h: Renamed from lib/stat_.h.
54536         * modules/sys_stat (Files, Makefile.am): Update.
54537
54538 2007-04-27  Eric Blake  <ebb9@byu.net>
54539
54540         * lib/freading.h: Improve comments.
54541         * lib/fwriting.h: Likewise.
54542         * lib/fflush.c: Likewise.
54543
54544         Fix closein for mingw.
54545         * modules/closein-tests: Add tests for closein.
54546         * tests/test-closein.c: New file.
54547         * tests/test-closein.sh: Likewise.
54548         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
54549         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
54550
54551 2007-04-27  Bruno Haible  <bruno@clisp.org>
54552
54553         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
54554         version is < 6.
54555         * lib/math_.h [__DECC]: Likewise.
54556         * lib/stdio_.h [__DECC]: Likewise.
54557         * lib/stdlib_.h [__DECC]: Likewise.
54558         * lib/string_.h [__DECC]: Likewise.
54559         * lib/time_.h [__DECC]: Likewise.
54560         * lib/wchar_.h [__DECC]: Likewise.
54561         * lib/wctype_.h [__DECC]: Likewise.
54562
54563 2007-04-27  Bruno Haible  <bruno@clisp.org>
54564
54565         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
54566
54567 2007-04-27  Bruno Haible  <bruno@clisp.org>
54568
54569         * lib/fflush.c: Add comments.
54570         * modules/fpurge-tests (Depends-on): Add fflush.
54571         * modules/freadable-tests (Depends-on): Likewise.
54572         * modules/fwritable-tests (Depends-on): Likewise.
54573
54574 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
54575
54576         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
54577         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
54578         Report by Bruno Haible <bruno@clisp.org>.
54579
54580 2007-04-26  Eric Blake  <ebb9@byu.net>
54581
54582         Fix fflush on mingw.
54583         * modules/fflush (Depends-on): Add freading.
54584         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
54585         but unread data.
54586
54587 2007-04-26  Eric Blake  <ebb9@byu.net>
54588         and Bruno Haible  <bruno@clisp.org>
54589
54590         Implement freading and fwriting.
54591         * lib/freading.c: New file.
54592         * lib/freading.h: Likewise.
54593         * m4/freading.m4: Likewise.
54594         * modules/freading: Likewise.
54595         * modules/freading-tests: Likewise.
54596         * tests/test-freading.c: Likewise.
54597         * lib/fwriting.c: New file.
54598         * lib/fwriting.h: Likewise.
54599         * m4/fwriting.m4: Likewise.
54600         * modules/fwriting: Likewise.
54601         * modules/fwriting-tests: Likewise.
54602         * tests/test-fwriting.c: Likewise.
54603         * MODULES.html.sh (File stream based Input/Output): Mention them.
54604
54605 2007-04-26  Bruno Haible  <bruno@clisp.org>
54606
54607         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
54608         'long' when we assume it.
54609         Suggested by Eric Blake.
54610
54611 2007-04-26  Bruno Haible  <bruno@clisp.org>
54612
54613         Ensure fseeko, ftello are declared on glibc systems.
54614         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
54615         * modules/fseeko (configure.ac-early): Likewise.
54616         * modules/ftello (configure.ac-early): Likewise.
54617         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
54618         AC_FUNC_FSEEKO for this.
54619         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
54620         (gl_CHECK_FSEEKO): Remove macro.
54621
54622 2007-04-26  Bruno Haible  <bruno@clisp.org>
54623
54624         * tests/test-fflush.c (main): Also check the ftell result after
54625         fflush and fseek/fseeko.
54626         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
54627         file descriptor position cache in the stream.
54628         * lib/fseeko.c (rpl_fseeko): Likewise.
54629
54630 2007-04-26  Bruno Haible  <bruno@clisp.org>
54631
54632         * modules/fflush-tests (Depends-on): Add fseeko.
54633
54634 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
54635             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54636
54637         * lib/argz_.h: ensure error_t definition is obtained in same
54638         mechanism system argz.h would have.
54639         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
54640         argz facilities are known bad.  Err on the side of caution if
54641         cross-compiling.
54642
54643 2007-04-25  Eric Blake  <ebb9@byu.net>
54644
54645         * lib/fpurge.c (includes): Use stdlib.h for free.
54646         * tests/test-fflush.c (main): Also test fflush-fseeko.
54647
54648 2007-04-25  Bruno Haible  <bruno@clisp.org>
54649
54650         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
54651         * lib/fseeko.c: New file.
54652         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
54653         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
54654         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
54655         gl_FUNC_FSEEKO.
54656         (gl_FUNC_FSEEKO): Invoke it.
54657         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
54658         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
54659         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
54660
54661 2007-04-25  Bruno Haible  <bruno@clisp.org>
54662
54663         * modules/fflush (Depends-on): Add ftello.
54664
54665 2007-04-25  Bruno Haible  <bruno@clisp.org>
54666
54667         * modules/ftello-tests: New file.
54668         * tests/test-ftello.c: New file.
54669
54670         * modules/ftello: New file.
54671         * m4/ftello.m4: New file.
54672         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
54673         HAVE_FTELLO.
54674         * lib/stdio_.h (ftello): New declaration.
54675         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
54676         HAVE_FTELLO.
54677
54678 2007-04-25  Bruno Haible  <bruno@clisp.org>
54679
54680         * modules/fseeko-tests: New file.
54681         * tests/test-fseeko.c: New file.
54682
54683         * modules/fseeko: New file.
54684         * m4/fseeko.m4: New file.
54685         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
54686         HAVE_FSEEKO.
54687         * lib/stdio_.h (fseeko): New declaration.
54688         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
54689         HAVE_FSEEKO.
54690
54691 2007-04-25  Bruno Haible  <bruno@clisp.org>
54692
54693         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
54694
54695 2007-04-25  Bruno Haible  <bruno@clisp.org>
54696
54697         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
54698         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
54699         * tests/test-unistd.c: Likewise.
54700         * tests/test-fcntl.c: Likewise.
54701
54702 2007-04-23  Eric Blake  <ebb9@byu.net>
54703
54704         * lib/fflush.c: Fix missing include.
54705         Reported by Bruno Haible.
54706
54707 2007-04-23  Bruno Haible  <bruno@clisp.org>
54708
54709         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
54710         Reported by Eric Blake.
54711
54712 2007-04-23  Bruno Haible  <bruno@clisp.org>
54713
54714         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
54715
54716 2007-04-23  Bruno Haible  <bruno@clisp.org>
54717
54718         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
54719
54720 2007-04-23  Bruno Haible  <bruno@clisp.org>
54721
54722         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
54723         Needed on HP-UX 11.
54724
54725 2007-04-16  Eric Blake  <ebb9@byu.net>
54726
54727         Make fflush rely on fpurge.
54728         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
54729         open coding all variants.
54730         * modules/fflush (Depends-on): Add fpurge and unistd.
54731         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
54732         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
54733
54734         Fix --with-tests compilation on cygwin.
54735         * modules/argmatch-tests (Makefile.am): List gnulib library first
54736         in LDADD.
54737         * modules/argp-tests (Makefile.am): Likewise.
54738         * modules/array-list-tests (Makefile.am): Likewise.
54739         * modules/array-oset-tests (Makefile.am): Likewise.
54740         * modules/avltree-list-tests (Makefile.am): Likewise.
54741         * modules/avltree-oset-tests (Makefile.am): Likewise.
54742         * modules/avltreehash-list-tests (Makefile.am): Likewise.
54743         * modules/carray-list-tests (Makefile.am): Likewise.
54744         * modules/dirname-tests (Makefile.am): Likewise.
54745         * modules/frexp-tests (Makefile.am): Likewise.
54746         * modules/isnanl-tests (Makefile.am): Likewise.
54747         * modules/linked-list-tests (Makefile.am): Likewise.
54748         * modules/linkedhash-list-tests (Makefile.am): Likewise.
54749         * modules/lock-tests (Makefile.am): Likewise.
54750         * modules/rbtree-list-tests (Makefile.am): Likewise.
54751         * modules/rbtree-oset-tests (Makefile.am): Likewise.
54752         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
54753         * modules/tls-tests (Makefile.am): Likewise.
54754         * modules/tsearch-tests (Makefile.am): Likewise.
54755         * modules/xvasprintf-tests (Makefile.am): Likewise.
54756
54757         Fix fpurge for cygwin.
54758         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
54759         value.
54760         * modules/fpurge-tests (Depends-on): Clean up trash.
54761
54762 2007-04-16  Simon Josefsson  <simon@josefsson.org>
54763
54764         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
54765
54766         * m4/autobuild.m4: Re-indent.
54767
54768 2007-04-13  Bruno Haible  <bruno@clisp.org>
54769
54770         * modules/fpurge-tests: New file.
54771         * tests/test-fpurge.c: New file.
54772
54773         * modules/fpurge: New file.
54774         * lib/fpurge.h: New file.
54775         * lib/fpurge.c: New file.
54776         * m4/fpurge.m4: New file.
54777
54778 2007-04-13  Bruno Haible  <bruno@clisp.org>
54779
54780         * modules/fbufmode-tests: New file.
54781         * tests/test-fbufmode.c: New file.
54782
54783         * modules/fbufmode: New file.
54784         * lib/fbufmode.h: New file.
54785         * lib/fbufmode.c: New file.
54786         * m4/fbufmode.m4: New file.
54787
54788 2007-04-13  Bruno Haible  <bruno@clisp.org>
54789
54790         * modules/fwritable-tests: New file.
54791         * tests/test-fwritable.c: New file.
54792
54793         * modules/fwritable: New file.
54794         * lib/fwritable.h: New file.
54795         * lib/fwritable.c: New file.
54796         * m4/fwritable.m4: New file.
54797
54798 2007-04-13  Bruno Haible  <bruno@clisp.org>
54799
54800         * modules/freadable-tests: New file.
54801         * tests/test-freadable.c: New file.
54802
54803         * modules/freadable: New file.
54804         * lib/freadable.h: New file.
54805         * lib/freadable.c: New file.
54806         * m4/freadable.m4: New file.
54807
54808 2007-04-13  Bruno Haible  <bruno@clisp.org>
54809
54810         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
54811         MOSTLYCLEANFILES.
54812
54813 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
54814
54815         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
54816         gzip bootstrap.conf to avoid dragging in i18n machinery.
54817         (gnulib_tool_option): Use it.
54818
54819 2007-04-13  Bruno Haible  <bruno@clisp.org>
54820
54821         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
54822         %F directives.
54823         * tests/test-vasprintf-posix.c (test_function): Likewise.
54824         * tests/test-snprintf-posix.h (test_function): Likewise.
54825         * tests/test-sprintf-posix.h (test_function): Likewise.
54826         * tests/test-fprintf-posix.h (test_function): Likewise.
54827         * tests/test-printf-posix.h (test_function): Likewise.
54828         * tests/test-fprintf-posix.out: Likewise.
54829
54830 2007-04-13  Bruno Haible  <bruno@clisp.org>
54831
54832         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
54833         * modules/tls-tests (configure.ac): Likewise.
54834         Reported by Arto C. Nirkko <anirkko@insel.ch>.
54835
54836 2007-04-13  Bruno Haible  <bruno@clisp.org>
54837
54838         * lib/tls.c (glthread_tls_get): Fix return type.
54839         Patch by Arto C. Nirkko <anirkko@insel.ch>.
54840
54841 2007-04-12  Eric Blake  <ebb9@byu.net>
54842
54843         * modules/gettime (Depends-on): Remove gettime.
54844         Reported by Dmitry V. Levin.
54845
54846 2007-04-12  Bruno Haible  <bruno@clisp.org>
54847
54848         * modules/fflush (Include): Mention <stdio.h>.
54849         * modules/strtoimax (Include): Mention <inttypes.h>.
54850         * modules/strtoumax (Include): Likewise.
54851
54852 2007-04-12  Eric Blake  <ebb9@byu.net>
54853
54854         * .cvsignore: New file.
54855         * .gitignore: Likewise.
54856
54857 2007-04-12  Bruno Haible  <bruno@clisp.org>
54858
54859         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
54860         not before, since $(LDADD) often contains libgnu.a.
54861         * modules/striconv-tests (test_striconv_LDADD): Likewise.
54862         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
54863         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
54864         Needed on Cygwin.
54865
54866 2007-04-12  Eric Blake  <ebb9@byu.net>
54867
54868         Work around glibc's failure to flush stdin on fclose.
54869         * lib/closein.c (close_stdin): Flush stdin before closing.
54870
54871         Work around glibc's failure to reset seekable stdin on exit.
54872         * modules/closein: New module.
54873         * lib/closein.c: New file.
54874         * lib/closein.h: Likewise.
54875         * m4/closein.m4: Likewise.
54876         * MODULES.html.sh (File stream based Input/Output): Document it.
54877
54878 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54879
54880         * gnulib-tool: Rename generated 'autobuild' script to
54881         'do-autobuild' in --create-megatestdir output.
54882
54883         * doc/gnulib.texi (Build robot for gnulib): Fix.
54884
54885 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54886
54887         * modules/sysexits (Depends-on): Add absolute-header.
54888
54889 2007-04-12  Eric Blake  <ebb9@byu.net>
54890
54891         No need to preserve errno on success.
54892         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
54893         Reported by Bruno Haible.
54894
54895 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54896
54897         * MODULES.html.sh (Support for maintaining and releasing
54898         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
54899
54900 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54901
54902         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
54903
54904 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54905
54906         * modules/autobuild: New module.
54907
54908         * m4/autobuild.m4: New file.
54909
54910 2007-04-11  Bruno Haible  <bruno@clisp.org>
54911
54912         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
54913         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
54914         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
54915         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
54916         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54917         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54918         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54919         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
54920         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54921         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54922         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
54923         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54924         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54925         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
54926         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54927         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54928         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
54929         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54930         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54931         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
54932         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54933         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54934         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
54935         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54936         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54937         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
54938         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54939         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54940         Reported by Eric Blake.
54941
54942 2007-04-11  Bruno Haible  <bruno@clisp.org>
54943
54944         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
54945
54946 2007-04-10  Bruno Haible  <bruno@clisp.org>
54947
54948         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
54949         for NaN and Infinity. Needed on FreeBSD 6.1.
54950         * tests/test-vasnprintf-posix.c (test_function): Undo last change
54951         regarding results for "%010a" of Infinity and NaN.
54952         * tests/test-vasprintf-posix.c (test_function): Likewise.
54953         * tests/test-snprintf-posix.h (test_function): Likewise.
54954         * tests/test-sprintf-posix.h (test_function): Likewise.
54955         * tests/test-fprintf-posix.h (test_function): Likewise.
54956         * tests/test-printf-posix.h (test_function): Likewise.
54957         * tests/test-fprintf-posix.out: Likewise.
54958
54959 2007-04-10  Bruno Haible  <bruno@clisp.org>
54960
54961         * modules/locale-tests: New file.
54962         * tests/test-locale.c: New file.
54963
54964         * modules/locale: New file.
54965         * lib/locale_.h: New file.
54966         * m4/locale_h.m4: New file.
54967
54968 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
54969             Bruno Haible  <bruno@clisp.org>
54970
54971         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
54972         be determined, test for availability of the copysignf, copysign,
54973         copysignl functions.
54974         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
54975         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
54976         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
54977
54978 2007-04-09  Eric Blake  <ebb9@byu.net>
54979
54980         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
54981         * modules/stdio (Makefile.am): Support fflush.
54982         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
54983         * modules/fflush: New file.
54984         * lib/fflush.c: Likewise.
54985         * m4/fflush.m4: Likewise.
54986         * modules/fflush-tests: New test.
54987         * tests/test-fflush.c: Likewise.
54988         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
54989
54990 2007-04-06  Bruno Haible  <bruno@clisp.org>
54991
54992         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
54993         (VASNPRINTF): Use signbit for faster determination whether to print a
54994         minus sign.
54995         * modules/vasnprintf (Files): Remove lib/float+.h.
54996         * modules/fprintf-posix (Depends-on): Add signbit.
54997         * modules/snprintf-posix (Depends-on): Likewise.
54998         * modules/sprintf-posix (Depends-on): Likewise.
54999         * modules/vasnprintf-posix (Depends-on): Likewise.
55000         * modules/vasprintf-posix (Depends-on): Likewise.
55001         * modules/vfprintf-posix (Depends-on): Likewise.
55002         * modules/vsnprintf-posix (Depends-on): Likewise.
55003         * modules/vsprintf-posix (Depends-on): Likewise.
55004
55005 2007-04-06  Bruno Haible  <bruno@clisp.org>
55006
55007         * tests/test-frexp.c (main): Test also the sign bit of zero results.
55008         * tests/test-frexpl.c (main): Likewise.
55009         * tests/test-ldexpl.c (main): Likewise.
55010         * modules/frexp-tests (Depends-on): Add signbit.
55011         * modules/frexpl-tests (Depdends-on): Likewise.
55012         * modules/ldexpl-tests (Depdends-on): Likewise.
55013
55014 2007-04-06  Bruno Haible  <bruno@clisp.org>
55015
55016         * modules/signbit-tests: New file.
55017         * tests/test-signbit.c: New file.
55018
55019         * modules/signbit: New file.
55020         * lib/signbitf.c: New file.
55021         * lib/signbitd.c: New file.
55022         * lib/signbitl.c: New file.
55023         * m4/signbit.m4: New file.
55024         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
55025         (signbit): New macro.
55026         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
55027         REPLACE_SIGNBIT.
55028         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
55029         REPLACE_FREXPL into math.h.
55030
55031 2007-04-06  Bruno Haible  <bruno@clisp.org>
55032
55033         * modules/isnanf-nolibm-tests: New file.
55034         * tests/test-isnanf.c: New file.
55035
55036         * modules/isnanf-nolibm: New file.
55037         * lib/isnanf.h: New file.
55038         * lib/isnanf.c: New file.
55039         * lib/isnan.c: Consider the USE_FLOAT macro.
55040         * m4/isnanf.m4: New file.
55041
55042 2007-04-06  Bruno Haible  <bruno@clisp.org>
55043
55044         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
55045         (Link): New section.
55046
55047         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
55048
55049 2007-04-06  Bruno Haible  <bruno@clisp.org>
55050
55051         Assume the 'long double' type.
55052         * m4/longdouble.m4: Remove file.
55053         * config/srclist.txt: Don't mention longdouble.m4.
55054         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
55055         * lib/float+.h: Likewise.
55056         * lib/frexp.c: Likewise.
55057         * lib/printf-args.h: Likewise.
55058         * lib/printf-args.c: Likewise.
55059         * lib/printf-frexp.c: Likewise.
55060         * lib/printf-parse.c: Likewise.
55061         * lib/vasnprintf.c: Likewise.
55062         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
55063         * m4/intl.m4: Likewise.
55064         * m4/isnanl.m4: Likewise.
55065         * m4/printf.m4: Likewise.
55066         * m4/printf-frexpl.m4: Likewise.
55067         * m4/vasnprintf.m4: Likewise.
55068         * modules/allocsa (Files): Remove m4/longdouble.m4.
55069         * modules/gettext (Files): Likewise.
55070         * modules/relocatable-prog-wrapper (Files): Likewise.
55071         * modules/vasnprintf (Files): Likewise.
55072         * modules/isnanl (Files): Likewise.
55073         (Include): Simplify.
55074         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
55075         (Include): Simplify.
55076         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
55077         (Include): Simplify.
55078         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
55079         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
55080         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
55081         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
55082         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
55083         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
55084         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
55085         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
55086         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
55087         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
55088         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
55089         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
55090         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
55091         * tests/test-isnanl.c: Likewise.
55092         * tests/test-snprintf-posix.h: Likewise.
55093         * tests/test-sprintf-posix.h: Likewise.
55094         * tests/test-vasnprintf-posix.c: Likewise.
55095         * tests/test-vasnprintf-posix2.c: Likewise.
55096         * tests/test-vasprintf-posix.c: Likewise.
55097
55098 2007-04-06  Bruno Haible  <bruno@clisp.org>
55099
55100         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
55101         * lib/math_.h [__DECC]: Include the overridden include file through
55102         #include_next, outside the double-inclusion guard.
55103         * lib/stdio_.h [__DECC]: Likewise.
55104         * lib/stdlib_.h [__DECC]: Likewise.
55105         * lib/string_.h [__DECC]: Likewise.
55106         * lib/time_.h [__DECC]: Likewise.
55107         * lib/wchar_.h [__DECC]: Likewise.
55108         * lib/wctype_.h [__DECC]: Likewise.
55109         * lib/inttypes_.h [__DECC]: Likewise.
55110         Reported by Albert Chin <china@thewrittenword.com> in
55111         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
55112
55113 2007-04-04  Eric Blake  <ebb9@byu.net>
55114
55115         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
55116         1.5.x.
55117
55118 2007-04-04  Bruno Haible  <bruno@clisp.org>
55119
55120         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
55121         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
55122
55123 2007-04-04  Bruno Haible  <bruno@clisp.org>
55124
55125         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
55126         results for "%010a" of Infinity and NaN.
55127         * tests/test-vasprintf-posix.c (test_function): Likewise.
55128         * tests/test-snprintf-posix.h (test_function): Likewise.
55129         * tests/test-sprintf-posix.h (test_function): Likewise.
55130         * tests/test-fprintf-posix.h (test_function): Remove these tests.
55131         * tests/test-printf-posix.h (test_function): Likewise.
55132         * tests/test-fprintf-posix.out: Update.
55133         Needed for FreeBSD 6.1.
55134
55135 2007-04-04  Bruno Haible  <bruno@clisp.org>
55136
55137         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
55138         directly used by the gnulib modules nor by gnulib-tool.
55139
55140 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
55141
55142         * DEPENDENCIES: Give overall description of version dependency
55143         desirability.  Use more-typical names for apps.
55144         Add shell, coreutils, diffutils, grep, tar, gzip.
55145
55146 2007-04-04  Simon Josefsson  <simon@josefsson.org>
55147
55148         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
55149
55150 2007-04-04  Karl Berry  <karl@gnu.org>
55151
55152         * MODULES.html.sh (func_module): missing '.
55153
55154 2007-04-03  Bruno Haible  <bruno@clisp.org>
55155
55156         * modules/argmatch-tests (Makefile.am): New variable
55157         test_argmatch_LDADD.
55158         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
55159         * modules/array-list-tests (Makefile.am): New variable
55160         test_array_list_LDADD.
55161         * modules/array-oset-tests (Makefile.am): New variable
55162         test_array_oset_LDADD.
55163         * modules/avltree-list-tests (Makefile.am): New variable
55164         test_avltree_list_LDADD.
55165         * modules/avltree-oset-tests (Makefile.am): New variable
55166         test_avltree_oset_LDADD.
55167         * modules/avltreehash-list-tests (Makefile.am): New variable
55168         test_avltreehash_list_LDADD.
55169         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
55170         test_canonicalize_lgpl_LDADD.
55171         * modules/carray-list-tests (Makefile.am): New variable
55172         test_carray_list_LDADD.
55173         * modules/dirname-tests (Makefile.am): New variable
55174         test_dirname_LDADD.
55175         * modules/linked-list-tests (Makefile.am): New variable
55176         test_linked_list_LDADD.
55177         * modules/linkedhash-list-tests (Makefile.am): New variable
55178         test_linkedhash_list_LDADD.
55179         * modules/rbtree-list-tests (Makefile.am): New variable
55180         test_rbtree_list_LDADD.
55181         * modules/rbtree-oset-tests (Makefile.am): New variable
55182         test_rbtree_oset_LDADD.
55183         * modules/rbtreehash-list-tests (Makefile.am): New variable
55184         test_rbtreehash_list_LDADD.
55185         * modules/xvasprintf-tests (Makefile.am): New variable
55186         test_xvasprintf_LDADD.
55187         Reported by Eric Blake.
55188
55189 2007-04-03  Eric Blake  <ebb9@byu.net>
55190
55191         * DEPENDENCIES: Weaken m4 requirements.
55192
55193 2007-04-03  Bruno Haible  <bruno@clisp.org>
55194
55195         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
55196         * modules/isnanl-tests (configure.ac): Likewise.
55197
55198 2007-04-03  Ben Pfaff  <blp@gnu.org>
55199
55200         * modules/iconv_open: Add $(srcdir)/ to source directory
55201         references in Makefile fragments that call gperf, to fix VPATH
55202         builds.
55203
55204 2007-04-03  Bruno Haible  <bruno@clisp.org>
55205
55206         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
55207         * lib/ldexpl.c: Undo last change.
55208
55209 2007-04-03  Bruno Haible  <bruno@clisp.org>
55210
55211         * modules/printf-frexpl (Depends-on): Undo last change.
55212         (Files): Add m4/ldexpl.m4.
55213
55214 2007-04-03  Bruno Haible  <bruno@clisp.org>
55215
55216         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
55217         * modules/isnanl (Link): New section.
55218
55219         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
55220         * modules/frexp (Link): New section.
55221
55222         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
55223         * modules/frexpl (Link): New section.
55224
55225         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
55226         * modules/ldexpl (Link): New section.
55227
55228 2007-04-03  Bruno Haible  <bruno@clisp.org>
55229
55230         * modules/TEMPLATE-EXTENDED: New file.
55231         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
55232
55233 2007-04-03  Bruno Haible  <bruno@clisp.org>
55234
55235         * DEPENDENCIES: New file.
55236         Suggested by Simon Josefsson.
55237
55238 2007-04-03  Bruno Haible  <bruno@clisp.org>
55239
55240         * doc/gnulib.texi: Escape @.
55241
55242 2007-04-03  James Youngman  <jay@gnu.org>
55243         and Paul Eggert  <eggert@cs.ucla.edu>
55244
55245         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
55246         birthtime on all systems that have birthtime, not just those which
55247         use st_birthtimensec rather than st_birthtim.  Putting zero in
55248         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
55249         that the birth time is not available for files on an NFS mount.
55250
55251 2007-04-03  Simon Josefsson  <simon@josefsson.org>
55252
55253         * modules/memxor: Move back from crypto/, suggested by Bruno.
55254         * modules/crypto/hmac-sha1: Fix memxor dependency.
55255
55256         * modules/crypto/gc: Moved from ../.
55257
55258 2007-04-02  Eric Blake  <ebb9@byu.net>
55259
55260         * lib/ldexpl.c (includes): Avoid libm.
55261
55262         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
55263
55264 2007-04-02  Bruno Haible  <bruno@clisp.org>
55265
55266         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
55267         on IRIX.
55268
55269 2007-04-02  Bruno Haible  <bruno@clisp.org>
55270
55271         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
55272         x86 or x86_64 platforms running MacOS X.
55273         Reported by Ryan Schmidt <@ryandesign.com>.
55274
55275 2007-04-02  Bruno Haible  <bruno@clisp.org>
55276
55277         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
55278         i386.
55279
55280 2007-04-01  Simon Josefsson  <simon@josefsson.org>
55281
55282         * modules/crypto/arcfour: Moved from ../.
55283         * modules/crypto/arcfour-tests: Moved from ../.
55284         * modules/crypto/arctwo: Moved from ../.
55285         * modules/crypto/arctwo-tests: Moved from ../.
55286         * modules/crypto/des: Moved from ../.
55287         * modules/crypto/des-tests: Moved from ../.
55288         * modules/crypto/gc-arcfour: Moved from ../.
55289         * modules/crypto/gc-arcfour-tests: Moved from ../.
55290         * modules/crypto/gc-arctwo: Moved from ../.
55291         * modules/crypto/gc-arctwo-tests: Moved from ../.
55292         * modules/crypto/gc-des: Moved from ../.
55293         * modules/crypto/gc-des-tests: Moved from ../.
55294         * modules/crypto/gc-hmac-md5: Moved from ../.
55295         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
55296         * modules/crypto/gc-hmac-sha1: Moved from ../.
55297         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
55298         * modules/crypto/gc-md2: Moved from ../.
55299         * modules/crypto/gc-md2-tests: Moved from ../.
55300         * modules/crypto/gc-md4: Moved from ../.
55301         * modules/crypto/gc-md4-tests: Moved from ../.
55302         * modules/crypto/gc-md5: Moved from ../.
55303         * modules/crypto/gc-md5-tests: Moved from ../.
55304         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
55305         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
55306         * modules/crypto/gc-random: Moved from ../.
55307         * modules/crypto/gc-rijndael: Moved from ../.
55308         * modules/crypto/gc-rijndael-tests: Moved from ../.
55309         * modules/crypto/gc-sha1: Moved from ../.
55310         * modules/crypto/gc-sha1-tests: Moved from ../.
55311         * modules/crypto/gc-tests: Moved from ../.
55312         * modules/crypto/hmac-md5: Moved from ../.
55313         * modules/crypto/hmac-md5-tests: Moved from ../.
55314         * modules/crypto/hmac-sha1: Moved from ../.
55315         * modules/crypto/hmac-sha1-tests: Moved from ../.
55316         * modules/crypto/md2: Moved from ../.
55317         * modules/crypto/md2-tests: Moved from ../.
55318         * modules/crypto/md4: Moved from ../.
55319         * modules/crypto/md4-tests: Moved from ../.
55320         * modules/crypto/md5: Moved from ../.
55321         * modules/crypto/md5-tests: Moved from ../.
55322         * modules/crypto/memxor: Moved from ../.
55323         * modules/crypto/rijndael: Moved from ../.
55324         * modules/crypto/rijndael-tests: Moved from ../.
55325         * modules/crypto/sha1: Moved from ../.
55326
55327 2007-03-30  James Youngman  <jay@gnu.org>
55328
55329         * tests/test-stat-time.c (prepare_test): use chmod() rather than
55330         rename() to change the ctime of a file (because ctime is unaffected
55331         by rename on jfs2 on AIX 5.1).
55332         (main): Start by doing cleanup, in case a previous run failed leaving
55333         test files behind.
55334
55335 2007-03-31  Bruno Haible  <bruno@clisp.org>
55336
55337         Support old proprietary implementations of iconv.
55338         * modules/iconv_open: New file.
55339         * lib/iconv_.h: New file.
55340         * m4/iconv_h.m4: New file.
55341         * lib/iconv_open.c: New file.
55342         * lib/iconv_open-aix.gperf: New file.
55343         * lib/iconv_open-hpux.gperf: New file.
55344         * lib/iconv_open-irix.gperf: New file.
55345         * lib/iconv_open-osf.gperf: New file.
55346         * m4/iconv_open.m4: New file.
55347         * modules/linebreak (Depends-on): Add iconv_open.
55348         * modules/striconv (Depends-on): Likewise.
55349         * modules/striconveh (Depends-on): Likewise.
55350         * modules/unicodeio (Depends-on): Likewise.
55351         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
55352         (iconv_t)(-1).
55353         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
55354         conversion if cd is (iconv_t)(-1).
55355         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
55356         is not possible.
55357
55358 2007-03-31  Bruno Haible  <bruno@clisp.org>
55359
55360         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
55361         work on Solaris either. Protect also second use of "autodetect_jp".
55362
55363 2007-03-31  Bruno Haible  <bruno@clisp.org>
55364
55365         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
55366         the function is not present.
55367
55368 2007-03-31  Bruno Haible  <bruno@clisp.org>
55369
55370         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
55371         the function is not present.
55372
55373 2007-03-31  Bruno Haible  <bruno@clisp.org>
55374
55375         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
55376         a bug in HP-UX iconv_open().
55377
55378 2007-03-31  Bruno Haible  <bruno@clisp.org>
55379
55380         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
55381         (Mathematics <math.h>): New section, add fpieee.
55382         (Input/output <stdio.h>): Add fseterr.
55383         (Mathematics <math.h>): New section, add printf-frexp.
55384         (Container data structures): Add sublist.
55385         (Core language properties): Add fpucw, inline.
55386         (Functions for greatest-width integer types <inttypes.h>): Add
55387         imaxabs, imaxdiv, inttypes.
55388         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
55389         isnanl-nolibm, ldexp.
55390         (Mathematics <math.h>): New section, add printf-frexpl.
55391         (Support for systems lacking POSIX:2001): Add fprintf-posix,
55392         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
55393         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
55394         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
55395         (Unicode string functions): Add unistr/u*-mbtoucr.
55396         (Java): Add javacomp-script, javaexec-script.
55397         (C#): Add csharpcomp-script, csharpexec-script.
55398         (Support for building libraries and executables): Add havelib,
55399         relocatable-*.
55400         (Support for maintaining and releasing projects): Renamed from
55401         'Support for maintaining and release projects'. Add announce-gen.
55402
55403 2007-03-31  Bruno Haible  <bruno@clisp.org>
55404
55405         * README: Talk primarily about git.
55406         (git and CVS): Renamed from CVS.
55407         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
55408         gnulib is available through git.
55409         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
55410
55411 2007-03-30  Bruno Haible  <bruno@clisp.org>
55412
55413         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
55414         * lib/poll_.h: Likewise.
55415         * lib/stat_.h: Likewise.
55416         * lib/sys_time_.h: Likewise.
55417         * lib/sysexit_.h: Likewise.
55418         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
55419         * lib/stdbool_.h: Likewise.
55420         * lib/byteswap_.h: Add double-inclusion guard.
55421
55422 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
55423
55424         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
55425
55426 2007-03-30  Karl Berry  <karl@gnu.org>
55427
55428         * config/srclist-update: double space after USA in the license
55429         substitution, since that's how it's usually (?) written.
55430
55431 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
55432
55433         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
55434         reported by Bruno Haible.
55435
55436 2007-03-29  Bruno Haible  <bruno@clisp.org>
55437
55438         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
55439         a bug in AIX iconv().
55440
55441 2007-03-29  Bruno Haible  <bruno@clisp.org>
55442
55443         * modules/ldexpl-tests: New file.
55444         * tests/test-ldexpl.c: New file.
55445
55446 2007-03-29  Bruno Haible  <bruno@clisp.org>
55447
55448         * lib/ldexpl.c: Include fpucw.h.
55449         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
55450         multiplication.
55451         * modules/ldexpl (Depends-on): Add fpucw.
55452
55453 2007-03-29  Bruno Haible  <bruno@clisp.org>
55454
55455         * modules/ldexpl: New file.
55456         * m4/ldexpl.m4: New file.
55457         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
55458         set.
55459         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
55460         REPLACE_LDEXPL.
55461         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
55462         REPLACE_LDEXPL.
55463         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
55464         gl_FUNC_LDEXPL_WORKS.
55465         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
55466         * modules/mathl (Files): Remove lib/ldexpl.c.
55467         (Depends-on): Add ldexpl.
55468
55469 2007-03-29  Bruno Haible  <bruno@clisp.org>
55470
55471         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
55472
55473 2007-03-29  Bruno Haible  <bruno@clisp.org>
55474
55475         * tests/test-striconveh.c (main): Don't assume that a direct conversion
55476         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
55477         and possibly also HP-UX.
55478         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
55479         work on AIX, IRIX, HP-UX, OSF/1.
55480         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
55481         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
55482         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
55483         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
55484         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
55485         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
55486
55487 2007-03-29  Bruno Haible  <bruno@clisp.org>
55488
55489         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
55490
55491 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
55492
55493         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
55494         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
55495
55496 2007-03-29  Eric Blake  <ebb9@byu.net>
55497
55498         * lib/acl-internal.h: Remove redundant include.
55499         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
55500         Cygwin when a file is locked.
55501
55502 2007-03-29  Bruno Haible  <bruno@clisp.org>
55503
55504         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
55505         file.
55506         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
55507
55508 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
55509
55510         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
55511         try to remove a parent directory if the child couldn't be removed
55512         (except for the first rmdir, which could fail because the child
55513         doesn't exist).  Problem reported by Jeff Blaine in
55514         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
55515
55516 2007-03-28  Bruno Haible  <bruno@clisp.org>
55517
55518         * lib/striconveh.c (utf8conv_carefully): New function.
55519         (mem_cd_iconveh_internal): Invoke it.
55520
55521 2007-03-28  Bruno Haible  <bruno@clisp.org>
55522
55523         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
55524         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
55525         input.
55526         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
55527         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
55528         unistr/u8-uctomb.
55529
55530 2007-03-28  Bruno Haible  <bruno@clisp.org>
55531
55532         * modules/unistr/u8-mbtoucr: New file.
55533         * lib/unistr/u8-mbtoucr.c: New file.
55534         * modules/unistr/u16-mbtoucr: New file.
55535         * lib/unistr/u16-mbtoucr.c: New file.
55536         * modules/unistr/u16-mbtoucr: New file.
55537         * lib/unistr/u16-mbtoucr.c: New file.
55538         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
55539
55540 2007-03-27  Simon Josefsson  <simon@josefsson.org>
55541             Bruno Haible  <bruno@clisp.org>
55542
55543         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
55544         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
55545         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
55546
55547         * m4/stdio_h.m4: Add stubs for vasprintf too.
55548
55549         * modules/stdio: Support vasprintf in sed command.
55550
55551         * modules/vasprintf: Depend on stdio for prototypes.  Remove
55552         vasprintf.h.  Add stdio module indicator.
55553
55554         * lib/stdio_.h: Declare asprintf and vasprintf, based on
55555         vasprintf.h.
55556
55557         * lib/vasprintf.h: File removed.
55558
55559         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
55560         * lib/vasprintf.c: Ditto.
55561         * lib/xvasprintf.c: Ditto.
55562         * tests/test-vasprintf-posix.c: Ditto.
55563         * tests/test-vasprintf.c: Ditto.
55564
55565 2007-03-27  Bruno Haible  <bruno@clisp.org>
55566
55567         Make vasnprintf multithread-safe.
55568         * lib/vasnprintf.c (decimal_point_char): New function.
55569         (VASNPRINTF): Use it.
55570         Suggested by Simon Josefsson.
55571
55572 2007-03-27  Eric Blake  <ebb9@byu.net>
55573
55574         Support sub-second birthtime on cygwin.
55575         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
55576         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
55577         (get_stat_birthtime): Also work with st_birthtim.
55578
55579 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
55580
55581         * lib/stat-time.h (USE_BIRTHTIME): Remove.
55582         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
55583         (get_stat_birthtime_ns): Do not try to use "spare" fields.
55584         (get_stat_birthtime_ns): Simplify compile-time tests.
55585         (get_stat_birthtime): Change the API to look like
55586         get_stat_mtime etc., except return a negative tv_nsec on error.
55587         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
55588         Don't check for "spare" fields.
55589         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
55590         or for struct stat.st_birthtime, as these tests aren't used.
55591         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
55592
55593 2007-03-27  Bruno Haible  <bruno@clisp.org>
55594
55595         * lib/stat-time.h: Include <sys/stat.h>.
55596
55597 2007-03-27  James Youngman  <jay@gnu.org>
55598
55599         * lib/stat-time.h (get_stat_birthtime): New function for
55600           retrieving st_birthtime as provided by UFS2 (hence *BSD).
55601         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
55602           and its variants.
55603         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
55604         * modules/stat-time-test: New file.
55605         * tests/test-stat-time.c: New test, devised by Bruno Haible.
55606
55607 2007-03-26  Bruno Haible  <bruno@clisp.org>
55608
55609         Better support of signalling NaNs.
55610         * lib/atanl.c: Include isnanl.h.
55611         (atanl): Perform test for NaN at the beginning of the function and
55612         through a call to isnanl.
55613         * lib/cosl.c: Include isnanl.h.
55614         (cosl): Perform test for NaN at the beginning of the function and
55615         through a call to isnanl.
55616         * lib/ldexpl.c: Include isnanl.h.
55617         (ldexpl): Perform test for NaN through a call to isnanl.
55618         * lib/logl.c: Include isnanl.h.
55619         (logl): Perform test for NaN at the beginning of the function and
55620         through a call to isnanl.
55621         * lib/sinl.c: Include isnanl.h.
55622         (sinl): Perform test for NaN at the beginning of the function and
55623         through a call to isnanl.
55624         * lib/sqrtl.c: Include isnanl.h.
55625         (sqrtl): Perform test for NaN at the beginning of the function and
55626         through a call to isnanl.
55627         * lib/tanl.c: Include isnanl.h.
55628         (tanl): Perform test for NaN at the beginning of the function and
55629         through a call to isnanl.
55630         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
55631         * modules/mathl (Depends-on): Add isnanl.
55632
55633 2007-03-26  Eric Blake  <ebb9@byu.net>
55634
55635         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
55636         regression in logic sense of previous patch.
55637
55638 2007-03-26  Bruno Haible  <bruno@clisp.org>
55639
55640         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
55641         unportable shell command "if ! ...".
55642         Reported by Ralf Wildenhues.
55643
55644 2007-03-25  Bruno Haible  <bruno@clisp.org>
55645
55646         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
55647         <sysexits.h> file, and only add EX_CONFIG.
55648         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
55649         absolute file name and whether it is sufficient. Substitute also
55650         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
55651         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
55652         ABSOLUTE_SYSEXITS_H into sysexits.h.
55653
55654 2007-03-25  Bruno Haible  <bruno@clisp.org>
55655
55656         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
55657         hints is NULL.
55658
55659 2007-03-25  Bruno Haible  <bruno@clisp.org>
55660
55661         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
55662         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
55663
55664 2007-03-25  Bruno Haible  <bruno@clisp.org>
55665
55666         * lib/vasnprintf.c: Include langinfo.h.
55667         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
55668         multithread-safe.
55669         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
55670         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
55671         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55672         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55673         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55674         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55675         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55676         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
55677         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55678         Reported by Simon Josefsson.
55679
55680 2007-03-25  Bruno Haible  <bruno@clisp.org>
55681
55682         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
55683         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
55684         * modules/vasnprintf (Depends-on): Add stdint.
55685
55686 2007-03-25  Bruno Haible  <bruno@clisp.org>
55687
55688         * modules/fpieee: New file.
55689         * m4/fpieee.m4: New file.
55690         * modules/isnan-nolibm (Depends-on): Add fpieee.
55691         * modules/isnanl-nolibm (Depends-on): Add fpieee.
55692         * modules/isnanl (Depends-on): Add fpieee.
55693
55694 2007-03-25  Bruno Haible  <bruno@clisp.org>
55695
55696         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
55697
55698 2007-03-25  Bruno Haible  <bruno@clisp.org>
55699
55700         Avoid test failures on IRIX 6.5.
55701         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
55702         (main): Use it.
55703         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
55704         macros.
55705         (main): Use them.
55706
55707 2007-03-25  Bruno Haible  <bruno@clisp.org>
55708
55709         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
55710         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
55711         exists but doesn't work.
55712         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
55713         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
55714         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
55715         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
55716         math.h.
55717
55718 2007-03-25  Bruno Haible  <bruno@clisp.org>
55719
55720         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
55721         returns inf. Needed on IRIX 6.5.
55722
55723 2007-03-25  Bruno Haible  <bruno@clisp.org>
55724
55725         * tests/test-frexpl.c: Include isnanl-nolibm.h.
55726         (main): Use isnanl instead of x != x idiom.
55727         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
55728
55729         * tests/test-frexp.c: Include isnan.h.
55730         (main): Use isnan instead of x != x idiom.
55731         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
55732
55733 2007-03-25  Bruno Haible  <bruno@clisp.org>
55734
55735         * tests/test-frexp.c (NaN): New function/macro.
55736         (main): Use it instead of 0.0 / 0.0.
55737         * tests/test-isnan.c (NaN): New function/macro.
55738         (main): Use it instead of 0.0 / 0.0.
55739         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
55740         (test_function): Use it instead of 0.0 / 0.0.
55741         * tests/test-vasprintf-posix.c (NaN): New function/macro.
55742         (test_function): Use it instead of 0.0 / 0.0.
55743         * tests/test-snprintf-posix.h (NaN): New function/macro.
55744         (test_function): Use it instead of 0.0 / 0.0.
55745         * tests/test-sprintf-posix.h (NaN): New function/macro.
55746         (test_function): Use it instead of 0.0 / 0.0.
55747         * tests/test-fprintf-posix.h (NaN): New function/macro.
55748         (test_function): Use it instead of 0.0 / 0.0.
55749         * tests/test-printf-posix.h (NaN): New function/macro.
55750         (test_function): Use it instead of 0.0 / 0.0.
55751
55752         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
55753
55754 2007-03-25  Bruno Haible  <bruno@clisp.org>
55755
55756         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
55757
55758 2007-03-25  Bruno Haible  <bruno@clisp.org>
55759
55760         * lib/regexec.c (merge_state_with_log): Make static.
55761
55762 2007-03-25  Bruno Haible  <bruno@clisp.org>
55763
55764         * lib/trigl.c (kernel_rem_pio2): Make static.
55765
55766 2007-03-25  Bruno Haible  <bruno@clisp.org>
55767
55768         * lib/sincosl.c (sincosl_table): Make static.
55769
55770 2007-03-25  Bruno Haible  <bruno@clisp.org>
55771
55772         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
55773         if the compiler does not support C99.
55774
55775 2007-03-25  Bruno Haible  <bruno@clisp.org>
55776
55777         * modules/time (Makefile.am): Ensure all rule action lines start with a
55778         tab.
55779
55780 2007-03-24  Bruno Haible  <bruno@clisp.org>
55781
55782         * modules/tsearch-tests: New file.
55783         * tests/test-tsearch.sh: New file.
55784         * tests/test-tsearch.c: New file, mostly copied from glibc.
55785
55786         * modules/search-tests: New file.
55787         * tests/test-search.c: New file.
55788
55789         * modules/search: New file.
55790         * lib/search_.h: New file, incorporating lib/tsearch.h.
55791         * m4/search_h.m4: New file.
55792         * lib/tsearch.h: Remove file.
55793         * lib/tsearch.c: Include search.h instead of tsearch.h.
55794         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
55795         HAVE_TSEARCH.
55796         * modules/tsearch (Files): Remove lib/tsearch.h.
55797         (Depends-on): Add search.
55798         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
55799         (Include): Change tsearch.h into search.h.
55800
55801 2007-03-24  Bruno Haible  <bruno@clisp.org>
55802
55803         * modules/fpucw: New file.
55804         * lib/fpucw.h: New file.
55805         * lib/frexp.c: Include fpucw.h.
55806         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
55807         (FUNC): Use them.
55808         * lib/printf-frexp.c: Include fpucw.h.
55809         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
55810         (FUNC): Use them.
55811         * lib/vasnprintf.c: Include fpucw.h.
55812         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
55813         'long double' calculations.
55814         * tests/test-frexpl.c: Include fpucw.h.
55815         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
55816         * tests/test-printf-frexpl.c: Include fpucw.h.
55817         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
55818         * modules/frexpl (Depends-on): Add fpucw.
55819         * modules/printf-frexpl (Depends-on): Likewise.
55820         * modules/fprintf-posix (Depends-on): Likewise.
55821         * modules/snprintf-posix (Depends-on): Likewise.
55822         * modules/sprintf-posix (Depends-on): Likewise.
55823         * modules/vasnprintf-posix (Depends-on): Likewise.
55824         * modules/vasprintf-posix (Depends-on): Likewise.
55825         * modules/vfprintf-posix (Depends-on): Likewise.
55826         * modules/vsnprintf-posix (Depends-on): Likewise.
55827         * modules/vsprintf-posix (Depends-on): Likewise.
55828         * modules/frexpl-tests (Depends-on): Likewise.
55829         * modules/printf-frexpl-tests (Depends-on): Likewise.
55830
55831 2007-03-24  Bruno Haible  <bruno@clisp.org>
55832
55833         * lib/float+.h: New file.
55834         * lib/isnan.c: Include float+.h.
55835         (SIZE): New macro.
55836         (FUNC): Compare only SIZE bytes of the value.
55837         * lib/vasnprintf.c: Include float+.h.
55838         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
55839         SIZEOF_LDBL or SIZEOF_DBL bytes.
55840         * modules/isnan-nolibm (Files): Add lib/float+.h.
55841         * modules/isnanl-nolibm (Files): Add lib/float+.h.
55842         * modules/isnanl (Files): Add lib/float+.h.
55843         * modules/vasnprintf (Files): Add lib/float+.h.
55844
55845 2007-03-24  Bruno Haible  <bruno@clisp.org>
55846
55847         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
55848         include isnanl-nolibm.h.
55849
55850 2007-03-24  Bruno Haible  <bruno@clisp.org>
55851
55852         * tests/test-read-file.c (main): Don't produce spurious output for
55853         expected situations. Make the test fail if it encountered unexpected
55854         results.
55855
55856 2007-03-24  Bruno Haible  <bruno@clisp.org>
55857
55858         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
55859         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
55860
55861 2007-03-24  Bruno Haible  <bruno@clisp.org>
55862
55863         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
55864
55865 2007-03-24  Bruno Haible  <bruno@clisp.org>
55866
55867         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
55868         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
55869
55870         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
55871         * modules/utf8-ucs4: Turn into a symbolic link to module
55872         unistr/u8-mbtouc.
55873
55874         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
55875         utf8-ucs4-unsafe.
55876         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
55877         unistr/u8-mbtouc-unsafe.
55878
55879         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
55880         * modules/utf16-ucs4: Turn into a symbolic link to module
55881         unistr/u16-mbtouc.
55882
55883         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
55884         utf16-ucs4-unsafe.
55885         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
55886         unistr/u16-mbtouc-unsafe.
55887
55888         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
55889         * modules/ucs4-utf8: Turn into a symbolic link to module
55890         unistr/u8-ubtomb.
55891
55892         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
55893         * modules/ucs4-utf16: Turn into a symbolic link to module
55894         unistr/u16-ubtomb.
55895
55896 2007-03-24  Bruno Haible  <bruno@clisp.org>
55897
55898         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
55899         Enable the function only if HAVE_INLINE.
55900         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
55901         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
55902         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
55903         Enable the function only if HAVE_INLINE.
55904         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
55905         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
55906         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
55907         Enable the function only if HAVE_INLINE.
55908         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
55909         Enable the function only if HAVE_INLINE.
55910         * modules/utf8-ucs4: Update.
55911         * modules/utf8-ucs4-unsafe: Update.
55912         * modules/utf16-ucs4: Update.
55913         * modules/utf16-ucs4-unsafe: Update.
55914         * modules/ucs4-utf8: Update.
55915         * modules/ucs4-utf16: Update.
55916
55917 2007-03-24  Bruno Haible  <bruno@clisp.org>
55918
55919         * lib/utf8-ucs4.h: Remove file.
55920         * lib/utf8-ucs4-unsafe.h: Remove file.
55921         * lib/utf16-ucs4.h: Remove file.
55922         * lib/utf16-ucs4-unsafe.h: Remove file.
55923         * lib/ucs4-utf8.h: Remove file.
55924         * lib/ucs4-utf16.h: Remove file.
55925         * lib/unistr.h: Include their previous contents.
55926         * m4/utf-ucs4.m4: Remove file.
55927         * m4/ucs4-utf.m4: Remove file.
55928         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
55929         (Depends-on): Add unistr/base.
55930         (configure.ac): Remove gl_UTF_UCS4.
55931         (Makefile.am): Update.
55932         (Include): Change to unistr.h.
55933         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
55934         (Depends-on): Add unistr/base.
55935         (configure.ac): Remove gl_UTF_UCS4.
55936         (Makefile.am): Update.
55937         (Include): Change to unistr.h.
55938         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
55939         (Depends-on): Add unistr/base.
55940         (configure.ac): Remove gl_UTF_UCS4.
55941         (Makefile.am): Update.
55942         (Include): Change to unistr.h.
55943         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
55944         (Depends-on): Add unistr/base.
55945         (configure.ac): Remove gl_UTF_UCS4.
55946         (Makefile.am): Update.
55947         (Include): Change to unistr.h.
55948         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
55949         (Depends-on): Add unistr/base.
55950         (configure.ac): Remove gl_UCS4_UTF.
55951         (Makefile.am): Update.
55952         (Include): Change to unistr.h.
55953         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
55954         (Depends-on): Add unistr/base.
55955         (configure.ac): Remove gl_UCS4_UTF.
55956         (Makefile.am): Update.
55957         (Include): Change to unistr.h.
55958         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
55959         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
55960         utf8-ucs4-unsafe.h.
55961         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
55962         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
55963         utf16-ucs4-unsafe.h.
55964         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
55965         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
55966         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
55967         * lib/unistr/u8-strchr.c: Likewise.
55968         * lib/unistr/u8-strrchr.c: Likewise.
55969         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
55970         * lib/unistr/u16-strchr.c: Likewise.
55971         * lib/unistr/u16-strrchr.c: Likewise.
55972         * lib/striconveh.c: Update.
55973         * lib/linebreak.c: Update.
55974
55975 2007-03-24  Bruno Haible  <bruno@clisp.org>
55976
55977         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
55978         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
55979
55980 2007-03-22  Bruno Haible  <bruno@clisp.org>
55981
55982         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
55983
55984 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
55985
55986         * MODULES.html.sh (File system functions): New module write-any-file.
55987         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
55988         * m4/write-any-file.m4: New files.
55989
55990 2007-03-23  Eric Blake  <ebb9@byu.net>
55991
55992         * gnulib-tool: Rearrange space-tab sequences, since some editors
55993         like to eat them.
55994
55995 2007-03-23  Eric Blake  <ebb9@byu.net>
55996
55997         * lib/version-etc.c (version_etc_va): Update license wording to
55998         be more concise.  Recommended by Richard Stallman.
55999
56000 2007-03-22  Bruno Haible  <bruno@clisp.org>
56001
56002         * lib/poll.c (MSG_PEEK): New fallback definition.
56003
56004 2007-03-22  Bruno Haible  <bruno@clisp.org>
56005
56006         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
56007         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
56008         (main): Update.
56009         Fixes a compilation error on BeOS.
56010
56011 2007-03-22  Bruno Haible  <bruno@clisp.org>
56012
56013         * modules/frexpl-tests: New file.
56014         * tests/test-frexpl.c: New file.
56015
56016         * modules/frexpl: New file.
56017         * m4/frexpl.m4: New file.
56018         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
56019         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
56020         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
56021         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
56022         (Depends-on): Add frexpl. Remove isnanl-nolibm.
56023         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
56024
56025 2007-03-22  Bruno Haible  <bruno@clisp.org>
56026
56027         * lib/frexpl.c: Share code with lib/frexp.c.
56028         * modules/mathl (Files): Add lib/frexp.c.
56029         (Depends-on): Add isnanl-nolibm.
56030
56031 2007-03-22  Bruno Haible  <bruno@clisp.org>
56032
56033         * modules/printf-frexp (Files): Add m4/frexp.m4.
56034         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
56035         only if the found frexp function actually works.
56036
56037 2007-03-22  Bruno Haible  <bruno@clisp.org>
56038
56039         * lib/frexp.c: Remove older implementation that uses divisions.
56040
56041 2007-03-21  Bruno Haible  <bruno@clisp.org>
56042
56043         * modules/frexp-tests: New file.
56044         * tests/test-frexp.c: New file.
56045
56046         * modules/frexp: New file.
56047         * lib/frexp.c: New file.
56048         * m4/frexp.m4: New file.
56049         * lib/math_.h (frexp): New declaration.
56050         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
56051         REPLACE_FREXP.
56052         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
56053
56054 2007-03-21  Bruno Haible  <bruno@clisp.org>
56055
56056         * modules/isnanl-tests: New file.
56057         * tests/test-isnanl.c: New file.
56058
56059         * modules/isnanl: New file.
56060         * lib/isnanl.h: New file.
56061         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
56062         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
56063         gl_FUNC_ISNANL_WORKS.
56064         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
56065         New macros.
56066
56067 2007-03-21  Bruno Haible  <bruno@clisp.org>
56068
56069         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
56070         lib/isnanl.h.
56071         (Include): Update.
56072         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
56073         * lib/vasnprintf.c: Update.
56074         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
56075         tests/test-isnanl.h, remove tests/test-isnanl.c.
56076         (Makefile.am): Update.
56077         * tests/test-isnanl-nolibm.c: New file.
56078         * tests/test-isnanl.h: New file.
56079         * tests/test-isnanl.c: Remove file.
56080
56081 2007-03-21  Jim Meyering  <jim@meyering.net>
56082
56083         When trying to open ".", treat ESTALE like EACCES.
56084         * lib/savewd.c (savewd_save): Resort to forking not just upon
56085         failure with EACCES, but also when errno is ESTALE.
56086
56087 2007-03-20  Bruno Haible  <bruno@clisp.org>
56088
56089         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
56090         Needed on AIX 5.1. Reported by Matthew Woehlke.
56091
56092 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
56093
56094         Suggestions by Bruno Haible:
56095         * lib/acl-internal.h: Include "gettext.h" rather than rolling
56096         our own.
56097         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
56098         * modules/acl (Depends-on): Add gettext.
56099
56100 2007-03-19  Bruno Haible  <bruno@clisp.org>
56101
56102         * modules/iconvme: Remove file.
56103         * lib/iconvme.h: Remove file.
56104         * lib/iconvme.c: Remove file.
56105         * m4/iconvme.m4: Remove file.
56106
56107 2007-03-19  Bruno Haible  <bruno@clisp.org>
56108
56109         * doc/relocatable-maint.texi: Break long shell script line.
56110         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
56111
56112 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
56113
56114         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
56115         handle file_has_acl.
56116         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
56117         * lib/acl.c: Move header inclusions and related macro defns into
56118         lib/acl-internal.h.
56119         (S_ISLNK): Remove defn, since that's now done for us.
56120         (file_has_acl): Move to lib/file-has-acl.c.
56121         Call acl_trivial if available.  This is the crucial part of the fix.
56122         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
56123         shared within the library.  Rewrite a bit, partly to make it compatible
56124         with the GNU coding style.
56125         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
56126         Remove unnecessary double-quotes.
56127         Don't test for acl_to_text; the build will catch that.
56128         Replace acl_entries if it doesn't exist and it is needed.
56129         Check for -lsec and acl_trivial (as used on Solaris 10).
56130         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
56131         lib/file-has-acl.c.
56132         (Depends-on): Add sys_stat, for S_ISLNK.
56133
56134 2007-03-19  Ben Pfaff  <blp@gnu.org>
56135
56136         * doc/gnulib.texi: Fix typos.
56137         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
56138
56139 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
56140
56141         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
56142         If size is zero here, buf must be zero.
56143
56144 2007-03-19  Simon Josefsson  <simon@josefsson.org>
56145
56146         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
56147         <bruno@clisp.org>.
56148
56149 2007-03-18  Bruno Haible  <bruno@clisp.org>
56150
56151         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
56152         Suggested by Eric Blake.
56153
56154 2007-03-18  Ben Pfaff  <blp@gnu.org>
56155
56156         * doc/relocatable.texi: Recommend using as prefix a directory
56157         that does not exist and will never be created.  Based on
56158         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
56159         and others.
56160
56161 2007-03-17  Bruno Haible  <bruno@clisp.org>
56162
56163         * lib/fchownat.c: Include lchown.h.
56164
56165 2007-03-17  Bruno Haible  <bruno@clisp.org>
56166
56167         Fix endless loop when the given allocated size was > INT_MAX.
56168         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
56169         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
56170         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
56171         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
56172         * lib/sprintf.c (sprintf): Likewise.
56173
56174 2007-03-17  Bruno Haible  <bruno@clisp.org>
56175
56176         * tests/test-argp-2.sh (func_compare): Output a context diff.
56177
56178 2007-03-17  Bruno Haible  <bruno@clisp.org>
56179
56180         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
56181         locale's decimal-point character.
56182
56183 2007-03-17  Bruno Haible  <bruno@clisp.org>
56184
56185         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
56186         before comparing it. Needed because on some platforms (e.g. x86) a
56187         'long double' occupies less bytes than sizeof (long double).
56188
56189 2007-03-17  Bruno Haible  <bruno@clisp.org>
56190
56191         * tests/test-crc.c (main): Make printf statements 64-bit clean.
56192         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
56193         * tests/test-getaddrinfo.c (simple): Likewise.
56194         * tests/test-read-file.c (main): Likewise.
56195
56196 2007-03-17  Bruno Haible  <bruno@clisp.org>
56197
56198         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
56199
56200 2007-03-17  Bruno Haible  <bruno@clisp.org>
56201
56202         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
56203         unused variable.
56204
56205 2007-03-17  Bruno Haible  <bruno@clisp.org>
56206
56207         * tests/test-c-strcasecmp.c: Include c-strcase.h.
56208         * tests/test-c-strncasecmp.c: Likewise.
56209
56210 2007-03-17  Bruno Haible  <bruno@clisp.org>
56211
56212         * modules/stdlib (Depends-on): Add unistd.
56213         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
56214         Needed for MacOS X 10.3.
56215
56216 2007-03-17  Bruno Haible  <bruno@clisp.org>
56217
56218         * lib/unistr/u-strdup.h: Include <stdlib.h>.
56219
56220 2007-03-17  Bruno Haible  <bruno@clisp.org>
56221
56222         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
56223
56224 2007-03-17  Bruno Haible  <bruno@clisp.org>
56225
56226         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
56227         to reflect files copied from gnulib (with or without modifications).
56228         Suggested by Jim Meyering.
56229
56230 2007-03-17  Eric Blake  <ebb9@byu.net>
56231
56232         * NEWS: Document stdlib change from 2007-02-18.
56233
56234 2007-03-17  Jim Meyering  <jim@meyering.net>
56235
56236         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
56237         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
56238         someone uses a name containing shell meta-characters.
56239         Reported by Alfred M. Szmidt.
56240
56241         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
56242
56243 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
56244
56245         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
56246         and copy gettext configuration files only if configure.ac contains
56247         a use of AM_GNU_GETTEXT_VERSION.
56248
56249 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
56250
56251         * build-aux/bootstrap (gnulib_name): New variable.
56252         (gnulib_tool_options): Use it.
56253
56254 2007-03-13  Simon Josefsson  <simon@josefsson.org>
56255
56256         * tests/test-des.c: Use new namespace.
56257
56258 2007-03-15  Bruno Haible  <bruno@clisp.org>
56259
56260         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
56261         Reported by James Youngman <jay@gnu.org>.
56262
56263 2007-03-15  Bruno Haible  <bruno@clisp.org>
56264
56265         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
56266         declared prototype. Needed with cc on OSF/1 5.1.
56267
56268 2007-03-15  Bruno Haible  <bruno@clisp.org>
56269
56270         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
56271         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
56272         (struct gl_list_implementation): Add dispose_fn argument to the
56273         'create_empty', 'create' methods.
56274         (struct gl_list_impl_base): Add field 'dispose_fn'.
56275         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
56276         argument.
56277         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
56278         dispose_fn argument.
56279         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
56280         dispose_fn on the dropped values.
56281         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
56282         dispose_fn argument.
56283         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
56284         dropped values.
56285         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
56286         (gl_tree_remove_node): Call dispose_fn on the dropped value.
56287         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
56288         (gl_tree_remove_node): Call dispose_fn on the dropped value.
56289         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
56290         argument.
56291         (gl_tree_list_free): Call dispose_fn on the dropped values.
56292         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
56293         the dropped values.
56294         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
56295         Add dispose_fn argument.
56296         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
56297         Call dispose_fn on the dropped values.
56298         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
56299         Add dispose_fn argument.
56300         (gl_sublist_create): Initialize the 'dispose_fn' field.
56301         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
56302         * tests/test-array_list.c (main): Update.
56303         * tests/test-carray_list.c (main): Update.
56304         * tests/test-avltree_list.c (main): Update.
56305         * tests/test-rbtree_list.c (main): Update.
56306         * tests/test-avltreehash_list.c (main): Update.
56307         * tests/test-rbtreehash_list.c (main): Update.
56308         * tests/test-linked_list.c (main): Update.
56309         * tests/test-linkedhash_list.c (main): Update.
56310         * tests/test-array_oset.c (main): Update.
56311
56312 2007-03-15  Bruno Haible  <bruno@clisp.org>
56313
56314         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
56315         (gl_oset_create_empty): Add dispose_fn argument.
56316         (struct gl_oset_implementation): Add dispose_fn argument to
56317         'create_empty' method.
56318         (struct gl_oset_impl_base): Add dispose_fn field.
56319         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
56320         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
56321         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
56322         values.
56323         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
56324         (gl_tree_oset_free): Call dispose_fn on the dropped values.
56325         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
56326         dropped value.
56327         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
56328         dropped value.
56329         * tests/test-array_oset.c (main): Update.
56330         * tests/test-avltree_oset.c (main): Update.
56331         * tests/test-rbtree_oset.c (main): Update.
56332         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
56333
56334 2007-03-13  Bruno Haible  <bruno@clisp.org>
56335
56336         * tests/test-stdbool.c (i): Update after last patch.
56337
56338 2007-03-12  Bruno Haible  <bruno@clisp.org>
56339
56340         * lib/quotearg.c: Include <wctype.h> early, before the definition of
56341         the iswprint macro. Needed on Solaris 2.5.1.
56342
56343 2007-03-12  Bruno Haible  <bruno@clisp.org>
56344
56345         * tests/test-printf-frexp.c (main): Declare x as volatile.
56346
56347 2007-03-12  Simon Josefsson  <simon@josefsson.org>
56348
56349         * doc/gnulib.texi (Build robot for gnulib): New section.
56350
56351 2007-03-12  Jim Meyering  <jim@meyering.net>
56352
56353         * build-aux/bootstrap: New file.
56354         * build-aux/bootstrap.conf: New file, from coreutils.
56355
56356 2007-03-11  Bruno Haible  <bruno@clisp.org>
56357
56358         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
56359
56360 2007-03-12  Simon Josefsson  <simon@josefsson.org>
56361
56362         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
56363         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
56364         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
56365
56366 2007-03-11  Bruno Haible  <bruno@clisp.org>
56367
56368         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
56369         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
56370
56371 2007-03-11  Bruno Haible  <bruno@clisp.org>
56372
56373         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
56374         formula. Needed for SunPRO C 5.0.
56375
56376 2007-03-11  Bruno Haible  <bruno@clisp.org>
56377
56378         * modules/long-options (Depends-on): Add getopt.
56379
56380 2007-03-11  Bruno Haible  <bruno@clisp.org>
56381
56382         * modules/modechange (Depends-on): Add stdbool.
56383
56384 2007-03-11  Bruno Haible  <bruno@clisp.org>
56385
56386         * modules/i-ring (Depends-on): Add stdbool.
56387
56388 2007-03-11  Bruno Haible  <bruno@clisp.org>
56389
56390         * modules/gc-des (Depends-on): Add stdbool.
56391
56392 2007-03-11  Bruno Haible  <bruno@clisp.org>
56393
56394         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
56395
56396 2007-03-11  Bruno Haible  <bruno@clisp.org>
56397
56398         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
56399
56400 2007-03-11  Bruno Haible  <bruno@clisp.org>
56401
56402         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
56403
56404 2007-03-11  Bruno Haible  <bruno@clisp.org>
56405
56406         * lib/vasnprintf.c (sprintf): Undefine.
56407
56408 2007-03-11  Bruno Haible  <bruno@clisp.org>
56409
56410         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
56411         initializers in SunPRO C and Compaq C compilers.
56412
56413 2007-03-11  Bruno Haible  <bruno@clisp.org>
56414
56415         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
56416         decrementing code ANSI C compliant.
56417
56418 2007-03-11  Bruno Haible  <bruno@clisp.org>
56419
56420         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
56421         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
56422
56423 2007-03-11  Bruno Haible  <bruno@clisp.org>
56424
56425         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
56426         <stdbool.h> substitute doesn't pass.
56427
56428 2007-03-11  Bruno Haible  <bruno@clisp.org>
56429
56430         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
56431
56432 2007-03-11  Bruno Haible  <bruno@clisp.org>
56433
56434         * gnulib-tool (func_create_megatestdir): Create also an autobuild
56435         script, for submission to autobuild.josefsson.org.
56436
56437 2007-03-10  Bruno Haible  <bruno@clisp.org>
56438
56439         * modules/canonicalize-lgpl-tests: New file.
56440         * tests/test-canonicalize-lgpl.sh: New file.
56441         * tests/test-canonicalize-lgpl.c: New file.
56442
56443         * modules/c-strcase-tests: New file.
56444         * tests/test-c-strcase.sh: New file.
56445         * tests/test-c-strcasecmp.c: New file.
56446         * tests/test-c-strncasecmp.c: New file.
56447
56448         * modules/atexit-tests: New file.
56449         * tests/test-atexit.sh: New file.
56450         * tests/test-atexit.c: New file.
56451
56452 2007-03-10  Bruno Haible  <bruno@clisp.org>
56453
56454         * tests/test-binary-io.sh: Use temporary filenames that are not so
56455         likely to clash with those of other tests (in a parallel make).
56456         * tests/test-binary-io.c: Likewise.
56457
56458 2007-03-10  Bruno Haible  <bruno@clisp.org>
56459
56460         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
56461         fallback; use #error instead.
56462         Suggested by Simon Josefsson.
56463
56464 2007-03-10  Bruno Haible  <bruno@clisp.org>
56465
56466         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
56467         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
56468         first and the last.
56469
56470 2007-03-10  Bruno Haible  <bruno@clisp.org>
56471
56472         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
56473
56474 2007-03-10  Bruno Haible  <bruno@clisp.org>
56475
56476         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
56477         "make distcheck".
56478         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
56479         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
56480         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
56481
56482 2007-03-10  Bruno Haible  <bruno@clisp.org>
56483
56484         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
56485         variable.
56486         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
56487         variable.
56488
56489 2007-03-09  Eric Blake  <ebb9@byu.net>
56490         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
56491
56492         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
56493         types are not being provided by gnulib.
56494         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
56495         types are supported.
56496
56497 2007-03-10  Bruno Haible  <bruno@clisp.org>
56498
56499         * lib/stdio_.h (__attribute__): New macro.
56500         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
56501         vsprintf): Specify __attribute__ __format__ for GCC.
56502         Suggested by Eric Blake.
56503
56504 2007-03-09  Bruno Haible  <bruno@clisp.org>
56505
56506         * modules/printf-posix-tests: New file.
56507         * tests/test-printf-posix.sh: New file.
56508         * tests/test-printf-posix.c: New file.
56509
56510         * modules/printf-posix: New file.
56511         * lib/printf.c: New file.
56512         * m4/printf-posix-rpl.m4: New file.
56513         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
56514         REPLACE_PRINTF.
56515         * lib/stdio_.h (printf): New declaration.
56516         (format, __format__, ____printf____, ____scanf____, ____strftime____,
56517         ____strfmon____): New macros.
56518         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
56519         REPLACE_PRINTF.
56520
56521 2007-03-09  Bruno Haible  <bruno@clisp.org>
56522
56523         * tests/test-vasnprintf-posix2.sh: New file.
56524         * tests/test-vasnprintf-posix2.c: New file.
56525         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
56526         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
56527         (Makefile.am): Activate test-vasnprintf-posix2.sh.
56528
56529         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
56530         a locale dependent decimal point, rather than always '.'.
56531
56532 2007-03-09  Eric Blake  <ebb9@byu.net>
56533
56534         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
56535         spite of platforms like Tandem/NSK that define it to -1.
56536
56537 2007-03-08  Bruno Haible  <bruno@clisp.org>
56538
56539         * modules/vprintf-posix-tests: New file.
56540         * tests/test-vprintf-posix.sh: New file.
56541         * tests/test-vprintf-posix.c: New file.
56542         * tests/test-printf-posix.h: New file.
56543
56544         * modules/vprintf-posix: New file.
56545         * lib/vprintf.c: New file.
56546         * m4/vprintf-posix.m4: New file.
56547         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
56548         REPLACE_VPRINTF.
56549         * lib/stdio_.h (vprintf): New declaration.
56550         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
56551         REPLACE_VPRINTF.
56552
56553 2007-03-08  Bruno Haible  <bruno@clisp.org>
56554
56555         * modules/fprintf-posix-tests: New file.
56556         * tests/test-fprintf-posix.sh: New file.
56557         * tests/test-fprintf-posix.c: New file.
56558
56559         * modules/fprintf-posix: New file.
56560         * lib/fprintf.c: New file.
56561         * m4/fprintf-posix.m4: New file.
56562         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
56563         REPLACE_FPRINTF.
56564         * lib/stdio_.h (fprintf): New declaration.
56565         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
56566         REPLACE_FPRINTF.
56567
56568 2007-03-08  Bruno Haible  <bruno@clisp.org>
56569
56570         * modules/vfprintf-posix-tests: New file.
56571         * tests/test-vfprintf-posix.sh: New file.
56572         * tests/test-vfprintf-posix.c: New file.
56573         * tests/test-fprintf-posix.h: New file.
56574         * tests/test-fprintf-posix.out: New file.
56575
56576         * modules/vfprintf-posix: New file.
56577         * lib/vfprintf.c: New file.
56578         * m4/vfprintf-posix.m4: New file.
56579         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
56580         REPLACE_VFPRINTF.
56581         * lib/stdio_.h (vfprintf): New declaration.
56582         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
56583         REPLACE_VFPRINTF.
56584
56585 2007-03-08  Bruno Haible  <bruno@clisp.org>
56586
56587         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
56588
56589 2007-03-08  Bruno Haible  <bruno@clisp.org>
56590
56591         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
56592         instead of 'expr' invocations.
56593         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56594         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56595         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56596         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56597         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56598         Suggested by Paul Eggert.
56599
56600 2007-03-08  Bruno Haible  <bruno@clisp.org>
56601
56602         * modules/fseterr-tests: New file.
56603         * tests/test-fseterr.c: New file.
56604
56605         * modules/fseterr: New file.
56606         * lib/fseterr.h: New file.
56607         * lib/fseterr.c: New file.
56608
56609 2007-03-08  Bruno Haible  <bruno@clisp.org>
56610
56611         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
56612         * lib/getopt_.h: Likewise.
56613         * lib/mbswidth.h: Likewise.
56614         * lib/setenv.h: Likewise.
56615         * lib/vasnprintf.h: Likewise.
56616         * lib/vasprintf.h: Likewise.
56617         * lib/verror.h: Likewise.
56618         * lib/xsetenv.h: Likewise.
56619         * lib/xvasprintf.h: Likewise.
56620
56621 2007-03-08  Jim Meyering  <jim@meyering.net>
56622
56623         * users.txt: Add parted.
56624
56625         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
56626
56627 2007-03-07  Bruno Haible  <bruno@clisp.org>
56628
56629         * m4/printf.m4: Make the shell script snippets copy&pastable.
56630
56631 2007-03-02  Bruno Haible  <bruno@clisp.org>
56632
56633         * lib/netinet_in_.h: New file.
56634         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
56635         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
56636         * modules/netinet_in (Files): Add lib/netinet_in_.h.
56637         (Depends-on): Add absolute-header.
56638         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
56639         into netinet/in.h.
56640
56641 2007-03-03  Bruno Haible  <bruno@clisp.org>
56642
56643         * lib/sys_select_.h: New file.
56644         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
56645         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
56646         * modules/sys_select (Files): Add lib/sys_select_.h.
56647         (Depends-on): Add absolute-header.
56648         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
56649         into sys/select.h.
56650
56651 2007-03-02  Bruno Haible  <bruno@clisp.org>
56652
56653         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
56654         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
56655         values.
56656         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
56657         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
56658         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
56659         * modules/sys_socket (Depends-on): Add absolute-header.
56660         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
56661         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
56662         (Include): Remove requirement of inclusion of <sys/types.h>.
56663
56664 2007-03-02  Bruno Haible  <bruno@clisp.org>
56665
56666         * lib/byteswap_.h (bswap_32): Fix formula.
56667
56668 2007-03-06  Bruno Haible  <bruno@clisp.org>
56669
56670         * modules/sprintf-posix-tests: New file.
56671         * tests/test-sprintf-posix.c: New file.
56672
56673         * modules/sprintf-posix: New file.
56674         * lib/sprintf.c: New file.
56675         * m4/sprintf-posix.m4: New file.
56676         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
56677         REPLACE_SPRINTF.
56678         * lib/stdio_.h (sprintf): New declaration.
56679         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
56680         REPLACE_SPRINTF.
56681
56682 2007-03-06  Bruno Haible  <bruno@clisp.org>
56683
56684         * modules/vsprintf-posix-tests: New file.
56685         * tests/test-vsprintf-posix.c: New file.
56686         * tests/test-sprintf-posix.h: New file.
56687
56688         * modules/vsprintf-posix: New file.
56689         * lib/vsprintf.c: New file.
56690         * m4/vsprintf-posix.m4: New file.
56691         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
56692         REPLACE_VSPRINTF.
56693         * lib/stdio_.h (vsprintf): New declaration.
56694         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
56695         REPLACE_VSPRINTF.
56696
56697 2007-03-06  Bruno Haible  <bruno@clisp.org>
56698
56699         * modules/vsnprintf (Depend-on): Remove minmax.
56700
56701 2007-03-06  Bruno Haible  <bruno@clisp.org>
56702
56703         * modules/snprintf-posix-tests: New file.
56704         * tests/test-snprintf-posix.c: New file.
56705
56706         * modules/snprintf-posix: New file.
56707         * m4/snprintf-posix.m4: New file.
56708         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
56709         gl_FUNC_SNPRINTF.
56710         (gl_FUNC_SNPRINTF): Invoke it.
56711         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
56712         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
56713         is set.
56714         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
56715
56716 2007-03-06  Bruno Haible  <bruno@clisp.org>
56717
56718         * modules/vsnprintf-posix-tests: New file.
56719         * tests/test-vsnprintf-posix.c: New file.
56720         * tests/test-snprintf-posix.h: New file.
56721
56722         * modules/vsnprintf-posix: New file.
56723         * m4/vsnprintf-posix.m4: New file.
56724         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
56725         gl_FUNC_VSNPRINTF.
56726         (gl_FUNC_VSNPRINTF): Invoke it.
56727         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
56728         * lib/stdio_.h (vsnprintf): Define as a replacement if
56729         REPLACE_VSNPRINTF is set.
56730         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
56731
56732 2007-03-06  Bruno Haible  <bruno@clisp.org>
56733
56734         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
56735         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
56736
56737 2007-03-06  Bruno Haible  <bruno@clisp.org>
56738
56739         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
56740         (asinl): Declare also if HAVE_DECL_ASINL is set.
56741         (atanl): Declare also if HAVE_DECL_ATANL is set.
56742         (ceill): Declare also if HAVE_DECL_CEILL is set.
56743         (cosl): Declare also if HAVE_DECL_COSL is set.
56744         (expl): Declare also if HAVE_DECL_EXPL is set.
56745         (floorl): Declare also if HAVE_DECL_FLOORL is set.
56746         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
56747         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
56748         (logl): Declare also if HAVE_DECL_LOGL is set.
56749         (sinl): Declare also if HAVE_DECL_SINL is set.
56750         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
56751         (tanl): Declare also if HAVE_DECL_TANL is set.
56752         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
56753         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
56754         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
56755         declaration of frexpl, ldexpl.
56756         * modules/printf-frexpl (Depends-on): Add math.
56757         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
56758
56759 2007-03-05  Bruno Haible  <bruno@clisp.org>
56760
56761         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
56762         frexpl and ldexpl are declared.
56763         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
56764
56765 2007-03-05  Bruno Haible  <bruno@clisp.org>
56766
56767         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
56768         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
56769
56770 2007-03-05  Bruno Haible  <bruno@clisp.org>
56771
56772         * lib/stdio_.h: Include <stddef.h>.
56773
56774 2007-03-05  Bruno Haible  <bruno@clisp.org>
56775
56776         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
56777
56778 2007-03-05  Bruno Haible  <bruno@clisp.org>
56779
56780         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
56781         NetBSD 4, from Ralf Wildenhues.
56782
56783 2007-03-04  Bruno Haible  <bruno@clisp.org>
56784
56785         * lib/vasprintf.h: Update #if logic for the case when the functions
56786         exist but are overridden.
56787
56788 2007-03-04  Bruno Haible  <bruno@clisp.org>
56789
56790         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
56791         implementations: glibc-2.4 and MacOS X 10.3.
56792         * tests/test-vasnprintf-posix.c (test_function): Test also the case
56793         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
56794         * tests/test-vasprintf-posix.c (test_function): Likewise.
56795
56796 2007-03-04  Bruno Haible  <bruno@clisp.org>
56797
56798         * modules/vasprintf-posix-tests: New file.
56799         * tests/test-vasprintf-posix.c: New file.
56800
56801         * modules/vasprintf-posix: New file.
56802         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
56803         defined.
56804         * m4/vasprintf-posix.m4: New file.
56805         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
56806         gl_FUNC_VASPRINTF.
56807         (gl_FUNC_VASPRINTF): Invoke it.
56808         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
56809         here.
56810         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
56811
56812 2007-03-04  Bruno Haible  <bruno@clisp.org>
56813
56814         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
56815         REPLACE_GETTIMEOFDAY.
56816         * modules/sys_time (Makefile.am): Likewise.
56817         * m4/sys_time_h.m4: Likewise.
56818         * m4/gettimeofday.m4: Likewise.
56819
56820 2007-03-04  Bruno Haible  <bruno@clisp.org>
56821
56822         * modules/vasnprintf-posix-tests: New file.
56823         * tests/test-vasnprintf-posix.c: New file.
56824
56825         * modules/vasnprintf-posix: New file.
56826         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
56827         printf-frexpl.h.
56828         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
56829         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
56830         REPLACE_VASNPRINTF is defined.
56831         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
56832         gl_FUNC_VASNPRINTF.
56833         (gl_FUNC_VASNPRINTF): Invoke it.
56834         * m4/vasnprintf-posix.m4: New file.
56835         * m4/printf.m4: New file.
56836
56837 2007-03-04  Bruno Haible  <bruno@clisp.org>
56838
56839         Compile progreloc.c only if --enable-relocatable is specified.
56840         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
56841         if --enable-relocatable was specified.
56842         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
56843         lib_SOURCES.
56844
56845 2007-03-04  Jim Meyering  <jim@meyering.net>
56846
56847         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
56848         Use it consistently, rather than enumerating errno constants.
56849
56850 2007-03-04  Bruno Haible  <bruno@clisp.org>
56851
56852         * modules/xvasprintf-tests: New file.
56853         * tests/test-xvasprintf.c: New file.
56854
56855         * modules/vasprintf-tests: New file.
56856         * tests/test-vasprintf.c: New file.
56857
56858         * modules/vasnprintf-tests: New file.
56859         * tests/test-vasnprintf.c: New file.
56860
56861         * modules/vsnprintf-tests: New file.
56862         * tests/test-vsnprintf.c: New file.
56863
56864         * modules/snprintf-tests: New file.
56865         * tests/test-snprintf.c: New file.
56866
56867 2007-03-04  Bruno Haible  <bruno@clisp.org>
56868
56869         Compile relocatable.c only if --enable-relocatable is specified.
56870         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
56871         gl_RELOCATABLE_LIBRARY.
56872         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
56873         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
56874         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
56875         gl_RELOCATABLE_LIBRARY.
56876         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
56877         (Makefile.am): Remove lib_SOURCES.
56878         * modules/relocatable-lib-lgpl (configure.ac): Invoke
56879         gl_RELOCATABLE_LIBRARY.
56880         (Makefile.am): Remove lib_SOURCES.
56881         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
56882         always.
56883         * modules/relocatable-prog-wrapper (configure.ac): Invoke
56884         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
56885
56886 2007-03-04  Bruno Haible  <bruno@clisp.org>
56887
56888         * modules/argmatch-tests: New file.
56889         * tests/test-argmatch.c: New file.
56890
56891         * tests/test-allocsa.c (main): Halve the number of loop runs.
56892
56893         * modules/alloca-opt-tests: New file.
56894         * tests/test-alloca-opt.c: New file.
56895
56896 2007-03-04  Jim Meyering  <jim@meyering.net>
56897
56898         Work around difference between Linux ACLs and Solaris 10 ZFS.
56899         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
56900         for EINVAL.
56901
56902 2007-03-03  Bruno Haible  <bruno@clisp.org>
56903
56904         * modules/relocatable-prog (Depends-on): Add back progreloc's
56905         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
56906
56907 2007-03-03  Bruno Haible  <bruno@clisp.org>
56908
56909         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
56910         * modules/relocatable-lib: New file.
56911
56912 2007-03-03  Bruno Haible  <bruno@clisp.org>
56913
56914         * modules/relocatable-prog: Renamed from modules/relocatable.
56915         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
56916
56917 2007-03-03  Bruno Haible  <bruno@clisp.org>
56918
56919         * modules/relocatable-script (Files): Add doc/relocatable.texi,
56920         m4/relocatable-lib.m4.
56921         (Depends-on): Remove 'relocatable'.
56922         (configure.ac): Add gl_RELOCATABLE_NOP.
56923
56924 2007-03-03  Bruno Haible  <bruno@clisp.org>
56925
56926         * modules/relocatable-prog-wrapper: New file.
56927         * modules/relocatable (Depends-on): Add it. Remove all other
56928         dependencies except progname.
56929         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
56930
56931         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
56932         (gl_FUNC_STRERROR): Nop.
56933         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
56934
56935         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
56936         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
56937
56938         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
56939         (gl_FUNC_READLINK): Update.
56940
56941         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
56942
56943 2007-03-03  Bruno Haible  <bruno@clisp.org>
56944
56945         * lib/xreadlink.c: Include <unistd.h> unconditionally.
56946         * modules/xreadlink (Depends-on): Add unistd.
56947         * modules/xreadlink-with-size (Depends-on): Likewise.
56948
56949 2007-03-03  Bruno Haible  <bruno@clisp.org>
56950
56951         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
56952         extracted from gt_FUNC_SETENV.
56953         (gt_FUNC_SETENV): Remove macro.
56954         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
56955         remove gt_FUNC_SETENV.
56956
56957 2007-03-03  Bruno Haible  <bruno@clisp.org>
56958
56959         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
56960         ENABLE_RELOCATABLE here.
56961         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
56962
56963 2007-03-03  Bruno Haible  <bruno@clisp.org>
56964
56965         * modules/rbtreehash-list-tests (Depends-on): Add progname.
56966         * tests/test-rbtreehash_list.c: Include progname.h.
56967         (main): Call set_program_name.
56968
56969         * modules/rbtree-oset-tests (Depends-on): Add progname.
56970         * tests/test-rbtree_oset.c: Include progname.h.
56971         (main): Call set_program_name.
56972
56973         * modules/rbtree-list-tests (Depends-on): Add progname.
56974         * tests/test-rbtree_list.c: Include progname.h.
56975         (main): Call set_program_name.
56976
56977         * modules/linked-list-tests (Depends-on): Add progname.
56978         * tests/test-linked_list.c: Include progname.h.
56979         (main): Call set_program_name.
56980
56981 2007-03-03  Bruno Haible  <bruno@clisp.org>
56982
56983         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
56984         All uses of __restrict changed to _Restrict_.
56985         * lib/glob_.h (__restrict): Remove macro.
56986
56987 2007-03-02  Bruno Haible  <bruno@clisp.org>
56988
56989         * modules/gettext (configure.ac): Require gettext infrastructure
56990         from version 0.16.1.
56991
56992 2007-03-02  Bruno Haible  <bruno@clisp.org>
56993
56994         * modules/linkedhash-list-tests (Depends-on): Add progname.
56995         * tests/test-linkedhash_list.c: Include progname.h.
56996         (main): Call set_program_name.
56997
56998         * modules/carray-list-tests (Depends-on): Add progname.
56999         * tests/test-carray_list.c: Include progname.h.
57000         (main): Call set_program_name.
57001
57002         * modules/avltreehash-list-tests (Depends-on): Add progname.
57003         * tests/test-avltreehash_list.c: Include progname.h.
57004         (main): Call set_program_name.
57005
57006         * modules/avltree-oset-tests (Depends-on): Add progname.
57007         * tests/test-avltree_oset.c: Include progname.h.
57008         (main): Call set_program_name.
57009
57010         * modules/avltree-list-tests (Depends-on): Add progname.
57011         * tests/test-avltree_list.c: Include progname.h.
57012         (main): Call set_program_name.
57013
57014         * modules/array-oset-tests (Depends-on): Add progname.
57015         * tests/test-array_oset.c: Include progname.h.
57016         (main): Call set_program_name.
57017
57018         * modules/array-list-tests (Depends-on): Add progname.
57019         * tests/test-array_list.c: Include progname.h.
57020         (main): Call set_program_name.
57021
57022         * modules/argp-tests (Depends-on): Add progname.
57023         * tests/test-argp.c: Include argp.h first. Include progname.h.
57024         (main): Call set_program_name.
57025
57026 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
57027
57028         * doc/gnulib-tool.texi (Initial import): Reword description of
57029         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
57030         limited effect even if defined after the first system include.
57031
57032 2007-03-01  Bruno Haible  <bruno@clisp.org>
57033
57034         * build-aux/config.libpath: Update to libtool-1.5.22.
57035         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
57036
57037 2007-03-01  Bruno Haible  <bruno@clisp.org>
57038
57039         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
57040         foo_CFLAGS.
57041         Reported by Ralf Wildenhues.
57042
57043 2007-03-01  Bruno Haible  <bruno@clisp.org>
57044
57045         * build-aux/install-reloc: Remove object files left over by some
57046         compilers.
57047         Reported by Ralf Wildenhues.
57048
57049 2007-03-01  Bruno Haible  <bruno@clisp.org>
57050
57051         * build-aux/install-reloc: Break long lines.
57052
57053 2007-03-01  Bruno Haible  <bruno@clisp.org>
57054
57055         * doc/relocatable.texi: Document that it may not work on OpenBSD.
57056         Reported by Ralf Wildenhues.
57057
57058 2007-03-01  Bruno Haible  <bruno@clisp.org>
57059
57060         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
57061         include ordering constraints.
57062
57063 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
57064
57065         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
57066         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
57067         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
57068         as another example.
57069         * lib/time_.h: Fix misspelling.
57070         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
57071         Require gl_HEADER_TIME_H_DEFAULTS.
57072         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
57073         * m4/time_r.m4 (gl_TIME_R): Likewise.
57074         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
57075
57076 2007-03-01  Bruno Haible  <bruno@clisp.org>
57077
57078         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
57079         * m4/utimens.m4 (gl_UTIMENS): Likewise.
57080
57081 2007-03-01  Jim Meyering  <jim@meyering.net>
57082
57083         * modules/xreadlink (Maintainer): Add my name.
57084         * modules/xreadlink-with-size (Depends-on): Alphabetize.
57085
57086 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
57087             Bruno Haible  <bruno@clisp.org>
57088
57089         * build-aux/install-reloc: Compile also c-ctype.c.
57090         * build-aux/relocatable.sh.in: New file.
57091         * doc/relocatable.texi: New file.
57092         * doc/relocatable-maint.texi: New file.
57093         * doc/gnulib.texi: Include relocatable-maint.texi.
57094         * lib/progreloc.c: Include unistd.h unconditionally.
57095         * lib/relocwrapper.c: Include unistd.h unconditionally.
57096         Include c-ctype.h.
57097         (add_dotbin): Use c_tolower.
57098         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
57099         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
57100         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
57101         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
57102         to m4/relocatable-lib.m4.
57103         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
57104         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
57105         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
57106         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
57107         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
57108         * modules/relocatable: New file.
57109         * modules/relocatable-lib: New file.
57110         * modules/relocatable-script: New file.
57111
57112 2007-02-28  Bruno Haible  <bruno@clisp.org>
57113
57114         Import --enable-relocatable infrastructure.
57115         * build-aux/config.libpath: New file, from GNU gettext.
57116         * build-aux/install-reloc: New file, from GNU gettext.
57117         * build-aux/reloc-ldflags: New file, from GNU gettext.
57118         * lib/relocatable.h: New file, from GNU gettext.
57119         * lib/relocatable.c: New file, from GNU gettext.
57120         * lib/relocwrapper.c: New file, from GNU gettext.
57121         * m4/relocatable.m4: New file, from GNU gettext.
57122
57123 2007-02-28  Bruno Haible  <bruno@clisp.org>
57124
57125         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
57126
57127         * modules/xreadlink: New file, from GNU gettext with modifications.
57128         * lib/xreadlink.c: New file, from GNU gettext.
57129         * lib/xreadlink.h: Add comments.
57130         (xreadlink): New declaration.
57131
57132         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
57133         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
57134         lib/xreadlink-with-size.c.
57135         (configure.ac): Remove gl_XREADLINK invocation.
57136         (Makefile.am): Augment lib_SOURCES.
57137         * m4/xreadlink.m4: Remove file.
57138         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
57139         (xreadlink_with_size): Renamed from xreadink.
57140         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
57141         * modules/canonicalize (Depends-on): Replace xreadlink with
57142         xreadlink-with-size.
57143         * lib/canonicalize.c (canonicalize_filename_mode): Update.
57144
57145 2007-02-25  Jim Meyering  <jim@meyering.net>
57146
57147         * build-aux/announce-gen: When complaining about excess arguments,
57148         list them.
57149
57150 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
57151
57152         * README: Document signed integer overflow situation more
57153         accurately.
57154
57155 2007-02-25  Bruno Haible  <bruno@clisp.org>
57156
57157         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
57158         'a' or 'A' conversion.
57159
57160 2007-02-25  Bruno Haible  <bruno@clisp.org>
57161
57162         * modules/filename: Renamed from modules/pathname.
57163         (Files): Replace lib/pathname.h with lib/filename.h. Replace
57164         lib/concatpath.c with lib/concat-filename.c.
57165         (Makefile.am): Update.
57166         (Include): Replace pathname.h with filename.h.
57167         * lib/filename.h: Renamed from lib/pathname.h.
57168         (concatenated_filename): Renamed from concatenated_pathname.
57169         * lib/concat-filename.c: Renamed from lib/concatpath.c.
57170         (concatenated_filename): Renamed from concatenated_pathname.
57171         * lib/findprog.c: Include filename.h instead of pathname.h.
57172         (find_in_path): Update.
57173         * lib/javacomp.c: Include filename.h instead of pathname.h.
57174         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
57175         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
57176         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
57177         is_oldgcj_14_13_usable, is_javac_usable): Update.
57178         * lib/javaexec.c: Include filename.h instead of pathname.h.
57179         (execute_java_class): Update.
57180         * modules/findprog: Update.
57181         * modules/javacomp: Update.
57182         * modules/javaexec: Update.
57183         * MODULES.html.sh (File system functions): Add 'filename', remove
57184         'pathname'.
57185
57186 2007-02-25  Bruno Haible  <bruno@clisp.org>
57187
57188         * modules/printf-frexpl-tests: New file.
57189         * tests/test-printf-frexpl.c: New file.
57190
57191         * modules/printf-frexpl: New file.
57192         * lib/printf-frexpl.h: New file.
57193         * lib/printf-frexpl.c: New file.
57194         * m4/printf-frexpl.m4: New file.
57195
57196 2007-02-25  Bruno Haible  <bruno@clisp.org>
57197
57198         * modules/printf-frexp-tests: New file.
57199         * tests/test-printf-frexp.c: New file.
57200
57201         * modules/printf-frexp: New file.
57202         * lib/printf-frexp.h: New file.
57203         * lib/printf-frexp.c: New file.
57204         * m4/printf-frexp.m4: New file.
57205
57206 2007-02-25  Bruno Haible  <bruno@clisp.org>
57207
57208         Assume automake >= 1.10 for the tests.
57209         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
57210         * modules/arctwo-tests: Likewise.
57211         * modules/argp-tests: Likewise.
57212         * modules/avltree-list-tests: Likewise.
57213         * modules/avltree-oset-tests: Likewise.
57214         * modules/avltreehash-list-tests: Likewise.
57215         * modules/carray-list-tests: Likewise.
57216         * modules/crc-tests: Likewise.
57217         * modules/des-tests: Likewise.
57218         * modules/gc-arcfour-tests: Likewise.
57219         * modules/gc-arctwo-tests: Likewise.
57220         * modules/gc-des-tests: Likewise.
57221         * modules/gc-hmac-md5-tests: Likewise.
57222         * modules/gc-hmac-sha1-tests: Likewise.
57223         * modules/gc-md2-tests: Likewise.
57224         * modules/gc-md4-tests: Likewise.
57225         * modules/gc-md5-tests: Likewise.
57226         * modules/gc-pbkdf2-sha1-tests: Likewise.
57227         * modules/gc-rijndael-tests: Likewise.
57228         * modules/gc-sha1-tests: Likewise.
57229         * modules/gc-tests: Likewise.
57230         * modules/getaddrinfo-tests: Likewise.
57231         * modules/hmac-md5-tests: Likewise.
57232         * modules/hmac-sha1-tests: Likewise.
57233         * modules/linked-list-tests: Likewise.
57234         * modules/linkedhash-list-tests: Likewise.
57235         * modules/lock-tests: Likewise.
57236         * modules/md2-tests: Likewise.
57237         * modules/md4-tests: Likewise.
57238         * modules/md5-tests: Likewise.
57239         * modules/rbtree-list-tests: Likewise.
57240         * modules/rbtree-oset-tests: Likewise.
57241         * modules/rbtreehash-list-tests: Likewise.
57242         * modules/read-file-tests: Likewise.
57243         * modules/rijndael-tests: Likewise.
57244         * modules/stdint-tests: Likewise.
57245         * modules/tls-tests: Likewise.
57246
57247 2007-02-24  Bruno Haible  <bruno@clisp.org>
57248
57249         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
57250         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
57251         function; instead check whether isnan with a double argument links.
57252         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
57253         function; instead check whether isnan with a 'long double' argument
57254         links.
57255         Reported by Eric Blake <ebb9@byu.net>.
57256
57257 2007-02-24  Bruno Haible  <bruno@clisp.org>
57258
57259         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
57260         defined.
57261         * lib/isnanl.c: Remove all code. Just include isnan.c.
57262         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
57263
57264 2007-02-25  Jim Meyering  <jim@meyering.net>
57265
57266         Avoid conflicting types for 'unsetenv' on FreeBSD.
57267         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
57268         conflicting with FreeBSD's (5.0 and 6.1) function declaration
57269         in stdlib.h.
57270
57271 2007-02-24  Bruno Haible  <bruno@clisp.org>
57272
57273         * modules/isnanl-nolibm-tests: New file.
57274         * tests/test-isnanl.c: New file.
57275
57276         * modules/isnanl-nolibm: New file.
57277         * lib/isnanl.h: New file.
57278         * lib/isnanl.c: New file.
57279         * m4/isnanl.m4: New file.
57280
57281 2007-02-24  Bruno Haible  <bruno@clisp.org>
57282
57283         * modules/isnan-nolibm-tests: New file.
57284         * tests/test-isnan.c: New file.
57285
57286         * modules/isnan-nolibm: New file.
57287         * lib/isnan.h: New file.
57288         * lib/isnan.c: New file.
57289         * m4/isnan.m4: New file.
57290
57291 2007-02-24  Bruno Haible  <bruno@clisp.org>
57292
57293         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
57294         assume that an exponent fits in 20 bits.
57295
57296 2007-02-24  Jim Meyering  <jim@meyering.net>
57297
57298         * m4/regex.m4: Update the description of the configure-time option,
57299         --without-included-regex, to state accurately what the defaults are,
57300         and perhaps to give people an idea why using this option is risky.
57301
57302 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
57303
57304         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
57305         loops on small arguments.  This attempts to avoid the problem
57306         Bruno Haible reported for AIX 4.3.2 in
57307         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
57308
57309 2007-02-23  Bruno Haible  <bruno@clisp.org>
57310
57311         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
57312         Needed for help2man.
57313
57314 2007-02-23  Karl Berry  <karl@gnu.org>
57315
57316         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
57317         exists, foo.h should be cvs-ignored, not committed.
57318
57319 2007-02-23  Eric Blake  <ebb9@byu.net>
57320
57321         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
57322         * lib/stat-time.h (includes): Likewise.
57323         * lib/utimecmp.c (includes): Likewise.
57324         * lib/utimens.h (includes): Likewise.
57325         * lib/getdate.y (includes): Also include "timespec.h" for use
57326         internal to the module.
57327         * modules/utimens (Depends-on): Revert yesterday's patch.
57328         * modules/nanosleep (Depends-on): Add missing dependency.
57329
57330 2007-02-22  Bruno Haible  <bruno@clisp.org>
57331
57332         * lib/glob.c: Don't include getlogin_r.h.
57333
57334 2007-02-22  Jim Meyering  <jim@meyering.net>
57335
57336         * modules/utimens (Depends-on): Add timespec, required for
57337         utimens.h's inclusion of timespec.h.
57338
57339 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
57340
57341         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
57342         long unreadable paths in GNU/Linux.  Problem reported by Andreas
57343         Schwab in
57344         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
57345         I'll try to think of a better way to fix the Solaris problem.
57346
57347         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
57348         like glibc; on Solaris 10, it fails with errno == EINVAL.
57349         POSIX says the behavior is unspecified if the first argument is NULL,
57350         so play it safe and never pass NULL to the system getcwd.
57351
57352 2007-02-21  Jim Meyering  <jim@meyering.net>
57353
57354         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
57355         of gettimeofday.  It would conflict with the one now always
57356         provided via sys_time_.h.  Reported by Matthew Woehlke, as
57357         an IRIX 6.5 build failure.
57358
57359 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
57360
57361         Minor fixups to port to Solaris 10 with Sun C 5.8.
57362         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
57363         * modules/getcwd (Depends-on): Add dirfd.
57364         * lib/putenv.c (putenv): #undef it.
57365         (rpl_putenv): New decl.
57366         (malloc, free): Include <stdlib.h> rather than prototyping separately.
57367
57368 2007-02-20  Bruno Haible  <bruno@clisp.org>
57369
57370         * modules/stdio-tests: New file.
57371         * tests/test-stdio.c: New file.
57372
57373         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
57374         (Depends-on): Add stdio.
57375         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
57376         (Include): Use <stdio.h> instead of vsnprintf.h.
57377         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
57378         HAVE_DECL_VSNPRINTF.
57379         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
57380
57381         * modules/snprintf (Files): Remove lib/snprintf.h.
57382         (Depends-on): Add stdio.
57383         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
57384         (Include): Use <stdio.h> instead of snprintf.h.
57385         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
57386         HAVE_DECL_SNPRINTF.
57387         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
57388         * lib/getaddrinfo.c: Likewise.
57389
57390         * modules/stdio: New file.
57391         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
57392         * lib/snprintf.h: Remove file.
57393         * lib/vsnprintf.h: Remove file.
57394         * lib/.cppi-disable: Remove snprintf.h.
57395         * m4/stdio_h.m4: New file.
57396         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
57397
57398 2007-02-20  Jim Meyering  <jim@meyering.net>
57399
57400         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
57401         used by e.g., mingw.  From Bruno Haible.
57402
57403 2007-02-19  Bruno Haible  <bruno@clisp.org>
57404
57405         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
57406         warnings.
57407         Reported by Ben Pfaff <blp@cs.stanford.edu>.
57408
57409 2007-02-19  Bruno Haible  <bruno@clisp.org>
57410
57411         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
57412         from mingw users.
57413
57414 2007-02-19  Bruno Haible  <bruno@clisp.org>
57415
57416         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
57417         warnings.
57418         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
57419
57420 2007-02-19  Jim Meyering  <jim@meyering.net>
57421
57422         Don't use FD after a successful "fdopendir (fd)".
57423         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
57424         Reset it by calling dirfd on the just-obtained DIR*.
57425
57426         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
57427         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
57428
57429 2007-02-18  Bruno Haible  <bruno@clisp.org>
57430
57431         * lib/readlink.c: Include <unistd.h>.
57432         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
57433         HAVE_READLINK.
57434         * modules/readlink (Depends-on): Add unistd.
57435         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57436         (Include): Add <unistd.h>.
57437
57438         * lib/getlogin_r.h: Remove file.
57439         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
57440         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
57441         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
57442         HAVE_DECL_GETLOGIN_R.
57443         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
57444         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57445         (Include): Use <unistd.h> instead of getlogin_r.h.
57446
57447         * lib/getcwd.h: Remove file.
57448         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
57449         * lib/xgetcwd.c: Likewise.
57450         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
57451         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
57452         * modules/getcwd (Files): Remove lib/getcwd.h.
57453         (Depends-on): Add unistd.
57454         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57455         (Include): Use <unistd.h> instad of getcwd.h.
57456
57457         * lib/ftruncate.c: Include <unistd.h> first.
57458         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
57459         Set HAVE_FTRUNCATE.
57460         * modules/ftruncate (Depends-on): Add unistd.
57461         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57462
57463         * lib/fchdir.c: Include <unistd.h> first.
57464         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
57465         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
57466         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
57467         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57468         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
57469
57470         * lib/dup2.c: Include <unistd.h> first.
57471         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
57472         HAVE_DUP2.
57473         * modules/dup2 (Depends-on): Add unistd.
57474         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57475
57476         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
57477         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
57478         REPLACE_CHOWN. Don't define chown as a macro here.
57479         * modules/chown (Depends-on): Add unistd.
57480         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57481
57482         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
57483         Add definition for GL_LINK_WARNING.
57484         (chown, dup2): New declarations.
57485         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
57486         link warning.
57487         (ftruncate): New declaration.
57488         (getcwd): New declaration, taken from old getcwd.h.
57489         (getlogin_r): New declaration, taken from old getlogin_r.h.
57490         (readlink): New declaration.
57491         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
57492         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
57493         (gl_PREREQ_UNISTD): Remove macro.
57494         (gl_UNISTD_MODULE_INDICATOR): New macro.
57495         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
57496         many new variables. Don't set UNISTD_H.
57497         * modules/unistd (Description): Change.
57498         (Depends-on): Add link-warning.
57499         (configure.ac): Update.
57500         (Makefile.am): Create unistd.h always. Substitute many new variables
57501         into it.
57502
57503 2007-02-18  Bruno Haible  <bruno@clisp.org>
57504
57505         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
57506         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
57507         HAVE_GETSUBOPT.
57508         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
57509         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
57510         * lib/getsubopt.h: Remove file.
57511         * modules/getsubopt (Files): Remove lib/getsubopt.h.
57512         (Depends-on): Add stdlib.
57513         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57514         (Includes): Use <stdlib.h> instead of getsubopt.h.
57515         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
57516         Set HAVE_GETSUBOPT.
57517         * lib/getsubopt.c: Don't include getsubopt.h.
57518
57519 2007-02-18  Bruno Haible  <bruno@clisp.org>
57520
57521         * modules/fchdir (Depends-on): Add dup2.
57522
57523 2007-02-18  Bruno Haible  <bruno@clisp.org>
57524
57525         * lib/stdlib_.h: Handle glibc's special invocation convention
57526         specially.
57527
57528 2007-02-18  Bruno Haible  <bruno@clisp.org>
57529
57530         * modules/stdlib-tests: New file.
57531         * tests/test-stdlib.c: New file.
57532
57533         * modules/mkstemp (Files): Remove lib/mkstemp.h.
57534         (Depends-on): Add stdlib.
57535         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57536         (Includes): Use <stdlib.h> instead of mkstemp.h.
57537         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
57538         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
57539         * lib/mkstemp.c: Don't include mkstemp.h.
57540         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
57541         * lib/stdlib--.h: Don't include mkstemp.h.
57542
57543         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
57544         (Depends-on): Add stdlib.
57545         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57546         (Includes): Use <stdlib.h> instead of mkdtemp.h.
57547         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
57548         HAVE_MKDTEMP.
57549         * lib/mkdtemp.c: Don't include mkdtemp.h.
57550         * lib/clean-temp.c: Don't include mkdtemp.h.
57551
57552         * modules/exit (Files): Remove lib/exit.h.
57553         (Depends-on): Add stdlib.
57554         (Makefile.am): Remove lib_SOURCES.
57555         (Include): Use <stdlib.h> instead of exit.h.
57556         * lib/argmatch.c: Don't include exit.h.
57557         * lib/execute.c: Likewise.
57558         * lib/pagealign_alloc.c: Likewise.
57559         * lib/pipe.c: Likewise.
57560         * lib/wait-process.c: Likewise.
57561         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
57562         * lib/exitfail.c: Likewise.
57563         * lib/savewd.c: Likewise.
57564         * lib/xsetenv.c: Likewise.
57565
57566         * modules/stdlib: New file.
57567         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
57568         and extra comments about mkstemp().
57569         * lib/exit.h: Remove file.
57570         * lib/mkdtemp.h: Remove file.
57571         * lib/mkstemp.h: Remove file.
57572         * m4/stdlib_h.m4: New file.
57573         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
57574
57575 2007-02-18  Bruno Haible  <bruno@clisp.org>
57576
57577         * modules/math-tests: New file.
57578         * tests/test-math.c: New file.
57579
57580         * modules/math: New file.
57581         * modules/mathl (Files): Remove lib/mathl.h.
57582         (Depends-on): Add math.
57583         (Makefile.am): Don't mention mathl.h.
57584         (Include): Use <math.h> instead of mathl.h.
57585         * lib/math_.h: New file.
57586         * lib/mathl.h: Remove file.
57587         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
57588         mathl.h.
57589         * lib/asinl.c: Likewise.
57590         * lib/atanl.c: Likewise.
57591         * lib/ceill.c: Likewise.
57592         * lib/cosl.c: Likewise.
57593         * lib/expl.c: Likewise.
57594         * lib/floorl.c: Likewise.
57595         * lib/frexpl.c: Likewise.
57596         * lib/ldexpl.c: Likewise.
57597         * lib/logl.c: Likewise.
57598         * lib/sincosl.c: Likewise.
57599         * lib/sinl.c: Likewise.
57600         * lib/sqrtl.c: Likewise.
57601         * lib/tanl.c: Likewise.
57602         * lib/trigl.c: Likewise.
57603         * m4/math_h.m4: New file.
57604         * MODULES.html.sh (Mathematics): Add math.
57605
57606 2007-02-17  Bruno Haible  <bruno@clisp.org>
57607
57608         * modules/wctype-tests: New file.
57609         * tests/test-wctype.c: New file.
57610
57611         * modules/wchar-tests: New file.
57612         * tests/test-wchar.c: New file.
57613
57614         * modules/unistd-tests: New file.
57615         * tests/test-unistd.c: New file.
57616
57617         * modules/time-tests: New file.
57618         * tests/test-time.c: New file.
57619
57620         * modules/sysexits-tests: New file.
57621         * tests/test-sysexits.c: New file.
57622
57623         * modules/sys_time-tests: New file.
57624         * tests/test-sys_time.c: New file.
57625
57626         * modules/sys_stat-tests: New file.
57627         * tests/test-sys_stat.c: New file.
57628
57629         * modules/sys_socket-tests: New file.
57630         * tests/test-sys_socket.c: New file.
57631
57632         * modules/sys_select-tests: New file.
57633         * tests/test-sys_select.c: New file.
57634
57635         * modules/string-tests: New file.
57636         * tests/test-string.c: New file.
57637
57638         * modules/stdbool-tests: New file.
57639         * tests/test-stdbool.c: New file.
57640
57641         * modules/netinet_in-tests: New file.
57642         * tests/test-netinet_in.c: New file.
57643
57644         * modules/inttypes-tests: New file.
57645         * tests/test-inttypes.c: New file.
57646
57647         * modules/fcntl-tests: New file.
57648         * tests/test-fcntl.c: New file.
57649
57650         * modules/byteswap-tests: New file.
57651         * tests/test-byteswap.c: New file.
57652
57653         * modules/arpa_inet-tests: New file.
57654         * tests/test-arpa_inet.c: New file.
57655
57656 2007-02-17  Bruno Haible  <bruno@clisp.org>
57657
57658         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
57659         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
57660         if the corresponding module is not enabled. Emit link warnings if
57661         the function is used nevertheless.
57662         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
57663         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
57664         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
57665         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
57666         * modules/inttypes (Depends-on): Add link-warning.
57667         (Makefile.am): Copy the contents of build-aux/link-warning.h into
57668         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
57669         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
57670         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
57671         * modules/imaxdiv (configure.ac): Likewise.
57672         * modules/strtoimax (configure.ac): Likewise.
57673         * modules/strtoumax (configure.ac): Likewise.
57674
57675 2007-02-17  Bruno Haible  <bruno@clisp.org>
57676
57677         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
57678         gl_STRING_MODULE_INDICATOR_DEFAULTS.
57679         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
57680         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
57681
57682 2007-02-17  Bruno Haible  <bruno@clisp.org>
57683
57684         * modules/link-warning: New file.
57685         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
57686         * lib/string_.h (GL_LINK_WARNING): Remove definition.
57687         * modules/string (Depends-on): Add link-warning.
57688         (Makefile.am): Copy the contents of build-aux/link-warning.h into
57689         string.h.
57690         * MODULES.html.sh (Support for building libraries and executables): Add
57691         link-warning.
57692
57693 2007-02-17  Bruno Haible  <bruno@clisp.org>
57694
57695         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
57696         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
57697         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
57698         long lines.
57699
57700 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
57701             Bruno Haible  <bruno@clisp.org>
57702
57703         * modules/tmpfile: New file.
57704         * lib/tmpfile.c: New file.
57705         * m4/tmpfile.m4: New file.
57706         * MODULES.html.sh (func_all_modules): New section "Input/output".
57707
57708 2007-02-15  Bruno Haible  <bruno@clisp.org>
57709
57710         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
57711         (supports_delete_on_close): New function.
57712         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
57713
57714 2007-02-14  Bruno Haible  <bruno@clisp.org>
57715
57716         * modules/mbspcasecmp-tests: New file.
57717         * tests/test-mbspcasecmp.sh: New file.
57718         * tests/test-mbspcasecmp.c: New file.
57719
57720         New module mbspcasecmp.
57721         * modules/mbspcasecmp: New file.
57722         * lib/mbspcasecmp.c: New file.
57723         * lib/string_.h (strncasecmp): Change warning message.
57724         (mbspcasecmp): New declaration.
57725         * m4/mbspcasecmp.m4: New file.
57726         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57727         GNULIB_MBSPCASECMP.
57728         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
57729         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
57730
57731 2007-02-14  Bruno Haible  <bruno@clisp.org>
57732
57733         * modules/mbsncasecmp-tests: New file.
57734         * tests/test-mbsncasecmp.sh: New file.
57735         * tests/test-mbsncasecmp.c: New file.
57736
57737         New module mbsncasecmp.
57738         * modules/mbsncasecmp: New file.
57739         * lib/mbsncasecmp.c: New file.
57740         * lib/string_.h (mbsncasecmp): New declaration.
57741         * m4/mbsncasecmp.m4: New file.
57742         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57743         GNULIB_MBSNCASECMP.
57744         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
57745         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
57746
57747 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
57748
57749         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
57750         Verify that it doesn't overlap with our flags.
57751         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
57752         do not have the desired effect in multibyte locales; instead, use
57753         mbscasecmp.
57754         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
57755         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
57756         we don't require GNU fnmatch ourselves (if our users require it, they
57757         should do so explicitly).
57758
57759         Fix regex code so it doesn't rely on strcasecmp.
57760         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
57761         Otherwise, include gnulib's langinfo.h.
57762         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
57763         undesirable behavior in non-C locales.  Instead, rely on localecharset.
57764         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
57765         * modules/regex (FILES): Remove m4/codeset.m4.
57766         (Depends-on): Add localcharset.  Remove strcase.
57767
57768 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57769
57770         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
57771         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
57772
57773 2007-02-13  Bruno Haible  <bruno@clisp.org>
57774
57775         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
57776         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57777
57778 2007-02-12  Bruno Haible  <bruno@clisp.org>
57779
57780         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
57781         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
57782         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
57783         time warning rather than a link error.
57784
57785 2007-02-12  Bruno Haible  <bruno@clisp.org>
57786
57787         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
57788         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
57789         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57790
57791 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
57792
57793         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
57794         args, not 2.
57795
57796 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
57797
57798         New module 'time', so that apps can include <time.h> as per
57799         POSIX and GNU instead of separate include files like time_r.h
57800         and timegm.h.  This implementation tries out a simpler approach
57801         for replacing decls in standard include files (as compared to
57802         the string module), somewhat as an experiment.
57803
57804         * config/srclist.txt: Comment out mktime.c for now.
57805         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
57806         since it doesn't apply any more.  Use generic wording instead.
57807         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
57808         'time'.
57809         * lib/time_.h, m4/time_h.m4, modules/time: New files.
57810         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
57811         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
57812         Don't include <sys/types.h>; no longer needed since we assume C89.
57813         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
57814         * lib/strftime.c: Likewise.
57815         * lib/time_r.c: Likewise.
57816         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
57817         * lib/nanosleep.c: Include <time.h> first, to check interface.
57818         * lib/strptime.c: Likewise.
57819         * lib/time_r.c: Likewise.
57820         * lib/timegm.c: Likewise.
57821         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
57822         needed.
57823         * lib/timegm.c: Don't include timegm.h; no longer needed.
57824         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
57825         time.h now handles any problems in that area.
57826         (struct timespec, nanosleep): Remove; time.h now arranges for these.
57827         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
57828         that time.h defines struct timespec.
57829         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
57830         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
57831         handles that.
57832         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
57833         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
57834         needed.  Set REPLACE_LOCALTIME.
57835         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
57836         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
57837         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
57838         nanosleep; time_h.m4 now does that.  Don't require
57839         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
57840         module handles this now.
57841         * modules/getdate (Depends-on): Remove timespec.  Add time.
57842         * modules/nanosleep (Depends-on): Likewise.
57843         * modules/stat-time (Depends-on): Likewise.
57844         * modules/nanosleep (Include): Include time.h, not timespec.h.
57845         * modules/strptime (Files): Remove lib/strptime.h.
57846         (Depends-on): Add extensions, time.
57847         (Include): Include time.h, not strptime.h.
57848         * modules/time_r (Files): Remove lib/time_r.h.
57849         (Depends-on): Add time.
57850         (Include): Include time.h, not time_r.h.
57851         * modules/timegm: Likewise.
57852         * modules/timespec (Description): Now does timespec-related decls
57853         of our own, instead of struct timespec itself.
57854         (Depends-on): Add time; remove extensions.
57855         (Maintainer): Add self.
57856         * modules/utimecmp (Depends-on): Add time; remove timespec.
57857         * modules/utimens (Depends-on): Likewise.
57858         * modules/xnanosleep (Depends-on): Likewise.
57859
57860 2007-02-11  Bruno Haible  <bruno@clisp.org>
57861
57862         * lib/c-strstr.c: Include allocsa.h.
57863         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
57864         * lib/c-strcasestr.c: Include allocsa.h.
57865         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
57866         * lib/strcasestr.c: Include allocsa.h.
57867         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
57868         * lib/mbsstr.c: Include allocsa.h.
57869         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
57870         allocsa/freesa instead of malloc/free.
57871         * lib/mbscasestr.c: Include allocsa.h.
57872         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
57873         allocsa/freesa instead of malloc/free.
57874         * modules/c-strstr (Depends-on): Add allocsa.
57875         * modules/c-strcasestr (Depends-on): Likewise.
57876         * modules/strcasestr (Depends-on): Likewise.
57877         * modules/mbsstr (Depends-on): Likewise.
57878         * modules/mbscasestr (Depends-on): Likewise.
57879
57880 2007-02-11  Bruno Haible  <bruno@clisp.org>
57881
57882         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
57883
57884         * modules/mbsspn-tests: New file.
57885         * tests/test-mbsspn.sh: New file.
57886         * tests/test-mbsspn.c: New file.
57887
57888 2007-02-11  Bruno Haible  <bruno@clisp.org>
57889
57890         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
57891
57892         * modules/mbspbrk-tests: New file.
57893         * tests/test-mbspbrk.sh: New file.
57894         * tests/test-mbspbrk.c: New file.
57895
57896 2007-02-11  Bruno Haible  <bruno@clisp.org>
57897
57898         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
57899         unneeded cast.
57900
57901         * modules/mbscspn-tests: New file.
57902         * tests/test-mbscspn.sh: New file.
57903         * tests/test-mbscspn.c: New file.
57904
57905 2007-02-11  Bruno Haible  <bruno@clisp.org>
57906
57907         * modules/mbscasecmp-tests: New file.
57908         * tests/test-mbscasecmp.sh: New file.
57909         * tests/test-mbscasecmp.c: New file.
57910
57911 2007-02-11  Bruno Haible  <bruno@clisp.org>
57912
57913         Ensure O(n) worst-case complexity of mbscasestr.
57914         * lib/mbscasestr.c: Include stdbool.h.
57915         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
57916         functions.
57917         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
57918         the bookkeeping indicates that it's worth it.
57919         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
57920
57921         * modules/mbscasestr-tests: New file.
57922         * tests/test-mbscasestr1.c: New file.
57923         * tests/test-mbscasestr2.sh: New file.
57924         * tests/test-mbscasestr2.c: New file.
57925         * tests/test-mbscasestr3.sh: New file.
57926         * tests/test-mbscasestr3.c: New file.
57927         * tests/test-mbscasestr4.sh: New file.
57928         * tests/test-mbscasestr4.c: New file.
57929         * m4/locale-tr.m4: New file.
57930
57931 2007-02-11  Bruno Haible  <bruno@clisp.org>
57932
57933         Ensure O(n) worst-case complexity of mbsstr.
57934         * lib/mbsstr.c: Include stdbool.h.
57935         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
57936         functions.
57937         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
57938         bookkeeping indicates that it's worth it.
57939         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
57940
57941         * modules/mbsstr-tests: New file.
57942         * tests/test-mbsstr1.c: New file.
57943         * tests/test-mbsstr2.sh: New file.
57944         * tests/test-mbsstr2.c: New file.
57945         * tests/test-mbsstr3.sh: New file.
57946         * tests/test-mbsstr3.c: New file.
57947         * m4/locale-fr.m4: New file.
57948
57949 2007-02-11  Bruno Haible  <bruno@clisp.org>
57950
57951         * lib/mbsrchr.c (mbsrchr): Fix bug.
57952
57953         * modules/mbsrchr-tests: New file.
57954         * tests/test-mbsrchr.sh: New file.
57955         * tests/test-mbsrchr.c: New file.
57956
57957 2007-02-11  Bruno Haible  <bruno@clisp.org>
57958
57959         * lib/mbschr.c (mbschr): Fix bug.
57960
57961         * modules/mbschr-tests: New file.
57962         * tests/test-mbschr.sh: New file.
57963         * tests/test-mbschr.c: New file.
57964         * m4/locale-zh.m4: New file.
57965
57966 2007-02-11  Bruno Haible  <bruno@clisp.org>
57967
57968         Support for copying multibyte string iterators.
57969         * lib/mbiter.h: Include <string.h>.
57970         (mbiter_multi_copy): New function.
57971         (mbi_copy): New macro.
57972         * lib/mbuiter.h: Include <string.h>.
57973         (mbuiter_multi_copy): New function.
57974         (mbui_copy): New macro.
57975
57976 2007-02-11  Bruno Haible  <bruno@clisp.org>
57977
57978         New module mbslen.
57979         * modules/mbslen: New file.
57980         * lib/mbslen.c: New file.
57981         * lib/string_.h (mbslen): New declaration.
57982         * m4/mbslen.m4: New file.
57983         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57984         GNULIB_MBSLEN.
57985         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
57986         * MODULES.html.sh (Internationalization functions): Add mbslen.
57987
57988 2007-02-11  Bruno Haible  <bruno@clisp.org>
57989
57990         Ensure O(n) worst-case complexity of strcasestr substitute.
57991         * lib/strcasestr.c: Include stdbool.h.
57992         (knuth_morris_pratt): New function.
57993         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
57994         bookkeeping indicates that it's worth it.
57995         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
57996
57997         * modules/strcasestr-tests: New file.
57998         * tests/test-strcasestr.c: New file.
57999
58000 2007-02-11  Bruno Haible  <bruno@clisp.org>
58001
58002         Ensure O(n) worst-case complexity of c_strcasestr.
58003         * lib/c-strcasestr.c: Include stdbool.h, string.h.
58004         (knuth_morris_pratt): New function.
58005         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
58006         the bookkeeping indicates that it's worth it.
58007         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
58008
58009         * modules/c-strcasestr-tests: New file.
58010         * tests/test-c-strcasestr.c: New file.
58011
58012 2007-02-11  Bruno Haible  <bruno@clisp.org>
58013
58014         Ensure O(n) worst-case complexity of c_strstr.
58015         * lib/c-strstr.c: Include stdbool.h, string.h.
58016         (knuth_morris_pratt): New function.
58017         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
58018         bookkeeping indicates that it's worth it.
58019         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
58020
58021         * lib/c-strstr.c: Complete rewrite for maintainability.
58022
58023         * modules/c-strstr-tests: New file.
58024         * tests/test-c-strstr.c: New file.
58025
58026 2007-02-11  Bruno Haible  <bruno@clisp.org>
58027
58028         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
58029         5.2.1 and earlier, whereby \055 was treated just like the range
58030         delimiter '-'.
58031         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
58032
58033 2007-02-08  Bruno Haible  <bruno@clisp.org>
58034
58035         * modules/regex (Depends-on): Add stdbool.
58036         Reported by Dalibor Topic <robilad@kaffe.org>.
58037
58038 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
58039
58040         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
58041         Prefer returning from main to exiting from it.
58042         Remove unnecessary parens after sizeof.
58043
58044 2007-02-05  Bruno Haible  <bruno@clisp.org>
58045
58046         New module mbssep.
58047         * modules/mbssep: New file.
58048         * lib/mbssep.c: New file.
58049         * lib/string_.h (strsep): Add a conditional link warning.
58050         (mbssep): New declaration.
58051         * m4/mbssep.m4: New file.
58052         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58053         GNULIB_MBSSEP.
58054         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
58055         * MODULES.html.sh (Internationalization functions): Add mbssep.
58056
58057 2007-02-05  Bruno Haible  <bruno@clisp.org>
58058
58059         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
58060         Optimize search in case of 1 delimiter.
58061
58062 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
58063
58064         * lib/acl.h: Include sys/types.h before sys/acl.h.
58065
58066 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
58067
58068         Merge upstream fix for glibc bugzilla #3957:
58069
58070         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
58071
58072         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
58073         bit for RE_HAT_LISTS_NOT_NEWLINE.
58074         (build_charclass_op): Remove bogus comment.
58075
58076 2007-02-05  Simon Josefsson  <simon@josefsson.org>
58077
58078         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
58079
58080 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
58081
58082         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
58083         * lib/memmem.c [!defined _LIBC]: Include config.h.
58084
58085 2007-02-04  Bruno Haible  <bruno@clisp.org>
58086
58087         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
58088         warning message.
58089
58090 2007-02-04  Bruno Haible  <bruno@clisp.org>
58091
58092         New module mbstok_r.
58093         * modules/mbstok_r: New file.
58094         * lib/mbstok_r.c: New file.
58095         * lib/string_.h (strtok_r): Change argument names to match the
58096         comments. Add a conditional link warning.
58097         (mbstok_r): New declaration.
58098         * m4/mbstok_r.m4: New file.
58099         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58100         GNULIB_MBSTOK_R.
58101         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
58102         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
58103
58104 2007-02-04  Bruno Haible  <bruno@clisp.org>
58105
58106         New module mbsspn.
58107         * modules/mbsspn: New file.
58108         * lib/mbsspn.c: New file.
58109         * lib/string_.h (strspn): Add a conditional link warning.
58110         (mbsspn): New declaration.
58111         * m4/mbsspn.m4: New file.
58112         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58113         GNULIB_MBSSPN.
58114         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
58115         * MODULES.html.sh (Internationalization functions): Add mbsspn.
58116
58117 2007-02-04  Bruno Haible  <bruno@clisp.org>
58118
58119         New module mbspbrk.
58120         * modules/mbspbrk: New file.
58121         * lib/mbspbrk.c: New file.
58122         * lib/string_.h (strpbrk): Add a conditional link warning.
58123         (mbspbrk): New declaration.
58124         * m4/mbspbrk.m4: New file.
58125         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58126         GNULIB_MBSPBRK.
58127         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
58128         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
58129
58130 2007-02-04  Bruno Haible  <bruno@clisp.org>
58131
58132         New module mbscspn.
58133         * modules/mbscspn: New file.
58134         * lib/mbscspn.c: New file.
58135         * lib/string_.h (strcspn): Add a conditional link warning.
58136         (mbscspn): New declaration.
58137         * m4/mbscspn.m4: New file.
58138         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58139         GNULIB_MBSCSPN.
58140         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
58141         * MODULES.html.sh (Internationalization functions): Add mbscspn.
58142
58143 2007-02-04  Bruno Haible  <bruno@clisp.org>
58144
58145         New module mbscasestr, reduced goal of strcasestr.
58146         * modules/mbscasestr: New file.
58147         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
58148         (mbscasestr): Renamed from strcasestr.
58149         * lib/strcasestr.c: Don't include mbuiter.h.
58150         (strcasestr): Remove support for multibyte locales.
58151         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
58152         Change the conditional link warning.
58153         (mbscasestr): New declaration.
58154         * m4/mbscasestr.m4: New file.
58155         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
58156         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
58157         REPLACE_STRCASESTR.
58158         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
58159         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58160         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
58161         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
58162         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
58163         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
58164         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
58165         (Depends-on): Remove mbuiter.
58166         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
58167
58168 2007-02-04  Bruno Haible  <bruno@clisp.org>
58169
58170         Simplify handling of strncasecmp.
58171         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
58172         the conditional link warning.
58173         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58174         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
58175         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
58176         * modules/strcase (configure.ac): Don't invoke
58177         gl_STRING_MODULE_INDICATOR.
58178         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
58179
58180 2007-02-04  Bruno Haible  <bruno@clisp.org>
58181
58182         New module mbscasecmp, reduced goal of strcasecmp.
58183         * modules/mbscasecmp: New file.
58184         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
58185         (mbscasecmp): Renamed from strcasecmp.
58186         * lib/strcasecmp.c: Don't include mbuiter.h.
58187         (strcasecmp): Remove support for multibyte locales.
58188         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
58189         Change the conditional link warning.
58190         (mbscasecmp): New declaration.
58191         * m4/mbscasecmp.m4: New file.
58192         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
58193         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
58194         REPLACE_STRCASECMP.
58195         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
58196         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58197         GNULIB_MBSCASECMP.
58198         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
58199         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
58200         * modules/strcase (Files): Remove m4/mbrtowc.m4.
58201         (Depends-on): Remove mbuiter.
58202         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
58203
58204 2007-02-04  Bruno Haible  <bruno@clisp.org>
58205
58206         New module mbsstr. Remove module strstr.
58207         * modules/mbsstr: New file.
58208         * modules/strstr: Remove file.
58209         * lib/mbsstr.c: Renamed from lib/strstr.c.
58210         (mbsstr): Renamed from strstr.
58211         * lib/string_.h (strstr): Remove declaration. Change the conditional
58212         link warning.
58213         (mbsstr): New declaration.
58214         * m4/mbsstr.m4: New file.
58215         * m4/strstr.m4: Remove file.
58216         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
58217         REPLACE_STRSTR.
58218         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
58219         Don't initialize GNULIB_STRSTR.
58220         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
58221         substitute GNULIB_STRSTR and REPLACE_STRSTR.
58222         * MODULES.html.sh (Internationalization functions): Add mbsstr.
58223         (Support for systems lacking ANSI C 89): Remove strstr.
58224
58225 2007-02-04  Bruno Haible  <bruno@clisp.org>
58226
58227         New module mbsrchr.
58228         * modules/mbsrchr: New file.
58229         * lib/mbsrchr.c: New file.
58230         * lib/string_.h (strrchr): Add a conditional link warning.
58231         (mbsrchr): New declaration.
58232         * m4/mbsrchr.m4: New file.
58233         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58234         GNULIB_MBSRCHR.
58235         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
58236         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
58237
58238 2007-02-04  Bruno Haible  <bruno@clisp.org>
58239
58240         New module mbschr.
58241         * modules/mbschr: New file.
58242         * lib/mbschr.c: New file.
58243         * lib/string_.h (strchr): Add a conditional link warning.
58244         (mbschr): New declaration.
58245         * m4/mbschr.m4: New file.
58246         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58247         GNULIB_MBSCHR.
58248         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
58249         * MODULES.html.sh (Internationalization functions): Add mbschr.
58250
58251 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
58252
58253         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
58254
58255         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
58256
58257 2007-02-04  Bruno Haible  <bruno@clisp.org>
58258
58259         New module description section 'configure.ac-early'.
58260         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
58261         (func_get_autoconf_early_snippet): New function.
58262         (func_import, func_create_testdir): Use it. Remove special cases for
58263         modules 'extensions' and 'lock'.
58264         * modules/extensions (configure.ac-early): Require
58265         gl_USE_SYSTEM_EXTENSIONS.
58266         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
58267
58268 2007-02-04  Bruno Haible  <bruno@clisp.org>
58269
58270         Make use of gcj-4.3's -fsource and -ftarget option.
58271         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
58272         and if so try the options -fsource and -ftarget.
58273         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
58274         source_version, ftarget_option, target_version arguments.
58275         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
58276         (is_envjavac_oldgcj_14_14_usable): Renamed from
58277         is_envjavac_gcj_14_14_usable.
58278         (is_envjavac_oldgcj_14_13_usable): Renamed from
58279         is_envjavac_gcj_14_13_usable.
58280         (is_gcj_present): Update.
58281         (is_gcj_43, is_gcj43_usable): New functions.
58282         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
58283         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
58284         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
58285         try the options -fsource and -ftarget.
58286
58287 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
58288
58289         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
58290         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
58291         larger value.
58292
58293 2007-02-03  Jim Meyering  <jim@meyering.net>
58294
58295         Give tools a better chance to allocate space for very large buffers.
58296         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
58297
58298         Make pwd and readlink work also when run with an unreadable parent dir
58299         on systems with openat support.
58300         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
58301         provided getcwd function, even when we have openat support.
58302         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
58303
58304 2007-02-02  Bruno Haible  <bruno@clisp.org>
58305
58306         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
58307         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
58308         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
58309         portability problems if one of these functions is only used on specific
58310         platforms.
58311         Reported by Paul Eggert.
58312
58313 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
58314
58315         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
58316         is causing more trouble than it's curing.
58317         * lib/regex_internal.h (__mempcpy): Remove.
58318         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
58319         (and make the code a tad smaller to boot).
58320         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
58321
58322 2007-02-02  Jim Meyering  <jim@meyering.net>
58323
58324         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
58325         section, not in the Makefile.am: one.
58326
58327 2007-02-02  Eric Blake  <ebb9@byu.net>
58328
58329         * lib/strchrnul.c: Always include config.h first.
58330
58331         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
58332         gnulib strstr is not necessary here.
58333
58334 2007-02-02  Simon Josefsson  <simon@josefsson.org>
58335
58336         * m4/socklen.m4: Fix typo.
58337
58338 2007-02-02  Eric Blake  <ebb9@byu.net>
58339
58340         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
58341         * modules/netinet_in (Makefile.am): Likewise.
58342
58343 2007-02-01  Bruno Haible  <bruno@clisp.org>
58344
58345         * lib/string_.h (GL_LINK_WARNING): New macro.
58346         (strcasecmp, strstr, strcasestr): If provided by the system,
58347         conditionally define as a macro that leads to a warning instead of to
58348         an error.
58349         (strncasecmp): Conditionally define as a macro that leads to a warning.
58350
58351 2007-02-01  Karl Berry  <karl@gnu.org>
58352
58353         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
58354
58355 2007-02-01  Bruno Haible  <bruno@clisp.org>
58356
58357         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
58358         renamings.
58359
58360 2007-02-01  Eric Blake  <ebb9@byu.net>
58361
58362         * modules/regex (Depends-on): Revert dependence on mempcpy.
58363         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
58364         module's definition of mempcpy.
58365         Reported by Paul Eggert.
58366
58367 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
58368
58369         * lib/string_.h: If the gnulib module XYZ is not present, undefine
58370         the symbol XYZ before redefining it.  This fixes a problem with
58371         programs that don't use XYZ, when compiled on systems that define
58372         XYZ to something else.
58373
58374 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
58375
58376         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
58377         occurs when "mkdir -m foo" creates a setgid directory that is (1)
58378         writeable to group or other and (2) is intended to have a special
58379         mode bit that is set or cleared.  In such a case, the directory
58380         should be neither group- nor other-writeable until the special
58381         mode bits are right.
58382
58383 2007-01-31  Eric Blake  <ebb9@byu.net>
58384
58385         * modules/mountlist (Depends-on): Add strstr.
58386
58387         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
58388         bug.
58389         * modules/string (Makefile.am): Remove redundant replacement.
58390         * modules/regex (Depends-on): Add mempcpy.
58391
58392 2007-01-31  Bruno Haible  <bruno@clisp.org>
58393
58394         New module description field 'Link'.
58395         * gnulib-tool (func_usage): Document --extract-link-directive.
58396         (sed_extract_prog): Recognize 'Link' directive.
58397         (func_get_link_directive): New function.
58398         (func_import): Show summary of link directives.
58399         Handle --extract-link-directive option.
58400         * modules/acl (Link): New section.
58401         * modules/clock-time (Link): New section.
58402         * modules/euidaccess (Link): New section.
58403         * modules/gettext (Link): New section.
58404         * modules/iconv (Link): New section.
58405         * modules/lock (Link): New section.
58406         * modules/nanosleep (Link): New section.
58407         * modules/readline (Link): New section.
58408
58409 2007-01-27  Bruno Haible  <bruno@clisp.org>
58410
58411         Enforce the use of gnulib modules for unportable <string.h> functions.
58412         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
58413         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
58414         (gl_HEADER_STRING_H_BODY): Require it.
58415         * lib/string_.h: If the gnulib module XYZ is not present, redefine
58416         the symbol XYZ to one that gives a link error.
58417         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
58418         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
58419         * modules/mempcpy (configure.ac): Likewise.
58420         * modules/memrchr (configure.ac): Likewise.
58421         * modules/stpcpy (configure.ac): Likewise.
58422         * modules/stpncpy (configure.ac): Likewise.
58423         * modules/strcase (configure.ac): Likewise.
58424         * modules/strcasestr (configure.ac): Likewise.
58425         * modules/strchrnul (configure.ac): Likewise.
58426         * modules/strdup (configure.ac): Likewise.
58427         * modules/strndup (configure.ac): Likewise.
58428         * modules/strnlen (configure.ac): Likewise.
58429         * modules/strpbrk (configure.ac): Likewise.
58430         * modules/strsep (configure.ac): Likewise.
58431         * modules/strstr (configure.ac): Likewise.
58432         * modules/strtok_r (configure.ac): Likewise.
58433
58434 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
58435
58436         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
58437
58438 2007-01-30  Jim Meyering  <jim@meyering.net>
58439
58440         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
58441
58442 2007-01-29  Bruno Haible  <bruno@clisp.org>
58443
58444         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
58445         * lib/execute.c: Likewise.
58446         * lib/pipe.c: Likewise.
58447         * lib/printf-args.h: Likewise.
58448         * lib/printf-args.c: Likewise.
58449         * lib/printf-parse.c: Likewise.
58450         * lib/vasnprintf.c: Likewise.
58451
58452 2007-01-29  Eric Blake  <ebb9@byu.net>
58453
58454         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
58455         declaration.
58456
58457 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
58458
58459         * lib/strptime.h (strptime): Use 'restrict' for args where
58460         POSIX requires this.
58461         * lib/strptime.c (strptime): Likewise.
58462         Change license notice from LGPL to GPL, since gnulib-tool will
58463         change this as needed.
58464         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
58465         defined.
58466         Include "strptime.h" first, to check interface.
58467         Do not #undef _LIBC and _NL_CURRENT.
58468         Do not include <stdlib.h>; no longer needed.
58469         Include "time_r.h" and declare ptime_locale_status
58470         only if _LIBC is not defined.
58471         (__P): Remove unused macro.
58472         (match_string): Bring back glibc version, but use it only if _LIBC
58473         is defined.
58474         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
58475         Remove unnecessary assertion and abort() call.
58476         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
58477         * m4/strptime.m4: Fix serial number comment.
58478         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
58479         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
58480         (Depends-on): Add time_r.
58481
58482 2007-01-29  Bruno Haible  <bruno@clisp.org>
58483
58484         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58485         strptime.
58486         * modules/strptime (Depends-on): Add stdbool.
58487         * lib/strptime.h: Include <time.h> always. Add comments.
58488
58489 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
58490
58491         * modules/strptime: New file.
58492         * lib/strptime.h: New file.
58493         * lib/strptime.c: New file.
58494         * m4/strptime.m4: New file.
58495
58496 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
58497
58498         * MODULES.html.sh: New module mpsort.
58499         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
58500
58501         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
58502         a circularity problem with HP-UX ia64 reported by Bob Proulx in
58503         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
58504         All uses changed.
58505         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
58506         All uses changed.
58507         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
58508         to _Restrict_.
58509         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
58510         the parameter matches the prototype.
58511
58512 2007-01-28  Jim Meyering  <jim@meyering.net>
58513
58514         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
58515         sys/time.h here, reverting that part of the previous patch:
58516         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
58517
58518 2007-01-28  Bruno Haible  <bruno@clisp.org>
58519
58520         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
58521         value of $(SYS_TIME_H).
58522         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
58523         remove it conditionally, too. [added by Jim Meyering]
58524         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
58525         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
58526         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
58527         GETTIMEOFDAY_REPLACEMENT to 1.
58528
58529 2007-01-28  Bruno Haible  <bruno@clisp.org>
58530
58531         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
58532         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
58533         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
58534         Set UNISTD_H instead of UNISTD_H2.
58535         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
58536
58537 2007-01-28  Bruno Haible  <bruno@clisp.org>
58538
58539         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
58540         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
58541
58542 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58543
58544         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
58545         (func_create_testdir): Ensure C locale for `grep' and `tr'
58546         character ranges.
58547         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
58548         ACLOCAL_AMFLAGS parsing state machine.
58549
58550 2007-01-27  Bruno Haible  <bruno@clisp.org>
58551
58552         * modules/unistr/base: Update.
58553
58554 2007-01-27  Bruno Haible  <bruno@clisp.org>
58555
58556         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
58557         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
58558         * modules/unistr/u32-mbtouc-unsafe: Renamed from
58559         modules/unistr/u32-mbtouc.
58560         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
58561         * lib/unistr.h: Update.
58562         * lib/linebreak.c: Update.
58563         * modules/unistr/u32-mbtouc: Renamed from
58564         modules/unistr/u32-mbtouc-safe.
58565         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
58566         * lib/unistr.h: Update.
58567         * lib/unistr/u32-to-u8.c: Update.
58568         * lib/unistr/u32-to-u16.c: Update.
58569
58570 2007-01-27  Bruno Haible  <bruno@clisp.org>
58571
58572         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
58573         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
58574         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
58575         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
58576         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
58577         * modules/unistr/u16-mbtouc-unsafe: Renamed from
58578         modules/unistr/u16-mbtouc.
58579         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
58580         * lib/unistr.h: Update.
58581         * lib/linebreak.c: Update.
58582         * modules/linebreak: Update.
58583         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
58584         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
58585         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
58586         * modules/unistr/u16-mbtouc: Renamed from
58587         modules/unistr/u16-mbtouc-safe.
58588         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
58589         * lib/unistr.h: Update.
58590         * lib/unistr/u16-to-u8.c: Update.
58591         * modules/unistr/u16-to-u8: Update.
58592         * lib/unistr/u16-to-u32.c: Update.
58593         * modules/unistr/u16-to-u32: Update.
58594
58595 2007-01-27  Bruno Haible  <bruno@clisp.org>
58596
58597         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
58598         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
58599         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
58600         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
58601         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
58602         * modules/unistr/u8-mbtouc-unsafe: Renamed from
58603         modules/unistr/u8-mbtouc.
58604         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
58605         * lib/unistr.h: Update.
58606         * lib/striconveh.c: Update.
58607         * modules/striconveh: Update.
58608         * lib/linebreak.c: Update.
58609         * modules/linebreak: Update.
58610         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
58611         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
58612         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
58613         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
58614         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
58615         * lib/unistr.h: Update.
58616         * lib/striconveh.c: Update.
58617         * modules/striconveh: Update.
58618         * lib/unistr/u8-to-u16.c: Update.
58619         * modules/unistr/u8-to-u16: Update.
58620         * lib/unistr/u8-to-u32.c: Update.
58621         * modules/unistr/u8-to-u32: Update.
58622
58623 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58624
58625         Sync from Libtool.
58626         * lib/argz.c: Do not include strings.h nor memory.h, include
58627         string.h unconditionally.  Patch by Simon Josefsson.
58628
58629 2007-01-27  Bruno Haible  <bruno@clisp.org>
58630
58631         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
58632         from gl_HEADER_STRING_H_BODY.
58633         (gl_HEADER_STRING_H_BODY): Require it.
58634         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
58635         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
58636         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
58637         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
58638         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
58639         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
58640         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58641         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
58642         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
58643         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
58644         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
58645         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
58646         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
58647         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
58648         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
58649
58650 2007-01-27  Bruno Haible  <bruno@clisp.org>
58651
58652         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
58653         check_PROGRAMS into noinst_PROGRAMS.
58654         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
58655         check_PROGRAMS in this case.
58656         (func_import): Set for_test to false.
58657         (func_create_testdir): Set for_test to true.
58658
58659 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
58660             Bruno Haible  <bruno@clisp.org>
58661
58662         * modules/strcasestr (Files): Remove lib/strcasestr.h.
58663         (Depends-on): Add string.
58664         (Includes): Use <string.h> instead of strcasestr.h.
58665         * modules/string (Makefile.am): Also substitute the value of
58666         REPLACE_STRCASESTR.
58667         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
58668         assume strcasestr is declared in <string.h> not <strings.h>. Also
58669         set REPLACE_STRCASESTR.
58670         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
58671         REPLACE_STRCASESTR.
58672         * lib/strcasestr.h: Remove file.
58673         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
58674         * lib/string_.h (strcasestr): New declaration.
58675
58676 2007-01-27  Bruno Haible  <bruno@clisp.org>
58677
58678         * lib/string_.h: Use 'extern'.
58679
58680 2007-01-27  Jim Meyering  <jim@meyering.net>
58681
58682         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
58683         of set-but-not-used local, "q".
58684
58685         * lib/mempcpy.c: Include <config.h> before <string.h>.
58686         This fixes a compilation error on HP-UX, due to the system's
58687         "restrict"-using mempcpy prototype.
58688
58689 2007-01-26  Bruno Haible  <bruno@clisp.org>
58690
58691         Small optimization.
58692         * lib/javacomp.c: Include c-strstr.h.
58693          (is_envjavac_gcj): Use c_strstr instead of strstr.
58694         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
58695
58696 2007-01-26  Bruno Haible  <bruno@clisp.org>
58697
58698         * MODULES.html.sh (Unicode string functions): Add the new modules.
58699
58700         * modules/uniconv/u32-strconv-to-locale: New file.
58701         * lib/uniconv/u32-strconv-to-locale.c: New file.
58702
58703         * modules/uniconv/u16-strconv-to-locale: New file.
58704         * lib/uniconv/u16-strconv-to-locale.c: New file.
58705
58706         * modules/uniconv/u8-strconv-to-locale: New file.
58707         * lib/uniconv/u8-strconv-to-locale.c: New file.
58708
58709         * modules/uniconv/u32-strconv-from-locale: New file.
58710         * lib/uniconv/u32-strconv-from-locale.c: New file.
58711
58712         * modules/uniconv/u16-strconv-from-locale: New file.
58713         * lib/uniconv/u16-strconv-from-locale.c: New file.
58714
58715         * modules/uniconv/u8-strconv-from-locale: New file.
58716         * lib/uniconv/u8-strconv-from-locale.c: New file.
58717
58718         * modules/uniconv/u32-strconv-to-enc: New file.
58719         * lib/uniconv/u32-strconv-to-enc.c: New file.
58720         * modules/uniconv/u32-strconv-to-enc-tests: New file.
58721         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
58722
58723         * modules/uniconv/u16-strconv-to-enc: New file.
58724         * lib/uniconv/u16-strconv-to-enc.c: New file.
58725         * lib/uniconv/u-strconv-to-enc.h: New file.
58726         * modules/uniconv/u16-strconv-to-enc-tests: New file.
58727         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
58728
58729         * modules/uniconv/u8-strconv-to-enc: New file.
58730         * lib/uniconv/u8-strconv-to-enc.c: New file.
58731         * modules/uniconv/u8-strconv-to-enc-tests: New file.
58732         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
58733
58734         * modules/uniconv/u32-strconv-from-enc: New file.
58735         * lib/uniconv/u32-strconv-from-enc.c: New file.
58736         * modules/uniconv/u32-strconv-from-enc-tests: New file.
58737         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
58738
58739         * modules/uniconv/u16-strconv-from-enc: New file.
58740         * lib/uniconv/u16-strconv-from-enc.c: New file.
58741         * modules/uniconv/u16-strconv-from-enc-tests: New file.
58742         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
58743
58744         * modules/uniconv/u8-strconv-from-enc: New file.
58745         * lib/uniconv/u8-strconv-from-enc.c: New file.
58746         * lib/uniconv/u-strconv-from-enc.h: New file.
58747         * modules/uniconv/u8-strconv-from-enc-tests: New file.
58748         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
58749
58750         * modules/uniconv/u32-conv-from-enc: New file.
58751         * lib/uniconv/u32-conv-from-enc.c: New file.
58752         * modules/uniconv/u32-conv-from-enc-tests: New file.
58753         * tests/uniconv/test-u32-conv-from-enc.c: New file.
58754
58755         * modules/uniconv/u16-conv-from-enc: New file.
58756         * lib/uniconv/u16-conv-from-enc.c: New file.
58757         * lib/uniconv/u-conv-from-enc.h: New file.
58758         * modules/uniconv/u16-conv-from-enc-tests: New file.
58759         * tests/uniconv/test-u16-conv-from-enc.c: New file.
58760
58761         * modules/uniconv/u8-conv-from-enc: New file.
58762         * lib/uniconv/u8-conv-from-enc.c: New file.
58763         * modules/uniconv/u8-conv-from-enc-tests: New file.
58764         * tests/uniconv/test-u8-conv-from-enc.c: New file.
58765
58766         * modules/uniconv/base: New file.
58767         * lib/uniconv.h: New file.
58768
58769 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
58770
58771         * doc/gnulib-tool.texi (Initial import): Update to match current
58772         behavior with strdup module.
58773         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
58774         * lib/memmem.h: Remove; all uses removed.  This is now done
58775         by <string.h>.
58776         * lib/mempcpy.h: Likewise.
58777         * lib/memrchr.h: Likewise.
58778         * lib/stpcpy.h: Likewise.
58779         * lib/stpncpy.h: Likewise.
58780         * lib/strcase.h: Likewise.
58781         * lib/strchrnul.h: Likewise.
58782         * lib/strdup.h: Likewise.
58783         * lib/strndup.h: Likewise.
58784         * lib/strnlen.h: Likewise.
58785         * lib/strpbrk.h: Likewise.
58786         * lib/strsep.h: Likewise.
58787         * lib/strstr.h: Likewise.
58788         * lib/strtok_r.h: Likewise.
58789         * lib/string_.h: New file.
58790         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
58791         Rely on <string.h> instead.
58792         * lib/canon-host.c: Likewise.
58793         * lib/chdir-long.c: Likewise.
58794         * lib/concatpath.c: Likewise.
58795         * lib/exclude.c: Likewise.
58796         * lib/fchdir.c: Likewise.
58797         * lib/getaddrinfo.c: Likewise.
58798         * lib/getcwd.c: Likewise.
58799         * lib/getsubopt.c: Likewise.
58800         * lib/glob.c: Likewise.
58801         * lib/hard-locale.c: Likewise.
58802         * lib/iconvme.c: Likewise.
58803         * lib/javacomp.c: Likewise.
58804         * lib/mempcpy.c: Likewise.
58805         * lib/memrchr.c: Likewise.
58806         * lib/regex_internal.h: Likewise.
58807         * lib/stpncpy.c: Likewise.
58808         * lib/strcasecmp.c: Likewise.
58809         * lib/strchrnul.c: Likewise.
58810         * lib/strdup.c: Likewise.
58811         * lib/striconv.c: Likewise.
58812         * lib/striconveh.c: Likewise.
58813         * lib/striconveha.c: Likewise.
58814         * lib/strncasecmp.c: Likewise.
58815         * lib/strndup.c: Likewise.
58816         * lib/strnlen.c: Likewise.
58817         * lib/strsep.c: Likewise.
58818         * lib/strstr.c: Likewise.
58819         * lib/strtok_r.c: Likewise.
58820         * lib/userspec.c: Likewise.
58821         * lib/w32spawn.h: Likewise.
58822         * lib/xstrndup.c: Likewise.
58823         * lib/mountlist.c (strstr): Remove decl.
58824         * m4/string_h.m4: New file.
58825         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
58826         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
58827         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
58828         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
58829         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
58830         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
58831         Set REPLACE_STRCASECMP if necessary.
58832         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
58833         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
58834         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
58835         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
58836         HAVE_DECL_STRDUP if necessary.
58837         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
58838         since gl_FUNC_STRNDUP does that now.
58839         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
58840         Check for decl here...
58841         (gl_PREREQ_STRNLEN): ... not here.
58842         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
58843         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
58844         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
58845         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
58846         necessary.
58847         * modules/string: New file.
58848         * modules/memmem (Files): Remove special-purpose include file.
58849         (Depends-on): Add string.
58850         (Include): Include <string.h>, not the removed file.
58851         * modules/mempcpy: Likewise.
58852         * modules/memrchr: Likewise.
58853         * modules/stpcpy: Likewise.
58854         * modules/stpncpy: Likewise.
58855         * modules/strcase: Likewise.
58856         * modules/strchrnul: Likewise.
58857         * modules/strdup: Likewise.
58858         * modules/strndup: Likewise.
58859         * modules/strnlen: Likewise.
58860         * modules/strpbrk: Likewise.
58861         * modules/strsep: Likewise.
58862         * modules/strstr: Likewise.
58863         * modules/strtok_r: Likewise.
58864         * tests/test-dirname.c: Don't include "strdup.h", since
58865         <string.h> now suffices.
58866         * tests/test-memmem.c: Don't include "memmem.h", since
58867         <string.h> now suffices.
58868
58869 2007-01-25  Bruno Haible  <bruno@clisp.org>
58870
58871         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
58872         *resultp is 0.
58873
58874         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
58875         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
58876         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
58877         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
58878
58879         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
58880         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
58881         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
58882         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
58883         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
58884         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
58885
58886 2007-01-24  Bruno Haible  <bruno@clisp.org>
58887
58888         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
58889         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
58890         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
58891         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
58892         gl_FUNC_FTS_CORE.
58893         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
58894         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
58895         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
58896         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
58897         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
58898         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
58899         gl_FUNC_FCHOWNAT.
58900         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
58901         gl_FUNC_STRFTIME.
58902         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
58903         Reported by Ralf Wildenhues.
58904
58905 2007-01-24  Bruno Haible  <bruno@clisp.org>
58906
58907         Drop AC_REQUIRE calls that are redundant with the module dependencies.
58908         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
58909         gl_GETADDRINFO.
58910         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
58911         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
58912         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
58913
58914 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
58915
58916         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
58917         Don't use 'exit'; just return from 'main'.
58918         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
58919
58920         * lib/fnmatch_.h: Readjust white space and comments to match
58921         glibc, to avoid spurious diffs.
58922
58923 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
58924
58925         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
58926         2004-12-01 change by Jakub Jelinek, since this code won't compile
58927         if !LIBC.  Problem reported by Bob Proulx.
58928
58929 2007-01-23  Bruno Haible  <bruno@clisp.org>
58930
58931         * lib/striconveh.c: Include c-strcaseeq.h.
58932         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
58933         * modules/striconveh (Depends-on): Add c-strcaseeq.
58934
58935 2007-01-23  Bruno Haible  <bruno@clisp.org>
58936
58937         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
58938
58939         * modules/c-strcaseeq: New file.
58940         * lib/c-strcaseeq.h: New file.
58941
58942         * modules/streq: New file.
58943         * lib/streq.h: New file.
58944
58945 2007-01-23  Bruno Haible  <bruno@clisp.org>
58946
58947         * modules/striconveha-tests: New file.
58948         * tests/test-striconveha.c: New file.
58949
58950         * lib/striconveha.h: Include <stdbool.h>.
58951         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
58952         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
58953         (mem_iconveha_notranslit): Renamed from mem_iconveha.
58954         (mem_iconveha): New function.
58955         (str_iconveha_notranslit): Renamed from str_iconveha.
58956         (str_iconveha): New function.
58957         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
58958         c-strcase.
58959
58960 2007-01-23  Bruno Haible  <bruno@clisp.org>
58961
58962         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
58963         encodings without forgiving before trying any encoding with handler.
58964         (str_iconveha): Try all encodings without forgiving before trying any
58965         encoding with handler.
58966
58967 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
58968
58969         Import the following changes from libc.
58970
58971         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
58972
58973         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
58974
58975         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
58976
58977         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
58978         normal_bracket label.
58979
58980         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
58981
58982         [BZ #361]
58983         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
58984         to normal_bracket after fetching the next character.
58985
58986 2007-01-22  Bruno Haible  <bruno@clisp.org>
58987
58988         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
58989         argument.
58990         * lib/striconveh.c (iconv_carefully_1): New function.
58991         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
58992         argument.
58993         (str_cd_iconveh): Update.
58994         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
58995         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
58996         * tests/test-striconveh.c (MAGIC): New macro.
58997         (new_offsets): New function.
58998         (main): Test call with and without offsets.
58999
59000 2007-01-22  Bruno Haible  <bruno@clisp.org>
59001
59002         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
59003         * modules/sys_select (Makefile.am): Likewise.
59004         * modules/sys_socket (Makefile.am): Likewise.
59005         * modules/sys_time (Makefile.am): Likewise.
59006
59007 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
59008
59009         * modules/gettimeofday (License): Change from GPL to LGPL, since
59010         gettimeofday is a library function.
59011
59012 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59013
59014         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
59015
59016 2007-01-21  Bruno Haible  <bruno@clisp.org>
59017
59018         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
59019
59020 2007-01-21  Bruno Haible  <bruno@clisp.org>
59021
59022         * modules/striconveha: New file.
59023         * lib/striconveha.h: New file.
59024         * lib/striconveha.c: New file.
59025         * MODULES.html.sh (Internationalization functions): Add striconveha.
59026         * lib/striconv.c (str_iconv): Optimize the case of an empty input
59027         string.
59028         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
59029
59030 2007-01-21  Bruno Haible  <bruno@clisp.org>
59031
59032         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
59033         * lib/striconveh.c (str_iconveh): Likewise.
59034
59035 2007-01-21  Bruno Haible  <bruno@clisp.org>
59036
59037         * lib/striconveh.h (mem_iconveh): New declaration.
59038         * lib/striconveh.c (mem_iconveh): New function.
59039         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
59040
59041 2007-01-21  Bruno Haible  <bruno@clisp.org>
59042
59043         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
59044
59045         * lib/striconveh.h (mem_cd_iconveh): Change specification.
59046         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
59047         original result buffer.
59048         (str_cd_iconveh): Update.
59049         * tests/test-striconveh.c (main): Update.
59050
59051         * lib/striconv.h (mem_cd_iconv): Change specification.
59052         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
59053         result buffer.
59054         (str_cd_iconv): Update.
59055         * tests/test-striconv.c (main): Update.
59056
59057 2007-01-21  Bruno Haible  <bruno@clisp.org>
59058
59059         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
59060
59061 2007-01-20  Jim Meyering  <jim@meyering.net>
59062
59063         * lib/userspec.c (parse_with_separator): If a user or group string
59064         starts with "+", skip the corresponding name-to-ID look-up, since
59065         such a look-up must fail: user and group names may not include "+".
59066
59067 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
59068
59069         * lib/poll.c: Include sys/time.h and time.h unconditionally,
59070         since we now assume the sys_time module.
59071         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
59072         check for sys/time.h; no longer needed.
59073         * modules/poll (Depends-on): Depend on sys_time.
59074
59075 2007-01-18  Bruno Haible  <bruno@clisp.org>
59076
59077         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
59078         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
59079
59080         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
59081         gettimeofday.
59082
59083         * tests/test-gettimeofday.c: Include <time.h>.
59084         (dummy): Remove variable.
59085
59086         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
59087         gl_HEADER_SYS_TIME_H.
59088         (gl_HEADER_SYS_TIME_H): New macro.
59089
59090         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
59091         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
59092         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
59093         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
59094         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
59095         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
59096         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
59097         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
59098         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
59099         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
59100         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
59101
59102         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
59103         last change; it caused a compilation error when cross-compiling to
59104         Cygwin.
59105
59106 2007-01-18  Jim Meyering  <jim@meyering.net>
59107
59108         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
59109         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
59110         than the race-prone "test -d sys || mkdir sys".
59111         (configure.ac): Use AC_PROG_MKDIR_P.
59112         * modules/sys_select: Likewise.
59113         * modules/sys_socket: Likewise.
59114         * modules/sys_time: Likewise.
59115
59116 2007-01-18  Eric Blake  <ebb9@byu.net>
59117
59118         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
59119         replace gettimeofday.
59120         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
59121         name, to avoid infinite recursion.
59122
59123 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
59124
59125         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
59126         module sys_time.
59127         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
59128         assume timespec.h defines struct timeval.
59129         * lib/settime.c: Likewise.
59130         * lib/utimens.c: Likewise.
59131         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
59132         since we now assume the gettimeofday module.
59133         * lib/tempname.c (__gen_tempname): Likewise.
59134         * lib/gettimeofday.h: Remove.
59135         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
59136         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
59137         Include <time.h>, for 'time()'.
59138         (localtime_buffer_addr): Also use this workaround if
59139         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
59140         to simplify the uses.  All uses changed.
59141         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
59142         that #undef is inside {}, and 'const' follows type name consistently.
59143         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
59144         (gettimeofday): Do not use the maximum possible value for
59145         tv->tv_usec, since that might break usages other than ls.c.
59146         Instead, we'll leave ls.c alone.  This undoes today's patch
59147         by Bruno.  Add a compile-time warning for 1s-clock resolution;
59148         we've never observed the problem but might as well keep the
59149         canary.
59150         * lib/nanosleep.c: Include timespec.h first, for interface check.
59151         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
59152         now assume the sys_time module.
59153         * lib/tempname.c: Likewise.
59154         * lib/timespec.h: Likewise.
59155         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
59156         needed.
59157         * lib/strftime.c: Likewise.
59158         * lib/timespec.h: Likewise.
59159         * lib/posixtm.c: Include posixtm.h first, for interface check.
59160         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
59161         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
59162         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
59163         * lib/sys_time_.h: New file.
59164         * lib/timespec.h (struct timespec): Use long int, not long.
59165         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
59166         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
59167         Remove obsolescent call to AC_HEADER_TIME.
59168         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
59169         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
59170         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
59171         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
59172         Likewise.
59173         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
59174         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
59175         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
59176         into the sys_time module.  Check for gettimeofday just once.
59177         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
59178         for gettimeofday signature to just check the signature.  Merely
59179         compile it, since linking doesn't test signature.  Improve test for
59180         whether gettimeofday.o is actually needed.
59181         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
59182         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
59183         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
59184         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
59185         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
59186         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
59187         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
59188         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
59189         than worrying about sys/time.h.
59190         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
59191         Don't bother worrying about TIME_WITH_SYS_TIME.
59192         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
59193         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
59194         * m4/sys_time_h.m4: New file.
59195         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
59196         Don't include sys/time.h.  Return from main rather than exiting.
59197         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
59198         all uses changed.
59199         * modules/gethrxtime (Depends-on): Add sys_time.
59200         * modules/gettime (Depends-on): Likewise.
59201         * modules/gettimeofday (Depends-on): Likewise.
59202         * modules/nanosleep (Depends-on): Likewise.
59203         * modules/settime (Depends-on): Likewise.
59204         * modules/tempname (Depends-on): Likewise.
59205         * modules/utimens (Depends-on): Likewise.
59206         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
59207         (Include): Change back to <sys/time.h>.
59208         (Maintainer): Add self.
59209         * modules/sys_time: New file.
59210         * modules/tempname (Depends-on): Add gettimeofday.
59211         * tests/test-gettimeofday.c: Include <sys/time.h>
59212         rather than gettimeofday.h.
59213
59214 2007-01-17  Bruno Haible  <bruno@clisp.org>
59215
59216         * gnulib-tool (func_get_license): Revert last patch. Instead, let
59217         the license default to GPL.
59218         (func_create_testdir): Don't complain if a module is LGPL and its
59219         tests module depends on GPLed modules.
59220
59221 2007-01-17  Bruno Haible  <bruno@clisp.org>
59222
59223         * lib/gettimeofday.c (gettimeofday): Add code for the case
59224         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
59225         maximum possible value for tv->tv_usec, rather than the minimum one.
59226
59227 2005-10-08  Martin Lambers  <marlam@marlam.de>
59228 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
59229 2007-01-16  Bruno Haible  <bruno@clisp.org>
59230
59231         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
59232         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
59233         gl_FUNC_GETTIMEOFDAY.
59234         (Include): Add gettimeofday.h.
59235         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
59236         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
59237         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
59238         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
59239         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
59240         * lib/gettimeofday.h: New file.
59241         * lib/gettimeofday.c: Include <sys/timeb.h>.
59242         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
59243         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
59244         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
59245         fall back on time().
59246
59247         * tests/test-gettimeofday.c: New file.
59248         * modules/gettimeofday-tests: New file.
59249
59250 2007-01-16  Eric Blake  <ebb9@byu.net>
59251
59252         * modules/fnmatch (Depends-on): Depend on wchar.
59253         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
59254         * m4/fnmatch.m4: Likewise.
59255         * modules/mbchar (Makefile.am): Assume <wchar.h>.
59256         * m4/mbchar.m4: Likewise.
59257         * modules/mbswidth (Depends-on): Depend on wchar.
59258         * lib/mbswidth.c: Assume <wchar.h>.
59259         * m4/mbswidth.m4: Likewise.
59260         * modules/quotearg (Depends-on): Depend on wchar.
59261         * lib/quotearg.c: Assume <wchar.h>.
59262         * m4/quotearg.m4: Likewise.
59263         * modules/regex (Depends-on): Depend on wchar.
59264         * lib/regex_internal.h: Assume <wchar.h>.
59265         * m4/regex.m4: Likewise.
59266         * modules/stdint (Depends-on): Depend on wchar.
59267         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
59268         * m4/stdint.m4: Likewise.
59269         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
59270         * modules/strftime (Depends-on): Depend on wchar.
59271         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
59272         * modules/strtol (Depends-on): Depend on wchar.
59273         * lib/strtol.c: Assume <wchar.h>.
59274         * modules/wcwidth (Depends-on): Depend on wchar.
59275         * lib/wcwidth.h: Assume <wchar.h>.
59276         * m4/wcwidth.m4: Likewise.
59277
59278 2007-01-16  Bruno Haible  <bruno@clisp.org>
59279
59280         * modules/csharpexec-script: New, created from...
59281         * modules/csharpexec: ... this.
59282
59283 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
59284
59285         * modules/javaexec-script: New, created from...
59286         * modules/javaexec: ... this.
59287
59288 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59289
59290         * modules/poll (Dependencies): Add sys_select.
59291
59292 2007-01-15  Jim Meyering  <jim@meyering.net>
59293
59294         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
59295         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
59296         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
59297         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
59298
59299 2007-01-15  Bruno Haible  <bruno@clisp.org>
59300
59301         * modules/striconveh: New file.
59302         * lib/striconveh.h: New file.
59303         * lib/striconveh.c: New file.
59304         * MODULES.html.sh (Internationalization functions): Add striconveh.
59305
59306         * modules/striconveh-tests: New file.
59307         * tests/test-striconveh.c: New file.
59308
59309 2007-01-15  Bruno Haible  <bruno@clisp.org>
59310
59311         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
59312         not from GNU libiconv or GNU libc.
59313
59314 2007-01-15  Bruno Haible  <bruno@clisp.org>
59315
59316         * doc/gnulib-intro.texi (Copyright): Explain the different license
59317         terms for module descriptions, autoconf macros, tests, documentation.
59318
59319 2007-01-14  Bruno Haible  <bruno@clisp.org>
59320
59321         * modules/striconv-tests: New file.
59322         * tests/test-striconv.c: New file.
59323
59324 2007-01-14  Bruno Haible  <bruno@clisp.org>
59325
59326         * modules/iconv-tests: New file.
59327         * tests/test-iconv.c: New file.
59328
59329 2007-01-14  Bruno Haible  <bruno@clisp.org>
59330
59331         * gnulib-tool (func_get_license): For test modules, use the license of
59332         the main module.
59333
59334 2007-01-14  Bruno Haible  <bruno@clisp.org>
59335
59336         * modules/iconv (Include): Clarify that <iconv.h> can only be included
59337         if iconv is found to exist.
59338
59339 2007-01-14  Bruno Haible  <bruno@clisp.org>
59340
59341         * modules/c-ctype-tests: New file.
59342         * tests/test-c-ctype.c: New file.
59343
59344 2007-01-14  Bruno Haible  <bruno@clisp.org>
59345
59346         * modules/binary-io-tests: New file.
59347         * tests/test-binary-io.sh: New file.
59348         * tests/test-binary-io.c: New file.
59349
59350 2007-01-14  Bruno Haible  <bruno@clisp.org>
59351
59352         * modules/array-oset-tests: New file.
59353         * tests/test-array_oset.c: New file.
59354
59355 2007-01-14  Bruno Haible  <bruno@clisp.org>
59356
59357         * modules/array-list-tests: New file.
59358         * tests/test-array_list.c: New file.
59359
59360 2007-01-14  Bruno Haible  <bruno@clisp.org>
59361
59362         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
59363         and make.
59364         Reported by Simon Josefsson in
59365         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
59366
59367 2007-01-14  Bruno Haible  <bruno@clisp.org>
59368
59369         * modules/allocsa-tests: New file.
59370         * tests/test-allocsa.c: New file.
59371
59372 2007-01-14  Bruno Haible  <bruno@clisp.org>
59373
59374         * modules/fchdir (Depends-on): Add absolute-header.
59375         * modules/unistd (Depends-on): Likewise.
59376
59377 2006-12-30  Bruno Haible  <bruno@clisp.org>
59378
59379         * modules/fchdir: New file.
59380         * modules/unistd (Files): Add lib/unistd_.h.
59381         (Makefile.am): Generate unistd.h from unistd_.h.
59382         * lib/fchdir.c: New file.
59383         * lib/dirent_.h: New file.
59384         * lib/unistd_.h: New file.
59385         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
59386         * m4/fchdir.m4: New file.
59387         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
59388         (gl_HEADER_UNISTD): Invoke it.
59389         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
59390         function.
59391         * lib/backupfile.c (opendir, closedir): Undefine.
59392         * lib/chown.c (open, close): Undefine.
59393         * lib/clean-temp.c (open, close): Undefine.
59394         * lib/copy-file.c (open, close): Undefine.
59395         * lib/execute.c (open, close): Undefine.
59396         * lib/fsusage.c (open, close): Undefine.
59397         * lib/gc-gnulib.c (open, close): Undefine.
59398         * lib/getcwd.c (opendir, closedir): Undefine.
59399         * lib/glob.c (opendir, closedir): Undefine.
59400         * lib/javacomp.c (open, close): Undefine.
59401         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
59402         * lib/openat-proc.c (open, close): Undefine.
59403         * lib/pagealign_alloc.c (open, close): Undefine.
59404         * lib/pipe.c (open, close): Undefine.
59405         * lib/progreloc.c (open, close): Undefine.
59406         * lib/savedir.c (opendir, closedir): Undefine.
59407         * lib/utime.c (open, close): Undefine.
59408         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
59409
59410 2007-01-10  Bruno Haible  <bruno@clisp.org>
59411
59412         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
59413
59414 2007-01-12  Eric Blake  <ebb9@byu.net>
59415
59416         Provide a robust <wchar.h>.  Further simplifications are now
59417         possible in other modules, but not included here.
59418         * modules/wchar: New module.
59419         * m4/wchar.m4: New file.
59420         * lib/wchar_.h: Likewise.
59421         * modules/mbchar (Depends-on): Depend on wchar, as the first use
59422         of the new module.
59423         * MODULES.html.sh (Extended multibyte and wide character utilities):
59424         New section.
59425
59426 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
59427
59428         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
59429         to a reasonable default for memory allocation.
59430         (xreadlink): Don't allocate a huge buffer, to work around a buggy
59431         file system that reports garbage st_size values for symlinks.
59432         Problem reported by Liyang Hu.
59433
59434 2007-01-11  Simon Josefsson  <simon@josefsson.org>
59435
59436         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
59437         Emacs .#* auto-save files).
59438
59439 2007-01-11  Bruno Haible  <bruno@clisp.org>
59440
59441         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
59442         directory.
59443
59444 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
59445
59446         Use @...@ consistently in lib/wctype_.h.
59447         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
59448         on it being set to 1 or 0.
59449         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
59450         go back to AC_SUBSTing it.
59451         * modules/wctype (Makefile.am): Undo previous change.
59452
59453 2007-01-10  Eric Blake  <ebb9@byu.net>
59454
59455         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
59456         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
59457         * modules/wctype (Makefile.am): Likewise.
59458         Reported by Chris McGuire.
59459
59460 2007-01-10  Jim Meyering  <jim@meyering.net>
59461
59462         fts.c: a small readability/maintainability improvement
59463         * lib/fts.c (fts_read): Make this code slightly more readable and
59464         maintainable by hoisting the "sp->fts_cur = p" assignments to
59465         immediately follow the statements that set P.  Derived from
59466         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
59467
59468 2007-01-10  Eric Blake  <ebb9@byu.net>
59469
59470         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
59471         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
59472         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
59473         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
59474         Reported by Chris McGuire.
59475
59476 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59477
59478         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
59479         in sed script.
59480
59481 2007-01-09  Bruno Haible  <bruno@clisp.org>
59482
59483         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
59484         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
59485         variables.
59486         (func_module): Use them.
59487
59488 2007-01-09  Bruno Haible  <bruno@clisp.org>
59489
59490         * modules/unistr/base: New file.
59491         * lib/unistr.h: New file.
59492
59493         * modules/unistr/u8-to-u16: New file.
59494         * lib/unistr/u8-to-u16.c: New file.
59495
59496         * modules/unistr/u8-to-u32: New file.
59497         * lib/unistr/u8-to-u32.c: New file.
59498
59499         * modules/unistr/u16-to-u8: New file.
59500         * lib/unistr/u16-to-u8.c: New file.
59501
59502         * modules/unistr/u16-to-u32: New file.
59503         * lib/unistr/u16-to-u32.c: New file.
59504
59505         * modules/unistr/u32-to-u8: New file.
59506         * lib/unistr/u32-to-u8.c: New file.
59507
59508         * modules/unistr/u32-to-u16: New file.
59509         * lib/unistr/u32-to-u16.c: New file.
59510
59511         * modules/unistr/u8-check: New file.
59512         * modules/unistr/u16-check: New file.
59513         * modules/unistr/u32-check: New file.
59514         * lib/unistr/u8-check.c: New file.
59515         * lib/unistr/u16-check.c: New file.
59516         * lib/unistr/u32-check.c: New file.
59517
59518         * modules/unistr/u8-chr: New file.
59519         * modules/unistr/u16-chr: New file.
59520         * modules/unistr/u32-chr: New file.
59521         * lib/unistr/u8-chr.c: New file.
59522         * lib/unistr/u16-chr.c: New file.
59523         * lib/unistr/u32-chr.c: New file.
59524
59525         * modules/unistr/u8-cmp: New file.
59526         * modules/unistr/u16-cmp: New file.
59527         * modules/unistr/u32-cmp: New file.
59528         * lib/unistr/u8-cmp.c: New file.
59529         * lib/unistr/u16-cmp.c: New file.
59530         * lib/unistr/u32-cmp.c: New file.
59531
59532         * modules/unistr/u8-cpy: New file.
59533         * modules/unistr/u16-cpy: New file.
59534         * modules/unistr/u32-cpy: New file.
59535         * lib/unistr/u8-cpy.c: New file.
59536         * lib/unistr/u16-cpy.c: New file.
59537         * lib/unistr/u32-cpy.c: New file.
59538         * lib/unistr/u-cpy.h: New file.
59539
59540         * modules/unistr/u8-cpy-alloc: New file.
59541         * modules/unistr/u16-cpy-alloc: New file.
59542         * modules/unistr/u32-cpy-alloc: New file.
59543         * lib/unistr/u8-cpy-alloc.c: New file.
59544         * lib/unistr/u16-cpy-alloc.c: New file.
59545         * lib/unistr/u32-cpy-alloc.c: New file.
59546         * lib/unistr/u-cpy-alloc.h: New file.
59547
59548         * modules/unistr/u8-endswith: New file.
59549         * modules/unistr/u16-endswith: New file.
59550         * modules/unistr/u32-endswith: New file.
59551         * lib/unistr/u8-endswith.c: New file.
59552         * lib/unistr/u16-endswith.c: New file.
59553         * lib/unistr/u32-endswith.c: New file.
59554         * lib/unistr/u-endswith.h: New file.
59555
59556         * modules/unistr/u8-mblen: New file.
59557         * modules/unistr/u16-mblen: New file.
59558         * modules/unistr/u32-mblen: New file.
59559         * lib/unistr/u8-mblen.c: New file.
59560         * lib/unistr/u16-mblen.c: New file.
59561         * lib/unistr/u32-mblen.c: New file.
59562
59563         * modules/unistr/u8-mbtouc: New file.
59564         * modules/unistr/u16-mbtouc: New file.
59565         * modules/unistr/u32-mbtouc: New file.
59566         * lib/unistr/u8-mbtouc.c: New file.
59567         * lib/unistr/u16-mbtouc.c: New file.
59568         * lib/unistr/u32-mbtouc.c: New file.
59569
59570         * modules/unistr/u8-mbtouc-safe: New file.
59571         * modules/unistr/u16-mbtouc-safe: New file.
59572         * modules/unistr/u32-mbtouc-safe: New file.
59573         * lib/unistr/u8-mbtouc-safe.c: New file.
59574         * lib/unistr/u16-mbtouc-safe.c: New file.
59575         * lib/unistr/u32-mbtouc-safe.c: New file.
59576
59577         * modules/unistr/u8-move: New file.
59578         * modules/unistr/u16-move: New file.
59579         * modules/unistr/u32-move: New file.
59580         * lib/unistr/u8-move.c: New file.
59581         * lib/unistr/u16-move.c: New file.
59582         * lib/unistr/u32-move.c: New file.
59583         * lib/unistr/u-move.h: New file.
59584
59585         * modules/unistr/u8-next: New file.
59586         * modules/unistr/u16-next: New file.
59587         * modules/unistr/u32-next: New file.
59588         * lib/unistr/u8-next.c: New file.
59589         * lib/unistr/u16-next.c: New file.
59590         * lib/unistr/u32-next.c: New file.
59591
59592         * modules/unistr/u8-prev: New file.
59593         * modules/unistr/u16-prev: New file.
59594         * modules/unistr/u32-prev: New file.
59595         * lib/unistr/u8-prev.c: New file.
59596         * lib/unistr/u16-prev.c: New file.
59597         * lib/unistr/u32-prev.c: New file.
59598
59599         * modules/unistr/u8-set: New file.
59600         * modules/unistr/u16-set: New file.
59601         * modules/unistr/u32-set: New file.
59602         * lib/unistr/u8-set.c: New file.
59603         * lib/unistr/u16-set.c: New file.
59604         * lib/unistr/u32-set.c: New file.
59605         * lib/unistr/u-set.h: New file.
59606
59607         * modules/unistr/u8-startswith: New file.
59608         * modules/unistr/u16-startswith: New file.
59609         * modules/unistr/u32-startswith: New file.
59610         * lib/unistr/u8-startswith.c: New file.
59611         * lib/unistr/u16-startswith.c: New file.
59612         * lib/unistr/u32-startswith.c: New file.
59613         * lib/unistr/u-startswith.h: New file.
59614
59615         * modules/unistr/u8-stpcpy: New file.
59616         * modules/unistr/u16-stpcpy: New file.
59617         * modules/unistr/u32-stpcpy: New file.
59618         * lib/unistr/u8-stpcpy.c: New file.
59619         * lib/unistr/u16-stpcpy.c: New file.
59620         * lib/unistr/u32-stpcpy.c: New file.
59621         * lib/unistr/u-stpcpy.h: New file.
59622
59623         * modules/unistr/u8-stpncpy: New file.
59624         * modules/unistr/u16-stpncpy: New file.
59625         * modules/unistr/u32-stpncpy: New file.
59626         * lib/unistr/u8-stpncpy.c: New file.
59627         * lib/unistr/u16-stpncpy.c: New file.
59628         * lib/unistr/u32-stpncpy.c: New file.
59629         * lib/unistr/u-stpncpy.h: New file.
59630
59631         * modules/unistr/u8-strcat: New file.
59632         * modules/unistr/u16-strcat: New file.
59633         * modules/unistr/u32-strcat: New file.
59634         * lib/unistr/u8-strcat.c: New file.
59635         * lib/unistr/u16-strcat.c: New file.
59636         * lib/unistr/u32-strcat.c: New file.
59637         * lib/unistr/u-strcat.h: New file.
59638
59639         * modules/unistr/u8-strchr: New file.
59640         * modules/unistr/u16-strchr: New file.
59641         * modules/unistr/u32-strchr: New file.
59642         * lib/unistr/u8-strchr.c: New file.
59643         * lib/unistr/u16-strchr.c: New file.
59644         * lib/unistr/u32-strchr.c: New file.
59645
59646         * modules/unistr/u8-strcmp: New file.
59647         * modules/unistr/u16-strcmp: New file.
59648         * modules/unistr/u32-strcmp: New file.
59649         * lib/unistr/u8-strcmp.c: New file.
59650         * lib/unistr/u16-strcmp.c: New file.
59651         * lib/unistr/u32-strcmp.c: New file.
59652
59653         * modules/unistr/u8-strcpy: New file.
59654         * modules/unistr/u16-strcpy: New file.
59655         * modules/unistr/u32-strcpy: New file.
59656         * lib/unistr/u8-strcpy.c: New file.
59657         * lib/unistr/u16-strcpy.c: New file.
59658         * lib/unistr/u32-strcpy.c: New file.
59659         * lib/unistr/u-strcpy.h: New file.
59660
59661         * modules/unistr/u8-strcspn: New file.
59662         * modules/unistr/u16-strcspn: New file.
59663         * modules/unistr/u32-strcspn: New file.
59664         * lib/unistr/u8-strcspn.c: New file.
59665         * lib/unistr/u16-strcspn.c: New file.
59666         * lib/unistr/u32-strcspn.c: New file.
59667         * lib/unistr/u-strcspn.h: New file.
59668
59669         * modules/unistr/u8-strdup: New file.
59670         * modules/unistr/u16-strdup: New file.
59671         * modules/unistr/u32-strdup: New file.
59672         * lib/unistr/u8-strdup.c: New file.
59673         * lib/unistr/u16-strdup.c: New file.
59674         * lib/unistr/u32-strdup.c: New file.
59675         * lib/unistr/u-strdup.h: New file.
59676
59677         * modules/unistr/u8-strlen: New file.
59678         * modules/unistr/u16-strlen: New file.
59679         * modules/unistr/u32-strlen: New file.
59680         * lib/unistr/u8-strlen.c: New file.
59681         * lib/unistr/u16-strlen.c: New file.
59682         * lib/unistr/u32-strlen.c: New file.
59683         * lib/unistr/u-strlen.h: New file.
59684
59685         * modules/unistr/u8-strmblen: New file.
59686         * modules/unistr/u16-strmblen: New file.
59687         * modules/unistr/u32-strmblen: New file.
59688         * lib/unistr/u8-strmblen.c: New file.
59689         * lib/unistr/u16-strmblen.c: New file.
59690         * lib/unistr/u32-strmblen.c: New file.
59691
59692         * modules/unistr/u8-strmbtouc: New file.
59693         * modules/unistr/u16-strmbtouc: New file.
59694         * modules/unistr/u32-strmbtouc: New file.
59695         * lib/unistr/u8-strmbtouc.c: New file.
59696         * lib/unistr/u16-strmbtouc.c: New file.
59697         * lib/unistr/u32-strmbtouc.c: New file.
59698
59699         * modules/unistr/u8-strncat: New file.
59700         * modules/unistr/u16-strncat: New file.
59701         * modules/unistr/u32-strncat: New file.
59702         * lib/unistr/u8-strncat.c: New file.
59703         * lib/unistr/u16-strncat.c: New file.
59704         * lib/unistr/u32-strncat.c: New file.
59705         * lib/unistr/u-strncat.h: New file.
59706
59707         * modules/unistr/u8-strncmp: New file.
59708         * modules/unistr/u16-strncmp: New file.
59709         * modules/unistr/u32-strncmp: New file.
59710         * lib/unistr/u8-strncmp.c: New file.
59711         * lib/unistr/u16-strncmp.c: New file.
59712         * lib/unistr/u32-strncmp.c: New file.
59713
59714         * modules/unistr/u8-strncpy: New file.
59715         * modules/unistr/u16-strncpy: New file.
59716         * modules/unistr/u32-strncpy: New file.
59717         * lib/unistr/u8-strncpy.c: New file.
59718         * lib/unistr/u16-strncpy.c: New file.
59719         * lib/unistr/u32-strncpy.c: New file.
59720         * lib/unistr/u-strncpy.h: New file.
59721
59722         * modules/unistr/u8-strnlen: New file.
59723         * modules/unistr/u16-strnlen: New file.
59724         * modules/unistr/u32-strnlen: New file.
59725         * lib/unistr/u8-strnlen.c: New file.
59726         * lib/unistr/u16-strnlen.c: New file.
59727         * lib/unistr/u32-strnlen.c: New file.
59728         * lib/unistr/u-strnlen.h: New file.
59729
59730         * modules/unistr/u8-strpbrk: New file.
59731         * modules/unistr/u16-strpbrk: New file.
59732         * modules/unistr/u32-strpbrk: New file.
59733         * lib/unistr/u8-strpbrk.c: New file.
59734         * lib/unistr/u16-strpbrk.c: New file.
59735         * lib/unistr/u32-strpbrk.c: New file.
59736         * lib/unistr/u-strpbrk.h: New file.
59737
59738         * modules/unistr/u8-strrchr: New file.
59739         * modules/unistr/u16-strrchr: New file.
59740         * modules/unistr/u32-strrchr: New file.
59741         * lib/unistr/u8-strrchr.c: New file.
59742         * lib/unistr/u16-strrchr.c: New file.
59743         * lib/unistr/u32-strrchr.c: New file.
59744
59745         * modules/unistr/u8-strspn: New file.
59746         * modules/unistr/u16-strspn: New file.
59747         * modules/unistr/u32-strspn: New file.
59748         * lib/unistr/u8-strspn.c: New file.
59749         * lib/unistr/u16-strspn.c: New file.
59750         * lib/unistr/u32-strspn.c: New file.
59751         * lib/unistr/u-strspn.h: New file.
59752
59753         * modules/unistr/u8-strstr: New file.
59754         * modules/unistr/u16-strstr: New file.
59755         * modules/unistr/u32-strstr: New file.
59756         * lib/unistr/u8-strstr.c: New file.
59757         * lib/unistr/u16-strstr.c: New file.
59758         * lib/unistr/u32-strstr.c: New file.
59759         * lib/unistr/u-strstr.h: New file.
59760
59761         * modules/unistr/u8-strtok: New file.
59762         * modules/unistr/u16-strtok: New file.
59763         * modules/unistr/u32-strtok: New file.
59764         * lib/unistr/u8-strtok.c: New file.
59765         * lib/unistr/u16-strtok.c: New file.
59766         * lib/unistr/u32-strtok.c: New file.
59767         * lib/unistr/u-strtok.h: New file.
59768
59769         * modules/unistr/u8-uctomb: New file.
59770         * modules/unistr/u16-uctomb: New file.
59771         * modules/unistr/u32-uctomb: New file.
59772         * lib/unistr/u8-uctomb.c: New file.
59773         * lib/unistr/u16-uctomb.c: New file.
59774         * lib/unistr/u32-uctomb.c: New file.
59775
59776         * MODULES.html.sh (Unicode string functions): Add the new modules.
59777
59778 2007-01-08  Bruno Haible  <bruno@clisp.org>
59779
59780         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
59781         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
59782         subdirectories.
59783
59784 2007-01-08  Karl Berry  <karl@gnu.org>
59785
59786         * doc/error.texi: mention that main() fns must set program_name
59787         when progname is used.
59788
59789 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
59790
59791         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
59792         WCTYPE_H is empty, for the benefit of builds from non-distclean
59793         directories.  Problem reported by Eric Blake in
59794         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
59795
59796 2007-01-08  Bruno Haible  <bruno@clisp.org>
59797
59798         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
59799         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
59800         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
59801         PROVIDE_CANONICALIZE_FILENAME_MODE.
59802         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
59803
59804 2007-01-08  Bruno Haible  <bruno@clisp.org>
59805
59806         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
59807         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
59808         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
59809         * lib/fts.c: Likewise.
59810         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
59811
59812 2006-12-25  Bruno Haible  <bruno@clisp.org>
59813
59814         * modules/utf8-ucs4-safe: New file.
59815         * lib/utf8-ucs4-safe.h: New file.
59816         * lib/unistr/utf8-ucs4-safe.c: New file.
59817
59818         * modules/utf16-ucs4-safe: New file.
59819         * lib/utf16-ucs4-safe.h: New file.
59820         * lib/unistr/utf16-ucs4-safe.c: New file.
59821
59822         * MODULES.html.sh (Unicode string functions): Add the new modules.
59823
59824 2007-01-08  Bruno Haible  <bruno@clisp.org>
59825
59826         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
59827         (Depends-on): Add unitypes.
59828         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
59829         (u8_mbtouc_aux): Move out to separate file.
59830         (u8_mbtouc): Use ucs4_t, uint8_t types.
59831         * lib/unistr/utf8-ucs4.c: New file.
59832
59833         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
59834         (Depends-on): Add unitypes.
59835         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
59836         (u16_mbtouc_aux): Move out to separate file.
59837         (u16_mbtouc): Use ucs4_t, uint16_t types.
59838         * lib/unistr/utf16-ucs4.c: New file.
59839
59840         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
59841         (Depends-on): Add unitypes.
59842         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
59843         (u8_uctomb_aux): Move out to separate file.
59844         (u8_uctomb): Use ucs4_t, uint8_t types.
59845         * lib/unistr/ucs4-utf8.c: New file.
59846
59847         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
59848         (Depends-on): Add unitypes.
59849         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
59850         (u16_uctomb_aux): Move out to separate file.
59851         (u16_uctomb): Use ucs4_t, uint16_t types.
59852         * lib/unistr/ucs4-utf16.c: New file.
59853
59854 2006-12-25  Bruno Haible  <bruno@clisp.org>
59855
59856         * modules/unitypes: New file.
59857         * lib/unitypes.h: New file.
59858         * MODULES.html.sh (func_all_modules): New section "Unicode string
59859         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
59860         this section. Add unitypes.
59861
59862 2007-01-08  Bruno Haible  <bruno@clisp.org>
59863
59864         Avoid variable names that conflict with those from libtool.
59865         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
59866         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
59867         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
59868         library_names_spec to acl_library_names_spec, hardcode_* to
59869         acl_hardcode_*.
59870         Reported by Ralf Wildenhues.
59871
59872 2007-01-08  Bruno Haible  <bruno@clisp.org>
59873
59874         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
59875         definition.
59876         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
59877         definition.
59878         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
59879         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
59880         definition.
59881         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
59882         definition.
59883         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
59884         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
59885         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
59886         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
59887         definition.
59888         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
59889         definition.
59890         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
59891         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
59892         GC_USE_<algorithm>.
59893         * lib/gc-libgcrypt.c: Likewise.
59894         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
59895         * modules/gc-arctwo (configure.ac): Likewise.
59896         * modules/gc-des (configure.ac): Likewise.
59897         * modules/gc-hmac-md5 (configure.ac): Likewise.
59898         * modules/gc-hmac-sha1 (configure.ac): Likewise.
59899         * modules/gc-md2 (configure.ac): Likewise.
59900         * modules/gc-md4 (configure.ac): Likewise.
59901         * modules/gc-md5 (configure.ac): Likewise.
59902         * modules/gc-random (configure.ac): Likewise.
59903         * modules/gc-rijndael (configure.ac): Likewise.
59904         * modules/gc-sha1 (configure.ac): Likewise.
59905
59906 2007-01-08  Bruno Haible  <bruno@clisp.org>
59907
59908         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
59909         macro definition.
59910         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
59911         definition.
59912         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
59913         definition.
59914         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
59915         * modules/fcntl-safer (configure.ac): Likewise.
59916         * modules/fopen-safer (configure.ac): Likewise.
59917         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
59918         GNULIB_FWRITEERROR macro definition.
59919
59920 2007-01-08  Bruno Haible  <bruno@clisp.org>
59921
59922         * m4/gnulib-common.m4: New file.
59923         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
59924         (func_get_filelist): Add m4/gnulib-common.m4.
59925
59926 2007-01-08  Bruno Haible  <bruno@clisp.org>
59927
59928         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
59929         command.
59930
59931 2007-01-08  Jim Meyering  <jim@meyering.net>
59932
59933         Use a more robust test for a "can't happen" condition.
59934         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
59935         narrowed the st_size value.  Presuming the "can't happen" condition
59936         is true, that narrowing could conceivably convert an invalid st_size
59937         value into a valid one.  Instead, use a change based on Matthew
59938         Woehlke's original patch.
59939
59940         Slight readability improvement: use an assert-like macro
59941         in place of literal "abort ()" uses.
59942         * lib/fts.c (fts_assert): Define.
59943         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
59944         Use this macro instead of a bare 'abort'.
59945
59946 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
59947
59948         Don't worry about using IRIX 5.3's wctype.h broken definitions;
59949         simply work around them.
59950         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
59951         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
59952         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
59953         declaring.
59954         Don't bother to define as macros, since the standard doesn't require it.
59955         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
59956         longer worry about IRIX 5.3.
59957         (HAVE_WCTYPE_CTMP_BUG): Remove.
59958
59959 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
59960
59961         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
59962         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
59963         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
59964         Problems reported by Georg Schwarz for IRIX 5.3.
59965
59966         * gnulib-tool (autoconf_minversion): Take the maximum version number
59967         found, not the minimum.  Problem reported by James Youngman.
59968
59969 2007-01-03  Karl Berry  <karl@gnu.org>
59970
59971         * doc/error.texi: new file, explaining interaction with progname.
59972         * doc/gnulib.texi: include it.  Update copyright.
59973
59974 2007-01-03  Simon Josefsson  <simon@josefsson.org>
59975
59976         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
59977         AC_CANONICAL_HOST, to improve autobuild outputs.
59978
59979 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
59980             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
59981
59982         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
59983         sockets, server sockets, and other file descriptors.  Count errors
59984         to compute the return value.  Reorder the code a bit to be easier
59985         to follow.  Don't set event bits that were not requested (except
59986         POLLERR and POLLHUP).
59987
59988 2007-01-01  Bruno Haible  <bruno@clisp.org>
59989
59990         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
59991
59992 2007-01-03  Jim Meyering  <jim@meyering.net>
59993
59994         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
59995
59996 2007-01-02  Bruno Haible  <bruno@clisp.org>
59997
59998         * modules/settime (Include): Require timespec.h.
59999         * modules/nanosleep (Include): Likewise.
60000
60001 2007-01-01  Bruno Haible  <bruno@clisp.org>
60002
60003         * gnulib-tool (func_emit_copyright_notice): Bump year.
60004         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
60005
60006 2007-01-01  Bruno Haible  <bruno@clisp.org>
60007
60008         Improve support for OpenBSD.
60009         * build-aux/config.rpath (libname_spec): Export.
60010         (library_names_spec): New variable. Export.
60011         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
60012         library_names_spec from the config.rpath output. Locate shared library
60013         through the name pattern in library_names_spec.
60014
60015 2007-01-01  Eric Blake  <ebb9@byu.net>
60016
60017         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
60018
60019 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
60020
60021         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
60022         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
60023         assume the C locale, and avoid an "eval" that could cause trouble.
60024         Problem with SORT reported by Bob Proulx.
60025
60026         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
60027         Define.  Trivial patch from Henning Nielsen Lund, originally
60028         sent to bug-grep@gnu.org today.
60029
60030 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
60031
60032         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
60033         struct stat.  Problem reported by Henning Nielsen Lund.
60034         * lib/acl.c: Include acl.h first, to check interface.  Don't
60035         bother to include sys/types.h and sys/stat.h again.
60036
60037 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
60038
60039         Import the following change from libc; problem reported by
60040         Sven Verdoolaege.
60041
60042         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
60043
60044         [BZ #1373]
60045         * lib/argp.h: Remove __NTH for __argp_usage inline function.
60046
60047 2006-12-28  Jim Meyering  <jim@meyering.net>
60048
60049         * build-aux/announce-gen: Do not assume that the package
60050         builds any of tar.gz, tar.bz2, and .xdelta files.
60051         Suggestion from Simon Josefsson.
60052
60053 2006-12-28  Simon Josefsson  <simon@josefsson.org>
60054
60055         * modules/announce-gen: New file.
60056
60057 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
60058
60059         * lib/mbchar.h: Just include <wctype.h>; the wctype module
60060         handles its gotchas now.
60061         * lib/mbswidth.c: Likewise.
60062         * lib/wcwidth.h: Likewise.
60063         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
60064         and iswcntrl; the wctype module does this stuff now.
60065         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
60066         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
60067         * modules/mbchar (Depends-on): Add wctype.
60068         * modules/mbswidth (Depends-on): Likewise.
60069         * modules/wcwidth (Depends-on): Likewise.
60070
60071 2006-12-27  Eric Blake  <ebb9@byu.net>
60072
60073         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
60074         module uses more than what <wctype.h> is required to provide.
60075
60076 2006-12-26  Eric Blake  <ebb9@byu.net>
60077
60078         * gnulib-tool (sed_extract_prog): Avoid space-tab.
60079
60080 2006-12-26  Eric Blake  <ebb9@byu.net>
60081
60082         * modules/absolute-header: New module.
60083         * modules/fcntl (Depends-on): Depend on it.
60084         * modules/inttypes (Depends-on): Likewise.
60085         * modules/stdint (Depends-on): Likewise.
60086         * modules/sys_stat (Depends-on): Likewise.
60087         * modules/wctype (Depends-on): Likewise.
60088         * MODULES.html.sh (Support for building libraries and
60089         executables): Document it.
60090
60091 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
60092
60093         * gnulib-tool (SED): Remove, undoing previous change.
60094         The problem was that it broke coreutils on Solaris, because
60095         "sed --posix" leaked into a makefile.
60096         (sed): New alias, if 'alias' and GNU sed.
60097
60098 2006-12-24  Jim Meyering  <jim@meyering.net>
60099
60100         Work around an fchownat bug in glibc-2.4:
60101         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
60102         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
60103         in spite of the -P option.
60104         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
60105         New macros.
60106         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
60107         * modules/openat (Files): Add lib/fchownat.c.
60108         * lib/openat.c (fchownat): Don't define here.  Move to...
60109         * lib/fchownat.c: ...this new file.
60110
60111 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
60112
60113         Fix bug reported by Bruno Haible in
60114         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
60115         where quotearg.c didn't compile on Mac OS X 10.2 because it
60116         lacks <wchar.h> and wint_t.
60117         * lib/wctype_.h (__wctype_wint_t): New type.
60118         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
60119         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
60120         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
60121         Arg is now of type __wctype_wint_t, not wint_t.
60122         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
60123         substitute HAVE_WINT_T.
60124         * modules/wctype (Files): Add m4/wint_t.m4.
60125         (wctype.h): Substitute HAVE_WINT_T.
60126
60127 2006-12-23  Bruno Haible  <bruno@clisp.org>
60128
60129         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
60130
60131 2006-12-23  Bruno Haible  <bruno@clisp.org>
60132
60133         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
60134         S_ISLNK.
60135         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
60136         mingw.
60137
60138 2006-12-22  Bruno Haible  <bruno@clisp.org>
60139
60140         * lib/copy-file.c: Include acl.h.
60141         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
60142         Close the file descriptors only after being done with copy_acl.
60143         * modules/copy-file (Depends-on): Add acl.
60144
60145 2006-12-22  Bruno Haible  <bruno@clisp.org>
60146
60147         * gnulib-tool (SED): New variable.
60148         Use $SED instead of sed everywhere.
60149
60150 2006-12-22  Bruno Haible  <bruno@clisp.org>
60151
60152         * modules/no-c++: New file.
60153         * m4/no-c++.m4: New file.
60154         * MODULES.html.sh (Support for building libraries and executables):
60155         Add no-c++.
60156
60157 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
60158
60159         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
60160         Include <limits.h>, and use its INT_MAX to rewrite the
60161         j loop so that it does not overflow 'int'.  Problem reported by
60162         Ralf Wildenhues in
60163         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
60164         Play it safe by shifting left by 1 rather than multiplying by 2,
60165         as GCC is less likely to optimize this away when the value
60166         is signed (when it assumes overflow leads to undefined behavior).
60167         Also, don't assume time_t uses two's complement.
60168
60169 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
60170
60171         * MODULES.html.sh: New module wctype.
60172         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
60173         * lib/fnmatch.c: Don't bother to include <wchar.h> before
60174         <wctype.h>, since the new wctype module should fix this.
60175         * lib/quotearg.c: Include <wctype.h> unconditionally, since
60176         the wctype module should arrange for it.
60177         * lib/regex_internal.h: Likewise.
60178         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
60179         since the wctype module should handle this now.
60180         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
60181         * modules/fnmatch (Depends-on): Add wctype.
60182         * modules/quotearg (Depends-on): Likewise.
60183         * modules/regex (Depends-on): Likewise.
60184
60185 2006-12-19  Bruno Haible  <bruno@clisp.org>
60186
60187         * lib/strdup.h [C++]: Wrap definitions in extern "C".
60188         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
60189
60190 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60191
60192         * modules/savewd (Depends-on): Fix dependency on fcntl.
60193
60194 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
60195
60196         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
60197         conforms to C99, rather than relying on the user's environment
60198         setting of STDINT_H.
60199
60200 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
60201         and Eric Blake  <ebb9@byu.net>
60202
60203         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
60204         This is more consistent with the other defines here.
60205         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
60206         Port to z/OS.  Problem reported by Paul Gilmartin.
60207         Change local vars to use gl_ prefix rather than ac_.
60208         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
60209         with other defines.
60210         * modules/double-slash-root: New module.
60211         * modules/dirname (Files): Remove m4/double-slash-root.m4.
60212         (Depends-on): Add double-slash-root.
60213         * MODULES.html.sh (File system functions): Mention new module.
60214
60215 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
60216
60217         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
60218         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
60219         This is for the benefit of gzip, which doesn't do i18n.
60220
60221 2006-12-12  Jim Meyering  <jim@meyering.net>
60222
60223         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
60224         Reported by Andreas Schwab <schwab@suse.de>.
60225
60226 2006-12-12  Bruno Haible  <bruno@clisp.org>
60227
60228         Merge these changes.
60229         2006-09-05  Bruno Haible  <bruno@clisp.org>
60230         * lib/iconvme.c (iconv_string): No need to save and restore errno when
60231         iconv_alloc succeeded.
60232         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
60233         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
60234         test for " && dest " at the end - dest is always != NULL there. Call
60235         iconv with 4xNULL arguments initially, to reset the state. Call iconv
60236         with 2xNULL arguments, also to flush the state storage. Handle the
60237         IRIX iconv behaviour. Realloc the final result, to throw away unused
60238         memory.
60239
60240 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
60241
60242         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
60243         and fchmodat unconditionally, since glibc 2.4 has them.
60244         Problem reported by Arkadiusz Miskiewicz.
60245
60246 2006-12-10  Bruno Haible  <bruno@clisp.org>
60247
60248         * gnulib-tool (func_import): Show the include files only for those
60249         modules that are copied and specified.
60250         Reported by Karl Berry.
60251
60252 2006-12-08  Jim Meyering  <jim@meyering.net>
60253
60254         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
60255         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
60256
60257         * build-aux/announce-gen: Add two new options, both optional:
60258         --bootstrap-tools=TOOL_LIST
60259               a comma-separated list of tools, e.g.,
60260               autoconf,automake,bison,gnulib
60261         --gnulib-snapshot-date=DATE
60262               if gnulib is in the bootstrap tool list,
60263               then report this as the snapshot date.
60264               If not specified, use the current date/time.
60265               If you specify a date here, be sure it's UTC.
60266
60267 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60268
60269         * tests/test-argp-2.sh: Fix test to match actual output.
60270         (func_compare): Fix sed script to be portable.
60271
60272 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
60273
60274         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
60275         workaround for this case.  It is not autoconfigured now; offhand
60276         it's hard to see how to autoconfigure it.
60277
60278 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
60279
60280         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
60281         a directory that is about to be chowned.  Such a directory's
60282         initial file permissions should permit the owner only and this
60283         should not be changed until after the chown, since the group and
60284         other bits would be incorrect if they granted permission before
60285         the chown.
60286
60287         Fix porting problem for iswctype reported by Georg Schwarz in:
60288         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
60289         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
60290         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
60291         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
60292         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
60293
60294 2006-12-03  Jim Meyering  <jim@meyering.net>
60295
60296         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
60297         p->fts_statp may not yet be defined.
60298         (fts_read): Instead, set it in the caller, once p->fts_statp is
60299         sure to be defined, and corresponds to a top-level directory.
60300         This bug made du -x fail.  Here's the coreutils test case:
60301         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
60302         Reported by Mike Frysinger.
60303
60304 2006-12-01  Jim Meyering  <jim@meyering.net>
60305
60306         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
60307         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
60308         Reported by Simon Josefsson.
60309
60310 2006-11-30  Jim Meyering  <jim@meyering.net>
60311
60312         * m4/warning.m4: Use the all-permissive copyright notice
60313         recommended by RMS (rather than LGPL).
60314         * m4/vararrays.m4: Likewise.
60315         * m4/flexmember.m4: Likewise.
60316
60317 2006-11-29  Bruno Haible  <bruno@clisp.org>
60318
60319         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
60320         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
60321         using +=.
60322         Reported by Simon Josefsson <simon@josefsson.org>.
60323
60324 2006-11-28  James Youngman <jay@gnu.org>
60325
60326         * README: Advise users that they might find the bug-gnulib@gnu.org
60327         and autotools-announce@gnu.org mailing lists useful.
60328
60329 2006-11-28  Bruno Haible  <bruno@clisp.org>
60330
60331         * m4/ptrdiff_max.m4: Remove file.
60332
60333 2006-11-21  Bruno Haible  <bruno@clisp.org>
60334
60335         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
60336         _AC_COMPUTE_INT.
60337         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
60338         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
60339         _AC_COMPUTE_INT.
60340         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
60341         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
60342         _AC_COMPUTE_INT.
60343         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
60344
60345 2006-11-28  Jim Meyering  <jim@meyering.net>
60346
60347         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
60348         warning from "gcc -Wshadow" about shadowing the builtin.
60349
60350 2006-11-27  Bruno Haible  <bruno@clisp.org>
60351
60352         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
60353         _AC_COMPUTE_INT.
60354         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
60355
60356 2006-11-27  Bruno Haible  <bruno@clisp.org>
60357             Paul Eggert  <eggert@cs.ucla.edu>
60358
60359         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
60360
60361 2006-11-26  Bruno Haible  <bruno@clisp.org>
60362
60363         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
60364         noinst_LTLIBRARIES.
60365
60366 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
60367             Bruno Haible  <bruno@clisp.org>
60368
60369         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
60370         if compiling with "gcc -ansi".
60371
60372 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
60373
60374         Fix some incompatibilities with gcc -ansi -pedantic.
60375         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
60376         if compiling pedantically with GCC, unless it's C99 or later.
60377         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
60378         it mishandles gcc -ansi -pedantic as well.
60379         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
60380         if gcc -pedantic.
60381         * lib/regexec.c (check_node_accept_bytes): Don't use auto
60382         initializers for struct if -pedantic, unless it's C99 or later.
60383
60384 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
60385
60386         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
60387         Don't close an fd more than once. Identical atimes indicate
60388         success, not failure.
60389
60390 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
60391
60392         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
60393
60394 2006-11-23  Jim Meyering  <jim@meyering.net>
60395
60396         * build-aux/announce-gen: New file.  From coreutils.
60397
60398 2006-11-22  Jim Meyering  <jim@meyering.net>
60399
60400         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
60401         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
60402         (fts_read): Use a temporary to narrow the overused st_size member
60403         before using it in a switch statement.  Reported by Matthew Woehlke.
60404
60405         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
60406         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
60407
60408 2006-11-20  Bruno Haible  <bruno@clisp.org>
60409
60410         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
60411         changequote instead of pairs of brackets.
60412         Reported by Andreas Schwab <schwab@suse.de>.
60413
60414 2006-11-21  Jim Meyering  <jim@meyering.net>
60415
60416         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
60417         so as to remain compatible with older compilers.
60418         Patch from Michael Deutschmann.
60419
60420 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
60421
60422         * MODULES.html.sh (File system functions): Add openat.
60423
60424         * lib/openat.h (rpl_fstatat): New macro, if
60425         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
60426         (fstatat): Define to rpl_fstatat under the same conditions,
60427         unless COMPILING_FSTATAT.
60428         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
60429         seems to have the bug.
60430         * lib/fstatat.c: New file.
60431         * modules/openat (Files): Add it.
60432
60433 2006-11-20  Bruno Haible  <bruno@clisp.org>
60434
60435         * Makefile: New file.
60436
60437 2006-11-20  Jim Meyering  <jim@meyering.net>
60438
60439         The beginnings of syntax-related checks for gnulib.
60440         * lib/Makefile: New file.
60441         * lib/t-idcache: New script.  Ensure that the two halves of
60442         idcache.c stay in sync.
60443
60444         * lib/idcache.c: Adjust comments in user- and group- portions to
60445         be more accurate, and to be consistent with one another.
60446
60447 2006-11-20  Jim Meyering  <jim@meyering.net>
60448
60449         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
60450         continue using the flexible array member (thus, this module performs
60451         half as many malloc calls), with the addition that...
60452         (getgroup, getuser): Consistently record a non-match via an empty
60453         "name" string, and map an empty string match to a NULL return value.
60454         * modules/idcache (Depends-on): Re-add flexmember.
60455
60456         * lib/idcache.c (getuser): Remove all uses of the register keyword.
60457         (getuidbyname, getgroup, getgidbyname): Likewise.
60458
60459         Use cleaner syntax: NULL rather than 0.
60460         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
60461
60462 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
60463
60464         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
60465         It mishandled the case where the group was missing.
60466         Problem reported by Greg Schafer.
60467         * modules/idcache: Likewise.
60468
60469 2006-11-18  Jim Meyering  <jim@meyering.net>
60470
60471         * check-module (%exempt_header): Add exception for some
60472         conditionally-included headers.
60473
60474         * modules/i-ring (Depends-on): Add verify.
60475         (License): Change to LGPL.
60476
60477 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60478
60479         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
60480         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
60481         and inttostr.h.  Use snprintf rather than uinttostr, so that
60482         LGPLed code doesn't depend on GPLed.
60483
60484 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
60485
60486         * modules/inline (License): Change from GPL to LGPL.
60487
60488 2006-11-17  Jim Meyering  <jim@meyering.net>
60489
60490         * modules/d-type (License): Switch to LGPL.
60491
60492 2006-11-15  Bruno Haible  <bruno@clisp.org>
60493
60494         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
60495
60496 2006-11-15  Eric Blake  <ebb9@byu.net>
60497
60498         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
60499         the module dependency.
60500
60501 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60502             Bruno Haible  <bruno@clisp.org>
60503
60504         * gnulib-tool (func_create_testdir): Add license consistency check.
60505
60506 2006-11-15  Eric Blake  <ebb9@byu.net>
60507
60508         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
60509         random "(cached)" in configure output.
60510
60511 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60512
60513         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
60514         test for conforming inttypes.h is both announced and cached.
60515
60516         * MODULES.html.sh (seen_modules, seen_files): New variables.
60517         (func_module): Rewrite to use a few less gnulib-tool and sed
60518         invocations.  Avoid a couple of quadratic algorithms for ...
60519         (missed_modules, missed_files): ... these, with ...
60520         (func_append, func_tmpdir): ... these new functions, from
60521         gnulib-tool.  Analogously, install traps for cleanup.
60522
60523         * tests/test-gc.c (main): Remove unused variables.
60524         * tests/test-read-file.c: Include stdlib.h, for 'free'.
60525
60526 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
60527
60528         * modules/inttostr (License): Change to LGPL.
60529
60530 2006-11-14  Eric Blake  <ebb9@byu.net>
60531
60532         * modules/tempname (License): Change to LGPL.
60533
60534 2006-11-14  Eric Blake  <ebb9@byu.net>
60535
60536         * doc/functions.texi (Function Portability): *printf functions on
60537         Cygwin now understand all POSIX size specifiers.
60538
60539 2006-11-14  Bruno Haible  <bruno@clisp.org>
60540
60541         * modules/c-ctype (License): Change to LGPL.
60542
60543 2006-11-12  Bruno Haible  <bruno@clisp.org>
60544
60545         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
60546         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
60547         for GNOME libraries, for which the include files are installed in
60548         subdirectories of $prefix/include.
60549
60550 2006-11-12  Bruno Haible  <bruno@clisp.org>
60551
60552         * m4/lib-link.m4: Require at least autoconf-2.54.
60553         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
60554         name to underscores for the --with option.
60555
60556 2006-11-13  Bruno Haible  <bruno@clisp.org>
60557
60558         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
60559         the tests directory.
60560         Reported by Ralf Wildenhues.
60561
60562 2006-11-13  Bruno Haible  <bruno@clisp.org>
60563
60564         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
60565         (func_emit_initmacro_end): Undo the override here.
60566         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
60567         Works around the famous automake error in coreutils.
60568
60569 2006-11-13  Eric Blake  <ebb9@byu.net>
60570
60571         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
60572         element, not its node.
60573
60574 2006-11-12  Bruno Haible  <bruno@clisp.org>
60575
60576         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
60577         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
60578
60579 2006-11-12  Bruno Haible  <bruno@clisp.org>
60580
60581         * gnulib-tool: New option --local-symlink.
60582         (func_usage): Document it.
60583         (lsymbolic): New variable.
60584         (func_import, func_create_testdir): If --symlink was not specified,
60585         test whether --local-symlink was specified and the file comes from
60586         the local_gnulib_dir.
60587
60588 2006-11-12  Bruno Haible  <bruno@clisp.org>
60589
60590         * gnulib-tool (func_ln): New function.
60591         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
60592
60593 2006-11-12  Bruno Haible  <bruno@clisp.org>
60594
60595         Finish support for source files in subdirectories.
60596         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
60597         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
60598         AUTOMAKE_OPTIONS.
60599         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
60600
60601 2006-11-12  Bruno Haible  <bruno@clisp.org>
60602
60603         * gnulib-tool (func_get_automake_snippet): Synthesize also an
60604         EXTRA_lib_SOURCES augmentation.
60605         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
60606
60607 2006-11-12  Jim Meyering  <jim@meyering.net>
60608
60609         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
60610         file descriptors.  This also averts a failure on systems with
60611         native openat support when a traversed directory lacks "x" access.
60612         * lib/fts_.h: Include "i-ring.h"
60613         (struct FTS) [fts_fd_ring]: New member.
60614         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
60615         (FCHDIR): Add parentheses.
60616         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
60617         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
60618         When descending, rather than simply closing the previous
60619         fts_cwd_fd value, push that file descriptor onto the ring.
60620         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
60621         (fts_open): Initialize the new fd_ring member.
60622         (fts_close): Clear the ring.
60623         (fts_safe_changedir): When possible, use our new fd_ring to skip
60624         the diropen and fstat and dev/ino comparison that would normally
60625         accompany a virtual `chdir ("..")'.
60626
60627         * modules/fts (Depends-on): Add i-ring.
60628         * modules/i-ring: New module.
60629         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
60630         * m4/i-ring.m4: New file.
60631
60632 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60633
60634         * gnulib-tool (func_create_testdir): Fix replacement of
60635         `build-aux' in configure.ac.  Run autotools in gltests
60636         subdirectory.
60637         (func_create_testdir, func_create_megatestdir, test): There is
60638         no need for '--force' in most autotool invocations in a new
60639         tree.  Actually fail the whole test if any of the tools, or the
60640         configure or make stages fail.
60641
60642         Sync from Automake.
60643         * build-aux/gnupload: Revert last change.  Add pointer to upload
60644         instructions of the GNU Maintenance Instructions.
60645         Suggestion by Karl Berry.
60646
60647 2006-11-10  Jim Meyering  <jim@meyering.net>
60648
60649         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
60650
60651 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
60652
60653         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
60654         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
60655         (bind_textdomain_codeset) [! ENABLE_NLS]:
60656         Evaluate all the arguments.  That way, callers get compatible behavior
60657         if the arguments have side effects.  Also, it avoids some GCC
60658         diagnostics in some cases; Joel E. Denny reported problems when Bison
60659         was configured with --enable-gcc-warnigs.
60660
60661 2006-11-10  Jim Meyering  <jim@meyering.net>
60662
60663         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
60664         relevant options in CFLAGS (like -O, -fno-inline) are taken into
60665         account.
60666
60667 2006-11-10  Jim Meyering  <jim@meyering.net>
60668
60669         * modules/inline: New file/module.
60670         * modules/xalloc (Files): Remove m4/inline.m4.
60671         (Depends-on): Add inline, instead.
60672         * modules/oset: Likewise.
60673         * modules/list: Likewise.
60674
60675 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
60676
60677         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
60678         Problem reported by Matthew Woehlke.
60679
60680 2006-11-09  Bruno Haible  <bruno@clisp.org>
60681
60682         * lib/tempname.c (gen_tempname): Remove variant that invokes
60683         __gen_tempname.
60684         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
60685         __gen_tempname.
60686
60687 2006-11-08  Bruno Haible  <bruno@clisp.org>
60688
60689         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
60690         to 'yes' instead of 'cross-compiling'.
60691
60692 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
60693
60694         * lib/quotearg.h (quotearg_free): New decl.
60695         * lib/quotearg.c (quotearg_free): New function.
60696         (slot0, nslots, slotvec0, slotvec):
60697         Now file-scope so that quotearg_free can get at them.
60698
60699 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60700
60701         Sync from Automake.
60702         * build-aux/gnupload: Add missing 'gnu' to example URL.
60703         Report by Karl Berry.
60704
60705 2006-11-08  Bruno Haible  <bruno@clisp.org>
60706
60707         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
60708         Suggested by Paul Eggert.
60709
60710 2006-11-08  Jim Meyering  <jim@meyering.net>
60711
60712         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
60713         It's already included if !_LIBC.
60714         (fts_safe_changedir): Add a comment.
60715
60716 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
60717
60718         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
60719         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
60720         Matthew Woehlke.
60721
60722         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
60723         definitions up, to avoid colliding with change below.
60724         (static_inline) [HAVE_INLINE]: New macro.
60725         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
60726         Provide extern decls when !HAVE_INLINE.  Do not define unless
60727         static_inline is defined, either by us or by xmalloc.c.  Use
60728         static_inline rather than static inline.
60729         (XCALLOC): Optimize sizeof(T) = 1 case.
60730         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
60731
60732 2006-11-07  Bruno Haible  <bruno@clisp.org>
60733
60734         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
60735         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
60736         AC_C_INLINE.
60737         * modules/xalloc (Files): Add m4/inline.m4.
60738
60739 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60740
60741         * README: Fix typo.
60742         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
60743         (Miscellanous Notes): ...from this.
60744
60745 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
60746
60747         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
60748         Mention that offsetof should be used instead of sizeof.
60749         From Bruno Haible.
60750
60751 2006-11-07  Bruno Haible  <bruno@clisp.org>
60752
60753         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
60754
60755 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
60756
60757         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
60758         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
60759         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
60760         (gl_tree_add_before, gl_tree_add_after):
60761         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
60762         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
60763         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
60764         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
60765         (gl_linked_add_after, gl_linked_add_at): Likewise.
60766         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
60767         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
60768         (gl_tree_add_before, gl_tree_add_after): Likewise.
60769         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
60770         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
60771         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
60772
60773 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60774
60775         * lib/gl_oset.h: Use C comment style, not C++ comment style.
60776
60777 2006-11-06  Bruno Haible  <bruno@clisp.org>
60778
60779         * m4/inline.m4: New file.
60780         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
60781         * modules/list (Files): Add m4/inline.m4.
60782         * modules/oset (Files): Likewise.
60783
60784 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
60785
60786         * lib/idcache.c: Include <stddef.h>, for offsetof.
60787         (struct userid.name): Change from char * to a flexible array member.
60788         All uses changed.
60789         * modules/idcache (Depends-on): Add flexmember.
60790
60791         * MODULES.html.sh (Core language properties): New module flexmember.
60792         * modules/flexmember, m4/flexmember.m4: New files.
60793
60794         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
60795         inline functions that are identical with the old xnmalloc_inline,
60796         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
60797         that we can avoid some unnecessary integer multiplications and
60798         divisions in the common case where the element size is known at
60799         compile time.
60800         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
60801         needed.
60802         (xnboundedmalloc): Remove.
60803         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
60804         arguments, for consistency with rest of this header.
60805         (xcharalloc): Rewrite using XNMALLOC.
60806         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
60807         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
60808         versions have been moved to lib/xalloc.h and renamed to be the
60809         non-*_inline versions.
60810         (xmalloc, xrealloc): Implement without reference to the xnmalloc
60811         and xnrealloc functions, since those functions are now inline and
60812         now call us.
60813         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
60814         renaming described above.
60815         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
60816         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
60817         captures the dependency in AC_C_INLINE.
60818
60819         New module canonicalize-lgpl, proposed by Charles Wilson in
60820         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
60821         with a few small changes afterwards.
60822         * MODULES.html.sh (File system functions): New module
60823         canonicalize-lgpl.
60824         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
60825         and canonicalize_file_name.
60826         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
60827         * modules/canonicalize-lgpl: New files.
60828
60829 2006-11-05  Bruno Haible  <bruno@clisp.org>
60830
60831         * gnulib-tool (func_import, func_create_testdir): Create directories
60832         also for files in subdirectories of lib/.
60833
60834 2006-11-05  Bruno Haible  <bruno@clisp.org>
60835
60836         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
60837         ANSI C compliant.
60838
60839 2006-11-03  Bruno Haible  <bruno@clisp.org>
60840
60841         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
60842         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
60843         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
60844         (xnboundedmalloc): New inline function.
60845         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
60846         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
60847         xmalloc.
60848         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
60849         xmalloc.
60850         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
60851         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
60852         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
60853         xmalloc.
60854         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
60855         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
60856         xmalloc.
60857         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
60858         gl_tree_add_after): Use XMALLOC instead of xmalloc.
60859         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
60860         xmalloc.
60861         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
60862         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
60863         gl_tree_add_after): Use XMALLOC instead of xmalloc.
60864         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
60865         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
60866         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
60867         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
60868
60869 2006-11-03  Bruno Haible  <bruno@clisp.org>
60870
60871         * lib/c-ctype.h [C++]: Define functions without name mangling.
60872         * lib/fwriteerror.h [C++]: Likewise.
60873         * lib/gcd.h [C++]: Likewise.
60874         * lib/linebreak.h [C++]: Likewise.
60875
60876 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
60877
60878         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
60879         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
60880         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
60881         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
60882         Check for functions and headers just once.
60883         Check for declaration of canonicalize_file_name.
60884         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
60885
60886 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
60887
60888         * gnulib-tool (func_import): Fix typo in actioncmd.
60889
60890 2006-11-02  Bruno Haible  <bruno@clisp.org>
60891
60892         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
60893         newline sequence in the Makefile.am snippet as a space, like "make"
60894         does.
60895         Reported by Roger Persson <perrog@gmail.com>.
60896
60897 2006-11-01  Bruno Haible  <bruno@clisp.org>
60898
60899         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
60900         already declared in <string.h>.
60901         * lib/strcase.h (strncasecmp): Don't declare it if yes.
60902
60903 2006-11-01  Bruno Haible  <bruno@clisp.org>
60904
60905         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
60906         * lib/strcase.h: Include <string.h>.
60907         (strcasecmp): Define to rpl_strcasecmp here.
60908
60909 2006-11-01  Bruno Haible  <bruno@clisp.org>
60910
60911         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
60912
60913 2006-11-01  Eric Blake  <ebb9@byu.net>
60914
60915         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
60916
60917         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
60918
60919 2006-10-29  Bruno Haible  <bruno@clisp.org>
60920
60921         Make it compile in C++ mode.
60922         * lib/full-write.c (full_rw): Add a cast.
60923
60924 2006-11-01  Bruno Haible  <bruno@clisp.org>
60925
60926         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
60927         be POSIX compliant.
60928         Reported by Roger Persson <perrog@gmail.com>.
60929
60930 2006-11-01  Eric Blake  <ebb9@byu.net>
60931
60932         * lib/getopt_.h: Fix comments.
60933
60934 2006-10-31  Eric Blake  <ebb9@byu.net>
60935
60936         * modules/tmpdir (Depends-on): Add sys_stat.
60937         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
60938         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
60939         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
60940         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
60941         tempname.
60942
60943 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
60944
60945         Avoid some C++ diagnostics reported by Bruno Haible.
60946         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
60947         xmalloc.
60948         (quotearg_alloc): Use xcharalloc rather than xmalloc.
60949         (struct slotvec): Move to top level.
60950         (quotearg_n_options): Rewrite to avoid xmalloc.
60951         * lib/xalloc.h (xcharalloc): New function.
60952         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
60953         [defined __cplusplus]: Add function template that provides result
60954         type propagation.  This part of the change is from Bruno Haible.
60955
60956 2006-10-29  Bruno Haible  <bruno@clisp.org>
60957
60958         Make it compile in C++ mode.
60959         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
60960         * lib/strnlen1.c (strnlen1): Cast memchr result.
60961         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
60962         * lib/clean-temp.c (string_equals, string_hash): Add casts.
60963         (create_temp_dir): Rename local variable 'template'.
60964         (compile_csharp_using_sscli): Add cast.
60965         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
60966         * lib/findprog.c (find_in_path): Likewise.
60967         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
60968         * lib/wait-process.c (register_slave_subprocess): Likewise.
60969
60970 2006-10-22  Bruno Haible  <bruno@clisp.org>
60971
60972         * modules/tsearch: New file.
60973         * lib/tsearch.h: New file.
60974         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
60975         * m4/tsearch.m4: New file.
60976         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
60977
60978 2006-10-29  Eric Blake  <ebb9@byu.net>
60979
60980         * lib/arcfour.c: Assume config.h.
60981         * lib/arctwo.c: Likewise.
60982         * lib/base64.c: Likewise.
60983         * lib/check-version.c: Likewise.
60984         * lib/crc.c: Likewise.
60985         * lib/des.c: Likewise.
60986         * lib/gc-gnulib.c: Likewise.
60987         * lib/gc-libgcrypt.c: Likewise.
60988         * lib/gc-pbkdf2-sha1.c: Likewise.
60989         * lib/getaddrinfo.c: Likewise.
60990         * lib/getdelim.c: Likewise.
60991         * lib/getline.c: Likewise.
60992         * lib/hmac-md5.c: Likewise.
60993         * lib/hmac-sha1.c: Likewise.
60994         * lib/iconvme.c: Likewise.
60995         * lib/md2.c: Likewise.
60996         * lib/md4.c: Likewise.
60997         * lib/memxor.c: Likewise.
60998         * lib/read-file.c: Likewise.
60999         * lib/readline.c: Likewise.
61000         * lib/rijndael-alg-fst.c: Likewise.
61001         * lib/rijndael-api-fst.c: Likewise.
61002         * lib/xgetdomainname.c: Likewise.
61003
61004 2006-10-28  Eric Blake  <ebb9@byu.net>
61005
61006         * lib/xstrndup.c: Assume config.h.
61007
61008 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
61009
61010         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
61011         stat-macros.h is now for our own macros, whereas stat_h is for
61012         macros in the <sys/stat.h> name space.
61013         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
61014         (STAT_MACROS_H): Remove.
61015         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
61016         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
61017         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
61018         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
61019         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
61020         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
61021         Move these macros to ...
61022         * lib/stat_.h: here.  Don't include stat-macros.h.
61023         * lib/canonicalize.c: Don't include stat-macros.h.
61024         * lib/chown.c: Likewise.
61025         * lib/euidaccess.c: Likewise.
61026         * lib/file-type.c: Likewise.
61027         * lib/filemode.c: Likewise.
61028         * lib/glob.c: Likewise.
61029         * lib/isapipe.c: Likewise.
61030         * lib/lchown.c: Likewise.
61031         * lib/lstat.c: Likewise.
61032         * lib/mkdir-p.c: Likewise.
61033         * lib/rmdir.c: Likewise.
61034         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
61035         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
61036         unless mkdir isn't declared, to speed up 'configure'.
61037         Always create sys/stat.h, since it's unlikely any real sys/stat.h
61038         would define all the S_* symbols.
61039         * modules/canonicalize (Depends-on):
61040         Depend on sys_stat, not stat-macros.
61041         * modules/chown: Likewise.
61042         * modules/euidaccess: Likewise.
61043         * modules/filemode: Likewise.
61044         * modules/file-type: Likewise.
61045         * modules/glob: Likewise.
61046         * modules/isapipe: Likewise.
61047         * modules/lchown: Likewise.
61048         * modules/lstat: Likewise.
61049         * modules/mkancesdirs: Likewise.
61050         * modules/rmdir: Likewise.
61051         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
61052         * modules/modechange: Likewise.
61053         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
61054         (configure.ac): Remove gl_STAT_MACROS.
61055         * modules/sys_stat (Depends-on): Remove stat-macros.
61056
61057 2006-10-27  Bruno Haible  <bruno@clisp.org>
61058
61059         * m4/signed.m4: Remove file.
61060         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
61061         invocation.
61062         * modules/vasnprintf (Files): Remove m4/signed.m4.
61063
61064 2006-10-27  Bruno Haible  <bruno@clisp.org>
61065
61066         Update to GNU gettext 0.16.
61067         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
61068         m4/inttypes-h.m4, m4/signed.m4.
61069         * m4/gettext.m4: Update to GNU gettext 0.16.
61070         * m4/intl.m4: New file, from GNU gettext.
61071         * m4/intldir.m4: New file, from GNU gettext.
61072         * config/srclist.txt: Update
61073
61074 2006-10-27  Eric Blake  <ebb9@byu.net>
61075
61076         * MODULES.html.sh: Document tempname.
61077         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
61078         dependencies.
61079         (Files): Move lib/tempname.c...
61080         * modules/tempname: ...to this new module.
61081         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
61082         (gl_PREREQ_TEMPNAME): Move...
61083         * m4/tempname.m4: ...to this new file.
61084         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
61085         * modules/sys_stat (Depends-on): Add stat-macros.
61086         * lib/stat_.h (includes): Pick up stat macros.
61087         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
61088         if stat macros are broken.
61089         * lib/tempname.c (includes): No need to include "stat-macros.h".
61090         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
61091         (direxists, __path_search) [!_LIBC]: Don't compile these in
61092         gnulib; the tmpdir module covers that.
61093         * lib/tempname.h: New file.
61094
61095 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
61096
61097         * COPYING: Explain how gnulib-tool converts licence headers.
61098         Almost all wording by Eric Blake.
61099
61100 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
61101
61102         * lib/mbchar.h (is_basic_table): Make read-only.
61103         * lib/mbchar.c (is_basic_table): Likewise.
61104         Reported by John Darrington.
61105
61106 2006-10-25  Bruno Haible  <bruno@clisp.org>
61107
61108         * lib/progname.h (set_program_name): Undefine before defining.
61109
61110 2006-10-25  Bruno Haible  <bruno@clisp.org>
61111
61112         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
61113         false for non-gcc C++ compilers.
61114         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
61115
61116 2006-10-24  Bruno Haible  <bruno@clisp.org>
61117
61118         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
61119         iconv implementations like Irix iconv.
61120
61121 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
61122
61123         * modules/vararrays: New file.
61124         * m4/vararrays.m4: New file, taken from diffutils.
61125         * MODULES.html.sh: New module vararrays.
61126
61127 2006-10-24  Karl Berry  <karl@gnu.org>
61128
61129         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
61130         Don't call GNU Unix.
61131
61132 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61133
61134         * users.txt: Add Libtool.
61135
61136         Sync from Libtool:
61137
61138         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
61139
61140         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
61141         to gnulib's policy of including config.h unconditionally.
61142
61143 2006-10-24  Bruno Haible  <bruno@clisp.org>
61144
61145         * modules/wcwidth (Files): Add m4/wint_t.m4.
61146         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
61147         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
61148
61149 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
61150
61151         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
61152         to pacify GCC with some -W flags enabled.  Problem reported by
61153         Bruno Haible.
61154
61155 2006-10-24  Jim Meyering  <jim@meyering.net>
61156
61157         * MODULES.html.sh: Remove uinttostr.  It's not a module.
61158         Reported by Karl Berry.
61159
61160 2006-10-23  Bruno Haible  <bruno@clisp.org>
61161
61162         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
61163
61164 2006-10-24  Bruno Haible  <bruno@clisp.org>
61165
61166         * lib/gl_list.h: Use C comment style, not C++ comment style.
61167
61168 2006-10-23  Eric Blake  <ebb9@byu.net>
61169
61170         * lib/getaddrinfo.c (includes): Add missing include.
61171
61172 2006-10-23  Bruno Haible  <bruno@clisp.org>
61173             Paul Eggert  <eggert@cs.ucla.edu>
61174
61175         Ability to rename obstack_free.
61176         * lib/obstack.h (__obstack_free): New macro. Declare instead of
61177         obstack_free.
61178         (obstack_free): Invoke the __obstack_free macro.
61179         * lib/obstack.c (obstack_free): Use __obstack_free macro.
61180
61181 2006-10-23  Bruno Haible  <bruno@clisp.org>
61182             Paul Eggert  <eggert@cs.ucla.edu>
61183
61184         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
61185         __argc, __argv from the declaration. (They are defined as macros on
61186         mingw.)
61187
61188 2006-10-22  Bruno Haible  <bruno@clisp.org>
61189
61190         * doc/gnulib-intro.texi: New file.
61191         * doc/gnulib.texi: Include it.
61192
61193 2006-10-21  Bruno Haible  <bruno@clisp.org>
61194
61195         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
61196         "Introduction", "Miscellanous Notes", "Particular Modules".
61197
61198 2006-10-21  Bruno Haible  <bruno@clisp.org>
61199
61200         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61201         Change mostlyclean-local rule to avoid sh syntax error from bash
61202         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
61203
61204 2006-10-23  Jim Meyering  <jim@meyering.net>
61205
61206         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
61207         in place of snprintf.
61208
61209         * modules/inttostr (Files): Add lib/uinttostr.c.
61210         * lib/uinttostr.c (inttostr): New file/function.
61211         * lib/inttostr.h (uinttostr): Declare.
61212         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
61213         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
61214         Add uinttostr.
61215         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
61216
61217 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
61218
61219         * lib/canonicalize.c (ELOOP): Define if not already defined.
61220         Problem reported by Bruno Haible in
61221         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
61222
61223 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
61224
61225         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
61226         Problem reported by Perry Smith and Ville Laurikari.
61227
61228         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
61229         uses.
61230
61231 2006-10-19  Bruno Haible  <bruno@clisp.org>
61232
61233         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
61234         for mingw.
61235
61236 2006-10-19  Bruno Haible  <bruno@clisp.org>
61237
61238         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
61239         Needed for mingw.
61240
61241 2006-10-19  Bruno Haible  <bruno@clisp.org>
61242
61243         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
61244
61245 2006-10-19  Bruno Haible  <bruno@clisp.org>
61246
61247         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
61248         it.
61249
61250 2006-10-19  Bruno Haible  <bruno@clisp.org>
61251
61252         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
61253         invocation.
61254
61255 2006-10-19  Bruno Haible  <bruno@clisp.org>
61256
61257         * gnulib-tool (func_create_testdir): Don't include ftruncate and
61258         mountlist by default.
61259
61260 2006-10-16  Bruno Haible  <bruno@clisp.org>
61261
61262         * lib/c-strstr.c: Include c-strstr.h.
61263
61264 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
61265
61266         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
61267         in a slash.
61268
61269 2006-10-18  Bruno Haible  <bruno@clisp.org>
61270
61271         * lib/lock.h [C++]: Wrap definitions in extern "C".
61272
61273 2006-10-18  Bruno Haible  <bruno@clisp.org>
61274
61275         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
61276         gl_LIBOBJS list.
61277
61278 2006-10-18  Bruno Haible  <bruno@clisp.org>
61279
61280         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
61281
61282 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
61283
61284         * lib/xstrtol.h: Include gettext.h.
61285         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
61286         Problem reported by Eric Blake.
61287         * modules/xstrtol (Depends-on): Add gettext-h.
61288
61289 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
61290
61291         * lib/strftime.c (advance): New macro.
61292         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
61293         incomplete type, so you can't add 0 to it.  Problem and patch
61294         reported by Eelco Dolstra for dietlibc.
61295
61296 2006-10-18  Jim Meyering  <jim@meyering.net>
61297
61298         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
61299         type for a local, and rename it: s/up/user_proc/.
61300
61301 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
61302
61303         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
61304         READ_UTMP_USER_PROCESS.
61305         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
61306
61307 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
61308
61309         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
61310         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
61311
61312 2006-10-17  Eric Blake  <ebb9@byu.net>
61313
61314         * lib/sigprocmask.c (sigprocmask): Fix typo.
61315
61316         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
61317
61318         * modules/clean-temp (Makefile.am): Don't add to make output...
61319         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
61320         config.h.
61321
61322 2006-10-17  Bruno Haible  <bruno@clisp.org>
61323
61324         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
61325         differently if DEFAULT_TEXT_DOMAIN is set.
61326
61327 2006-10-16  Bruno Haible  <bruno@clisp.org>
61328
61329         * lib/clean-temp.c: Include fwriteerror.h.
61330
61331 2006-10-16  Bruno Haible  <bruno@clisp.org>
61332
61333         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
61334
61335 2006-10-16  Bruno Haible  <bruno@clisp.org>
61336
61337         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
61338         * lib/sigprocmask.h: Include <sys/types.h>.
61339         (sigset_t): Use the system's definition if present.
61340
61341 2006-10-17  Eric Blake  <ebb9@byu.net>
61342
61343         * lib/xvasprintf.c (includes): Assume config.h.
61344         * lib/xasprintf.c (includes): Likewise.
61345
61346 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
61347
61348         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
61349         at least as wide as intmax_t.
61350
61351 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
61352
61353         (Imported from Automake.)
61354         * build-aux/gnupload: Update to version 1.1 of directive file.
61355
61356 2006-10-16  Eric Blake  <ebb9@byu.net>
61357
61358         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
61359         match Automake 1.10a.
61360
61361 2006-10-14  Bruno Haible  <bruno@clisp.org>
61362
61363         * modules/sigprocmask: New file.
61364         * lib/sigprocmask.h: New file.
61365         * lib/sigprocmask.c: New file.
61366         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
61367         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
61368         request sigprocmask.o.
61369         (gl_PREREQ_SIGPROCMASK): New macro.
61370         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
61371         (Depends-on): Add sigprocmask.
61372         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
61373         gt_SIGNALBLOCKING. Test for 'raise' only once.
61374         * lib/fatal-signal.c: Include sigprocmask.h.
61375         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
61376         unblock_fatal_signals): Define always.
61377         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
61378         sigprocmask.
61379
61380 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
61381
61382         Sync from Automake.
61383         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
61384         which incorrectly sets the mode of an existing destination
61385         directory.  In some cases the unpatched install-sh could do the
61386         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
61387         system.  We hope this is rare in practice, but it's clearly worth
61388         fixing.  Problem reported by Alex Unleashed in
61389         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
61390         Also, don't bother to check for -m bugs unless we're using -m;
61391         suggested by Stepan Kasal.
61392
61393 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61394
61395         Sync from Automake.
61396         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
61397         `-c' flag, so they appear at the same position as in %FASTDEP%
61398         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
61399         which ignores unknown options only after the first non-option.
61400         Bug report against M4 by Nelson H. F. Beebe.
61401
61402 2006-10-13  Jim Meyering  <jim@meyering.net>
61403
61404         Fix a bug in yesterday's change.
61405         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
61406         p->fts_statp->st_dev would be used uninitialized.
61407         Ensures that we always call fts_stat on the very first entry.
61408         Miklos Szeredi reported that find -xdev stopped working.
61409
61410 2006-10-12  Bruno Haible  <bruno@clisp.org>
61411
61412         * gnulib-tool (func_get_automake_snippet): Append an automatically
61413         computed EXTRA_DIST augmentation.
61414         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
61415         * modules/alloca-opt (Makefile.am): Likewise.
61416         * modules/allocsa (Makefile.am): Likewise.
61417         * modules/arcfour (Makefile.am): Likewise.
61418         * modules/arctwo (Makefile.am): Likewise.
61419         * modules/argmatch (Makefile.am): Likewise.
61420         * modules/argz (Makefile.am): Likewise.
61421         * modules/atexit (Makefile.am): Likewise.
61422         * modules/backupfile (Makefile.am): Likewise.
61423         * modules/byteswap (Makefile.am): Likewise.
61424         * modules/c-strtod (Makefile.am): Likewise.
61425         * modules/c-strtold (Makefile.am): Likewise.
61426         * modules/calloc (Makefile.am): Likewise.
61427         * modules/canon-host (Makefile.am): Likewise.
61428         * modules/canonicalize (Makefile.am): Likewise.
61429         * modules/chdir-long (Makefile.am): Likewise.
61430         * modules/chdir-safer (Makefile.am): Likewise.
61431         * modules/check-version (Makefile.am): Likewise.
61432         * modules/chown (Makefile.am): Likewise.
61433         * modules/cloexec (Makefile.am): Likewise.
61434         * modules/close-stream (Makefile.am): Likewise.
61435         * modules/closeout (Makefile.am): Likewise.
61436         * modules/crc (Makefile.am): Likewise.
61437         * modules/csharpexec (Makefile.am): Likewise.
61438         * modules/cycle-check (Makefile.am): Likewise.
61439         * modules/des (Makefile.am): Likewise.
61440         * modules/dev-ino (Makefile.am): Likewise.
61441         * modules/dirfd (Makefile.am): Likewise.
61442         * modules/dirname (Makefile.am): Likewise.
61443         * modules/dup2 (Makefile.am): Likewise.
61444         * modules/eealloc (Makefile.am): Likewise.
61445         * modules/error (Makefile.am): Likewise.
61446         * modules/euidaccess (Makefile.am): Likewise.
61447         * modules/exclude (Makefile.am): Likewise.
61448         * modules/exitfail (Makefile.am): Likewise.
61449         * modules/fcntl-safer (Makefile.am): Likewise.
61450         * modules/fcntl (Makefile.am): Likewise.
61451         * modules/file-type (Makefile.am): Likewise.
61452         * modules/fileblocks (Makefile.am): Likewise.
61453         * modules/filemode (Makefile.am): Likewise.
61454         * modules/filenamecat (Makefile.am): Likewise.
61455         * modules/fnmatch (Makefile.am): Likewise.
61456         * modules/fopen-safer (Makefile.am): Likewise.
61457         * modules/fpending (Makefile.am): Likewise.
61458         * modules/fprintftime (Makefile.am): Likewise.
61459         * modules/free (Makefile.am): Likewise.
61460         * modules/fsusage (Makefile.am): Likewise.
61461         * modules/ftruncate (Makefile.am): Likewise.
61462         * modules/fts (Makefile.am): Likewise.
61463         * modules/gc-arcfour (Makefile.am): Likewise.
61464         * modules/gc-des (Makefile.am): Likewise.
61465         * modules/gc-hmac-md5 (Makefile.am): Likewise.
61466         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
61467         * modules/gc-md4 (Makefile.am): Likewise.
61468         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
61469         * modules/gc-sha1 (Makefile.am): Likewise.
61470         * modules/gc (Makefile.am): Likewise.
61471         * modules/getaddrinfo (Makefile.am): Likewise.
61472         * modules/getcwd (Makefile.am): Likewise.
61473         * modules/getdelim (Makefile.am): Likewise.
61474         * modules/getdomainname (Makefile.am): Likewise.
61475         * modules/getgroups (Makefile.am): Likewise.
61476         * modules/gethostname (Makefile.am): Likewise.
61477         * modules/gethrxtime (Makefile.am): Likewise.
61478         * modules/getline (Makefile.am): Likewise.
61479         * modules/getloadavg (Makefile.am): Likewise.
61480         * modules/getlogin_r (Makefile.am): Likewise.
61481         * modules/getndelim2 (Makefile.am): Likewise.
61482         * modules/getopt (Makefile.am): Likewise.
61483         * modules/getpagesize (Makefile.am): Likewise.
61484         * modules/getpass-gnu (Makefile.am): Likewise.
61485         * modules/getpass (Makefile.am): Likewise.
61486         * modules/getsubopt (Makefile.am): Likewise.
61487         * modules/gettime (Makefile.am): Likewise.
61488         * modules/gettimeofday (Makefile.am): Likewise.
61489         * modules/getugroups (Makefile.am): Likewise.
61490         * modules/getusershell (Makefile.am): Likewise.
61491         * modules/glob (Makefile.am): Likewise.
61492         * modules/group-member (Makefile.am): Likewise.
61493         * modules/hard-locale (Makefile.am): Likewise.
61494         * modules/hash (Makefile.am): Likewise.
61495         * modules/hmac-md5 (Makefile.am): Likewise.
61496         * modules/hmac-sha1 (Makefile.am): Likewise.
61497         * modules/human (Makefile.am): Likewise.
61498         * modules/idcache (Makefile.am): Likewise.
61499         * modules/imaxabs (Makefile.am): Likewise.
61500         * modules/imaxdiv (Makefile.am): Likewise.
61501         * modules/inet_ntop (Makefile.am): Likewise.
61502         * modules/inet_pton (Makefile.am): Likewise.
61503         * modules/intprops (Makefile.am): Likewise.
61504         * modules/inttostr (Makefile.am): Likewise.
61505         * modules/inttypes (Makefile.am): Likewise.
61506         * modules/isapipe (Makefile.am): Likewise.
61507         * modules/javaversion (Makefile.am): Likewise.
61508         * modules/lchmod (Makefile.am): Likewise.
61509         * modules/lchown (Makefile.am): Likewise.
61510         * modules/localcharset (Makefile.am): Likewise.
61511         * modules/long-options (Makefile.am): Likewise.
61512         * modules/lstat (Makefile.am): Likewise.
61513         * modules/malloc (Makefile.am): Likewise.
61514         * modules/mathl (Makefile.am): Likewise.
61515         * modules/mbchar (Makefile.am): Likewise.
61516         * modules/md2 (Makefile.am): Likewise.
61517         * modules/md4 (Makefile.am): Likewise.
61518         * modules/md5 (Makefile.am): Likewise.
61519         * modules/memcasecmp (Makefile.am): Likewise.
61520         * modules/memchr (Makefile.am): Likewise.
61521         * modules/memcmp (Makefile.am): Likewise.
61522         * modules/memcoll (Makefile.am): Likewise.
61523         * modules/memcpy (Makefile.am): Likewise.
61524         * modules/memmem (Makefile.am): Likewise.
61525         * modules/memmove (Makefile.am): Likewise.
61526         * modules/mempcpy (Makefile.am): Likewise.
61527         * modules/memrchr (Makefile.am): Likewise.
61528         * modules/memset (Makefile.am): Likewise.
61529         * modules/memxor (Makefile.am): Likewise.
61530         * modules/mkancesdirs (Makefile.am): Likewise.
61531         * modules/mkdir-p (Makefile.am): Likewise.
61532         * modules/mkdir (Makefile.am): Likewise.
61533         * modules/mkdtemp (Makefile.am): Likewise.
61534         * modules/mkstemp (Makefile.am): Likewise.
61535         * modules/mktime (Makefile.am): Likewise.
61536         * modules/modechange (Makefile.am): Likewise.
61537         * modules/mountlist (Makefile.am): Likewise.
61538         * modules/nanosleep (Makefile.am): Likewise.
61539         * modules/obstack (Makefile.am): Likewise.
61540         * modules/openat (Makefile.am): Likewise.
61541         * modules/pagealign_alloc (Makefile.am): Likewise.
61542         * modules/pathmax (Makefile.am): Likewise.
61543         * modules/physmem (Makefile.am): Likewise.
61544         * modules/poll (Makefile.am): Likewise.
61545         * modules/posixtm (Makefile.am): Likewise.
61546         * modules/posixver (Makefile.am): Likewise.
61547         * modules/putenv (Makefile.am): Likewise.
61548         * modules/quote (Makefile.am): Likewise.
61549         * modules/quotearg (Makefile.am): Likewise.
61550         * modules/raise (Makefile.am): Likewise.
61551         * modules/read-file (Makefile.am): Likewise.
61552         * modules/readline (Makefile.am): Likewise.
61553         * modules/readlink (Makefile.am): Likewise.
61554         * modules/readtokens (Makefile.am): Likewise.
61555         * modules/readutmp (Makefile.am): Likewise.
61556         * modules/realloc (Makefile.am): Likewise.
61557         * modules/regex (Makefile.am): Likewise.
61558         * modules/rename-dest-slash (Makefile.am): Likewise.
61559         * modules/rename (Makefile.am): Likewise.
61560         * modules/rijndael (Makefile.am): Likewise.
61561         * modules/rmdir (Makefile.am): Likewise.
61562         * modules/rpmatch (Makefile.am): Likewise.
61563         * modules/safe-read (Makefile.am): Likewise.
61564         * modules/safe-write (Makefile.am): Likewise.
61565         * modules/same-inode (Makefile.am): Likewise.
61566         * modules/same (Makefile.am): Likewise.
61567         * modules/save-cwd (Makefile.am): Likewise.
61568         * modules/savedir (Makefile.am): Likewise.
61569         * modules/setenv (Makefile.am): Likewise.
61570         * modules/settime (Makefile.am): Likewise.
61571         * modules/sha1 (Makefile.am): Likewise.
61572         * modules/sig2str (Makefile.am): Likewise.
61573         * modules/snprintf (Makefile.am): Likewise.
61574         * modules/stat-macros (Makefile.am): Likewise.
61575         * modules/stat-time (Makefile.am): Likewise.
61576         * modules/stdbool (Makefile.am): Likewise.
61577         * modules/stdint (Makefile.am): Likewise.
61578         * modules/stdlib-safer (Makefile.am): Likewise.
61579         * modules/stpcpy (Makefile.am): Likewise.
61580         * modules/stpncpy (Makefile.am): Likewise.
61581         * modules/strcase (Makefile.am): Likewise.
61582         * modules/strcasestr (Makefile.am): Likewise.
61583         * modules/strchrnul (Makefile.am): Likewise.
61584         * modules/strcspn (Makefile.am): Likewise.
61585         * modules/strdup (Makefile.am): Likewise.
61586         * modules/strerror (Makefile.am): Likewise.
61587         * modules/strftime (Makefile.am): Likewise.
61588         * modules/strndup (Makefile.am): Likewise.
61589         * modules/strnlen (Makefile.am): Likewise.
61590         * modules/strpbrk (Makefile.am): Likewise.
61591         * modules/strsep (Makefile.am): Likewise.
61592         * modules/strstr (Makefile.am): Likewise.
61593         * modules/strtod (Makefile.am): Likewise.
61594         * modules/strtoimax (Makefile.am): Likewise.
61595         * modules/strtok_r (Makefile.am): Likewise.
61596         * modules/strtol (Makefile.am): Likewise.
61597         * modules/strtoll (Makefile.am): Likewise.
61598         * modules/strtoul (Makefile.am): Likewise.
61599         * modules/strtoull (Makefile.am): Likewise.
61600         * modules/strtoumax (Makefile.am): Likewise.
61601         * modules/strverscmp (Makefile.am): Likewise.
61602         * modules/sys_socket (Makefile.am): Likewise.
61603         * modules/sys_stat (Makefile.am): Likewise.
61604         * modules/sysexits (Makefile.am): Likewise.
61605         * modules/time_r (Makefile.am): Likewise.
61606         * modules/timegm (Makefile.am): Likewise.
61607         * modules/timespec (Makefile.am): Likewise.
61608         * modules/tmpfile-safer (Makefile.am): Likewise.
61609         * modules/trim (Makefile.am): Likewise.
61610         * modules/unistd-safer (Makefile.am): Likewise.
61611         * modules/unlinkdir (Makefile.am): Likewise.
61612         * modules/unlocked-io (Makefile.am): Likewise.
61613         * modules/userspec (Makefile.am): Likewise.
61614         * modules/utime (Makefile.am): Likewise.
61615         * modules/utimecmp (Makefile.am): Likewise.
61616         * modules/utimens (Makefile.am): Likewise.
61617         * modules/vasnprintf (Makefile.am): Likewise.
61618         * modules/vasprintf (Makefile.am): Likewise.
61619         * modules/vsnprintf (Makefile.am): Likewise.
61620         * modules/xalloc (Makefile.am): Likewise.
61621         * modules/xgetcwd (Makefile.am): Likewise.
61622         * modules/xnanosleep (Makefile.am): Likewise.
61623         * modules/xreadlink (Makefile.am): Likewise.
61624         * modules/xstrtod (Makefile.am): Likewise.
61625         * modules/xstrtol (Makefile.am): Likewise.
61626         * modules/xstrtold (Makefile.am): Likewise.
61627         * modules/yesno (Makefile.am): Likewise.
61628         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
61629
61630 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
61631
61632         * modules/error (Makefile.am): Distribute files through
61633         EXTRA_DIST, not lib_SOURCES.
61634
61635 2006-10-12  Eric Blake  <ebb9@byu.net>
61636
61637         * modules/error (Makefile.am): Distribute files in /lib.
61638         * modules/obstack (Makefile.am): Likewise.
61639
61640 2006-10-12  Bruno Haible  <bruno@clisp.org>
61641
61642         * modules/acl (Makefile.am): Distribute all files in lib/ through
61643         EXTRA_DIST.
61644         * modules/arcfour (Makefile.am): Likewise.
61645         * modules/arctwo (Makefile.am): Likewise.
61646         * modules/argmatch (Makefile.am): Likewise.
61647         * modules/argz (Makefile.am): Likewise.
61648         * modules/atexit (Makefile.am): Likewise.
61649         * modules/backupfile (Makefile.am): Likewise.
61650         * modules/c-strtod (Makefile.am): Likewise.
61651         * modules/c-strtold (Makefile.am): Likewise.
61652         * modules/calloc (Makefile.am): Likewise.
61653         * modules/canon-host (Makefile.am): Likewise.
61654         * modules/canonicalize (Makefile.am): Likewise.
61655         * modules/chdir-long (Makefile.am): Likewise.
61656         * modules/chdir-safer (Makefile.am): Likewise.
61657         * modules/check-version (Makefile.am): Likewise.
61658         * modules/chown (Makefile.am): Likewise.
61659         * modules/cloexec (Makefile.am): Likewise.
61660         * modules/close-stream (Makefile.am): Likewise.
61661         * modules/closeout (Makefile.am): Likewise.
61662         * modules/crc (Makefile.am): Likewise.
61663         * modules/cycle-check (Makefile.am): Likewise.
61664         * modules/des (Makefile.am): Likewise.
61665         * modules/dirfd (Makefile.am): Likewise.
61666         * modules/dirname (Makefile.am): Likewise.
61667         * modules/dup2 (Makefile.am): Likewise.
61668         * modules/euidaccess (Makefile.am): Likewise.
61669         * modules/exclude (Makefile.am): Likewise.
61670         * modules/exitfail (Makefile.am): Likewise.
61671         * modules/fcntl-safer (Makefile.am): Likewise.
61672         * modules/file-type (Makefile.am): Likewise.
61673         * modules/fileblocks (Makefile.am): Likewise.
61674         * modules/filemode (Makefile.am): Likewise.
61675         * modules/filenamecat (Makefile.am): Likewise.
61676         * modules/fnmatch (Makefile.am): Likewise.
61677         * modules/fopen-safer (Makefile.am): Likewise.
61678         * modules/fpending (Makefile.am): Likewise.
61679         * modules/fprintftime (Makefile.am): Likewise.
61680         * modules/free (Makefile.am): Likewise.
61681         * modules/fsusage (Makefile.am): Likewise.
61682         * modules/ftruncate (Makefile.am): Likewise.
61683         * modules/fts (Makefile.am): Likewise.
61684         * modules/gc (Makefile.am): Likewise.
61685         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
61686         * modules/getaddrinfo (Makefile.am): Likewise.
61687         * modules/getcwd (Makefile.am): Likewise.
61688         * modules/getdelim (Makefile.am): Likewise.
61689         * modules/getdomainname (Makefile.am): Likewise.
61690         * modules/getgroups (Makefile.am): Likewise.
61691         * modules/gethostname (Makefile.am): Likewise.
61692         * modules/gethrxtime (Makefile.am): Likewise.
61693         * modules/getline (Makefile.am): Likewise.
61694         * modules/getloadavg (Makefile.am): Likewise.
61695         * modules/getlogin_r (Makefile.am): Likewise.
61696         * modules/getopt (Makefile.am): Likewise.
61697         * modules/getpass (Makefile.am): Likewise.
61698         * modules/getpass-gnu (Makefile.am): Likewise.
61699         * modules/getsubopt (Makefile.am): Likewise.
61700         * modules/gettime (Makefile.am): Likewise.
61701         * modules/gettimeofday (Makefile.am): Likewise.
61702         * modules/getugroups (Makefile.am): Likewise.
61703         * modules/getusershell (Makefile.am): Likewise.
61704         * modules/glob (Makefile.am): Likewise.
61705         * modules/group-member (Makefile.am): Likewise.
61706         * modules/hard-locale (Makefile.am): Likewise.
61707         * modules/hash (Makefile.am): Likewise.
61708         * modules/hmac-md5 (Makefile.am): Likewise.
61709         * modules/hmac-sha1 (Makefile.am): Likewise.
61710         * modules/human (Makefile.am): Likewise.
61711         * modules/idcache (Makefile.am): Likewise.
61712         * modules/imaxabs (Makefile.am): Likewise.
61713         * modules/imaxdiv (Makefile.am): Likewise.
61714         * modules/inet_ntop (Makefile.am): Likewise.
61715         * modules/inet_pton (Makefile.am): Likewise.
61716         * modules/inttostr (Makefile.am): Likewise.
61717         * modules/isapipe (Makefile.am): Likewise.
61718         * modules/lchown (Makefile.am): Likewise.
61719         * modules/long-options (Makefile.am): Likewise.
61720         * modules/lstat (Makefile.am): Likewise.
61721         * modules/malloc (Makefile.am): Likewise.
61722         * modules/mathl (Makefile.am): Likewise.
61723         * modules/mbchar (Makefile.am): Likewise.
61724         * modules/md2 (Makefile.am): Likewise.
61725         * modules/md4 (Makefile.am): Likewise.
61726         * modules/md5 (Makefile.am): Likewise.
61727         * modules/memcasecmp (Makefile.am): Likewise.
61728         * modules/memchr (Makefile.am): Likewise.
61729         * modules/memcmp (Makefile.am): Likewise.
61730         * modules/memcoll (Makefile.am): Likewise.
61731         * modules/memcpy (Makefile.am): Likewise.
61732         * modules/memmem (Makefile.am): Likewise.
61733         * modules/memmove (Makefile.am): Likewise.
61734         * modules/mempcpy (Makefile.am): Likewise.
61735         * modules/memrchr (Makefile.am): Likewise.
61736         * modules/memset (Makefile.am): Likewise.
61737         * modules/memxor (Makefile.am): Likewise.
61738         * modules/mkancesdirs (Makefile.am): Likewise.
61739         * modules/mkdir (Makefile.am): Likewise.
61740         * modules/mkdir-p (Makefile.am): Likewise.
61741         * modules/mkdtemp (Makefile.am): Likewise.
61742         * modules/mkstemp (Makefile.am): Likewise.
61743         * modules/mktime (Makefile.am): Likewise.
61744         * modules/modechange (Makefile.am): Likewise.
61745         * modules/mountlist (Makefile.am): Likewise.
61746         * modules/nanosleep (Makefile.am): Likewise.
61747         * modules/openat (Makefile.am): Likewise.
61748         * modules/pagealign_alloc (Makefile.am): Likewise.
61749         * modules/physmem (Makefile.am): Likewise.
61750         * modules/poll (Makefile.am): Likewise.
61751         * modules/posixtm (Makefile.am): Likewise.
61752         * modules/posixver (Makefile.am): Likewise.
61753         * modules/putenv (Makefile.am): Likewise.
61754         * modules/quote (Makefile.am): Likewise.
61755         * modules/quotearg (Makefile.am): Likewise.
61756         * modules/raise (Makefile.am): Likewise.
61757         * modules/read-file (Makefile.am): Likewise.
61758         * modules/readline (Makefile.am): Likewise.
61759         * modules/readlink (Makefile.am): Likewise.
61760         * modules/readtokens (Makefile.am): Likewise.
61761         * modules/readutmp (Makefile.am): Likewise.
61762         * modules/realloc (Makefile.am): Likewise.
61763         * modules/regex (Makefile.am): Likewise.
61764         * modules/rename (Makefile.am): Likewise.
61765         * modules/rename-dest-slash (Makefile.am): Likewise.
61766         * modules/rijndael (Makefile.am): Likewise.
61767         * modules/rmdir (Makefile.am): Likewise.
61768         * modules/rpmatch (Makefile.am): Likewise.
61769         * modules/safe-read (Makefile.am): Likewise.
61770         * modules/safe-write (Makefile.am): Likewise.
61771         * modules/same (Makefile.am): Likewise.
61772         * modules/save-cwd (Makefile.am): Likewise.
61773         * modules/savedir (Makefile.am): Likewise.
61774         * modules/setenv (Makefile.am): Likewise.
61775         * modules/settime (Makefile.am): Likewise.
61776         * modules/sha1 (Makefile.am): Likewise.
61777         * modules/sig2str (Makefile.am): Likewise.
61778         * modules/snprintf (Makefile.am): Likewise.
61779         * modules/stdlib-safer (Makefile.am): Likewise.
61780         * modules/stpcpy (Makefile.am): Likewise.
61781         * modules/stpncpy (Makefile.am): Likewise.
61782         * modules/strcase (Makefile.am): Likewise.
61783         * modules/strcasestr (Makefile.am): Likewise.
61784         * modules/strchrnul (Makefile.am): Likewise.
61785         * modules/strcspn (Makefile.am): Likewise.
61786         * modules/strdup (Makefile.am): Likewise.
61787         * modules/strerror (Makefile.am): Likewise.
61788         * modules/strftime (Makefile.am): Likewise.
61789         * modules/strndup (Makefile.am): Likewise.
61790         * modules/strnlen (Makefile.am): Likewise.
61791         * modules/strpbrk (Makefile.am): Likewise.
61792         * modules/strsep (Makefile.am): Likewise.
61793         * modules/strstr (Makefile.am): Likewise.
61794         * modules/strtod (Makefile.am): Likewise.
61795         * modules/strtoimax (Makefile.am): Likewise.
61796         * modules/strtok_r (Makefile.am): Likewise.
61797         * modules/strtol (Makefile.am): Likewise.
61798         * modules/strtoll (Makefile.am): Likewise.
61799         * modules/strtoul (Makefile.am): Likewise.
61800         * modules/strtoull (Makefile.am): Likewise.
61801         * modules/strtoumax (Makefile.am): Likewise.
61802         * modules/strverscmp (Makefile.am): Likewise.
61803         * modules/time_r (Makefile.am): Likewise.
61804         * modules/timegm (Makefile.am): Likewise.
61805         * modules/tmpfile-safer (Makefile.am): Likewise.
61806         * modules/unistd-safer (Makefile.am): Likewise.
61807         * modules/unlinkdir (Makefile.am): Likewise.
61808         * modules/userspec (Makefile.am): Likewise.
61809         * modules/utime (Makefile.am): Likewise.
61810         * modules/utimecmp (Makefile.am): Likewise.
61811         * modules/utimens (Makefile.am): Likewise.
61812         * modules/vasnprintf (Makefile.am): Likewise.
61813         * modules/vasprintf (Makefile.am): Likewise.
61814         * modules/vsnprintf (Makefile.am): Likewise.
61815         * modules/xalloc (Makefile.am): Likewise.
61816         * modules/xgetcwd (Makefile.am): Likewise.
61817         * modules/xnanosleep (Makefile.am): Likewise.
61818         * modules/xreadlink (Makefile.am): Likewise.
61819         * modules/xstrtod (Makefile.am): Likewise.
61820         * modules/xstrtol (Makefile.am): Likewise.
61821         * modules/xstrtold (Makefile.am): Likewise.
61822         * modules/yesno (Makefile.am): Likewise.
61823
61824 2006-10-12  Jim Meyering  <jim@meyering.net>
61825
61826         * m4/getloadavg.m4: Revert the change below.
61827
61828         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
61829         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
61830         fail with a symlink, which is what coreutils' ./bootstrap now
61831         creates by default.
61832
61833 2006-10-12  Bruno Haible  <bruno@clisp.org>
61834
61835         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
61836         mingw.
61837         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
61838         MSVC and mingw explicitly.
61839
61840 2006-10-11  Simon Josefsson  <jas@extundo.com>
61841             Bruno Haible  <bruno@clisp.org>
61842
61843         Add support for multiple gnulib-tool invocations in the scope of a
61844         single configure.ac file.
61845         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
61846         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
61847         with the same contents as the _LIBADD variable.
61848         (func_emit_initmacro_start, func_emit_initmacro_end,
61849         func_emit_initmacro_done): New functions.
61850         (func_import, func_create_testdir): Invoke them. Allow the identifiers
61851         gl_LIBOBJS and gl_LTLIBOBJS.
61852
61853 2006-10-11  Bruno Haible  <bruno@clisp.org>
61854
61855         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
61856         (func_create_testdir): Don't create po/Makefile.am, don't invoke
61857         autoreconf. Instead, invoke autopoint explicitly but move back the
61858         *.m4 files from gnulib.
61859
61860 2006-10-11  Bruno Haible  <bruno@clisp.org>
61861
61862         * gnulib-tool (func_usage): Make module names after --create-testdir
61863         optional.
61864         (func_create_testdir): If no module was specified, use nearly all
61865         modules.
61866
61867 2006-10-12  Jim Meyering  <jim@meyering.net>
61868
61869         Big performance improvement for fts-based tools that use FTS_NOSTAT.
61870         Avoid spurious inode-mismatch problems on non-POSIX file systems.
61871         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
61872         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
61873         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
61874         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
61875         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
61876         (fts_set_stat_required): New function.
61877         (fts_open): Defer the calls to fts_stat, if possible or requested.
61878         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
61879         into fts_stat itself.
61880         (fts_read): Perform any required (deferred) fts_stat call.
61881         (fts_build): Likewise, for the directory we're about to open and read.
61882         In the readdir loop, carefully decide whether each entry will require
61883         an eventual call to fts_stat, using dirent.d_type info if available.
61884         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
61885         a command line argument into this function.  Update all callers.
61886         Map a return value of FTS_DOT to FTS_D for a command line argument.
61887         * modules/fts (Depends-on): Add d-type.  Alphabetize.
61888         Thanks to Miklos Szeredi for his tenacity and for the initial
61889         bug report about "find" failing on a FUSE-based file system.
61890
61891         * lib/fts.c (fts_open): Use consistent indentation.
61892
61893 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
61894
61895         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
61896         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
61897         reported by Jim Meyering.  All uses of cache variables renamed
61898         to match Autoconf's.
61899         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
61900         the other one.
61901
61902         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
61903         Fix misspelling in diagnostic.
61904
61905 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
61906
61907         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
61908         defined.  Problem reported by Matthew Woehlke.
61909
61910         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
61911         Add support for Tandem NonStop R series.
61912         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
61913         Use new macro.
61914
61915         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
61916         (has_trailing_slash): Omit size arg; all callers changed.
61917         Omit 'inline', since it doesn't help performance and we'd
61918         need to configure it.
61919         Don't count //, ///, etc. as having a trailing slash.
61920         As a side effect, this removes a C99ism reported by Matthew Woehlke.
61921         (rpl_rename_dest_slash): On failure, use rename's errno rather
61922         than (in some cases) an incorrect or junk errno.
61923         Simplify code by removing need to compute length; this does
61924         cause it to make two passes instead of one over the file name,
61925         but it's worth it.
61926
61927         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
61928         change, since Autoconf's version may no longer be appropriate now
61929         that we are using CVS Autoconf's version.  Add support for Tandem.
61930
61931 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
61932             Bruno Haible  <bruno@clisp.org>
61933
61934         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
61935         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
61936         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
61937         gl_AC_TYPE_LONG_LONG.
61938
61939         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
61940         instead of HAVE_LONG_LONG.
61941         * lib/printf-args.c (printf_fetchargs): Likewise.
61942         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
61943         * lib/vasnprintf.c (VASNPRINTF): Likewise.
61944         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
61945         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
61946         gl_AC_TYPE_LONG_LONG.
61947
61948 2006-10-11  Bruno Haible  <bruno@clisp.org>
61949
61950         * m4/longlong.m4: Add comments.
61951         * m4/ulonglong.m4: Likewise.
61952
61953 2006-10-10  Bruno Haible  <bruno@clisp.org>
61954
61955         Make it possible to #define stpcpy, strdup to aliases.
61956         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
61957         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
61958
61959 2006-10-10  Bruno Haible  <bruno@clisp.org>
61960
61961         Make it possible to #define gcd to an alias.
61962         * lib/gcd.c: Include config.h.
61963
61964 2006-10-10  Bruno Haible  <bruno@clisp.org>
61965
61966         Make it possible to #define c_isascii to an alias.
61967         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
61968         defined. Undefine the macros before defining them, to avoid gcc
61969         warnings.
61970         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
61971         define NO_C_CTYPE_MACROS early.
61972
61973 2006-10-10  Bruno Haible  <bruno@clisp.org>
61974
61975         Make it possible to #define set_program_name to an alias.
61976         * lib/progname.c: Don't undefine set_program_name; instead, undefine
61977         ENABLE_RELOCATABLE early.
61978
61979 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
61980
61981         Port to Tandem NSK OSS, which has 64-bit signed int but at most
61982         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
61983         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
61984         More generally, don't assume that 64-bit signed int is available
61985         if unsigned int is, and vice versa.
61986         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
61987         unsigned symbols, not on their signed counterparts.
61988         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
61989         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
61990         (UINT64_C, UINTMAX_C):
61991         Likewise.
61992         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
61993         unsigned counterparts.
61994         (Have_long_long, Unsigned): New macros.
61995         (Int): Renamed from INT.
61996         (strtoimax): Use the new macros.
61997         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
61998         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
61999         * modules/inttypes (inttypes.h): Substitute
62000         HAVE_UNSIGNED_LONG_LONG_INT.
62001         * modules/stdint (stdint.h): Likewise.
62002         (Files): Add m4/ulonglong.m4.
62003
62004 2006-10-10  Bruno Haible  <bruno@clisp.org>
62005
62006         Fix a gcc -Wshadow warning.
62007         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
62008         to 'bucket'.
62009         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
62010         gl_linked_indexof_from_to): Likewise.
62011         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
62012         Likewise.
62013         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
62014         Likewise.
62015         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
62016         Reported by Eric Blake.
62017
62018 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
62019
62020         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
62021         for NetBSD.  Problem reported by Bruno Haible.
62022
62023 2006-10-09  Jim Meyering  <jim@meyering.net>
62024
62025         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
62026         Patch from Bruno Haible.
62027
62028 2006-10-09  Jim Meyering  <jim@meyering.net>
62029
62030         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
62031         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
62032         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
62033
62034 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
62035
62036         Don't include <config.h> twice; this doesn't work in some cases,
62037         e.g., when config.h has "#define intmax_t long long int" and
62038         we include <config.h>, <inttypes.h>, <config.h> in that order.
62039         Problem reported by Matthew Woehlke in:
62040         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
62041         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
62042         * lib/fts-cycle.c: Don't include config.h.
62043         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
62044         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
62045         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
62046         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
62047         inttypes.h.
62048         * lib/xstrtoumax.c: Likewise.
62049         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
62050         __strtol and the like, so that this module is more like its siblings.
62051         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
62052         Remove; no longer needed now that we assume gnulib inttypes.h.
62053
62054 2006-10-08  Bruno Haible  <bruno@clisp.org>
62055
62056         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
62057         option.
62058
62059 2006-10-07  Jim Meyering  <jim@meyering.net>
62060
62061         * modules/inttypes (inttypes.h): Revert what seems to have been
62062         an inadvertent part of today's change: use "|", not "/" in the
62063         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
62064
62065 2006-10-07  Bruno Haible  <bruno@clisp.org>
62066
62067         * modules/sublist: New file.
62068
62069 2006-10-07  Bruno Haible  <bruno@clisp.org>
62070
62071         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
62072         * modules/argz (argz.h): Likewise.
62073         * modules/arpa_inet (arpa/inet.h): Likewise.
62074         * modules/byteswap (byteswap.h): Likewise.
62075         * modules/configmake (configmake.h): Likewise.
62076         * modules/fcntl (fcntl.h): Likewise.
62077         * modules/fnmatch (fnmatch.h): Likewise.
62078         * modules/getopt (getopt.h): Likewise.
62079         * modules/glob (glob.h): Likewise.
62080         * modules/inttypes (inttypes.h): Likewise.
62081         * modules/netinet_in (netinet/in.h): Likewise.
62082         * modules/poll (poll.h): Likewise.
62083         * modules/stdbool (stdbool.h): Likewise.
62084         * modules/stdint (stdint.h): Likewise.
62085         * modules/sys_select (sys/select.h): Likewise.
62086         * modules/sys_socket (sys/socket.h): Likewise.
62087         * modules/sys_stat (sys/stat.h): Likewise.
62088         * modules/sysexits (sysexits.h): Likewise.
62089         * modules/unistd (unistd.h): Likewise.
62090         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62091         Add a "DO NOT EDIT" comment to the generated file.
62092         (func_import): Likewise for gnulib-comp.m4.
62093
62094 2006-10-07  Bruno Haible  <bruno@clisp.org>
62095
62096         * lib/gl_sublist.h: New file.
62097         * lib/gl_sublist.c: New file.
62098
62099 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
62100
62101         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
62102         name (relative to the original working directory) and the file
62103         name component (relative to the temporary working directory).  All
62104         callers changed.
62105         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
62106         * lib/mkdir-p.c (make_dir_parents): Likewise.
62107         * lib/mkdir-p.h (make_dir_parents): Likewise.
62108
62109 2006-10-06  Eric Blake  <ebb9@byu.net>
62110
62111         Define several macros for use by the clean-temp module.
62112         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
62113         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
62114         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
62115
62116         * lib/clean-temp.h (close_stream_temp): New declaration.
62117         * lib/clean-temp.c (includes): Pull in headers according to what
62118         other modules are in use.
62119         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
62120
62121 2006-10-06  Bruno Haible  <bruno@clisp.org>
62122
62123         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
62124         instead of fopen, fwriteerror.
62125
62126 2006-10-06  Bruno Haible  <bruno@clisp.org>
62127
62128         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
62129         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
62130         int.
62131         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
62132         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
62133         Return an error indicator.
62134         Suggested by Eric Blake.
62135
62136 2006-10-06  Bruno Haible  <bruno@clisp.org>
62137
62138         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
62139         Reported by Eric Blake.
62140
62141 2006-10-06  Bruno Haible  <bruno@clisp.org>
62142
62143         * modules/closeout (Description): Mention stderr too.
62144
62145 2006-10-06  Bruno Haible  <bruno@clisp.org>
62146         and Paul Eggert  <eggert@cs.ucla.edu>
62147
62148         * lib/closeout.c (close_stdout): Also close stderr.
62149         * lib/closeout.h: Update comment.
62150
62151 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
62152
62153         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
62154         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
62155         * lib/dirchownmod.c: Include lchown.h.
62156         * lib/lchown.c: Don't include files that lchown.h now includes.
62157         Don't declare chown, since lchown.h now does that.
62158         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
62159         (lchown): Define to rpl_chown if lchown is declared but
62160         does not exist.  Declare using a prototype if lchown is not
62161         declared.  Add a copyright notice.
62162         * lib/mkstemp.h: Include <unistd.h>.
62163         * lib/openat.c: Include lchown.h.
62164
62165         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
62166         we now test for that separately.
62167         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
62168         rather than O_NOFOLLOW, when testing whether it's possible to
62169         avoid a race condition reliably.
62170         * lib/savewd.c (savewd_chdir): Likewise.
62171
62172         Remove macros that are no longer needed now that stdint.h is
62173         reliable.
62174         * lib/fsusage.c (UINTMAX_MAX): Remove.
62175         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
62176         * lib/utimecmp.c (SIZE_MAX): Remove.
62177
62178         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
62179
62180         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
62181         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
62182         O_NOATIME works.
62183
62184 2006-10-05  Bruno Haible  <bruno@clisp.org>
62185
62186         * lib/gl_list.h (gl_sortedlist_search_from_to,
62187         gl_sortedlist_indexof_from_to): New declarations.
62188         (gl_list_implementation): New fields sortedlist_search_from_to,
62189         sortedlist_indexof_from_to.
62190         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
62191         inline functions.
62192         * lib/gl_list.c (gl_sortedlist_search_from_to,
62193         gl_sortedlist_indexof_from_to): New functions.
62194         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
62195         function.
62196         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
62197         (gl_array_sortedlist_search_from_to): New function.
62198         (gl_array_list_implementation): Update.
62199         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
62200         function.
62201         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
62202         (gl_carray_sortedlist_search_from_to): New function.
62203         (gl_carray_list_implementation): Update.
62204         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
62205         gl_linked_sortedlist_indexof_from_to): New functions.
62206         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
62207         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
62208         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
62209         gl_tree_sortedlist_indexof_from_to): New functions.
62210         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
62211         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
62212         Update.
62213         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
62214         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
62215         Update.
62216
62217 2006-10-05  Bruno Haible  <bruno@clisp.org>
62218
62219         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
62220         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
62221         (struct gl_list_implementation): Add fields search_from_to,
62222         indexof_from_to. Remove fields search, indexof.
62223         (gl_list_search): Use the search_from_to method.
62224         (gl_list_search_from, gl_list_search_from_to): New functions.
62225         (gl_list_indexof): Use the indexof_from_to method.
62226         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
62227         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
62228         (gl_list_search_from, gl_list_search_from_to): New functions.
62229         (gl_list_indexof): Use the indexof_from_to method.
62230         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
62231         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
62232         gl_array_indexof. Add start_index, end_index arguments.
62233         (gl_array_search_from_to): Renamed from gl_array_search. Add
62234         start_index, end_index arguments.
62235         (gl_array_remove, gl_array_list_implementation): Update.
62236         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
62237         gl_carray_indexof. Add start_index, end_index arguments.
62238         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
62239         start_index, end_index arguments.
62240         (gl_carray_remove, gl_carray_list_implementation): Update.
62241         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
62242         gl_linked_search. Add start_index, end_index arguments.
62243         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
62244         start_index, end_index arguments.
62245         (gl_linked_remove): Update.
62246         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
62247         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
62248         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
62249         field to 'size_t'.
62250         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
62251         gl_tree_search. Add start_index, end_index arguments.
62252         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
62253         start_index, end_index arguments.
62254         (gl_tree_remove): Update.
62255         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
62256         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
62257         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
62258         function.
62259         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
62260         gl_tree_search. Add start_index, end_index arguments.
62261         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
62262         start_index, end_index arguments.
62263         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
62264         Update.
62265         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
62266
62267 2006-10-05  Bruno Haible  <bruno@clisp.org>
62268
62269         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
62270
62271         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
62272         fwriteerror_temp): New declarations.
62273         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
62274         (descriptors): New variable.
62275         (cleanup): First, close the descriptors.
62276         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
62277         fclose_temp, fwriteerror_temp): New functions.
62278
62279 2006-10-04  Jim Meyering  <jim@meyering.net>
62280
62281         * lib/fts.c (fts_open): Tiny comment change.
62282
62283 2006-10-04  Bruno Haible  <bruno@clisp.org>
62284
62285         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
62286         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
62287         gl_LOCK_BODY.
62288         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
62289         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
62290         gl_LOCK_EARLY_BODY.
62291         (gl_LOCK): Require gl_LOCK_BODY.
62292
62293 2006-10-04  Bruno Haible  <bruno@clisp.org>
62294
62295         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
62296         (gl_oset_search_atleast): New declaration.
62297         (struct gl_oset_implementation): Add field 'search_atleast'.
62298         (gl_oset_search_atleast): New inline function.
62299         * lib/gl_oset.c (gl_oset_search_atleast): New function.
62300         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
62301         (gl_array_oset_implementation): Update.
62302         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
62303         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
62304         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
62305
62306 2006-10-04  Bruno Haible  <bruno@clisp.org>
62307
62308         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
62309
62310 2006-10-03  Bruno Haible  <bruno@clisp.org>
62311
62312         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
62313         from gl_avltreehash_list_implementation.
62314
62315 2006-10-03  Bruno Haible  <bruno@clisp.org>
62316
62317         * lib/gl_oset.c (gl_oset_add): Fix return type.
62318
62319 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
62320
62321         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
62322
62323 2006-10-02  Eric Blake  <ebb9@byu.net>
62324
62325         * modules/strnlen (Depends-on): Add extensions.
62326
62327 2006-10-02  Eric Blake  <ebb9@byu.net>
62328
62329         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
62330         definition in 2.60+.
62331
62332 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
62333
62334         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
62335         checks.
62336
62337 2006-10-02  Bruno Haible  <bruno@clisp.org>
62338
62339         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
62340         to the AUTOMAKE_OPTIONS.
62341         Reported by Jim Meyering.
62342
62343 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
62344
62345         Work around bug in Solaris 10 /proc file system:
62346         /proc/self/fd/NNN/.. isn't the parent directory of
62347         the directory whose file descriptor is NNN.  This needs to
62348         be worked around at run time, not compile time, since a
62349         program might be built on Solaris 8, where things work, and
62350         run on Solaris 10.
62351         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
62352         to use the following interface instead:
62353         (OPENAT_BUFFER_SIZE): New macro.
62354         (openat_proc_name): New function.
62355         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
62356         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
62357         Likewise.
62358         * lib/openat-proc.c: New file.
62359         * modules/openat (Files): Add lib/openat-proc.c.
62360         (Depends-on): Add same-inode, stdbool.
62361         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
62362
62363 2006-09-29  Bruno Haible  <bruno@clisp.org>
62364
62365         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
62366         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
62367         argument. Set stdout_closed before testing for ferror, not after.
62368         (fwriteerror, fwriteerror_no_ebadf): New functions.
62369
62370 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62371
62372         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
62373
62374 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
62375
62376         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
62377         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
62378
62379 2006-09-28  Jim Meyering  <jim@meyering.net>
62380
62381         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
62382         Include <unistd.h>.
62383
62384 2006-09-28  Bruno Haible  <bruno@clisp.org>
62385
62386         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
62387         * modules/linkedhash-list (Depends-on): Likewise.
62388         * modules/rbtreehash-list (Depends-on): Likewise.
62389
62390 2006-09-28  Bruno Haible  <bruno@clisp.org>
62391
62392         * lib/strndup.h: Simplify the redefinition of strndup.
62393         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
62394         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
62395
62396 2006-09-28  Bruno Haible  <bruno@clisp.org>
62397
62398         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
62399         * lib/gl_linkedhash_list.c: Likewise.
62400         * lib/gl_rbtreehash_list.c: Likewise.
62401
62402 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
62403
62404         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
62405         getaddrinfo.
62406
62407         * lib/__fpending.h: Don't include <stdio_ext.h> unless
62408         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
62409         it causes <stdio_ext.h> to cause a compile-time error.
62410         Problem reported by Nelson H. F. Beebe.
62411         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
62412         of HAVE_DECL___PENDING.
62413
62414         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
62415         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
62416         declaration.
62417
62418 2006-09-27  Jim Meyering  <jim@meyering.net>
62419
62420         This file could end up with a definition for a function
62421         named __strndup, rather than rpl_strndup on a system with
62422         incomplete weak_alias support.
62423         * lib/strndup.c (strndup): Rename from __strndup.
62424         Remove #defines that used to map __strndup to strndup.
62425         Don't use K&R prototypes.
62426         Remove LIBC-related code, since this file is not sync'd with glibc.
62427         * lib/strndup.h: Revamp, accordingly.
62428         * m4/strndup.m4: Modernize.
62429
62430 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
62431
62432         * modules/savewd (Depends-on): Add 'raise'.
62433         * lib/savewd.c: Include <signal.h>, for 'raise'.
62434
62435 2006-09-26  Jim Meyering  <jim@meyering.net>
62436
62437         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
62438         when we detect Darwin 8.7.0's acl_get_file bug.
62439         Rearrange to perform the new (below) run-test while $LIBS
62440         contains any acl-related library.  Set USE_ACL at the end.
62441         (gl_ACL_GET_FILE): New function.
62442
62443 2006-09-26  Eric Blake  <ebb9@byu.net>
62444
62445         * lib/verror.c: Include <config.h> unconditionally.
62446
62447 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
62448
62449         * modules/clock-time (Maintainer): Add self.
62450         * modules/getlogin_r (Depends-on): Add extensions.
62451
62452 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62453
62454         * modules/clock-time: New module.
62455         * modules/nanosleep (Depends-on): Add clock-time.
62456         * modules/gethrxtime (Depends-on): Likewise.
62457         * modules/gettime (Depends-on): Likewise.
62458         * modules/settime (Depends-on): Likewise.
62459
62460         * modules/fts-lgpl: Depend on openat.
62461         * modules/mkancesdirs: Depend on savewd.
62462         * modules/mkdir-p: Likewise.
62463
62464 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62465
62466         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
62467
62468         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
62469         `gl_have_arbitrary_file_name_length_limit' to
62470         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
62471         actually works between configure runs.
62472
62473 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62474             Bruno Haible  <bruno@clisp.org>
62475
62476         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
62477
62478 2006-09-25  Jim Meyering  <jim@meyering.net>
62479
62480         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
62481         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
62482
62483 2006-09-25  Eric Blake  <ebb9@byu.net>
62484
62485         * gnulib-tool (func_import, func_create_testdir): Fix typos in
62486         exec's in 2006-09-18 patch when shuffling fds.
62487
62488 2006-09-25  Bruno Haible  <bruno@clisp.org>
62489
62490         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
62491         Reported by Jim Meyering.
62492
62493 2006-09-24  Jim Meyering  <jim@meyering.net>
62494
62495         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
62496         compare a pointer against a literal "0".  That caused failures with
62497         at least HP-UX's hpcc.
62498
62499 2006-09-22  Simon Josefsson  <jas@extundo.com>
62500
62501         * modules/gc-sha1:
62502         * modules/gc-md4:
62503         * modules/gc-hmac-sha1:
62504         * modules/gc-hmac-md5:
62505         * modules/gc-des:
62506         * modules/gc-arcfour: Distribute more files.
62507
62508 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62509
62510         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
62511         (gl_linked_iterator_from_to): Initialize struct completely.
62512         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
62513         (gl_tree_iterator_from_to): Likewise
62514         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
62515         * lib/gl_array_list.c [lint] (gl_array_iterator)
62516         (gl_array_iterator_from_to): Likewise.
62517         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
62518         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
62519         (gl_carray_iterator_from_to): Likewise.
62520
62521         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
62522         * lib/md4.c (md4_process_block): Remove unused variable.
62523         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
62524         parentheses for clarity.
62525
62526 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62527
62528         * modules/bison-i18n (Depends-on): Add gettext.
62529
62530 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62531
62532         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
62533         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
62534         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
62535         also add missing comma that caused broken test.
62536         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
62537         stdlib.h, for `abort'.
62538         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
62539         variables.
62540         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
62541         include unistd.h if present, for `rmdir'.
62542         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
62543         variables.
62544         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
62545         in the process include standard headers for prototypes.
62546         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
62547         gets declared on GNU/Linux.
62548         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
62549         unistd.h, for `rmdir'.
62550         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
62551
62552         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
62553         always true.
62554         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
62555
62556         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
62557
62558 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62559
62560         * gnulib-tool (func_version): Create output all at once.  This
62561         may help avoid triggering unnecessary SIGPIPEs, and at any
62562         rate it doesn't hurt.
62563
62564 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62565             Bruno Haible  <bruno@clisp.org>
62566
62567         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
62568         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
62569         * m4/signed.m4 (bh_C_SIGNED): Likewise.
62570
62571         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
62572         (gl_FUNC_VASPRINTF): Invoke it.
62573
62574 2006-09-22  Bruno Haible  <bruno@clisp.org>
62575
62576         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
62577         getloadavg.c as first argument.
62578
62579 2006-09-22  Bruno Haible  <bruno@clisp.org>
62580
62581         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
62582         at the beginning of the gl_INIT macro.
62583         * modules/getloadavg (configure.ac): Pass $gl_source_base to
62584         gl_GETLOADAVG.
62585
62586 2006-09-22  Bruno Haible  <bruno@clisp.org>
62587
62588         * gnulib-tool (func_create_megatestdir): Don't include the config-h
62589         module.
62590         Suggested by Ralf Wildenhues.
62591
62592 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
62593
62594         Import this patch from libc:
62595
62596         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
62597
62598         * lib/regex_internal.c (re_string_reconstruct): Handle
62599         offset < pstr->valid_raw_len && pstr->offsets_needed case.
62600         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
62601         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
62602         re_string_context_at.
62603
62604         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
62605         now requires it.
62606         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
62607         gl_REGEX now does it for us.
62608         (gl_REGEX): Add test taken from
62609         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
62610
62611         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
62612         Check that large offsets work.  Modernize Autoconf usages.
62613         Prefer "yes" to mean a good thing rather than a bad.
62614         Don't put "#define mkstemp" in config.h, as this might interfere
62615         with standard system headers that "#define mkstemp mkstemp64".
62616
62617         * modules/mkstemp (Depends-on): Add extensions, so that
62618         mkstemp is visible on some platforms.
62619         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
62620         (Include): Change to "mkstemp.h" from <stdlib.h>.
62621         (Files): Add mkstemp.h.
62622
62623         * lib/mkstemp.h: New file, since some standard headers
62624         #define mkstemp.
62625         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
62626         Include "mkstemp.h".
62627         Make the _LIBC code resemble glibc original more,
62628         e.g., use K&R style.
62629         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
62630         (mkstemp): Remove, since mkstemp.h does this for us.
62631         * lib/stdlib--.h: Include mkstemp.h.
62632
62633         Import this patch from libc:
62634
62635         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
62636
62637         * lib/tempname.c (__gen_tempname): Change attempts_min
62638         into a macro.  Use preprocessor to decide how to initialize
62639         attempts [Coverity CID 67].
62640
62641 2006-09-20  Bruno Haible  <bruno@clisp.org>
62642
62643         * lib/mkdtemp.c: Import from libc.
62644         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
62645                 * sysdeps/posix/tempname.c (__gen_tempname): Change
62646                 attempts_min into a macro.  Use preprocessor to decide how to
62647                 initialize attempts [Coverity CID 67].
62648         2001-11-27  Paul Eggert  <eggert@twinsun.com>
62649                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
62650                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
62651
62652 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62653
62654         * gnulib-tool (func_exit): New function, to allow to pass the
62655         exit status portably through the trap.  Use everywhere.
62656         (--help, --version): Signal a write error.
62657         (trap): catch SIGPIPE, for write errors.
62658         Exit at the end of the trap, with the correct exit status.
62659
62660 2006-09-19  Karl Berry  <karl@gnu.org>
62661
62662         * doc/gnulib.texi: note about the license texinfo files.
62663
62664 2006-09-19  Eric Blake  <ebb9@byu.net>
62665
62666         * gnulib-tool: Avoid space-tab.
62667
62668 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
62669
62670         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
62671         that prevented coreutils 6.1 from building.  Problem reported
62672         by Petter Reinholdtsen.
62673
62674 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
62675
62676         * gnulib-tool (avoidlist): Fix typo that broke options like
62677         --avoid=lock that are used by coreutils bootstrap.
62678
62679 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
62680
62681         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
62682         more systematically.
62683
62684 2006-09-18  Jim Meyering  <jim@meyering.net>
62685
62686         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
62687
62688 2006-09-18  Bruno Haible  <bruno@clisp.org>
62689
62690         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
62691
62692 2006-09-18  Bruno Haible  <bruno@clisp.org>
62693
62694         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
62695         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
62696         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
62697         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
62698         * m4/gettext.m4: Require autoconf >= 2.52.
62699         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
62700         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
62701         of gl_cv_header_inttypes_h.
62702
62703 2006-09-18  Bruno Haible  <bruno@clisp.org>
62704
62705         * lib/javaversion.c: Include configmake.h.
62706
62707 2006-09-18  Bruno Haible  <bruno@clisp.org>
62708
62709         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
62710         avoid that the while loops be executed in a subshell.
62711
62712 2006-09-18  Bruno Haible  <bruno@clisp.org>
62713
62714         * MODULES.html.sh (func_module): Break long lines.
62715         Suggested by Bruce Korb <bkorb@gnu.org>.
62716
62717 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62718
62719         Speed up by a factor of 1.12.
62720         * gnulib-tool (nl): New variable.
62721         (func_import): Rewrite include directive extraction to only read each
62722         directive once.
62723
62724 2006-09-17  Bruno Haible  <bruno@clisp.org>
62725
62726         * modules/javaversion (Makefile.am): Remove DEFS setting.
62727         (Depends-on): Add configmake, for PKGDATADIR definition.
62728
62729 2006-09-17  Bruno Haible  <bruno@clisp.org>
62730
62731         * gnulib-tool (func_create_testdir): Rewrite all files at once.
62732
62733 2006-09-17  Bruno Haible  <bruno@clisp.org>
62734
62735         * gnulib-tool (func_append): New function, stolen from libtool.m4.
62736         (func_modules_transitive_closure, func_modules_add_dummy,
62737         func_modules_to_filelist, func_import, func_create_testdir,
62738         func_create_megatestdir, ...): Use it wherever possible.
62739         Suggested by Ralf Wildenhues.
62740
62741 2006-09-16  Karl Berry  <karl@gnu.org>
62742
62743         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
62744         to avoid sectioning errors.
62745         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
62746         [ifinfo]: blank line after @center-ed titles.
62747         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
62748         Spell FSF address consistently with others.
62749         (These changes approved by rms.)
62750
62751 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62752
62753         Speed up by a factor of 1.61.
62754         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
62755         already checked module names again.
62756
62757 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62758
62759         Speed up by a factor of 1.13.
62760         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
62761         for new_files, and the input to func_add_or_update.
62762
62763 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62764
62765         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
62766         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
62767
62768 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
62769
62770         * modules/mkancesdirs (Depends-on): Add fcntl.
62771         * modules/savewd: New file.
62772         * MODULES.html.sh (File system functions): Add savewd.
62773
62774         * modules/configmake (Makefile.am): Add support for the
62775         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
62776
62777 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
62778
62779         * m4/savewd.m4: New file.
62780
62781 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
62782
62783         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
62784         (dirchownmod): New arg FD.  All callers changed.
62785         Use FD rather than opening the directory ourself, as opening is
62786         now the caller's responsibility.
62787         * lib/dirchownmod.h: Likewise.
62788         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
62789         hosts that require <sys/types.h> before <sys/stat.h>.  Include
62790         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
62791         (test_dir): Remove.
62792         (mkancesdirs): Return length of prefix of FILE that has already
62793         been made, or -2 if there is a child doing the work.  Redo
62794         algorithm so that it is O(N) rather than O(N**2).  Optimize away
62795         ".", and treat ".." specially since it might stray back into
62796         already-created areas.  Use a subprocess if necessary.  New arg
62797         WD; all users changed.  MAKE_DIR function should now return 1
62798         if it creates a directory that is not readable.  Return -2 if
62799         a child process is spun off.
62800         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
62801         Adjust signature to match code.
62802         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
62803         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
62804         all users changed.
62805         * lib/savewd.c, lib/savewd.h: New files.
62806
62807 2006-09-15  Jim Meyering  <jim@meyering.net>
62808
62809         * modules/rename-dest-slash: New module.
62810         * MODULES.html.sh (posix_compat): Add it here.
62811
62812         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
62813
62814 2006-09-15  Jim Meyering  <jim@meyering.net>
62815
62816         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
62817         file.
62818
62819         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
62820
62821 2006-09-15  Jim Meyering  <jim@meyering.net>
62822
62823         * lib/rename-dest-slash.c (has_trailing_slash): Use
62824         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
62825         (rpl_rename_dest_slash): Perform the cheaper trailing slash
62826         test before testing whether SRC is a directory.
62827         Suggestions from Bruno Haible.
62828
62829         Avoid a warning about an unused variable.
62830         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
62831         into the #ifdef block where it's used.
62832
62833         * lib/rename-dest-slash.c: New file.
62834
62835 2006-09-14  Bruno Haible  <bruno@clisp.org>
62836
62837         * lib/allocsa.c: Include <config.h> unconditionally.
62838         * lib/asnprintf.c: Likewise.
62839         * lib/asprintf.c: Likewise.
62840         * lib/c-strcasecmp.c: Likewise.
62841         * lib/c-strcasestr.c: Likewise.
62842         * lib/c-strncasecmp.c: Likewise.
62843         * lib/c-strstr.c: Likewise.
62844         * lib/classpath.c: Likewise.
62845         * lib/clean-temp.c: Likewise.
62846         * lib/concatpath.c: Likewise.
62847         * lib/copy-file.c: Likewise.
62848         * lib/csharpcomp.c: Likewise.
62849         * lib/csharpexec.c: Likewise.
62850         * lib/execute.c: Likewise.
62851         * lib/fatal-signal.c: Likewise.
62852         * lib/findprog.c: Likewise.
62853         * lib/fwriteerror.c: Likewise.
62854         * lib/gl_array_list.c: Likewise.
62855         * lib/gl_array_oset.c: Likewise.
62856         * lib/gl_avltree_list.c: Likewise.
62857         * lib/gl_avltree_oset.c: Likewise.
62858         * lib/gl_avltreehash_list.c: Likewise.
62859         * lib/gl_carray_list.c: Likewise.
62860         * lib/gl_linked_list.c: Likewise.
62861         * lib/gl_linkedhash_list.c: Likewise.
62862         * lib/gl_list.c: Likewise.
62863         * lib/gl_oset.c: Likewise.
62864         * lib/gl_rbtree_list.c: Likewise.
62865         * lib/gl_rbtree_oset.c: Likewise.
62866         * lib/gl_rbtreehash_list.c: Likewise.
62867         * lib/imaxabs.c: Likewise.
62868         * lib/imaxdiv.c: Likewise.
62869         * lib/javacomp.c: Likewise.
62870         * lib/javaexec.c: Likewise.
62871         * lib/javaversion.c: Likewise.
62872         * lib/linebreak.c: Likewise.
62873         * lib/localcharset.c: Likewise.
62874         * lib/lock.c: Likewise.
62875         * lib/mbchar.c: Likewise.
62876         * lib/mbswidth.c: Likewise.
62877         * lib/mkdtemp.c: Likewise.
62878         * lib/pipe.c: Likewise.
62879         * lib/printf-args.c: Likewise.
62880         * lib/printf-parse.c: Likewise.
62881         * lib/progname.c: Likewise.
62882         * lib/progreloc.c: Likewise.
62883         * lib/readlink.c: Likewise.
62884         * lib/sh-quote.c: Likewise.
62885         * lib/stpcpy.c: Likewise.
62886         * lib/stpncpy.c: Likewise.
62887         * lib/strcasecmp.c: Likewise.
62888         * lib/strcasestr.c: Likewise.
62889         * lib/strcspn.c: Likewise.
62890         * lib/striconv.c: Likewise.
62891         * lib/strncasecmp.c: Likewise.
62892         * lib/strnlen1.c: Likewise.
62893         * lib/strstr.c: Likewise.
62894         * lib/strtok_r.c: Likewise.
62895         * lib/tls.c: Likewise.
62896         * lib/tmpdir.c: Likewise.
62897         * lib/unicodeio.c: Likewise.
62898         * lib/unsetenv.c: Likewise.
62899         * lib/vasnprintf.c: Likewise.
62900         * lib/vasprintf.c: Likewise.
62901         * lib/wait-process.c: Likewise.
62902         * lib/xallocsa.c: Likewise.
62903         * lib/xsetenv.c: Likewise.
62904         * lib/xstriconv.c: Likewise.
62905
62906 2006-09-13  Simon Josefsson  <jas@extundo.com>
62907
62908         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
62909         that internally, suggested by Ralf Wildenhues
62910         <Ralf.Wildenhues@gmx.de>.
62911
62912 2006-09-13  Simon Josefsson  <jas@extundo.com>
62913
62914         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
62915         @LIBOBJS@.
62916         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62917
62918 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
62919
62920         * lib/_fpending.c: Include <config.h> unconditionally, since we no
62921         longer worry about uses that don't define HAVE_CONFIG_H.
62922         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
62923         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
62924         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
62925         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
62926         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
62927         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
62928         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
62929         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
62930         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
62931         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
62932         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
62933         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
62934         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
62935         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
62936         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
62937         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
62938         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
62939         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
62940         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
62941         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
62942         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
62943         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
62944         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
62945         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
62946         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
62947         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
62948         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
62949         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
62950         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
62951         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
62952         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
62953         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
62954         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
62955         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
62956         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
62957         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
62958         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
62959         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
62960         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
62961         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
62962         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
62963         Likewise.
62964
62965 2006-09-13  Eric Blake  <ebb9@byu.net>
62966
62967         * lib/getopt.c: Fix typo in last commit.
62968
62969 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
62970
62971         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
62972         dgettext.
62973
62974 2006-09-12  Jim Meyering  <jim@meyering.net>
62975
62976         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
62977         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
62978         Reported by Nelson H. F. Beebe.
62979
62980 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
62981
62982         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
62983         program_invocation_name and program_invocation_short_name are
62984         initialized.
62985         * lib/argp-namefrob.h: Move declarations of program_invocation_name
62986         and program_invocation_short_name to argp.h, so they are visible
62987         to user programs.
62988         * lib/argp.h: Likewise
62989
62990 2006-09-10  Bruno Haible  <bruno@clisp.org>
62991
62992         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
62993         m4/inttypes_h.m4, m4/uintmax_t.m4.
62994
62995 2006-09-10  Bruno Haible  <bruno@clisp.org>
62996
62997         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
62998         gl_AC_TYPE_UINTMAX_T.
62999
63000 2006-09-10  Bruno Haible  <bruno@clisp.org>
63001
63002         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
63003
63004 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
63005
63006         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
63007         convention.  Text proposed by Bruno Haible.
63008         (struct argp_option): Document the use of N_() wrappers.
63009
63010         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
63011         '\v', and translate the two parts separately, instead of feeding
63012         the whole string to gettext.  This allows to exclude
63013         '\v' from the strings visible to the translator by writing doc
63014         strings as N_("..") "\v" N_("..").
63015
63016 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
63017
63018         * config/srclist.txt: Undo latest change; the bug was fixed.
63019
63020 2006-09-09  Bruno Haible  <bruno@clisp.org>
63021
63022         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
63023         assignments if building a library without libtool.
63024         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
63025         in func_emit_lib_Makefile_am.
63026         (func_import): When building a static library libfoo.a, arrange to
63027         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
63028         (func_create_testdir): Likewise.
63029         * modules/gc (configure.ac, Makefile.am): If building statically,
63030         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
63031         * modules/iconvme (configure.ac, Makefile.am): Likewise.
63032         * modules/striconv (configure.ac, Makefile.am): Likewise.
63033         Based on a suggestion by Ralf Wildenhues.
63034
63035 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
63036
63037         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
63038         Check for unistd.h too, since Autoconf doesn't assume POSIX.
63039         Also:
63040
63041         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
63042         Add year_2050_test to catch glibc bug 2821
63043         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
63044
63045         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
63046         Prefer #ifdef to #if.
63047
63048         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
63049         Return from 'main' instead of calling 'exit'.
63050
63051 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
63052
63053         * lib/mktime.c (guess_time_tm): Fix bug where mktime
63054         returned the maximum time_t value rather than (time_t) -1.
63055         Problem originally reported by William Bardwell
63056         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
63057
63058         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
63059         Moved to here ...
63060         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
63061         ... from here.
63062
63063 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
63064
63065         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
63066         2821 is fixed.
63067
63068 2006-09-08  Jim Meyering  <jim@meyering.net>
63069
63070         Don't make generated files read-only.  That would bother too many
63071         people.  However, do retain the ability to work when targets are
63072         read-only: remove the destination and temporary files before writing
63073         them (when generated via sed or echo), or by using the -f option for
63074         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
63075         * modules/alloca-opt, modules/argz, modules/arpa_inet:
63076         * modules/byteswap, modules/configmake, modules/fcntl:
63077         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
63078         * modules/localcharset, modules/netinet_in, modules/poll:
63079         * modules/stdbool, modules/stdint, modules/sys_select:
63080         * modules/sys_socket, modules/sys_stat, modules/sysexits:
63081
63082 2006-09-08  Jim Meyering  <jim@meyering.net>
63083
63084         Avoid new build failure on FreeBSD 6.0.
63085         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
63086         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
63087         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
63088
63089 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63090
63091         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
63092
63093 2006-09-07  Jim Meyering  <jim@meyering.net>
63094
63095         Fix global typo in last change: use chmod u-w, not chmod u-x.
63096         Spotted by Paul Eggert and Bruce Korb.
63097         * modules/alloca-opt, modules/argz, modules/arpa_inet:
63098         * modules/byteswap, modules/configmake, modules/fcntl:
63099         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
63100         * modules/localcharset, modules/netinet_in, modules/poll:
63101         * modules/stdbool, modules/stdint, modules/sys_select:
63102         * modules/sys_socket, modules/sys_stat, modules/sysexits:
63103
63104 2006-09-06  Jim Meyering  <jim@meyering.net>
63105
63106         Make generated files be read-only.
63107         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
63108         Ensure that each generated file is now read-only.
63109         * modules/argz: Likewise.
63110         * modules/arpa_inet: Likewise.
63111         * modules/byteswap: Likewise.
63112         * modules/configmake: Likewise.
63113         * modules/fcntl: Likewise.
63114         * modules/fnmatch: Likewise.
63115         * modules/getopt: Likewise.
63116         * modules/glob: Likewise.
63117         * modules/inttypes: Likewise.
63118         * modules/netinet_in: Likewise.
63119         * modules/poll: Likewise.
63120         * modules/stdbool: Likewise.
63121         * modules/stdint: Likewise.
63122         * modules/sys_select: Likewise.
63123         * modules/sys_socket: Likewise.
63124         * modules/sys_stat: Likewise.
63125         * modules/sysexits: Likewise.
63126         * modules/localcharset: Same as above, but continue using temporary
63127         file named "t-$@" (why different?) rather than the "$@-t" used
63128         everywhere else.
63129
63130         * modules/sysexits (Makefile.am): Replace literal occurrences
63131         of "sysexit.h" more readable, and more consistent, "$@".
63132
63133 2006-09-06  Bruno Haible  <bruno@clisp.org>
63134
63135         * modules/striconv: New file.
63136         * modules/xstriconv: New file.
63137         * MODULES.html.sh (Internationalization functions): Add striconv,
63138         xstriconv.
63139
63140 2006-09-06  Bruno Haible  <bruno@clisp.org>
63141
63142         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
63143         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
63144         not using libtool correctly.
63145
63146 2006-09-06  Bruno Haible  <bruno@clisp.org>
63147
63148         * lib/striconv.h: New file.
63149         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
63150         iconvstring.c.
63151         * lib/xstriconv.h: New file.
63152         * lib/xstriconv.c: New file.
63153
63154 2006-09-06  Bruno Haible  <bruno@clisp.org>
63155
63156         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
63157         lib_..._LDFLAGS.
63158
63159 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63160
63161         * lib/argz_.h: Sync from Libtool.
63162
63163         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
63164                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
63165
63166         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
63167
63168 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
63169
63170         * modules/trim: New file.
63171
63172 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
63173
63174         * lib/trim.h: New file.
63175         * lib/trim.c: New file.
63176
63177 2006-09-05  Bruno Haible  <bruno@clisp.org>
63178
63179         * MODULES.html.sh (String handling): Add trim.
63180
63181 2006-09-04  Karl Berry  <karl@gnu.org>
63182
63183         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
63184         until next release.
63185
63186 2006-09-03  Bruno Haible  <bruno@clisp.org>
63187
63188         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
63189         correctly.
63190
63191 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
63192
63193         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
63194         not gl_GETLOADAVG.  Omit unneeded semicolons.
63195         Problems reported by Ralf Wildenhues in
63196         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
63197         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
63198         at the end, which is the usual gnulib style.
63199
63200         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
63201         of doing all the work ourselves.
63202         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
63203         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
63204
63205 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
63206
63207         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
63208         Problem reported by Ralf Wildenhues in
63209         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
63210
63211         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
63212         HAVE_STRUCT_STATFS_F_FSTYPENAME.
63213
63214 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
63215
63216         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
63217         yesterday's patch by changing test -n to test -z.
63218
63219 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63220
63221         * modules/getloadavg (Files): Add m4/getloadavg.m4.
63222         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
63223         the former is now obsolescent.
63224
63225         * modules/chdir-long (Depends-on): Add fcntl.
63226
63227 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63228
63229         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
63230         obsolescent, and programs should use gnulib instead.
63231         * m4/getloadavg.m4: New file, with contents taken from Autoconf
63232         but with prefixes changed.
63233
63234 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63235
63236         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
63237         or stdbool.h, because they might not exist while configuring.
63238
63239         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
63240         Don't include unistd.h or limits.h; not needed, since chdir-long.h
63241         does that for us.
63242         (O_DIRECTORY): Remove.
63243
63244 2006-08-31  Eric Blake  <ebb9@byu.net>
63245
63246         * gnulib-tool: Don't let emacs change spaces to TAB.
63247
63248 2006-08-31  Bruno Haible  <bruno@clisp.org>
63249
63250         * gnulib-tool: When calling func_import more than once, do it in a
63251         subshell.
63252         Reported by Eric Blake <ebb9@byu.net>.
63253
63254 2006-08-31  Bruno Haible  <bruno@clisp.org>
63255
63256         * gnulib-tool (nl): Remove variable.
63257         (sed_transform_lib_file): Use more robust test for config-h module.
63258         (func_import): Fix typo in 2006-08-25 patch.
63259
63260 2006-08-31  Bruno Haible  <bruno@clisp.org>
63261
63262         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
63263         specified, augment Makefile.am variables instead of assigning them.
63264
63265 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
63266
63267         Work around a bug in both the Linux and SunOS 64-bit kernels:
63268         nanosleep mishandles sleeps for longer than 2**31 seconds.
63269         Problem reported by Frank v Waveren in
63270         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
63271         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
63272         Check for nanosleep bug.
63273         (LIB_NANOSLEEP): Append clock_gettime library if needed.
63274
63275 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
63276
63277         Work around a bug in both the Linux and SunOS 64-bit kernels:
63278         nanosleep mishandles sleeps for longer than 2**31 seconds.
63279         Problem reported by Frank v Waveren in
63280         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
63281         * lib/nanosleep.c (BILLION): New constant.
63282         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
63283         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
63284         implementation.
63285
63286 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
63287
63288         * modules/nanosleep (Depends-on): Add gettime.
63289
63290 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
63291         and Simon Josefsson  <jas@extundo.com>
63292         and Oskar Liljeblad  <oskar@osk.mine.nu>
63293
63294         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
63295         * gnulib-tool (func_import): New license type 'unmodifiable license
63296         text'.
63297         * modules/fdl: Use it.  Longer description.
63298         * module/gpl, module/lgpl: New files.
63299
63300 2006-08-30  Jim Meyering  <jim@meyering.net>
63301
63302         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
63303         shadowing the parameter.
63304
63305 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63306
63307         Sync from Libtool:
63308
63309         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63310
63311         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
63312         sharing with gnulib.  Report by Eric Blake.
63313
63314 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
63315
63316         * modules/isapipe: New file.
63317         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
63318
63319 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
63320
63321         * modules/configmake (Makefile.am): Add a comment, and omit
63322         the CONFIGMAKE_ prefix from generated macro names.  Suggested
63323         by Bruno Haible.
63324
63325 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
63326
63327         * m4/isapipe.m4: New file.
63328
63329 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
63330
63331         * lib/isapipe.c, lib/isapipe.h: New files.
63332
63333 2006-08-29  Jim Meyering  <jim@meyering.net>
63334
63335         * modules/configmake (Makefile.am): Make configmake.h depend on
63336         Makefile.  Otherwise, a stale configmake.h could hang around.
63337
63338 2006-08-29  Eric Blake  <ebb9@byu.net>
63339
63340         * lib/error.c (error_at_line, print_errno_message): Match libc, after
63341         resolution of upstream bug 3044.
63342
63343 2006-08-29  Bruno Haible  <bruno@clisp.org>
63344
63345         * modules/localcharset (Depends-on): Add configmake.
63346         (Makefile.am): Remove setting of LIBDIR through DEFS.
63347
63348 2006-08-29  Bruno Haible  <bruno@clisp.org>
63349
63350         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
63351         defined.
63352
63353 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
63354
63355         * modules/fcntl: New file.
63356         * modules/chdir-safer (Depends-on): Add fcntl.
63357         * modules/fts: Likewise.
63358         * modules/mkdir-p: Likewise.
63359
63360         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
63361         This undoes the most recent change, since we're now addressing the
63362         problem in a different way.
63363
63364         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
63365         into output, since the output might be called Makefile.am even
63366         if $makefile_name is something different.
63367         (func_import): Use $makefile_am rather than
63368         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
63369         empty.
63370
63371         * modules/inttypes (Files): Add m4/inttypes-h.m4.
63372
63373 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
63374
63375         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
63376         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
63377         recent change to stdint.m4, since we're now addressing the problem in a
63378         different way.
63379
63380 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
63381
63382         * m4/fcntl_h.m4: New file.
63383
63384 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
63385
63386         * lib/fcntl_.h: New file.
63387         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
63388         the fcntl module.
63389         * lib/dirchownmod.c: Likewise.
63390         * lib/fts.c: Likewise.
63391
63392         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
63393         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
63394         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
63395         just before including <inttypes.h>, to avoid circular inclusion.
63396
63397 2006-08-28  Jim Meyering  <jim@meyering.net>
63398
63399         * doc/visibility.texi: Actually read and correct the grammar of the
63400         sentence affected by yesterday's change.
63401
63402 2006-08-28  Eric Blake  <ebb9@byu.net>
63403
63404         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
63405         needs wrapper.
63406
63407 2006-08-28  Eric Blake  <ebb9@byu.net>
63408
63409         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
63410
63411 2006-08-28  Eric Blake  <ebb9@byu.net>
63412
63413         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
63414
63415 2006-08-28  Bruno Haible  <bruno@clisp.org>
63416
63417         * modules/c-strstr: New file, from GNU gettext.
63418         * MODULES.html.sh (String handling): Add c-strstr.
63419
63420 2006-08-28  Bruno Haible  <bruno@clisp.org>
63421
63422         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
63423         macros.
63424         Reported by Eric Blake.
63425
63426 2006-08-28  Bruno Haible  <bruno@clisp.org>
63427
63428         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
63429         (VASNPRINTF): Return a string of length > INT_MAX without failing.
63430         * lib/vasprintf.c: Include errno.h, limits.h.
63431         (EOVERFLOW): New fallback definition.
63432         (vasprintf): Test here whether the string length is > INT_MAX.
63433         * lib/vsnprintf.c: Include errno.h, limits.h.
63434         (EOVERFLOW): New fallback definition.
63435         (vsnprintf): Fix bug when generated string was too long for the buffer.
63436         Test here whether the string length is > INT_MAX.
63437
63438 2006-08-28  Bruno Haible  <bruno@clisp.org>
63439
63440         * lib/inttypes_.h (SCNX*): Remove definitions.
63441         Reported by Eric Blake.
63442
63443 2006-08-28  Bruno Haible  <bruno@clisp.org>
63444
63445         * lib/c-strstr.h: New file, from GNU gettext.
63446         * lib/c-strstr.c: New file, from GNU gettext.
63447
63448 2006-08-28  Bruno Haible  <bruno@clisp.org>
63449
63450         * gnulib-tool: Reorder some statements.
63451
63452 2006-08-28  Bruno Haible  <bruno@clisp.org>
63453
63454         * gnulib-tool: New option --makefile-name.
63455         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
63456         $makefile_name.
63457         (func_import): Write $makefile_name to the cache file, and read it from
63458         there unless explicitly specified. Use $makefile_name as file name
63459         instead of Makefile.am. Adjust the recommendations accordingly.
63460
63461 2006-08-28  Bruno Haible  <bruno@clisp.org>
63462
63463         * gnulib-tool (func_verify_module): Check against misapplying patch.
63464
63465 2006-08-28  Bruno Haible  <bruno@clisp.org>
63466
63467         * gnulib-tool (func_relativize, func_relconcat): New functions.
63468         Give an error if --local-dir is given with --update.
63469         Remove trailing slashes from $local_gnulib_dir.
63470         (func_import): Store the relativized $local_gnulib_dir in
63471         gnulib-cache.m4, and read it from there if not specified explicitly.
63472
63473 2006-08-28  Bruno Haible  <bruno@clisp.org>
63474
63475         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
63476         is the current directory. Respect also $local_gnulib_dir.
63477
63478 2006-08-28  Bruno Haible  <bruno@clisp.org>
63479             Simon Josefsson  <jas@extundo.com>
63480
63481         BeOS portability.
63482         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
63483
63484 2006-08-27  Jim Meyering  <jim@meyering.net>
63485
63486         * doc/visibility.texi: Remove duplicate word: "pointer".
63487
63488 2006-08-26  Bruno Haible  <bruno@clisp.org>
63489
63490         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
63491         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
63492         (Makefile.am): Create inttypes.h from inttypes_.h.
63493         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
63494
63495         * modules/imaxabs: New file.
63496
63497         * modules/imaxdiv: New file.
63498
63499 2006-08-26  Bruno Haible  <bruno@clisp.org>
63500
63501         * m4/inttypes.m4: New file.
63502         * m4/_inttypes_h.m4: Remove file.
63503         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
63504         PRI_MACROS_BROKEN.
63505         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
63506
63507         * m4/imaxabs.m4: New file.
63508
63509         * m4/imaxdiv.m4: New file.
63510
63511 2006-08-26  Bruno Haible  <bruno@clisp.org>
63512
63513         * lib/inttypes_.h: New file.
63514         * lib/inttypes.h: Remove file.
63515         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
63516
63517         * lib/imaxabs.c: New file.
63518
63519         * lib/imaxdiv.c: New file.
63520
63521 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
63522
63523         New config-h module, so that "make" output needn't be cluttered
63524         by -DHAVE_CONFIG_H.
63525         * MODULES.html.sh (Support for building libraries and executables):
63526         Add config-h.
63527         * modules/config-h: New file.
63528         * gnulib-tool (nl, sed_transform_lib_file): New vars.
63529         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
63530         the config-h module is used.
63531
63532         New configmake module, so that "make" output needn't be cluttered
63533         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
63534         * MODULES.html.sh (Support for building libraries and executables):
63535         Add configmake.
63536         * modules/configmake: New file.
63537
63538 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
63539
63540         * m4/config-h.m4: New file.
63541
63542 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
63543
63544         * config/srclist.txt: Add elisp-comp.
63545
63546 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
63547
63548         * MODULES.html.sh (Support for building libraries and executables):
63549         Add elisp-comp.
63550         * build-aux/elisp-comp: New file.
63551         * modules/elisp-comp: New file.
63552
63553 2006-08-24  Bruno Haible  <bruno@clisp.org>
63554
63555         * gnulib-tool (func_create_testdir): Use non-default values of
63556         sourcebase and m4base.
63557
63558 2006-08-24  Bruno Haible  <bruno@clisp.org>
63559
63560         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
63561         HTML structure.
63562
63563 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
63564
63565         * modules/openat (Depends-on): Add lchown.
63566
63567 2006-08-23  Bruno Haible  <bruno@clisp.org>
63568
63569         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
63570         of gl_LOCK_EARLY instead of gl_LOCK.
63571
63572 2006-08-23  Bruno Haible  <bruno@clisp.org>
63573
63574         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
63575         on OSF/1 to no.
63576         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
63577
63578 2006-08-23  Bruno Haible  <bruno@clisp.org>
63579
63580         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
63581         as unusable.
63582
63583         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
63584         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
63585         (gl_LOCK): New macro.
63586
63587 2006-08-22  Simon Josefsson  <jas@extundo.com>
63588
63589         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
63590         to md5 module.
63591
63592 2006-08-22  Simon Josefsson  <jas@extundo.com>
63593
63594         * MODULES.html.sh: Add "Support for maintaining and release
63595         projects".
63596
63597         * build-aux/gnupload: New file, from coreutils.
63598
63599 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
63600
63601         Avoid the need for AC_LIBSOURCES in m4 macros.
63602         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
63603         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
63604         * modules/check-version (EXTRA_DIST): Add check-version.h.
63605         * modules/crc (EXTRA_DIST): Add crc.h.
63606         * modules/des (EXTRA_DIST): Add des.h.
63607         * modules/gc (EXTRA_DIST): Add gc.h.
63608         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
63609         * modules/getline (EXTRA_DIST): Add getline.h.
63610         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
63611         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
63612         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
63613         * modules/md2 (EXTRA_DIST): Add md2.h.
63614         * modules/md4 (EXTRA_DIST): Add md4.h.
63615         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
63616         * modules/read-file (EXTRA_DIST): Add read-file.h.
63617         * modules/readline (EXTRA_DIST): Add readline.h.
63618         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
63619         rijndael-api-fst.h.
63620
63621 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
63622
63623         * m4/rijndael.m4 (gl_ARCFOUR):
63624         * m4/arctwo.m4 (gl_ARCTWO):
63625         * m4/check-version.m4 (gl_CHECK_VERSION):
63626         * m4/crc.m4 (gl_CRC):
63627         * m4/des.m4 (gl_DES):
63628         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
63629         * m4/gc.m4 (gl_GC):
63630         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
63631         * m4/getline.m4 (gl_FUNC_GETLINE):
63632         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
63633         * m4/hmac-md5.m4 (gl_HMAC_MD5):
63634         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
63635         * m4/md2.m4 (gl_MD2):
63636         * m4/md4.m4 (gl_MD4):
63637         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
63638         * m4/read-file.m4 (gl_FUNC_READ_FILE):
63639         * m4/readline.m4 (gl_FUNC_READLINE):
63640         * m4/rijndael.m4 (gl_RIJNDAEL):
63641         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
63642         to get the necessary .h files and whatnot.
63643
63644 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
63645
63646         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
63647         gnulib rather than the other way around.
63648         * config/srclistvars.sh (COREUTILS): Remove.
63649
63650 2006-08-22  Jim Meyering  <jim@meyering.net>
63651
63652         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
63653
63654         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
63655
63656 2006-08-22  Eric Blake  <ebb9@byu.net>
63657
63658         * modules/regexprops-generic: New file.
63659         * MODULES.html.sh (Support for building documentation): List it.
63660
63661 2006-08-22  Eric Blake  <ebb9@byu.net>
63662
63663         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
63664         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
63665         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
63666         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
63667
63668 2006-08-22  Bruno Haible  <bruno@clisp.org>
63669
63670         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
63671         and lib_LTLIBRARIES like the other lib_* variables.
63672
63673 2006-08-22  Bruno Haible  <bruno@clisp.org>
63674
63675         * build-aux/x-to-1.in: New file, from GNU gettext.
63676
63677 2006-08-22  Bruno Haible  <bruno@clisp.org>
63678
63679         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
63680         <utmpx.h> exists.
63681
63682 2006-08-22  Bruno Haible  <bruno@clisp.org>
63683
63684         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
63685         <utmpx.h> exists.
63686
63687 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
63688
63689         BeOS portability.
63690         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
63691         exist.
63692         Problem reported by Bruno Haible.
63693
63694 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
63695
63696         Avoid the need for AC_LIBSOURCES in m4 macros.
63697         * modules/acl (EXTRA_DIST): Add acl.h.
63698         * modules/argmatch (Files): Add m4/argmatch.m4.
63699         (configure.ac): Add gl_ARGMATCH.
63700         (EXTRA_DIST): Renamed from lib_SOURCES, for
63701         consistency with the other modules.  Remove argmatch.c.
63702         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
63703         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
63704         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
63705         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
63706         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
63707         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
63708         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
63709         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
63710         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
63711         * modules/closeout (EXTRA_DIST): Add closeout.h.
63712         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
63713         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
63714         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
63715         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
63716         dirname.h; remove basename.c and stripslash.c.
63717         * modules/exclude (EXTRA_DIST): Add exclude.h.
63718         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
63719         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
63720         * modules/file-type (EXTRA_DIST): Add file-type.h.
63721         * modules/filemode (EXTRA_DIST): Add filemode.h.
63722         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
63723         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
63724         * modules/fpending (EXTRA_DIST): Add __fpending.h.
63725         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
63726         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
63727         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
63728         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
63729         * modules/getdate (EXTRA_DIST): Add getdate.c.
63730         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
63731         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
63732         * modules/getpass (EXTRA_DIST): Add getpass.h.
63733         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
63734         * modules/group-member (EXTRA_DIST): Add group-member.h.
63735         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
63736         * modules/hash (EXTRA_DIST): Add hash.h.
63737         * modules/human (EXTRA_DIST): Add human.h.
63738         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
63739         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
63740         * modules/lchown (EXTRA_DIST): Add lchown.h.
63741         * modules/long-options (EXTRA_DIST): Add long-options.h.
63742         * modules/lstat (EXTRA_DIST): Add lstat.h.
63743         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
63744         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
63745         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
63746         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
63747         * modules/memxor (EXTRA_DIST): Add memxor.h.
63748         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
63749         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
63750         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
63751         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
63752         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
63753         * modules/physmem (EXTRA_DIST): Add physmem.h.
63754         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
63755         * modules/posixver (EXTRA_DIST): Add posixver.h.
63756         * modules/quote (EXTRA_DIST): Add quote.h.
63757         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
63758         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
63759         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
63760         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
63761         regex_internal.h regexec.c.
63762         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
63763         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
63764         * modules/same (EXTRA_DIST): Add same.h.
63765         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
63766         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
63767         * modules/savedir (EXTRA_DIST): Add savedir.h.
63768         * modules/sha1 (EXTRA_DIST): Add sha1.h.
63769         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
63770         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
63771         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
63772         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
63773         * modules/strdup (EXTRA_DIST): Add strdup.h.
63774         * modules/strftime (EXTRA_DIST): Add strftime.h.
63775         * modules/strndup (EXTRA_DIST): Add strndup.h.
63776         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
63777         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
63778         * modules/time_r (EXTRA_DIST): Add time_r.h.
63779         * modules/timespec (EXTRA_DIST): Add timespec.h.
63780         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
63781         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
63782         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
63783         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
63784         * modules/userspec (EXTRA_DIST): Add userspec.h.
63785         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
63786         * modules/utimens (EXTRA_DIST): Add utimens.h.
63787         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
63788         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
63789         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
63790         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
63791         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
63792         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
63793         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
63794         * modules/yesno (EXTRA_DIST): Add yesno.h.
63795
63796 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
63797
63798         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
63799
63800         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
63801         * m4/dev-ino.m4, same-inode.m4: Remove.
63802
63803         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
63804         * m4/acl.m4 (AC_FUNC_ACL):
63805         * m4/backupfile.m4 (gl_BACKUPFILE):
63806         * m4/c-strtod.m4 (gl_C99_STRTOLD):
63807         * m4/canon-host.m4 (gl_CANON_HOST):
63808         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
63809         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
63810         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
63811         * m4/cloexec.m4 (gl_CLOEXEC):
63812         * m4/close-stream.m4 (gl_CLOSE_STREAM):
63813         * m4/closeout.m4 (gl_CLOSEOUT):
63814         * m4/dirfd.m4 (gl_FUNC_DIRFD):
63815         * m4/dirname.m4 (gl_DIRNAME):
63816         * m4/exclude.m4 (gl_EXCLUDE):
63817         * m4/exitfail.m4 (gl_EXITFAIL):
63818         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
63819         * m4/file-type.m4 (gl_FILE_TYPE):
63820         * m4/filemode.m4 (gl_FILEMODE):
63821         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
63822         * m4/fpending.m4 (gl_FUNC_FPENDING):
63823         * m4/fprintftime.m4 (gl_FPRINTFTIME):
63824         * m4/fts.m4 (gl_FUNC_FTS):
63825         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
63826         * m4/getdate.m4 (gl_GETDATE):
63827         * m4/gethrxtime.m4 (gl_GETHRXTIME):
63828         * m4/getpagesize.m4 (gl_GETPAGESIZE):
63829         * m4/getpass.m4 (gl_FUNC_GETPASS):
63830         * m4/gettime.m4 (gl_GETTIME):
63831         * m4/getugroups.m4 (gl_GETUGROUPS):
63832         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
63833         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
63834         * m4/hard-locale.m4 (gl_HARD_LOCALE):
63835         * m4/hash.m4 (gl_HASH):
63836         * m4/idcache.m4 (gl_IDCACHE):
63837         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
63838         * m4/lchown.m4 (gl_FUNC_LCHOWN):
63839         * m4/long-options.m4 (gl_LONG_OPTIONS):
63840         * m4/lstat.m4 (gl_FUNC_LSTAT):
63841         * m4/md5.m4 (gl_MD5):
63842         * m4/memcasecmp.m4 (gl_MEMCASECMP):
63843         * m4/memcoll.m4 (gl_MEMCOLL):
63844         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
63845         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
63846         * m4/memxor.m4 (gl_MEMXOR):
63847         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
63848         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
63849         * m4/modechange.m4 (gl_MODECHANGE):
63850         * m4/mountlist.m4 (gl_MOUNTLIST):
63851         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
63852         * m4/openat.m4 (gl_FUNC_OPENAT):
63853         * m4/pathmax.m4 (gl_PATHMAX):
63854         * m4/physmem.m4 (gl_PHYSMEM):
63855         * m4/posixtm.m4 (gl_POSIXTM):
63856         * m4/posixver.m4 (gl_POSIXVER):
63857         * m4/quote.m4 (gl_QUOTE):
63858         * m4/quotearg.m4 (gl_QUOTEARG):
63859         * m4/readtokens.m4 (gl_READTOKENS):
63860         * m4/readutmp.m4 (gl_READUTMP):
63861         * m4/regex.m4 (gl_REGEX):
63862         * m4/safe-read.m4 (gl_SAFE_READ):
63863         * m4/safe-write.m4 (gl_SAFE_WRITE):
63864         * m4/same.m4 (gl_SAME):
63865         * m4/save-cwd.m4 (gl_SAVE_CWD):
63866         * m4/savedir.m4 (gl_SAVEDIR):
63867         * m4/settime.m4 (gl_SETTIME):
63868         * m4/sha1.m4 (gl_SHA1):
63869         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
63870         * m4/stat-macros.m4 (gl_STAT_MACROS):
63871         * m4/stat-time.m4 (gl_STAT_TIME):
63872         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
63873         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
63874         * m4/strdup.m4 (gl_FUNC_STRDUP):
63875         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
63876         * m4/strndup.m4 (gl_FUNC_STRNDUP):
63877         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
63878         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
63879         * m4/time_r.m4 (gl_TIME_R):
63880         * m4/timespec.m4 (gl_TIMESPEC):
63881         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
63882         * m4/unlinkdir.m4 (gl_UNLINKDIR):
63883         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
63884         * m4/userspec.m4 (gl_USERSPEC):
63885         * m4/utimecmp.m4 (gl_UTIMECMP):
63886         * m4/utimens.m4 (gl_UTIMENS):
63887         * m4/xalloc.m4 (gl_XALLOC):
63888         * m4/xgetcwd.m4 (gl_XGETCWD):
63889         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
63890         * m4/xreadlink.m4 (gl_XREADLINK):
63891         * m4/xstrtod.m4 (gl_XSTRTOD):
63892         * m4/yesno.m4 (gl_YESNO):
63893         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
63894         to get the necessary .h files and whatnot.
63895
63896 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
63897             Bruno Haible  <bruno@clisp.org>
63898
63899         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
63900         /bin/sh understanding of '!' conditional negation.
63901
63902 2006-08-21  Jim Meyering  <jim@meyering.net>
63903
63904         * modules/openat (Depends-on): Really alphabetize.
63905
63906         * modules/acl (Depends-on): Add error and quote.
63907
63908         * check-module (find_included_lib_files): Add at-func.c to the
63909         ok-to-include-more-than-once white list.
63910
63911         * modules/openat (Depends-on): Add lstat.  Alphabetize.
63912
63913 2006-08-21  Bruno Haible  <bruno@clisp.org>
63914
63915         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63916         Emit a pkgdata_DATA variable only if some snippets add contents to it.
63917         Reported by Martin Lambers <marlam@marlam.de>.
63918
63919 2006-08-21  Bruno Haible  <bruno@clisp.org>
63920
63921         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
63922         specify an installation location, don't emit a noinst_LIBRARIES or
63923         noinst_LTLIBRARIES assignment.
63924
63925 2006-08-21  Bruno Haible  <bruno@clisp.org>
63926
63927         BeOS portability.
63928         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
63929         BeOS has mbrtowc() but no <wctype.h>.
63930
63931 2006-08-21  Bruno Haible  <bruno@clisp.org>
63932
63933         BeOS portability.
63934         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
63935         exist.
63936
63937 2006-08-21  Bruno Haible  <bruno@clisp.org>
63938
63939         BeOS portability.
63940         * lib/mbchar.h: Include <wctype.h> only if it exists.
63941
63942 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
63943
63944         Remove files that are no longer needed by their respective modules.
63945         * m4/obstack.m4: Remove.
63946         * m4/strerror_r.m4: Remove.
63947         * m4/uint32_t.m4: Remove.
63948         * m4/uintptr_t.m4: Remove.
63949         * m4/ullong_max.m4: Remove.
63950         * m4/xstrtoimax.m4: Remove.
63951         * m4/xstrtoumax.m4: Remove.
63952
63953         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
63954         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
63955         dependencies now capture this.
63956
63957         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
63958         Do not use AC_LIBSOURCES, since gnulib modules now do this.
63959         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
63960         * m4/human.m4 (gl_HUMAN): Likewise.
63961         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
63962         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
63963
63964         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
63965
63966         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
63967         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
63968         stdint.
63969         * m4/human.m4 (gl_HUMAN): Likewise.
63970         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
63971         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
63972         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
63973         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
63974         * m4/xstrtol (gl_XSTRTOL): Likewise.
63975
63976         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
63977         AC_TYPE_LONG_LONG_INT.
63978         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
63979         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
63980         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
63981         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
63982
63983         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
63984         on stdbool.
63985
63986         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
63987         (gl_PREREQ_XSTRTOUL): Remove.
63988
63989         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
63990
63991         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
63992         mode.
63993
63994 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
63995
63996         Add and change modules to make it easier for coreutils to use
63997         gnulib-tool.
63998         * modules/backupfile (Files): Remove m4/d-ino.m4.
63999         (Depends-on): Add d-ino.
64000         * modules/cycle-check (Depends-on): Add stdint.
64001         (lib_SOURCES): Add cycle-check.h.
64002         * modules/d-ino: New module.
64003         * modules/d-type: New module.
64004         * modules/error (Files): Remove m4/strerror_r.m4.
64005         * modules/filemode (Files): Add m4/st_dm_mode.m4.
64006         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
64007         m4/inttypes_h.m4, m4/uintmax_t.m4.
64008         (Depends-on): Add stdint.
64009         (lib_SOURCES): Add fsusage.h.
64010         * modules/getcwd (Files): Remove d-ino.m4.
64011         (Depends-on): Add d-ino.
64012         * modules/getndelim2 (Depends-on): Add stdint.
64013         * modules/glob (Files): Remove m4/d-type.m4.
64014         (Depends-on): Add d-type.
64015         * modules/host-os: New module.
64016         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
64017         m4/inttypes_h.m4, m4/uintmax_t.m4.
64018         * Depends-on: Add stdint.
64019         (lib_SOURCES): Add human.h.
64020         * modules/inttostr (Files): Remove m4/intmax_t.m4,
64021         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
64022         m4/uintmax_t.m4, m4/ulonglong.m4.
64023         (Depends-on): Add stdint.
64024         (EXTRA_DIST): Add inttostr.h.
64025         * modules/lchmod: New module.
64026         * modules/link-follow: New module.
64027         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
64028         (Depends-on): Add lchmod.
64029         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
64030         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
64031         (Depends-on): Add stdint.
64032         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
64033         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
64034         (Depends-on): Add stdint.
64035         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
64036         * modules/perl: New module.
64037         * modules/regex (Depends-on): Add stdint.
64038         * modules/rmdir-errno: New module.
64039         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
64040         m4/intmax_t.m4.
64041         (Depends-on): Add stdint.
64042         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
64043         m4/uintmax_t.m4.
64044         (Depends-on): Add stdint.
64045         * modules/unlink-busy: New module.
64046         * modules/utimecmp (Depends-on): Add stdint.
64047         * modules/uptime: New module.
64048         * modules/winsz-ioctl: New module.
64049         * modules/winsz-termios: New module.
64050         * modules/xnanosleep (Depends-on): Add nanosleep.
64051         * modules/ullong_max: Remove.
64052         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
64053         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
64054         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
64055         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
64056         (Depends-on): Add inttypes.
64057         (lib_SOURCES): Add xstrtol.h.
64058         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
64059         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
64060         * MODULES.html.sh: Move 'assert' into the assert section.
64061         Move 'dummy' into the linking section.
64062         Remove ullong_max.
64063         Add section for compatibility checks for POSIX:2001 functions,
64064         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
64065         winsz-ioctl, and winsz-termios into it.
64066         Add lchmod.
64067         Add top-level Misc section and put host-os, perl, and uptime
64068         into it.
64069
64070 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
64071
64072         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
64073         now assume the stdint module.  Do not include inttypes.h.
64074         * lib/fsusage.h: Likewise.
64075         * lib/getndelim2.c: Likewise.
64076         * lib/human.h: Likewise.
64077         * lib/inttostr.h: Likewise.
64078         * lib/obstack.c: Likewise.
64079         * lib/regex_internal.h: Likewise.
64080         * lib/tempname.c: Likewise.
64081         * lib/utimecmp.c: Likewise.
64082         * lib/xstrtol.h: Likewise.
64083
64084         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
64085
64086         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
64087         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
64088         * lib/xtime.h: Likewise.
64089
64090 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64091
64092         * modules/openat (Files): Add lib/fchmodat.c.
64093         Fixes problem reported by Jay Youngman.
64094
64095 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64096
64097         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
64098         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
64099
64100 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
64101             Bruno Haible  <bruno@clisp.org>
64102
64103         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
64104         and is a script that invokes bison. Tighten the code. Add comments.
64105
64106 2006-08-18  Jim Meyering  <jim@meyering.net>
64107
64108         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
64109         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
64110         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
64111         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
64112
64113 2006-08-18  Bruno Haible  <bruno@clisp.org>
64114
64115         * modules/bison-i18n: New file.
64116         * MODULES.html.sh (Internationalization functions): Add it.
64117
64118 2006-08-18  Bruno Haible  <bruno@clisp.org>
64119
64120         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
64121         sys/statvfs.h. When getmntinfo was found, check its declaration and
64122         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
64123
64124 2006-08-18  Bruno Haible  <bruno@clisp.org>
64125
64126         * m4/bison-i18n.m4: New file, from bison.
64127
64128 2006-08-18  Bruno Haible  <bruno@clisp.org>
64129
64130         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
64131         (ME_DUMMY): Treat "kernfs" as a dummy.
64132         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
64133
64134 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
64135
64136         Update from coreutils.
64137
64138         2006-08-15  Jim Meyering  <jim@meyering.net>
64139
64140         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
64141
64142         2006-01-17  Jim Meyering  <jim@meyering.net>
64143
64144         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
64145
64146         2006-01-11  Jim Meyering  <jim@meyering.net>
64147
64148         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
64149         Check for the lchmod function.
64150
64151 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
64152
64153         Update from coreutils.
64154
64155         * lib/__fpending.h: Add copyright notice.
64156         * lib/fprintftime.h: Likewise.
64157         * lib/savedir.c: Use (C) in copyright notice.
64158         * lib/savedir.h: Likewise.
64159
64160         2006-08-15  Jim Meyering  <jim@meyering.net>
64161
64162         * lib/at-func.c: New file, with the logic of all emulated at-functions.
64163         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
64164         in support of the EXPECTED_ERRNO macro.
64165         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
64166         definitions.  Instead, define the appropriate symbols and include
64167         "at-func.c".
64168         * lib/mkdirat.c (mkdirat): Likewise.
64169         * lib/fchmodat.c (fchmodat): Likewise.
64170         (ENOSYS): Remove definition.
64171         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
64172         it.  Don't include "unistd--.h" -- it wasn't ever used.
64173
64174         2006-01-17  Jim Meyering  <jim@meyering.net>
64175
64176         Rewrite fts.c not to change the current working directory,
64177         by using openat, fstatat, fdopendir, etc..
64178
64179         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
64180         (HAVE_OPENAT_SUPPORT): Define.
64181         [_LIBC] (fchdir): Don't undef or define; no longer used.
64182         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
64183         Now, this `function' always succeeds, and consumes its file descriptor
64184         parameter -- so callers must not close such FDs.  Update callers.
64185         (diropen_fd, opendirat, cwd_advance_fd): New functions.
64186         (diropen): Add parameter, SP.  Adjust all callers.
64187         Implement using diropen_fd, rather than open.
64188         (fts_open): Initialize new member, fts_cwd_fd.
64189         Remove fts_rft-setting code.
64190         (fts_close): Close fts_cwd_fd, if necessary.
64191         (__opendir2): Define in terms of opendir or opendirat,
64192         depending on whether the FST_NOCHDIR flag is set.
64193         (fts_build): Since fts_safe_changedir consumes its FD, and since
64194         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
64195         and close the dup'd file descriptor upon failure.
64196         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
64197         (fts_safe_changedir): Tweak semantics to reflect that this function
64198         now calls cwd_advance_fd and hence consumes its FD argument.
64199         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
64200         [struct FTS] (fts_rft): Remove now-unused member.
64201         [struct FTS] (fts_cycle.state): Improve comment.
64202
64203         * lib/openat.c (openat_needs_fchdir): New function.
64204         * lib/openat.h (openat_needs_fchdir): Declare it.
64205
64206 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
64207
64208         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
64209         Problem and fix reported by Pádraig Brady in
64210         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
64211
64212 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64213
64214         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
64215
64216 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64217
64218         * lib/memcoll.c (memcoll): Optimize for the common case where the
64219         arguments are bytewise equal.
64220
64221 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64222
64223         * doc/regexprops-generic.texi: Add a copyright notice.
64224
64225 2006-08-15  Bruno Haible  <bruno@clisp.org>
64226
64227         * modules/tmpdir (License): Change to LGPL.
64228
64229 2006-08-15  Bruno Haible  <bruno@clisp.org>
64230
64231         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
64232         module.
64233
64234 2006-08-14  Simon Josefsson  <jas@extundo.com>
64235
64236         * config/srclist.txt: Add gnupload.
64237
64238 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
64239
64240         Change copyright notice from LGPL 2 to GPL 2, since that's the
64241         standard form used in the gnulib repository.
64242         * tests/test-lock.c: Likewise.
64243         * tests/test-stdint.c: Likewise.
64244         * tests/test-tls.c: Likewise.
64245
64246         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
64247         prelude-manager.  User shorter URLs for GNU projects, without '?'.
64248         Add copyright notice.
64249
64250         * check-module: Add copyright notice.  Output a copyright
64251         notice if "--version" is specified.
64252         * modules/COPYING: New file.
64253         * tests/test-getaddrinfo.c: Add copyright notice.
64254         * tests/test-verify.c: Likewise.
64255
64256 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
64257
64258         Change copyright notice from LGPL 2 to GPL 2, since that's the
64259         standard form used in the gnulib repository.
64260         * lib/lock.c: LGPL -> GPL.
64261         * lib/lock.h: Likewise.
64262         * lib/strnlen1.c: Likewise.
64263         * lib/strnlen1.h: Likewise.
64264         * lib/tls.c: Likewise.
64265         * lib/tls.h: Likewise.
64266         * lib/tmpdir.c: Likewise.
64267
64268         * lib/TODO: Remove; this belongs only in coreutils.
64269
64270 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
64271
64272         Add copyright notices to long-enough files that lack them, since
64273         otherwise the files aren't clearly free.  Use the same notice that
64274         getdate.texi already uses.
64275         * doc/alloca-opt.texi: Add copyright notice.
64276         * doc/alloca.texi: Likewise.
64277         * doc/ctime.texi: Likewise.
64278         * doc/functions.texi: Likewise.
64279         * doc/gcd.texi: Likewise.
64280         * doc/gnulib-tool.texi: Likewise.
64281         * doc/inet_ntoa.texi: Likewise.
64282         * doc/visibility.texi: Likewise.
64283
64284         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
64285         * doc/quote.texi: Add copyright notice.
64286
64287         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
64288         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
64289         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
64290         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
64291         is now obsolete, and give a pointer to the Sun list.
64292         Add copyright notice.
64293
64294 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
64295
64296         * config/srclistvars.sh: Add copyright notice.
64297
64298 2006-08-14  Eric Blake  <ebb9@byu.net>
64299
64300         Import the following change from libc:
64301
64302         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
64303
64304         Upstream bug 2997.
64305         * lib/misc/error.c: Add space between program name and message if file
64306         name is missing.
64307
64308 2006-08-12  Karl Berry  <karl@gnu.org>
64309
64310         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
64311         remove, these originate in gnulib now.
64312
64313 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64314
64315         * doc/Makefile (standards.info standards.html standards.dvi):
64316         Also depend on make-stds.texi.
64317
64318 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
64319
64320         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
64321         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
64322
64323         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
64324         in wchar_t.  Problem reported by Eric Blake.
64325
64326         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
64327         LEN is smaller than SIZE.  Suggested by Bruno Haible.
64328         Also, help the compiler to keep LEN in a register.
64329
64330 2006-08-11  Eric Blake  <ebb9@byu.net>
64331
64332         * users.txt: Sort.  Add tar.
64333
64334 2006-08-11  Bruno Haible  <bruno@clisp.org>
64335
64336         * users.txt: New file.
64337
64338 2006-08-11  Bruno Haible  <bruno@clisp.org>
64339
64340         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
64341         before <wchar.h>. Needed for OSF/1 and BSD/OS.
64342
64343 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
64344
64345         * modules/snprintf (Depends-on): Remove minmax.
64346         (Maintainer): Add self and Bruno.
64347
64348 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
64349
64350         * lib/.cppi-disable: Add snprintf.h, socket_.h.
64351         * lib/snprintf.c: Include <errno.h> and <limits.h>.
64352         (EOVERFLOW): Define if the system does not.
64353         Do not include "minmax.h"; it wasn't used.
64354         (snprintf): Don't assume size_t promotes to an unsigned type.
64355         Fix bug when generated string was too long for the buffer: the
64356         buffer's contents are supposed to be the initial prefix of the
64357         output.  Don't assume vasnprintf returns EOVERFLOW if the size
64358         exceeds INT_MAX; do the check ourselves.
64359
64360         Import the following changes from libc:
64361
64362         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
64363
64364         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
64365         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
64366         set wc to the byte which couldn't be converted.
64367         (re_string_reconstruct): Don't clear valid_raw_len before calling
64368         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
64369         tip_context using re_string_context_at.
64370
64371         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
64372
64373         * lib/posix/regex.h: g++ still cannot handled [restrict].
64374
64375         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
64376
64377         * lib/posix/regex.h: Remove special handling for VMS.
64378
64379 2006-08-10  Jim Meyering  <jim@meyering.net>
64380
64381         * modules/same-inode: New module.
64382         * modules/dev-ino: New module.
64383         * modules/cycle-check: Depend on these modules, rather than simply
64384         including their .h files.
64385         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
64386         required via m4/cycle-check.m4.
64387         * modules/same: Depend on new same-inode module, rather than
64388         including same-inode.h.
64389         * modules/chdir-safer: New file.
64390
64391         * modules/chown (Depends-on): Add stat-macros.
64392
64393 2006-08-10  Jim Meyering  <jim@meyering.net>
64394
64395         * m4/cycle-check.m4: New file.
64396         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
64397         * m4/dev-ino.m4, m4/same-inode.m4: New files.
64398
64399 2006-08-10  Eric Blake  <ebb9@byu.net>
64400
64401         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
64402         in from original proposal.
64403
64404 2006-08-10  Eric Blake  <ebb9@byu.net>
64405         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
64406
64407         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
64408         namespace.
64409
64410 2006-08-10  Bruno Haible  <bruno@clisp.org>
64411
64412         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
64413         as well.
64414
64415 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64416
64417         Sync from coreutils.
64418
64419         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
64420
64421         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
64422         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
64423
64424 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64425
64426         * modules/restrict: Remove; no longer needed now that we assume
64427         Autoconf 2.59 or later.
64428         * MODULES.html.sh: Remove 'restrict'.
64429         * modules/argp (Depends-on): Remove 'restrict'.
64430         * modules/base64 (Depends-on): Likewise.
64431         * modules/gc (Depends-on): Likewise.
64432         * modules/getaddrinfo (Depends-on): Likewise.
64433         * modules/glob (Depends-on): Likewise.
64434         * modules/inet_ntop (Depends-on): Likewise.
64435         * modules/inet_pton (Depends-on): Likewise.
64436         * modules/memxor (Depends-on): Likewise.
64437         * modules/regex (Depends-on): Likewise.
64438         * modules/strtok_r (Depends-on): Likewise.
64439         * modules/time_r (Depends-on): Likewise.
64440
64441 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64442
64443         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
64444         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
64445         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
64446         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
64447         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
64448         * m4/memxor.m4 (gl_MEMXOR): Likewise.
64449         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
64450         gl_C_RESTRICT replaced by AC_C_RESTRICT.
64451
64452         Merge from coreutils.
64453         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
64454         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
64455         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
64456         * m4/time_r.m4 (gl_TIME_R): Likewise.
64457
64458 2006-08-09  Karl Berry  <karl@gnu.org>
64459
64460         * config/srclist.txt: no more gettext-tools, per Bruno.
64461
64462 2006-08-08  Eric Blake  <ebb9@byu.net>
64463
64464         * modules/verror: New module.
64465         * MODULES.html.sh: Document it.
64466
64467 2006-08-08  Eric Blake  <ebb9@byu.net>
64468
64469         * lib/verror.h, lib/verror.c: New files.
64470
64471 2006-08-08  Eric Blake  <ebb9@byu.net>
64472
64473         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
64474         verror_at_line output complies with GNU Coding Standards even when
64475         file is NULL.
64476
64477 2006-08-07  Bruno Haible  <bruno@clisp.org>
64478
64479         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
64480         versions of AIX.
64481         Reported by Ralf Wildenhues.
64482
64483 2006-08-07  Bruno Haible  <bruno@clisp.org>
64484
64485         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
64486         in an AC_DEFUN. Needed so that the autoconf snippets can use
64487         AC_REQUIRE.
64488
64489 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64490
64491         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64492         Initialize pkgdata_DATA.
64493         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
64494         overriding it.
64495
64496 2006-08-06  Eric Blake  <ebb9@byu.net>
64497
64498         * lib/error.h: Fold in some upstream changes from glibc.
64499         * lib/error.c: Likewise.
64500
64501 2006-08-04  Bruno Haible  <bruno@clisp.org>
64502
64503         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64504         Make the mostlyclean-local rule depend on mostlyclean-generic.
64505         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
64506
64507 2006-07-31  Bruno Haible  <bruno@clisp.org>
64508
64509         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
64510         <stdlib.h>, <string.h>.
64511
64512 2006-07-30  Bruno Haible  <bruno@clisp.org>
64513
64514         * modules/readlink (License): Change to LGPL.
64515
64516 2006-07-30  Bruno Haible  <bruno@clisp.org>
64517
64518         * modules/javaversion (Makefile.am): Distribute javaversion.java and
64519         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
64520         set PKGDATADIR to point to it.
64521
64522 2006-07-30  Bruno Haible  <bruno@clisp.org>
64523
64524         * modules/csharpexec (configure.ac): Comment out macro invocation.
64525         * modules/javaexec (configure.ac): Likewise.
64526         * modules/javacomp-script (configure.ac): Likewise.
64527
64528         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
64529
64530 2006-07-30  Bruno Haible  <bruno@clisp.org>
64531
64532         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
64533         linked-list.
64534
64535 2006-07-30  Bruno Haible  <bruno@clisp.org>
64536
64537         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
64538
64539 2006-07-30  Bruno Haible  <bruno@clisp.org>
64540
64541         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64542         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
64543         get removed.
64544
64545 2006-07-29  Bruno Haible  <bruno@clisp.org>
64546
64547         Make it possible for gnulib-tool to work with locally modified or
64548         augmented gnulib repositories.
64549         * gnulib-tool (func_usage): Document --local-dir option.
64550         (local_gnulib_dir): New variable.
64551         Handle --local-dir option.
64552         (func_lookup_file): New function.
64553         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
64554         (func_get_description, func_get_filelist, func_get_description,
64555         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
64556         func_get_automake_snippet, func_get_include_directive,
64557         func_get_license, func_get_maintainer): Use func_lookup_file.
64558         (func_import, func_create_testdir): Use func_lookup_file.
64559
64560 2006-07-29  Bruno Haible  <bruno@clisp.org>
64561
64562         * modules/setenv (Depends-on): Add unistd.
64563
64564 2006-07-29  Bruno Haible  <bruno@clisp.org>
64565
64566         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
64567
64568 2006-07-29  Bruno Haible  <bruno@clisp.org>
64569
64570         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
64571
64572 2006-07-29  Bruno Haible  <bruno@clisp.org>
64573
64574         * gnulib-tool (import, update): If there is no Makefile.am, look at
64575         aclocal.m4, instead of bailing out.
64576
64577 2006-07-29  Bruno Haible  <bruno@clisp.org>
64578
64579         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
64580         Categorize the options by when they are useful.
64581
64582 2006-07-29  Bruno Haible  <bruno@clisp.org>
64583
64584         * gnulib-tool (func_usage): Document option --no-libtool.
64585         Handle option --no-libtool.
64586         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
64587         for changed semantics of $libtool variable.
64588         (func_import): Likewise. If libtool is not used, show this through
64589         an option --no-libtool.
64590         (func_create_testdir): Update.
64591
64592 2006-07-29  Bruno Haible  <bruno@clisp.org>
64593
64594         * gnulib-tool (func_import): Extend error message about missing
64595         --doc-base.
64596
64597 2006-07-29  Bruno Haible  <bruno@clisp.org>
64598
64599         * gnulib-tool (func_import): Don't create the $docbase directory if
64600         there is no file to store there.
64601
64602 2006-07-29  Bruno Haible  <bruno@clisp.org>
64603
64604         * gnulib-tool (autoconf_minversion): If a --dir option is given and
64605         relevant, look for configure.ac there, not in the current directory.
64606         Also use a simple search for AC_PREREQ, not "autoconf --trace".
64607
64608 2006-07-29  Bruno Haible  <bruno@clisp.org>
64609
64610         * gnulib-tool (SORT): New variable.
64611         (func_usage): Undocument --assume-autoconf option.
64612         Remove --assume-autoconf option handling.
64613         (autoconf_minversion): Determine from the contents of configure.ac.
64614         (func_import): Remove autoconf_minversion handling.
64615         Suggested by Eric Blake.
64616
64617 2006-07-29  Bruno Haible  <bruno@clisp.org>
64618
64619         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
64620
64621 2006-07-29  Bruno Haible  <bruno@clisp.org>
64622
64623         * config/srclist.txt (*setenv.[ch]): Remove rules.
64624
64625 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64626
64627         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
64628
64629 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64630
64631         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
64632         arpa/inet.h.
64633
64634 2006-07-28  Simon Josefsson  <jas@extundo.com>
64635
64636         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
64637         * modules/inet_pton (Depends-on): Likewise.
64638
64639 2006-07-28  Simon Josefsson  <jas@extundo.com>
64640
64641         * m4/netinet_in_h.m4: New file.
64642
64643 2006-07-28  Simon Josefsson  <jas@extundo.com>
64644
64645         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
64646         #include's.
64647
64648 2006-07-28  Simon Josefsson  <jas@extundo.com>
64649
64650         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
64651         #include's.
64652
64653 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
64654
64655         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
64656         setgid on directories only if they set these bits.
64657         * lib/modechange.h: Remove obsolete comment about masks.
64658
64659 2006-07-28  Eric Blake  <ebb9@byu.net>
64660
64661         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
64662         macro expansion.
64663
64664 2006-07-28  Bruno Haible  <bruno@clisp.org>
64665
64666         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
64667
64668 2006-07-28  Bruno Haible  <bruno@clisp.org>
64669
64670         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
64671
64672 2006-07-28  Bruno Haible  <bruno@clisp.org>
64673
64674         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
64675         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
64676         Define fallbacks.
64677         Avoids link error on FreeBSD 4.x.
64678         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
64679
64680         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
64681         encoding.
64682         * lib/mbswidth.c (iswcntrl): Likewise.
64683
64684 2006-07-27  Bruno Haible  <bruno@clisp.org>
64685
64686         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
64687         test.
64688
64689 2006-07-27  Bruno Haible  <bruno@clisp.org>
64690
64691         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
64692         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
64693         defined.
64694
64695 2006-07-26  Eric Blake  <ebb9@byu.net>
64696
64697         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
64698
64699 2006-07-26  Eric Blake  <ebb9@byu.net>
64700
64701         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
64702         like mingw that lack mkstemp.
64703         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
64704         avoid compilation warning on mingw.
64705
64706 2006-07-26  Bruno Haible  <bruno@clisp.org>
64707
64708         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
64709         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
64710         INT_FAST*_MIN, INTPTR_MIN.
64711
64712 2006-07-25  Bruno Haible  <bruno@clisp.org>
64713
64714         * modules/version-etc (Depends-on): Add stdarg.
64715
64716 2006-07-25  Bruno Haible  <bruno@clisp.org>
64717
64718         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
64719         complex commands.
64720
64721 2006-07-25  Bruno Haible  <bruno@clisp.org>
64722
64723         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
64724         defined in <stdarg.h> or config.h.
64725
64726 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
64727
64728         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
64729         (gl_STDIO_SAFER): Remove.
64730
64731 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
64732
64733         * MODULES.html.sh (File stream based Input/Output):
64734         Add fopen-safer, tmpfile-safer; remove stdio-safer.
64735         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
64736         * modules/fopen-safer, modules/tmpfile-safer: New files.
64737         * modules/stdio-safer: Remove.
64738
64739 2006-07-24  Bruno Haible  <bruno@clisp.org>
64740
64741         * modules/tmpdir: New file.
64742         * MODULES.html.sh (File system functions): Add it.
64743
64744 2006-07-24  Bruno Haible  <bruno@clisp.org>
64745
64746         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
64747         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
64748
64749 2006-07-24  Bruno Haible  <bruno@clisp.org>
64750
64751         * modules/clean-temp: New file.
64752
64753 2006-07-24  Bruno Haible  <bruno@clisp.org>
64754
64755         * m4/tmpdir.m4: New file, from GNU gettext.
64756
64757 2006-07-24  Bruno Haible  <bruno@clisp.org>
64758
64759         * lib/tmpdir.h: New file, from GNU gettext.
64760         * lib/tmpdir.c: New file, from GNU gettext.
64761
64762 2006-07-24  Bruno Haible  <bruno@clisp.org>
64763
64764         * lib/clean-temp.h: New file, from GNU gettext.
64765         * lib/clean-temp.c: New file, from GNU gettext.
64766
64767 2006-07-23  Eric Blake  <ebb9@byu.net>
64768
64769         * modules/stdio-safer (Files): Add tmpfile-safer.c.
64770         (Depends-on): Add binary-io.
64771
64772 2006-07-23  Eric Blake  <ebb9@byu.net>
64773
64774         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
64775
64776 2006-07-23  Eric Blake  <ebb9@byu.net>
64777
64778         * lib/tmpfile-safer.c: New file.
64779         * lib/stdio-safer.h (fopen_safer): Add prototype.
64780         * lib/stdio--.h (tmpfile): Make safer.
64781
64782 2006-07-23  Bruno Haible  <bruno@clisp.org>
64783
64784         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
64785         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
64786         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
64787         gl_linked_remove_at): Use it.
64788
64789 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64790         and Simon Josefsson <jas@extundo.com>
64791
64792         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
64793
64794         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
64795
64796 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
64797
64798         * modules/close-stream: New file.
64799         * modules/closeout (Description): Make it clear that it exits
64800         with a diagnostic on error.
64801         (Depends-on): Add close-stream.  Remove fpending, stdbool.
64802         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
64803
64804 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
64805
64806         * m4/close-stream.m4: New file.
64807
64808 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
64809
64810         * lib/close-stream.c, lib/close-stream.h: New files.
64811
64812 2006-07-22  Bruno Haible  <bruno@clisp.org>
64813
64814         Merge from GNU gettext 0.15.
64815
64816         2006-05-01  Bruno Haible  <bruno@clisp.org>
64817
64818                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
64819
64820         2006-07-22  Bruno Haible  <bruno@clisp.org>
64821
64822                 * modules/javaversion: New file.
64823                 * MODULES.html.sh (Java): Add javaversion.
64824
64825         2006-03-12  Bruno Haible  <bruno@clisp.org>
64826
64827                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
64828
64829         2005-12-04  Bruno Haible  <bruno@clisp.org>
64830
64831                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
64832                 (untested).
64833
64834         2006-06-21  Bruno Haible  <bruno@clisp.org>
64835
64836                 Avoid warnings from recent versions of mcs.
64837                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
64838                 -o, -L, -r any more. Use options documented since mcs-1.0
64839                 instead. Similarly for -g.
64840
64841         2005-12-04  Bruno Haible  <bruno@clisp.org>
64842
64843                 * build-aux/csharpcomp.sh.in: Suffix for resources is
64844                 .resources, not .resource.
64845
64846         2005-07-09  Bruno Haible  <bruno@clisp.org>
64847
64848                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
64849                 add a .dll suffix.
64850                 Reported by Mark Junker <mjscod@gmx.de>.
64851
64852         2006-07-22  Bruno Haible  <bruno@clisp.org>
64853
64854                 * modules/gettext: Upgrade to gettext-0.15.
64855                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
64856                 m4/visibility.m4.
64857                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
64858
64859 2006-07-22  Bruno Haible  <bruno@clisp.org>
64860
64861         Merge from GNU gettext 0.15.
64862
64863         2006-03-25  Bruno Haible  <bruno@clisp.org>
64864
64865                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
64866
64867         2006-07-21  Bruno Haible  <bruno@clisp.org>
64868
64869                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
64870                 "1.1".
64871
64872         2006-05-09  Bruno Haible  <bruno@clisp.org>
64873
64874                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
64875                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
64876                 for the conftestver execution.
64877
64878         2006-05-01  Bruno Haible  <bruno@clisp.org>
64879
64880                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
64881                 optional target-version argument. Verify that the compiler
64882                 groks source of the specified source-version, or add -source
64883                 option as necessary. Verify that the compiler produces
64884                 bytecode in the specified target-version, or add -target and
64885                 -source options as necessary. Make the result of the test
64886                 available as variable CONF_JAVAC. Also log error output in
64887                 config.log.
64888
64889         2006-03-11  Bruno Haible  <bruno@clisp.org>
64890
64891                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
64892
64893         2006-05-09  Bruno Haible  <bruno@clisp.org>
64894
64895                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
64896                 CLASSPATH_SEPARATOR to a semicolon.
64897
64898         2006-03-12  Bruno Haible  <bruno@clisp.org>
64899
64900                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
64901                 available as variable CONF_JAVA, for subsequent autoconf
64902                 tests. Also log error output in config.log.
64903
64904         2006-07-19  Bruno Haible  <bruno@clisp.org>
64905
64906                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
64907                 that getline works on glibc2 systems. Needed to avoid trouble
64908                 in relocatable.c.
64909                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
64910
64911         2005-12-04  Bruno Haible  <bruno@clisp.org>
64912
64913                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
64914                 launcher (untested).
64915
64916         2005-12-04  Bruno Haible  <bruno@clisp.org>
64917
64918                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
64919
64920         2006-07-22  Bruno Haible  <bruno@clisp.org>
64921
64922                 * gettext.m4: Update from GNU gettext-0.15.
64923                 * nls.m4: Likewise.
64924                 * po.m4: Likewise.
64925                 * inttypes-pri.m4: Likewise.
64926                 * inttypes-h.m4: Renamed from inttypes.m4.
64927                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
64928
64929 2006-07-22  Bruno Haible  <bruno@clisp.org>
64930
64931         Merge from GNU gettext 0.15.
64932
64933         2005-07-05  Bruno Haible  <bruno@clisp.org>
64934
64935                 * printf-args.c (printf_fetchargs): Work around broken
64936                 definition of wint_t on mingw.
64937
64938         2005-02-12  Bruno Haible  <bruno@clisp.org>
64939
64940                 * xallocsa.h: Add extern "C" for C++.
64941
64942         2006-05-17  Bruno Haible  <bruno@clisp.org>
64943
64944                 Cygwin portability.
64945                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
64946
64947         2006-04-30  Bruno Haible  <bruno@clisp.org>
64948
64949                 * progreloc.c: Include <mach-o/dyld.h> if available.
64950                 (find_executable): Use _NSGetExecutablePath when possible.
64951
64952         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
64953
64954                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
64955                 function.
64956
64957         2005-12-29  Bruno Haible  <bruno@clisp.org>
64958
64959                 * progreloc.c (set_program_name_and_installdir): Fix
64960                 compilation error.
64961
64962         2005-12-04  Bruno Haible  <bruno@clisp.org>
64963
64964                 Cygwin portability.
64965                 * progreloc.c: Include <windows.h> also on Cygwin.
64966                 (find_executable): Add support for Cygwin.
64967                 (set_program_name_and_installdir): Handle also platforms with
64968                 nonempty EXEEXT.
64969
64970         2006-07-11  Bruno Haible  <bruno@clisp.org>
64971
64972                 * javacomp.c: Fix a comment.
64973                 Reported by Jim Meyering.
64974
64975         2006-04-30  Bruno Haible  <bruno@clisp.org>
64976
64977                 * javacomp.h (compile_java_class): Add source_version,
64978                 target_version arguments.
64979                 * javacomp.c: Rewritten to choose only a compiler that
64980                 respects the specified source_version and target_version.
64981
64982         2006-06-27  Bruno Haible  <bruno@clisp.org>
64983
64984                 Assume correct S_ISDIR macro.
64985                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
64986
64987         2006-07-22  Bruno Haible  <bruno@clisp.org>
64988
64989                 * javaversion.h: New file, from GNU gettext.
64990                 * javaversion.c: New file, from GNU gettext.
64991                 * javaversion.java: New file, from GNU gettext.
64992                 * javaversion.class: New file, from GNU gettext.
64993
64994         2006-05-17  Bruno Haible  <bruno@clisp.org>
64995
64996                 Cygwin portability.
64997                 * javaexec.c (execute_java_class): Test for jview program
64998                 also on Cygwin.
64999
65000         2006-04-09  Bruno Haible  <bruno@clisp.org>
65001
65002                 * fatal-signal.c: Don't include string.h.
65003                 (at_fatal_signal): Use a copying loop instead of memcpy.
65004
65005         2005-12-04  Bruno Haible  <bruno@clisp.org>
65006
65007                 * csharpexec.c: Add support for 'clix' launcher (untested).
65008                 (execute_csharp_using_sscli): New function.
65009                 (execute_csharp_program): Call it.
65010
65011         2006-06-21  Bruno Haible  <bruno@clisp.org>
65012
65013                 Avoid warnings from recent versions of mcs.
65014                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
65015                 -o, -L, -r any more. Use options documented since mcs-1.0
65016                 instead. Similarly for -g.
65017
65018         2005-07-09  Bruno Haible  <bruno@clisp.org>
65019
65020                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
65021                 add a .dll suffix.
65022                 Reported by Mark Junker <mjscod@gmx.de>.
65023
65024         2006-06-17  Bruno Haible  <bruno@clisp.org>
65025
65026                 * config.charset: Update for NetBSD 3.0.
65027
65028         2006-05-17  Bruno Haible  <bruno@clisp.org>
65029
65030                 Cygwin portability.
65031                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
65032
65033         2006-05-16  Bruno Haible  <bruno@clisp.org>
65034
65035                 * localcharset.c [CYGWIN]: Include <windows.h>.
65036                 (get_charset_aliases): For Cygwin, return the same CPxxx
65037                 aliases list as under WIN32.
65038                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
65039                 the environment variables. Fall back to GetACP().
65040
65041         2006-04-05  Bruno Haible  <bruno@clisp.org>
65042
65043                 * config.charset: Update Juan Manuel Guerrero's address.
65044
65045         2005-02-12  Bruno Haible  <bruno@clisp.org>
65046
65047                 * allocsa.h: Add extern "C" for C++.
65048
65049         2005-02-10  Bruno Haible  <bruno@clisp.org>
65050
65051                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
65052                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
65053
65054         2006-07-22  Bruno Haible  <bruno@clisp.org>
65055
65056                 * gettext.h: Update to GNU gettext-0.15.
65057
65058 2006-07-22  Bruno Haible  <bruno@clisp.org>
65059
65060         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
65061         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
65062         lib-prefix.m4, longdouble.m4, ssize_t.m4.
65063
65064 2006-07-21  Eric Blake  <ebb9@byu.net>
65065
65066         * modules/stdlib-safer: New file.
65067         * MODULES.html.sh (File stream based Input/Output): Add
65068         stdlib-safer.
65069
65070 2006-07-21  Eric Blake  <ebb9@byu.net>
65071
65072         * lib/stdlib-safer.h: New file from coreutils, required by
65073         stdlib--.h.
65074
65075 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
65076
65077         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
65078
65079 2006-07-20  Bruno Haible  <bruno@clisp.org>
65080
65081         * gnulib-tool: Recognize new option --assume-autoconf.
65082         (autoconf_minversion): New variable.
65083         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
65084
65085 2006-07-20  Bruno Haible  <bruno@clisp.org>
65086
65087         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
65088
65089 2006-07-19  Derek R. Price  <derek@ximbiot.com>
65090
65091         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
65092         Reindent and repaginate.
65093
65094 2006-07-19  Derek Price  <derek@ximbiot.com>
65095
65096         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
65097         Correct grammar.
65098
65099 2006-07-17  Bruno Haible  <bruno@clisp.org>
65100
65101         * modules/list: New file.
65102         * modules/array-list: New file.
65103         * modules/carray-list, modules/carray-list-tests: New files.
65104         * modules/linked-list, modules/linked-list-tests: New files.
65105         * modules/avltree-list, modules/avltree-list-tests: New files.
65106         * modules/rbtree-list, modules/rbtree-list-tests: New files.
65107         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
65108         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
65109         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
65110         * modules/oset: New file.
65111         * modules/array-oset: New file.
65112         * modules/avltree-oset, modules/avltree-oset-tests: New files.
65113         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
65114         * tests/test-carray_list.c: New file.
65115         * tests/test-linked_list.c: New file.
65116         * tests/test-avltree_list.c: New file.
65117         * tests/test-rbtree_list.c: New file.
65118         * tests/test-linkedhash_list.c: New file.
65119         * tests/test-avltreehash_list.c: New file.
65120         * tests/test-rbtreehash_list.c: New file.
65121         * tests/test-avltree_oset.c: New file.
65122         * tests/test-rbtree_oset.c: New file.
65123         * MODULES.html.sh (Container data structures): New section.
65124
65125 2006-07-17  Bruno Haible  <bruno@clisp.org>
65126
65127         * m4/gl_list.m4: New file.
65128
65129 2006-07-17  Bruno Haible  <bruno@clisp.org>
65130
65131         * lib/gl_list.h: New file.
65132         * lib/gl_list.c: New file.
65133         * lib/gl_array_list.h: New file.
65134         * lib/gl_array_list.c: New file.
65135         * lib/gl_carray_list.h: New file.
65136         * lib/gl_carray_list.c: New file.
65137         * lib/gl_linked_list.h: New file.
65138         * lib/gl_linked_list.c: New file.
65139         * lib/gl_anylinked_list1.h: New file.
65140         * lib/gl_anylinked_list2.h: New file.
65141         * lib/gl_avltree_list.h: New file.
65142         * lib/gl_avltree_list.c: New file.
65143         * lib/gl_anyavltree_list1.h: New file.
65144         * lib/gl_anyavltree_list2.h: New file.
65145         * lib/gl_rbtree_list.h: New file.
65146         * lib/gl_rbtree_list.c: New file.
65147         * lib/gl_anyrbtree_list1.h: New file.
65148         * lib/gl_anyrbtree_list2.h: New file.
65149         * lib/gl_anytree_list1.h: New file.
65150         * lib/gl_anytree_list2.h: New file.
65151         * lib/gl_linkedhash_list.h: New file.
65152         * lib/gl_linkedhash_list.c: New file.
65153         * lib/gl_anyhash_list1.h: New file.
65154         * lib/gl_anyhash_list2.h: New file.
65155         * lib/gl_avltreehash_list.h: New file.
65156         * lib/gl_avltreehash_list.c: New file.
65157         * lib/gl_rbtreehash_list.h: New file.
65158         * lib/gl_rbtreehash_list.c: New file.
65159         * lib/gl_anytreehash_list1.h: New file.
65160         * lib/gl_anytreehash_list2.h: New file.
65161
65162         * lib/gl_oset.h: New file.
65163         * lib/gl_oset.c: New file.
65164         * lib/gl_array_oset.h: New file.
65165         * lib/gl_array_oset.c: New file.
65166         * lib/gl_avltree_oset.h: New file.
65167         * lib/gl_avltree_oset.c: New file.
65168         * lib/gl_rbtree_oset.h: New file.
65169         * lib/gl_rbtree_oset.c: New file.
65170         * lib/gl_anytree_oset.h: New file.
65171
65172 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
65173
65174         * m4/mkancesdirs.m4: New file.
65175         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
65176         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
65177         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
65178         it.
65179
65180 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
65181
65182         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
65183         * lib/mkancesdirs.h: New files.
65184         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
65185         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
65186         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
65187         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
65188         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
65189         callers changed.  Revamp internals significantly, by not
65190         attempting to create directories that are temporarily more
65191         permissive than the final results.  Do not attempt to use
65192         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
65193         This removes some race conditions, fixes some bugs, and simplifies
65194         things.  Use new dirchownmod function to do owner and mode changes.
65195         * lib/mkdir-p.h: Likewise.
65196         * lib/modechange.c (octal_to_mode): New function.
65197         (struct mode_change): New member mentioned.
65198         (make_node_op_equals): New arg mentioned.  All callers changed.
65199         (mode_compile): Keep track of which mode bits the user has explicitly
65200         mentioned.
65201         (mode_adjust): New arg DIR, so that we implement the X op correctly.
65202         New arg PMODE_BITS, to keep track of which mode bits the user
65203         mentioned; it treats S_ISUID and S_ISGID speciall.
65204         All callers changed.
65205         * lib/modechange.h: Likewise.
65206
65207 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
65208
65209         * MODULES.html.sh: Add mkancestors.
65210         * modules/mkancesdirs: New module.
65211         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
65212         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
65213         The chdir-safer and afs files are now orphans; I'll remove them
65214         unless someone speaks up.
65215         Add lib/dirchownmod.c, lib/dirchownmod.h.
65216         (Depends-on): Remove alloca, chown, save-cwd, dirname.
65217         Add lchown, mkancesdirs.
65218         (Maintainer): Add self.
65219
65220 2006-07-15  Karl Berry  <karl@gnu.org>
65221
65222         * gnulib-tool: help message wording/arrangement.
65223
65224 2006-07-14  Simon Josefsson  <jas@extundo.com>
65225
65226         * doc/gnulib.texi (Libtool and Windows): New section.
65227
65228 2006-07-12  Simon Josefsson  <jas@extundo.com>
65229
65230         * modules/gendocs (License): Fix license, approved by Karl.
65231
65232 2006-07-12  Eric Blake  <ebb9@byu.net>
65233
65234         * MODULES.html.sh: Add gendocs.
65235
65236 2006-07-11  Eric Blake  <ebb9@byu.net>
65237
65238         * modules/fdl: New module, to install doc/fdl.texi.
65239         * MODULES.html.sh: Add new section for documentation modules.
65240         * gnulib-tool: Avoid space-tab.
65241         (--doc-base): New option, to manage files from doc.
65242
65243 2006-07-11  Eric Blake  <ebb9@byu.net>
65244
65245         * m4/absolute-header.m4: Fix comments to match recent change.
65246
65247 2006-07-11  Eric Blake  <ebb9@byu.net>
65248
65249         * gnulib-tool: List --doc-base before --tests-base.
65250
65251 2006-07-11  Derek R. Price  <derek@ximbiot.com>
65252
65253         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
65254
65255 2006-07-11  Bruno Haible  <bruno@clisp.org>
65256
65257         * README: Mention where to put documentation.
65258
65259 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65260
65261         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
65262
65263 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
65264
65265         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
65266         to stdint.m4.
65267
65268 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
65269
65270         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
65271         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
65272         "no/such/file/stdint.h" when there is no such file, so that
65273         the resulting C code can be parsed by dodgy compilers.
65274         Problems reported by Bob Proulx.
65275
65276 2006-07-10  Derek R. Price  <derek@ximbiot.com>
65277
65278         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
65279         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
65280         macros into the GNU _D_EXACT_NAMLEN.
65281         * lib/savedir.c:  Likewise.
65282         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
65283
65284 2006-07-10  Derek R. Price  <derek@ximbiot.com>
65285         and Paul Eggert  <eggert@cs.ucla.edu>
65286
65287         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
65288         * m4/savedir.m4:
65289         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
65290         macros into the GNU _D_EXACT_NAMLEN.
65291
65292 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
65293
65294         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
65295         around the absolute name, to work around a problem with the HP-UX
65296         11.23 native C compiler, reported by Bob Proulx.
65297
65298 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
65299
65300         * doc/maintain.texi, make-stds.texi: Sync from
65301         <http://savannah.gnu.org/projects/gnustandards>.
65302
65303 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
65304
65305         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
65306
65307 2006-07-09  Jim Meyering  <jim@meyering.net>
65308
65309         * m4/glob.m4: Remove a doubled word in a comment.
65310
65311 2006-07-09  Jim Meyering  <jim@meyering.net>
65312
65313         * lib/argp-pv.c: Remove a doubled word in a comment.
65314         * lib/check-version.c (check_version): Likewise.
65315         * lib/javacomp.c (compile_java_class): Likewise.
65316
65317 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
65318
65319         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
65320         for the benefit of people using Autoconf 2.60.  If you want to
65321         support older Autoconf versions you can copy m4/onceonly_2_57.m4
65322         (or m4/onceonly.m4, if pre-2.57) manually.
65323
65324 2006-07-08  Jim Meyering  <jim@meyering.net>
65325
65326         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
65327         comment.
65328         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
65329         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
65330         comment.
65331
65332 2006-07-08  Jim Meyering  <jim@meyering.net>
65333
65334         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
65335
65336 2006-07-07  Simon Josefsson  <jas@extundo.com>
65337
65338         * tests/test-crc.c: Change expected crc value, the test vector
65339         were probably computed using the old broken crc.c?
65340
65341 2006-07-06  Simon Josefsson  <jas@extundo.com>
65342
65343         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
65344         now the canonical place for the M4 file).
65345
65346         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
65347         from the sys_socket dependency now.
65348
65349         * modules/inet_pton (Files): Ditto.
65350
65351         * modules/inet_ntop (Files): Ditto.
65352
65353 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
65354
65355         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
65356         not gl_PREREQ_GETUSERSHELL.
65357
65358 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65359
65360         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
65361         with only one argument, for Autoconf 2.60.
65362         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
65363         expand to nothing, so add a shell command to avoid syntax error.
65364         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
65365
65366 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65367
65368         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
65369
65370 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
65371
65372         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
65373         no longer needed.  Check for isblank decl.
65374         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
65375         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
65376         of existence.
65377
65378 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
65379
65380         * lib/getloadavg.c: Use __VMS, not VMS.
65381         * lib/getopt.c: Likewise.
65382         * lib/getpagesize.h: Likewise.
65383         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
65384         and probably does not work.
65385
65386 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
65387
65388         * lib/.cppi-disable: Add wcwidth.
65389         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
65390         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
65391         (ISGRAPH): Remove.  All uses changed to isgraph.
65392         (FOLD) [!defined _LIBC]: Remove special case.
65393         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
65394         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
65395         HAVE_ISBLANK.
65396         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
65397         case.
65398
65399 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
65400
65401         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
65402         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
65403         brackets.  Other minor changes to suppress some compiler
65404         warnings.
65405
65406 2006-07-06  Derek R. Price  <derek@ximbiot.com>
65407         and Paul Eggert  <eggert@cs.ucla.edu>
65408
65409         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
65410         of invoking obsolescent AC_HEADER_DIRENT macro.
65411         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
65412         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
65413         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
65414         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
65415         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
65416         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
65417         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
65418         * m4/readdir.m4: Remove; no longer needed.
65419
65420 2006-07-06  Derek R. Price  <derek@ximbiot.com>
65421         and Paul Eggert  <eggert@cs.ucla.edu>
65422
65423         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
65424         Don't worry about this obsolete case any more.
65425         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
65426         directories.
65427         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
65428         worry about this obsolete case any more.
65429         * lib/fts.c: Likewise.
65430         * lib/getcwd.c: Likewise.
65431         * lib/glob.h: Likewise.
65432         * lib/savedir.c: Likewise.
65433
65434 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
65435
65436         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
65437         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
65438         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
65439         needed.
65440         All uses removed.
65441         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
65442         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
65443         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
65444         needed.
65445         * m4/getdate.m4 (gl_GETDATE): Likewise.
65446         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
65447         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
65448         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
65449         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
65450         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
65451         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
65452         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
65453         needed.
65454
65455 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
65456
65457         * lib/memcasecmp.c: Include <limits.h>.
65458         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
65459         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
65460         Don't assume isdigit succeeds only on '0' through '9'.
65461
65462 2006-07-05  Eric Blake  <ebb9@byu.net>
65463
65464         * modules/getaddrinfo (Depends-on): Add snprintf.
65465
65466 2006-07-05  Eric Blake  <ebb9@byu.net>
65467
65468         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
65469         to avoid 'header present but could not be compiled' on cygwin.
65470
65471 2006-07-05  Eric Blake  <ebb9@byu.net>
65472
65473         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
65474         missing from netdb.h.
65475         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
65476
65477 2006-07-05  Derek R. Price  <derek@ximbiot.com>
65478
65479         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
65480         no longer needed.
65481         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
65482         * m4/getdate.m4 (gl_GETDATE): Likewise.
65483         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
65484         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
65485         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
65486         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
65487         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
65488
65489 2006-07-05  Derek R. Price  <derek@ximbiot.com>
65490
65491         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
65492         All uses of is_space replaced by isspace.
65493         * lib/exit.h: Don't talk about STDC_HEADERS.
65494         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
65495         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
65496         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
65497         replaced by isprint etc.
65498         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
65499         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
65500         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
65501         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
65502         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
65503         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
65504
65505 2006-07-05  Bruno Haible  <bruno@clisp.org>
65506
65507         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
65508         the function exists, before testing against AIX.
65509         Reported by Martin Lambers <marlam@marlam.de>.
65510
65511 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
65512
65513         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
65514         From Mark D. Baushke.
65515
65516 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
65517
65518         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
65519         to the absolute name, not just one, to bypass Sun C 5.8's
65520         "warning: #include of /usr/include/... may be non-portable".
65521
65522 2006-07-04  Eric Blake  <ebb9@byu.net>
65523
65524         * modules/dirname-tests: New test module.
65525         * tests/test-dirname.c: New file, replacing dirname.c
65526         TEST_DIRNAME section that was recently deleted.
65527
65528 2006-07-04  Bruno Haible  <bruno@clisp.org>
65529
65530         Assume ANSI C header files and <ctype.h> functions.
65531         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
65532         (mbsnwidth): Use isprint, iscntrl instead.
65533
65534 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65535
65536         Merge from coreutils.
65537         * MODULES.html.sh: Add xstrtold.
65538         * modules/xstrtold: New file.
65539         * modules/cycle-check (Files): Add lib/same-inode.h.
65540         * modules/dirname (Files): Add m4/double-slash-root.m4.
65541         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
65542         * modules/mkdir-p (Files): Add lib/same-inode.h.
65543         * modules/same (Files): Add lib/same-inode.h.
65544
65545 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65546
65547         * m4/absolute-header.m4: Renamed from full-header-path.m4.
65548         This is to keep the terminology clean; POSIX talks about
65549         "absolute pathnames", not "full pathnames", but the GNU
65550         Coding Standards say to use "path" for something else;
65551         so use "absolute" to keep both sides happy.
65552         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
65553         Set gl_absolute_header, not gl_full_header_path.
65554         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
65555         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
65556         All uses changed.
65557
65558         Merge from coreutils.
65559
65560         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
65561
65562         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
65563         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
65564         want to require the building of c-strtod.o.
65565         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
65566         needs -lm directly.
65567         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
65568
65569         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
65570
65571         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
65572         --as-needed option if available.  Problem reported by Albert Chin in
65573         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
65574         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
65575         cc merely issues a bunch of annoying warnings for --as-needed
65576         (this problem was reported by Bob Proulx).  Also, try linking with
65577         -lm to detect a bug in binutils 2.16 (this problem was reported
65578         by Ralf Wildenhues).
65579
65580         2006-06-18  Jim Meyering  <jim@meyering.net>
65581
65582         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
65583         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
65584         macro.
65585         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
65586         also check for glibc-2.4's abort-inducing bug.
65587
65588         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
65589         Low-probability clean-up should be to use rmdir to get rid of
65590         the just-created directory, not unlink.
65591
65592         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
65593         configure fail, and request a bug report to inform us about it.
65594         Add a comment that, barring reports to the contrary, in 2007 we'll
65595         assume ftruncate is universally available.
65596
65597         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
65598
65599         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
65600
65601         2006-03-12  Jim Meyering  <jim@meyering.net>
65602
65603         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
65604         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
65605         * m4/same.m4 (gl_SAME): Likewise.
65606         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
65607
65608         2006-03-11  Eric Blake  <ebb9@byu.net>
65609
65610         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
65611         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
65612         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
65613         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
65614
65615 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65616
65617         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
65618         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
65619         reported by Mark D. Baushke, one in
65620         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
65621
65622         Merge from coreutils.
65623
65624         * lib/.cppi-disable: Add stdint_.h.
65625         * lib/.cvsignore: Add stdint.h.
65626
65627         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
65628
65629         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
65630         both double and long double versions.
65631         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
65632         * lib/xstrtold.c: New file.
65633         * lib/xstrtod.h (xstrtold): New decl.
65634
65635         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
65636
65637         * lib/filemode.c (setst): Remove.
65638         (strmode): Rewrite to avoid setst.  This makes the code shorter,
65639         (arguably) clearer, and the generated code is a bit smaller on my
65640         Debian GNU/Linux stable x86 host.
65641
65642         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
65643
65644         * lib/filemode.c: Include "filemode.h" first, to test the interface.
65645         Assume that filemode.h includes sys/types.h and sys/stat.h.
65646         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
65647         (ftypelet): Reorder to put common cases first, for efficiency.
65648         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
65649         to do 'M'.
65650         (strmode): Renamed from mode_string, and now stores 12 bytes instead
65651         of 10, for compatibility with FreeBSD.  All callers changed.
65652         (filemodestring): Now stores 12 bytes instead of 10, and sets file
65653         types that can't be deduced solely from st_mode.  First arg is now a
65654         const pointer.
65655         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
65656         (strmode): Renamed from mode_string.
65657         (filemodestring): New decl.
65658         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
65659         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
65660         needed.
65661         (S_ISPORT, S_ISWHT): New macros, if not already defined.
65662
65663         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
65664
65665         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
65666         fsusage.h now does that.  Include fsusage.h first, to test interface.
65667         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
65668         at most one method (the old code could have generated decls that
65669         didn't conform to C89, not that this was ever exercised).
65670         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
65671
65672         2006-03-19  Jim Meyering  <jim@meyering.net>
65673
65674         Work even in a chroot where d_ino values for entries in "/"
65675         don't match the stat.st_ino values for the same names.
65676         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
65677         number, iterate through all entries again, using lstat instead.
65678         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
65679         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
65680
65681         * lib/getcwd.c (__getcwd): Clarify a comment.
65682         Use memcpy in place of a call to strcpy.
65683
65684         2006-03-12  Jim Meyering  <jim@meyering.net>
65685
65686         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
65687         matches that of the current directory (which we're about to chdir ".."
65688         out of), then save the dev-ino of the parent, instead.
65689
65690         * lib/same-inode.h (SAME_INODE): New file/macro.
65691         * lib/chdir-safer.c (SAME_INODE): Remove definition.
65692         Include "same-inode.h", instead.
65693         * lib/same.c: Likewise.
65694         * lib/cycle-check.h: Include "same-inode.h".
65695         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
65696         * lib/cycle-check.c (SAME_INODE): Remove definition.
65697         * lib/root-dev-ino.h: Include "same-inode.h".
65698
65699         2006-03-11  Eric Blake  <ebb9@byu.net>
65700
65701         * lib/same.c (same_name): s/base_name/last_component/
65702         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
65703         * lib/filenamecat.c (file_name_concat): Likewise.
65704
65705         2006-03-11  Eric Blake  <ebb9@byu.net>,
65706                     Paul Eggert  <eggert@cs.ucla.edu>
65707
65708         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
65709         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
65710         drive prefix.
65711         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
65712         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
65713         (last_component): New method.
65714         * lib/dirname.c (dir_len): Determine when drive letters need a
65715         subsequent slash.  Preserve // when it is special.
65716         (dir_name): Don't append dot when drive letter is absolute.
65717         [TEST_DIRNAME]: Move into a full-blown gnulib test.
65718         * lib/basename.c (base_name): New semantics - malloc the result.
65719         Preserve // when it is special.  Preserve relative files that look
65720         like drive letters.
65721         (base_len): Preserve // when it is special.
65722         (last_component): New method, similar to old base_name semantics.
65723         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
65724         base_name.  Strip redundant slashes from ///.
65725
65726 2006-07-03  Jim Meyering  <jim@meyering.net>
65727
65728         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
65729         macro is used before the first cycle_check call.
65730
65731 2006-07-03  Eric Blake  <ebb9@byu.net>
65732
65733         * modules/dirname (Depends-on): Add xstrndup.
65734
65735 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
65736
65737         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
65738         test cases, so that config.log is a bit easier to follow.
65739
65740 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
65741
65742         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
65743         both are 64 bits, since this seems to be the tradition, and this
65744         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
65745         we ever run into a host that prefers long long to long in this
65746         case, we'll need another configure-time test.  Problem reported by
65747         Jim Meyering.
65748
65749 2006-07-02  Eric Blake  <ebb9@byu.net>
65750
65751         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
65752
65753 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
65754
65755         * modules/inttypes (Depends-on): No longer depends on stdint.
65756         * modules/stdint (Description): Say more about assumptions.
65757         Say that the fast types might differ.  Say macros are used.
65758         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
65759         (Makefile.am): Revise list of substituted symbols to match
65760         new stdint.m4.
65761         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
65762         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
65763         * tests/test-stdint.c (verify_same_types)
65764         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
65765         the code conforms to C99/C89.
65766         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
65767         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
65768
65769 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
65770
65771         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
65772         but fix a bug, by requiring at least 64 bits.
65773         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
65774         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
65775         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
65776         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
65777
65778         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
65779         changes.  Make 2.59 a prerequisite.  Check and substitute for
65780         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
65781         inttypes.h.  Do not use special include files; just use the
65782         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
65783         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
65784         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
65785         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
65786         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
65787         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
65788         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
65789         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
65790         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
65791         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
65792         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
65793         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
65794         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
65795         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
65796         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
65797         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
65798         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
65799         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
65800         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
65801         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
65802         WINT_MAX.  Check for C99 conformance more strictly, by detecting
65803         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
65804         not check for things that C99 does not require, e.g., int8_t.  If
65805         a test isn't needed unless <stdint.h> isn't working, and is
65806         unlikely to be needed for any other reason, then don't do it
65807         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
65808         size_t, since we assume C89 freestanding at least.  Do not check
65809         for sig_atomic_t, wchar_t, or wint_t, since the code now does
65810         the right thing even if the types are not defined.  Instead use:
65811         (gl_STDINT_TYPE_PROPERTIES): New macro.
65812         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
65813         testing whether <sys/types.h> clashes, as Autoconf does this for
65814         us now.  All uses removed.
65815         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
65816         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
65817         (gl_CHECK_TYPE_SAME):
65818         Remove; no longer needed.
65819         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
65820         exists, since we'll return 0 anyway in that case.
65821         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
65822
65823 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
65824
65825         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
65826         possible collision with system files.
65827         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
65828         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
65829         WCHAR_MIN and WCHAR_MAX in this case.
65830         (<stddef.h>): Do not include; no longer needed.
65831         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
65832         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
65833         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
65834         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
65835         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
65836         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
65837         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
65838         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
65839         !defined(__c99))]: Include in this case too, since it's harmless
65840         now.
65841         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
65842         dangerous to do so.
65843         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
65844         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
65845         (_STDINT_MIN, _STDINT_MAX): New macros.
65846         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
65847         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
65848         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
65849         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
65850         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
65851         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
65852         macros, not typedefs; this simplifies things quite a bit.
65853         Use long int for all types narrower than int64_t.
65854         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
65855         Define in terms of long long int or int64_t or long int,
65856         not int64_t or int32_t.  This saves some compile-time testing.
65857         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
65858         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
65859         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
65860         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
65861         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
65862         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
65863         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
65864         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
65865         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
65866         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
65867         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
65868         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
65869         undef any previous version and define our own version, for
65870         simplicity and consistency with the new macros for types.
65871         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
65872         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
65873         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
65874         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
65875         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
65876         @WINT_T_SUFFIX@ to keep things simple here.
65877         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
65878         Simplify by assuming typical 8/16/32/64 host, since we're
65879         already doing that elsewhere anyway.
65880         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
65881         and assume long long int is 64 bits if available.  This
65882         speeds up 'configure'.
65883
65884 2006-07-01  Eric Blake  <ebb9@byu.net>
65885
65886         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
65887         Reported by Andreas Buening.
65888
65889 2006-07-01  Eric Blake  <ebb9@byu.net>
65890
65891         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
65892
65893 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
65894
65895         * lib/getaddrinfo.c: fixed typo
65896
65897 2006-06-29  Jim Meyering  <jim@meyering.net>
65898
65899         * modules/strftime (Maintainer): Add my name, since with the
65900         FPRINTFTIME changes strftime.c has forked from glibc.
65901
65902 2006-06-29  Eric Blake  <ebb9@byu.net>
65903
65904         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
65905
65906 2006-06-29  Eric Blake  <ebb9@byu.net>
65907
65908         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
65909
65910 2006-06-29  Eric Blake  <ebb9@byu.net>
65911
65912         * lib/stat_.h: New file.
65913
65914 2006-06-29  Eric Blake  <ebb9@byu.net>
65915
65916         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
65917         unused static function.
65918
65919 2006-06-29  Eric Blake  <ebb9@byu.net>
65920
65921         * doc/functions.texi (Function Portability): Document missing lstat
65922         on mingw.
65923
65924 2006-06-29  Eric Blake  <ebb9@byu.net>
65925
65926         * MODULES.html.sh: Add sys_stat.
65927         * modules/sys_stat: New module.
65928         * modules/mkstemp (Depends-on): Add sys_stat.
65929
65930 2006-06-29  Derek R. Price  <derek@ximbiot.com>
65931
65932         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
65933
65934 2006-06-29  Derek R. Price  <derek@ximbiot.com>
65935
65936         * m4/c-bs-a.m4: Removed.
65937
65938 2006-06-29  Derek R. Price  <derek@ximbiot.com>
65939
65940         * lib/strftime.c: Assume strftime() exists.
65941
65942 2006-06-29  Derek Price  <derek@ximbiot.com>
65943
65944         * modules/c-bs-a: Removed - \a is C89.
65945         * MODULES.html.sh: Remove c-bs-a.
65946
65947 2006-06-29  Bruno Haible  <bruno@clisp.org>
65948
65949         * modules/wcwidth (License): Change to LGPL.
65950
65951 2006-06-28  Simon Josefsson  <jas@extundo.com>
65952
65953         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
65954         on _WIN32.
65955
65956         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
65957         getnameinfo.
65958
65959 2006-06-28  Simon Josefsson  <jas@extundo.com>
65960
65961         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
65962
65963 2006-06-28  Simon Josefsson  <jas@extundo.com>
65964
65965         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
65966         functions there.  It will succeed on Windows XP, but on Windows
65967         2000 and (presumably) earlier, it will fail, and use the internal
65968         re-implementation.
65969         (use_win32_p): New function.
65970         (getaddrinfo): Use strtoul on servname, to support numeric ports.
65971         Support AI_NUMERICSERV to disable getservbyname.
65972         (getnameinfo): New function, only supports
65973         NI_NUMERICHOST|NI_NUMERICSERV for now.
65974
65975         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
65976         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
65977         getnameinfo.
65978
65979 2006-06-28  Eric Blake  <ebb9@byu.net>
65980
65981         * modules/wcwidth: New file.
65982         * modules/mbchar (Depends-on): Add wcwidth.
65983         * modules/mbswidth (Depends-on): Add wcwidth.
65984         * MODULES.html.sh: Add wcwidth.
65985
65986 2006-06-28  Eric Blake  <ebb9@byu.net>
65987
65988         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
65989         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
65990
65991 2006-06-28  Eric Blake  <ebb9@byu.net>
65992
65993         * lib/xvasprintf.h: Fix comments.
65994
65995 2006-06-28  Eric Blake  <ebb9@byu.net>
65996
65997         * lib/mbchar.h (wcwidth): Include wcwidth.h.
65998         * lib/mbswidth.c (wcwidth): Move from here...
65999         * lib/wcwidth.h: ...to this new file.
66000
66001 2006-06-28  Derek R. Price  <derek@ximbiot.com>
66002
66003         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
66004
66005         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
66006         it's obsolete.
66007         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
66008
66009 2006-06-28  Derek R. Price  <derek@ximbiot.com>
66010
66011         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
66012         Autoconf 2.60 says this stuff was obsolete.
66013
66014 2006-06-28  Bruno Haible  <bruno@clisp.org>
66015
66016         * modules/wcwidth (Files): Add m4/wchar_t.m4.
66017
66018 2006-06-28  Bruno Haible  <bruno@clisp.org>
66019
66020         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
66021         gt_TYPE_WCHAR_T.
66022
66023 2006-06-28  Bruno Haible  <bruno@clisp.org>
66024
66025         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
66026         declaration for wcwidth.
66027         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
66028
66029 2006-06-28  Bruno Haible  <bruno@clisp.org>
66030
66031         * lib/mkdtemp.c [MINGW]: Include <io.h>.
66032         (mkdir): Define using _mkdir.
66033
66034 2006-06-28  Bruno Haible  <bruno@clisp.org>
66035
66036         * lib/getaddrinfo.h: Fix POSIX URL.
66037         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
66038         _WIN32.
66039         (use_win32_p): Make static.
66040         (getaddrinfo): Reject service name if it is empty or does not consist
66041         solely of decimal digits, or if its value is > 65535.
66042         (getnameinfo): Remove useless casts.
66043
66044 2006-06-27  Simon Josefsson  <jas@extundo.com>
66045
66046         * modules/sys_select: New file, suggested by Bruno Haible, Paul
66047         Eggert and Martin Lambers.
66048
66049 2006-06-27  Simon Josefsson  <jas@extundo.com>
66050
66051         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
66052         Eggert and Martin Lambers.
66053
66054 2006-06-27  Bruno Haible  <bruno@clisp.org>
66055
66056         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
66057         result to 0, not to empty.
66058         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
66059
66060 2006-06-27  Bruno Haible  <bruno@clisp.org>
66061
66062         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
66063
66064 2006-06-26  Simon Josefsson  <jas@extundo.com>
66065
66066         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
66067         present.
66068
66069 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
66070
66071         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
66072         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
66073         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
66074
66075 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
66076
66077         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
66078
66079 2006-06-26  Bruno Haible  <bruno@clisp.org>
66080
66081         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
66082
66083 2006-06-26  Bruno Haible  <bruno@clisp.org>
66084
66085         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
66086
66087 2006-06-26  Bruno Haible  <bruno@clisp.org>
66088
66089         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
66090         SGI C compiler in pre-C99 mode.
66091         Suggested by Mark D. Baushke and Larry Jones.
66092
66093 2006-06-26  Bruno Haible  <bruno@clisp.org>
66094
66095         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
66096         WCHAR_MAX.
66097         Reported by Mark D. Baushke and Larry Jones.
66098
66099 2006-06-26  Bruno Haible  <bruno@clisp.org>
66100
66101         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
66102         in pre-C99 mode.
66103         Suggested by Mark D. Baushke and Larry Jones.
66104
66105 2006-06-23  Simon Josefsson  <jas@extundo.com>
66106             Bruno Haible  <bruno@clisp.org>
66107
66108         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
66109         Emit mostlyclean-local rule.
66110         (func_emit_tests_Makefile_am): Likewise.
66111         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
66112
66113 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
66114
66115         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
66116
66117 2006-06-23  Bruno Haible  <bruno@clisp.org>
66118
66119         * tests/test-stdint.c: Update to match ISO C 99 Technical
66120         Corrigendum 1.
66121
66122 2006-06-23  Bruno Haible  <bruno@clisp.org>
66123
66124         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
66125
66126 2006-06-23  Bruno Haible  <bruno@clisp.org>
66127
66128         * lib/stdint_.h: Treat IRIX like OpenBSD.
66129
66130 2006-06-23  Bruno Haible  <bruno@clisp.org>
66131
66132         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
66133         ISO C 99 Technical Corrigendum 1.
66134
66135 2006-06-22  Simon Josefsson  <jas@extundo.com>
66136
66137         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
66138         MinGW.
66139
66140 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
66141
66142         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
66143         needed.  Some compiler complained about some of them.  Problem reported
66144         by Larry Jones in
66145         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
66146
66147 2006-06-21  Simon Josefsson  <jas@extundo.com>
66148
66149         * tests/test-getaddrinfo.c: New file.
66150
66151         * modules/getaddrinfo-tests: New file.
66152
66153         * MODULES.html.sh: Add inet_pton.
66154
66155         * modules/inet_pton: New file.
66156
66157 2006-06-21  Simon Josefsson  <jas@extundo.com>
66158
66159         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
66160         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
66161         of using the (limited) gnulib implementation on Windows XP.
66162
66163         * m4/inet_pton.m4: New file.
66164
66165 2006-06-21  Simon Josefsson  <jas@extundo.com>
66166
66167         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
66168         variable.
66169
66170         * lib/socket_.h: Don't define WINVER.
66171
66172         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
66173         slightly modified to work in gnulib.
66174
66175 2006-06-21  Simon Josefsson  <jas@extundo.com>
66176
66177         * doc/gnulib.texi (Windows sockets): Add.
66178
66179 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
66180
66181         * lib/read-file.c (fread_file): Start with buffer allocation of
66182         0 bytes rather than 1 byte; this simplifies the code.
66183         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
66184         code to free buffer and save/restore errno.
66185         (internal_read_file): Remove unused local.
66186
66187 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
66188
66189         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
66190         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
66191         Problem reported by Denis Excoffier in
66192         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
66193
66194 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66195
66196         * modules/sys_socket, modules/socklen: Include sys/types since
66197         FreeBSD 4.x's sys/socket.h needs it.
66198
66199 2006-06-19  Simon Josefsson  <jas@extundo.com>
66200
66201         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
66202
66203 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
66204
66205         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
66206
66207 2006-06-19  Bruno Haible  <bruno@clisp.org>
66208
66209         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
66210         and FULL_PATH_INTTYPES_H in angle brackets.
66211         Reported by Mark D. Baushke <mdb@gnu.org>.
66212
66213 2006-06-17  Eric Blake  <ebb9@byu.net>
66214
66215         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
66216         errno.
66217
66218 2006-06-17  Bruno Haible  <bruno@clisp.org>
66219
66220         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
66221         <sys/inttypes.h>.
66222
66223 2006-06-17  Bruno Haible  <bruno@clisp.org>
66224
66225         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
66226         whether errno is declared. Assume <errno.h> declares errno.
66227
66228 2006-06-17  Bruno Haible  <bruno@clisp.org>
66229
66230         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
66231
66232 2006-06-17  Bruno Haible  <bruno@clisp.org>
66233
66234         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
66235         problem on Solaris 2.5.1.
66236
66237 2006-06-16  Eric Blake  <ebb9@byu.net>
66238
66239         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
66240         * lib/unicodeio.c [!defined errno]: Likewise.
66241         * lib/strtol.c [!defined errno]: Likewise.
66242         * lib/strtod.c [!defined errno]: Likewise.
66243
66244 2006-06-15  Eric Blake  <ebb9@byu.net>
66245
66246         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
66247
66248 2006-06-15  Eric Blake  <ebb9@byu.net>
66249
66250         * config/srclist.txt (ssize_t.m4): Lose sync.
66251
66252 2006-06-15  Bruno Haible  <bruno@clisp.org>
66253
66254         * modules/stdint (Files): Include m4/full-header-path.m4,
66255         m4/size_max.m4, m4/wchar_t.m4.
66256         (Makefile.am): Many more substitutions.
66257         * modules/stdint-tests: New file.
66258         * tests/test-stdint.c: New file.
66259
66260 2006-06-15  Bruno Haible  <bruno@clisp.org>
66261
66262         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
66263         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
66264         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
66265         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
66266         gl_CHECK_TYPE_SAME): New macros.
66267
66268 2006-06-15  Bruno Haible  <bruno@clisp.org>
66269
66270         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
66271
66272 2006-06-15  Bruno Haible  <bruno@clisp.org>
66273
66274         * lib/stdint_.h: Rewritten to be fully auto-configured.
66275         Fixes bug on HP-UX/IA64.
66276
66277 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
66278
66279         * lib/getdate.y (__attribute__): Don't define if already defined.
66280         Problem reported by Larry Jones.
66281         * lib/utimens.c (__attribute__): Likewise.
66282
66283 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
66284
66285         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
66286         reported by Andreas Schwab.
66287
66288 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66289             Bruno Haible  <bruno@clisp.org>
66290
66291         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
66292         check for the declaration of strnlen and a run test that exposes the
66293         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
66294         rpl_strndup.
66295
66296 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66297             Bruno Haible  <bruno@clisp.org>
66298
66299         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
66300
66301 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66302
66303         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
66304         compile test, for Tru64 4.0D.
66305
66306 2006-05-28  Karl Berry  <karl@gnu.org>
66307
66308         * config/srclist.txt (printf-args.c): lose sync.
66309
66310 2006-05-26  Martin Lambers  <marlam@marlam.de>
66311
66312         * lib/getpass.c: Updates the test for the native W32 API, and adds
66313         missing includes, thus fixing compilation warnings.
66314
66315 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
66316
66317         * lib/exclude.c (exclude_fnmatch): New function.
66318         (excluded_file_name): Call exclude_fnmatch.
66319         * lib/exclude.h (excluded_file_name): New prototype
66320
66321 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
66322
66323         * lib/tempname.c (small_open, large_open): New macros.
66324         (__open, __open64) [!_LIBC]: Remove.
66325         (__gen_tempname): Use small_open and large_open instead of __open
66326         and __open64.  This fixes a portability bug on HP-UX 11.11i
66327         reported by Simon Wing-Tang in
66328         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
66329
66330 2006-05-24  Bruno Haible  <bruno@clisp.org>
66331
66332         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
66333         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
66334         Reported by Thorsten Maerz <torte@netztorte.de> via
66335         Aaron Stone <aaron@serendipity.cx>.
66336
66337 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
66338
66339         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
66340         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
66341         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
66342         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
66343         not really conditional on the cache.
66344         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
66345
66346 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
66347
66348         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
66349         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
66350         (my_usleep): Don't mishandle maximum value.
66351
66352 2006-05-19  Jim Meyering  <jim@meyering.net>
66353
66354         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
66355
66356 2006-05-17  Bruno Haible  <bruno@clisp.org>
66357
66358         Cygwin portability.
66359         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
66360
66361 2006-05-17  Bruno Haible  <bruno@clisp.org>
66362
66363         * lib/stdint_.h: Fix recognition of Cygwin.
66364
66365 2006-05-15  Bruno Haible  <bruno@clisp.org>
66366
66367         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
66368         on libtool patch by Ralf Wildenhues.
66369
66370 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
66371
66372         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
66373         test for C99 conformance; (bool) 0.5 is an integer constant
66374         expression, but (bool) -0.5 is not.  Problem reported by Fedor
66375         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
66376
66377 2006-05-11  Simon Josefsson  <jas@extundo.com>
66378
66379         * m4/xvasprintf.m4: Fix obvious typo.
66380
66381 2006-05-11  Jim Meyering  <jim@meyering.net>
66382
66383         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
66384         James Lemley.
66385
66386 2006-05-10  Simon Josefsson  <jas@extundo.com>
66387
66388         * lib/md4.c: Typo fix, update copyright years.
66389         (K1, K2): Don't use L because it turn computations into 64-bit on
66390         64-bit platforms.
66391
66392 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
66393
66394         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
66395         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
66396         unwanted sign propagation, e.g., on hosts with 64-bit int.
66397         There still are some problems with reeelly weird theoretical hosts
66398         (e.g., 33-bit int) but it's not worth worrying about now.
66399         * lib/sha1.c (rol): Likewise.
66400         (K1, K2, K3, K4): Remove unnecessary L suffix.
66401
66402 2006-05-10  Bruno Haible  <bruno@clisp.org>
66403
66404         * lib/des.c: Cast to avoid warnings.
66405
66406 2006-05-09  Bruno Haible  <bruno@clisp.org>
66407
66408         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
66409         (Depends-on): Depend also on xsize, stdarg.
66410         (configure.ac): Add gl_XVASPRINTF.
66411
66412 2006-05-09  Bruno Haible  <bruno@clisp.org>
66413
66414         * m4/xvasprintf.m4: New file.
66415
66416 2006-05-09  Bruno Haible  <bruno@clisp.org>
66417
66418         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
66419         (EOVERFLOW): Define fallback value.
66420         (xstrcat): New function.
66421         (xvasprintf): Recognize the special case of a string concatenation.
66422
66423 2006-05-08  Eric Blake  <ebb9@byu.net>
66424
66425         * gnulib-tool (func_version): Base copyright year on CVS date.
66426         (func_emit_copyright_notice): New function.
66427         (func_emit_lib_Makefile_am): Use it.
66428         (func_emit_tests_Makefile_am): Likewise.
66429         (func_import): Likewise.
66430
66431 2006-05-08  Bruno Haible  <bruno@clisp.org>
66432
66433         * modules/stdarg: New file.
66434         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
66435
66436 2006-05-08  Bruno Haible  <bruno@clisp.org>
66437
66438         * m4/stdarg.m4: New file, from GNU gettext.
66439
66440 2006-05-08  Bruno Haible  <bruno@clisp.org>
66441
66442         * config/srclist.txt (build-aux/config.rpath): different from latest
66443         release.
66444
66445 2006-05-08  Bruno Haible  <bruno@clisp.org>
66446
66447         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
66448
66449 2006-05-05  Jim Meyering  <jim@meyering.net>
66450
66451         * m4/warning.m4: New file, derived from bison's file by the same name.
66452
66453 2006-05-03  Bruno Haible  <bruno@clisp.org>
66454
66455         * lib/stdint_.h: Shorter URL.
66456         * lib/inttypes.h: Likewise.
66457
66458 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
66459
66460         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
66461
66462 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
66463
66464         * lib/verify.h: Document the internals better.  Most of this change
66465         was written by Bruno Haible.
66466
66467 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
66468
66469         * doc/verify.texi: New file, partly based on a proposal by
66470         Bruno Haible.
66471
66472 2006-05-02  Bruno Haible  <bruno@clisp.org>
66473
66474         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
66475         test from here...
66476         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
66477
66478 2006-04-29  Bruno Haible  <bruno@clisp.org>
66479
66480         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
66481         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
66482
66483 2006-04-29  Bruno Haible  <bruno@clisp.org>
66484
66485         * gnulib-tool: Make --update option actually work.
66486
66487 2006-04-29  Bruno Haible  <bruno@clisp.org>
66488
66489         * doc/gcd.texi: New file.
66490         * doc/gnulib.texi: Include it.
66491
66492 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
66493
66494         * lib/getdate.y (get_date): When adding relative date, start with the
66495         initial time, not with the result of the first mktime call.
66496
66497 2006-04-25  Bruno Haible  <bruno@clisp.org>
66498
66499         * gnulib-tool (func_import): Output the include directives in three
66500         blocks, sorted separately.
66501         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66502
66503 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
66504
66505         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
66506         to define main with arguments, for C++.  Reported by Eric Blake.
66507         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
66508         Prefer 'int main ()' to 'int main (void)', for C++.
66509         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
66510         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
66511         for 'main', for C99 and C++.
66512
66513 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
66514
66515         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
66516         Don't assume that exit status -1 is valid.
66517         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
66518         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
66519         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
66520         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
66521         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
66522         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
66523         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
66524         functions can be used without declaring them, or that you can
66525         exit with status -1.
66526         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
66527
66528 2006-04-24  Karl Berry  <karl@gnu.org>
66529
66530         * config/srclist.txt (longdouble.m4): sync lost.
66531
66532 2006-04-24  Eric Blake  <ebb9@byu.net>
66533
66534         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
66535
66536 2006-04-24  Bruno Haible  <bruno@clisp.org>
66537
66538         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
66539         poll() implementation in AIX.
66540         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66541
66542 2006-04-24  Bruno Haible  <bruno@clisp.org>
66543
66544         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
66545         assigned exactly once.
66546
66547 2006-04-23  Claudio Fontana  <claudio@gnu.org>
66548             Bruno Haible  <bruno@clisp.org>
66549
66550         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
66551         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
66552         for AM_CPPFLAGS.
66553
66554 2006-04-23  Bruno Haible  <bruno@clisp.org>
66555
66556         * modules/copy-file: Depend on unistd.
66557         * modules/execute: Likewise.
66558         * modules/fatal-signal: Likewise.
66559         * modules/findprog: Likewise.
66560         * modules/mkdtemp : Likewise.
66561         * modules/pipe: Likewise.
66562         * modules/wait-process: Likewise.
66563
66564 2006-04-23  Bruno Haible  <bruno@clisp.org>
66565
66566         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
66567         condition was already detected.
66568         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66569
66570 2006-04-23  Bruno Haible  <bruno@clisp.org>
66571
66572         * lib/copy-file.c: Include <unistd.h> unconditionally.
66573         * lib/execute.c: Likewise.
66574         * lib/fatal-signal.c: Likewise.
66575         * lib/findprog.c: Likewise.
66576         * lib/mkdtemp.c: Likewise.
66577         * lib/pipe.h: Likewise.
66578         * lib/pipe.c: Likewise.
66579         * lib/wait-process.h: Likewise.
66580
66581 2006-04-23  Bruno Haible  <bruno@clisp.org>
66582
66583         * gnulib-tool (func_usage): Fix --import description. Document
66584         --update.
66585         (func_import): Create temporary file in a temporary directory, if
66586         --dry-run is specified. Silence errors from 'grep' when there are no
66587         m4 files in $m4dir.
66588         (func_create_testdir): Silence errors from 'grep' when there are no
66589         m4 files in $m4dir.
66590         Reported by Karl Berry <karl@freefriends.org>.
66591
66592 2006-04-20  Bruno Haible  <bruno@clisp.org>
66593
66594         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
66595         one argument, so that the code will be portable to Autoconf 2.60.
66596         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
66597         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
66598         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
66599
66600 2006-04-19  Derek Price  <derek@ximbiot.com>
66601             Eric Blake  <ebb9@byu.net>
66602
66603         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
66604         rather than "/full/path.h".  Update comment to match.  Shorten &
66605         generalize m4_translit call via AS_TR_CPP.
66606
66607 2006-04-19  Derek Price  <derek@ximbiot.com>
66608             Eric Blake  <ebb9@byu.net>
66609
66610         * lib/inttypes.h: Correct grammar in comment.
66611
66612 2006-04-18  Derek Price  <derek@ximbiot.com>
66613             Paul Eggert  <eggert@cs.ucla.edu>
66614
66615         * modules/inttypes: New file.
66616         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
66617
66618 2006-04-18  Derek Price  <derek@ximbiot.com>
66619             Paul Eggert  <eggert@cs.ucla.edu>
66620
66621         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
66622         New files.
66623
66624 2006-04-18  Derek Price  <derek@ximbiot.com>
66625             Paul Eggert  <eggert@cs.ucla.edu>
66626
66627         * lib/inttypes.h: New file.
66628         * lib/strtoimax.c: Assume <inttypes.h>.
66629
66630 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
66631
66632         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
66633         isn't mounted.  Problem reported by Kir Kolyshkin.
66634
66635 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
66636
66637         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
66638         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
66639         Derek R. Price.
66640         * lib/regex.h (RE_DUP_MAX): Update comment to match current
66641         implementation.
66642
66643 2006-04-12  Eric Blake  <ebb9@byu.net>
66644
66645         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
66646         is now done automatically by the corresponding Autoconf macro.
66647
66648 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
66649
66650         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
66651         time_r.h.
66652
66653 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
66654
66655         Merge regex changes from libc, removing some of our
66656         POSIX-conformance changes that were rejected and redoing them in a
66657         less-intrusive way.
66658
66659         * lib/regcomp.c (re_compile_internal, init_dfa):
66660         Length arg is now size_t, not Idx.  All uses changed.
66661         (peek_token): Forward decl now says internal_function.
66662         (__re_error_msgid, __re_error_msgid_idx):
66663         Now static rather than extern with attribute_hidden.
66664         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
66665         For some reason libc prefers K&R style defns for external functions.
66666         (regerror) [!defined _LIBC]: Likewise.
66667         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
66668         (seek_collating_symbol_entry, lookup_collation_sequence_value):
66669         (build_range_exp, build_collating_symbol):
66670         Use K&R-style defn.
66671         (re_compile_fastmap): Use '\0' to memset, not 0.
66672         (utf8_sb_map): Make the calculations more obvious.
66673         (init_dfa, parse_bracket_exp, build_charclass_op):
66674         Call calloc and cast result, as glibc does.
66675         (init_word_char, fetch_token, peek_token, peek_token_bracket):
66676         (build_range_exp, build_collating_symbol):
66677         Now internal functions.
66678
66679         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
66680
66681         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
66682         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
66683         Don't depend on VMS; depend on __VMS instead, for POSIX
66684         namespace cleanness.
66685         (regoff_t): Define to ssize_t, not long int.
66686
66687         Remove the REG_ macros named below.  Instead, make the old names
66688         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
66689         __USE_GNU_REGEX.
66690         (REG_BACKSLASH_ESCAPE_IN_LISTS):
66691         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
66692         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
66693         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
66694         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
66695         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
66696         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
66697         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
66698         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
66699         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
66700         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
66701         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
66702         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
66703         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
66704         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
66705         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
66706         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
66707         (REG_NREGS):
66708         Remove.  All uses replaced by the old RE_* names.
66709         (RE_BACKSLASH_ESCAPE_IN_LISTS):
66710         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
66711         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
66712         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
66713         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
66714         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
66715         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
66716         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
66717         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
66718         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
66719         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
66720         Don't bother having these macros be independent of each others'
66721         values, since they no longer exist in the POSIX name space.
66722
66723         Rename the following member names back to their old names,
66724         unless !__USE_GNU_REGEX.  All uses changed back.
66725         (buffer): Renamed from re_buffer.
66726         (allocated): Renamed from re_allocated.
66727         (used): Renamed from re_used.
66728         (syntax): Renamed from re_syntax.
66729         (fastmap): Renamed from re_fastmap.
66730         (translate): Renamed from re_translate.
66731         (can_be_null): Renamed from re_can_be_null.
66732         (regs_allocated): Renamed from re_regs_allocated.
66733         (fastmap_accurate): Renamed from re_fastmap_accurate.
66734         (no_sub): Renamed from re_no_sub.
66735         (not_bol): Renamed from re_not_bol.
66736         (not_eol): Renamed from re_not_eol.
66737         (newline_anchor): Renamed from re_newline_anchor.
66738         (num_regs): Renamed from rm_num_regs.
66739         (start): Renamed from rm_start.
66740         (end): Renamed from rm_end.
66741
66742         (free_state): Move up a bit.
66743
66744         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
66745         #define to be empty.
66746         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
66747         when that is what is intended.
66748         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
66749         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
66750         (MAX): New macro.
66751         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
66752         All uses changed back to re_malloc, etc.  It's now the caller's
66753         responsibility to check for overflow; all callers changed.
66754         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
66755         (re_x2nrealloc): Remove.
66756         (free_state): Remove decl.
66757
66758         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
66759         (re_set_registers, re_exec):
66760         Use K&R-style defn.
66761
66762         2006-01-31  Roland McGrath  <roland@redhat.com>
66763
66764         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
66765         Reported by Mike Frysinger <vapier@gentoo.org>.
66766
66767         2006-01-15  Andreas Jaeger  <aj@suse.de>
66768
66769         [BZ #1950]
66770         * lib/regex_internal.c (re_string_reconstruct): Adjust for
66771         build_wcs_upper_buffer change.
66772         (build_wcs_upper_buffer): Change return type.
66773
66774         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
66775
66776         * lib/regex_internal.h: Include <stdint.h> if available.
66777
66778         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
66779
66780         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
66781
66782         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
66783
66784         * lib/regcomp.c: Adjust for changed secondary hash function.
66785
66786         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
66787
66788         * lib/regex.h: Pretty printing.
66789         Clean up namespace a bit.
66790
66791         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
66792
66793         * lib/regexec.c (update_cur_sifted_state, check_arrival,
66794         check_arrival_add_next_nodes): Avoid using uninitialized variable.
66795
66796         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
66797                     Ulrich Drepper  <drepper@redhat.com>
66798
66799         [BZ #1302]
66800         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
66801         changed.
66802         (bitset_word_t): Renamed from bitset_word.  All uses changed.
66803
66804         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
66805
66806         [BZ #281]
66807         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
66808         * lib/regcomp.c: Remove unnecessary uses of
66809         unsigned RE_TRANSLATE_TYPE.
66810         * lib/regex_internal.h: Likewise.
66811         * lib/regex_internal.c: Likewise.
66812         * lib/regexec.c: Likewise.
66813         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
66814
66815         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
66816
66817         * lib/regexec.c (find_recover_state): Remove unnecessary
66818         initialization.
66819         (transit_state_bkref): Make DFA a const pointer.
66820         (get_subexp): Likewise.
66821         (check_arrival): Likewise.
66822         (update_cur_sifted_state): Likewise.
66823         (re_search_internal): Likewise.
66824         (prune_impossible_nodes): Likewise.
66825         (acquire_init_state_context): Likewise.
66826         (proceed_next_node): Likewise.
66827         (set_regs): Likewise.
66828         (free_fail_stack_return): Likewise.
66829         (check_arrival_expand_ecl): Mark DFA parameter as const.
66830         (check_arrival_expand_ecl_sub): Likewise.
66831         (check_subexp_limits): Likewise.
66832         (sub_epsilon_src_nodes):  Likewise.
66833         (add_epsilon_src_nodes):  Likewise.
66834         (merge_state_array): Likewise.
66835         (update_regs): Likewise.
66836         (build_trtable): Likewise.
66837         (sift_states_backward): Mark MCTX parameter as const.
66838         (build_sifted_states): Likewise.
66839         (update_cur_sifted_state): Likewise.
66840         (sift_states_mkref): Likewise.
66841         (check_arrival_expand_ecl): Mark eclosure as const.
66842         (check_dst_limits_calc_pos_1): Likewise.
66843         * lib/regex_internal.h (re_match_context_t): Make dfa a const
66844         pointer.
66845
66846         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
66847
66848         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
66849         (transit_state_sb): Likewise.
66850         (transit_state_mb): Likewise.
66851         (sift_states_iter_mb): Likewise.
66852         (check_arrival_add_next_nodes): Likewise.
66853         (check_node_accept_bytes): Change first parameter to pointer-to-const.
66854         [_LIBC] (re_search_2_stub): Use mempcpy.
66855
66856         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
66857         mbrtowc for very simple UTF-8 case.
66858
66859         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
66860         a pointer-to-const.
66861         (re_acquire_state_context): Likewise.
66862         * lib/regex_internal.h: Adjust prototypes.
66863
66864         * lib/regex.c: Prevent using C++ compilers.
66865
66866         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
66867         (re_acquire_state_context): Likewise.
66868
66869 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
66870
66871         * modules/regex (Depends-on): Add ssize_t.
66872
66873 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
66874
66875         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
66876         translation table.
66877
66878 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
66879
66880         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
66881
66882 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
66883             Bruno Haible  <bruno@clisp.org>
66884
66885         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
66886         <sys/types.h> and <inttypes.h>.
66887
66888 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66889
66890         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
66891         `__error_t_defined', so argp.h will not typedef the former.
66892
66893 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
66894
66895         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
66896         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
66897         glibc names.  Even if glibc is changed to conform to POSIX, the
66898         traditional names will be available anyway, since regex depends on
66899         the extensions module.  Also, fix a longstanding typo in the
66900         implementation of Spencer ERE test #75 from grep 2.3.  Problems
66901         reported by Emanuele Giaquinta.  Also, change sense of cached
66902         variable, so that the message makes sense.
66903
66904 2006-03-24  Simon Josefsson  <jas@extundo.com>
66905
66906         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
66907         including some doc fixes.
66908         (base64_encode_alloc): Fix +1 bug on allocation failures.
66909
66910 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66911
66912         * lib/base64.c (base64_encode): Do not read past end of array with
66913         unsanitized input on systems with CHAR_BIT > 8.
66914
66915 2006-03-24  Eric Blake  <ebb9@byu.net>
66916
66917         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
66918
66919 2006-03-22  Karl Berry  <karl@gnu.org>
66920
66921         * config/srclist.txt (*setenv.[ch]): get from coreutils.
66922         * config/srclistvars.sh (COREUTILS): new var.
66923
66924 2006-03-17  Jim Meyering  <jim@meyering.net>
66925
66926         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
66927         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
66928
66929 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
66930
66931         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
66932         no longer needs it.  Instead, check that regoff_t is as least
66933         as wide as ptrdiff_t.
66934
66935         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
66936         so that our regex.h stays compatible with the installed regex.
66937         This is helpful for installers who configure --without-included-regex.
66938         Problem reported by Emanuele Giaquinta.
66939
66940 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
66941
66942         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
66943         Typedef to long int, not to off_, as POSIX will likely change
66944         in that direction.
66945
66946 2006-03-15  Eric Blake  <ebb9@byu.net>
66947
66948         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
66949
66950 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
66951
66952         * lib/argp-help.c (validate_uparams): Fix typo
66953         * lib/argp-parse.c (argp_default_options): Consistently begin help
66954         messages with a lowercase letter.
66955
66956 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
66957
66958         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
66959         overrun buffers and shouldn't be used (much as gets shouldn't be
66960         used).
66961         * lib/time_r.c (asctime_r, ctime_r): Likewise.
66962
66963 2006-03-08  Simon Josefsson  <jas@extundo.com>
66964
66965         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
66966         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66967
66968 2006-03-08  Simon Josefsson  <jas@extundo.com>
66969
66970         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
66971         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66972
66973 2006-03-08  Simon Josefsson  <jas@extundo.com>
66974
66975         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
66976         signal that configure disabled the device.
66977
66978 2006-03-08  Simon Josefsson  <jas@extundo.com>
66979
66980         * build-aux/maint.mk: Fix refresh-po, to handle no translated
66981         languages.
66982
66983 2006-03-07  Simon Josefsson  <jas@extundo.com>
66984
66985         * modules/getopt (Depends-on): Add unistd.
66986
66987         * modules/unistd: New file.
66988
66989 2006-03-07  Simon Josefsson  <jas@extundo.com>
66990
66991         * modules/gc-random: New file.
66992
66993 2006-03-07  Simon Josefsson  <jas@extundo.com>
66994
66995         * m4/unistd_h.m4: New file.
66996
66997 2006-03-07  Simon Josefsson  <jas@extundo.com>
66998
66999         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
67000         test to be side-effect free by storing the result in the cache
67001         variable gl_cv_lib_readline, and moving the assignment of
67002         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
67003         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67004
67005 2006-03-07  Simon Josefsson  <jas@extundo.com>
67006
67007         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
67008         error on missing devices (the functions will return an error).
67009
67010         * m4/gc.m4: Move random stuff to gc-random.m4
67011
67012 2006-03-07  Simon Josefsson  <jas@extundo.com>
67013
67014         * lib/unistd_.h: New file.
67015
67016 2006-03-07  Simon Josefsson  <jas@extundo.com>
67017
67018         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
67019
67020 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
67021
67022         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
67023         Problem reported by Juan Manuel Guerrero.
67024
67025 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
67026
67027         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
67028         the unistd module.
67029         * lib/getlogin_r.c: Likewise.
67030         * lib/getlogin_r.h: Likewise.
67031         * lib/glob.c: Likewise.
67032         * lib/pagealign_alloc.c: Likewise.
67033         * lib/unistd_.h: Remove; no longer needed.
67034
67035 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
67036
67037         * MODULES.html.sh (Support for systems lacking POSIX:2001):
67038         Add unistd.
67039         * modules/c-stack (Depends-on): Add unistd.
67040         * modules/getlogin_r: Likewise.
67041         * modules/glob: Likewise.
67042         * modules/pagealign_alloc: Likewise.
67043         * modules/unistd (Files): Remove lib/unistd_.h.
67044         (EXTRA_DIST): Remove.
67045         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
67046         need unistd_.h.
67047         (MOSTLYCLEANFILES): Remove unistd.h-t.
67048
67049 2006-03-03  Simon Josefsson  <jas@extundo.com>
67050
67051         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
67052
67053 2006-03-03  Simon Josefsson  <jas@extundo.com>
67054
67055         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
67056         libidn and bison.
67057
67058 2006-03-03  Simon Josefsson  <jas@extundo.com>
67059
67060         * build-aux/maint.mk: Add indent target.
67061
67062 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
67063
67064         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
67065         our replacement poll.h in any case, to avoid a differing
67066         declaration from a system header.  Seen on AIX.
67067
67068 2006-03-01  Simon Josefsson  <jas@extundo.com>
67069
67070         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
67071         <kasal@ucw.cz>.
67072
67073 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67074
67075         * modules/gettime (Depends-on): Add extensions module.
67076         * modules/nanosleep (Depends-on): Likewise.
67077         * modules/settime (Depends-on): Likewise.
67078
67079 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67080
67081         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
67082         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
67083         pedantically.
67084         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
67085         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
67086
67087         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
67088         not "==".  Reported by Ralf Wildenhues.
67089
67090 2006-03-01  Karl Berry  <karl@gnu.org>
67091
67092         * doc/Copyright/request-*: new files, synced from gnuorg.
67093
67094 2006-03-01  Karl Berry  <karl@gnu.org>
67095
67096         * config/srclist.txt (Copyright/*): new entries.
67097
67098 2006-02-28  Simon Josefsson  <jas@extundo.com>
67099
67100         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
67101
67102 2006-02-27  Simon Josefsson  <jas@extundo.com>
67103
67104         * lib/base64.h: Indent #define's.  From Jim Meyering
67105         <jim@meyering.net>.
67106
67107 2006-02-27  Jim Meyering  <jim@meyering.net>
67108
67109         Revert the change of 2006-02-24, so these files can continue
67110         to be sync'd from gettext.
67111         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
67112         of `config.h'.
67113
67114 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
67115
67116         * modules/intprops: New file.
67117         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
67118         Add intprops.
67119         * modules/getloadavg (Files): Remove lib/intprops.h.
67120         (Depends-on): Add intprops.
67121         * modules/human: Likewise.
67122         * modules/inttostr: Likewise.
67123         * modules/openat: Likewise.
67124         * modules/sig2str: Likewise.
67125         * modules/userspec: Likewise.
67126         * modules/utimecmp: Likewise.
67127         * modules/xnanosleep: Likewise.
67128         * modules/xstrtol: Likewise.
67129
67130 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
67131
67132         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
67133         * modules/lock-tests (TESTS): Use $(EXEEXT).
67134         * modules/tls-tests: Likewise.
67135         * modules/argp-tests: Likewise.
67136         (check_PROGRAMS): New var, replacing...
67137         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
67138
67139 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67140
67141         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
67142         `config.h'.
67143
67144 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
67145
67146         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
67147
67148 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67149
67150         Sync from coreutils.
67151         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
67152         gl_CHDIR_SAFER.
67153
67154 2006-02-22  Jim Meyering  <jim@meyering.net>
67155
67156         Sync from coreutils.
67157         * m4/chdir-safer.m4: New file.
67158
67159 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
67160
67161         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
67162         AT_FDCWD exceeds INT_MAX.
67163         * lib/openat.h (AT_FDCWD): Likewise.
67164
67165 2006-02-17  Eric Blake  <address@hidden>
67166
67167         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
67168
67169 2006-02-16  Simon Josefsson  <jas@extundo.com>
67170
67171         * modules/getaddrinfo (Depends-on): Add sys_socket.
67172
67173 2006-02-15  Simon Josefsson  <jas@extundo.com>
67174
67175         * build-aux/maint.mk: Add dsyntax-check rule.
67176
67177 2006-02-15  Eric Blake  <ebb9@byu.net>
67178
67179         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
67180         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
67181         'present but cannot compile' warnings on cygwin.
67182         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
67183         use ws2tcpip.h if sys/socket.h works.
67184         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
67185         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
67186
67187 2006-02-14  Simon Josefsson  <jas@extundo.com>
67188
67189         * modules/maintainer-makefile (Files): Rename.
67190
67191         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
67192         and (the local) Makefile.cfg to maint-cfg.mk.
67193
67194         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
67195         to the latter.
67196
67197         * modules/maintainer-makefile: New module.
67198
67199         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
67200         severaly stripped to make it possible to build it up from scratch
67201         with reliable tests.
67202
67203         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
67204         fixes to permit overriding the default actions when configure and
67205         makefile are not available.
67206
67207 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
67208
67209         Sync from coreutils.
67210         * modules/lstat (Depends-on): Don't depend on xalloc.
67211         (License): Change from GPL to LGPL, since this is now simply a
67212         replacement for a libc function.
67213
67214 2006-02-14  Jim Meyering  <jim@meyering.net>
67215
67216         Sync from coreutils.
67217
67218         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
67219         failure on deficient systems, and simplify gnulib lgpl dependencies.
67220         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
67221         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
67222
67223         * lib/xalloc-die.c: Remove unused definition of N_.
67224
67225 2006-02-14  Jim Meyering  <jim@meyering.net>
67226
67227         Sync from coreutils.
67228         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
67229         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
67230         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
67231         double-quote uses of that variable, to accommodate the rare case in
67232         which getmntent is available in none of the libraries checked.  This
67233         happens at least on FreeBSD 5.0.
67234
67235 2006-02-13  Simon Josefsson  <jas@extundo.com>
67236
67237         * gnulib-tool (Usage): Fix --import, from
67238         karl@freefriends.org (Karl Berry).
67239
67240 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
67241
67242         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
67243
67244 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
67245
67246         * lib/argp-namefrob.h: Restore changes accidentally lost during the
67247         "autoupdate" on 2005-12-12.
67248
67249 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
67250
67251         * modules/closeout (Depends-on): Remove atexit.
67252
67253 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
67254
67255         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
67256         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
67257
67258 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
67259
67260         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
67261         __EXTENSIONS__ if this causes compilation to fail.  Problem
67262         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
67263         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
67264
67265 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
67266
67267         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
67268         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
67269         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
67270         All uses changed.
67271
67272 2006-01-26  Simon Josefsson  <jas@extundo.com>
67273
67274         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
67275         prototype is visible on mingw32.
67276
67277         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
67278         for mingw32.
67279
67280         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
67281         mingw32).
67282
67283 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
67284
67285         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
67286         attempt to open for write; this always fails, at least on POSIX
67287         hosts.  This reinstates the 2006-01-09 change, which was
67288         inadvertently removed.
67289
67290 2006-01-26  Bruno Haible  <bruno@clisp.org>
67291
67292         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
67293         Reported by Paul Eggert.
67294
67295 2006-01-26  Bruno Haible  <bruno@clisp.org>
67296             Paul Eggert  <eggert@cs.ucla.edu>
67297
67298         * lib/stdbool_.h (_Bool)
67299         [(! (defined __cplusplus || defined __BEOS__)
67300           && !defined __GNUC__
67301           && !(defined __HP_cc || defined __xlc__
67302                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
67303                || defined __sgi))]:
67304         #define to signed char in these cases too; this simplifies
67305         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
67306         etc., separately) and makes it more conservative.
67307
67308 2006-01-25  Simon Josefsson  <jas@extundo.com>
67309
67310         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
67311         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
67312         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
67313
67314 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
67315
67316         * lib/argp-namefrob.h: Bugfix. Remove stray #
67317
67318 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
67319
67320         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
67321         so that we test the test.
67322         Check for yet another HP-UX cc bug involving *bool |= bool.
67323
67324 2006-01-25  Karl Berry  <karl@gnu.org>
67325
67326         * config/srclist.txt (vasnprintf.c): sync lost.
67327
67328 2006-01-25  Jim Meyering  <jim@meyering.net>
67329
67330         Sync from the stable (b5) branch of coreutils:
67331
67332         * lib/fts.c (fts_children): Don't let close() clobber errno from
67333         failed fchdir().
67334
67335         * lib/fts.c (fts_stat): When following a symlink-to-directory,
67336         don't necessarily interpret stat-fails+lstat-succeeds as indicating
67337         a dangling symlink.  That can also happen at least for ELOOP.
67338         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
67339         FYI, this bug predates the inclusion of fts.c in coreutils.
67340
67341         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
67342         in their own block, so pre-c99 compilers don't object.
67343
67344         Avoid the double-free (first in fts_read, second in fts_close) that
67345         would occur when an `active' directory is made inaccessible (e.g.,
67346         via chmod a-x) during a traversal.
67347         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
67348         before returning.  Reproduce this failure by
67349         mkdir -p a/b; cd a; chmod a-x . b
67350         Reported by Stavros Passas.
67351
67352 2006-01-25  Jim Meyering  <jim@meyering.net>
67353
67354         * lib/fileblocks.c: Remove more useless parentheses.
67355         * lib/readutmp.h: Likewise.
67356
67357 2006-01-25  Bruno Haible  <bruno@clisp.org>
67358
67359         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
67360         warnings.
67361         Reported by Paul Eggert.
67362
67363 2006-01-25  Bruno Haible  <bruno@clisp.org>
67364
67365         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
67366         rid of a trap command. For Solaris sh.
67367         Reported by Mark D. Baushke <mdb@gnu.org>.
67368
67369 2006-01-24  Simon Josefsson  <jas@extundo.com>
67370
67371         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
67372         Bruno.
67373
67374 2006-01-24  Karl Berry  <karl@gnu.org>
67375
67376         * config/srclist.txt (argp-namefrob.h): sync lost.
67377
67378 2006-01-24  Jim Meyering  <jim@meyering.net>
67379
67380         * modules/openat (Files): Add lib/intprops.h.
67381         From Mark D. Baushke.
67382
67383 2006-01-24  Jim Meyering  <jim@meyering.net>
67384
67385         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
67386         Reported by Mark D. Baushke.
67387
67388 2006-01-24  Jim Meyering  <jim@meyering.net>
67389
67390         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
67391
67392 2006-01-24  Bruno Haible  <bruno@clisp.org>
67393
67394         * modules/strnlen (Maintainer): Change from glibc to all.
67395
67396 2006-01-24  Bruno Haible  <bruno@clisp.org>
67397
67398         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
67399         Patch by Paul Eggert.
67400
67401 2006-01-24  Bruno Haible  <bruno@clisp.org>
67402
67403         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
67404         already has it.
67405         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
67406         2005-11-26.
67407
67408         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
67409         'signed char' to avoid problems with the built-in _Bool type.
67410         Reported by Paul Eggert on 2005-11-26.
67411
67412 2006-01-24  Bruno Haible  <bruno@clisp.org>
67413
67414         * gnulib-tool (func_import): Avoid constructing complicated sed
67415         expressions inside backquote.
67416         Report and solution by Mark D. Baushke <mdb@gnu.org>.
67417
67418 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
67419
67420         These changes imported from libc.
67421         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
67422         test and two separate function calls.
67423         * lib/strndup.c (__strndup): Add libc_hidden_def.
67424
67425 2006-01-23  Simon Josefsson  <jas@extundo.com>
67426
67427         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
67428         Remove the test_*_SOURCES variable: automake infers it by default.
67429         * modules/tls-tests: Likewise.
67430
67431 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67432
67433         Work around porting bugs reported by Dieter in
67434         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
67435         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
67436         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
67437         Include "getopt.h" first, to check interface.
67438         (getenv): Declare only if defined HAVE_DECL_GETENV &&
67439         !HAVE_DECL_GETENV.
67440         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
67441         (__strndup): Revert to K&R-style function dfns, the glibc style.
67442         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
67443         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
67444         Include strnlen.h first, to get prototype properly.
67445         (strnlen): Renamed from __strnlen.
67446         Remove weak alias.
67447
67448 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67449
67450         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
67451
67452 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67453
67454         * config/srclist.txt: Adjust to reflect glibc reorganization.
67455         This affects only comments.
67456
67457 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
67458
67459          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
67460          Reported by Bruce Korb <bkorb@gnu.org>.
67461
67462 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
67463
67464         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
67465         to pacify gcc -Wswitch-default.
67466
67467 2006-01-22  Bruno Haible  <bruno@clisp.org>
67468
67469         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
67470         temporary buffer for sprintf, take into account the precision also
67471         for 'd', 'i', 'u', 'o', 'x', 'X'.
67472
67473 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
67474
67475         * modules/argp-tests: New module
67476         * tests/test-argp.c: New file
67477         * tests/test-argp-2.sh: New file
67478
67479 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
67480
67481         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
67482         (__argp_base_name): Removed
67483         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
67484         typo.
67485         (__argp_base_name): Provide macro definition or extern declaration
67486         depending on the configuration
67487
67488 2006-01-20  Simon Josefsson  <jas@extundo.com>
67489
67490         * modules/inet_ntop (Depends-on): Depend on sys_socket.
67491
67492 2006-01-20  Simon Josefsson  <jas@extundo.com>
67493
67494         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
67495
67496 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
67497
67498         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
67499         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
67500         Suggested by Bruno Haible.
67501
67502 2006-01-20  Karl Berry  <karl@gnu.org>
67503
67504         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
67505         until changes propagate, I guess.
67506
67507 2006-01-19  Simon Josefsson  <jas@extundo.com>
67508
67509         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
67510
67511 2006-01-19  Simon Josefsson  <jas@extundo.com>
67512
67513         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
67514
67515 2006-01-19  Simon Josefsson  <jas@extundo.com>
67516
67517         * gnulib-tool: Set check_PROGRAMS.
67518
67519         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
67520         modules/des-tests, modules/gc-arcfour-tests,
67521         modules/gc-arctwo-tests, modules/gc-des-tests,
67522         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
67523         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
67524         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
67525         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
67526         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
67527         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
67528         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
67529         test_*_SOURCES.
67530
67531 2006-01-18  Simon Josefsson  <jas@extundo.com>
67532
67533         * modules/socklen (Depends-on): Depend on sys_socket.
67534
67535 2006-01-18  Simon Josefsson  <jas@extundo.com>
67536
67537         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
67538         modules/des-tests, modules/gc-arcfour-tests,
67539         modules/gc-arctwo-tests, modules/gc-des-tests,
67540         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
67541         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
67542         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
67543         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
67544         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
67545         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
67546         $(EXEEXT) to automake TESTS variable, for mingw32.
67547
67548 2006-01-17  Simon Josefsson  <jas@extundo.com>
67549
67550         * modules/socklen (Include): Need sys/socket.h.
67551
67552 2006-01-17  Bruno Haible  <bruno@clisp.org>
67553
67554         * modules/ssize_t (Include): Add <sys/types.h>.
67555
67556 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
67557
67558         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
67559         it's not portable and it doesn't work with cross-compiles.
67560         Problem reported by Bruno Haible.  Fix missing-$ typo in
67561         'test "gl_cv_ignore_unused_libraries" ...' that prevented
67562         -zignore from being used with Sun's C compiler.
67563
67564 2006-01-12  Simon Josefsson  <jas@extundo.com>
67565
67566         * lib/base64.c: Fix warning, reported by Bruno Haible
67567         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
67568
67569 2006-01-12  Bruno Haible  <bruno@clisp.org>
67570
67571         * modules/ldd: New file.
67572         * build-aux/ldd.sh.in: New file.
67573         * MODULES.html.sh (Support for building libraries and executables): Add
67574         ldd.
67575
67576 2006-01-12  Bruno Haible  <bruno@clisp.org>
67577
67578         * m4/ldd.m4: New file.
67579
67580 2006-01-12  Bruno Haible  <bruno@clisp.org>
67581
67582         * gnulib-tool (func_import, func_create_testdir): Don't go into an
67583         endless loop while replacing $auxdir with build-aux.
67584
67585 2006-01-11  Simon Josefsson  <jas@extundo.com>
67586
67587         * lib/stdint_.h (SIZE_MAX): Add missing (.
67588
67589 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
67590
67591         Sync from coreutils.
67592         * lib/md5.c: Fix commentary typos.
67593         (alignof, UNALIGNED_P): No need for a GCC-specific version.
67594         * lib/md5.h (__attribute__): Remove; unused.
67595         * lib/sha1.c: Fix commentary to match md5 better.
67596         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
67597         so that we don't need to worry about alignment.  All uses changed.
67598         This merges the 2005-10-28 md5 change into sha1.
67599
67600 2006-01-11  Jim Meyering  <jim@meyering.net>
67601
67602         Sync from coreutils.
67603         * lib/md5.c (OP): Fix spacing.
67604
67605 2006-01-11  Bruno Haible  <bruno@clisp.org>
67606
67607         Ensure automatic ordering between gl_LOCK and gl_ARGP.
67608         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
67609         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
67610
67611 2006-01-11  Bruno Haible  <bruno@clisp.org>
67612
67613         Ensure automatic ordering between gl_LOCK and gl_ARGP.
67614         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
67615         the "early" section as well.
67616
67617 2006-01-11  Bruno Haible  <bruno@clisp.org>
67618
67619         Avoid "ar: no archive members specified" error on MacOS X.
67620         * gnulib-tool (func_modules_add_dummy): New function.
67621         (func_import, func_create_testdir): Invoke it.
67622
67623 2006-01-11  Bruno Haible  <bruno@clisp.org>
67624
67625         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
67626         with $auxdir in AC_CONFIG_FILES statements.
67627
67628 2006-01-11  Bruno Haible  <bruno@clisp.org>
67629
67630         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67631         Initialize also noinst_HEADERS to empty.
67632
67633 2006-01-11  Bruno Haible  <bruno@clisp.org>
67634
67635         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
67636         variables.
67637         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
67638         autoreconf.
67639
67640 2006-01-11  Bruno Haible  <bruno@clisp.org>
67641
67642         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
67643         overridable by the user.
67644         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67645
67646 2006-01-10  Simon Josefsson  <jas@extundo.com>
67647
67648         * modules/sys_socket: New file.
67649
67650 2006-01-10  Simon Josefsson  <jas@extundo.com>
67651
67652         * m4/sys_socket_h.m4: New file.
67653
67654 2006-01-10  Simon Josefsson  <jas@extundo.com>
67655
67656         * lib/socket_.h: New file.
67657
67658 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
67659
67660         * modules/readutmp (Maintainer): Add myself.
67661
67662 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
67663
67664         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
67665         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
67666         People who are still concerned with buggy memcmp implementations
67667         can invoke gl_FUNC_MEMCMP themselves.
67668
67669 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
67670
67671         * lib/regex_internal.h (BITSET_WORD_BITS):
67672         Work around a bug in 64-bit PGC (before version 6.1-2), where the
67673         preprocessor mishandles large unsigned values as if they were signed.
67674         Problem reported by Claudio Fontana in
67675         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
67676
67677 2006-01-10  Jim Meyering  <jim@meyering.net>
67678
67679         Avoid the double-free (first in fts_read, second in fts_close) that
67680         would occur when an `active' directory is made inaccessible (e.g.,
67681         via chmod a-x) during a traversal.
67682         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
67683         before returning.  Reproduce this failure by
67684         mkdir -p a/b; cd a; chmod a-x . b
67685         Reported by Stavros Passas.
67686
67687         Sync from coreutils.
67688         * lib/sha1.c: Tweak grammar in a comment.
67689
67690 2006-01-10  Jim Meyering  <jim@meyering.net>
67691
67692         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
67693         Patch by Joerg Sonnenberger.
67694
67695 2006-01-10  Bruno Haible  <bruno@clisp.org>
67696
67697         * modules/readutmp: Depend on module free.
67698         * modules/strtok_r: Depend on module restrict.
67699
67700 2006-01-10  Bruno Haible  <bruno@clisp.org>
67701
67702         * modules/gettext (configure.ac): Add an invocation of
67703         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
67704
67705 2006-01-10  Bruno Haible  <bruno@clisp.org>
67706
67707         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
67708         Reported by Werner Lemberg <wl@gnu.org>.
67709
67710 2006-01-10  Bruno Haible  <bruno@clisp.org>
67711
67712         * lib/localcharset.c: Update from GNU gettext.
67713
67714 2006-01-10  Bruno Haible  <bruno@clisp.org>
67715
67716         * lib/argp.h (__const): Remove macro. Use const instead.
67717         * lib/argp-fmtstream.h (__const): Likewise.
67718         * lib/glob_.h (__const): Remove macro.
67719         * lib/glob-libc.h: Use const instead of __const.
67720
67721 2006-01-10  Bruno Haible  <bruno@clisp.org>
67722
67723         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
67724         variable.
67725         Needed to avoid an automake error regarding the 'gettext' module.
67726
67727 2006-01-09  Simon Josefsson  <jas@extundo.com>
67728
67729         * modules/inet_ntop (Depends-on): Add restrict.
67730
67731 2006-01-09  Simon Josefsson  <jas@extundo.com>
67732
67733         * modules/gc-rijndael-tests (License): Put under LGPL.
67734
67735         * modules/gc-des-tests (License): Likewise.
67736
67737         * modules/gc-arcfour-tests (License): Likewise.
67738
67739         * modules/gc-arctwo-tests (License): Likewise.
67740
67741         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
67742
67743         * modules/gc-hmac-sha1-tests (Files): Likewise.
67744
67745         * modules/gc-hmac-md5-tests (License): Likewise.
67746
67747         * modules/gc-sha1-tests (License): Likewise.
67748
67749         * modules/gc-md5-tests (License): Likewise.
67750
67751         * modules/gc-md4-tests (License): Likewise.
67752
67753         * modules/gc-md2-tests (License): Likewise.
67754
67755         * modules/gc-tests (License): Likewise.
67756
67757         * modules/des-tests (License): Likewise.
67758
67759         * modules/md4-tests (License): Likewise.
67760
67761         * modules/md2-tests (License): Likewise.
67762
67763 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
67764
67765         Sync from coreutils:
67766
67767         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
67768         * modules/lib-ignore: New file.
67769         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
67770         chdir-safer.m4, lchmod.m4.
67771         * modules/openat: Add mkdirat.c, openat-priv.h.
67772
67773 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
67774
67775         Sync from coreutils.
67776         * m4/lib-ignore.m4: New file.
67777         * m4/lchmod.m4: New file.
67778
67779 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
67780
67781         Sync from coreutils.
67782         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
67783         for write access: POSIX says that must fail.
67784         * lib/fts.c (diropen): Likewise.
67785         * lib/save-cwd.c (save_cwd): Likewise.
67786         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
67787         well, for minor improvements on hosts that lack O_DIRECTORY.
67788         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
67789         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
67790         Fall back on chown if open failed with EACCES.
67791
67792         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
67793         Report an error at compile-time if only a 1-second nominal clock
67794         resolution is found.
67795
67796         * lib/lchmod.h: New file.
67797         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
67798         (make_dir_parents): Use lchown rather than chown, and
67799         lchmod rather than chmod.
67800
67801         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
67802         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
67803         "proc" reported by n0dalus.
67804
67805         * lib/mountlist.c: Include <limits.h>.
67806         (dev_from_mount_options)
67807         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
67808         New function.  It no longer assumes "dev=" has the System V meaning
67809         on Linux (since it doesn't).  It also parses "dev=" more carefully.
67810         (read_file_system_list)
67811         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
67812         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
67813         dev= in that case.
67814
67815         * lib/posixtm.h (PDS_PRE_2000): New macro.
67816         * lib/posixtm.c (year): Arg is now syntax_bits rather than
67817         allow_century.  All usages changed.  Reject dates outside the range
67818         1969-1999 if PDS_PRE_2000 is used.
67819
67820 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
67821
67822         Sync from coreutils.
67823         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
67824         (Time of day items): Mention the possibility of leap seconds.
67825         Problem reported by Dr. David Alan Gilbert.
67826
67827 2006-01-09  Jim Meyering  <jim@meyering.net>
67828
67829         Sync from coreutils.
67830
67831         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
67832
67833         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
67834
67835         * lib/modechange.c (mode_compile): Reject an invalid mode string
67836         that starts with an octal digit.  From Andreas Gruenbacher.
67837
67838         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
67839         and dup to open_safer and dup_safer, respectively.
67840         (openat_permissive): Fix typo in comment.
67841
67842         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
67843         "gettext.h"; either no longer needed or are guaranteed by openat.h.
67844         (_): Remove; no longer needed.
67845         (openat): Renamed from rpl_openat; no need for rpl_openat
67846         since openat.h renames openat for us.
67847         Replace most of the body with a call to openat_permissive,
67848         to avoid duplicate code.
67849         Port to (probably hypothetical) environments were mode_t is
67850         wider than int.
67851         (openat_permissive): Require mode arg, so that we can check
67852         types better.  Put it just after flags.  Change cwd failure
67853         indicator from pointer-to-bool to pointer-to-errno-value.
67854         All callers changed.
67855         Invoke openat_save_fail and/or openat_restore_fail if
67856         cwd_errno is null, so that openat can call us.
67857         (openat_permissive, fdopendir, fstatat, unlinkat):
67858         Simplify errno handling to avoid some duplicate code,
67859         as it's OK to set errno on success.
67860         * lib/openat.h: Revamp code so that function macros depend on
67861         __OPENAT_PREFIX only, not also on AT_FDCWD.
67862         (openat_ro): Remove.  Caller changed to use openat_permissive.
67863         (openat_permissive): Now a macro, if not a function.
67864         (openat_restore_fail, openat_save_fail): Now always functions,
67865         since mkdirat needs them even if __OPENAT_PREFIX is defined.
67866
67867         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
67868         and openat.c.
67869         * lib/mkdirat.c: Include openat-priv.h.
67870         Remove definitions of macros defined therein.
67871         * lib/openat.c: Likewise.
67872
67873         * lib/mkdirat.c (mkdirat): New file and function.
67874         * lib/openat.h (mkdirat): Declare.
67875
67876         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
67877
67878         * lib/openat.h (openat_permissive): Declare.
67879         (openat_ro): Define.
67880
67881         * lib/openat.c (EXPECTED_ERRNO): New macro.
67882         (openat_permissive): New function -- used in remove.c rewrite.
67883         (all functions): Set errno just before returning, only if there
67884         was an actual failure.
67885         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
67886
67887         Emulate openat-family functions using Linux's procfs, if possible.
67888         Idea and some code based on Ulrich Drepper's glibc changes.
67889
67890         * lib/openat.c: (BUILD_PROC_NAME): New macro.
67891         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
67892         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
67893         before falling back on save_cwd and restore_cwd.
67894         (fdopendir, fstatat, unlinkat): Likewise.
67895
67896         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
67897         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
67898
67899         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
67900         as second argument to va_arg.  Otherwise, some versions of gcc
67901         warn that `if this code is reached, the program will abort'.
67902
67903 2006-01-09  Jim Meyering  <jim@meyering.net>
67904
67905         Sync from coreutils.
67906         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
67907         Require openat-priv.h.
67908
67909 2006-01-09  Bruno Haible  <bruno@clisp.org>
67910
67911         * modules/strnlen (Include): Use strnlen.h.
67912
67913 2006-01-09  Bruno Haible  <bruno@clisp.org>
67914
67915         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
67916
67917 2006-01-09  Bruno Haible  <bruno@clisp.org>
67918
67919         * lib/sysexit_.h (EX_OK): New macro.
67920         Suggested by Martin Lambers <marlam@marlam.de>.
67921
67922 2006-01-09  Bruno Haible  <bruno@clisp.org>
67923
67924         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
67925         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
67926
67927 2006-01-09  Bruno Haible  <bruno@clisp.org>
67928
67929         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
67930         numbers.
67931
67932 2006-01-09  Bruno Haible  <bruno@clisp.org>
67933
67934         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
67935         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
67936         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
67937         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
67938
67939 2006-01-09  Bruno Haible  <bruno@clisp.org>
67940
67941         * build-aux/javacomp.sh.in: New file, moved from lib/.
67942         * modules/javacomp-script (Files): Update.
67943         (configure.ac): Add AC_CONFIG_FILES invocation.
67944         (EXTRA_DIST): Remove variable.
67945
67946         * build-aux/javaexec.sh.in: New file, moved from lib/.
67947         * modules/javaexec (Files): Update.
67948         (configure.ac): Add AC_CONFIG_FILES invocation.
67949         (EXTRA_DIST): Remove javaexec.sh.in.
67950
67951         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
67952         * modules/csharpcomp-script (Files): Update.
67953         (configure.ac): Add AC_CONFIG_FILES invocation.
67954         (EXTRA_DIST): Remove variable.
67955
67956         * build-aux/csharpexec.sh.in: New file, moved from lib/.
67957         * modules/csharpexec (Files): Update.
67958         (configure.ac): Add AC_CONFIG_FILES invocation.
67959         (EXTRA_DIST): Remove csharpexec.sh.in.
67960
67961 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
67962
67963         Sync from coreutils.
67964
67965         Add POSIX ACL support
67966         * lib/acl.h (copy_acl, set_acl): Add declarations.
67967         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
67968         systems other than Linux.
67969         (chmod_or_fchmod): New function: use fchmod when possible,
67970         and chmod otherwise.
67971         (file_has_acl): Add a POSIX ACL implementation, with a
67972         Linux-specific subcase.
67973         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
67974         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
67975         acls are unsupported.
67976         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
67977         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
67978         are unsupported.
67979
67980 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
67981
67982         Sync from coreutils.
67983         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
67984
67985 2006-01-07  Bruno Haible  <bruno@clisp.org>
67986
67987         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
67988         gl_EARLY.
67989
67990 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
67991
67992         * lib/strftime.c (tzname): Don't declare if it is already #defined.
67993         Problem reported for Mingw by Mark Junker.
67994
67995 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
67996
67997         * README: Gnulib normally doesn't generate a tarball.
67998
67999 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
68000
68001         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
68002         long int, not int, for nanosecond counts, so that people who are
68003         used to POSIX struct timespec won't be surprised.  Reported by Jim
68004         Meyering.
68005
68006 2005-12-28  Bruno Haible  <bruno@clisp.org>
68007
68008         * build-aux/config.rpath: Update from GNU gettext.
68009
68010 2005-12-16  Jim Meyering  <jim@meyering.net>
68011
68012         * modules/fprintftime: New module.
68013         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
68014
68015 2005-12-16  Jim Meyering  <jim@meyering.net>
68016
68017         * m4/fprintftime.m4: New file.
68018
68019 2005-12-16  Jim Meyering  <jim@meyering.net>
68020
68021         * lib/fprintftime.c, lib/fprintftime.h: New files.
68022
68023 2005-12-15  Simon Josefsson  <jas@extundo.com>
68024
68025         * modules/socklen (configure.ac): Fix M4 macro name, to align with
68026         new m4/socklen.m4.
68027
68028 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
68029
68030         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
68031         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
68032
68033 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
68034
68035         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
68036         * lib/argp-help.c (fill_in_uparams): Check if the constructed
68037         struct uparams is valid. Fall back to the default values if it is
68038         not.
68039
68040 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68041
68042         * modules/argp (Files): Add argp-pin.c
68043         (Depends-on): dirname
68044         (lib_SOURCES): Add argp-pin.c
68045
68046 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68047
68048         * m4/argp.m4:  Check if program_invocation_name and
68049         program_invocation_short_name are declared and define appropriate
68050         macros if they are not.
68051
68052 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68053
68054         * lib/argp-help.c (__argp_base_name): New function
68055         (__argp_short_program_name): Rewrite using __argp_base_name
68056         * lib/argp-namefrob.h: Define program_invocation_name and
68057         program_invocation_short_name if requested
68058         (__argp_base_name): Add prototype
68059         * lib/argp-parse.c (argp_def): Use gettext wrappers
68060         (argp_default_parser): Use __argp_base_name
68061         * lib/argp-pin.c: New file. Defines program_invocation_name and
68062         program_invocation_short_name on systems that lack them.
68063
68064 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
68065
68066         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
68067         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
68068         porting problem reported by Georg Schwarz in
68069         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
68070
68071 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
68072
68073         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
68074         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
68075         porting problem reported by Georg Schwarz in
68076         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
68077
68078 2005-12-05  Bruno Haible  <bruno@clisp.org>
68079
68080         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
68081         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
68082         Reported by Mark Junker <mjscod@gmx.de>.
68083
68084 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
68085
68086         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
68087         Use implementation from Albert Chin, with some
68088         comments/corrections by Stepan Kasal and myself.
68089
68090 2005-12-02  Bruno Haible  <bruno@clisp.org>
68091
68092         * gnulib-tool (func_import): Accept GPLed build tool modules when
68093         --lgpl is given.
68094         * modules/csharpcomp-script: New file.
68095         * modules/csharpcomp: Depend on it.
68096         * modules/javacomp-script: New file.
68097         * modules/javacomp: Depend on it.
68098         Suggested by Simon Josefsson.
68099
68100 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
68101
68102         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
68103         statement, to work around an HP-UX 10.20 compiler bug reported by
68104         Peter O'Gorman.
68105
68106 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
68107
68108         * modules/savedir (Depends-on): Add openat.
68109
68110 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
68111
68112         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
68113         (uintmax_t) [defined uintmax_t]: Do not declare.
68114         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
68115         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
68116         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
68117         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
68118         sake of portability to weird hosts that C allows (though we don't
68119         know of any practical examples).
68120
68121         * lib/savedir.h (fdsavedir): New decl.
68122         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
68123         contains most of the former guts of savedir.
68124         (savedir): Use savedirstream.
68125         Include "openat.h".
68126
68127 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
68128
68129         * modules/obstack (Files): Add m4/ulonglong.m4.
68130         Problem reported by Davide Angelocola.
68131
68132 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
68133
68134         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
68135         coreutils no longer futzes with rounding modes.
68136
68137 2005-11-14  Jim Meyering  <jim@meyering.net>
68138
68139         * lib/mkstemp-safer.c: Include <config.h>, required for possible
68140         replacement of mkstemp.
68141
68142 2005-11-10  Simon Josefsson  <jas@extundo.com>
68143
68144         * lib/readline.c: Remove EOL.
68145
68146 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
68147
68148         * modules/gethrxtime (Depends-on): Add gettime.
68149
68150 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
68151
68152         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
68153         or gettimeofday; no longer needed.
68154
68155 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
68156
68157         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
68158         time business.
68159         (gethrxtime) [! (HAVE_NANOUPTIME
68160         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
68161         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
68162         our own approximation.
68163
68164 2005-11-08  Eric Blake  <ebb9@byu.net>
68165
68166         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
68167
68168 2005-11-08  Eric Blake  <ebb9@byu.net>
68169
68170         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
68171
68172 2005-11-04  Bruno Haible  <bruno@clisp.org>
68173
68174         * gnulib-tool: Implement --update mode.
68175
68176 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
68177
68178         Fix porting problem reported by Theodoros V. Kalamatianos.
68179         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
68180         Don't assume that futimes failing means we must fail.
68181
68182 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
68183
68184         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
68185         variables to suggest the intended function of the PATH_MAX check.
68186
68187 2005-10-30  Kean Johnston  <jkj@sco.com>
68188
68189         Trivial changes to support SCO systems.
68190         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
68191         as PATH_MAX.
68192         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
68193         where __ptr is null when no I/O is pending.
68194
68195 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
68196
68197         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
68198         leave errno alone.  Problem reported by Dmitry V. Levin.
68199
68200 2005-10-28  Simon Josefsson  <jas@extundo.com>
68201
68202         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
68203         Test more.
68204
68205         * tests/test-gc-md2.c, tests/test-md2.c: New files.
68206
68207         * modules/md2, modules/md2-tests: New files.
68208
68209 2005-10-28  Simon Josefsson  <jas@extundo.com>
68210
68211         * m4/inet_ntop.m4: More tests.
68212
68213         * m4/gc-md2.m4, md2.m4: New file.
68214
68215 2005-10-28  Simon Josefsson  <jas@extundo.com>
68216
68217         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
68218         "restrict" keywords, as per POSIX.  Protect the function
68219         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
68220         Don't use K&R prototypes.  Check the sprintf return values.
68221         Re-define EAFNOSUPPORT if not present.  Indent.
68222
68223         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
68224         suggested by Bruno Haible <bruno@clisp.org>.
68225
68226         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
68227
68228         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
68229
68230         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
68231         libgcrypt).
68232
68233         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
68234
68235         * lib/md2.h, lib/md2.c: New files.
68236
68237 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
68238
68239         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
68240         errno alone.  Problem reported by Frederic Jolliton.
68241
68242 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
68243
68244         * modules/verify (License): Change from GPL to LGPL.  This is a
68245         tiny module and there are apparently near-equivalents that are
68246         under the BSD license.
68247
68248 2005-10-24  Simon Josefsson  <jas@extundo.com>
68249
68250         * modules/sha1: Relicense to LGPL.
68251
68252 2005-10-24  Simon Josefsson  <jas@extundo.com>
68253
68254         * lib/md4.h: Shrink buffer size, now that we changed the type.
68255
68256 2005-10-23  Simon Josefsson  <jas@extundo.com>
68257
68258         * gnulib-tool (func_import): Fix --tests-base.
68259
68260 2005-10-22  Simon Josefsson  <jas@extundo.com>
68261
68262         * modules/arcfour (Depends-on): Need stdint.
68263
68264 2005-10-22  Simon Josefsson  <jas@extundo.com>
68265
68266         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
68267         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
68268
68269 2005-10-22  Simon Josefsson  <jas@extundo.com>
68270
68271         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
68272         suggested by Bruno Haible <bruno@clisp.org>.
68273
68274 2005-10-22  Simon Josefsson  <jas@extundo.com>
68275
68276         * lib/crc.h: Include stddef.h, for size_t.
68277
68278 2005-10-22  Simon Josefsson  <jas@extundo.com>
68279
68280         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
68281         arcfour_context struct (simplify test vector testing in GNU
68282         Shishi).
68283
68284 2005-10-21  Simon Josefsson  <jas@extundo.com>
68285
68286         * modules/des, modules/des-tests: New files.
68287
68288         * modules/gc-des, modules/gc-des-tests: New files.
68289
68290         * tests/test-des.c, tests/test-gc-des.c: New file.
68291
68292 2005-10-21  Simon Josefsson  <jas@extundo.com>
68293
68294         * modules/arctwo, modules/arctwo-tests: New files.
68295
68296         * tests/test-arctwo.c: New file.
68297
68298         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
68299
68300         * tests/test-gc-arctwo.c: New file.
68301
68302 2005-10-21  Simon Josefsson  <jas@extundo.com>
68303
68304         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
68305         Bruno Haible <bruno@clisp.org>.
68306
68307         * m4/gc-des.m4: New file.
68308
68309 2005-10-21  Simon Josefsson  <jas@extundo.com>
68310
68311         * m4/arctwo.m4: New file.
68312
68313         * m4/gc-arctwo.m4: New file.
68314
68315 2005-10-21  Simon Josefsson  <jas@extundo.com>
68316
68317         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
68318         block.
68319
68320 2005-10-21  Simon Josefsson  <jas@extundo.com>
68321
68322         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
68323         <bruno@clisp.org>.
68324
68325         * lib/hmac-sha1.c (hmac_sha1): Likewise.
68326
68327         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
68328         Bruno Haible <bruno@clisp.org>.
68329
68330         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
68331         <bruno@clisp.org>.
68332
68333 2005-10-21  Simon Josefsson  <jas@extundo.com>
68334
68335         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
68336
68337 2005-10-21  Simon Josefsson  <jas@extundo.com>
68338
68339         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
68340
68341 2005-10-21  Simon Josefsson  <jas@extundo.com>
68342
68343         * lib/des.h, lib/des.c: New files.
68344
68345         * lib/gc-gnulib.c: Support DES.c
68346
68347 2005-10-21  Simon Josefsson  <jas@extundo.com>
68348
68349         * lib/arctwo.h, lib/arctwo.c: New files.
68350
68351         * lib/gc-gnulib.c: Support ARCTWO.
68352
68353 2005-10-21  Simon Josefsson  <jas@extundo.com>
68354
68355         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
68356         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68357
68358 2005-10-21  Simon Josefsson  <jas@extundo.com>
68359
68360         * gnulib-tool (func_import, func_create_testdir): Define automake
68361         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
68362         Makefile.am snippet),
68363         suggested by Bruno Haible <bruno@clisp.org>.
68364
68365         * modules/gc (Makefile.am): Use it.
68366
68367 2005-10-21  Bruno Haible  <bruno@clisp.org>
68368
68369         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
68370         patch.
68371
68372 2005-10-19  Simon Josefsson  <jas@extundo.com>
68373
68374         * tests/test-gc-rijndael.c: New file.
68375
68376         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
68377
68378 2005-10-19  Simon Josefsson  <jas@extundo.com>
68379
68380         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
68381         interface too.
68382
68383 2005-10-19  Simon Josefsson  <jas@extundo.com>
68384
68385         * tests/test-gc-arcfour.c: New file.
68386
68387         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
68388
68389 2005-10-19  Simon Josefsson  <jas@extundo.com>
68390
68391         * modules/gc-md4, modules/gc-md4-tests: New file.
68392
68393         * tests/test-gc-md4.c: New file.
68394
68395 2005-10-19  Simon Josefsson  <jas@extundo.com>
68396
68397         * m4/gc-md4.m4: New file.
68398
68399 2005-10-19  Simon Josefsson  <jas@extundo.com>
68400
68401         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
68402         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
68403         <kasal@ucw.cz>.
68404
68405 2005-10-19  Simon Josefsson  <jas@extundo.com>
68406
68407         * m4/gc-arcfour.m4: New file.
68408
68409         * m4/gc-rijndael.m4: New file.
68410
68411 2005-10-19  Simon Josefsson  <jas@extundo.com>
68412
68413         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
68414
68415 2005-10-19  Simon Josefsson  <jas@extundo.com>
68416
68417         * lib/gc-gnulib.c: Support ARCFOUR.
68418
68419 2005-10-19  Simon Josefsson  <jas@extundo.com>
68420
68421         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
68422         support.
68423
68424         * lib/gc.h: Add ECB enum type.
68425
68426         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
68427
68428 2005-10-18  Simon Josefsson  <jas@extundo.com>
68429
68430         * tests/test-md5.c: New file.
68431
68432         * modules/md5-tests: New file.
68433
68434 2005-10-18  Simon Josefsson  <jas@extundo.com>
68435
68436         * tests/test-md4.c: New file.
68437
68438         * modules/md4, modules/md4-tests: New files.
68439
68440 2005-10-18  Simon Josefsson  <jas@extundo.com>
68441
68442         * m4/md4.m4: New file.
68443
68444 2005-10-18  Simon Josefsson  <jas@extundo.com>
68445
68446         * lib/md4.h, lib/md4.c: New files, based on md5.?.
68447
68448 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
68449
68450         * gnulib-tool (func_create_testdir): Omit the second check whether
68451         BUILT_SOURCES in nonempty.
68452
68453 2005-10-17  Simon Josefsson  <jas@extundo.com>
68454
68455         * tests/test-rijndael.c: New file.
68456
68457 2005-10-17  Simon Josefsson  <jas@extundo.com>
68458
68459         * modules/sha1: Depend on stdint instead of md5.
68460
68461         * modules/md5: Depend on stdint, remove uint32_t.
68462
68463 2005-10-17  Simon Josefsson  <jas@extundo.com>
68464
68465         * modules/gc-sha1-tests: New file.
68466
68467         * tests/test-gc-sha1.c: New file.
68468
68469 2005-10-17  Simon Josefsson  <jas@extundo.com>
68470
68471         * m4/md5.m4: Remove call to uint32_t.m4.
68472
68473 2005-10-17  Simon Josefsson  <jas@extundo.com>
68474
68475         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
68476
68477         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
68478         md5.h.
68479
68480         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
68481
68482         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
68483
68484 2005-10-17  Simon Josefsson  <jas@extundo.com>
68485
68486         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
68487
68488 2005-10-17  Simon Josefsson  <jas@extundo.com>
68489
68490         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
68491
68492 2005-10-17  Simon Josefsson  <jas@extundo.com>
68493
68494         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
68495
68496         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
68497
68498 2005-10-17  Bruno Haible  <bruno@clisp.org>
68499
68500         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
68501         that it can also be used in a test.
68502
68503 2005-10-16  Bruno Haible  <bruno@clisp.org>
68504
68505         * gnulib-tool (func_emit_tests_Makefile_am): Also define
68506         TESTS_ENVIRONMENT, so that individual tests can augment it.
68507
68508         * gnulib-tool (func_create_testdir): Use an intermediate target for
68509         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
68510         macros, like $(ALLOCA_H), which cannot be passed through the command
68511         line.
68512
68513 2005-10-15  Simon Josefsson  <jas@extundo.com>
68514
68515         * modules/rijndael-tests: New file.
68516
68517         * modules/rijndael: New file.
68518
68519 2005-10-15  Simon Josefsson  <jas@extundo.com>
68520
68521         * m4/rijndael.m4: New file.
68522
68523 2005-10-15  Simon Josefsson  <jas@extundo.com>
68524
68525         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
68526
68527         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
68528
68529 2005-10-14  Simon Josefsson  <jas@extundo.com>
68530
68531         * tests/test-arcfour.c: New file.
68532
68533         * modules/arcfour, modules/arcfour-tests: New files.
68534
68535 2005-10-14  Simon Josefsson  <jas@extundo.com>
68536
68537         * m4/arcfour.m4: New file.
68538
68539 2005-10-14  Simon Josefsson  <jas@extundo.com>
68540
68541         * lib/arcfour.h, lib/arcfour.c: New files.
68542
68543 2005-10-14  Roland McGrath  <roland@redhat.com>
68544
68545         Import from libc.  [BZ #1331]
68546         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
68547         macro argument.
68548         Reported by Matej Vela <vela@debian.org>.
68549
68550 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
68551
68552         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
68553         include <wchar.h>; no longer needed.
68554
68555 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
68556
68557         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
68558
68559 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
68560         and  Ulrich Drepper  <drepper@redhat.com>
68561
68562         Import from libc.
68563         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
68564         instead of inline stream orientation test and two separate
68565         function calls.  Pay no attention to USE_IN_LIBIO.
68566
68567 2005-10-13  Simon Josefsson  <jas@extundo.com>
68568
68569         * modules/gc-hmac-md5-tests: New file.
68570
68571         * tests/test-gc-hmac-sha1.c: New file.
68572
68573         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
68574
68575         * modules/gc-hmac-md5-tests: New file.
68576
68577         * tests/test-gc-md5.c: New file.
68578
68579         * modules/gc-md5-tests: New file.
68580
68581 2005-10-13  Simon Josefsson  <jas@extundo.com>
68582
68583         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
68584         Move memory allocation outside of loop.
68585
68586 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
68587
68588         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
68589         intermediate directory is in a read-only file system.  Problem
68590         reported by Eric Blake.
68591
68592 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
68593
68594         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
68595
68596 2005-10-12  Simon Josefsson  <jas@extundo.com>
68597
68598         * tests/test-hmac-sha1.c: New file.
68599
68600         * modules/hmac-sha1-tests: New file.
68601
68602         * modules/hmac-sha1: New file.
68603
68604 2005-10-12  Simon Josefsson  <jas@extundo.com>
68605
68606         * modules/gc-sha1: New file.
68607
68608 2005-10-12  Simon Josefsson  <jas@extundo.com>
68609
68610         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
68611
68612         * tests/test-gc-pbkdf2-sha1.c: New file.
68613
68614 2005-10-12  Simon Josefsson  <jas@extundo.com>
68615
68616         * modules/gc-md5, modules/gc-hmac-md5: New files.
68617
68618         * modules/gc (Files): Remove md5, memxor and hmac files.
68619
68620 2005-10-12  Simon Josefsson  <jas@extundo.com>
68621
68622         * m4/gc-pbkdf2-sha1.m4: New file.
68623
68624         * m4/gc-hmac-sha1.m4: New file.
68625
68626         * m4/gc-sha1: New file.
68627
68628         * m4/hmac-sha1.m4: New file.
68629
68630 2005-10-12  Simon Josefsson  <jas@extundo.com>
68631
68632         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
68633
68634         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
68635
68636 2005-10-12  Simon Josefsson  <jas@extundo.com>
68637
68638         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
68639         suggested by Bruno Haible <bruno@clisp.org>.
68640
68641 2005-10-12  Simon Josefsson  <jas@extundo.com>
68642
68643         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
68644
68645 2005-10-12  Simon Josefsson  <jas@extundo.com>
68646
68647         * lib/gc-pbkdf2-sha1.c: New file.
68648
68649         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
68650
68651 2005-10-12  Simon Josefsson  <jas@extundo.com>
68652
68653         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
68654
68655         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
68656
68657 2005-10-12  Simon Josefsson  <jas@extundo.com>
68658
68659         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
68660         GC_USE_HMAC_MD5, respectively.
68661
68662         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
68663         (gc_md5): Fix typo.
68664
68665         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
68666
68667         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
68668
68669         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
68670
68671 2005-10-12  Bruno Haible  <bruno@clisp.org>
68672
68673         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
68674         Reported by Stepan Kasal <kasal@ucw.cz>.
68675
68676 2005-10-11  Simon Josefsson  <jas@extundo.com>
68677
68678         * tests/test-crc.c: New file.
68679
68680         * modules/crc, modules/crc-tests: New files.
68681
68682 2005-10-11  Simon Josefsson  <jas@extundo.com>
68683
68684         * m4/crc.m4: New file.
68685
68686 2005-10-11  Simon Josefsson  <jas@extundo.com>
68687
68688         * lib/gc.h: Add gc_hash and gc_hash_buffer.
68689
68690         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
68691
68692         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
68693
68694 2005-10-11  Simon Josefsson  <jas@extundo.com>
68695
68696         * lib/crc.h, lib/crc.c: New files.
68697
68698         * lib/gc.h (gc_hash_buffer): Add doc.
68699
68700 2005-10-11  Bruno Haible  <bruno@clisp.org>
68701
68702         * modules/c-strcasestr: New file.
68703         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
68704
68705 2005-10-11  Bruno Haible  <bruno@clisp.org>
68706
68707         * modules/c-strcase: New file.
68708         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
68709
68710 2005-10-11  Bruno Haible  <bruno@clisp.org>
68711
68712         * lib/strcasecmp.c: Include limits.h.
68713         (strcasecmp): Avoid integer overflow on exotic platforms.
68714         * lib/strncasecmp.c: Include limits.h.
68715         (strncasecmp): Avoid integer overflow on exotic platforms.
68716         Reported by Paul Eggert.
68717
68718 2005-10-11  Bruno Haible  <bruno@clisp.org>
68719
68720         * lib/c-strcasestr.h: New file, from GNU gettext.
68721         * lib/c-strcasestr.c: New file, from GNU gettext.
68722
68723 2005-10-11  Bruno Haible  <bruno@clisp.org>
68724
68725         * lib/c-strcase.h: New file, from GNU gettext.
68726         * lib/c-strcasecmp.c: New file, from GNU gettext.
68727         * lib/c-strncasecmp.c: New file, from GNU gettext.
68728
68729 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
68730
68731         * modules/mempcpy (License): GPL -> LGPL.
68732         * modules/strchrnul (License): Likewise.
68733         * modules/sysexits (License): Likewise.
68734
68735 2005-10-08  Simon Josefsson  <jas@extundo.com>
68736
68737         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
68738
68739 2005-10-07  Simon Josefsson  <jas@extundo.com>
68740
68741         * m4/memxor.m4: Remove gl_C_RESTRICT call.
68742
68743 2005-10-06  Simon Josefsson  <jas@extundo.com>
68744
68745         * tests/test-hmac-md5.c: New file.
68746
68747         * modules/hmac-md5-tests: New file.
68748
68749         * modules/hmac-md5: New file.
68750
68751 2005-10-06  Simon Josefsson  <jas@extundo.com>
68752
68753         * m4/hmac-md5.m4: New file.
68754
68755         * m4/memxor.m4: Require gl_C_RESTRICT.
68756
68757 2005-10-06  Simon Josefsson  <jas@extundo.com>
68758
68759         * lib/memxor.c (memxor): Avoid casts and warnings.
68760
68761 2005-10-06  Simon Josefsson  <jas@extundo.com>
68762
68763         * lib/hmac-md5.c: New file.
68764
68765         * lib/hmac.h: New file.
68766
68767 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
68768
68769         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
68770         promotes to int, not unsigned int, to catch the AIX 5.3
68771         compiler bug.
68772
68773 2005-10-05  Simon Josefsson  <jas@extundo.com>
68774
68775         * modules/memxor: New file.
68776
68777         * modules/iconv (Files): Move config.rpath to havelib, it is used
68778         there.
68779
68780         * modules/havelib (Files): Add config.rpath.
68781
68782 2005-10-05  Simon Josefsson  <jas@extundo.com>
68783
68784         * m4/memxor.m4: New file.
68785
68786 2005-10-05  Simon Josefsson  <jas@extundo.com>
68787
68788         * lib/memxor.c (memxor): Fix compiler error.
68789
68790         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
68791         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
68792
68793         * lib/memxor.h, lib/memxor.c: New files.
68794
68795         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
68796         we assume all systems have it, suggested by Jim Meyering
68797         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
68798         any systems lack sys/socket.h; mingw32 is known to lack it, but we
68799         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
68800         same reasons.
68801
68802 2005-10-05  Simon Josefsson  <jas@extundo.com>
68803
68804         * config/srclist.txt: Add glibc bug 1423 for md5.h.
68805
68806 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
68807
68808         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
68809         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
68810         needed, since the source code now assumes these .h files.
68811
68812 2005-10-05  Derek Price  <derek@ximbiot.com>
68813
68814         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
68815
68816 2005-10-05  Bruno Haible  <bruno@clisp.org>
68817
68818         * modules/stdint (License): Change to LGPL.
68819
68820 2005-10-04  Simon Josefsson  <jas@extundo.com>
68821
68822         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
68823         D. Baushke" <mdb@gnu.org>.
68824
68825 2005-10-04  Bruno Haible  <bruno@clisp.org>
68826
68827         * lib/verify.h (verify_true): Provide alternative definition for C++.
68828
68829 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
68830
68831         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
68832         (SSIZE_MAX): New macro, if not already defined.
68833         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
68834         than 2 GiB.
68835
68836 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
68837
68838         Sync from coreutils.
68839         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
68840         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
68841         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
68842         ULLONG_MAX doesn't work with 2.7.2.1.
68843
68844 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
68845
68846         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
68847         From Ben Pfaff.
68848
68849         * modules/exclude (Depends-on): Depend on verify.
68850         * modules/strtoimax (Depends-on): Likewise.
68851         * modules/utimecmp (Depends-on): Likewise.
68852
68853 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
68854
68855         * lib/exclude.c: Include verify.h.
68856         (verify): Remove.  All callers changed to use verify.h's version.
68857         * lib/strtoimax.c: Likewise.
68858         * lib/utimecmp.c: Likewis.e
68859
68860         Sync from coreutils.
68861         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
68862         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
68863         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
68864         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
68865         bother returning ENOSYS if settimeofday or stime fails; just let
68866         them return whatever errno they want to return.
68867         * lib/utimens.c: Include unistd.h, for dup2.
68868         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
68869         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
68870
68871 2005-10-02  Jim Meyering  <jim@meyering.net>
68872
68873         Sync from coreutils.
68874         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
68875         from glibc-2.2.5 that fails for read-only files.
68876
68877 2005-10-02  Jim Meyering  <jim@meyering.net>
68878
68879         Sync from coreutils.
68880         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
68881         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
68882         `#if HAVE_CONFIG_H'.
68883         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
68884         Remove AT_FDCWD test.
68885         Do not consume the fd unless successful.
68886         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
68887         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
68888         block, so that we don't even try to compile it if settimeofday is
68889         available.  This works around a compilation failure on OSF1 V5.1,
68890         due to stime requiring a `long int*' while tv_sec is `int'.
68891
68892 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
68893
68894         Sync from coreutils.
68895         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
68896         against `yes', rather than just testing for nonempty.
68897
68898 2005-10-01  Simon Josefsson  <jas@extundo.com>
68899
68900         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
68901         and Darwin.
68902
68903         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
68904         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
68905         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
68906         freeaddrinfo and gai_strerror are declared by the POSIX headers.
68907         Check if struct addrinfo is declared.
68908
68909 2005-10-01  Simon Josefsson  <jas@extundo.com>
68910
68911         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
68912         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
68913         AI_* and EAI_* definitions.  Protect function declarations.
68914
68915 2005-10-01  Jim Meyering  <jim@meyering.net>
68916
68917         Sync from coreutils.
68918
68919         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
68920         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
68921         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
68922         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
68923         in the inet and nsl libraries.  Required on Solaris 5.7.
68924
68925 2005-10-01  Jim Meyering  <jim@meyering.net>
68926
68927         Sync from coreutils.
68928         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
68929         in the inet and nsl libraries.  Required on Solaris 5.7.
68930
68931 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
68932
68933         * lib/getdelim.c (getdelim): Remove unused variables.
68934
68935 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
68936
68937         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
68938         so that the code works even with ancient cpp.  Portability problem
68939         with GCC 2.7.2.1 reported by Thomas M.Ott.
68940
68941 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
68942
68943         * modules/regex (Depends-on): Add strcase.
68944
68945         * modules/gethostname (Licence): Change from GPL to LGPL, since
68946         gethostname.c is a trivial implementation of a standard library
68947         function.
68948         * modules/poll (License): Change from GPL to LGPL, since it's
68949         derived from LGPL code.
68950
68951 2005-09-27  Jim Meyering  <jim@meyering.net>
68952
68953         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
68954         HAVE_CONFIG_H.
68955
68956         * lib/intprops.h (signed_type_or_expr__): Define.
68957         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
68958         for unsigned types.
68959
68960 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
68961
68962         * lib/verify.h (verify_expr): Remove, replacing with:
68963         (verify_true): New macro that returns true instead of void.
68964         (verify_type__): Remove.
68965         (verify): Use verify_true rather than verify_type__.
68966
68967 2005-09-26  Bruno Haible  <bruno@clisp.org>
68968
68969         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
68970         is necessary.
68971         (lib_SOURCES): Remove mbchar.c.
68972         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
68973         (Files): Add m4/mbrtowc.m4.
68974         * modules/mbiter: Likewise.
68975         * modules/mbuiter: Likewise.
68976
68977 2005-09-26  Bruno Haible  <bruno@clisp.org>
68978
68979         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
68980         compile mbchar.c if they are not both present.
68981         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
68982         * m4/mbiter.m4 (gl_MBITER): Likewise.
68983         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
68984         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
68985         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
68986
68987 2005-09-25  Jim Meyering  <jim@meyering.net>
68988
68989         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
68990         also uses socklen_t.
68991
68992 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
68993
68994         * lib/utimens.c (ENOSYS): Define if not already defined.
68995         (futimens): Support having a null PATH if the file descriptor
68996         is nonnegative.
68997
68998         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
68999         Remove.
69000         (__attribute): Define to empty unless GCC 3.1 or later.
69001         This works around a core dump on OpenBSD 3.4, which has GCC
69002         2.95.3, which dumps core when given __attribute__(()).  It also
69003         simplifies other tests, since we really don't want to bother with
69004         worrying about which ancient version of GCC supported what.
69005         Original problem reported by Yoann Vandoorselaere, with part of
69006         the fix suggested by Derek Price.
69007
69008 2005-09-24  Jim Meyering  <jim@meyering.net>
69009
69010         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
69011         so we can once again use a positive bitfield width of 1 -- now we
69012         don't have to explain why we were using a bitfield width of 2.
69013
69014 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
69015
69016         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
69017         and similarly for the other external symbols.  Problem reported
69018         by James Gallager.
69019
69020         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
69021         bug reported by Jim Meyering.
69022
69023         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
69024         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
69025         not needed, since socklen is a prerequisite module.
69026
69027 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
69028
69029         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
69030         Problem reported by Eric Blake.
69031         (getaddrinfo): Initialize se so that it's not garbage.
69032         Redo internal storage allocation so that it doesn't make unportable
69033         assumptions about alignment.
69034         Fix a memory leak.
69035
69036         * lib/utimens.c (futimens): Use futimesat if available.
69037         Prefer it to futimes since it doesn't have the futimes bug.
69038
69039         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
69040         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
69041         Instead, declare a function that returns a pointer to an array,
69042         and use verify_type__ to declare the size of the array.
69043         Problem and germ of a solution reported by Bruno Haible.
69044         (verify_type__): Use 2, not 1, for bitfield size, to avoid
69045         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
69046
69047 2005-09-23  Jim Meyering  <jim@meyering.net>
69048
69049         Sync from coreutils.
69050         Correct build failure (socklen_t not defined) on at least
69051         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
69052         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
69053
69054 2005-09-23  Jim Meyering  <jim@meyering.net>
69055
69056         * modules/getaddrinfo (Depends-on): Add socklen.
69057
69058 2005-09-23  Bruno Haible  <bruno@clisp.org>
69059
69060         * tests/test-verify.c: New file.
69061
69062 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
69063
69064         Sync from coreutils.
69065
69066         * modules/argmatch (Depends-on): Add verify.
69067         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
69068         unistd-safer.
69069         * modules/save-cwd (Depends-on): Likewise.
69070
69071         * modules/openat (Files): Add lib/openat-die.c.
69072         (Depends-on): Remove error, exitfail.
69073         Add dirname.
69074
69075         * modules/verify: New file.
69076         * MODULES.html.sh (Diagnostics <assert.h>): New section,
69077         with "verify" module.
69078
69079 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
69080
69081         Sync from coreutils.
69082
69083         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
69084         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
69085         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
69086         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
69087         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
69088         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
69089         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
69090         Don't bother checking for string.h, stdlib.h, unistd.h.
69091         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
69092         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
69093         module's job.
69094         * m4/jm-macros.m4 (gl_MACROS): Likewise.
69095         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
69096
69097         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
69098         (gl_GETDATE): Use it.
69099
69100         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
69101
69102 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
69103
69104         Sync from coreutils.
69105
69106         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
69107         stat-time.h.
69108         * lib/argmatch.h: Include verify.h
69109         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
69110         (ARGMATCH_ASSERT): Remove; unused.
69111         * lib/canonicalize.c: Assume STDC_HEADERS.
69112         * lib/exclude.c: Include "strcase.h".
69113         * lib/regex_internal.h [!defined _LIBC]: Likewise.
69114         * lib/getusershell.c: Include stdio--.h rather than stdio.h
69115         and stdio-safer.h.
69116         (getusershell): Call fopen, not fopen_safer.
69117         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
69118         Do not include unistd-safer.h.
69119         (save_cwd): Don't call fd_safer; no longer needed
69120         now that we include fcntl--.h.
69121
69122         * lib/getdate.y (relative_time): New type.
69123         (RELATIVE_TIME_0): New constant.
69124         (parser_control): Use relative_time instead of doing it ourselves.
69125         (%union): Add new relative_time rel member.
69126         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
69127         Now typeless.
69128         (relunit, relunit_snumber): Now of type rel.
69129         (zone, rel, relunit, get_date): Adjust to above changes.
69130
69131         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
69132         Do not include unistd-safer.h.
69133         (getloadavg): Don't call fd_safer; no longer needed
69134         now that we include fcntl--.h.
69135
69136         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
69137         (make_dir_parents): Treat ENOSYS like EEXIST.
69138
69139         Improve quality of diagnostics on restore_cwd failure.
69140         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
69141         (make_dir_parents): Last arg is now int * (for errno), not bool *.
69142         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
69143         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
69144         each time through the loop.  Do not diagnose restore_cwd failure;
69145         that is the caller's job (and perhaps the caller does not care).
69146
69147         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
69148         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
69149         If the file already exists but is not a directory, don't bother
69150         to try to make its parents.
69151         Close potential file descriptor leak if we can't chdir("/") (!).
69152         Don't always return true if chdir($PWD) fails; return true only
69153         if the requested action was done successfully (except for the
69154         chdir($PWD)).
69155         Don't log final directory unless we actually made it.
69156         Refactor to avoid duplicate code to fix up permissions.
69157         Don't attempt to fix up parent permissions if chdir($PWD) fails.
69158
69159         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
69160         to make it a bit faster and (I hope) clearer.
69161         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
69162         Fix bug in formats like %2N.
69163
69164         * lib/verify.h: New file.
69165
69166 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
69167
69168         Sync from coreutils.
69169         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
69170
69171 2005-09-22  Jim Meyering  <jim@meyering.net>
69172
69173         Sync from coreutils.
69174
69175         * m4/lstat.m4 (gl_FUNC_LSTAT):
69176         Use AC_LIBSOURCES to require lstat.c and lstat.h.
69177         Remove obsolete comment.
69178         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
69179         * m4/xstrtod.m4: Likewise.
69180
69181         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
69182
69183 2005-09-22  Jim Meyering  <jim@meyering.net>
69184
69185         Sync from coreutils.
69186
69187         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
69188
69189         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
69190         the .tm_year member, since otherwise gcc-4.0 would now warn about
69191         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
69192
69193         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
69194         order to avoid an unsuppressible warning from gcc on 64-bit systems.
69195
69196         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
69197         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
69198         when run in a time zone for which daylight savings time is in effect
69199         for the starting date.
69200
69201         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
69202         stop us from restricting permissions of just-created absolute-named
69203         directories.
69204         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
69205         to restore initial working directory.
69206         * lib/mkdir-p.c (make_dir_parents): New parameter:
69207         different_working_dir, to tell caller if/when we change the working
69208         directory and are unable to return to the initial one.
69209         * lib/mkdir-p.h (make_dir_parents): Update prototype.
69210         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
69211         `return false'.  This fixes a bug introduced on 2004-07-30.
69212
69213         * lib/openat.c (fdopendir): Be sure to close the supplied
69214         file descriptor before returning.  This makes our replacement
69215         implementation a little closer to Solaris's, where fdopendir
69216         ties the file descriptor to the returned DIR* pointer.
69217         * lib/openat.c (unlinkat): New function.
69218         * lib/openat.h (unlinkat): Add prototype.
69219         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
69220         (openat_restore_fail): Rename from openat_restore_die.
69221         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
69222
69223         Provide an alternative to exiting immediately upon save_cwd or
69224         restore_cwd failure.  Now, an application can arrange e.g.,
69225         to perform a longjump in that case.
69226         * lib/openat.c: Include dirname.h.
69227         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
69228         (rpl_openat, fdopendir, fstatat): Call openat_save_die
69229         and openat_restore_die rather than calling error directly.
69230         Don't include "error.h" or "exitfail.h"; they're no longer needed.
69231
69232         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
69233         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
69234         define.
69235
69236         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
69237         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
69238                             int utc, int nanoseconds);
69239         Background:
69240         date should not have to allocate a megabyte of virtual memory to
69241         handle a format argument like +%1048575T.  When implemented with
69242         strftime, it must allocate such a buffer, use strftime to fill it
69243         in, print it, then free it.
69244         With fprintftime, it simply prints everything and exits.
69245         With no need for memory allocation, that's one fewer way to fail.
69246         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
69247         optional field width, not before, so we accept %9:z, not %:9z.
69248         (my_strftime): Be sure to use L_('x') for literals.
69249
69250         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
69251         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
69252         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
69253         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
69254         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
69255         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
69256         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
69257         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
69258         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
69259         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
69260         * lib/xgethostname.c, lib/xreadlink.c:
69261         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
69262
69263         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
69264         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
69265         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
69266         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
69267         and don't include <sys/file.h>).
69268
69269 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
69270
69271         Sync from coreutils.
69272
69273         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
69274         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
69275         [!LDAV_DONE]: Avoid unused variable warning.
69276
69277 2005-09-21  Bruno Haible  <bruno@clisp.org>
69278
69279         * lib/unicodeio.h (unicode_to_mb): New declaration.
69280
69281 2005-09-20  Derek Price  <derek@ximbiot.com>
69282
69283         * lib/getaddrinfo.c: Don't include <netdb.h> included from
69284         getaddrinfo.h.
69285
69286 2005-09-20  Bruno Haible  <bruno@clisp.org>
69287
69288         * gnulib-tool: Remove trailing slashes from the values specified for
69289         --source-base, --m4-base, --tests-base, --aux-dir.
69290         Suggested by Simon Josefsson <jas@extundo.com>.
69291
69292 2005-09-20  Bruno Haible  <bruno@clisp.org>
69293
69294         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
69295         func_modules_to_filelist, func_import, func_create_testdir): Make all
69296         sorting results locale-independent, so that gnulib-cache.m4 doesn't
69297         change when gnulib-tool is invoked in a different locale.
69298
69299 2005-09-19  Simon Josefsson  <jas@extundo.com>
69300
69301         * m4/socklen.m4: Fix typo.
69302
69303 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69304
69305         Use a consistent style for including <config.h>.
69306         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
69307         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
69308         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
69309         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
69310         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
69311         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
69312         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
69313         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
69314         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
69315         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
69316         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
69317         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
69318         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
69319         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
69320         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
69321         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
69322         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
69323         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
69324         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
69325         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
69326         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
69327         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
69328         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
69329         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
69330         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
69331         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
69332         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
69333         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
69334         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
69335         lib/xstrtoumax.c, lib/yesno.c:
69336         Standardize inclusion of config.h.
69337         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
69338         lib/inttostr.h:  Removed inclusion of config.h from header files.
69339         * lib/inttostr.c:  Adjusted in-tree users.
69340         * lib/timespec.h: Remove superfluous warning to include config.h.
69341         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
69342         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
69343         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
69344         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
69345         config.h with HAVE_CONFIG_H.
69346
69347 2005-09-19  Jim Meyering  <jim@meyering.net>
69348
69349         * modules/pathmax (License): Change to LGPL.
69350
69351 2005-09-19  Derek Price  <derek@ximbiot.com>
69352
69353         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
69354
69355 2005-09-19  Bruno Haible  <bruno@clisp.org>
69356
69357         * gnulib-tool (import): Provide default for --tests-base.
69358
69359 2005-09-19  Bruno Haible  <bruno@clisp.org>
69360
69361         * doc/quote.texi: New file, extracted from gnulib.texi.
69362         * doc/ctime.texi: New file, extracted from gnulib.texi.
69363         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
69364         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
69365         * doc/gnulib.texi: Include them.
69366
69367 2005-09-18  Bruno Haible  <bruno@clisp.org>
69368
69369         Portability fix.
69370         * gnulib-tool (func_readlink): New function.
69371         (func_ln_if_changed): Use it.
69372
69373 2005-09-18  Bruno Haible  <bruno@clisp.org>
69374
69375         * gnulib-tool: Support --with-tests also with --import.
69376         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
69377         (func_import): Use variables $testsbase and $inctests. Emit a
69378         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
69379         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
69380         SUBDIRS += $testsdir.
69381         (func_create_testdir): Update.
69382
69383 2005-09-18  Bruno Haible  <bruno@clisp.org>
69384
69385         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
69386         instead of $dry_run.
69387         (func_cp_if_changed, func_mv_if_changed): Remove functions.
69388         (func_ln_if_changed): Don't handle dry-run here.
69389         (func_import): In dry-run mode, detect more precisely which actions
69390         would be performed, and don't use "...ing" verbs.
69391
69392 2005-09-18  Bruno Haible  <bruno@clisp.org>
69393
69394         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
69395         (func_import): Use join on two temporary files instead of three nested
69396         loops, in order to determine which files are new or old.
69397
69398 2005-09-18  Bruno Haible  <bruno@clisp.org>
69399
69400         * gnulib-tool (func_import): Comment out code that spits out the
69401         new files with --dry-run.
69402
69403 2005-09-18  Bruno Haible  <bruno@clisp.org>
69404
69405         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
69406
69407 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
69408
69409         * lib/stat-time.h: New file.
69410         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
69411         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
69412         in a different way.
69413         (timespec_cmp): New function.
69414         * lib/utimecmp.c: Include stat-time.h.
69415         (SYSCALL_RESOLUTION): Depend on whether various struct stat
69416         members exist, not on the obsolescent ST_MTIM_NSEC.
69417         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
69418
69419 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
69420
69421         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
69422
69423 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
69424
69425         * MODULES.html.sh (File system functions): Add stat-time.
69426         * modules/stat-time: New file.
69427         * modules/timespec (Files): Remove m4/st_mtim.m4; this
69428         is now done in a different way, by the stat-time module.
69429         * modules/utimecmp (Depends-on): Add stat-time.
69430
69431 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69432
69433         * m4/st_mtim.m4: Remove.  Superseded by...
69434         * m4/stat-time.m4: New file.
69435         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
69436         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
69437
69438 2005-09-15  Derek Price  <derek@ximbiot.com>
69439
69440         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
69441
69442 2005-09-15  Derek Price  <derek@ximbiot.com>
69443
69444         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
69445         * lib/regex_internal.c: Ditto, using this...
69446         (__GNUC_PREREQ): ...new macro.
69447         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
69448         using...
69449         (__GNUC_PREREQ): ...this new macro.
69450
69451         * lib/strstr.h: Include string.h. Define strstr as a macro here.
69452
69453 2005-09-15  Derek Price  <derek@ximbiot.com>
69454             Paul Eggert  <eggert@cs.ucla.edu>
69455
69456         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
69457         changes, consolidating in...
69458         * lib/regex_internal.h: ...this file.
69459
69460 2005-09-13  Jim Meyering  <jim@meyering.net>
69461
69462         * lib/canon-host.c: Filter through gnu indent and reword comments
69463         slightly.
69464         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
69465
69466 2005-09-13  Derek Price  <derek@ximbiot.com>
69467
69468         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
69469         failure.
69470         Reported by Jim Meyering  <jim@meyering.net>.
69471
69472 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
69473
69474         * lib/base64.c: Typo.
69475         (base64_encode): Put b64str in initialized data section.
69476
69477 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
69478
69479         Merge glibc and coreutils changes into gnulib, plus a few
69480         extra fixes.
69481         * lib/md5.c: Use #error rather than a string.
69482         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
69483         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
69484         (__attribute__): Define to empty for non recent-GCC.
69485         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
69486         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
69487         Renamed from their non-__ counterparts, with new macros replacing
69488         them if not _LIBC.  Add __THROW attribute.
69489         (rol): Remove.
69490         (struct md5_ctx): Align buffer if using GCC.
69491         * lib/sha1.h (struct sha1_ctx): Likewise.
69492         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
69493         The old name was backwards.
69494         (NOTSWAP): Remove; not used.
69495         (rol): New macro, moved here from md5.h.
69496         (sha1_process_block): Remove a FIXME that doesn't make sense.
69497
69498 2005-09-12  Derek Price  <derek@ximbiot.com>
69499
69500         Return usable errors from canon-host.
69501         * lib/canon-host.h: New file.
69502         * lib/canon-host.c (canon_host): Wrap...
69503         (canon_host_r): ...this new function, which now relies exclusively on
69504         getaddrinfo.
69505         (ch_strerror): New function.
69506         (last_cherror): New global.
69507         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
69508         interface.
69509         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
69510         void *.
69511         (freeaddrinfo): Free ai->ai_canonname when set.
69512
69513 2005-09-12  Derek Price  <derek@ximbiot.com>
69514
69515         Make canon-host require getaddrinfo.
69516         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
69517         AC_LIBSOURCE canon-host.h.  Call...
69518         (gl_PREREQ_CANON_HOST): ...this new function, which requires
69519         gl_GETADDRINFO.
69520         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
69521
69522 2005-09-12  Derek Price  <derek@ximbiot.com>
69523
69524         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
69525         LGPL.
69526         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
69527
69528 2005-09-12  Derek Price  <derek@ximbiot.com>
69529
69530         * lib/gai_strerror.c: Include config.h when available.  Include
69531         getaddrinfo.h before other headers to test interface.
69532         Reported by Larry Jones <lawrence.jones@ugs.com>.
69533
69534 2005-09-12  Derek Price  <derek@ximbiot.com>
69535             Paul Eggert  <eggert@cs.ucla.edu>
69536
69537         * modules/glob (Files): Add glob-libc.h.
69538
69539 2005-09-12  Derek Price  <derek@ximbiot.com>
69540             Paul Eggert  <eggert@cs.ucla.edu>
69541
69542         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
69543         glob_.h, glob-libc.h.
69544         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
69545
69546 2005-09-12  Derek Price  <derek@ximbiot.com>
69547             Paul Eggert  <eggert@cs.ucla.edu>
69548
69549         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
69550         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
69551         protecting things that should be done only in gnulib contexts.
69552         * lib/glob_.h: New file, containing only the glob things needed for
69553         gnulib.
69554         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
69555         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
69556         (glob, globfree, glob_pattern_p): Now defined simply in terms of
69557         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
69558         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
69559         and to respect the namespace rules better.
69560
69561 2005-09-08  Simon Josefsson  <jas@extundo.com>
69562
69563         * modules/socklen: New file.
69564
69565 2005-09-08  Simon Josefsson  <jas@extundo.com>
69566
69567         * m4/socklen.m4: New file.
69568
69569 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69570
69571         * modules/utimens (Files): Add m4/utimbuf.m4, since
69572         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
69573         Reported by Sergey Poznyakoff.
69574
69575 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69576
69577         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
69578         definitions, since that's the preferred style in glibc.
69579         Fix a minor spacing issue, and update copyright notice to match
69580         glibc's.
69581
69582 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69583
69584         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
69585
69586 2005-09-06  Simon Josefsson  <jas@extundo.com>
69587
69588         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
69589         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
69590
69591 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
69592
69593         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
69594         warning.
69595
69596 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
69597
69598         * config/srclist.txt: Add glibc bug 1302.
69599
69600 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
69601
69602         Change bitset word type from unsigned int to unsigned long int,
69603         as this has better performance on typical 64-bit hosts.
69604         Port bitset code to hosts with unusual word sizes.
69605         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
69606         (build_collating_symbol):
69607         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
69608         argument is a bitset.  This is merely a style issue, but it makes
69609         it clearer that an entire array is expected.
69610         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
69611         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
69612         Port to the case where bitset_word is not the same as unsigned int.
69613         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
69614         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
69615         Likewise.
69616         * lib/regexec.c (check_dst_limits_calc_pos_1,
69617         check_subexp_matching_top):
69618         (build_trtable, group_nodes_into_DFAstates):
69619         Likewise.
69620         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
69621         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
69622         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
69623         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
69624         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
69625         * lib/regcomp.c (optimize_subexps, lower_subexp):
69626         Work even if bitset_word has holes in its bitwise representation.
69627         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
69628         * lib/regexec.c (check_dst_limits_calc_pos_1,
69629         check_subexp_matching_top):
69630         Likewise.
69631         * lib/regex_internal.c (re_string_reconstruct):
69632         Don't assume UCHAR_MAX == 255.
69633         * lib/regex_internal.h (bitset_set_all): Likewise.
69634         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
69635         All uses changed.
69636         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
69637         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
69638         All uses changed.
69639         (BITSET_WORD_MAX): New macro.
69640         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
69641         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
69642         (bitset_empty, bitset_copy):
69643         Prefer sizeof (bitset) to multiplying it out ourselves.
69644         (bitset_not_merge): Remove; unused.
69645         (bitset_contain): Return bool, not unsigned int with one bit on.
69646         All callers changed.
69647         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
69648         alignment than re_node_set; do this by defining a new internal
69649         type struct dests_alloc and using it to allocate memory.
69650
69651 2005-09-05  Bruno Haible  <bruno@clisp.org>
69652
69653         * gnulib-tool (func_import): Fix comparison in handling of symbolic
69654         links.
69655
69656 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
69657
69658         * modules/size_max (Makefile.am): Add size_max.h
69659
69660 2005-09-04  Derek Price  <derek@ximbiot.com>
69661
69662         * gnulib-tool (func_import): Fix reversed $symbolic logic.
69663
69664 2005-09-03  Simon Josefsson  <jas@extundo.com>
69665
69666         * gnulib-tool: Fix typo.
69667
69668 2005-09-03  Simon Josefsson  <jas@extundo.com>
69669
69670         * config/srclist.txt: Add glibc bug 1293.
69671
69672 2005-09-03  Derek Price  <derek@ximbiot.com>
69673
69674         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
69675         From Larry Jones <lawrence.jones@ugs.com>.
69676
69677 2005-09-02  Simon Josefsson  <jas@extundo.com>
69678
69679         * modules/socklen: New file.
69680
69681 2005-09-02  Simon Josefsson  <jas@extundo.com>
69682
69683         * modules/havelib: New module.
69684
69685         * modules/gettext, modules/iconv, modules/lock, modules/readline:
69686         Use havelib.
69687
69688 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
69689
69690         Check for arithmetic overflow when calculating sizes, to prevent
69691         some buffer-overflow issues.  These patches are conservative, in the
69692         sense that when I couldn't determine whether an overflow was possible,
69693         I inserted a run-time check.
69694         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
69695         macros.
69696         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
69697         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
69698         (re_xnrealloc, re_x2nrealloc): New inline functions.
69699         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
69700         parse_bracket_exp):
69701         (build_equiv_class, build_charclass): Check for arithmetic overflow
69702         in size expression calculations.
69703         * lib/regex_internal.c (re_string_realloc_buffers):
69704         (build_wcs_upper_buffer, re_node_set_add_intersect):
69705         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
69706         (re_dfa_add_node, register_state): Likewise.
69707         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
69708         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
69709         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
69710         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
69711
69712 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
69713
69714         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
69715         m4/ulonglong.m4.  Problem reported by Martin Lambers.
69716
69717 2005-09-02  Bruno Haible  <bruno@clisp.org>
69718
69719         Support for lib vs. lib64 distinction on biarch platforms.
69720         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
69721         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
69722         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
69723
69724 2005-09-02  Bruno Haible  <bruno@clisp.org>
69725
69726         * gnulib-tool (import): In the other first-use case, provide defaults
69727         as well.
69728
69729 2005-09-02  Bruno Haible  <bruno@clisp.org>
69730
69731         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
69732         patches not yet found in the latest gettext release.
69733
69734 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69735
69736         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
69737         to avoid a collision with bits/local_lim.h in glibc.
69738         All uses changed.  Problem reported by Dmitry V. Levin in
69739         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
69740
69741         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
69742         bugs in int versus size_t comparisons.
69743         (re_string_context_at): Fix bug where the code assumed that
69744         Idx is signed.
69745
69746         Use bool where appropriate.
69747         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
69748         All callers changed.
69749         (calc_eclosure_iter): Likewise, for ROOT arg.
69750         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
69751         (build_charclass_op): Likewise, for NON_MATCH arg.
69752         * lib/regex_internal.c (re_string_allocate, re_string_construct):
69753         (re_string_construct_common): Likewise, for ICASE arg.
69754         * lib/regexec.c (re_search_2_stub, re_search_stub):
69755         Likewise, for RET_LEN arg.
69756         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
69757         (set_regs): Likewise, for FL_BACKTRACK arg.
69758         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
69759         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
69760         (calc_eclosure_iter, parse_bracket_exp):
69761         Use bool for internal variables that are booleans.
69762         * lib/regexec.c (re_search_internal, check_matching,
69763         proceed_next_node):
69764         (set_regs, build_sifted_states, sift_states_bkref):
69765         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
69766         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
69767         (find_collation_sequence_value):
69768         Likewise.
69769         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
69770         (re_node_set_compare):
69771         Return bool, not int. All callers changed.
69772         * lib/regexec.c (check_halt_node_context, check_dst_limits):
69773         (build_trtable, check_node_accept): Likewise.
69774         * lib/regex_internal.h: Include stdbool.h.
69775
69776         Fix bugs uncovered when converting to bool.
69777         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
69778         failure instead of charging ahead blindly.
69779         * lib/regex_internal.c (register_state): Likewise.
69780         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
69781         for freeing internal storage.
69782         (group_nodes_into_DFA_states): Use unsigned int, not int, for
69783         bitset pieces used as boolean, to avoid undefined behavior
69784         on hosts that do int overflow checking.
69785
69786 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69787
69788         * config/srclist.txt: Add glibc bugs 1285-1287.
69789
69790 2005-09-01  Jim Meyering  <jim@meyering.net>
69791
69792         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
69793         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
69794         Require gl_STAT_MACROS, too.
69795
69796 2005-09-01  Bruno Haible  <bruno@clisp.org>
69797
69798         * gnulib-tool (import): In the first-use case, provide defaults.
69799
69800 2005-09-01  Bruno Haible  <bruno@clisp.org>
69801
69802         * gnulib-tool (func_import): Remove the .tmp files.
69803
69804 2005-09-01  Bruno Haible  <bruno@clisp.org>
69805
69806         * gnulib-tool (func_import): Fix handling of symbolic links.
69807
69808 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69809
69810         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
69811         old glibc regex code mishandles strings longer than 2**31 bytes.
69812         This patch fixes this when the regex code is used in gnulib
69813         (i.e., outside glibc).
69814
69815         This patch should not affect the use of the regex code inside
69816         glibc.  No doubt this problem also needs to be handled for glibc
69817         as well, but the result will be an incompatible change to the
69818         glibc ABI, and the old ABI will have to be supported too.  That
69819         can be the the subject for another patch.
69820
69821         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
69822         governing whether the rest of this patch is active.  By default,
69823         the macro is disabled and the patch has no effect.
69824         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
69825         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
69826         (struct re_pattern_buffer, re_search, re_search_2, re_match):
69827         (re_match_2, re_set_registers): Use the new types.
69828         * lib/regex_internal.h (Idx, re_hashval_t): New types.
69829         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
69830         New macros.
69831         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
69832         (re_string_context_at, bin_tree_t, re_dfastate_t):
69833         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
69834         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
69835         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
69836         (re_string_char_size_at, re_string_wchar_at):
69837         (re_string_elem_size_at):
69838         Use the new types and macros to port to 64-bit hosts.
69839         Use unsigned types for internal values, so that the code
69840         mostly works even for arrays larger than SSIZE_MAX.
69841         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
69842         (search_duplicated_node, calc_eclosure_iter, fetch_number):
69843         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
69844         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
69845         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
69846         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
69847         (calc_inveclosure, parse_dup_op, build_range_exp):
69848         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
69849         (fetch_number, create_token_tree, mark_opt_subexp):
69850         Likewise.
69851         * lib/regex_internal.c (re_string_construct_common,
69852         create_ci_newstate):
69853         (create_cd_newstate, re_string_allocate, re_string_construct):
69854         (re_string_realloc_buffers, build_wcs_upper_buffer):
69855         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
69856         (re_string_reconstruct, re_string_peek_byte_case):
69857         (re_string_fetch_byte_case, re_string_context_at):
69858         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
69859         (re_node_set_init_copy, re_node_set_add_intersect):
69860         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
69861         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
69862         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
69863         (re_acquire_state, re_acquire_state_context, register_state):
69864         Likewise.
69865         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
69866         search_cur_bkref_entry):
69867         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
69868         (re_search_internal, re_search_2_stub, re_search_stub)
69869         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
69870         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
69871         (update_cur_sifted_state, check_dst_limits):
69872         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
69873         (check_subexp_limits, sift_states_bkref, merge_state_array):
69874         (check_subexp_matching_top, get_subexp, get_subexp_sub):
69875         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
69876         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
69877         (expand_bkref_cache, check_node_accept_bytes):
69878         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
69879         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
69880         (acquire_init_state_context, check_halt_node_context):
69881         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
69882         (sift_states_backward, clean_state_log_if_needed):
69883         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
69884         (find_recover_state, transit_state_sb, transit_state_mb):
69885         (transit_state_bkref, build_trtable, match_ctx_clean):
69886         Likewise.
69887         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
69888         to work around an assumption that REG_MISSING is negative.
69889
69890         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
69891         (seek_collating_symbol_entry) [defined _LIBC]:
69892         (lookup_collation_sequence_value) [defined _LIBC]:
69893         (build_range_exp, build_collating_symbol) [defined _LIBC]:
69894         Use prototypes rather than old-style function definitions.
69895         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
69896         (transit_state_sb) [0]:
69897         (find_collation_sequence_value) [defined _LIBC]: Likewise.
69898
69899         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
69900         rm_eo.
69901
69902         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
69903         (optimize_subexps, lower_subexp):
69904         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
69905         since the signed shift might overflow.  Use 1u<<31 instead.
69906         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
69907         Likewise.
69908         * lib/regexec.c (check_dst_limits_calc_pos_1,
69909         check_subexp_matching_top): Likewise.
69910
69911         * lib/regcomp.c (optimize_subexps, lower_subexp):
69912         Use CHAR_BIT rather than 8, for clarity.
69913         * lib/regexec.c (check_dst_limits_calc_pos_1):
69914         (check_subexp_matching_top): Likewise.
69915         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
69916         have to worry about portability issues when shifting it left.
69917         Remove no-longer-needed test for table_size > 0.
69918         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
69919         in a word, as the resulting behavior is undefined.
69920         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
69921         in one case, a <= should have been an <, and in another case the
69922         whole test was missing.
69923         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
69924         the standard name CHAR_BIT.
69925         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
69926         this is not true on one's complement and signed-magnitude hosts.
69927
69928         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
69929         next_last_offset.
69930         (struct re_dfa_t): Remove unused member states_alloc.
69931         * lib/regcomp.c (init_dfa): Don't initialize unused members.
69932
69933 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69934
69935         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
69936         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
69937         and large-file glibc and in 32-bit large-file Solaris.
69938
69939 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69940
69941         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
69942         lengths fit in regoff_t; this isn't true if regoff_t is the same
69943         width as size_t.
69944         * lib/regex.c (re_search_internal): 5th arg is LAST_START
69945         (= START + RANGE) instead of RANGE.  This avoids overflow
69946         problems when regoff_t is the same width as size_t.
69947         All callers changed.
69948         (re_search_2_stub): Check for overflow when adding the
69949         sizes of the two strings.
69950         (re_search_stub): Check for overflow when adding START
69951         to RANGE; if it occurs, substitute the extreme value.
69952
69953 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69954
69955         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
69956
69957 2005-08-31  Jim Meyering  <jim@meyering.net>
69958
69959         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
69960         a pointer-to-const.
69961         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
69962         (register_state): Likewise.
69963         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
69964         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
69965         (group_nodes_into_DFAstates): Likewise.
69966
69967 2005-08-31  Jim Meyering  <jim@meyering.net>
69968
69969         * check-module: Add a FIXME comment.
69970
69971 2005-08-31  Eric Blake  <ebb9@byu.net>
69972
69973         * modules/unistd-safer (Files): Add unistd--.h.
69974         * modules/stdio-safer (Files): Add stdio--.h.
69975
69976 2005-08-31  Derek Price  <derek@ximbiot.com>
69977
69978         * lib/getdelim.c (getdelim): Return EOF on EOF.
69979         Reported by Larry Jones <lawrence.jones@ugs.com>.
69980
69981 2005-08-31  Bruno Haible  <bruno@clisp.org>
69982
69983         Avoid unnecessary diffs in the generated lib/Makefile.am.
69984         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
69985         the generated files.
69986         (func_import): Don't set cmd.
69987
69988 2005-08-31  Bruno Haible  <bruno@clisp.org>
69989
69990         * lib/strstr.c: Include <stddef.h>, for NULL.
69991         * lib/strcasestr.c: Likewise.
69992         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
69993
69994 2005-08-31  Bruno Haible  <bruno@clisp.org>
69995
69996         * gnulib-tool: New option --macro-prefix.
69997         (func_import): Use macro_prefix.
69998         (import): Handle option --macro-prefix.
69999
70000 2005-08-31  Bruno Haible  <bruno@clisp.org>
70001
70002         * gnulib-tool (import): Rename most ac_* variables to cached_*.
70003         Also use new variables cached_lgpl, cached_libtool.
70004
70005 2005-08-31  Bruno Haible  <bruno@clisp.org>
70006
70007         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
70008         always instantiating them.
70009
70010 2005-08-31  Bruno Haible  <bruno@clisp.org>
70011
70012         * gnulib-tool (func_import): Read the previous cached settings
70013         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
70014         earlier added by gnulib but are now dropped. Warn when a gnulib file
70015         overwrites a non-gnulib file.
70016
70017 2005-08-31  Bruno Haible  <bruno@clisp.org>
70018
70019         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
70020         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
70021         projects that don't keep autogenerated files in CVS. Put into
70022         actioncmd only the specified modules, not the transitive closure.
70023
70024 2005-08-31  Bruno Haible  <bruno@clisp.org>
70025
70026         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
70027         Create directories that shall be filled.
70028         (import): Don't look for gl_* macros in configure.ac. Recurse across
70029         all directories containing a gnulib-cache.m4 files, if meaningful.
70030
70031 2005-08-31  Bruno Haible  <bruno@clisp.org>
70032
70033         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
70034         (import): Set seen_libtool when we see gl_LIBTOOL.
70035
70036 2005-08-31  Bruno Haible  <bruno@clisp.org>
70037
70038         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
70039         declaration macro definitions from generated gnulib.m4.
70040
70041 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
70042
70043         * lib/iconvme.h: Add prototype for iconv_alloc.
70044
70045 2005-08-29  Simon Josefsson  <jas@extundo.com>
70046
70047         * lib/iconvme.c: Fix errno.
70048
70049 2005-08-29  Bruno Haible  <bruno@clisp.org>
70050
70051         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
70052         that it works when the directory contains spaces.
70053
70054 2005-08-29  Bruno Haible  <bruno@clisp.org>
70055
70056         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
70057
70058 2005-08-29  Bruno Haible  <bruno@clisp.org>
70059
70060         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
70061         Emit more advice.
70062
70063 2005-08-29  Bruno Haible  <bruno@clisp.org>
70064         and Stepan Kasal  <kasal@ucw.cz>
70065
70066         * check-module: If more parameters are given, check each of them
70067         separately; add more exceptions, as noted by Jim Meyering.
70068         (check_module): New procedure.
70069         (%exempt_header): Now contains all exceptions.
70070
70071 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
70072
70073         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
70074
70075 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
70076
70077         * lib/iconvme.c: Split iconv_string into iconv_alloc.
70078
70079 2005-08-28  Bruno Haible  <bruno@clisp.org>
70080
70081         * m4/gnulib-tool.m4: New file.
70082
70083 2005-08-27  Jim Meyering  <jim@meyering.net>
70084
70085         * modules/unistd-safer (Files): Add pipe-safer.c.
70086         * modules/fcntl-safer (Files): Add creat-safer.c.
70087
70088 2005-08-27  Jim Meyering  <jim@meyering.net>
70089
70090         * m4/stdlib-safer.m4: New file.  From coreutils.
70091         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
70092         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
70093         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
70094         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
70095         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
70096
70097 2005-08-27  Jim Meyering  <jim@meyering.net>
70098
70099         * lib/fopen-safer.c: Merge minor changes from coreutils.
70100         * lib/dup-safer.c: Likewise.
70101         * lib/fd-safer.c: Likewise.
70102
70103         Merge from coreutils.
70104         * lib/stdio--.h: New file.
70105         * lib/stdlib--.h: New file.
70106         * lib/mkstemp-safer.c: New file.
70107
70108         GNU tar needs these.
70109         * lib/pipe-safer.c: New file.
70110         * lib/creat-safer.c: New file.
70111         * lib/fcntl--.h (creat): Define to creat_safer.
70112         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
70113         * lib/unistd--.h (pipe): Define to pipe_safer.
70114         * lib/unistd-safer.h: Declare pipe_safer.
70115
70116 2005-08-26  Simon Josefsson  <jas@extundo.com>
70117
70118         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
70119         Haible <bruno@clisp.org>.
70120
70121 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
70122
70123         * lib/regex_internal.h: Remove all references to
70124         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
70125         or better.
70126         (bitset_not, bitset_merge, bitset_not_merge):
70127         (bitset_mask, re_string_allocate, re_string_construct):
70128         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
70129         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
70130         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
70131         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
70132         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
70133         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
70134         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
70135         (re_acquire_state_context):
70136         Remove unnecessary forward decls.
70137         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
70138         Put __attribute at function definition,
70139         now that the function decl has been removed.
70140         * lib/regex_internal.c (re_string_peek_byte_case):
70141         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
70142         Likewise.
70143
70144 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
70145
70146         * m4/regex.m4: Add AC_PREREQ(2.50).
70147         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
70148
70149 2005-08-25  Simon Josefsson  <jas@extundo.com>
70150
70151         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
70152         __fsetlocking.
70153
70154 2005-08-25  Simon Josefsson  <jas@extundo.com>
70155
70156         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
70157         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
70158         GLIBC specific code.
70159
70160 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70161
70162         Make regex safe for g++.  This fixes one real bug (an "err"
70163         that should have been "*err").  g++ problem reported by
70164         Sam Steingold.
70165         * lib/regex_internal.h (re_calloc): New macro, consistent with
70166         re_malloc etc.  All callers of calloc changed to use re_calloc.
70167         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
70168         not int.  All callers changed.
70169         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
70170         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
70171         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
70172         (find_recover_state): Change "err" to "*err"; this fixes what
70173         appears to be a real bug.
70174         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
70175         versus int.
70176
70177 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70178
70179         * modules/regex (Depends-on): Add malloc, since the code
70180         assumes that !malloc(0) means failure.
70181
70182 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70183
70184         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
70185
70186         alloca modernization/simplification for regex.
70187         * lib/regex.c: Remove portability cruft for alloca.  This no longer
70188         needs to be at the start of the file, and can be moved into
70189         regex_internal.h and simplified.
70190         * lib/regex_internal.h: Include <alloca.h>.
70191         (__libc_use_alloca) [!defined _LIBC]: New macro.
70192         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
70193         now works outside glibc.
70194
70195 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70196
70197         * config/srclist.txt: Add glibc bugs 1241, 1245.
70198
70199 2005-08-25  Jim Meyering  <jim@meyering.net>
70200
70201         * lib/open-safer.c: Include <config.h>.
70202         Otherwise, we'd lose LARGEFILE support in any file using
70203         e.g. "fcntl--.h"
70204
70205 2005-08-25  Bruno Haible  <bruno@clisp.org>
70206
70207         * m4/minmax.m4: Require autoconf 2.52.
70208         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
70209         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
70210         alternatives of translit over the alphabet.
70211         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
70212
70213 2005-08-24  Simon Josefsson  <jas@extundo.com>
70214
70215         * tests/test-getpass.c: New file.
70216
70217 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
70218
70219         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
70220         for GNU regex features.
70221
70222 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
70223
70224         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
70225         * lib/regex.h (regerror): Likewise.
70226
70227         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
70228         requires this.  (The code never needed it.)
70229
70230         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
70231         All uses of recently-renamed identifiers changed to use the new,
70232         POSIX-compliant names.  The code will build and run just fine
70233         without these changes, but it's better to eat our own dog food
70234         and use the standard-conforming names.
70235
70236         * lib/regex.h: Fix a multitude of POSIX name space violations.
70237         These changes have an effect only for programs that define
70238         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
70239         do not change anything for programs compiled in the normal way.
70240         Also, there is no effect on the ABI.
70241
70242         (_REGEX_SOURCE): New macro.
70243         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
70244         defined and _GNU_SOURCE is not; this fixes a name space violation.
70245
70246         Rename the following macros to obey POSIX requirements.
70247         The old names are still visible as macros if _REGEX_SOURCE is defined.
70248         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
70249         RE_BACKSLASH_ESCAPE_IN_LISTS.
70250         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
70251         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
70252         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
70253         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
70254         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
70255         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
70256         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
70257         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
70258         (REG_INTERVALS): renamed from RE_INTERVALS.
70259         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
70260         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
70261         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
70262         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
70263         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
70264         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
70265         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
70266         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
70267         RE_UNMATCHED_RIGHT_PAREN_ORD.
70268         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
70269         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
70270         (REG_DEBUG): renamed from RE_DEBUG.
70271         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
70272         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
70273         unusual, since we can't clash with the POSIX REG_ICASE.
70274         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
70275         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
70276         (REG_NO_SUB): renamed from RE_NO_SUB.
70277         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
70278         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
70279         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
70280         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
70281         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
70282         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
70283         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
70284         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
70285         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
70286         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
70287         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
70288         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
70289         RE_SYNTAX_POSIX_MINIMAL_BASIC.
70290         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
70291         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
70292         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
70293         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
70294         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
70295         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
70296         (REG_FIXED): Renamed from REGS_FIXED.
70297         (REG_NREGS): Renamed from RE_NREGS.
70298
70299         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
70300         of other REG_* macros, since POSIX says the user is allowed to
70301         #undef these macros selectively.
70302
70303         (reg_errcode_t): Update comment stating what other tables need
70304         to be consistent.
70305
70306         Rename the following enum values to obey POSIX requirements.
70307         The old names are still visible as macros.
70308         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
70309         is not defined, since GNU is supposed to be a superset of POSIX as
70310         much as possible, and since we want reg_errcode_t to be a signed
70311         type for implementation consistency.
70312         (_REG_NOERROR): Renamed from REG_NOERROR.
70313         (_REG_NOMATCH): Renamed from REG_NOMATCH.
70314         (_REG_BADPAT): Renamed from REG_BADPAT.
70315         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
70316         (_REG_ECTYPE): Renamed from REG_ECTYPE.
70317         (_REG_EESCAPE): Renamed from REG_EESCAPE.
70318         (_REG_ESUBREG): Renamed from REG_ESUBREG.
70319         (_REG_EBRACK): Renamed from REG_EBRACK.
70320         (_REG_EPAREN): Renamed from REG_EPAREN.
70321         (_REG_EBRACE): Renamed from REG_EBRACE.
70322         (_REG_BADBR): Renamed from REG_BADBR.
70323         (_REG_ERANGE): Renamed from REG_ERANGE.
70324         (_REG_ESPACE): Renamed from REG_ESPACE.
70325         (_REG_BADRPT): Renamed from REG_BADRPT.
70326         (_REG_EEND): Renamed from REG_EEND.
70327         (_REG_ESIZE): Renamed from REG_ESIZE.
70328         (_REG_ERPAREN): Renamed from REG_ERPAREN.
70329         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
70330         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
70331         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
70332         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
70333
70334         (_REG_RE_NAME, _REG_RM_NAME): New macros.
70335         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
70336         changed.  But support the old name if the new one is not defined
70337         and if _REGEX_SOURCE.
70338
70339         Change the following member names in struct re_pattern_buffer.
70340         The old names are still supported if !_REGEX_SOURCE.
70341         The new names are always supported, regardless of _REGEX_SOURCE.
70342         (re_buffer): Renamed from buffer.
70343         (re_allocated): Renamed from allocated.
70344         (re_used): Renamed from used.
70345         (re_syntax): Renamed from syntax.
70346         (re_fastmap): Renamed from fastmap.
70347         (re_translate): Renamed from translate.
70348         (re_can_be_null): Renamed from can_be_null.
70349         (re_regs_allocated): Renamed from regs_allocated.
70350         (re_fastmap_accurate): Renamed from fastmap_accurate.
70351         (re_no_sub): Renamed from no_sub.
70352         (re_not_bol): Renamed from not_bol.
70353         (re_not_eol): Renamed from not_eol.
70354         (re_newline_anchor): Renamed from newline_anchor.
70355
70356         Change the following member names in struct re_registers.
70357         The old names are still supported if !_REGEX_SOURCE.
70358         The new names are always supported, regardless of _REGEX_SOURCE.
70359         (rm_num_regs): Renamed from num_regs.
70360         (rm_start): Renamed from start.
70361         (rm_end): Renamed from end.
70362
70363         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
70364         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
70365         Prepend __ to parameter names.
70366
70367         Undo yesterday's changes.
70368
70369 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
70370
70371         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
70372         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
70373         lib/regex.c.
70374
70375 2005-08-24  Jim Meyering  <jim@meyering.net>
70376
70377         Sync from coreutils.
70378         * m4/fcntl-safer.m4: New file.
70379
70380         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
70381         and object files for this module.
70382
70383 2005-08-24  Jim Meyering  <jim@meyering.net>
70384
70385         Sync from coreutils.
70386         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
70387
70388 2005-08-24  Jim Meyering  <jim@meyering.net>
70389
70390         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
70391         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
70392
70393 2005-08-24  Jim Meyering  <jim@meyering.net>
70394
70395         * modules/fcntl-safer: New module.
70396         * modules/fts (Depends-on): Add fcntl-safer.
70397         * MODULES.html.sh (File descriptor based Input/Output):
70398         Add fcntl-safer.
70399
70400 2005-08-24  Bruno Haible  <bruno@clisp.org>
70401
70402         Support for unit test modules.
70403         * modules/README: Mention tests modules.
70404         * modules/TEMPLATE-TESTS: New file.
70405         * gnulib-tool: New options --extract-tests-module, --with-tests and
70406         --tests-base (unused for the moment).
70407         (testsbase, inctests): New variables.
70408         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
70409         (func_verify_module): Exclude TEMPLATE-TESTS.
70410         (func_verify_nontests_module, func_verify_tests_module): New functions.
70411         (func_get_dependencies): Add implicit dependency for tests modules.
70412         (func_get_tests_module): New function.
70413         (func_modules_transitive_closure): When --with-tests was specified,
70414         include the unit tests as well, unless explicitly avoided.
70415         (func_emit_lib_Makefile_am): Ignore the tests modules here.
70416         (func_emit_tests_Makefile_am): New function.
70417         (func_create_testdir): When --with-tests was specified, emit a
70418         tests/ directory.
70419         * MODULES.html.sh (Future developments): Update.
70420
70421 2005-08-24  Bruno Haible  <bruno@clisp.org>
70422
70423         * modules/tls-tests: New file.
70424         * tests/test-tls.c: New file, from GNU gettext.
70425
70426 2005-08-24  Bruno Haible  <bruno@clisp.org>
70427
70428         * modules/lock-tests: New file.
70429         * tests/test-lock.c: New file, from GNU gettext.
70430
70431 2005-08-24  Bruno Haible  <bruno@clisp.org>
70432
70433         * lib/lock.h: Add multiple inclusion guard.
70434         * lib/tls.h: Add multiple inclusion guard.
70435
70436 2005-08-24  Bruno Haible  <bruno@clisp.org>
70437
70438         * gnulib-tool: Add support for the --aux-dir option to
70439         --create-testdir, --create-megatestdir, --test, --megatest.
70440         (func_create_testdir, func_create_megatestdir): Optionally emit a
70441         AC_CONFIG_AUX_DIR directive.
70442         (create-testdir, create-megatestdir, test, megatest): Provide a
70443         default value for $auxdir.
70444
70445 2005-08-24  Bruno Haible  <bruno@clisp.org>
70446
70447         * gnulib-tool (import): Use compound statement instead of subshell
70448         where possible.
70449
70450 2005-08-24  Bruno Haible  <bruno@clisp.org>
70451
70452         * gnulib-tool (import): Change --aux-dir default to "build-aux".
70453
70454 2005-08-24  Bruno Haible  <bruno@clisp.org>
70455
70456         * gnulib-tool (func_version): Update.
70457
70458 2005-08-24  Bruno Haible  <bruno@clisp.org>
70459
70460         * gnulib-tool (func_import, func_create_testdir,
70461         func_create_megatestdir): Quote all autoconf macro arguments.
70462
70463 2005-08-24  Bruno Haible  <bruno@clisp.org>
70464
70465         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
70466         option --force, because --force causes the aclocal.m4 of each
70467         subdirectory to be newer than the corresponding config.h.in.
70468
70469 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
70470
70471         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
70472         All contents moved to gl_REGEX.
70473         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
70474         assume that it does.
70475
70476 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
70477
70478         * lib/regex.h (REG_NOSYS)
70479         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
70480         Define, since POSIX requires it as of 2001.
70481         (_REG_ENOSYS)
70482         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
70483         New private symbol, used to keep the enum signed in all cases.
70484         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
70485         Youngman in
70486         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
70487
70488         * lib/regex_internal.c (re_string_skip_chars, register_state):
70489         (calc_state_hash):
70490         Remove forward decls; no longer needed now that we use prototypes.
70491         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
70492         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
70493         (clean_state_log_if_needed): Likewise.
70494
70495 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
70496
70497         * config/srclist.txt: Add glibc bugs 1231-1233.
70498
70499 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70500
70501         Fix problems reported by Sam Steingold in
70502         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
70503         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
70504         assumed that reg_errcode_t is a signed type, which is not
70505         necessarily true if _XOPEN_SOURCE is not defined.
70506         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
70507         since some compilers warn about it otherwise.
70508
70509 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70510
70511         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
70512         (init_word_char, create_initial_state, duplicate_node_closure):
70513         (fetch_token, peek_token_bracket, build_range_exp):
70514         (build_collating_symbol): Remove forward decls; no longer needed
70515         now that we use prototypes.
70516
70517         * lib/regcomp.c:
70518         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
70519         (re_compile_fastmap_iter, regcomp, regerror, regfree):
70520         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
70521         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
70522         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
70523         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
70524         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
70525         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
70526         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
70527         (build_range_exp, build_collating_symbol, parse_bracket_exp):
70528         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
70529         (build_charclass, build_charclass_op, fetch_number, create_tree):
70530         (create_token_tree, mark_opt_subexp, duplicate_tree):
70531         Use prototypes rather than old-style definitions.
70532
70533         * lib/regex_internal.c:
70534         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
70535         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
70536         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
70537         (re_string_reconstruct, re_string_peek_byte_case):
70538         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
70539         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
70540         (re_node_set_init_copy, re_node_set_add_intersect):
70541         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
70542         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
70543         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
70544         (re_acquire_state, re_acquire_state_context, register_state):
70545         (create_ci_newstate, create_cd_newstate, free_state):
70546         Likewise.
70547         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
70548         re_search_2):
70549         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
70550         (re_search_internal, prune_impossible_nodes):
70551         (acquire_init_state_context, check_matching, static):
70552         (check_halt_node_context, check_halt_state_context, proceed_next_node):
70553         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
70554         (update_regs, sift_states_backward, build_sifted_states):
70555         (clean_state_log_if_needed, merge_state_array):
70556         (update_cur_sifted_state, add_epsilon_src_nodes):
70557         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
70558         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
70559         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
70560         (find_recover_state, check_subexp_matching_top, transit_state_mb):
70561         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
70562         (check_arrival, check_arrival_add_next_nodes):
70563         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
70564         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
70565         (check_node_accept_bytes, check_node_accept, extend_buffers):
70566         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
70567         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
70568         (sift_ctx_init):
70569         Likewise.
70570
70571         * lib/regex_internal.h:
70572         (re_string_allocate, re_string_construct, re_string_reconstruct):
70573         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
70574         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
70575         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
70576         (re_string_context_at, re_string_peek_byte_case):
70577         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
70578         is defined, since we now use prototypes always.
70579
70580         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
70581         C89 or better.  All uses removed.
70582
70583 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70584
70585         * config/srclist.txt: Add glibc bugs 1220-1227.
70586
70587 2005-08-20  Jim Meyering  <jim@meyering.net>
70588
70589         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
70590         of unused local, dfa.
70591
70592 2005-08-20  Bruno Haible  <bruno@clisp.org>
70593
70594         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
70595
70596 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70597
70598         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
70599         (re_node_set_insert_last, re_dfa_add_node):
70600         Rename local variables to avoid GCC shadowing warnings.
70601
70602 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70603
70604         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
70605         [defined lint]: Suppress bogus uninitialized-variable warnings.
70606
70607         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
70608         and let the caller return REG_ESPACE if out of space.  This
70609         removes an uninitialied-variable warning with GCC 4.0.1, and also
70610         avoids taking the address of a local variable.  All callers
70611         changed.
70612
70613 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70614
70615         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
70616         $LIBCSRC/posix/regexec.c.
70617         Add glibc bug 1217 for regcomp.c.
70618
70619 2005-08-19  Jim Meyering  <jim@meyering.net>
70620
70621         * lib/regexec.c (proceed_next_node): Redo local variables to
70622         avoid GCC shadowing warnings.
70623
70624 2005-08-18  Bruno Haible  <bruno@clisp.org>
70625
70626         * lib/strstr.c (strstr): Fix return value in multibyte case.
70627         * lib/strcasestr.c (strcasestr): Likewise.
70628
70629 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
70630
70631         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
70632
70633 2005-08-17  Jim Meyering  <jim@meyering.net>
70634
70635         Make the %s format (seconds since the epoch) work for a negative
70636         number and when used with a zero-padded field width, e.g. %015s.
70637
70638         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
70639         label so that it precedes the code to set `digits'.  Otherwise,
70640         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
70641         print `00-22'.  Now, it prints `-0022', as it should.
70642
70643 2005-08-17  Bruno Haible  <bruno@clisp.org>
70644
70645         * modules/strstr (Files): Add m4/mbrtowc.m4.
70646         (Depends-on): Add mbuiter.
70647
70648 2005-08-17  Bruno Haible  <bruno@clisp.org>
70649
70650         * modules/strcasestr: New file.
70651         * MODULES.html.sh (String handling, based on ANSI C 89): Add
70652         strcasestr.
70653
70654 2005-08-17  Bruno Haible  <bruno@clisp.org>
70655
70656         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
70657
70658 2005-08-17  Bruno Haible  <bruno@clisp.org>
70659
70660         * modules/mbuiter: New file.
70661         * MODULES.html.sh (Extended multibyte and wide character utilities):
70662         Add mbuiter.
70663
70664 2005-08-17  Bruno Haible  <bruno@clisp.org>
70665
70666         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
70667         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
70668
70669 2005-08-17  Bruno Haible  <bruno@clisp.org>
70670
70671         * m4/strcasestr.m4: New file.
70672
70673 2005-08-17  Bruno Haible  <bruno@clisp.org>
70674
70675         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
70676         * lib/strstr.c: Completely rewritten, with multibyte locale support.
70677
70678 2005-08-17  Bruno Haible  <bruno@clisp.org>
70679
70680         * lib/strcasestr.h: New file.
70681         * lib/strcasestr.c: New file.
70682
70683 2005-08-17  Bruno Haible  <bruno@clisp.org>
70684
70685         * lib/strcasecmp.c: Use mbuiter.h.
70686
70687 2005-08-17  Bruno Haible  <bruno@clisp.org>
70688
70689         * lib/mbuiter.h: New file.
70690
70691 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
70692
70693         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
70694         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
70695         and gl_GETOPT are both invoked via different paths (as happens
70696         with GNU tar CVS because it uses both argp and getopt), the former
70697         wins.
70698
70699 2005-08-16  Bruno Haible  <bruno@clisp.org>
70700
70701         * modules/tls: New file.
70702         * MODULES.html.sh (Multithreading): Add tls.
70703
70704 2005-08-16  Bruno Haible  <bruno@clisp.org>
70705
70706         * modules/strnlen1: New file.
70707         * MODULES.html.sh (String handling): Add strnlen1.
70708
70709 2005-08-16  Bruno Haible  <bruno@clisp.org>
70710
70711         * modules/strcase (Files): Add m4/mbrtowc.m4.
70712         (Depends-on): Add strnlen1, mbchar.
70713
70714 2005-08-16  Bruno Haible  <bruno@clisp.org>
70715
70716         * modules/mbiter: New file.
70717         * MODULES.html.sh (Extended multibyte and wide character utilities):
70718         Add mbiter.
70719
70720 2005-08-16  Bruno Haible  <bruno@clisp.org>
70721
70722         * modules/mbfile: New file.
70723         * MODULES.html.sh (Extended multibyte and wide character utilities):
70724         Add mbfile.
70725
70726 2005-08-16  Bruno Haible  <bruno@clisp.org>
70727
70728         * modules/mbchar: New file.
70729         * MODULES.html.sh (Extended multibyte and wide character utilities):
70730         New section.
70731
70732 2005-08-16  Bruno Haible  <bruno@clisp.org>
70733
70734         * m4/tls.m4: New file, from GNU gettext.
70735
70736 2005-08-16  Bruno Haible  <bruno@clisp.org>
70737
70738         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
70739         always.
70740         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
70741
70742 2005-08-16  Bruno Haible  <bruno@clisp.org>
70743
70744         * m4/mbiter.m4: New file.
70745
70746 2005-08-16  Bruno Haible  <bruno@clisp.org>
70747
70748         * m4/mbfile.m4: New file.
70749
70750 2005-08-16  Bruno Haible  <bruno@clisp.org>
70751
70752         * m4/mbchar.m4: New file.
70753
70754 2005-08-16  Bruno Haible  <bruno@clisp.org>
70755
70756         * lib/tls.h: New file, from GNU gettext.
70757         * lib/tls.c: New file, from GNU gettext.
70758
70759 2005-08-16  Bruno Haible  <bruno@clisp.org>
70760
70761         * lib/strnlen1.h: New file.
70762         * lib/strnlen1.c: New file.
70763
70764 2005-08-16  Bruno Haible  <bruno@clisp.org>
70765
70766         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
70767         (mbi_init): Update.
70768         (mbi_avail, mbi_advance): Let the iteration end before the terminating
70769         NUL byte, not after it.
70770
70771 2005-08-16  Bruno Haible  <bruno@clisp.org>
70772
70773         * lib/strcase.h (strcasecmp): Add note in comments.
70774         * lib/strncasecmp.c: Use code from strcasecmp.c.
70775         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
70776         (strcasecmp): Work correctly in multibyte locales.
70777
70778 2005-08-16  Bruno Haible  <bruno@clisp.org>
70779
70780         * lib/mbiter.h: New file.
70781
70782 2005-08-16  Bruno Haible  <bruno@clisp.org>
70783
70784         * lib/mbfile.h: New file.
70785
70786 2005-08-16  Bruno Haible  <bruno@clisp.org>
70787
70788         * lib/mbchar.h: New file.
70789         * lib/mbchar.c: New file.
70790
70791 2005-08-16  Bruno Haible  <bruno@clisp.org>
70792
70793         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
70794         the valid ones. Makes the comparison operations transitive:
70795         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
70796         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
70797
70798 2005-08-15  Simon Josefsson  <jas@extundo.com>
70799
70800         * modules/ssize_t (License): Change to 'unlimited'.
70801
70802         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
70803
70804 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70805
70806         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
70807         Add comments for each pending glibc patch.
70808
70809 2005-08-15  Bruno Haible  <bruno@clisp.org>
70810
70811         * lib/regex.h (__restrict_arr): Don't define to __restrict if
70812         __cplusplus is defined.
70813
70814 2005-08-14  Jim Meyering  <jim@meyering.net>
70815
70816         Sync from coreutils.
70817
70818         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
70819         Use the hash-table-based cycle-detection code not just when
70820         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
70821         Reported by James Youngman in
70822         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
70823         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
70824         FTS_TIGHT_CYCLE_CHECK.
70825         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
70826         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
70827         once again.
70828         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
70829         * lib/fts.c (fd_safer): Remove decl.
70830         Include fcntl--.h rather than unistd-safer.h
70831         (fts_safe_changedir): Don't call fd_safer; no longer needed
70832         now that we include fcntl--.h.
70833
70834 2005-08-12  Simon Josefsson  <jas@extundo.com>
70835
70836         * modules/getndelim2: Use ssize_t module.
70837         * modules/getnline: Likewise.
70838         * modules/safe-read: Likewise.
70839         * modules/xreadlink: Likewise.
70840
70841         * modules/ssize_t: New file.
70842
70843 2005-08-12  Simon Josefsson  <jas@extundo.com>
70844
70845         * m4/readline.m4: Look for termcap, curses or ncurses if required.
70846
70847 2005-08-12  Simon Josefsson  <jas@extundo.com>
70848
70849         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70850         ssize_t.
70851
70852 2005-08-12  Simon Josefsson  <jas@extundo.com>
70853
70854         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
70855         readline, getdelim and check_version.
70856         (Support for systems lacking ISO C 99: Sizes of integer types):
70857         Add size_max.
70858
70859 2005-08-12  Bruno Haible  <bruno@clisp.org>
70860
70861         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
70862
70863 2005-08-11  Simon Josefsson  <jas@extundo.com>
70864
70865         * modules/readline: New file.
70866
70867         * modules/strnlen (Files): Add strnlen.h.
70868
70869 2005-08-11  Simon Josefsson  <jas@extundo.com>
70870
70871         * m4/readline.m4: New file.
70872
70873 2005-08-11  Simon Josefsson  <jas@extundo.com>
70874
70875         * lib/readline.h, readline.c: New file.
70876
70877 2005-08-11  Simon Josefsson  <jas@extundo.com>
70878
70879         * doc/gnulib.texi (Initial import, Finishing touches): Mention
70880         gl_AVOID.
70881
70882 2005-08-11  Bruno Haible  <bruno@clisp.org>
70883
70884         * lib/strnlen.h (strnlen): Change parameter name to match comment.
70885
70886 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
70887
70888         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
70889
70890 2005-08-10  Simon Josefsson  <jas@extundo.com>
70891
70892         * tests/test-iconvme.c: New file.
70893
70894 2005-08-10  Simon Josefsson  <jas@extundo.com>
70895
70896         * m4/strnlen.m4: New file.
70897
70898         * m4/strndup.m4: Don't check for strnlen declaration, done in
70899         strnlen.m4.
70900
70901 2005-08-10  Simon Josefsson  <jas@extundo.com>
70902
70903         * lib/strndup.c: Use strnlen.h.
70904
70905         * lib/strnlen.h: New file.
70906
70907 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
70908
70909         * README: Typos.
70910
70911 2005-08-02  Simon Josefsson  <jas@extundo.com>
70912
70913         * modules/readline: New file.
70914
70915 2005-08-02  Simon Josefsson  <jas@extundo.com>
70916
70917         * modules/getdelim: New file.
70918
70919         * modules/getline: Rewrite, don't use getndelim2.
70920
70921 2005-08-02  Simon Josefsson  <jas@extundo.com>
70922
70923         * m4/getline.m4: Separate out getdelim stuff into separate module.
70924
70925         * m4/getdelim.m4: New file.
70926
70927 2005-08-02  Simon Josefsson  <jas@extundo.com>
70928
70929         * lib/getline.h, getline.c: Rewrite.
70930
70931         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
70932
70933 2005-07-31  Bruno Haible  <bruno@clisp.org>
70934
70935         * lib/lock.h (gl_lock_initializer): New macro.
70936         (gl_lock_define_initialized): Use it.
70937         (gl_rwlock_initializer): New macro.
70938         (gl_rwlock_define_initialized): Use it.
70939         (gl_recursive_lock_initializer): New macro.
70940         (gl_recursive_lock_define_initialized): Use it.
70941
70942 2005-07-30  Karl Berry  <karl@gnu.org>
70943
70944         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
70945         Report from Ben Pfaff, regarding getopt.
70946
70947 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
70948
70949         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
70950         normal way.
70951         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
70952         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
70953         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
70954         (gl_GETOPT): Use the new macros.  Most of the implementation
70955         is moved to the new macros.  This is for programs like Emacs
70956         that don't want all the functionality of gl_GETOPT.
70957
70958 2005-07-26  Bruno Haible  <bruno@clisp.org>
70959
70960         * m4/lock.m4: Update from GNU gettext.
70961
70962 2005-07-26  Bruno Haible  <bruno@clisp.org>
70963
70964         * lib/lock.h: Update from GNU gettext.
70965         * lib/lock.c: Update from GNU gettext.
70966
70967 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
70968
70969         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
70970         obsolescent AC_TRY_RUN.  Include the default includes files, for
70971         'exit'.
70972
70973 2005-07-24  Bruno Haible  <bruno@clisp.org>
70974
70975         * modules/visibility: New file.
70976         * MODULES.html.sh (Misc): Add visibility.
70977
70978 2005-07-24  Bruno Haible  <bruno@clisp.org>
70979
70980         * m4/visibility.m4: New file.
70981
70982 2005-07-24  Bruno Haible  <bruno@clisp.org>
70983
70984         * doc/visibility.texi: New file.
70985
70986 2005-07-22  Bruno Haible  <bruno@clisp.org>
70987
70988         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
70989         $(ALLOCA_H), redundant through BUILT_SOURCES.
70990         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
70991         redundant through BUILT_SOURCES.
70992         * modules/byteswap (Makefile.am): Remove explicit dependency on
70993         $(BYTESWAP_H), redundant through BUILT_SOURCES.
70994         * modules/fnmatch (Makefile.am): Remove explicit dependency on
70995         $(FNMATCH_H), redundant through BUILT_SOURCES.
70996         * modules/getopt (Makefile.am): Remove explicit dependency on
70997         $(GETOPT_H), redundant through BUILT_SOURCES.
70998         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
70999         redundant through BUILT_SOURCES.
71000         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
71001         redundant through BUILT_SOURCES.
71002         * modules/stdbool (Makefile.am): Remove explicit dependency on
71003         $(STDBOOL_H), redundant through BUILT_SOURCES.
71004         * modules/stdint (Makefile.am): Remove explicit dependency on
71005         $(STDINT_H), redundant through BUILT_SOURCES.
71006         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
71007         Remove explicit dependency on $(SYSEXITS_H).
71008         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
71009
71010 2005-07-18  Simon Josefsson  <jas@extundo.com>
71011
71012         * lib/check-version.c (check_version): Accept identical versions too.
71013
71014 2005-07-18  Bruno Haible  <bruno@clisp.org>
71015
71016         * modules/lock: New file.
71017         * MODULES.html.sh (Multithreading): New section.
71018
71019 2005-07-18  Bruno Haible  <bruno@clisp.org>
71020
71021         * m4/lock.m4: New file, from GNU gettext.
71022
71023 2005-07-18  Bruno Haible  <bruno@clisp.org>
71024
71025         * lib/lock.h: New file, from GNU gettext.
71026         * lib/lock.c: New file, from GNU gettext.
71027
71028 2005-07-18  Bruno Haible  <bruno@clisp.org>
71029
71030         * lib/lock.h (gl_once_t): New type.
71031         (gl_once_define, gl_once): New macros.
71032         * lib/lock.c (fresh_once): New variable.
71033         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
71034         functions.
71035
71036 2005-07-16  Simon Josefsson  <jas@extundo.com>
71037
71038         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
71039         workaround, suggested by Bruno.
71040
71041 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
71042
71043         * modules/xalloc (Depends-on): Add xalloc-die.
71044         * modules/xvasprintf (Depends-on): Add xalloc-die.
71045
71046 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
71047
71048         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
71049         with a minor change.
71050
71051 2005-07-15  Bruno Haible  <bruno@clisp.org>
71052
71053         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
71054         When using lib/poll.c, define poll as rpl_poll.
71055
71056 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
71057
71058         * modules/argp (Depends-on): Remove unlocked-io.
71059
71060 2005-07-14  Derek Price  <derek@ximbiot.com>
71061
71062         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
71063         for glob symlink bug.
71064
71065 2005-07-14  Bruno Haible  <bruno@clisp.org>
71066
71067         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
71068         Instead, test for *_unlocked function declarations directly.
71069
71070 2005-07-11  Simon Josefsson  <jas@extundo.com>
71071
71072         * modules/size_max: New file.
71073
71074         * modules/xsize: Depend on size_max module for size_max.m4.
71075
71076 2005-07-11  Simon Josefsson  <jas@extundo.com>
71077
71078         * lib/size_max.h: New file.
71079
71080 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
71081
71082         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
71083         copyright symbol and the year.
71084         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
71085         (version_etc_va): Use parameterized copyright notice.
71086         Reword to conform to the current GNU coding standards.
71087
71088 2005-07-11  Karl Berry  <karl@gnu.org>
71089
71090         * doc/gnulib.texi (Quoting): new node.
71091         (Initial import): more info, from Patrice.
71092
71093 2005-07-11  Bruno Haible  <bruno@clisp.org>
71094
71095         * gnulib-tool (func_usage): Document option --avoid.
71096         (Command line options): Handle --avoid.
71097         (func_acceptable): New function.
71098         (func_modules_transitive_closure): Use it.
71099
71100 2005-07-11  Bruno Haible  <bruno@clisp.org>
71101
71102         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
71103         Reported by Jim Meyering.
71104
71105 2005-07-10  Bruno Haible  <bruno@clisp.org>
71106
71107         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
71108         Needed when size_t is smaller than 'unsigned int'.
71109         Reported by Paul Eggert.
71110
71111 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
71112
71113         * modules/argp (Depends-on): Add unlocked-io
71114
71115 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
71116
71117         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
71118         block of defines.
71119
71120 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
71121
71122         * config/srclist.txt: Comment out regcomp.c, since we have a porting
71123         fix now.
71124
71125 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
71126         and Paul Eggert  <eggert@cs.ucla.edu>
71127
71128         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
71129         in wint_t, not wchar_t.  Remove now-unnecessary cast.
71130
71131 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
71132
71133         * modules/regex (Files): Add lib/regex_internal.c,
71134         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
71135         (Depends-on): Add extensions.
71136         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
71137
71138 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
71139
71140         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
71141         pathconf.
71142         * m4/same.m4 (gl_SAME): Likewise.
71143         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
71144
71145         * m4/regex.m4: Adjust to new libc regex implementation.
71146         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
71147         all the .c and .h parts of (the new) regex.
71148         Quote the m4 stuff better.
71149         Check for RE_ICASE bug of old gnulib.
71150         Check for REG_STARTEND of recent libc.
71151         Rename local variables from jm_* to gl_*.
71152         Quote operand of "test -f".
71153         Say "recent enough" version of libc, not "version 2".
71154         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
71155         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
71156         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
71157         Remove check for btowc, isascii.
71158         Require AM_LANGINFO_CODESET.
71159
71160 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
71161
71162         * lib/regex.c, regex.h: Sync from libc.
71163         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
71164         * lib/regexec.c:
71165         New files, synced from libc, except that regex_internal.h
71166         currently has a small porting fix.
71167
71168 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
71169
71170         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
71171         regex_internal.c, regexec.c.
71172         Add regex_internal.h too, but as a comment, since the libc version
71173         is currently broken in gnulib mode.
71174
71175 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71176
71177         Support programs like Emacs that use gnulib but not gettext.
71178         * MODULES.html.sh (Internationalization functions): Add gettext-h.
71179         * modules/gettext-h: New file.
71180         * modules/gettext (Files): Remove lib/gettext.h.
71181         (Depends-on): Add gettext-h.
71182         (Makefile.am): Remove lib_SOURCES.
71183         * modules/argmatch, modules/c-stack, modules/closeout:
71184         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
71185         * modules/execute, modules/file-type, modules/getaddrinfo:
71186         * modules/getopt, modules/human, modules/javacomp:
71187         * modules/javaexec, modules/mkdir-p, modules/obstack:
71188         * modules/openat, modules/pagealign_alloc, modules/pipe:
71189         * modules/quotearg, modules/regex, modules/rpmatch:
71190         * modules/unicodeio, modules/userspec, modules/version-etc:
71191         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
71192         * modules/xsetenv:
71193         Depend on gettext-h, not gettext.
71194
71195 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
71196
71197         * gnulib-tool (func_import): Add support for 'public domain' license.
71198         * modules/alloca, modules/atexit, modules/memmove:
71199         Now public domain, not GPL.
71200         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
71201         * modules/realloc, modules/strerror, modules/strtod:
71202         Now LGPL, not GPL.
71203
71204 2005-07-05  Bruno Haible  <bruno@clisp.org>
71205
71206         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
71207         autoconf CVS. Needed for mingw.
71208
71209 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71210
71211         Remove the dependency of the strftime module on the tzset module.
71212         * modules/strftime (Depends-on): Remove dependency on tzset.
71213
71214 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71215
71216         Remove the dependency of the strftime module on the tzset module.
71217         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
71218         gl_FUNC_TZSET_CLOBBER.
71219
71220 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71221
71222         Remove the dependency of the strftime module on the tzset module.
71223         * lib/strftime.c (my_strftime)
71224         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
71225         Copy the input structure, to work around some of the bug with
71226         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
71227         Solaris releases, you should also use the tzset module, but we won't
71228         require it as a dependency any more since we don't want LGPLed code
71229         to depend on GPLed code.
71230
71231 2005-07-02  Jim Meyering  <jim@meyering.net>
71232
71233         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
71234         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
71235         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
71236         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
71237
71238 2005-07-02  Jim Meyering  <jim@meyering.net>
71239
71240         * lib/backupfile.c (backup_args): Change a `0' to NULL.
71241
71242 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71243
71244         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
71245         declares only 'struct timespec;' (!).
71246
71247 2005-07-01  Jim Meyering  <jim@meyering.net>
71248
71249         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
71250         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
71251         * lib/save-cwd.c, tempname.c:
71252         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
71253         and don't include <sys/file.h>).
71254
71255 2005-06-29  Jim Meyering  <jim@meyering.net>
71256
71257         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
71258         type name.  Use the variable name instead.
71259         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
71260         Likewise.
71261
71262 2005-06-28  Simon Josefsson  <jas@extundo.com>
71263
71264         * modules/check-version (Files): Add check-version.m4.
71265
71266 2005-06-28  Simon Josefsson  <jas@extundo.com>
71267
71268         * m4/check-version.m4: New file, suggested by Jim Meyering
71269         <jim@meyering.net>.
71270
71271 2005-06-28  Simon Josefsson  <jas@extundo.com>
71272
71273         * lib/check-version.h, lib/check-version.c: New files.
71274
71275 2005-06-28  Simon Josefsson  <jas@extundo.com>
71276
71277         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
71278         collision with global variable.  Better indentation.  Don't
71279         increment buffer pointer beyond buffer end.  Based on comments
71280         from Paul Eggert <eggert@cs.ucla.edu>.
71281
71282         * lib/base64.h: Indent.
71283
71284 2005-06-28  Simon Josefsson  <jas@extundo.com>
71285
71286         * doc/gnulib.texi (Library version handling): New section.
71287
71288 2005-06-28  Jim Meyering  <jim@meyering.net>
71289
71290         * check-module (find_included_lib_files): Hard-code another
71291         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
71292         but modules/fts-lgpl (correctly) does not list those files.
71293
71294         * modules/canonicalize (Files): Add lib/pathmax.h.
71295
71296 2005-06-25  Simon Josefsson  <jas@extundo.com>
71297
71298         * modules/check-version: New file.
71299
71300 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
71301
71302         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
71303         initializer of struct addrinfo, as an indication that we don't
71304         care how many members the structure has.
71305
71306 2005-06-24  Derek Price  <derek@ximbiot.com>
71307         and Bruno Haible  <bruno@clisp.org>
71308
71309         Remove stat module & update lstat.
71310         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
71311         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
71312         * m4/stat.m4: Remove this file.
71313
71314 2005-06-24  Derek Price  <derek@ximbiot.com>
71315         and Bruno Haible  <bruno@clisp.org>
71316
71317         Remove stat module & update lstat.
71318         * lib/stat.c: Remove this file...
71319         (slash_aware_lstat): ...moving this content and its support...
71320         * lib/lstat.c (rpl_lstat): ...into here.
71321         * lib/lstat.h: New file.
71322
71323 2005-06-24  Derek Price  <derek@ximbiot.com>
71324         and Bruno Haible  <bruno@clisp.org>
71325
71326         Remove stat module & update lstat.
71327         * config/srclist.txt (libc sources): Remove stat.
71328
71329 2005-06-24  Derek Price  <derek@ximbiot.com>
71330         and Bruno Haible  <bruno@clisp.org>
71331
71332         Remove stat module & update lstat.
71333         * MODULES.html.sh (stat): Remove.
71334         * MODULES.html: Regenerated.
71335         * modules/lstat (Description): Correct function name.
71336         (Files): Add "lstat.h".
71337         (Depends-on): Remove stat, add xalloc, stat-macros.
71338         * modules/stat: Remove this file.
71339         (Include): Add "lstat.h", remove <sys/stat.h>.
71340
71341 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
71342
71343         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
71344         (ranged_convert): Don't save conversion in a temporary struct.
71345         This causes a warning with GCC 4.0.0, and anyway in the typical
71346         case it's not worth the extra 100 bytes or so of code.
71347         (ranged_convert, __mktime_internal): When calling a function via a
71348         pointer P, use P () rather than (*P) (), as we now assume C89 or
71349         better.
71350
71351 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71352
71353         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
71354         "who -r" failed to give output.  Problem reported by Tim Waugh.
71355
71356         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
71357         (xcalloc): Use it to avoid needless tests.
71358         Problem reported by Jim Meyering.
71359
71360 2005-06-20  Derek Price  <derek@ximbiot.com>
71361
71362         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
71363         unnecessary for Autoconfs > 2.59c.
71364
71365 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71366
71367         * lib/argp.h (__option_is_short): Check upper limit of
71368         __key. Isprint() requires its argument to have the value
71369         of an unsigned char or EOF.
71370
71371 2005-06-16  Jim Meyering  <jim@meyering.net>
71372
71373         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
71374         when either N or S is zero.
71375
71376 2005-06-16  Derek Price  <derek@ximbiot.com>
71377
71378         * m4/bison.m4: Declare YACC & YFLAGS precious.
71379
71380 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
71381
71382         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
71383         multibyte string or pattern, fall back on unibyte matching.
71384         Problem reported by James Youngman.
71385
71386 2005-06-08  Bruno Haible  <bruno@clisp.org>
71387
71388         * modules/csharpcomp: New file.
71389         * MODULES.html.sh (C#): Add csharpcomp.
71390
71391 2005-06-08  Bruno Haible  <bruno@clisp.org>
71392
71393         * m4/csharpcomp.m4: New file, from GNU gettext.
71394
71395 2005-06-08  Bruno Haible  <bruno@clisp.org>
71396
71397         * lib/csharpcomp.h: New file, from GNU gettext.
71398         * lib/csharpcomp.c: New file, from GNU gettext.
71399         * lib/csharpcomp.sh.in: New file, from GNU gettext.
71400
71401 2005-06-08  Bruno Haible  <bruno@clisp.org>
71402
71403         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
71404         warning on mingw.
71405
71406 2005-06-07  Derek Price  <derek@ximbiot.com>
71407
71408         Sync from CVS.
71409         * lib/glob_.h: Indent nested #ifdef.
71410
71411 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
71412
71413         Sync from coreutils.
71414         Use "file name" when talking about file names, instead of "filename"
71415         or "path", as per the GNU coding standards.
71416         * lib/mkdir-p.c: Renamed from makepath.c.
71417         (make_dir_parents): Renamed from make_path.  All callers changed.
71418         * lib/mkdir-p.h: Likewise.  All includers changed.
71419         * lib/filenamecat.c: Renamed from path-concat.c.
71420         (file_name_concat): Renamed from path_concat.  All callers changed.
71421         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
71422         * lib/filenamecat.h: Likewise.  All includers changed.
71423         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
71424         in comments or local variable names.
71425         * lib/basename.c: Likewise.
71426         * lib/canonicalize.c, canonicalize.h: Likewise.
71427         * lib/dirname.c, dirname.h: Likewise.
71428         * lib/euidaccess.c: Likewise.
71429         * lib/exclude.c: Likewise
71430         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
71431         * lib/fsusage.c, fsuage.h: Likewise.
71432         * lib/fts.c, fts_.h: Likewise.
71433         * lib/getcwd.c: Likewise.
71434         * lib/getloadavg.c: Likewise.
71435         * lib/mkstemp.c: Likewise.
71436         * lib/mountlist.c, mountlist.h: Likewise.
71437         * lib/openat.c, openat.h: Likewise.
71438         * lib/readlink-stub.c: Likewise.
71439         * lib/readutmp.c, readutmp.h: Likewise.
71440         * lib/rename.c: Likewise.
71441         * lib/rmdir.c: Likewise.
71442         * lib/same.c: Likewise.
71443         * lib/savedir.c: Likewise.
71444         * lib/stripslash.c: Likewise.
71445         * lib/tempname.c: Likewise.
71446         * lib/xreadlink.c: Likewise.
71447         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
71448         All uses changed.
71449         * lib/exclude.h: Likewise.
71450
71451         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
71452         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
71453         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
71454         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
71455         * lib/pathmax.h: Include <limits.h> unconditionally, since other
71456         files have been getting away with it for years (MORE/BSD 4.3
71457         is extinct now).
71458         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
71459         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
71460
71461         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
71462         Define to 256, not 255, as per modern POSIX.
71463
71464 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
71465
71466         Sync from coreutils.
71467         Use "file name" when talking about file names, instead of "filename"
71468         or "path", as per the GNU coding standards.
71469         * MODULES.html.sh: mkdir-p renamed from makepath.
71470         filenamecat renamed from path-concat.
71471         * modules/filenamecat: Renamed from modules/path-concat.
71472         (Files): filenamecat.h and filenamecat.c renamed from
71473         path-concat.h and path-concat.c.
71474         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
71475         (Include): filenamecat.h, not path-concat.h.
71476         * modules/mkdir-p: Renamed from modules/makepath.
71477         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
71478         makepath.c.
71479         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
71480         (Include): mkdir-p.h, not makepath.h.
71481
71482 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
71483
71484         Sync from coreutils.
71485         * m4/mkdir-p.m4: Renamed from makepath.m4.
71486         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
71487         Rename files from makepath.c to mkdir-p.c, and from
71488         makepath.h to mkdir-p.h.
71489         * m4/filenamecat.m4: Renamed from path-concat.m4.
71490         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
71491         Rename files from path-concat.c to filenamecat.c,
71492         and from path-concat.h to filenamecat.h.
71493         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
71494         "file name" in local variables or comments.
71495         * m4/rename.m4: Likewise.
71496
71497 2005-06-01  Bruno Haible  <bruno@clisp.org>
71498
71499         * modules/csharpexec: New file.
71500         * MODULES.html.sh (C#): New section.
71501
71502 2005-06-01  Bruno Haible  <bruno@clisp.org>
71503
71504         * m4/csharp.m4: New file, from GNU gettext.
71505         * m4/csharpexec.m4: New file, from GNU gettext.
71506
71507 2005-06-01  Bruno Haible  <bruno@clisp.org>
71508
71509         * lib/csharpexec.h: New file, from GNU gettext.
71510         * lib/csharpexec.c: New file, from GNU gettext.
71511         * lib/csharpexec.sh.in: New file, from GNU gettext.
71512
71513 2005-05-31  Derek Price  <derek@ximbiot.com>
71514             Paul Eggert  <eggert@cs.ucla.edu>
71515
71516         Sync from cvs.
71517         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
71518
71519 2005-05-31  Derek Price  <derek@ximbiot.com>
71520             Paul Eggert  <eggert@cs.ucla.edu>
71521
71522         Sync from cvs.
71523         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
71524
71525 2005-05-29  Derek Price  <derek@ximbiot.com>
71526
71527         * config/srclist.txt (glob_.h, glob.c): Add these files.
71528
71529 2005-05-29  Derek Price  <derek@ximbiot.com>
71530
71531         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
71532         * modules/glob: New file.
71533         * modules/getlogin_r: Add link to POSIX spec in description.
71534
71535 2005-05-29  Derek Price  <derek@ximbiot.com>
71536             Paul Eggert  <eggert@cs.ucla.edu>
71537
71538         * m4/glob.m4: New file.
71539
71540 2005-05-29  Derek Price  <derek@ximbiot.com>
71541             Paul Eggert  <eggert@cs.ucla.edu>
71542
71543         * lib/glob_.h, lib/glob.c: New files.
71544
71545 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
71546
71547         * modules/fts (Files): Remove m4/inttypes-pri.m4.
71548         * modules/fts-lgpl (Depends-on): Remove gettext.
71549
71550 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
71551
71552         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
71553         and don't require gt_INTTYPES_PRI.
71554
71555 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
71556
71557         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
71558
71559         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
71560         the configuration hassle isn't worth it.
71561         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
71562         (LONGEST_MODIFIER, PRIuMAX): Remove.
71563
71564 2005-05-27  Bruno Haible  <bruno@clisp.org>
71565
71566         * lib/getlogin_r.h: Remove second include of <stddef.h>.
71567
71568 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
71569
71570         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
71571         _POSIX_PTHREAD_SEMANTICS for Solaris.
71572
71573 2005-05-25  Derek Price  <derek@ximbiot.com>
71574
71575         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
71576
71577 2005-05-25  Derek Price  <derek@ximbiot.com>
71578             Paul Eggert  <eggert@cs.ucla.edu>
71579
71580         * modules/getlogin_r, m4/getlogin_r.m4: New files.
71581         * lib/getlogin_r.c, getlogin_r.h: New files.
71582
71583 2005-05-25  Bruno Haible  <bruno@clisp.org>
71584             Derek Price  <derek@ximbiot.com>
71585
71586         * lib/getlogin_r.h: Simplify API documentation.
71587
71588 2005-05-23  Derek Price  <derek@ximbiot.com>
71589
71590         * modules/minmax (Files): Add m4/minmax.m4.
71591         (configure.ac): Add gl_MINMAX.
71592
71593 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
71594
71595         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
71596         so that unistd-safer.h (GPL'ed code) need not be included.
71597
71598 2005-05-22  Bruno Haible  <bruno@clisp.org>
71599
71600         * m4/minmax.m4: New file.
71601         Based on a patch by Derek Price <derek@ximbiot.com>.
71602
71603 2005-05-22  Bruno Haible  <bruno@clisp.org>
71604
71605         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
71606         (INT64_MIN): Fix definition.
71607         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
71608
71609         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
71610         NEED_SIGNED_INT_TYPES.
71611
71612         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
71613         HAVE_SYSTEM_INTTYPES.
71614
71615 2005-05-22  Bruno Haible  <bruno@clisp.org>
71616
71617         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
71618         Also include <sys/param.h> if it defines MIN, MAX.
71619         Based on a patch by Derek Price <derek@ximbiot.com>.
71620
71621 2005-05-21  Jim Meyering  <jim@meyering.net>
71622
71623         * modules/fts (Files): Add m4/inttypes-pri.m4.
71624         (Depends-on): Add lstat and remove gettext.  Alphabetize.
71625
71626 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
71627
71628         New fts module.
71629         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
71630         (setup_dir, free_dir): New functions.
71631         (enter_dir, leave_dir): Define trivial
71632         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
71633         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
71634         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
71635         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
71636         Move to fts-cycle.c.
71637         (fts_open): Use setup_dir.
71638         (fts_close): Use free_dir.
71639         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
71640         This adds a label and some gotos, but the alternatives were messier.
71641         Check for memory allocation failure when entering a dir.
71642         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
71643         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
71644         (FTS): New member fts_cycle, that is a union that contains the
71645         old active_dir_ht and cycle_state.  All uses changed to mention
71646         fts_cycle.ht and fts_cycle.state.
71647         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
71648         fts.c, with the following changes:
71649         (setup_dir, free_dir): New functions.
71650         (enter_dir): Now returns bool.  Return true if successful, false
71651         if memory exhausted.  All callers changed.
71652         Do not bother partly cleaning up on
71653         memory allocation failure; that is free_dir's job.
71654         However, free ad if hash_insert fails, to avoid memory leak.
71655         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
71656         fts->fts_options to see which union member to use.
71657
71658 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
71659
71660         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
71661         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
71662
71663 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
71664
71665         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
71666
71667 2005-05-20  Jim Meyering  <jim@meyering.net>
71668
71669         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
71670         Now a macro, to pacify GCC.
71671
71672 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
71673
71674         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
71675         of -1.
71676
71677 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
71678
71679         * lib/chown.c (rpl_chown): Return -1 on failure.
71680
71681 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
71682
71683         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
71684         Don't check for stddef.h.
71685         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
71686         don't use its results.
71687         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
71688         since we include them unconditionally.  Don't require
71689         AM_STDBOOL_H, since stdbool is a prerequisite.
71690         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
71691         since we assume C89 or better.
71692         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
71693         as we don't use their results.
71694         Don't check for fchdir, memmove, memset, strrchr, as we use
71695         them unconditionally.
71696         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
71697         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
71698
71699 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
71700
71701         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
71702         Include <stddef.h> unconditionally, since we assume C89 now.
71703         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
71704         * lib/fts.c: Include fts_.h first, to check interface.
71705         Do not include intprops.h; no longer needed.
71706         Include cycle-check.h and hash.h, since fts_.h no longer does.
71707         Remove unnecessary casts of closedir to void.
71708         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
71709         decide whether to decrement nlinks.
71710         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
71711         (FTS): Use struct hash_table * instead of Hash_table, so that
71712         we no longer need to include hash.h here.
71713
71714 2005-05-18  Jim Meyering  <jim@meyering.net>
71715
71716         * modules/dirfd (License): Change to LGPL.  Most of the code
71717         is already in the public domain.
71718
71719 2005-05-18  Jim Meyering  <jim@meyering.net>
71720
71721         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
71722         Reported by Yoann Vandoorselaere.
71723
71724 2005-05-17  Jim Meyering  <jim@meyering.net>
71725
71726         * m4/fts.m4: New file, from coreutils.
71727
71728 2005-05-17  Jim Meyering  <jim@meyering.net>
71729
71730         * lib/fts.c, lib/fts_.h: New files, from coreutils.
71731
71732 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71733
71734         Sync from coreutils.
71735         * m4/unlinkdir.m4: New file.
71736
71737 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71738
71739         Sync from coreutils.
71740         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
71741         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
71742         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
71743         White space changes only.
71744         * lib/makepath.c (make_path): Port to hosts where leading "//" is
71745         special.
71746         * lib/yesno.c: Include getline.h, not ctype.h.
71747         (yesno): Don't remove leading white space; POSIX doesn't allow it.
71748         Use getline to remove arbitrary restriction on response length.
71749
71750 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71751
71752         * config/srclist-update: Spell out "Street" in FSF postal
71753         mail address; this is the style the FSF seems to prefer.
71754
71755         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
71756         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
71757         this updates FSF postal mail address.
71758
71759         Sync from coreutils.
71760         * modules/unlinkdir: New file.
71761         * modules/yesno (Depends-on): Add getline.
71762         * MODULES.html.sh (File system functions): Add unlinkdir.
71763
71764 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
71765
71766         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
71767         lib/strsep.h:
71768         Change the initial comment to refer to GPL, not LGPL.
71769         gnulib-tool will change it to LGPL as needed.
71770
71771         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
71772         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
71773         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
71774         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
71775         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
71776         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
71777         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
71778         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
71779         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
71780         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
71781         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
71782         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
71783         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
71784         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
71785         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
71786         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
71787         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
71788         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
71789         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
71790         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
71791         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
71792         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
71793         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
71794         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
71795         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
71796         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
71797         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
71798         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
71799         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
71800         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
71801         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
71802         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
71803         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
71804         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
71805         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
71806         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
71807         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
71808         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
71809         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
71810         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
71811         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
71812         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
71813         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
71814         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
71815         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
71816         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
71817         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
71818         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
71819         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
71820         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
71821         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
71822         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
71823         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
71824         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
71825         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
71826         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
71827         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
71828         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
71829         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
71830         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
71831         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
71832         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
71833         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
71834         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
71835         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
71836         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
71837         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
71838         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
71839         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
71840         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
71841         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
71842         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
71843         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
71844         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
71845         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
71846         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
71847         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
71848         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
71849         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
71850         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
71851         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
71852         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
71853         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
71854         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
71855         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
71856         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
71857         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
71858         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
71859         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
71860         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
71861         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
71862         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
71863         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
71864         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
71865         lib/yesno.c, lib/yesno.h:
71866         Update FSF postal mail address.
71867
71868 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
71869
71870         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
71871         tests/test-memmem.c, tests/test-stpncpy.c:
71872         Update FSF postal mail address.
71873
71874 2005-05-13  Bruno Haible  <bruno@clisp.org>
71875
71876         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
71877         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
71878         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
71879         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
71880         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
71881         Add support for 64-bit integers in the MSVC compiler.
71882
71883 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71884
71885         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
71886
71887 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
71888
71889         * gnulib-tool (func_import): Sort and uniquify recommended includes.
71890
71891 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
71892
71893         * doc/getdate.texi (General date syntax): Don't say that date
71894         date --iso-8601=ns generates acceptable dates; it doesn't yet.
71895         Problem reported by Nic Ferrier.
71896
71897 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71898
71899         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
71900         specified in ai_socktype. Fix invalid ai_protocol
71901         check. ai_protocol is usually set to 0 or depending on
71902         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
71903         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
71904         ai_socktype / ai_protocol in the returned addrinfo structure.
71905
71906 2005-05-10  Simon Josefsson  <jas@extundo.com>
71907
71908         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
71909         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
71910
71911 2005-05-10  Karl Berry  <karl@gnu.org>
71912
71913         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
71914         (from http://www.gnu.org/licenses).
71915         * doc/COPYING.LIB: also rename to COPYING.LESSER.
71916         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
71917         fdl.texi suffices.
71918
71919 2005-05-10  Karl Berry  <karl@gnu.org>
71920
71921         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
71922         (COPYING.DOC): remove.
71923
71924         * config/srclist-update: new FSF address.
71925
71926 2005-05-10  Derek Price  <derek@ximbiot.com>
71927
71928         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
71929         possible.
71930
71931 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71932             Bruno Haible  <bruno@clisp.org>
71933
71934         * modules/inet_ntop: New file.
71935         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71936         inet_ntop.
71937
71938 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71939             Bruno Haible  <bruno@clisp.org>
71940
71941         * m4/inet_ntop.m4: New file.
71942
71943 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71944             Bruno Haible  <bruno@clisp.org>
71945
71946         * lib/inet_ntop.h: New file.
71947         * lib/inet_ntop.c: New file, from glibc with modifications.
71948
71949 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
71950
71951         * modules/time_r (License): Change to LGPL.
71952         * modules/extensions (License): Change to LGPL.  Actually,
71953         the license is more permissive than that, but currently gnulib-tool
71954         doesn't know how to handle more-permissive licenses.
71955
71956         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
71957         Problem reported by Dave Love.
71958
71959 2005-05-08  Jim Meyering  <jim@meyering.net>
71960
71961         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
71962         blank.
71963
71964 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
71965
71966         * modules/argmatch (Depends-on): Add stdbool.
71967         * modules/backupfile (Depends-on): Likewise.
71968         * modules/chdir-long (Depends-on): Likewise.
71969         * modules/closeout (Depends-on): Likewise.
71970         * modules/cycle-check (Depends-on): Likewise.
71971         * modules/dirname (Depends-on): Likewise.
71972         * modules/fnmatch (Depends-on): Likewise.
71973         * modules/fsusage (Depends-on): Likewise.
71974         * modules/fwriteerror (Depends-on): Likewise.
71975         * modules/getcwd (Depends-on): Likewise.
71976         * modules/getloadavg (Depends-on): Likewise.
71977         * modules/hard-locale (Depends-on): Likewise.
71978         * modules/makepath (Depends-on): Likewise.
71979         * modules/mountlist (Depends-on): Likewise.
71980         * modules/nanosleep (Depends-on): Likewise.
71981         * modules/posixtm (Depends-on): Likewise.
71982         * modules/quotearg (Depends-on): Likewise.
71983         * modules/readtokens (Depends-on): Likewise.
71984         * modules/readtokens0 (Depends-on): Likewise.
71985         * modules/readutmp (Depends-on): Likewise.
71986         * modules/save-cwd (Depends-on): Likewise.
71987         * modules/strftime (Depends-on): Likewise.
71988         * modules/userspec (Depends-on): Likewise.
71989         * modules/utimecmp (Depends-on): Likewise.
71990         * modules/xgetcwd (Depends-on): Likewise.
71991         * modules/xnanosleep (Depends-on): Likewise.
71992         * modules/xstrtod (Depends-on): Likewise.
71993         * modules/yesno (Depends-on): Likewise.
71994
71995 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
71996
71997         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
71998         needless checks.
71999
72000 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
72001
72002         Merge from coreutils.  Among other things,
72003         add bulletproofing for cases where stdin, stdout, or stderr are closed.
72004         * lib/fd-safer.c: New file.
72005         * lib/fcntl-safer.h, open-safer.c: Remove.
72006         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
72007         * lib/dup-safer.c: Include unistd-safer.h first.
72008         Don't include errno.h.
72009         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
72010         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
72011         * lib/file-type.c: Rely on file-type.h change.
72012         * lib/getloadavg.c: Include unistd-safer.h.
72013         (getloadavg): Use safer open.
72014         * lib/getusershell.c: Include "stdio-safer.h".
72015         (getusershell): Use safer fopen.
72016         * lib/long-options.c (long_options): Use NULL rather than 0.
72017         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
72018         'free'.
72019         * lib/modechange.c: Likewise.
72020         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
72021         (MODE_DONE): New constant.
72022         (struct mode_change): Remove 'next' member.
72023         (make_node_op_equals): New function; like the old one of the
72024         same name, except it allocates an array.
72025         (mode_compile, mode_create_from_ref): Use it.
72026         (mode_compile): Allocate result as an array, not a linked list.
72027         Parse octal string ourself, so that we catch mistakes like "+0".
72028         (mode_adjust): Arg is an array, not a linked list.
72029         * lib/modechange.c: Include stat-macros.h, xalloc.h.
72030         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
72031         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
72032         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
72033         Remove.  This is now stat-macros.h's job.
72034         (talloc): Remove.  All callers replaced by xalloc, so that
72035         our invokers don't have to worry about reporting memory failures.
72036         (make_node_op_equals): Remove.
72037         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
72038         New constants.
72039         (struct mode_change): Moved here from modechange.h.
72040         (mode_append_entry): Remove.
72041         (mode_compile): Remove MASKED_OPS arg, since it encouraged
72042         apps to have incorrect behavior.  Use simpler algorithm for head
72043         and tail.  Don't futz with umask; that's now the job of mode_adjust.
72044         Detect more invalid usages rather than having somewhat-random behavior.
72045         Don't insert an "a=" action, as that leads to incorrect behavior.
72046         (mode_compile, mode_create_from_ref): Return NULL on error instead
72047         of an enum, since now there's only one way to have an error.  All
72048         callers changed.
72049         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
72050         at the correct time.  Simplify calculation of "+u" and its ilk.
72051         Don't mishandle "+X".
72052         (mode_free): Remove "register" and localize decls.
72053         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
72054         (struct mode_change): Move to modechange.c; callers don't
72055         need to see this stuff.
72056         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
72057         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
72058         (mode_change, mode_adjust): Reflect the new signatures noted above.
72059         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
72060         that might redefine system include files.
72061         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
72062         (my_usleep): Use NULL rather than (void *) 0.
72063         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
72064         Use siginterrupt to specify that system calls should be interrupted.
72065         (rpl_nanosleep): Move initialization of suspended closer to call of
72066         my_usleep.
72067         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
72068         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
72069         (desirable_utmp_entry): New function.
72070         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
72071         using x2nrealloc, to simplify logic.
72072         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
72073         size calculation.  Do not assume utmp file is a regular file.
72074         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
72075         (READ_UTMP_CHECK_PIDS): New constant.
72076         * lib/save-cwd.c: Include unistd-safer.h.
72077         (save_cwd): Use fd_safer.
72078         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
72079         [!_LIBC] Include "stat-macros.h" instead.
72080         * lib/unistd-safer.h (fd_safer): New decl.
72081
72082 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
72083
72084         * modules/getloadavg (Depends-on): Add unistd-safer.
72085         * modules/getusershell (Depends-on): Add stdio-safer.
72086         * modules/lstat (Depends-on): Remove xalloc.
72087         * modules/mkstemp (Depends-on): Add stat-macros.
72088         * modules/modechange (Depends-on): Remove xstrtol.
72089         Add stat-macros, xalloc.
72090         * modules/save-cwd (Depends-on): Add unistd-safer.
72091         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
72092         * modules/unistd-safer (Files): Add lib/fd-safer.c
72093         (Makefile.am): Remove lib_SOURCES.
72094
72095         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
72096         Remove fcntl-safer; unistd-safer supersedes it.
72097
72098 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
72099
72100         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
72101         AC_HEADER_STAT.
72102         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
72103         (gl_PREREQ_CHOWN): Remove.
72104         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
72105         it.  Don't require AC_HEADER_STAT.
72106         (gl_PREREQ_LSTAT): Remove.
72107         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
72108         Don't require AC_HEADER_STAT.
72109         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
72110         (gl_PREREQ_RMDIR): Remove.
72111         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
72112         mention stat-macros.h or AC_HEADER_STAT, since we'll make
72113         the stat-macros module a prerequisite.
72114         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
72115         * m4/filemode.m4 (gl_FILEMODE): Likewise.
72116         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
72117         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
72118         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
72119         variable names.
72120         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
72121         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
72122         variable prefixes.
72123         * m4/fcntl-safer.m4: Remove.
72124         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
72125         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
72126         Invoke gl_PREREQ_FD_SAFER.
72127         (gl_PREREQ_FD_SAFER): New macro.
72128         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
72129         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
72130         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
72131         Remove duplicate call to AC_LIBOBJ(readutmp).
72132         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
72133
72134         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
72135         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
72136
72137 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
72138
72139         * MODULES.html.sh (Misc): Add byteswap.
72140
72141 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
72142
72143         * modules/getcwd (Depends-on): Add extensions.
72144         * modules/openat (Depends-on): Likewise.
72145
72146 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
72147
72148         * modules/byteswap: New file.
72149
72150 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
72151
72152         * m4/byteswap.m4: New file.
72153
72154 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
72155
72156         * lib/byteswap_.h: New file.
72157
72158 2005-04-25  Karl Berry  <karl@gnu.org>
72159
72160         * m4/gettext.m4: Update from GNU gettext 0.14.4.
72161
72162 2005-04-25  Albert Chin  <china@thewrittenword.com>
72163
72164         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
72165         Toolkit C bug.
72166
72167 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
72168
72169         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
72170         (func_ln_if_changed): Remove forcibly for no error message
72171         in case file does not exist.
72172
72173 2005-04-19  Simon Josefsson  <jas@extundo.com>
72174
72175         * gnulib-tool (Options): Make --symlink mean --symbolic.
72176
72177 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
72178
72179         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
72180
72181 2005-04-16  Simon Josefsson  <jas@extundo.com>
72182
72183         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
72184
72185 2005-04-15  Simon Josefsson  <jas@extundo.com>
72186
72187         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
72188
72189 2005-04-15  Simon Josefsson  <jas@extundo.com>
72190
72191         * gnulib-tool: Rename --symlink to --symbolic.
72192
72193 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
72194
72195         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
72196         symbolic links to files instead of copying/moving.  Add --aux-dir,
72197         specifying directory relative --dir where auxiliary build tools
72198         are placed.
72199
72200 2005-04-14  Bruno Haible  <bruno@clisp.org>
72201
72202         * modules/allocsa (License): Change to LGPL.
72203         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
72204
72205 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
72206
72207         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
72208         that "UTC +1 second" continues to work.  Problem reported
72209         by Dmitry V. Levin.
72210         (relunit_snumber): New rule.
72211         (relunit): Use it.
72212
72213 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
72214
72215         * lib/getdate.y (universal_time_zone_table): New constant.
72216         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
72217         universal_time_zone_table.
72218         (lookup_zone): Prefer universal_time_zone_table to
72219         local_time_zone_table, so that "GMT" time stamps are allowed in
72220         London during the summer.  Problem reported by Ian Abbott.
72221
72222 2005-04-12  Jim Meyering  <jim@meyering.net>
72223
72224         * lib/human.c (humblock): Set *options even when returning due to
72225         xstrtoumax conversion failure.  Thanks to a used-uninitialized
72226         warning from gcc-4.
72227
72228 2005-04-09  Jim Meyering  <jim@meyering.net>
72229
72230         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
72231         -Wuninitialized: initialize tm0.tm_year.
72232
72233 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
72234
72235         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
72236         count, since there's no maximum.  All uses changed.
72237         Add member dsts_seen.
72238         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
72239         not being INT_MAX.
72240         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
72241         Use pc_rels_seen to decide whther a date is absolute.
72242
72243         * lib/getdate.y (number): Don't overwrite year.
72244         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
72245         check.
72246
72247 2005-04-02  Simon Josefsson  <jas@extundo.com>
72248
72249         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
72250         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
72251
72252 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
72253
72254         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
72255         where no absolute path name can be longer than PATH_MAX.
72256
72257 2005-03-27  Jim Meyering  <jim@meyering.net>
72258
72259         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
72260
72261 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
72262
72263         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
72264         "one's complement" -> "ones' complement" in comment, as per Knuth.
72265         "value of type" -> "type or expression" in comment.
72266         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
72267
72268 2005-03-26  Jim Meyering  <jim@meyering.net>
72269
72270         Comment nits.
72271         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
72272         Correct typos: s/or/of/.
72273
72274 2005-03-26  Jim Meyering  <jim@meyering.net>
72275
72276         * modules/check-include-files: Move to ../ and rename to...
72277         * check-module: ...this.
72278
72279 2005-03-25  Jim Meyering  <jim@meyering.net>
72280
72281         * modules/xvasprintf (Files): Add xalloc.h.
72282
72283 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
72284
72285         * modules/gettext (Files): config/config.rpath ->
72286         build-aux/config.rpath
72287         * modules/iconv (Files): Likewise.
72288         Problem reported by Oskar Liljeblad.
72289
72290 2005-03-23  Jim Meyering  <jim@meyering.net>
72291
72292         * modules/check-include-files: New script to check for
72293         missing dependencies, multiple includes, etc.
72294
72295         * modules/c-strtold (Depends-on): Add xalloc.
72296         * modules/c-strtod (Depends-on): Add xalloc.
72297         * modules/hash (Depends-on): Add xalloc.
72298         (Files): Remove lib/xalloc.h.
72299
72300         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
72301         * modules/userspec (Files): Add lib/inttostr.h.
72302
72303 2005-03-23  Jim Meyering  <jim@meyering.net>
72304
72305         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
72306
72307 2005-03-22  Jim Meyering  <jim@meyering.net>
72308
72309         * modules/stat-macros: New module.
72310         * modules/canonicalize, modules/euidaccess, modules/file-type,
72311         * modules/filemode, modules/lchown, modules/makepath,
72312         * modules/rmdir, modules/stat: Depend on new stat-macros module
72313         rather than listing lib/stat-macros.h manually.
72314         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
72315
72316 2005-03-22  Jim Meyering  <jim@meyering.net>
72317
72318         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
72319
72320 2005-03-22  Bruno Haible  <bruno@clisp.org>
72321
72322         * config/srclist.txt: Replace target directory 'config' with
72323         'build-aux'.
72324         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
72325         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
72326         ../build-aux/.
72327
72328 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
72329
72330         * modules/chdir-long (Depends-on): Add mempcpy.
72331
72332         * modules/acl, modules/backupfile, modules/c-strtod,
72333         modules/c-strtold, modules/canon-host, modules/canonicalize,
72334         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
72335         modules/exclude, modules/exitfail, modules/file-type,
72336         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
72337         modules/getdate, modules/getline, modules/getpagesize,
72338         modules/getpass, modules/getugroups, modules/group-member,
72339         modules/hard-locale, modules/hash, modules/human, modules/idcache,
72340         modules/inttostr, modules/long-options, modules/makepath,
72341         modules/md5, modules/memcasecmp, modules/memcoll,
72342         modules/modechange, modules/mountlist, modules/path-concat,
72343         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
72344         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
72345         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
72346         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
72347         modules/strftime, modules/strndup, modules/strverscmp,
72348         modules/timespec, modules/unlocked-io, modules/userspec,
72349         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
72350         modules/yesno:
72351         Remove lib_SOURCES line from Makefile.am section, as this is now
72352         done automatically by the corresponding Autoconf macro.
72353
72354 2005-03-21  Jim Meyering  <jim@meyering.net>
72355
72356         Changes imported from coreutils.
72357
72358         * lib/cycle-check.c: Don't include xalloc.h.
72359
72360         * lib/path-concat.c: Don't include assert.h.
72361         (path_concat): Remove assertion that would have triggered
72362         for ABASE starting with more than one slash.
72363         Reported by Andreas Schwab.
72364
72365         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
72366         properly when ABASE is an absolute file name.
72367         Correct the description of this function.
72368         Include <assert.h>.
72369         Add an assertion and a test driver.
72370         This fixes a bug introduced on 2004-07-02.
72371         Andreas Schwab reported the resulting failure of cp --parents:
72372         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
72373
72374 2005-03-21  Jim Meyering  <jim@meyering.net>
72375
72376         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
72377         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
72378
72379 2005-03-21  Jim Meyering  <jim@meyering.net>
72380         and  Paul Eggert  <eggert@cs.ucla.edu>
72381
72382         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
72383         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
72384         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
72385         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
72386         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
72387         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
72388         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
72389         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
72390         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
72391         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
72392         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
72393         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
72394         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
72395         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
72396         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
72397         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
72398         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
72399         for these modules.
72400
72401 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
72402
72403         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
72404         (which shouldn't happen), generate nothing instead of returning 0
72405         immediately, so that nstrftime (NULL, ...) doesn't return 0.
72406
72407 2005-03-16  Bruno Haible  <bruno@clisp.org>
72408
72409         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
72410         HAVE_LONGLONG_64BIT.
72411
72412 2005-03-16  Bruno Haible  <bruno@clisp.org>
72413
72414         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
72415         HAVE_LONGLONG_64BIT.
72416
72417 2005-03-16  Bruno Haible  <bruno@clisp.org>
72418
72419         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
72420         HAVE_LONGLONG_64BIT.
72421
72422 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
72423
72424         * lib/strftime.c (my_strftime): Prepend space to format so that we can
72425         reliably distinguish strftime failure from empty output on POSIX
72426         hosts.
72427
72428 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
72429
72430         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
72431         (iconv_string): Don't guess a size-zero buffer, as that might cause
72432         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
72433         result would be 'too large', where 'too large' is (heuristically)
72434         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
72435         overflow concerns.  This will prevent some unwanted malloc failures
72436         when the inputs are very large.
72437
72438 2005-03-15  Karl Berry  <karl@gnu.org>
72439
72440         * config/srclist.txt (config.rpath): from gettext.
72441         * config/config.rpath: update.
72442
72443 2005-03-15  Bruno Haible  <bruno@clisp.org>
72444
72445         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
72446         to 'negate'.
72447
72448         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
72449         variable.
72450
72451         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
72452         results.
72453
72454 2005-03-14  Simon Josefsson  <jas@extundo.com>
72455
72456         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
72457         <fx@gnu.org>.
72458
72459 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
72460
72461         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
72462         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
72463         intprops.h.
72464         * lib/strtol.c: Likewise.
72465
72466 2005-03-14  Jim Meyering  <jim@meyering.net>
72467
72468         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
72469         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
72470         to be nonzero so that we (and caller) can detect the difference
72471         between a valid zero-length expansion and an error return, even
72472         when the underlying strftime fails before writing anything into
72473         that location.
72474
72475 2005-03-14  Bruno Haible  <bruno@clisp.org>
72476
72477         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
72478         Update from GNU gettext 0.14.3.
72479
72480 2005-03-10  Jim Meyering  <jim@meyering.net>
72481
72482         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
72483
72484 2005-03-10  Jim Meyering  <jim@meyering.net>
72485
72486         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
72487         so that this module works on systems without fchdir.
72488
72489 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
72490
72491         Factor int-properties macros into a single file, except for
72492         glibc-related files.
72493         * lib/intprops.h: New file.
72494         * lib/getloadavg.c: Include it instead of limits.h.
72495         (INT_STRLEN_BOUND): Remove.
72496         * lib/human.c: Include intprops.h.
72497         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
72498         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
72499         302/1000.
72500         * lib/inttostr.h: Include intprops.h instead of limits.h.
72501         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
72502         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
72503         for consistency with intprops.h.
72504         (time_t_is_integer, twos_complement_arithmetic): Use them.
72505         * lib/sig2str.h: Include <signal.h>, intprops.h.
72506         (INT_STRLEN_BOUND): Remove.
72507         * lib/strftime.c (TYPE_SIGNED): Remove.
72508         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
72509         * lib/strtol.c: Adjust comments to match intprops.h.
72510         * lib/userspec.c: Include intprops.h.
72511         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
72512         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
72513         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
72514         instead of rolling our own expressions.
72515         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
72516
72517         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
72518         instead of int.
72519         (my_strftime): Do not mishandle years close to INT_MAX, by doing
72520         the right thing even if adding 1900 would overflow.  Similarly
72521         for tm_mon + 1 and tm_yday + 1.
72522         Make %Y always equivalent to %C%y, and similarly for %G and %g.
72523         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
72524         (DO_SIGNED_NUMBER): New macro.
72525         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
72526
72527 2005-03-07  Bruno Haible  <bruno@clisp.org>
72528
72529         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
72530
72531 2005-03-07  Bruno Haible  <bruno@clisp.org>
72532
72533         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
72534
72535 2005-03-04  Derek R. Price  <derek@ximbiot.com>
72536
72537         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
72538         (func_import): Only replace files via --import when they have actually
72539         changed.
72540
72541 2005-03-03  Derek R. Price  <derek@ximbiot.com>
72542
72543         * m4/mmap-anon.m4: New file.
72544         * m4/pagealign_alloc.m4: New file.
72545
72546 2005-03-03  Derek R. Price  <derek@ximbiot.com>
72547             Bruno Haible  <bruno@clisp.org>
72548
72549         * modules/pagealign_alloc: New file.
72550         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
72551
72552 2005-03-03  Derek R. Price  <derek@ximbiot.com>
72553             Bruno Haible  <bruno@clisp.org>
72554
72555         * lib/pagealign_alloc.h: New file.
72556         * lib/pagealign_alloc.c: New file.
72557
72558 2005-03-03  Bruno Haible  <bruno@clisp.org>
72559
72560         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
72561         Use an all-permissive copyright notice, recommended by RMS.
72562
72563 2005-03-02  Bruno Haible  <bruno@clisp.org>
72564
72565         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
72566         of AIX, the replacement has to be done only after <string.h> is
72567         included, therefore not in config.h. stpncpy.h does the replacement,
72568         and stpncpy.c uses it.
72569
72570 2005-03-02  Bruno Haible  <bruno@clisp.org>
72571
72572         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
72573         stpncpy.c uses it.
72574
72575 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72576
72577         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
72578         The workaround isn't strictly needed for POSIX conformance, and
72579         it's too much of a pain to configure and maintain.  We'll ask
72580         people to fix their kernels instead.
72581         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
72582         (NANOSLEEP_BUG_WORKAROUND): Remove.
72583         (xnanosleep): Remove the workaround.
72584
72585 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72586
72587         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
72588         Reported by Derek Price.
72589         (Include): Add "timespec.h".
72590
72591         * modules/xnanosleep (Depends-on): Remove gethrxtime.
72592
72593 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72594
72595         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
72596         to detect nanosleep bug.
72597
72598 2005-03-01  Bruno Haible  <bruno@clisp.org>
72599
72600         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
72601
72602 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
72603
72604         * modules/gethrxtime: New file.
72605         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
72606         (Depends-on): Add gethrxtime.
72607         (configure.ac): Add gl_XNANOSLEEP.
72608         (Makefile.am): Remove lib_SOURCES line.
72609
72610 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
72611
72612         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
72613         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
72614
72615 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
72616
72617         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
72618         * lib/timespec.h (gettime): Return void, since it always
72619         succeeds now.  All uses changed.
72620         * lib/gettime.c (gettime): Likewise.
72621         [HAVE_NANOTIME]: Prefer nanotime.
72622         Assume gettimeofday succeeds, as POSIX requires.
72623         Assime time () succeeds, since other code already does.
72624         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
72625         (timespec_subtract): Remove.
72626         (NANOSLEEP_BUG_WORKAROUND): New constant.
72627         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
72628         things considerably.  Use it only on GNU/Linux hosts, since the
72629         workaround shouldn't be needed elsewhere.
72630
72631 2005-02-24  Bruno Haible  <bruno@clisp.org>
72632
72633         * modules/gettext (Files): Add m4/glibc2.m4.
72634
72635 2005-02-24  Bruno Haible  <bruno@clisp.org>
72636
72637         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
72638         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
72639         * m4/progtest.m4:
72640         Update from GNU gettext 0.14.2.
72641         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
72642
72643 2005-02-24  Bruno Haible  <bruno@clisp.org>
72644
72645         * lib/localcharset.c: Update from GNU gettext 0.14.2.
72646         * lib/config.charset: Update from GNU gettext 0.14.2.
72647
72648 2005-02-24  Bruno Haible  <bruno@clisp.org>
72649
72650         * lib/gettext.h: Update from GNU gettext 0.14.2.
72651
72652 2005-02-23  Simon Josefsson  <jas@extundo.com>
72653
72654         * m4/iconvme.m4: New file.
72655
72656 2005-02-23  Jim Meyering  <jim@meyering.net>
72657
72658         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
72659         change.
72660         Thanks to Bruno Haible for catching it.
72661
72662 2005-02-22  Simon Josefsson  <jas@extundo.com>
72663
72664         * modules/iconvme: New file.
72665
72666         * MODULES.html.sh: Add iconvme.
72667
72668 2005-02-22  Simon Josefsson  <jas@extundo.com>
72669
72670         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
72671
72672 2005-02-22  Simon Josefsson  <jas@extundo.com>
72673
72674         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
72675
72676 2005-02-22  Jim Meyering  <jim@meyering.net>
72677
72678         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
72679         s/ifndef/ifdef/.
72680
72681 2005-02-20  Neil Conway  <neilc@samurai.com>
72682
72683         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
72684         returned by OSX/Darwin if the specified buffer is not large
72685         enough for the hostname.
72686
72687 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72688
72689         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
72690         pass it to _help, otherwise the latter coredumps trying to
72691         dereference state.root_argp.
72692
72693 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
72694
72695         * modules/chdir-long (Depends-on): Add memrchr.
72696         * modules/memrchr (Files): Add lib/memrchr.h.
72697         (Include): "memrchr.h".
72698
72699 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
72700
72701         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
72702
72703 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
72704
72705         * lib/memrchr.h: New file.
72706         * lib/chdir-long.c: Include it.
72707         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
72708         Don't bother including stddef.h.
72709
72710 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
72711
72712         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
72713         inclusion.
72714         Include <sys/types.h>, for dev_t.
72715         (ME_DUMMY, ME_REMOTE): Move from here....
72716         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
72717         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
72718         Dmitry V. Levin.
72719         Include mountlist.h first, to test the interface.
72720
72721 2005-01-29  Bruno Haible  <bruno@clisp.org>
72722
72723         * lib/progname.c (program_name): Initialize.
72724         Needed when linking statically on MacOS X.
72725
72726 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
72727
72728         Sync from coreutils.
72729         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
72730         (Depends-on): Add c-strtod.
72731         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
72732
72733 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
72734
72735         Sync from coreutils.
72736         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
72737
72738         Remove files that are specific to coreutils.
72739         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
72740
72741 2005-01-28  Bruno Haible  <bruno@clisp.org>
72742
72743         * modules/javacomp: New file.
72744         * MODULES.html.sh (Java): Add javacomp.
72745
72746 2005-01-28  Bruno Haible  <bruno@clisp.org>
72747
72748         * m4/javacomp.m4: New file, from GNU gettext.
72749
72750 2005-01-28  Bruno Haible  <bruno@clisp.org>
72751
72752         * lib/javacomp.sh.in: New file, from GNU gettext.
72753         * lib/javacomp.h: New file, from GNU gettext.
72754         * lib/javacomp.c: New file, from GNU gettext.
72755
72756 2005-01-26  Simon Josefsson  <jas@extundo.com>
72757
72758         * lib/gai_strerror.c: Use GPL in header.
72759
72760 2005-01-26  Bruno Haible  <bruno@clisp.org>
72761
72762         * modules/javaexec: New file.
72763         * MODULES.html.sh (Java): Add javaexec.
72764
72765 2005-01-26  Bruno Haible  <bruno@clisp.org>
72766
72767         * m4/javaexec.m4: New file, from GNU gettext.
72768
72769 2005-01-26  Bruno Haible  <bruno@clisp.org>
72770
72771         * lib/javaexec.sh.in: New file, from GNU gettext.
72772         * lib/javaexec.h: New file, from GNU gettext.
72773         * lib/javaexec.c: New file, from GNU gettext.
72774
72775 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72776
72777         * modules/lchown (Depends-on): Remove lchown.h
72778
72779 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72780
72781         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
72782         must be defined if the header file was not found, in order
72783         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
72784
72785 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72786
72787         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
72788         initializers for struct pentry_state.
72789         (__argp_error): Check return value of __asprintf
72790         (__argp_failure): Translate error message
72791
72792         * lib/argp-parse.c: Removed braces around the expansion of N_()
72793
72794 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72795
72796         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
72797         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
72798         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
72799         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
72800         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
72801         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
72802         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
72803         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
72804         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
72805         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
72806         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
72807         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
72808         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
72809         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
72810         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
72811         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
72812         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
72813         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
72814         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
72815         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
72816         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
72817         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
72818         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
72819         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
72820         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
72821         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
72822         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
72823         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
72824         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
72825         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
72826         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
72827         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
72828         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
72829         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
72830         xstrtol.m4, xstrtoumax.m4, yesno.m4:
72831         Use an all-permissive copyright notice, recommended by RMS.
72832
72833 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
72834
72835         * modules/chdir-long (Depends-on): Remove mempcpy.
72836
72837 2005-01-21  Jim Meyering  <jim@meyering.net>
72838
72839         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
72840         same value as for Solaris 9.
72841
72842         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
72843         component length.  This included changing the parameter to be
72844         of type `char *' rather than `char const *'.
72845         * lib/chdir-long.h (chdir_long): Update prototype.
72846
72847         * lib/openat.c (fdopendir, fstatat): New functions.
72848         * lib/openat.h: Include headers required for use of DIR and struct
72849         stat.
72850         [AT_SYMLINK_NOFOLLOW]: Define.
72851         (fdopendir, fstatat): Add prototypes.
72852
72853 2005-01-21  Bruno Haible  <bruno@clisp.org>
72854
72855         * modules/classpath: New file.
72856         * MODULES.html.sh (Java): Add classpath.
72857
72858 2005-01-21  Bruno Haible  <bruno@clisp.org>
72859
72860         * lib/classpath.h: New file, from GNU gettext.
72861         * lib/classpath.c: New file, from GNU gettext.
72862
72863 2005-01-20  Simon Josefsson  <jas@extundo.com>
72864
72865         * modules/version-etc-fsf: New file.
72866
72867 2005-01-20  Simon Josefsson  <jas@extundo.com>
72868
72869         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
72870         * lib/version-etc.c: Remove version_etc_copyright.
72871         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
72872         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
72873
72874 2005-01-20  Simon Josefsson  <jas@extundo.com>
72875
72876         * lib/base64.h (isbase64): Add.
72877
72878         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
72879         using a unsigned prototype, don't inline.
72880         (base64_decode): Use it.
72881
72882 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
72883
72884         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
72885         it.
72886
72887 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
72888
72889         * lib/save-cwd.c (save_cwd): Remove code to support the case
72890         where fchdir is missing or flaky.
72891
72892 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
72893
72894         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
72895
72896 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
72897
72898         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
72899         AC_LIBSOURCES now does this.
72900         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
72901         with new ullong_max module.
72902
72903 2005-01-19  Bruno Haible  <bruno@clisp.org>
72904
72905         * modules/sh-quote: New file.
72906         * MODULES.html.sh (Executing programs): Add sh-quote.
72907
72908 2005-01-19  Bruno Haible  <bruno@clisp.org>
72909
72910         * lib/sh-quote.h: New file, from GNU gettext.
72911         * lib/sh-quote.c: New file, from GNU gettext.
72912
72913 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
72914
72915         Merge from coreutils.
72916         * m4/ullong_max.m4: New file.
72917         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
72918         (gl_MACROS): Assume localeconv exists.
72919
72920 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
72921
72922         Merge changes from coreutils, as described below in several
72923         changelogs dated today.
72924
72925         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
72926         (O_DIRECTORY): Remove; not needed here, since "." must be
72927         a directory.  All uses removed.
72928         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
72929         universal on Suns, and we also need to test for IRIX.
72930         Revamp code to use 'if' rather than '#if'.
72931         Avoid unnecessary comparison of cwd->desc to 0.
72932
72933         * lib/utimens.c (futimens): Robustify the previous patch, by checking
72934         for known valid error numbers rather than observed invalid ones.
72935
72936 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
72937
72938         * modules/ullong_max: New file.
72939
72940         * modules/chdir-long, modules/openat: New files.
72941         * modules/save-cwd (Depends-on): Depend on chdir-long.
72942         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
72943
72944 2005-01-18  Jim Meyering  <jim@meyering.net>
72945
72946         Merge from coreutils.
72947         * m4/chdir-long.m4, m4/openat.m4: New files.
72948         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
72949         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
72950         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
72951         is sane and DOES follow symlinks.  Besides, testing 20 different
72952         systems found no broken chown implementations.
72953         Prompted by a change in rsync's copy of this macro.
72954         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
72955
72956         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
72957
72958         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
72959         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
72960         NULL-means-set-to-current-time semantics.
72961         Remove temporary file immediately, rather than waiting
72962         for configure's at-exit trap code to do it.
72963
72964 2005-01-18  Jim Meyering  <jim@meyering.net>
72965
72966         * lib/version-etc.c (version_etc_copyright): Update copyright date.
72967
72968         * lib/utimens.c (futimens): Account for the fact that futimes
72969         can also fail with errno == ENOSYS or errno == ENOENT.
72970         Patch from Dmitry V. Levin.
72971
72972         Change the name of the robust chdir function from chdir to chdir_long.
72973         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
72974         (restore_cwd): Use chdir_long, not chdir.
72975         * lib/chdir-long.c: Renamed from chdir.c.
72976         * lib/chdir-long.h: Renamed from chdir.h.
72977         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
72978         Hurd.
72979
72980 2005-01-18  Bruno Haible  <bruno@clisp.org>
72981
72982         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
72983         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
72984         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
72985         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
72986         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
72987         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
72988         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
72989         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
72990         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
72991         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
72992         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
72993         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
72994         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
72995         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
72996         Use an all-permissive copyright notice, recommended by RMS.
72997
72998 2005-01-18  Bob Proulx  <bob@proulx.com>
72999
73000         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
73001         simplify offsetof() macro construct to avoid compile failure with
73002         native HP-UX 11.0 ANSI C compiler.
73003
73004 2005-01-17  Bruno Haible  <bruno@clisp.org>
73005
73006         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
73007         redundant because stpncpy.m4 takes care of it.
73008
73009 2005-01-17  Bruno Haible  <bruno@clisp.org>
73010
73011         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
73012
73013 2005-01-17  Bruno Haible  <bruno@clisp.org>
73014
73015         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
73016         used.
73017
73018 2005-01-17  Bruno Haible  <bruno@clisp.org>
73019
73020         * lib/fwriteerror.h (fwriteerror): Change specification to include
73021         fclose.
73022         * lib/fwriteerror.c: Include <stdbool.h>.
73023         (fwriteerror): At the end, close the file stream. Record whether
73024         stdout was already closed.
73025
73026 2005-01-17  Bruno Haible  <bruno@clisp.org>
73027
73028         * lib/execute.c (environ): Declare if needed.
73029         * lib/pipe.c (environ): Likewise.
73030         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
73031
73032 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73033
73034         * modules/argp: Depend on vsnprintf
73035
73036 2005-01-10  Jim Meyering  <jim@meyering.net>
73037
73038         * modules/closeout (Depends-on): Add atexit.
73039
73040 2005-01-06  Bruno Haible  <bruno@clisp.org>
73041
73042         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
73043
73044 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73045
73046         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
73047         definitions to be after all include files, to avoid collisions.
73048         Problem reported by Bob Proulx.
73049
73050 2005-01-04  Jim Meyering  <jim@meyering.net>
73051
73052         Changes imported from coreutils.
73053         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
73054         as the mkstemp template, use a temporary directory and an
73055         8.3-friendly template to avoid trouble on systems like DJGPP.
73056         Reported by Juan M. Guerrero via Stepan Kasal.
73057         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
73058         close. Remove the temporary directory right away, rather than waiting
73059         for configure's at-exit trap code to do it.
73060         Suggestion from Stepan Kasal.
73061
73062 2005-01-01  Simon Josefsson  <jas@extundo.com>
73063
73064         * gnulib-tool: Print #include directives when --import'ing.
73065
73066 2004-12-28  Simon Josefsson  <jas@extundo.com>
73067
73068         * tests/test-base64.c: Include required header files.  Remove
73069         unused variables.
73070
73071 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
73072
73073         * modules/error (Depends-on): Remove gettext.
73074
73075 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
73076
73077         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
73078         not needed.  This removes a dependency on the gettext module.
73079         [defined _LIBC]: Do not include <libintl.h>; not needed.
73080
73081 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
73082
73083         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
73084         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
73085
73086 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
73087
73088         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
73089         HAVE_DECL_STRTOLD.
73090
73091 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
73092
73093         * modules/getdate (Depends-on): Remove alloca-opt.
73094
73095 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
73096
73097         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
73098
73099 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
73100
73101         * lib/argp-parse.c: Include <stddef.h>.
73102         (alignof, alignto): New macros.
73103         (parser_init): Don't assume that void * is aligned sufficiently
73104         for struct option.
73105
73106         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
73107         need to extend the stack.
73108         (YYINITDEPTH): New macro, so that the initial stack isn't overly
73109         large.
73110
73111 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73112
73113         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
73114
73115 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
73116
73117         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
73118         (2004-10-24) change.  Apparently this was a false alarm.
73119
73120         * modules/getdate: Depend on alloca-opt, not alloca.
73121
73122 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
73123
73124         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
73125         Remove now-obsolete comment about AIX.
73126         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
73127         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
73128         (YYMAXDEPTH): New macro.
73129
73130 2004-12-18  Simon Josefsson  <jas@extundo.com>
73131
73132         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
73133
73134 2004-12-18  Bruno Haible  <bruno@clisp.org>
73135
73136         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
73137
73138 2004-12-18  Bruno Haible  <bruno@clisp.org>
73139
73140         * lib/fatal-signal.c (fatal_signals): Make non-const.
73141         (init_fatal_signals): New function.
73142         (uninstall_handlers, install_handlers): Ignore signals that were set to
73143         SIG_IGN.
73144         (at_fatal_signal): Call init_fatal_signals.
73145         (init_fatal_signal_set): Likewise. Ignore signals that were set to
73146         SIG_IGN.
73147         Reported by Paul Eggert.
73148
73149 2004-12-18  Bruno Haible  <bruno@clisp.org>
73150
73151         * doc/alloca.texi: New file.
73152         * doc/alloca-opt.texi: New file.
73153
73154 2004-12-17  Jim Meyering  <jim@meyering.net>
73155
73156         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
73157         Otherwise, install-sh could exit with improper exit status when
73158         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
73159
73160 2004-12-16  Simon Josefsson  <jas@extundo.com>
73161
73162         * tests/test-base64.c: Add license.
73163
73164 2004-12-15  Stepan Kasal  <address@hidden>
73165
73166         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
73167
73168 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
73169
73170         * modules/getcwd (Files): Add m4/d-ino.m4.
73171         Suggested by Mark D. Baushke.
73172
73173 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
73174
73175         * lib/getdate.y (textint): New member "negative".
73176         (time_zone_hhmm): New function.
73177         Expect 14 shift-reduce conflicts, not 13.
73178         (o_colon_minutes): New rule.
73179         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
73180         (yylex): Set the "negative" member of signed numbers.
73181
73182 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
73183
73184         * doc/getdate.texi (Time of day items, Time zone items):
73185         Describe new formats +00:00, UTC+00:00.
73186
73187 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73188
73189         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
73190         spurious "-l"s.  Problem reported by Stepan Kasal.
73191
73192 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
73193
73194         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
73195         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
73196
73197 2004-12-04  Simon Josefsson  <jas@extundo.com>
73198
73199         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
73200         Vandoorselaere <yoann@prelude-ids.org>.
73201
73202 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
73203
73204         Changes imported from coreutils.
73205         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
73206         exist.
73207         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
73208
73209 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
73210
73211         Changes imported from coreutils.
73212         * lib/hard-locale.c: Assume <locale.h> exists.
73213         Include "strdup.h".
73214         (GLIBC_VERSION): New macro.
73215         (hard_locale): Assume setlocale exists.
73216         Rewrite to avoid #ifdef.
73217         Use strdup rather than malloc + strcpy.
73218         * lib/human.c: Assume <locale.h> exists.
73219         (human_readable): Assume localeconv exists.
73220
73221 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
73222
73223         * modules/hard-locale (Depends-on): Add strdup.
73224
73225 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
73226
73227         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
73228         convert T2, not T.  (Imported from libc.)
73229
73230 2004-11-30  Simon Josefsson  <jas@extundo.com>
73231
73232         * modules/restrict (License): Change to LGPL.
73233
73234 2004-11-30  Simon Josefsson  <jas@extundo.com>
73235
73236         * m4/restrict.m4: Add copyright and copying conditions.
73237
73238 2004-11-30  Simon Josefsson  <jas@extundo.com>
73239
73240         * m4/base64.m4: New file.
73241
73242 2004-11-30  Simon Josefsson  <jas@extundo.com>
73243
73244         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
73245         base64.
73246
73247         * tests/test-base64.c: New file.
73248
73249         * modules/base64: New file.
73250
73251 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
73252
73253         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
73254         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
73255
73256         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
73257
73258 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
73259
73260         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
73261         (__getcwd.c): Don't restore errno; glibc doesn't.
73262         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
73263         first, falling back to our code only if its results look suspicious.
73264         Ensure that the resulting buffer is only as large as necessary.
73265
73266         * lib/readutmp.c: Include readutmp.h first.
73267         Include <errno.h>, since readutmp.h no longer does that.
73268         * lib/readutmp.h: Don't include <errno.h>,
73269         <sys/param.h>, <time.h>; not needed to establish interface.
73270         (errno): Remove decl.
73271         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
73272         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
73273         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
73274
73275 2004-11-28  Simon Josefsson  <jas@extundo.com>
73276
73277         * lib/base64.h, base64.c: New file.
73278
73279 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
73280
73281         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
73282
73283 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
73284
73285         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
73286         (Depends-on): Remove pathmax, same.  Add mempcpy.
73287         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
73288         (Makefile.am): Append getcwd.h to lib_SOURCES.
73289         (Include): Add getcwd.h.
73290         (Maintainer): Change from Jim Meyering to "all, glibc",
73291         since getdate now uses intended-for-glibc code.
73292         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
73293         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
73294
73295 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
73296
73297         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
73298         HP's ANSI C compiler.
73299         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
73300         Declaring int functions causes warnings on some modern systems and
73301         shouldn't be needed to compile on ancient ones.
73302         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
73303         defined.
73304
73305         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
73306         with the following changes.
73307         (__set_errno): Parenthesize properly.
73308         Include <stdbool.h>.
73309         (MIN, MAX, MATCHING_INO): New macros.
73310         (__getcwd): Define with prototype, not K&R form.
73311         Use heuristics to allocate default buffer on stack if possible.
73312         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
73313         behavior, and to avoid the PATH_MAX limit when computing
73314         ../../../../...
73315         Use MATCHING_INO to compare inode number to file.
73316         Check for arithmetic overflow in size calculations.
73317         Fix bug in reallocation of dot array that caused getcwd to fail
73318         on directories nested deeper than 75.
73319         Be more careful about saving errno on error.
73320         Do not use realloc; use only free+malloc, as this is a bit
73321         more flexible and avoids a needless copy operation.
73322         Do not inspect st_dev and st_ino for symbolic links; POSIX
73323         doesn't specify the latter.
73324         Check for closedir errors.
73325         Avoid needless casts.
73326         Use "#ifdef weak_alias" around weak_alias, to be like other
73327         glibc code.
73328         The following changes to getcwd.c have effect only when used in
73329         gnulib; they have no effect inside glibc proper.
73330         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
73331         as alloca isn't used.
73332         (alloca, __alloca): Likewise.
73333         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
73334         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
73335         unconditionally, as gnulib assumes C89 or better.
73336         Do not include <sys/param.h>.
73337         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
73338         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
73339         better.
73340         (NULL) [!defined NULL]: Remove; we assume C89 or better.
73341         Include <dirent.h> in a way that is compatible with modern Autoconf.
73342         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
73343         New macros, if not already defined.
73344         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
73345         Use "_LIBC", not "defined _LIBC", for consistency.
73346         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
73347         a mempcpy module.
73348         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
73349         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
73350         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
73351         credit only to Jim Meyering and adjust the copyright dates.
73352         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
73353         <stdlib.h>, <unistd.h>, "pathmax.h".
73354         Instead, include "xgetcwd.h" (first) and "getcwd.h".
73355         (INITIAL_BUFFER_SIZE): Remove.
73356         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
73357
73358 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
73359
73360         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
73361         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
73362         Use the _ONCE methods, for efficiency.
73363         Check for fcntl.h.  In test program, include <errno.h>
73364         and <fcntl.h> if available.  Remove old K&R cruft from
73365         test program.  Check for common errors in GNU/Linux,
73366         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
73367         don't do AC_LIBOBJ, as that's getcwd.m4's job.
73368         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
73369         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
73370         name accordingly.
73371         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
73372         accommodate new getcwd.c.
73373         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
73374         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
73375         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
73376         that's all we need now.
73377
73378 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73379
73380         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
73381         argp-parse.c depends on getopt internals, that means we should
73382         always use our getopt, to be on the safe side.
73383         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
73384         order not to spoil the result of an eventual previous invocation
73385         of gl_GETOPT_SUBSTITUTE.
73386
73387 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73388
73389         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
73390         redefinition warnings. To avoid them, include the defines
73391         in `#if !defined __need_getopt ... #endif'. The only place
73392         where __getopt_argv_const is used is in definitions
73393         of getopt_long and getopt_long_only below, which are as well
73394         protected by `#ifndef __need_getopt'.
73395         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
73396         __need_getopt after including <stdio.h> and <unistd.h> These
73397         headers might have defined it.
73398
73399 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
73400
73401         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
73402
73403 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
73404
73405         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
73406         (futimens): New function, which uses futimes if available.
73407         (futimens, utimens): Support timespec==NULL, with same semantics
73408         as utime and utimens.
73409         * lib/utimens.h (futimens): New decl.
73410
73411 2004-11-23  Jim Meyering  <jim@meyering.net>
73412
73413         * lib/getopt_.h: Remove trailing blanks.
73414
73415 2004-11-23  Jim Meyering  <jim@meyering.net>
73416
73417         * lib/__fpending.c: Add comment.
73418
73419 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
73420
73421         * modules/canonicalize (Depends-on): Add xreadlink.
73422         Problem reported by James Youngman.
73423
73424 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
73425
73426         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
73427         New macros.
73428         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
73429         optopt): Use them instead of invoking ## directly; otherwise, the
73430         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
73431
73432 2004-11-19  Bruno Haible  <bruno@clisp.org>
73433
73434         * lib/strtok_r.c: Move comments from here...
73435         * lib/strtok_r.h: ... to here.
73436
73437 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
73438
73439         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
73440         implementations that mishandle size_t overflow.
73441
73442 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
73443
73444         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
73445         might fail.  Problem reported by Yoann Vandoorselaere.
73446         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
73447         implementations that mishandle size_t overflow.
73448
73449 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73450
73451         * modules/canon-host (Depends-on): Add strdup.
73452
73453 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73454
73455         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
73456
73457 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73458
73459         * lib/canon-host.c: Include "strdup.h".
73460         (canon_host): Use getaddrinfo if available, so that IPv6 works.
73461         Use strdup instead of malloc/strcpy to duplicate strings.
73462
73463         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
73464         (human_space_before_unit): New constant.
73465         * lib/human.c (human_readable): Support it.
73466
73467         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
73468         (xgetcwd): Set errno correctly when failing.
73469         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
73470         the failure is actually due to a PATH_MAX problem.
73471
73472         Further getopt changes to make it more likely that glibc will
73473         buy the changes back.
73474         * lib/getopt.c (POSIXLY_CORRECT): New constant.
73475         (getopt): Use it, so to preserve glibc semantic
73476         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
73477         when compiling for libc.
73478         * lib/getopt_.h (__getopt_argv_const): Bring it back.
73479         (getopt_long, getopt_long_only): Use it.
73480
73481         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
73482         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
73483         (getopt): Argv is now char * const *, as per standard.
73484         (_getopt_internal_r, _getopt_internal): Argv is now char **,
73485         not char *__getopt_argv_const *.
73486         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
73487         _getopt_long_only_r): Likewise.
73488         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
73489         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
73490         _getopt_long_r, _getopt_long_only_r): Likewise.
73491         * lib/getopt_.h (__getopt_argv_const): Remove.
73492         (getopt): Argv is now char * const *, as per standard.
73493
73494         * lib/getdate.y (tORDINAL): New token.
73495         (day, relunit): Allow it for relative times.
73496         (relative_time_table): Use tORDINAL for ordinals.
73497
73498 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73499
73500         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
73501         Document that "second" isn't allowed as an ordinal number.
73502
73503 2004-11-16  Jim Meyering  <jim@meyering.net>
73504
73505         * modules/closeout (Depends-on): Add fpending.
73506
73507 2004-11-15  Jim Meyering  <jim@meyering.net>
73508
73509         * lib/closeout.c: Include "__fpending.h" once again.
73510         Include <stdbool.h>.
73511         (close_stdout): Don't fail just because stdout was closed initially,
73512         since some programs don't write to stdout in the normal course of
73513         operation (other than --version and --help), and we don't want this
73514         function to make e.g. `touch file >&-' fail.
73515         But do fail if it was closed and someone has tried to write to it.
73516         E.g., `printf foo >&-' must fail.
73517
73518 2004-11-13  Jim Meyering  <jim@meyering.net>
73519
73520         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
73521
73522 2004-11-12  Simon Josefsson  <jas@extundo.com>
73523
73524         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
73525         small doc fix is still pending.
73526
73527 2004-11-11  Simon Josefsson  <jas@extundo.com>
73528
73529         * modules/strtok_r: New file.
73530
73531         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73532         strtok_r.
73533
73534 2004-11-11  Simon Josefsson  <jas@extundo.com>
73535
73536         * m4/strtok_r.m4: New file.
73537
73538         * m4/getopt.m4: Replace opterr.
73539
73540 2004-11-11  Simon Josefsson  <jas@extundo.com>
73541
73542         * lib/strtok_r.h, strtok_r.c: New file.
73543
73544 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
73545
73546         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
73547         of replacing opterr, getopt, etc.  This should handle the
73548         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
73549
73550 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
73551
73552         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
73553         we can stop lying to compilers about the constness of argv when we
73554         are compiled outside glibc.
73555         (getopt, getopt_long, getopt_long_only): Use it.
73556         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
73557         _getopt_internal, getopt): Likewise.
73558         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
73559         _getopt_long_only_r): Likewise.
73560         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
73561         _getopt_long_r, _getopt_long_only_r): Likewise.
73562
73563         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
73564         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
73565         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
73566         the other external symbols.
73567         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
73568         declaration, since the above renaming now works around collisions.
73569
73570 2004-11-11  Jim Meyering  <jim@meyering.net>
73571
73572         * lib/linebreak.c: Remove trailing blanks.
73573         * lib/alloca_.h: Likewise.
73574         * lib/acosl.c: Likewise.
73575         * lib/euidaccess.c: Likewise.
73576         * lib/allocsa.h: Likewise.
73577
73578 2004-11-10  Simon Josefsson  <jas@extundo.com>
73579
73580         * m4/getaddrinfo.m4: New file.
73581
73582 2004-11-10  Simon Josefsson  <jas@extundo.com>
73583
73584         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
73585
73586 2004-11-10  Simon Josefsson  <jas@extundo.com>
73587
73588         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73589         getaddrinfo.
73590
73591         * modules/getaddrinfo: New file.
73592
73593 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73594
73595         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
73596
73597 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73598
73599         * lib/mktime.c (SHR): New macro, which is a portable
73600         substitute for >> that should work even on Crays.
73601         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
73602         Problem reported by Mark D. Baushke in
73603         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
73604         * lib/getdate.y (SHR): Likewise.
73605         (tm_diff): Use it.
73606         * lib/strftime.c (SHR): Likewise.
73607         (tm_diff): Use it.
73608         * lib/quotearg.c (struct quoting_options): Use unsigned int for
73609         quote_these_too, so that right shifts are well defined.  All uses
73610         changed.
73611
73612 2004-11-10  Jim Meyering  <jim@meyering.net>
73613
73614         Ensure that no close failure goes unreported.
73615         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
73616         return early when it seems there's nothing to flush.
73617         Don't include __fpending.h.
73618
73619 2004-11-10  Jim Meyering  <jim@meyering.net>
73620
73621         * modules/closeout (Depends-on): Remove fpending.
73622
73623 2004-11-10  Jim Meyering  <jim@meyering.net>
73624
73625         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
73626
73627 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
73628
73629         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
73630         gl_FUNC_STRFTIME.
73631         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
73632         and AC_REQUIRE when possible, to avoid duplicate checks.
73633         Check for <wchar.h>.
73634
73635 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
73636
73637         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
73638
73639 2004-11-09  Bruno Haible  <bruno@clisp.org>
73640
73641         * m4/sockpfaf.m4: New file.
73642
73643 2004-11-05  Bruno Haible  <bruno@clisp.org>
73644
73645         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
73646         Reported by Mark D. Baushke <mdb@cvshome.org>.
73647
73648 2004-11-04  Bruno Haible  <bruno@clisp.org>
73649
73650         2004-09-11  Bruno Haible  <bruno@clisp.org>
73651                 * allocsa.valgrind: New file.
73652         2004-02-06  Bruno Haible  <bruno@clisp.org>
73653                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
73654                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
73655                 Reported by Christopher Seip <chris.seip@hp.com>.
73656
73657 2004-11-04  Bruno Haible  <bruno@clisp.org>
73658
73659         * modules/allocsa (Files): Add lib/allocsa.valgrind.
73660         (Makefile.am): Distribute it.
73661
73662 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
73663
73664         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
73665         with errno == ERANGE if the buffer is too small.
73666         Problem reported by Mark D. Baushke.
73667
73668 2004-11-03  Albert Chin  <china@thewrittenword.com>
73669             Paul Eggert  <eggert@cs.ucla.edu>
73670
73671         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
73672         equivalent, substitute $ac_type for equivalent type rather than
73673         blindly using uint32_t *always* which won't work if uint32_t is not
73674         available.  Define _UINT32_T to work around typedef of uint32_t if
73675         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
73676         2.5.1.
73677
73678 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
73679
73680         * m4/jm-macros.m4: Sync from coreutils.
73681         (gl_MACROS): Check for mbrlen, for pathchk.
73682         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
73683
73684 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
73685
73686         * lib/xreadlink.c (MAXSIZE): New macro.
73687         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
73688         size does not exceed MAXSIZE.  Avoid cast.
73689         As suggested by Mark D. Baushke in
73690         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
73691         if readlink fails with buffer size just under MAXSIZE, try again
73692         with MAXSIZE.
73693
73694 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
73695
73696         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
73697
73698 2004-11-02  Derek R. Price  <derek@ximbiot.com>
73699         and  Paul Eggert  <eggert@cs.ucla.edu>
73700
73701         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
73702         (get_date): Overparenthesize to avoid GCC warning.
73703
73704 2004-11-02  Bruno Haible  <bruno@clisp.org>
73705
73706         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
73707         returns void.
73708
73709 2004-11-02  Bruno Haible  <bruno@clisp.org>
73710
73711         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
73712         function returns void.
73713
73714 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
73715
73716         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
73717         fflush_unlocked, flockfile, funlockfile, funlockfile,
73718         fputs_unlocked, putc_unlocked.
73719
73720 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
73721
73722         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
73723         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
73724         already declared.
73725
73726 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73727
73728         * modules/getdate (Files): Add doc/getdate.texi.
73729         (Depends-on): Add setenv, xalloc.
73730
73731 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73732
73733         * lib/getdate.y: Add support for TZ="foo" within a date string.
73734         Fix some bugs near time_t boundaries.  Reject dates with
73735         out-of-range components, e.g., "Sept 31".
73736         Include <stdlib.h>, "setenv.h", "xalloc.h".
73737         (ISDIGIT_LOCALE): Remove; unused.
73738         Note that the TZ and time functions used here are not reentrant.
73739         (mktime_ok, get_tz): New functions.
73740         (TZBUFSIZE): New constant.
73741         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
73742         This requires that we sometimes generate our own TZ="XXX..." setting.
73743
73744 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73745
73746         * doc/getdate.texi: New file, from coreutils with modifications for
73747         the new TZ parsing.
73748
73749 2004-10-27  Derek R. Price  <derek@ximbiot.com>
73750
73751         * lib/mktime.c (not_equal_tm): Remove redundant check.
73752
73753 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73754
73755         * modules/regex (lib_SOURCES): Add regex.c.
73756         Reported by James Youngman in
73757         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
73758
73759 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73760
73761         * lib/getdate.y: Use Bison 1.875 features, and some minor
73762         code cleanups.  This change does not affect semantics.
73763         Don't include <stdlib.h>; no longer needed.
73764         Don't include unlocked-io.h; only the "#if TEST" code uses
73765         stdio, and performance isn't crucial there.
73766         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
73767         Bison 1.875 features as described below.
73768         All uses of "PC." replaced by "pc->".
73769         (YYSTYPE): Add a forward declaration.
73770         (yylex, yyerror): Use full prototypes in forward decls.
73771         Use "%pure-parser" rather than obsolescent "%pure_parser".
73772         Use %parse-param and %lex-param instead of obsolescent
73773         YYPARSE_PARAM and YYLEX_PARAM.
73774         (meridian_table, month_and_day_table, time_units_table,
73775         relative_time_table, time_zone_table, military_table,
73776         lookup_zone, lookup_word, get_date):
73777         Use NULL instead of 0 where appropriate.
73778         (to_hour): Avoid abort (), to avoid a dependency on
73779         stdlib.h.
73780         (yyerror, yylex): Now accepts parser_control * arg.
73781         (main) [TEST]: Use '\0' rather than 0 for char.
73782
73783 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
73784
73785         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
73786
73787 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
73788
73789         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
73790         It's now the caller's responsibility to handle the case where
73791         !HAVE_GETPAGESIZE && !defined getpagesize.
73792
73793         * lib/mktime.c (leapyear): Arg is long int, not int.
73794
73795 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
73796
73797         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
73798
73799 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
73800
73801         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
73802         missing.  Problem reported by James Youngman.
73803
73804 2004-10-16  Simon Josefsson  <jas@extundo.com>
73805
73806         * gnulib-tool: Fix comments.  Fix parse problem.
73807         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
73808
73809 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
73810
73811         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
73812         implementation of getopt_long.  Problem reported by Alexander Taler in:
73813         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
73814
73815 2004-10-15  Bruno Haible  <bruno@clisp.org>
73816
73817         * gnulib-tool: Untabify. Initialize supplied_libname.
73818         (func_usage): More homogenous output.
73819         (func_modules_transitive_closure, func_modules_to_filelist,
73820         func_emit_lib_Makefile_am): New functions.
73821         (func_import): New function, extracted from big case statement. Use
73822         func_get_license, func_modules_transitive_closure,
73823         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
73824         opt_lgpl. Don't use test -a, as it's not portable.
73825         (func_create_testdir): Use func_modules_transitive_closure,
73826         func_modules_to_filelist, func_emit_lib_Makefile_am.
73827
73828 2004-10-15  Bruno Haible  <bruno@clisp.org>
73829
73830         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
73831
73832 2004-10-15  Bruno Haible  <bruno@clisp.org>
73833
73834         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
73835         the portions belonging to each module.
73836         Suggested by Derek Robert Price <derek@ximbiot.com>.
73837
73838 2004-10-12  Simon Josefsson  <jas@extundo.com>
73839
73840         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
73841         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
73842         to real functions.
73843
73844 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73845
73846         * modules/vsnprintf: New file.
73847
73848 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73849
73850         * m4/vsnprintf.m4: New file.
73851
73852 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73853
73854         * lib/vsnprintf.h: New file.
73855         * lib/vsnprintf.c: New file.
73856
73857 2004-10-11  Bruno Haible  <bruno@clisp.org>
73858
73859         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
73860         vsnprintf.
73861
73862 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
73863
73864         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
73865
73866 2004-10-07  Bruno Haible  <bruno@clisp.org>
73867
73868         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
73869         fits into the provided buffer.
73870
73871 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
73872
73873         * lib/diacrit.c, diacrit.h: Add GPL notice.
73874
73875         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
73876         notice.
73877         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
73878         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
73879         This avoids a potential constant-folding bug.
73880
73881 2004-10-05  Bruno Haible  <bruno@clisp.org>
73882
73883         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
73884         for the declaration of strsep.
73885
73886 2004-10-05  Bruno Haible  <bruno@clisp.org>
73887
73888         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
73889
73890 2004-10-04  Simon Josefsson  <jas@extundo.com>
73891
73892         * modules/memmem: New file.
73893         * tests/test-memmem.c: New file.
73894         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
73895
73896 2004-10-04  Simon Josefsson  <jas@extundo.com>
73897
73898         * m4/memmem.m4: New file.
73899
73900 2004-10-04  Simon Josefsson  <jas@extundo.com>
73901
73902         * lib/memmem.h: New file.
73903         * lib/memmem.c: New file, taken from glibc.
73904
73905 2004-10-04  Simon Josefsson  <jas@extundo.com>
73906
73907         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
73908         '#ifdef USE_UNLOCKED_IO'.
73909
73910 2004-10-04  Simon Josefsson  <jas@extundo.com>
73911
73912         * config/srclist.txt: Add memmem from glibc.
73913
73914 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
73915
73916         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
73917
73918         * modules/argmatch, modules/argp, modules/closeout, modules/error,
73919         modules/exclude, modules/getdate, modules/getline,
73920         modules/getndelim2, modules/getpass, modules/getpass-gnu,
73921         modules/getusershell, modules/linebuffer, modules/md5,
73922         modules/mountlist, modules/posixtm, modules/readtokens,
73923         modules/readutmp, modules/regex, modules/sha1,
73924         modules/version-etc, modules/yesno:
73925         Remove dependency on unlocked-io.
73926
73927 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
73928
73929         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
73930
73931         * m4/unlocked-io.m4: Add copyright notice.
73932         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
73933
73934 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
73935
73936         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
73937         * lib/xmalloc.c (xmemdup): Likewise.
73938         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
73939         XFREE): Remove these long-obsolescent macros.
73940         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
73941         * lib/xstrdup.c: Remove.
73942
73943         * lib/regex.c (re_comp): Cast gettext return value to char *,
73944         Problem reported by Martin Neitzel via Mark D. Baushke.
73945
73946 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
73947
73948         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
73949         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
73950         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
73951         regex.c, sha1.c, version-etc.c, yesno.c:
73952         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
73953         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
73954         the includer's responsibility.
73955
73956         Sync from coreutils.
73957
73958         * lib/modechange.c (mode_compile): Don't decrement a pointer that
73959         points to the start of a string, as the C Standard says the
73960         resulting behavior is undefined.
73961
73962         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
73963         simple -> simple_backups, numbered_existing ->
73964         numbered_existing_backups, numbered -> numbered_backups
73965         to avoid shadowing problems.  All uses changed.
73966         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
73967         * lib/backupfile.c (check_extension, numbered_backup):
73968         Rename locals to avoid shadowing 'basename'.
73969         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
73970         once.
73971
73972         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
73973         * lib/.cvsignore: Add getopt.h.
73974
73975 2004-10-04  Bruno Haible  <bruno@clisp.org>
73976
73977         * modules/README: New file.
73978         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
73979         not a module.
73980
73981 2004-10-02  Jim Meyering  <jim@meyering.net>
73982
73983         * lib/dirfd.h, getpagesize.h: Add copyright notice.
73984
73985 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73986
73987         * modules/strsep: New file.
73988
73989 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73990
73991         * m4/strsep.m4: New file.
73992
73993 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73994
73995         * lib/strsep.h: New file.
73996         * lib/strsep.c: New file.
73997
73998 2004-10-01  Simon Josefsson  <jas@extundo.com>
73999
74000         * lib/snprintf.c (snprintf): Handle size==0.
74001
74002 2004-10-01  Simon Josefsson  <jas@extundo.com>
74003             Bruno Haible  <bruno@clisp.org>
74004
74005         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
74006         (snprintf): Declare 'args'.
74007
74008 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
74009
74010         * lib/snprintf.c: Remove comments as to why each header is needed.
74011
74012 2004-10-01  Bruno Haible  <bruno@clisp.org>
74013
74014         * MODULES.html.sh: Add strsep.
74015
74016 2004-09-30  Simon Josefsson  <jas@extundo.com>
74017
74018         * modules/snprintf: New file.
74019
74020 2004-09-30  Simon Josefsson  <jas@extundo.com>
74021
74022         * m4/snprintf.m4: New file.
74023
74024 2004-09-30  Simon Josefsson  <jas@extundo.com>
74025
74026         * lib/snprintf.h, lib/snprintf.c: New files.
74027
74028 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74029
74030         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
74031         (hol_entry_help): Never translate an empty string.
74032         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
74033         * lib/argp.h (OPTION_NO_TRANS): New option.
74034
74035 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
74036
74037         * modules/argp (Maintainer): Replace Simon Josefsson
74038         by Sergey Poznyakoff.
74039
74040 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
74041
74042         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
74043         changes merged back into glibc.
74044
74045 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
74046
74047         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
74048
74049 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
74050
74051         * lib/xvasprintf.c: Include xalloc.h.
74052         (xvasprintf): Use xalloc_die, not xmalloc_die.
74053
74054 2004-09-29  Bruno Haible  <bruno@clisp.org>
74055
74056         * modules/alloca-opt: New file, derived from modules/alloca.
74057         * modules/allocsa: Depend on alloca-opt instead of alloca.
74058         * modules/setenv: Likewise.
74059         * modules/vasnprintf: Likewise.
74060         * MODULES.html.sh: Add alloca-opt.
74061
74062 2004-09-28  Simon Josefsson  <jas@extundo.com>
74063
74064         * gnulib-tool: New parameter --lgpl, to asseert that modules are
74065         LGPL, and to replace license template from GPL to LGPL.
74066
74067 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
74068
74069         * modules/dummy: Change license to LGPL.
74070
74071 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
74072
74073         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
74074
74075 2004-09-24  Simon Josefsson  <jas@extundo.com>
74076
74077         * modules/minmax (License): Change from GPL to LGPL.
74078
74079 2004-09-23  Simon Josefsson  <jas@extundo.com>
74080
74081         * gnulib-tool (--import): Typo.
74082
74083 2004-09-23  Simon Josefsson  <jas@extundo.com>
74084
74085         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
74086
74087 2004-09-22  Bruno Haible  <bruno@clisp.org>
74088
74089         * modules/*: Add 'License' field.
74090         * gnulib-tool: Accept --extract-license option.
74091         (func_get_license): New function.
74092
74093 2004-09-21  Bruno Haible  <bruno@clisp.org>
74094
74095         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
74096         Reported by Simon Josefsson.
74097
74098 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
74099
74100         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
74101         gl_AC_TYPE_LONG_LONG.
74102
74103 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
74104
74105         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
74106
74107 2004-09-18  Simon Josefsson  <jas@extundo.com>
74108         and  Paul Eggert  <eggert@cs.ucla.edu>
74109
74110         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
74111         calls with autoreconf.  Define GL_LIB.
74112
74113 2004-09-14  Karl Berry  <karl@gnu.org>
74114
74115         * config/srclist.txt: unsync setenv.c, sigh.
74116
74117 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
74118
74119         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
74120         Problem reported by Bruno Haible in:
74121         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
74122
74123 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
74124
74125         * config/srclist.txt: Comment out argp-pvh.c.
74126
74127 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
74128
74129         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
74130         in case some system header has #define'd it.  Problem reported by
74131         Soeren D. Schulze in
74132         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
74133
74134 2004-09-09  Karl Berry  <karl@gnu.org>
74135
74136         * regex.[ch]: delete from the root.  These were supposed to be
74137                 synced with emacs cvs, but this has not happened for about
74138                 a year, and anyway nothing else uses emacs regex.[ch].
74139                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
74140                 lib/regex[.ch] is untouched.
74141
74142 2004-09-09  Bruno Haible  <bruno@clisp.org>
74143
74144         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
74145
74146 2004-09-09  Bruno Haible  <bruno@clisp.org>
74147
74148         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
74149         modifications.
74150         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
74151
74152 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
74153
74154         * modules/xvasprintf: New file.
74155         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
74156
74157 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
74158
74159         * lib/xvasprintf.h: New file.
74160         * lib/xvasprintf.c: New file.
74161         * lib/xasprintf.c: New file.
74162
74163 2004-09-08  Bruno Haible  <bruno@clisp.org>
74164
74165         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
74166
74167 2004-09-08  Bruno Haible  <bruno@clisp.org>
74168
74169         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
74170         length is > INT_MAX.
74171         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
74172         more.
74173
74174 2004-09-08  Bruno Haible  <bruno@clisp.org>
74175
74176         * lib/stdint_.h: New file, taken from GNU clisp.
74177
74178 2004-09-08  Bruno Haible  <bruno@clisp.org>
74179             Oskar Liljeblad  <oskar@osk.mine.nu>
74180
74181         * modules/stdint: New file.
74182         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
74183
74184 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74185
74186         Import from coreutils.
74187         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
74188         strings on unbounded length.  alloca's performance benefits aren't
74189         that important here.
74190         (V_STRDUP): Remove.
74191         (parse_with_separator): New function, with most of the internals
74192         of the old parse_user_spec.  Allow user to omit both user and group,
74193         for compatibility with FreeBSD.
74194         Clone only the user name, not the entire spec.
74195         Do not set *uid, *gid unless entirely successful.
74196         Avoid memory leak in some failing cases.
74197         Fix regression for USER.GROUP reported by Dmitry V. Levin in
74198         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
74199         (parse_user_spec): Rewrite to use parse_with_separator.
74200
74201 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74202
74203         * modules/userspec: Don't depend on alloca.
74204
74205 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74206
74207         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
74208
74209 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
74210
74211         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
74212         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
74213         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
74214
74215 2004-08-16  Simon Josefsson  <jas@extundo.com>
74216
74217         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
74218         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
74219         Add --dry-run for --import.
74220         Let user provided command line parameters override configure.ac
74221         settings.
74222
74223 2004-08-12  Simon Josefsson  <jas@extundo.com>
74224
74225         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
74226         as discussed with Paul Eggert in threads rooted at
74227         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
74228         and
74229         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
74230         Before, the test was empty, and relied on ELIDE_CODE in source
74231         code.)
74232         (gl_PREREQ_GETOPT): New macro.
74233         (gl_GETOPT): Use them.
74234
74235 2004-08-12  Simon Josefsson  <jas@extundo.com>
74236
74237         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
74238         * lib/getopt_.h: Renamed from getopt.h.
74239
74240 2004-08-12  Simon Josefsson  <jas@extundo.com>
74241
74242         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
74243         Change default library name from libfoo to libgnu.
74244         Now, if you have a configure.ac that says:
74245                 gl_SOURCE_BASE(gl)
74246                 gl_M4_BASE(gl/m4)
74247                 gl_MODULES(error getopt etcetera)
74248                 gl_INIT
74249         you can import all you need by running:
74250                 ../gnulib/gnulib-tool --import
74251
74252         * modules/getopt (Files): Rename getopt.h to getopt_.h.
74253         (Makefile.am): Rewrite, use logic from argz.
74254         (Include): Use <getopt.h> instead of "getopt.h".
74255
74256 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
74257
74258         * modules/argp (Files): Add m4/unlocked-io.m4.
74259         (Depends-on): Add extensions.
74260
74261 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
74262
74263         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
74264         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
74265         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
74266         Check for program_invocation_name, program_invocation_short_name,
74267         flockfile, funlockfile, features.h, _getopt_long_only_r.
74268
74269 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
74270
74271         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
74272         its complicated substitute.
74273         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
74274         and program_invocation_name.
74275         (__argp_basename) [!_LIBC]: Remove; the only use was
74276         replaced by its body.
74277         (__argp_short_program_name): Change condition from
74278         !defined __argp_short_program_name to
74279         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
74280         to match argp-namefrob.h.
74281         (__argp_failure): Don't assume strerror_r returns char *.
74282         * lib/argp-parse.c (N_): Define unconditionally.
74283         (argp_default_options): Fill out initializers with 0 to avoid
74284         gcc warnings.
74285
74286 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
74287
74288         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
74289         getopt1.c.
74290
74291 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
74292
74293         Merge from coreutils.
74294
74295         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
74296
74297         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
74298         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
74299
74300 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
74301
74302         Merge from coreutils.
74303
74304         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
74305         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
74306         for Reliant Unix 5.43.
74307
74308         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
74309         (union fooround): Use uintmax_t, not long int.
74310         The rest is a merge from libc:
74311         [defined _LIBC]: Include <shlib-compat.h>.
74312         (_obstack) [defined _LIBC]: Remove after 2.3.4.
74313
74314         * lib/settime.c (settime): Recode to avoid warning with
74315         Sun Forte C 6U2.
74316
74317         * lib/strverscmp.c: Convert to UTF-8.
74318
74319 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
74320
74321         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
74322         m4/uintmax_t.m4.
74323
74324 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74325
74326         * modules/xalloc-die: New file.
74327         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
74328
74329         * modules/md5 (Files): Add m4/uint32_t.m4.
74330         * modules/sha1: Renamed from modules/sha.
74331         (Files):
74332         Rename lib/sha.h to lib/sha1.h.
74333         Rename lib/sha.c to lib/sha1.c.
74334         Rename m4/sha.m4 to m4/sha1.m4.
74335         (lib_SOURCES): Likewise.
74336         (configure.ac): Rename gl_SHA to gl_SHA1.
74337         (Include): sha.h -> sha1.h.
74338
74339 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74340
74341         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
74342         * m4/sha1.m4: Renamed from sha.m4.
74343         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
74344
74345 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74346
74347         * lib/obstack.h (obstack_empty_p):
74348         Don't assume that chunk->contents is suitably aligned.
74349         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
74350         Likewise. Problem reported by Benno in
74351         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
74352
74353         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
74354         readable.  This could be improved further but it'd take some work.
74355
74356 2004-08-08  Simon Josefsson  <jas@extundo.com>
74357
74358         * modules/xgethostname (Depends-on): Remove exit and error (not
74359         used).
74360
74361         * modules/getpass-gnu: Add getpass.h.
74362         (Depends-on): Add stdbool.
74363         * modules/getpass: Add getpass.h.
74364
74365 2004-08-08  Simon Josefsson  <jas@extundo.com>
74366
74367         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
74368         Check getpass declaration.
74369
74370 2004-08-08  Simon Josefsson  <jas@extundo.com>
74371
74372         * lib/xgethostname.c: Don't include error.h (not used).
74373
74374         * lib/getpass.h: Add.
74375         * lib/getpass.c: Include getpass.h first.
74376
74377 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
74378
74379         * lib/xalloc-die.c: New file.
74380         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
74381         All uses removed.
74382         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
74383         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
74384         xalloc-die.c.
74385         (_, N_, xalloc_die): Move to xalloc-die.c.
74386         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
74387         so that we needn't mess with xalloc_msg_memory_exhausted.
74388
74389         * lib/sha1.h: Renamed from sha.h.
74390         (SHA1_H): Renamed from _SHA_H.
74391         (sha1_ctx): Renamed from sha_ctx.
74392         (sha1_init_ctx): Renamed from sha_init_ctx.
74393         (sha1_process_block): Renamed from sha_process_block.
74394         (sha1_process_bytes): Renamed from sha_process_bytes.
74395         (sha1_finish_ctx): Renamed from sha_finish_ctx.
74396         (sha1_read_ctx): Renamed from sha_read_ctx.
74397         (sha1_stream): Renamed from sha_stream.
74398         (sha1_buffer): Renamed from sha_buffer.
74399         * lib/sha1.c: Likewise; renamed from sha.c.
74400         Do not include <sys/types.h>.
74401         Include <stddef.h> rather than <stdlib.h>.
74402
74403 2004-08-08  Bruno Haible  <bruno@clisp.org>
74404
74405         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
74406         FILESYSTEM_PREFIX_LEN.
74407         * lib/progreloc.c: Likewise.
74408         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
74409
74410 2004-08-06  Simon Josefsson  <jas@extundo.com>
74411
74412         * modules/progname (Depends-on): Don't depend on stdbool.
74413
74414 2004-08-06  Simon Josefsson  <jas@extundo.com>
74415
74416         * modules/getsubopt: New file.
74417         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74418         getsubopt.
74419
74420 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
74421
74422         More merge from coreutils.
74423
74424         * m4/utimens.m4, m4/utimecmp.m4: New files.
74425         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
74426         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
74427         prereq.m4, sha.m4: Import changes from coreutils.
74428
74429 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
74430
74431         More merge from coreutils.
74432         * modules/raise, modules/readtokens0, modules/utimens:
74433         * modules/utimecmp, module/xnanosleep: New files.
74434         * modules/strftime: Add lib/strftime.h.
74435         Change include from <time.h> to "strftime.h".
74436         * modules/yesno: Add lib/yesno.h.
74437         * modules/backupfile: Remove lib/addext.c.
74438         * modules/euidaccess: Add stat-macros.h.
74439         * modules/canonicalize, modules/euidaccess,
74440         modules/filemode, modules/lchown, modules/makepath,
74441         modules/rmdir, modules/stat: Likewise.
74442
74443 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
74444
74445         Merge from tar.
74446         * lib/argp-help.c (make_hol, hol_append): Don't assume that
74447         SIZE_MAX is a valid preprocessor constant.
74448         (__argp_basename): Change from "#ifndef _LIBC"
74449         to "#ifndef __argp_short_program_name", so that
74450         we don't compile these functions for tar.
74451
74452         More merges from coreutils.
74453         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
74454         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
74455         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
74456         * lib/addext.c: Remove; no longer needed.
74457         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
74458         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
74459         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
74460         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
74461         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
74462         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
74463         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
74464         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
74465         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
74466         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
74467         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
74468         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
74469         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
74470         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
74471         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
74472         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
74473         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
74474         Import changes from coreutils.
74475
74476 2004-08-05  Simon Josefsson  <jas@extundo.com>
74477
74478         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
74479
74480 2004-08-05  Simon Josefsson  <jas@extundo.com>
74481
74482         * m4/getsubopt.m4: New file.
74483
74484 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
74485
74486         Merge from coreutils.
74487
74488         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
74489         * m4/getcwd-path-max.m4: New files.
74490
74491         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
74492         FILESYSTEM_PREFIX_LEN ->
74493         FILE_SYSTEM_PREFIX_LEN.
74494         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
74495         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
74496         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
74497         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
74498
74499         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
74500         prerequisite modules now handle the DOS stuff.
74501         Don't check for unistd.h.
74502
74503 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
74504
74505         Merge from coreutils.
74506
74507         * lib/.gdb-history: Remove; this doesn't belong here.
74508
74509         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
74510         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
74511         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
74512         * lib/getcwd.c: New files.
74513
74514         * lib/dirname.h: Include <stdbool.h>.
74515         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
74516         for consistency with POSIX terminology.  All uses changed.
74517         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
74518         (strip_trailing_slashes): Use bool for booleans.
74519         * lib/stripslash.c (strip_trailing_slashes): Likewise.
74520
74521         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
74522         sometimes returns a positive errno value even when it succeeds.
74523         (print_errno_message) [!LIBC]: Fall back on strerror if
74524         __strerror_r fails.
74525
74526         * lib/path-concat.c (mempcpy): Don't define if a system header defines
74527         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
74528         (longest_relative_suffix): New function.
74529         (path_concat): Use it.  Assume first argument is not NULL.
74530         Port to DOS.  Omit redundant separators.
74531         Report an error instead of returning NULL.
74532         Use mempcpy instead of memcpy.
74533         (xpath_concat): Remove: not declared or used.
74534
74535         * lib/same.h: Include <stdbool.h>
74536         (same_name): Return bool, not int.
74537         * lib/same.c (same_name): Likewise.
74538         (errno): Don't declare; we assume C89 or better now.
74539
74540         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
74541         if not already defined.
74542
74543         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
74544         * lib/dup-safer.c (errno): Likewise.
74545
74546 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
74547
74548         Merge from coreutils.
74549         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
74550         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
74551         * modules/path-concat: Don't depend on strdup.
74552
74553 2004-08-03  Simon Josefsson  <jas@extundo.com>
74554
74555         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
74556         * lib/progname.h: Don't include stdbool.h.
74557
74558 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
74559
74560         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
74561         * MODULES.html.sh (func_all_modules): Remove fatal.
74562
74563 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
74564
74565         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
74566
74567 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
74568
74569         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
74570         working.
74571
74572 2004-08-02  Simon Josefsson  <jas@extundo.com>
74573
74574         * lib/getsubopt.h: New file, with comments from Bruno Haible.
74575         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
74576         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
74577
74578 2004-08-01  Simon Josefsson  <jas@extundo.com>
74579
74580         * lib/xgetdomainname.c: Include stdlib.h, for free().
74581
74582 2004-07-19  Bruno Haible  <bruno@clisp.org>
74583
74584         * MODULES.html.sh (func_all_modules): Add dummy.
74585
74586 2004-07-16  Simon Josefsson  <jas@extundo.com>
74587
74588         * modules/dummy: New file.
74589
74590 2004-07-16  Simon Josefsson  <jas@extundo.com>
74591
74592         * lib/dummy.c: New file.
74593
74594 2004-07-16  Bruno Haible  <bruno@clisp.org>
74595
74596         * lib/backupfile.h: Add extern "C" for C++.
74597         * lib/closeout.h: Likewise.
74598         * lib/copy-file.h: Likewise.
74599         * lib/findprog.h: Likewise.
74600         * lib/full-write.h: Likewise.
74601         * lib/pathname.h: Likewise.
74602         * lib/progname.h: Likewise.
74603         * lib/stpcpy.h: Likewise.
74604         * lib/stpncpy.h: Likewise.
74605         * lib/strcase.h: Likewise.
74606         * lib/strstr.h: Likewise.
74607         * lib/xalloc.h: Likewise.
74608
74609         * lib/mbswidth.h: Add extern "C" for C++.
74610         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
74611
74612 2004-07-13  Robert Millan  <robertmh@gnu.org>
74613
74614         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
74615
74616 2004-07-09  Simon Josefsson  <jas@extundo.com>
74617
74618         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
74619         failed without this.)
74620
74621 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
74622
74623         * modules/chown (Files): Add lib/fchown-stub.c, since
74624         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
74625
74626 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
74627
74628         * lib/fchown-stub.c: New file.
74629
74630 2004-06-24  Jim Meyering  <jim@meyering.net>
74631
74632         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
74633
74634 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74635
74636         * modules/argz: Omit "#include".
74637
74638         * MODULES.html.sh (func_all_modules): Add calloc, to match
74639         2004-06-01 addition of calloc module.
74640
74641 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74642
74643         * m4/argz.m4: New file, which is autoupdated from libtool.
74644
74645 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74646
74647         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
74648         libtool.
74649
74650 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74651
74652         * config/srclist-update: Don't insist on "USA." before the
74653         close-comment, as libtool omits the period and puts the */ on a
74654         separate line.
74655         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
74656         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
74657
74658 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
74659
74660         * modules/argz: New file.
74661         * MODULES.html.sh (func_all_modules): Add argz.
74662
74663 2004-06-12  Jim Meyering  <jim@meyering.net>
74664         and  Paul Eggert  <eggert@cs.ucla.edu>
74665
74666         * modules/hash (Files): Add lib/xalloc.h.
74667         * modules/pipe (Depends-on): Add wait-process.
74668         * modules/stat (Depends-on): Add xalloc.
74669         * modules/userspec (Files): Add lib/userspec.h.
74670         * modules/xstrto
74671
74672         Upgrade from gettext-0.13.
74673         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
74674         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
74675         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
74676
74677 2004-06-10  Jim Meyering  <jim@meyering.net>
74678
74679         * lib/calloc.c: New file.
74680
74681 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
74682
74683         * lib/getdate.y (yylex): Allow space between sign and number.
74684         Problem reported by Dan Jacobson.
74685
74686 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
74687
74688         Merge from coreutils CVS.
74689
74690         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
74691         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
74692         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
74693         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
74694         xstrtol.m4: Fix copyright date and/or serial number.
74695
74696         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
74697         See if we need an fchown replacement.
74698         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
74699         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
74700         and use the replacement function if we detect either defect.
74701
74702         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
74703         gl_UTIMECMP.
74704
74705 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
74706         and  Jim Meyering  <jim@meyering.net>
74707
74708         Merge from coreutils CVS.
74709
74710         * lib/stat-macros.h: New file, with contents from file-type.h
74711         and coreutils' system.h.
74712         * lib/file-type.c: Include "stat-macros.h".
74713         * lib/file-type.h (file_type): Move all macro definitions to new file,
74714         stat-macros.h.
74715
74716         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
74717         Wrap old code with this conditional.
74718         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
74719         function that does not dereference symlinks.
74720         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
74721
74722         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
74723         dependency problems.
74724         (xreadlink): Accept new arg SIZE, for efficiency.
74725         All decls and uses changed.
74726         * lib/xreadlink.h: Include <stddef.h>, for size_t.
74727
74728         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
74729         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
74730
74731         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
74732         sysexits.h.
74733
74734 2004-06-01  Jim Meyering  <jim@meyering.net>
74735
74736         * m4/calloc.m4: New file.
74737
74738 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
74739
74740         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
74741         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
74742         Also, fix a typo in a diagnostic.
74743
74744 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
74745
74746         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
74747         or AC_FUNC_REALLOC.
74748
74749 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
74750
74751         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
74752         macros to be defined.
74753         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
74754         the allocator returns NULL because the requested size is zero.
74755
74756 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
74757
74758         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
74759         var.  Add comment explaining why libc still defines it.  This
74760         merges the following patch from glibc:
74761         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
74762
74763 2004-05-20  Andreas Schwab  <schwab@suse.de>
74764
74765         * m4/free.m4: Replace free if it not known to work, not the other
74766         way round.
74767
74768 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
74769
74770         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
74771         present in glibc since revision 1.1 of this file.
74772         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
74773         obstack_alignment_mask, obstack_alloc, obstack_base,
74774         obstack_blank, obstack_blank_fast, obstack_chunk_size,
74775         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
74776         obstack_grow0, obstack_init, obstack_int_grow,
74777         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
74778         obstack_next_free, obstack_object_size, obstack_ptr_grow,
74779         obstack_ptr_grow_fast, obstack_room): Remove declarations of
74780         nonexistent functions.
74781
74782 2004-05-18  Karl Berry  <karl@gnu.org>
74783
74784         * config/srclist.txt: break link for vasnprintf.c.
74785
74786 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
74787
74788         Port obstack to the AS/400, where pointers are 16 bytes wide and
74789         you cannot cast an integer to a valid pointer.  This patch is
74790         currently waiting to be integrated into glibc; see
74791         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
74792
74793         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
74794         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
74795         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
74796         (struct obstack): temp member is now a union of a pointer and
74797         an integer, instead of an integer.  All integer uses changed.
74798         This does not affect the physical layout of struct obstack,
74799         except on hosts (like the AS/400) where the size or alignment of
74800         void * is greater than that of ptrdiff_t.
74801         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
74802         __STDC__)]: Store temporary in pointer member of union, not
74803         integer member.
74804         * lib/obstack.c: Include <stddef.h>, for offsetof.
74805         (struct fooalign): Remove; it doesn't need a name.
74806         (union fooround): Change double to long double, and add void *.
74807         (DEFAULT_ALIGNMENT): Use offsetof to compute.
74808         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
74809         not a macro.  Hence the values are always int; so remove all
74810         casts-to-int in uses.
74811
74812 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
74813
74814         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
74815         we can get this patch merged into glibc.
74816
74817 2004-05-17  Derek R. Price  <derek@ximbiot.com>
74818             Paul Eggert  <eggert@cs.ucla.edu>
74819
74820         * m4/argp: Depend on alloca.
74821
74822 2004-05-17  Derek R. Price  <derek@ximbiot.com>
74823             Paul Eggert  <eggert@cs.ucla.edu>
74824
74825         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
74826         freecoding.
74827
74828 2004-05-17  Bruno Haible  <bruno@clisp.org>
74829
74830         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
74831         precision that consists of a '.' followed by an empty digit string.
74832         Patch by Tor Lillqvist <tml@iki.fi>.
74833
74834 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
74835
74836         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
74837         for backward compatibility with older code.  We need our own
74838         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
74839         it under some other name, and our alloca.h will define it.
74840
74841 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
74842             Derek Price  <derek@ximbiot.com>
74843
74844         * lib/alloca.c: Include <alloca.h>, to get our interface.
74845         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
74846         include <alloca.h> first.  Use C89 prototype for alloca; this
74847         requires including <stddef.h> for size_t.  Use extern "C" if C++.
74848         Use #elif for simplicity, since we can assume C89 now.
74849         Don't try to source the system alloca.h since it will not be found
74850         and to prevent recursively including its replacement.
74851         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
74852         * lib/regex.c: Likewise.
74853
74854 2004-05-16  Derek Price  <derek@ximbiot.com>
74855             Paul Eggert  <eggert@cs.ucla.edu>
74856
74857         getline cleanup.  This changes the getndelim2 API: both order of
74858         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
74859         no delimiter).
74860
74861         * lib/getline.c: Don't include stddef.h or stdio.h, since our
74862         interface does that.
74863         (getline): Always use getdelim, so that we don't have two
74864         copies of this code.
74865         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
74866         if available.
74867         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
74868         (GETNDELIM2_MAXIMUM): New macro.
74869         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
74870         instead of the old practice of delim2==0.  All callers changed.
74871         Return -1 on overflow, instead of returning junk.
74872         Do not set *linesize unless allocation succeeds.
74873         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
74874         that we include sys/types.h.
74875         * lib/getnline.h: Likewise.
74876         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
74877         (getndelim2): Reorder arguments.
74878         * lib/getnline.c (getnline, getndelim):
74879         Don't discard the NMAX argument.
74880         (getnline): Invoke getndelim, to avoid code duplication.
74881         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
74882         of (size_t) -1 by callers of the getnline family.
74883
74884 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
74885
74886         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
74887         Check for gettimeofday.
74888         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
74889         Check for settimeofday, stime.
74890
74891 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
74892
74893         * lib/nanosleep.c (suspended): Change its type from int to
74894         sig_atomic_t volatile.
74895         (first_call): Make it private to rpl_nanosleep, and have it
74896         be zero initially as that's a bit faster.
74897         (my_usleep): Round up fractional times instead of truncating them,
74898         as this is the usual meaning for 'sleep'.
74899
74900         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
74901         doesn't work.
74902         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
74903         (ENOSYS): Define if not defined.
74904         (settime): Fall back on stime if it exists and settimeofday fails.
74905         But don't bother with fallbacks if a method fails with errno == EPERM.
74906
74907 2004-05-11  Jim Meyering  <jim@meyering.net>
74908
74909         Prior to this change, the save_cwd caller required read access to the
74910         current directory on most systems (ones with the fchdir function).
74911
74912         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
74913         fails, try write-only, and finally, resort to using xgetcwd.
74914
74915 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
74916
74917         * lib/obstack.c, obstack.h: Import changes from libc.
74918
74919 2004-04-28  Bruno Haible  <bruno@clisp.org>
74920
74921         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
74922         also implicitly appends .exe to executables.
74923         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
74924         accepts Windows pathnames.
74925         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
74926         Treat Cygwin like Windows, since it now accepts Windows pathnames.
74927         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
74928         Treat Cygwin like Windows, since it now accepts Windows pathnames.
74929         Reported by Derek Robert Price <derek@ximbiot.com>.
74930
74931 2004-04-21  Karl Berry  <karl@gnu.org>
74932
74933         * config/srclist.txt (localcharset.c): break sync.
74934
74935 2004-04-20  Paul Eggert  <eggert@twinsun.com>
74936
74937         * m4/host-os.m4: Add a copyright notice.
74938
74939 2004-04-20  Jim Meyering  <jim@meyering.net>
74940
74941         Change UTILS_ to gl_ in AC_DEFINE'd names.
74942         Change utils_- and jm_-prefixed variables, too.
74943         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
74944         UTILS_FUNC_MKDIR_TRAILING_SLASH.
74945         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
74946
74947         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
74948         Don't emit trailing blanks.
74949         Also rename jm_-prefixed variables to have gl_ prefix.
74950
74951         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
74952         Also rename jm_-prefixed variables to have gl_ prefix.
74953
74954         * m4/jm-macros.m4: Reflect the renamings.
74955         * m4/prereq.m4: Likewise.
74956
74957 2004-04-20  Jim Meyering  <jim@meyering.net>
74958
74959         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
74960         memory.
74961
74962 2004-04-20  Jim Meyering  <jim@meyering.net>
74963             Bruno Haible  <bruno@clisp.org>
74964
74965         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
74966         memory when realloc fails.
74967
74968 2004-04-19  Jim Meyering  <jim@meyering.net>
74969
74970         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
74971         now that readutmp.c may call `free (0)'.
74972
74973 2004-04-19  Bruno Haible  <bruno@clisp.org>
74974
74975         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
74976         * m4/inttypes_h.m4: Likewise.
74977         * m4/stdint_h.m4: Likewise.
74978         * m4/intmax_t.m4: Likewise.
74979         * m4/uintmax_t.m4: Likewise.
74980
74981 2004-04-18  Jim Meyering  <jim@meyering.net>
74982
74983         * m4/prereq.m4: Don't forbid jm_ prefix.
74984
74985         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
74986         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
74987         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
74988         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
74989         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
74990         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
74991         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
74992         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
74993         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
74994         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
74995         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
74996         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
74997         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
74998         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
74999         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
75000         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
75001         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
75002         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
75003         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
75004
75005 2004-04-18  Jim Meyering  <jim@meyering.net>
75006
75007         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
75008         failure, don't leak memory and do call END_UTMP_ENT.
75009
75010 2004-04-16  Jim Meyering  <jim@meyering.net>
75011
75012         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
75013         coreutils' stat program.
75014         (gl_PREREQ): Don't require jm_PREREQ_STAT.
75015
75016 2004-04-11  Paul Eggert  <eggert@twinsun.com>
75017
75018         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
75019         C89.
75020         (CHAR_BIT): Remove, since we assume C89.
75021         Include <stdint.h> if available, as per current Autoconf CVS advice.
75022
75023 2004-03-31  Jim Meyering  <jim@meyering.net>
75024
75025         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
75026         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
75027         * m4/xalloc.m4: Likewise.
75028
75029 2004-03-30  Paul Eggert  <eggert@twinsun.com>
75030
75031         Merge from coreutils.
75032
75033         * m4/inttostr.m4: New file.
75034         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
75035         Require AM_STDBOOL_H and gl_TIMESPEC instead.
75036         Require gl_CLOCK_TIME.
75037         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
75038
75039 2004-03-30  Paul Eggert  <eggert@twinsun.com>
75040
75041         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
75042         not bool, to be more consistent with Unix conventions.
75043         Suggested by Bruno Haible.
75044
75045         Merge from coreutils.
75046
75047         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
75048         * lib/umaxtostr.c: New files.
75049
75050         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
75051         the usual <time.h> dance.
75052         (get_date): Change signature to support fractional time stamps.
75053         All callers changed.
75054         * lib/getdate.y: Include "getdate.h" first, as we can now
75055         assume C89 and don't need to worry about 'const'.
75056         Similarly, include "unlocked-io.h" near start, not in middle.
75057         Include <limits.h>.
75058         (textint.value): Use long int rather than int.
75059         (textint.digits): Use size_t rather than int.
75060         (BILLION, LOG10_BILLION): New constants.
75061         (parser_control): New member rel_ns.  Members day_ordinal,
75062         time_zone, month, day, hour, minutes, rel_year, rel_month,
75063         rel_day, rel_hour, rel_minutes, rel_seconds
75064         are now long int, not int.  Member seconds is now struct timespec,
75065         not int.  New member timespec_seen.  Members dates_seen, days_seen,
75066         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
75067         not int.
75068         (%union.intval): Now long int, not int.
75069         New member timespec.
75070         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
75071         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
75072         (spec): Now is a timespec or an item list.
75073         (timespec, items): New nonterminals.
75074         (time, rel, relunit, number, get_date):
75075         Add support for fractional seconds.
75076         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
75077         (gmtime, localtime, mktime): Remove decls; not needed with C89.
75078         (to_hour): First arg is now long int, not int.
75079         (to_year): Returns long int, not int.
75080         Don't treat year -70 like 70.
75081         (tm_diff): Returns long int, not int.
75082         (lookup_word): Use bool instead of int when appropriate.
75083         (yylex): Use size_t for count, not int.
75084         Detect overflow when parsing large integer constants.
75085         Add support for fractions.
75086         (get_date): Make pointers 'const' if possible.
75087         Use more-portable code to detect integer overflow.
75088         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
75089         Don't use ctime; it's not reliable if the year has >4 digits.
75090
75091         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
75092         This is for compatibility with BSD.
75093
75094         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
75095         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
75096         From coreutils' system.h.
75097
75098         * lib/userspec.c: Don't include "posixver.h".
75099         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
75100         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
75101         compatible extension.  Simplify code by removing a boolean int
75102         that was always nonzero if a string was nonnull.
75103
75104 2004-03-30  Jim Meyering  <jim@meyering.net>
75105
75106         Merge from coreutils.
75107
75108         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
75109         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
75110         on some systems one must include <grp.h> before it.
75111         Reported by Christian Krackowizer.
75112
75113 2004-03-30  Jim Meyering  <jim@meyering.net>
75114
75115         Merge from coreutils.
75116
75117         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
75118
75119         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
75120         an empty input stream.
75121
75122         * lib/readtokens.c: Include <stdbool.h>.
75123         (readtoken): Use `size_t' rather than int/long.
75124         All callers adjusted.
75125         Use `bool' rather than `int' where appropriate.
75126         Use memset rather than an explicit loop.
75127         Use x2nrealloc rather than xrealloc.
75128         Allow the use of `\0' as a delimiter.
75129         (readtokens): Likewise.
75130         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
75131
75132 2004-03-30  Jim Meyering  <jim@meyering.net>
75133
75134         * m4/realloc.m4: Remove file, since now it does no more than
75135         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
75136         the `configure.ac' section of module/realloc.
75137         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
75138
75139 2004-03-30  Bruno Haible  <bruno@clisp.org>
75140
75141         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
75142         nonnull.
75143
75144 2004-03-29  Paul Eggert  <eggert@twinsun.com>
75145
75146         Merge changes to getloadavg.c from coreutils and Emacs.
75147
75148         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
75149         Define to an expression, not to the empty string.
75150         Include cloexec.h and xalloc.h.
75151         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
75152         Use set_cloexec_flag rather than rolling our own.
75153         * lib/cloexec.c, lib/cloexec.h: New files.
75154
75155 2004-03-29  Paul Eggert  <eggert@twinsun.com>
75156
75157         * m4/cloexec.m4: New file.
75158
75159 2004-03-18  Paul Eggert  <eggert@twinsun.com>
75160
75161         * lib/getopt.h: Sync with libc CVS.
75162
75163 2004-03-18  Paul Eggert  <eggert@twinsun.com>
75164             Bruno Haible  <bruno@clisp.org>
75165
75166         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
75167         mbswidth.
75168
75169 2004-03-18  Paul Eggert  <eggert@twinsun.com>
75170             Bruno Haible  <bruno@clisp.org>
75171
75172         * lib/mbswidth.h: Include <wchar.h> only if
75173         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
75174         <wchar.h>.
75175         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
75176
75177 2004-03-09  Paul Eggert  <eggert@twinsun.com>
75178
75179         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
75180         Sync with libc CVS.
75181         * lib/getopt_int.h: New file, also synced from libc.
75182
75183 2004-03-09  Paul Eggert  <eggert@twinsun.com>
75184
75185         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
75186         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
75187         Bring back getopt.c, getopt.h, getopt1.c.
75188
75189 2004-03-07  Paul Eggert  <eggert@twinsun.com>
75190
75191         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
75192         All uses changed.  Check for sa_sigaction member; this fixes
75193         a bug first reported by Jason Andrade in
75194         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
75195
75196 2004-03-07  Paul Eggert  <eggert@twinsun.com>
75197
75198         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
75199         '#if' expressions.  Unlike the code it replaces, it does not
75200         depend on (defined _SC_PAGESIZE).  However, it does depend on
75201         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
75202         first reported by Jason Andrade in
75203         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
75204
75205 2004-02-25  Simon Josefsson  <jas@extundo.com>
75206
75207         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
75208
75209 2004-02-25  Simon Josefsson  <jas@extundo.com>
75210
75211         * lib/strdup.h: New file.
75212         * lib/strdup.c: Include it.
75213         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
75214         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
75215
75216 2004-02-23  Karl Berry  <karl@gnu.org>
75217
75218         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
75219         (from fencepost.gnu.org:/gd/gnuorg).
75220
75221 2004-02-23  Karl Berry  <karl@gnu.org>
75222
75223         * config/srclistvars.sh (GNUORG) [karl]: redefine.
75224         * config/srclist.txt: add maintain/standards documents.
75225
75226 2004-02-18  Bruno Haible  <bruno@clisp.org>
75227
75228         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
75229         Reported by Derek Robert Price <derek@ximbiot.com>.
75230
75231 2004-02-16  Karl Berry  <karl@gnu.org>
75232
75233         * config/mkinstalldirs, install-sh: update from automake.
75234
75235 2004-02-06  Karl Berry  <karl@gnu.org>
75236
75237         * m4/po.m4: update from gettext 0.14.1.
75238
75239 2004-02-06  Karl Berry  <karl@gnu.org>
75240
75241         * lib/config.charset: update from gettext 0.14.1.
75242
75243 2004-02-05  Paul Eggert  <eggert@twinsun.com>
75244
75245         Add comments and code, prompted by suggestions from Bruno Haible
75246         for sh-quote.
75247         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
75248         describing the enum quoting_style values.
75249         * lib/quotearg.c (quotearg_alloc): New function.
75250         (quotearg_buffer_restyled): Treat lone { and } as special.
75251         Treat = as special.  Work around bug with older shells
75252         that "see" a '\' that is really the 2nd byte of a multibyte char.
75253         Quote empty string with shell_quoting_style.
75254
75255 2004-02-03  Bruno Haible  <bruno@clisp.org>
75256
75257         * m4/pipe.m4: New file, from GNU gettext.
75258
75259 2004-02-03  Bruno Haible  <bruno@clisp.org>
75260
75261         * lib/pipe.h: New file, from GNU gettext.
75262         * lib/pipe.c: New file, from GNU gettext.
75263
75264 2004-01-27  Bruno Haible  <bruno@clisp.org>
75265
75266         * m4/execute.m4: New file, from GNU gettext.
75267
75268 2004-01-27  Bruno Haible  <bruno@clisp.org>
75269
75270         * lib/execute.h: New file, from GNU gettext.
75271         * lib/execute.c: New file, from GNU gettext.
75272         * lib/w32spawn.h: New file, from GNU gettext.
75273
75274 2004-01-24  Paul Eggert  <eggert@twinsun.com>
75275
75276         Merge from diffutils.
75277
75278         * lib/file-type.c (file_type): Add typed memory objects.
75279         * lib/file-type.h (S_TYPEISTMO): New macro.
75280
75281         * lib/c-stack.h (c_stack_action): Remove argv argument.
75282         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
75283         (die): Don't calculate message unless segv_action returns.
75284         (get_stack_location, min_address_from_argv, max_address_from_argv,
75285         volatile stack_base, volatile_stack_size): Remove.
75286         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
75287         that every segmentation violation is a stack overflow.  (Ouch!)
75288         See Debian bug 136249 (still outstanding) for more info about why
75289         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
75290
75291 2004-01-24  Paul Eggert  <eggert@twinsun.com>
75292
75293         Exit-status fix from coreutils.
75294
75295         Use exit_failure consistently in place of EXIT_FAILURE,
75296         so that program exit statuses are consistent on failure.
75297
75298         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
75299         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
75300         * lib/argmatch.h: Comment fix to match the above.
75301         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
75302         Now a macro referring to exit_failure, instead of a separate
75303         variable.  Include "exitfail.h" to get it.
75304         * lib/xstrtol.h: Include "exitfail.h".
75305         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
75306
75307         * lib/long-options.c (parse_long_options): Use prototype
75308         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
75309         for clarity.
75310
75311 2004-01-21  Jim Meyering  <jim@meyering.net>
75312
75313         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
75314         so as not to conflict with a different-sized __mktime_internal
75315         function in GNU libc.
75316         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
75317         Problem building statically-linked `ls' reported by Michael Brunnbauer.
75318
75319 2004-01-20  Karl Berry  <karl@gnu.org>
75320
75321         * config/config.guess: update from config.
75322
75323         * config/srclistvars.sh: GNUWWWLICENSES for karl.
75324
75325 2004-01-20  Bruno Haible  <bruno@clisp.org>
75326
75327         Safer stack allocation.
75328         * lib/setenv.c: Include allocsa.h.
75329         (alloca): Remove fallback definition.
75330         (freea): Remove macro.
75331         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
75332         instead of freea.
75333
75334 2004-01-20  Bruno Haible  <bruno@clisp.org>
75335
75336         * m4/eealloc.m4: New file, from GNU gettext.
75337
75338 2004-01-20  Bruno Haible  <bruno@clisp.org>
75339
75340         * m4/allocsa.m4: New file, from GNU gettext.
75341
75342 2004-01-20  Bruno Haible  <bruno@clisp.org>
75343
75344         * lib/xallocsa.h: New file, from GNU gettext.
75345         * lib/xallocsa.c: New file, from GNU gettext.
75346
75347 2004-01-20  Bruno Haible  <bruno@clisp.org>
75348
75349         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
75350
75351 2004-01-20  Bruno Haible  <bruno@clisp.org>
75352
75353         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
75354         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
75355         specially.
75356
75357 2004-01-20  Bruno Haible  <bruno@clisp.org>
75358
75359         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
75360         patch.
75361
75362 2004-01-20  Bruno Haible  <bruno@clisp.org>
75363
75364         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
75365
75366 2004-01-20  Bruno Haible  <bruno@clisp.org>
75367
75368         * lib/eealloc.h: New file.
75369
75370 2004-01-20  Bruno Haible  <bruno@clisp.org>
75371
75372         * lib/binary-io.h: Avoid warnings on Cygwin.
75373
75374 2004-01-20  Bruno Haible  <bruno@clisp.org>
75375
75376         * lib/allocsa.h: New file, from GNU gettext.
75377         * lib/allocsa.c: New file, from GNU gettext.
75378
75379 2004-01-18  Karl Berry  <karl@gnu.org>
75380
75381         * doc/gpl.texi, doc/lgpl.texi: new files.
75382
75383 2004-01-18  Karl Berry  <karl@gnu.org>
75384
75385         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
75386         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
75387
75388 2004-01-15  Paul Eggert  <eggert@twinsun.com>
75389
75390         Merge from coreutils.
75391
75392         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
75393         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
75394         (gl_DEFAULT_POSIX2_VERSION): Move
75395         the documentation from 'configure' into 'config.hin',
75396         so that 'configure --help' isn't burdened by it and
75397         we don't have to worry about its formatting there.
75398         Reword the documentation so that it's more succinct
75399         and can be run together into a single paragraph.
75400         * m4/same.m4 (gl_SAME): Check for pathconf.
75401
75402 2004-01-15  Paul Eggert  <eggert@twinsun.com>
75403
75404         Merge from coreutils.
75405
75406         * lib/posixver.c: Include posixver.h.
75407
75408         * lib/same.c: Include <stdbool.h>, <limits.h>.
75409         (_POSIX_NAME_MAX): Define if not defined.
75410         (MIN): New macro.
75411         (same_name): If file names are silently truncated, report
75412         that the file names are the same if they are the same after
75413         the silent truncation.
75414
75415         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
75416         conversion function.
75417         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
75418         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
75419         longer needed.
75420
75421 2004-01-15  Jim Meyering  <jim@meyering.net>
75422
75423         Merge from coreutils.
75424
75425         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
75426         if no library is required.
75427         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
75428         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
75429         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
75430         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
75431         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
75432         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
75433         value, $ac_cv_search_crypt, if it's "none required".
75434         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
75435         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
75436         not gl_FUNC_GETLOADAVG.
75437         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
75438         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
75439
75440 2004-01-15  Jim Meyering  <jim@meyering.net>
75441
75442         Merge from coreutils.
75443
75444         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
75445         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
75446         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
75447
75448         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
75449         optional configure-time default.
75450
75451         * lib/version-etc.c (version_etc_copyright): Update copyright date.
75452
75453         * lib/xreadlink.c (xreadlink): Correct outdated comment.
75454
75455 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
75456
75457         Merge from coreutils.
75458
75459         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
75460         value, $ac_cv_search_nanosleep, if it's "none required".
75461
75462 2004-01-14  Paul Eggert  <eggert@twinsun.com>
75463
75464         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
75465         with like-named macro in fnmatch.c.
75466         (EXT): Use an internal constant instead.
75467
75468         Merge fnmatch patches from glibc.
75469         * lib/fnmatch.c (mbsinit): Remove define.
75470         Add libc_hidden_ver (__fnmatch, fnmatch).
75471         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
75472         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
75473
75474 2004-01-14  Karl Berry  <karl@gnu.org>
75475
75476         * config/install-sh: update from automake.
75477
75478 2004-01-13  Karl Berry  <karl@gnu.org>
75479
75480         * config/install-sh: update from automake.
75481
75482 2004-01-09  Karl Berry  <karl@gnu.org>
75483
75484         * config/install-sh: update from automake.
75485
75486 2004-01-05  Karl Berry  <karl@gnu.org>
75487
75488         * config/config.{sub,guess}: update from config.
75489
75490 2003-12-31  Karl Berry  <karl@gnu.org>
75491
75492         * config/depcomp: update from automake.
75493
75494 2003-12-14  Karl Berry  <karl@gnu.org>
75495
75496         * lib/config.charset: update from gettext-runtime.
75497
75498 2003-12-03  Paul Eggert  <eggert@twinsun.com>
75499
75500         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
75501         Bug reported by Alfred M. Szmidt.
75502
75503 2003-12-03  Bruno Haible  <bruno@clisp.org>
75504
75505         * m4/gettext.m4: Upgrade from gettext-0.13.
75506         * m4/po.m4: Upgrade from gettext-0.13.
75507         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
75508         * m4/intmax.m4: New file, from gettext-0.13.
75509         * m4/printf-posix.m4: New file, from gettext-0.13.
75510
75511 2003-11-29  Karl Berry  <karl@gnu.org>
75512
75513         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
75514
75515 2003-11-25  Paul Eggert  <eggert@twinsun.com>
75516             Bruno Haible  <bruno@clisp.org>
75517
75518         * lib/printf-parse.h: Don't include sys/types.h.
75519         (ARG_NONE): New macro.
75520         (char_directive): Change type of *arg_index fields to size_t.
75521         * lib/printf-parse.c: Don't include sys/types.h.
75522         (SSIZE_MAX): Remove macro.
75523         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
75524         Remove unnecessary overflow check.
75525         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
75526         fields.
75527
75528 2003-11-25  Bruno Haible  <bruno@clisp.org>
75529
75530         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
75531
75532 2003-11-25  Bruno Haible  <bruno@clisp.org>
75533
75534         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
75535         gt_TYPE_SSIZE_T.
75536
75537 2003-11-24  Paul Eggert  <eggert@twinsun.com>
75538
75539         * modules/alloca: Remove dependency on xalloc.
75540
75541 2003-11-24  Paul Eggert  <eggert@twinsun.com>
75542
75543         * lib/alloca.c: Remove dependency on xalloc module.
75544         (xalloc_die): Remove.
75545         (memory_full) [!defined emacs]: New macro.
75546         [!defined emacs]: Don't include xalloc.h.
75547         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
75548         address arithmetic overflows.  Change datatypes a bit to avoid
75549         unnecessary casts.
75550
75551 2003-11-22  Jim Meyering  <jim@meyering.net>
75552
75553         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
75554         s/size/size_t/.
75555
75556 2003-11-21  Karl Berry  <karl@gnu.org>
75557
75558         * config/config.{sub,guess}: update from config.
75559
75560 2003-11-18  Karl Berry  <karl@gnu.org>
75561
75562         * config/config.{sub,guess}: update from config.
75563
75564         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
75565
75566 2003-11-17  Paul Eggert  <eggert@twinsun.com>
75567
75568         * README: Mention that S+T cannot overflow if S is the size of
75569         an existing object and T is sufficiently small.
75570
75571 2003-11-17  Jim Meyering  <jim@meyering.net>
75572
75573         On systems without utime and without a utimes function capable of
75574         dealing with a NULL struct utimbuf* argument, this utime replacement
75575         could -- in unusual circumstances -- leak a file descriptor.
75576         * lib/utime.c: Include <unistd.h> and <errno.h>.
75577         (utime_null): Be sure to close `fd' and to preserve errno.
75578         Reported by Geoff Collyer via Arnold Robbins.
75579
75580 2003-11-17  Bruno Haible  <bruno@clisp.org>
75581
75582         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
75583         (Depends-on): Add xsize.
75584
75585 2003-11-17  Bruno Haible  <bruno@clisp.org>
75586
75587         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
75588
75589 2003-11-17  Bruno Haible  <bruno@clisp.org>
75590
75591         * lib/vasnprintf.c (alloca): Remove fallback definition.
75592         (freea): Remove definition.
75593         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
75594         Reported by Paul Eggert.
75595
75596 2003-11-16  Paul Eggert  <eggert@twinsun.com>
75597             Bruno Haible  <bruno@clisp.org>
75598
75599         Protect against address arithmetic overflow.
75600         * lib/printf-args.h: Include stddef.h.
75601         (arguments): Change type of field 'count' to size_t.
75602         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
75603         'unsigned int' where appropriate.
75604         * lib/printf-parse.h: Include sys/types.h.
75605         (char_directive): Change type of *arg_index fields to ssize_t.
75606         (char_directives): Change type of fields 'count', max_*_length to
75607         size_t.
75608         * lib/printf-parse.c: Include sys/types.h and xsize.h.
75609         (SSIZE_MAX): Define fallback value.
75610         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
75611         instead of 'int' where appropriate. Check a_allocated, d_allocated
75612         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
75613         * lib/vasnprintf.c: Include xsize.h.
75614         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
75615         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
75616         overflow. Avoid wraparound when converting a width or precision from
75617         decimal to binary.
75618
75619 2003-11-16  Bruno Haible  <bruno@clisp.org>
75620
75621         Update from GNU gettext.
75622         * lib/printf-parse.c: Generalize to it can be compiled for wide
75623         strings.
75624         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
75625         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
75626         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
75627         SNPRINTF): New macros.
75628         Don't include <alloca.h> if the file is used inside libintl.
75629         (local_wcslen): New function, for Solaris 2.5.1.
75630         (VASNPRINTF): Use it instead of wcslen.
75631
75632 2003-11-16  Bruno Haible  <bruno@clisp.org>
75633
75634         * lib/xsize.h (xmax): New function.
75635         (xsum, xsum3, xsum4): Declare as "pure" functions.
75636
75637 2003-11-12  Paul Eggert  <eggert@twinsun.com>
75638
75639         * modules/xalloc (Files): Undo latest change, since xalloc.h
75640         no longer needs SIZE_MAX or PTRDIFF_MAX.
75641
75642 2003-11-12  Paul Eggert  <eggert@twinsun.com>
75643
75644         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
75645         gl_PTRDIFF_MAX.
75646
75647 2003-11-12  Paul Eggert  <eggert@twinsun.com>
75648
75649         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
75650         "return", to pacify some unknown compiler.  Problem reported
75651         by Joerg Schilling.
75652
75653 2003-11-12  Paul Eggert  <eggert@twinsun.com>
75654
75655         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
75656         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
75657         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
75658         heuristic is just as accurate as far as we know, and it removes a
75659         dependency on size_max.m4 and ptrdiff_max.m4.
75660
75661 2003-11-11  Bruno Haible  <bruno@clisp.org>
75662
75663         * modules/xsize (Files): Add m4/size_max.m4.
75664         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
75665
75666 2003-11-11  Bruno Haible  <bruno@clisp.org>
75667
75668         * m4/size_max.m4: New file.
75669         * m4/ptrdiff_max.m4: New file.
75670         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
75671         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
75672         (gl_XALLOC): Invoke it.
75673
75674 2003-11-11  Bruno Haible  <bruno@clisp.org>
75675
75676         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
75677         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
75678         defined.
75679
75680 2003-11-10  Paul Eggert  <eggert@twinsun.com>
75681
75682         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
75683         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
75684         rejected some allocations of exactly SIZE_MAX - 2 bytes.
75685         From Bruno Haible.
75686         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
75687         not (size_t) -1, since it's defined here.
75688
75689 2003-11-09  Karl Berry  <karl@gnu.org>
75690
75691         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
75692
75693 2003-11-06  Paul Eggert  <eggert@twinsun.com>
75694
75695         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
75696         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
75697         Reject sizes of exactly SIZE_MAX bytes.
75698         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
75699         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
75700
75701 2003-11-05  Bruno Haible  <bruno@clisp.org>
75702
75703         * lib/xsize.h: Include limits.h, to avoid a possible collision with
75704         SIZE_MAX defined in <limits.h> on Solaris.
75705
75706 2003-11-04  Jim Meyering  <jim@meyering.net>
75707
75708         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
75709         variable names, rather than @VAR@.
75710         * modules/poll: Likewise.
75711
75712 2003-11-04  Bruno Haible  <bruno@clisp.org>
75713
75714         * modules/xsize: New file.
75715         * modules/linebreak: Depend on xsize.
75716         * MODULES.html.sh (func_all_modules): Add xsize.
75717
75718 2003-11-04  Bruno Haible  <bruno@clisp.org>
75719
75720         * m4/xsize.m4: New file.
75721
75722 2003-11-04  Bruno Haible  <bruno@clisp.org>
75723
75724         * lib/xsize.h: New file.
75725         * lib/linebreak.c: Include xsize.h.
75726         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
75727         argument for overflow.
75728         Suggested by Paul Eggert.
75729
75730 2003-11-03  Karl Berry  <karl@gnu.org>
75731
75732         * config/config.{guess,sub}: update from config.
75733
75734 2003-11-03  Jim Meyering  <jim@meyering.net>
75735
75736         * modules/userspec (lib_SOURCES): Add userspec.h.
75737         (Include): Add "userspec.h".
75738         Improve description.
75739
75740 2003-11-03  Jim Meyering  <jim@meyering.net>
75741
75742         * lib/userspec.c: Include "userspec.h".
75743         * lib/userspec.h: New file.
75744
75745 2003-11-03  Bruno Haible  <bruno@clisp.org>
75746
75747         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
75748
75749 2003-11-03  Bruno Haible  <bruno@clisp.org>
75750
75751         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
75752         available, to avoid (extremely rare) race condition.
75753         Suggested by Paul Eggert.
75754
75755 2003-11-02  Karl Berry  <karl@gnu.org>
75756
75757         * config/srclist.txt (vasprintf.c): sync broken, sigh.
75758
75759 2003-10-31  Paul Eggert  <eggert@twinsun.com>
75760
75761         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
75762         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
75763         (read_filesystem_list): Set and use me_type_malloced.
75764         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
75765         whatever the type happens to be), for brevity and consistency.
75766         Check for size calculation overflow on Alphas running OSF/1.
75767
75768 2003-10-31  Jim Meyering  <jim@meyering.net>
75769
75770         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
75771
75772         * lib/linebuffer.c: Include <string.h> for declaration of memset.
75773
75774 2003-10-30  Paul Eggert  <eggert@twinsun.com>
75775             Bruno Haible  <bruno@clisp.org>
75776
75777         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
75778         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
75779
75780 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
75781
75782         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
75783         netbsd*-gnu*.  Suggested by Robert Millan.
75784
75785 2003-10-29  Paul Eggert  <eggert@twinsun.com>
75786
75787         * modules/group-member: Depend on stdbool.
75788
75789 2003-10-29  Paul Eggert  <eggert@twinsun.com>
75790
75791         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
75792
75793 2003-10-29  Paul Eggert  <eggert@twinsun.com>
75794
75795         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
75796         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
75797         after the 'gnu' in these cases.  This fixes some bugs in the
75798         previous change, and is based on suggestions by Robert Millan.
75799
75800 2003-10-29  Paul Eggert  <eggert@twinsun.com>
75801
75802         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
75803         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
75804         no longer needed.
75805         * lib/quotearg.c (quotearg_n_options): Use it.
75806         * lib/group-member.c: Include <stdbool.h>.
75807         (free_group_info): Arg is now const *; don't free arg.
75808         (get_group_info): Now returns bool and accepts struct group_info *,
75809         rather than returning a malloc'ed struct group_info *.
75810         All uses changed.  Check for overflow in internal size calculation.
75811
75812         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
75813         rather than xmalloc/xrealloc.
75814         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
75815         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
75816         conformance bug: the old code used a pointer after freeing the
75817         storage that it addressed.
75818         * lib/hash.c (hash_initialize): Simplify the code by using
75819         xalloc_oversized rather than doing it by hand.
75820         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
75821         the buffer preserved.  Use free and xmalloc instead.
75822         * lib/quotearg.c (quotearg_n_options): Likewise.
75823         Use a simpler test for size overflow.  Don't use xalloc_oversized
75824         because unsigned int might be wider than size_t (!); this suggests
75825         that we should switch from unsigned int to size_t for slot numbers.
75826
75827 2003-10-28  Paul Eggert  <eggert@twinsun.com>
75828
75829         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
75830         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
75831         NetBSD kernels.  Requested by Richard Stallman.
75832
75833 2003-10-27  Paul Eggert  <eggert@twinsun.com>
75834
75835         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
75836         to allocate the returned structure.  Do not allocate a subarray,
75837         as x2nrealloc will do that.
75838         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
75839         instead of xnrealloc.
75840         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
75841
75842 2003-10-27  Bruno Haible  <bruno@clisp.org>
75843
75844         * lib/stdbool_.h: Better support for BeOS.
75845
75846 2003-10-26  Paul Eggert  <eggert@twinsun.com>
75847
75848         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
75849         now uses inline.
75850
75851 2003-10-26  Paul Eggert  <eggert@twinsun.com>
75852
75853         * lib/xalloc.h (xalloc_oversized): New static inline function, for
75854         callers that want to do their own size-overflow checking.  Include
75855         <stdbool.h>, since xalloc_oversized returns bool.
75856         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
75857         to use xalloc_oversized.
75858
75859         Add two functions x2realloc, x2nrealloc, for programs that grow
75860         arrays dynamically by doubling their sizes.
75861         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
75862         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
75863         New functions.
75864
75865         Port to C99 semantics for 'inline' of external functions.
75866         Bug reported by Bruno Haible.
75867         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
75868         with the old contents of xnmalloc.
75869         (xnmalloc, xmalloc): Use it.
75870         (xnrealloc_inline): New static inline function,
75871         with the old contents of xnrealloc.
75872         (xnrealloc, xrealloc): Use it.
75873
75874         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
75875         that.
75876
75877 2003-10-26  Karl Berry  <karl@gnu.org>
75878
75879         * config/srclist.txt (COPYING.DOC): no longer available from
75880         /gd/gnuorg; don't know where the ultimate source is.
75881
75882 2003-10-25  Paul Eggert  <eggert@twinsun.com>
75883
75884         Fix several address-calculation bugs in the hash modules,
75885         plus some minor code cleanup.
75886
75887         * lib/hash.h: Include <stdbool.h>, for bool.
75888         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
75889         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
75890         hash_get_n_entries, hash_get_max_bucket_length,
75891         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
75892         hash_rehash): Use size_t rather than unsigned.
75893         * lib/hash.c (struct hash_table, hash_get_n_buckets,
75894         hash_get_n_buckets_used, hash_get_n_entries,
75895         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
75896         hash_get_entries, hash_do_for_each, hash_string, is_prime,
75897         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
75898         Likewise.
75899         (SIZE_MAX): Define if not defined.
75900         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
75901         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
75902         hash_print):
75903         Use const * when possible.
75904         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
75905         (check_tuning): Fix bug: if tuning parameters were very close to
75906         0 or 1, rounding errors could have caused subscript violations.
75907         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
75908         (hash_initialize): Add 'fail:' label
75909         to free table and return NULL, and use it to simplify code.
75910         Use calloc rather than clearing the storage ourself.
75911         (hash_initialize, hash_rehash): Check for arithmetic overflow in
75912         buffer size calculations.
75913         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
75914         Include <stddef.h>, for size_t.
75915         * lib/hash-pjw.c (hash_pjw): Likewise.
75916         Switch to method described by Bruno Haible.
75917         Include <limits.h>, for CHAR_BIT.
75918         (SIZE_BITS): New macro.
75919
75920 2003-10-23  Paul Eggert  <eggert@twinsun.com>
75921
75922         * m4/getline.m4 (AM_FUNC_GETLINE):
75923         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
75924         hosts.  Problem reported by Derek Robert Price in
75925         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
75926         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
75927         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
75928
75929 2003-10-21  Paul Eggert  <eggert@twinsun.com>
75930
75931         * lib/getndelim2.c (getndelim2): When size calculation overflows,
75932         ceiling the allocation at NMAX bytes rather than silently
75933         discarding input bytes before NMAX is reached.  This makes
75934         a difference only if NMAX exceeds SIZE_MAX / 2.
75935
75936         * lib/obstack.c: Merge from glibc.
75937         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
75938         Add libc_hidden_def (_obstack_newchunk).
75939         (_obstack_free) [! defined _LIBC]: Remove.
75940         [defined _LIBC]: Make a strong alias from obstack_free, rather than
75941         a clone of the function body.
75942         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
75943         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
75944
75945         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
75946         glibc.
75947         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
75948         arg to memcpy.
75949
75950         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
75951         (obstack_ptr_grow_fast, obstack_int_grow_fast):
75952         Don't use lvalue casts, as GCC plans to remove support for them
75953         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
75954         was also present in the non-GCC version, indicating that this
75955         code had always been buggy and had never been widely used.
75956         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
75957         Use the fast variant of each macro, rather than copying the
75958         definiens of the fast variant; that way, we'll be more likely to
75959         catch future bugs in the fast variants.
75960
75961 2003-10-20  Bruno Haible  <bruno@clisp.org>
75962
75963         * modules/wait-process: New file.
75964         * MODULES.html.sh (func_all_modules): Add wait-process.
75965
75966 2003-10-20  Bruno Haible  <bruno@clisp.org>
75967
75968         * m4/wait-process.m4: New file.
75969
75970 2003-10-20  Bruno Haible  <bruno@clisp.org>
75971
75972         * lib/wait-process.h: New file, from GNU gettext.
75973         * lib/wait-process.c: New file, from GNU gettext.
75974
75975 2003-10-19  Jim Meyering  <jim@meyering.net>
75976
75977         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
75978         HPUX 10.20.
75979
75980 2003-10-18  Karl Berry  <karl@gnu.org>
75981
75982         * config/config.guess: update from config.
75983
75984 2003-10-16  Paul Eggert  <eggert@twinsun.com>
75985
75986         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
75987         (getgroups): First arg is int, not size_t.
75988         Don't let 'free' mangle errno.
75989
75990 2003-10-16  Paul Eggert  <eggert@twinsun.com>
75991
75992         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
75993
75994 2003-10-16  Karl Berry  <karl@gnu.org>
75995
75996         * config/config.{guess,sub}: update from config.
75997
75998 2003-10-16  Jim Meyering  <jim@meyering.net>
75999
76000         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
76001         memcpy.
76002
76003 2003-10-15  Paul Eggert  <eggert@twinsun.com>
76004
76005         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
76006         (SIZE_MAX): Remove.
76007         (new_exclude, add_exclude_file): Initial size no longer needs to
76008         be a power of 2.
76009         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
76010         our own address arithmetic overflow checking.
76011
76012         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
76013         (fnmatch): Do not alloca more than 2000 wide characters;
76014         instead, use malloc for large buffers.
76015         Check for address arithmetic overflow, and return -1
76016         with errno set to ENOMEM in that case.
76017         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
76018         (NEW_PATTERN): Do not alloca more than 8000 bytes;
76019         instead, return -1.  Check for address arithmetic overflow.
76020
76021 2003-10-14  Paul Eggert  <eggert@twinsun.com>
76022
76023         Handle invalid suffixes and overflow independently, so that
76024         callers can treat them independently as needed.  Fix some bugs in
76025         suffix handling, e.g., "100k@" was not diagnosed as an invalid
76026         suffix for a human-readable blocksize.  The major caller-visible
76027         change is the addition of a new
76028         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
76029         that both overflow and suffix chars were found.
76030
76031         * lib/human.c (humblock): Don't check separately for invalid suffix
76032         char; that is xstrtoumax's job (now that its bug is fixed).
76033         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
76034         INTMAX_MAX]: New macros.
76035         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
76036         TYPE_MAXIMUM): New macros.
76037         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
76038         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
76039         if overflow occurs, as it's what __strtol does and it's more useful
76040         in practice.
76041         (__xstrtol): If __strtol reports some error other than ERANGE,
76042         reflect it to the caller as LONGINT_INVALID.  If it reports
76043         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
76044         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
76045         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
76046         value.
76047         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
76048         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
76049         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
76050         [defined UINTMAX_MAX]: New macros.
76051
76052 2003-10-14  Bruno Haible  <bruno@clisp.org>
76053
76054         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
76055
76056 2003-10-14  Bruno Haible  <bruno@clisp.org>
76057
76058         * m4/sig_atomic_t: New file, from GNU gettext.
76059         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
76060
76061 2003-10-14  Bruno Haible  <bruno@clisp.org>
76062
76063         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
76064         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
76065         Also use volatile where needed.
76066
76067 2003-10-12  Paul Eggert  <eggert@twinsun.com>
76068
76069         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
76070         Change maintainer from Bruno Haible to 'all'.
76071
76072 2003-10-12  Paul Eggert  <eggert@twinsun.com>
76073
76074         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
76075
76076 2003-10-12  Paul Eggert  <eggert@twinsun.com>
76077
76078         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
76079         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
76080         and define in terms of the other primitives.
76081         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
76082         (SIZE_MAX): Define if not already defined.
76083         (array_size_overflow): New function.
76084         (xalloc_die): Abort instead of exiting if 'error' returns.
76085         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
76086         (xmalloc, xrealloc): Use them.
76087         (xcalloc): Check for address arithmetic overflow.
76088         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
76089         a bit faster than strcpy.
76090
76091 2003-10-10  Simon Josefsson  <jas@extundo.com>
76092
76093         * modules/argp (Depends-on): Add restrict and strcase.
76094
76095 2003-10-10  Simon Josefsson  <jas@extundo.com>
76096
76097         * m4/argp.m4: Add AC_C_INLINE.
76098
76099 2003-10-08  Paul Eggert  <eggert@twinsun.com>
76100
76101         Merge getpass from libc, plus a few fixes.
76102
76103         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
76104         Include <stdbool.h>.
76105         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
76106         __fsetlocking to empty.
76107         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
76108         do include <bits/libc-lock.h>.
76109         Do not include <fcntl.h>; not needed.
76110         [_LIBC]: Include <wchar.h>.
76111         (NOTCANCEL_MODE): New macro.
76112         (flockfile, funlockfile) [_LIBC]: New macros.
76113         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
76114         [!_LIBC]: New macros.
76115         (call_fclose): New function.
76116         (getpass): Use it.  Save tty stream separately; this simplifies the
76117         code and makes it more reliable if stdin happens to equal stdout.
76118         Invoke __fsetlocking on tty.
76119         Handle thread cancellation if needed.
76120         Namespace cleanup (use __tcgetattr, __getline).
76121         Use bool for Booleans.
76122         [USE_IN_LIBIO]: Handle wide streams.
76123         [!_LIBC]: Unconditionally do the fseek, since we don't know what
76124         stream might go where.
76125
76126         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
76127         doesn't have to include <stdio.h> before us.
76128         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
76129         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
76130         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
76131         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
76132         if not declared, so that we can use getpass.c code from libc without
76133         rewriting it.
76134         (flockfile, ftrylockfile, funlockfile): New macros.
76135
76136 2003-10-08  Paul Eggert  <eggert@twinsun.com>
76137
76138         * modules/getpass: Depend on stdbool.
76139
76140 2003-10-08  Paul Eggert  <eggert@twinsun.com>
76141
76142         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
76143
76144 2003-10-07  Karl Berry  <karl@gnu.org>
76145
76146         * config/config.{guess,sub}: update from config.
76147
76148 2003-10-06  Jim Meyering  <jim@meyering.net>
76149             Bruno Haible  <bruno@clisp.org>
76150
76151         This lets translators provide better translations for the
76152         "Written by ..." part of --version output.
76153         * lib/version-etc.h: Include stdarg.h.
76154         (version_etc_copyright): Declare as readonly.
76155         (version_etc): Make this function variadic with a NULL-terminated list
76156         of author name strings.
76157         (version_etc_va): New declaration.
76158         * lib/version-etc.c: Include stdarg.h, stdlib.h.
76159         (version_etc_copyright): Declare as readonly.
76160         (version_etc_va): New function. Provide a different translatable string
76161         for each possible number of authors < 10. Abbreviate when there are 10
76162         authors or more.
76163         (version_etc): Make this function variadic. Call version_etc_va.
76164         Suggestion from Gary V. Vaughan.
76165
76166         * lib/long-options.h (parse_long_options): Change prototype: the
76167         authors string is moved to the end and becomes variadic.
76168         * lib/long-options.c: Include stdarg.h.
76169         (parse_long_options): Make this function variadic, too.
76170         Call version_etc_va, not version_etc.
76171
76172 2003-10-06  Bruno Haible  <bruno@clisp.org>
76173
76174         * modules/version-etc-2: Remove file.
76175         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
76176
76177 2003-10-06  Bruno Haible  <bruno@clisp.org>
76178
76179         * modules/fatal-signal: New file.
76180         * MODULES.html.sh (func_all_modules): Add fatal-signal.
76181
76182 2003-10-06  Bruno Haible  <bruno@clisp.org>
76183
76184         * m4/fatal-signal.m4: New file.
76185         * m4/signalblocking.m4: New file, from GNU gettext.
76186
76187 2003-10-06  Bruno Haible  <bruno@clisp.org>
76188
76189         * lib/version-etc-2.h: Remove file.
76190         * lib/version-etc-2.c: Remove file.
76191
76192 2003-10-06  Bruno Haible  <bruno@clisp.org>
76193
76194         * lib/fatal-signal.h: New file, from GNU gettext.
76195         * lib/fatal-signal.c: New file, from GNU gettext.
76196
76197 2003-10-05  Paul Eggert  <eggert@twinsun.com>
76198
76199         * README: Rework advice for preventing empty .o files.
76200         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
76201         not <sys/types.h>.
76202
76203 2003-10-04  Karl Berry  <karl@gnu.org>
76204
76205         * lib/argp*: update from libc.
76206
76207 2003-10-04  Karl Berry  <karl@gnu.org>
76208
76209         * config/config.{guess,sub}: update from config.
76210
76211 2003-10-02  Bruno Haible  <bruno@clisp.org>
76212
76213         * modules/lchown (Include): Add lchown.h.
76214         * modules/time_r (Include): Use "..." syntax.
76215         * modules/xgetdomainname (Include): Add xgetdomainname.h.
76216
76217 2003-10-01  Simon Josefsson  <jas@extundo.com>
76218
76219         * MODULES.html.sh (func_all_modules): Move gethostname from section
76220         'based on' to section 'lacking' POSIX:2001.
76221
76222 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
76223
76224         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
76225         to output mode on the same stream.
76226
76227 2003-09-29  Paul Eggert  <eggert@twinsun.com>
76228
76229         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
76230         Fix arg typo in previous patch.
76231
76232 2003-09-28  Jim Meyering  <jim@meyering.net>
76233
76234         * lib/error.c: Correct cpp indentation.
76235
76236 2003-09-27  Paul Eggert  <eggert@twinsun.com>
76237
76238         * modules/free: New file.
76239
76240 2003-09-27  Paul Eggert  <eggert@twinsun.com>
76241
76242         * m4/free.m4: New file.
76243
76244 2003-09-27  Paul Eggert  <eggert@twinsun.com>
76245
76246         * lib/minmax.h (MIN, MAX)
76247         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
76248         Omit the special code that used __typeof__, since we worry that
76249         it could be more trouble than it's worth.  See:
76250         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
76251         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
76252
76253         * lib/free.c: New file.
76254
76255 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
76256
76257         Trivial fixes to Makefile.am parts of module listings.
76258         * modules/strstr: Append strstr.h to lib_SOURCES.
76259         * modules/strcase: Likewise, for strcase.h.
76260
76261 2003-09-27  Karl Berry  <karl@gnu.org>
76262
76263         * config/mkinstalldirs: update from automake.
76264
76265 2003-09-26  Paul Eggert  <eggert@twinsun.com>
76266
76267         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
76268         (error_tail): Do not loop, reallocating temporary buffer, since
76269         the output cannot contain more wide characters than the input
76270         contains bytes, the size must be big enough already.  This avoids
76271         one potential size overflow calculation.  Check for size overflow
76272         when calculating temporary buffer size.  Free temporary buffer
76273         when done, if it was allocated with malloc; this plugs a memory
76274         leak.  Remove casts from void * to pointers, that are no longer
76275         needed now that we're assuming C89 or better.
76276
76277         Merge error changes from glibc.
76278
76279         * lib/error.c, error.h: Update copyright notice header to match glibc.
76280         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
76281         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
76282         Disable cancellation while printing error.
76283         * lib/error.h: Prepend __ to parameter names.
76284
76285 2003-09-26  Jim Meyering  <jim@meyering.net>
76286
76287         * lib/error.c (error_tail): Move some declarations
76288         into inner scope where the local variables are used.
76289
76290 2003-09-26  Bruno Haible  <bruno@clisp.org>
76291
76292         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
76293         stpncpy().
76294         Don't define stpncpy through config.h; it's now done through stpncpy.h.
76295
76296 2003-09-26  Bruno Haible  <bruno@clisp.org>
76297
76298         * lib/stpncpy.h (gnu_stpncpy): New declaration.
76299         (stpncpy): Define as alias for gnu_stpncpy.
76300         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
76301
76302 2003-09-25  Simon Josefsson  <jas@extundo.com>
76303
76304         * lib/xgetdomainname.h: New file.
76305         * lib/xgetdomainname.c: New file.
76306
76307 2003-09-25  Simon Josefsson  <jas@extundo.com>
76308             Bruno Haible  <bruno@clisp.org>
76309
76310         * modules/getdomainname: New file.
76311         * modules/xgetdomainname: New file.
76312         * MODULES.html.sh (func_all_modules): Add getdomainname,
76313         xgetdomainname.
76314
76315 2003-09-25  Simon Josefsson  <jas@extundo.com>
76316             Bruno Haible  <bruno@clisp.org>
76317
76318         * m4/getdomainname.m4: New file.
76319
76320 2003-09-25  Simon Josefsson  <jas@extundo.com>
76321             Bruno Haible  <bruno@clisp.org>
76322
76323         * lib/getdomainname.h: New file.
76324         * lib/getdomainname.c: New file.
76325
76326 2003-09-25  Karl Berry  <karl@gnu.org>
76327
76328         * lib/argp-fmtstream.c, argp-help.c: update from libc.
76329
76330 2003-09-25  Karl Berry  <karl@gnu.org>
76331
76332         * config/install-sh: update from automake.
76333
76334 2003-09-25  Bruno Haible  <bruno@clisp.org>
76335
76336         * modules/version-etc-2: New file, from modules/version-etc with
76337         modifications.
76338         * MODULES.html.sh (func_all_modules): Add version-etc-2.
76339
76340 2003-09-25  Bruno Haible  <bruno@clisp.org>
76341
76342         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
76343         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
76344
76345 2003-09-24  Simon Josefsson  <jas@extundo.com>
76346
76347         * modules/xgethostname: Add xgethostname.h.
76348
76349 2003-09-24  Paul Eggert  <eggert@twinsun.com>
76350
76351         * lib/linebuffer.c (freebuffer): Don't free the argument, just
76352         the buffer associated with the argument.  Bug reported by
76353         Simon Josefsson.
76354
76355 2003-09-24  Paul Eggert  <eggert@twinsun.com>
76356
76357         * README: Document assumptions that 'int' is at least 32 bits
76358         wide, that integer arithmetic is 2's complement without overflow,
76359         that there are no holes in integer values, that adding sizes of
76360         two nonoverlapping objects can't overflow, and that all-bits-zero
76361         yields scalar zero.  Fix spelling and capitalization typos.
76362
76363 2003-09-19  Karl Berry  <karl@gnu.org>
76364
76365         * lib/argp.h: update from libc.
76366
76367 2003-09-17  Paul Eggert  <eggert@twinsun.com>
76368
76369         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
76370         to avoid spurious warnings like "AC_RUN_IFELSE was called before
76371         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
76372
76373 2003-09-17  Paul Eggert  <eggert@twinsun.com>
76374
76375         * gnulib-tool: Use "test -h", not "test -L", for portability
76376         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
76377         (tags_regexp): Remove, since \| doesn't conform to POSIX.
76378         (sed_extract_prog): Issue s commands one-by-one, rather than
76379         using \| in one s command.
76380
76381 2003-09-16  Paul Eggert  <eggert@twinsun.com>
76382
76383         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
76384         input error, instead of returning NULL the next time we are called
76385         (and therefore losing track of errno).
76386
76387 2003-09-16  Bruno Haible  <bruno@clisp.org>
76388
76389         * gnulib-tool (func_create_testdir): Warn about duplicated
76390         dependencies.
76391
76392 2003-09-15  Paul Eggert  <eggert@twinsun.com>
76393
76394         * modules/argmatch, modules/fatal, modules/obstack,
76395         modules/xalloc, modules/xgethostname: Sort dependencies by
76396         importance, not alphabetically.
76397
76398 2003-09-15  Paul Eggert  <eggert@twinsun.com>
76399
76400         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
76401         fails, so that the caller gets the proper errno.
76402
76403         * lib/readutmp.c (read_utmp): Likewise.
76404         Check for fstat error.  Close stream and free storage
76405         when failing.
76406
76407 2003-09-14  Karl Berry  <karl@gnu.org>
76408
76409         * config/srclist.txt (strdup.c): disable for c89 changes.
76410
76411 2003-09-14  Jim Meyering  <jim@meyering.net>
76412
76413         * lib/getloadavg.c: Correct cpp indentation.
76414         * lib/strdup.c: Likewise.
76415         * lib/vasnprintf.c: Likewise.
76416
76417 2003-09-14  Bruno Haible  <bruno@clisp.org>
76418
76419         * modules/fwriteerror: New file.
76420         * MODULES.html.sh (func_all_modules): Add fwriteerror.
76421
76422 2003-09-14  Bruno Haible  <bruno@clisp.org>
76423
76424         * lib/fwriteerror.h: New file.
76425         * lib/fwriteerror.c: New file.
76426
76427 2003-09-12  Paul Eggert  <eggert@twinsun.com>
76428
76429         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
76430         modules/xgethostname, modules/xalloc: Depend on exit.
76431
76432 2003-09-12  Paul Eggert  <eggert@twinsun.com>
76433
76434         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
76435
76436         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
76437         and AC_MINIX, too, so that their extensions are available.
76438
76439         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
76440         This macro has been superseded by gl_BACKUPFILE.
76441
76442         More patches to assume C89 or better.
76443
76444         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
76445
76446         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
76447         unconditionally.
76448         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
76449         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
76450         Include <string.h>, <stdlib.h> unconditionally.
76451         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
76452         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
76453         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
76454         headers or for string.h.
76455         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
76456         or strtoul.
76457
76458         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
76459         headers.
76460         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
76461         * m4/userspec.m4 (gl_USERSPEC): Likewise.
76462         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
76463         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
76464         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76465         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
76466         memcpy, memset.
76467         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
76468         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
76469         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
76470         strtol.
76471         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
76472         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
76473         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
76474         strtoul.
76475
76476 2003-09-12  Paul Eggert  <eggert@twinsun.com>
76477
76478         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
76479         * lib/obstack.c [!defined _LIBC]: Likewise.
76480         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
76481         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
76482         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
76483
76484         More changes to assume C89 or better.
76485
76486         * lib/error.c (error_tail): Assume vprintf.
76487
76488         * lib/argmatch.c (getenv): Remove decl.
76489         * lib/progreloc.c (get_full_program_name): Define via prototype.
76490         * lib/setenv.c (clearenv): Likewise.
76491         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
76492         needed.
76493         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
76494         (malloc, memcpy): Remove decls.
76495         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
76496         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
76497         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
76498         (memcpy): Remove macro.
76499         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
76500         (__P): Remove.  All uses removed.
76501         (PTR): Remove.  All uses changed to void *.
76502         (CHAR_BIT, NULL): Remove.
76503         (spaces, zeros, memset_space, memset_zero)
76504         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
76505         Remove.
76506         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
76507         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
76508         Define with prototype.
76509         Remove now-unnecessary prototype decl.
76510         (extra_args_spec): Assume ANSI C.  All uses changed.
76511         (extra_args_spec_iso): Remove.
76512         (my_strftime, emacs_strftimeu): Define via prototype.
76513         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
76514         unconditionally.
76515         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
76516         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
76517         (strtoul, strtol): Remove decls.
76518         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
76519         LONG_MAX): Remove.
76520         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
76521         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
76522         (LOCALE_PARAM_PROTO): New macro.
76523         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
76524         (INTERNAL (strtol), strtol): Define with a prototype.
76525         (PARAMS): Remove.  All uses removed.
76526         * lib/tempname.c: Include <string.h> unconditionally.
76527         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
76528         * lib/xgethostname.c (main): Define with a prototype.
76529         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
76530         Include <stdlib.h> unconditionally.
76531         (calloc, malloc, realloc, free): Remove decls.
76532         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
76533         Include <stdlib.h> unconditionally.  Sort include file names.
76534         (strtod): Remove.
76535         (xstrtod): Define with a prototype.
76536         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
76537         (strtol, strtoul): Remove decls.
76538
76539 2003-09-11  Paul Eggert  <eggert@twinsun.com>
76540
76541         More patches to assume C89 or better.
76542         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
76543         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
76544         string.h, memchr, STDC_HEADERS.
76545
76546 2003-09-11  Paul Eggert  <eggert@twinsun.com>
76547
76548         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
76549         Include <stdlib.h>, <string.h> unconditionally.
76550         Remove now-unnecessary cast to char *.
76551         * lib/strnlen.c: Include <string.h> unconditionally.
76552         * lib/yesno.c (yesno): Define with a prototype.
76553
76554 2003-09-11  Bruno Haible  <bruno@clisp.org>
76555
76556         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
76557
76558 2003-09-10  Jim Meyering  <jim@meyering.net>
76559
76560         * lib/error.c: Correct indentation of cpp directives.
76561
76562 2003-09-10  Bruno Haible  <bruno@clisp.org>
76563
76564         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
76565         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
76566         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
76567         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
76568         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
76569         <stdlib.h> and <string.h> checks.
76570         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
76571         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
76572
76573 2003-09-10  Bruno Haible  <bruno@clisp.org>
76574
76575         * lib/strcspn.c: Include <string.h> unconditionally.
76576         * lib/strpbrk.c: Include <string.h> unconditionally.
76577         * lib/strstr.c: Include <string.h> unconditionally.
76578         * lib/unicodeio.c: Include <string.h> unconditionally.
76579         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
76580         * lib/unsetenv.c: Likewise.
76581         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
76582         * lib/yesno.c: Include <stdlib.h> unconditionally.
76583         (rpmatch): Add prototype.
76584
76585 2003-09-09  Paul Eggert  <eggert@twinsun.com>
76586
76587         More patches to assume C89 or better.
76588         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
76589         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
76590         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
76591         or for string.h.
76592         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
76593         stdlib.h.
76594         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
76595         C headers.
76596         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
76597         string.h.
76598         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
76599         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
76600         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
76601         or for string.h.
76602         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
76603         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
76604         C headers.
76605         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
76606         memcpy.
76607         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
76608         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
76609         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
76610         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
76611         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
76612         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
76613         string.h, free.
76614         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
76615         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
76616         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
76617         C headers, or for string.h.
76618         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
76619         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
76620         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
76621         headers, memory.h, stdlib.h, string.h, strings.h.
76622         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
76623         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
76624         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
76625         strchr.
76626         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
76627         headers, memory.h, string.h.
76628         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
76629         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
76630         free.
76631         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
76632         headers.
76633         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
76634         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
76635         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
76636         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
76637         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
76638
76639 2003-09-09  Paul Eggert  <eggert@twinsun.com>
76640
76641         More K&R removal.
76642
76643         * lib/acosl.c (main): Use a prototype.
76644         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
76645         tanl.c: Likewise.
76646
76647         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
76648
76649         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
76650         (getopt, etopt_long, getopt_long_only, _getopt_internal)
76651         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
76652         with a prototype.
76653         * lib/getopt.c (const): Remove macro.
76654         Include <string.h> unconditionally.
76655         (my_index): Remove; all uses changed to strchr.
76656         (strlen): Remove decl.
76657         (exchange): Remove forward decl; no longer needed.
76658         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
76659         Define with prototype.
76660         * lib/getopt1.c (const): Remove macro.
76661         (getopt_long, getopt_long_only, main): Define with prototype.
76662
76663         * lib/getugroups.c: Include <string.h> unconditionally.
76664
76665         * lib/getusershell.c: Include <stdlib.h> unconditionally.
76666         (getusershell, setusershell, endusershell, readname, main):
76667         Define with prototypes.
76668
76669         * lib/group-member.c: Include group-member.h first.
76670         Include <stdlib.h> unconditionally.
76671
76672         * lib/hard-locale.c: Include hard-locale.h first.
76673         Include <stdlib.h>, <string.h> unconditionally.
76674
76675         * lib/hash.c (free, malloc): Remove decls.
76676         Include <stdlib.h> unconditionally.
76677
76678         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
76679         (getenv): Do not declare.
76680
76681         * lib/idcache.c: Include <string.h> unconditionally.
76682
76683         * lib/long-options.c: Include long-options.h first, to test interface.
76684         Include <stdlib.h> unconditionally.
76685
76686         * lib/makepath.c: Include makepath.h first, to test interface.
76687         Include <stdlib.h> and <string.h> unconditionally.
76688
76689         * lib/linebuffer.c: Include <stdlib.h>.
76690         (free): Remove decl.
76691
76692         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
76693         stddef.h. rpl_malloc returns void *, not char *.
76694         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
76695         prototype.
76696
76697         * lib/md5.h: Include <limits.h> unconditionally.
76698         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
76699         (__P): Remove; all uses removed.
76700         * lib/md5.c: Include "md5.h" first.
76701         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
76702         md5_buffer, md5_process_bytes, md5_process_block):
76703         Define with prototypes.
76704         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
76705         * lib/sha.c: Include "sha.h" first.
76706         Include <stdlib.h>, <string.h> unconditionally.
76707
76708         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
76709         * lib/memcmp.c (__ptr_t): Likewise.
76710         * lib/memrchr.c (__ptr_t): Likewise.
76711         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
76712         Include <string.h> unconditionally.
76713         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
76714         * lib/memchr.c: Include <stdlib.h> unconditionally.
76715         * lib/memchr.c (LONG_MAX): Remove.
76716         * lib/memrchr.c (LONG_MAX): Likewise.
76717         * lib/memchr.c (__memchr): Define via a prototype.
76718         * lib/memrchr.c (__memrchr): Likewise.
76719         * lib/memcmp.c (__P): Remove, and remove all uses.
76720         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
76721         Remove forward decls; no longer needed.
76722         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
76723         Use types required by C89 in prototype.
76724
76725         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
76726         * lib/savedir.c: Likewise.
76727         * lib/mkdir.c (free): Remove decl.
76728         * lib/rmdir.c (rmdir): Define with a prototype.
76729         * lib/savedir.c: Include savedir.h first, to test interface.
76730
76731         * lib/mktime.c (STDC_HEADERS): Remove.
76732         Include <stdlib.h>, <string.h> unconditionally.
76733
76734         * lib/modechange.c: Include <stdlib.h> unconditionally.
76735         (malloc): Remove decl.
76736
76737         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
76738         (free): Remove decl.
76739
76740         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
76741         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
76742         (This type really should be intptr_t, but that's a C99ism.)
76743         (_obstack_memcpy): Remove: all uses changed to memcpy.
76744         Include <string.h> unconditionally.
76745         (struct obstack): Assume __STDC__ for types of members
76746         chunkfun, freefun, extra_arg.
76747         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
76748         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
76749         obstack_begin, obstack_specify_allocation,
76750         obstack_specify_allocation_with_arg, obstack_chunkfun,
76751         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
76752         Remove unprototyped decls and the macros that use them.
76753         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
76754         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
76755         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
76756         (defined __STDC__ && __STDC__)]:
76757         Remove nonprototyped code.
76758         Include <stdlib.h> unconditionally.
76759         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
76760         _obstack_allocated_p, _obstack_free, obstack_free,
76761         _obstack_memory_used, print_and_abort):
76762         Define using prototypes.
76763         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
76764         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
76765         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
76766         obstack_next_free, obstack_object_size, obstack_room) [0]:
76767         Remove unused, unprototyped code.
76768
76769         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
76770
76771         * lib/physmem.c (physmem_total, physmem_available, main): Define
76772         with prototypes.
76773
76774         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
76775         (main): Define with a prototype.
76776
76777         * lib/posixver.c (getenv): Remove decl.
76778
76779         * lib/putenv.c (malloc): Returns void *, not char *.
76780         Include <string.h> unconditionally.
76781         (strchr, memcpy, NULL): Do not define.
76782
76783         * lib/readtokens.c: Include readtokens.h first, to test interface.
76784         Include <stdlib.h>, <string.h> unconditionally.
76785         (init_tokenbuffer): Define with a prototype.
76786
76787         * lib/regex.c (PARAMS): Remove.  All uses removed.
76788         All uses of _RE_ARGS removed, too.
76789         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
76790         unconditionally.
76791         (bzero): Assume memset exists.
76792         (memcmp, memcpy, NULL): Remove.
76793         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
76794         char, or assignments to local vars of type signed char.
76795         (init_syntax_once, PREFIX(extract_number_and_incr),
76796         PREFIX(print_partial_compiled_pattern),
76797         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
76798         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
76799         PREFIX(regex_grow_registers), PREFIX(regex_compile),
76800         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
76801         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
76802         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
76803         wcs_compile_range, byte_compile_range, truncate_wchar,
76804         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
76805         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
76806         count_mbs_length, wcs_re_match_2_internal,
76807         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
76808         PREFIX(alt_match_null_string_p),
76809         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
76810         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
76811         regfree, PREFIX(extract_number)): Define with prototype.  Remove
76812         now-unnecessary declaration, if any.
76813         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
76814         regcomp, regexec):
76815         Remove now-unnecessary casts among pointer types.
76816         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
76817
76818         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
76819         (free): Remove decl.
76820
76821         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
76822
76823         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
76824         (free): Remove decl.
76825
76826         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
76827         * lib/xgetcwd.c: Likewise.
76828
76829         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
76830         (free): Remove decl.
76831
76832         * lib/strchrnul.c (strchrnul): Define with a prototype.
76833         Fix bug: c_in was not converted to char before searching.
76834
76835         The following changes are not K&R related:
76836
76837         * lib/group-member.h: Include <sys/types.h>, so that this file is
76838         self-contained.
76839         * lib/makepath.h: Likewise.
76840
76841         * lib/getusershell.c (readname, default_index, line_size, readname):
76842         Use size_t, not int, for sizes.
76843         (readname): If the size overflows, report an error instead of
76844         looping forever.
76845
76846 2003-09-09  Paul Eggert  <eggert@twinsun.com>
76847
76848         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
76849         libc.
76850
76851 2003-09-09  Paul Eggert  <eggert@twinsun.com>
76852
76853         * README: New section: portability guidelines.
76854
76855 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
76856
76857         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
76858         C89 spec.
76859
76860 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
76861
76862         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
76863
76864 2003-09-08  Paul Eggert  <eggert@twinsun.com>
76865
76866         Assume C89 or better; remove K&R cruft.
76867         A few of these changes were first proposed by Derek Robert Price
76868         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
76869
76870         * lib/addext.c: Include <string.h> unconditionally.
76871         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
76872         Don't declare getenv or malloc.
76873
76874         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
76875         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
76876         (NULL): Remove.
76877         (find_stack_direction, alloca): Use prototypes.
76878
76879         * lib/atexit.c (atexit): Define using a prototype.
76880
76881         * lib/basename.c, dirname.c, stripslash.c:
76882         Include <string.h> unconditionally.
76883
76884         * lib/bcopy.c: Include <stddef.h>.
76885         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
76886
76887         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
76888
76889         * lib/error.h (error, error_at_line, error_print_progname)
76890         [! (defined (__STDC__) && __STDC__)]: Remove decls.
76891         * lib/error.c: Include error.h first, to check interface.
76892         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
76893         (VA_START): Remove; all uses changeed to va_start.
76894         (exit, strerror): Remove decls.
76895         (error_print_progname): Prototype uncondionally.
76896         Don't include <errno.h>; no longer needed.
76897         (private_strerror): Remove.
76898         (error_tail): Always define.
76899         (error, error_at_line): Assume C89 or better; always use prototypes.
76900         * lib/fatal.c: Include "fatal.h" first, to test interface.
76901         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
76902         (VA_START): Remove; all uses changed to va_start.
76903         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
76904         this case.
76905         (exit): Remove decl.
76906         (fatal): Prototype unconditionally.  Assume va_start works.
76907         Abort at end, to pacify gcc.
76908
76909         * lib/euidaccess.c (main): Define with a prototype.
76910
76911         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
76912
76913         * lib/exitfail.c: Include <stdlib.h> unconditionally.
76914
76915         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
76916         prototypes.
76917         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
76918         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
76919         (getenv): Remove decl.
76920         (fnmatch): Define using a prototype.
76921         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
76922         (FCT): Define using a prototype.
76923
76924         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
76925
76926         * lib/gethostname.c: Include <stddef.h>.
76927         (gethostname): Define with prototype.  Length is size_t, not int.
76928
76929 2003-09-08  Paul Eggert  <eggert@twinsun.com>
76930
76931         Assume C89 or better; remove K&R cruft.
76932         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
76933         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
76934         string.h, getenv, malloc.
76935         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
76936         headers.
76937         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
76938         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
76939         do not check for strerror.
76940         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
76941         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
76942         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
76943         do not check for doprnt or vprintf.
76944         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
76945         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
76946
76947 2003-09-08  Paul Eggert  <eggert@twinsun.com>
76948
76949         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
76950         getversion.c should have been removed then, but was accidentally
76951         preserved.
76952
76953         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
76954         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
76955
76956 2003-09-08  Karl Berry  <karl@gnu.org>
76957
76958         * config/config.sub, config.guess, srclistvars.sh: update from savannah
76959                 config, forget about prep.
76960
76961         * config/depcomp, missing: update from automake.
76962
76963 2003-09-07  Paul Eggert  <eggert@twinsun.com>
76964
76965         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
76966         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
76967
76968 2003-09-07  Paul Eggert  <eggert@twinsun.com>
76969
76970         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
76971         copy_tm_result.  Bug reported by Simon Josefsson in
76972         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
76973
76974 2003-09-06  Paul Eggert  <eggert@twinsun.com>
76975
76976         * m4/time_r.m4: New file.
76977         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
76978         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
76979         is. Check for timegm declaration.
76980         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
76981         Do not check for gmtime_r.
76982         Replace mktime if __mktime_internal does not exist and if mktime
76983         hasn't been replaced already.
76984
76985 2003-09-06  Paul Eggert  <eggert@twinsun.com>
76986
76987         * lib/time_r.c, lib/time_r.h: New files.
76988
76989         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
76990         __localtime_r.
76991         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
76992         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
76993
76994         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
76995         __gmtime_r.
76996         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
76997         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
76998         Include <time_r.h>.
76999
77000         * lib/timegm.c: Switch to glibc implementation, with the following
77001         changes:
77002         [defined HAVE_CONFIG_H]: Include <config.h>.
77003         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
77004         (__mktime_internal) [!defined _LIBC]: New decl.
77005         (__gmtime_r) [!defined _LIBC]: New macro and function.
77006         (timegm): Use a prototype, since gnulib assumes C89.
77007         Do not bother declaring tmp to be const, as it's not really usefu.
77008         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
77009         (timegm): Declare only if HAVE_DECL_TIMEGM.
77010
77011 2003-09-06  Paul Eggert  <eggert@twinsun.com>
77012
77013         * MODULES.html.sh (func_all_modules): Add time_r.
77014         * modules/time_r: New file.
77015         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
77016         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
77017
77018 2003-09-03  Paul Eggert  <eggert@twinsun.com>
77019
77020         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
77021         Bug reported by Lute Kamstra in
77022         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
77023
77024         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
77025         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
77026         course with correspondingly smaller numbers for tomorrow and
77027         yesterday.  From Tadayoshi Funaba.  Originally installed into
77028         sh-utils on 1999-08-07, but the patch got lost (I guess during the
77029         coreutils merge?).
77030
77031 2003-08-31  Simon Josefsson  <jas@extundo.com>
77032
77033         * modules/timegm: New file.
77034         * MODULES.html.sh (func_all_modules): Add timegm.
77035
77036 2003-08-31  Simon Josefsson  <jas@extundo.com>
77037
77038         * m4/timegm.m4: New file.
77039
77040 2003-08-31  Simon Josefsson  <jas@extundo.com>
77041
77042         * lib/timegm.h: New file.
77043         * lib/timegm.c: New file.  Based on
77044         wget-1.8.2/src/http.c:mktime_from_utc.
77045
77046 2003-08-31  Karl Berry  <karl@gnu.org>
77047
77048         * lib/argp.h: update from libc.
77049
77050 2003-08-28  Bruno Haible  <bruno@clisp.org>
77051
77052         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
77053         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
77054         followed by '#define fnmatch fnmatch_posix' gives an error.
77055
77056 2003-08-28  Bruno Haible  <bruno@clisp.org>
77057
77058         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
77059         warning on QNX, which defines O_BINARY to 000000.
77060
77061 2003-08-27  Jim Meyering  <jim@meyering.net>
77062
77063         * m4/mkstemp.m4: Require that the system mkstemp be able to create
77064         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
77065         would fail after 32.  Reported by Danny Levinson.  Details here:
77066         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
77067
77068 2003-08-24  Bruno Haible  <bruno@clisp.org>
77069
77070         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
77071         MSVC7 <stdio.h> is included later.
77072
77073 2003-08-22  Simon Josefsson  <jas@extundo.com>
77074
77075         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
77076
77077 2003-08-20  Karl Berry  <karl@gnu.org>
77078
77079         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
77080
77081 2003-08-20  Bruno Haible  <bruno@clisp.org>
77082
77083         * modules/progname: New file.
77084         * MODULES.html.sh (func_all_modules): Add progname.
77085
77086 2003-08-20  Bruno Haible  <bruno@clisp.org>
77087
77088         * lib/progname.h: New file, from GNU gettext.
77089         * lib/progname.c: New file, from GNU gettext.
77090         * lib/progreloc.c: New file, from GNU gettext.
77091
77092 2003-08-19  Jim Meyering  <jim@meyering.net>
77093
77094         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
77095         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
77096
77097 2003-08-19  Bruno Haible  <bruno@clisp.org>
77098
77099         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
77100         more.
77101
77102 2003-08-19  Bruno Haible  <bruno@clisp.org>
77103
77104         * lib/xstrdup.c: Assume <string.h> exists.
77105
77106 2003-08-18  Paul Eggert  <eggert@twinsun.com>
77107
77108         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
77109         in makefile rules.
77110
77111 2003-08-18  Jim Meyering  <jim@meyering.net>
77112
77113         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
77114         * m4/lib-ld.m4: Likewise.
77115
77116 2003-08-18  Jim Meyering  <jim@meyering.net>
77117
77118         * lib/setenv.h: Indent nested cpp directive.
77119         * lib/vasnprintf.c: Remove trailing blanks.
77120
77121 2003-08-17  Simon Josefsson  <jas@extundo.com>
77122
77123         * modules/xstrndup: New file.
77124         * MODULES.html.sh (func_all_modules): Add xstrndup.
77125
77126 2003-08-17  Simon Josefsson  <jas@extundo.com>
77127
77128         * modules/argp: Fix autoconf macro name. Add more dependencies.
77129
77130 2003-08-17  Simon Josefsson  <jas@extundo.com>
77131
77132         * m4/xstrndup.m4: New file.
77133
77134 2003-08-17  Simon Josefsson  <jas@extundo.com>
77135
77136         * m4/argp.m4: New file.
77137
77138 2003-08-17  Simon Josefsson  <jas@extundo.com>
77139             Bruno Haible  <bruno@clisp.org>
77140
77141         * lib/xstrndup.h: New file.
77142         * lib/xstrndup.c: New file.
77143
77144 2003-08-17  Bruno Haible  <bruno@clisp.org>
77145
77146         * modules/strndup (Files, Include): Add lib/strndup.h.
77147
77148 2003-08-17  Bruno Haible  <bruno@clisp.org>
77149
77150         * modules/euidaccess (Files): Add lib/euidaccess.h.
77151
77152 2003-08-17  Bruno Haible  <bruno@clisp.org>
77153
77154         * lib/strndup.h: New file.
77155
77156 2003-08-17  Bruno Haible  <bruno@clisp.org>
77157
77158         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
77159         like AC_GNU_SOURCE.
77160         * modules/extensions (configure.ac): Comment out the invocation of
77161         gl_USE_SYSTEM_EXTENSIONS.
77162
77163 2003-08-16  Paul Eggert  <eggert@twinsun.com>
77164
77165         Merges from coreutils, etc.
77166         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
77167         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
77168         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
77169         fixing a typo.
77170         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
77171         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
77172
77173 2003-08-16  Paul Eggert  <eggert@twinsun.com>
77174
77175         Document merge from coreutils.
77176         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
77177         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
77178         * modules/utime: Add m4/utimes-null.m4.
77179
77180 2003-08-16  Paul Eggert  <eggert@twinsun.com>
77181
77182         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
77183         space, undoing this 2003-08-12 change:
77184         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
77185
77186 2003-08-16  Paul Eggert  <eggert@twinsun.com>
77187
77188         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
77189         strtoul.c from libc, undoing this 2003-08-12 change:
77190         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
77191
77192 2003-08-16  Jim Meyering  <jim@meyering.net>
77193
77194         Merges from coreutils.
77195         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
77196         prefix.  Adjust cache variables similarly.  Create 500 rather than
77197         just 300 files, to exercise bug on Darwin6.5, too.
77198         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
77199         $missing_dir.
77200         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
77201         AM_SYS_POSIX_TERMIOS.
77202         Reported by mkc@mathdogs.com.
77203         Also change use of $am_cv_sys_posix_termios
77204         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
77205         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
77206         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
77207         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
77208         in /proc/mounts until it finds one with matching device number.  This
77209         is unnecessary when the FILE argument *is* a mount point.  No stat call
77210         is necessary in that case.  So, disable the statvfs-testing code on
77211         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
77212         as RedHat bug# 84846.
77213         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
77214         to 1MB, so as not to render systems with no stack size limit (e.g.,
77215         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
77216         Include <unistd.h>.  On some systems,
77217         it is required for the definition of _SC_PAGESIZE.
77218
77219 2003-08-16  Jim Meyering  <jim@meyering.net>
77220
77221         Merge from coreutils.
77222         * lib/xstrtoimax.c: #else #if -> #elif.
77223         * lib/xstrtoumax.c: Likewise.
77224
77225 2003-08-16  Jim Meyering  <jim@meyering.net>
77226
77227         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
77228         * m4/utimes.m4: Removed.
77229         * m4/utimes-null.m4: Renamed from utimes.m4.
77230
77231         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
77232         to 1MB, so as not to render systems with no stack size limit (e.g.,
77233         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
77234         Include <unistd.h>.  On some systems,
77235         it is required for the definition of _SC_PAGESIZE.
77236
77237 2003-08-16  Jim Meyering  <jim@meyering.net>
77238         and Paul Eggert  <eggert@cs.ucla.edu>
77239
77240         Merges from coreutils, etc.
77241
77242         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
77243         using the latest version from cvs.  This avoids problems with #line
77244         directives using a vendor (Sun) compiler.
77245         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
77246         Don't set GETGROUPS_LIB here; now it's
77247         done via getgroups.m4's wrapper function.
77248         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
77249         rather than just in sh-util/configure.in, so that the
77250         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
77251         same.
77252         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
77253         AC_FUNC_GETLOADAVG where to find getloadavg.c.
77254         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
77255         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
77256         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
77257         Remove code that is now done by the newly-required macros.
77258         Append $(EXEEXT) to DF_PROG.
77259         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
77260         Do not invoke or require the following here,
77261         since prereq.m4 or some gnulib .m4 now does this for us:
77262         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
77263         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
77264         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
77265         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
77266         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
77267         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
77268         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
77269         AC_FUNC_OBSTACK.
77270         Do not replace the following functions, as this is now the job
77271         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
77272         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
77273         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
77274         atexit getpass, strdup, getpagesize.
77275         Replace 'raise'.
77276         Do not check for the following functions, as this is now the job
77277         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
77278         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
77279         setregid.
77280         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
77281         Check for sys/sysctl.h.
77282         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
77283         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
77284         of checking for ssize_t ourselves.
77285
77286         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
77287         Require every macro that gnulib/modules/* suggests for us.
77288         (jm_PREREQ_ADDEXT): New macro.
77289         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
77290         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
77291
77292         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
77293         (gl_PHYSMEM): Use it.
77294         Also check for `table' function.
77295         Check for new headers and functions.
77296         Add check for sys/sysmp.h.
77297         With suggestions from Kaveh Ghazi.
77298         Ignore headers that are present but cannot be compiled.  This
77299         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
77300         C 5.4.
77301
77302 2003-08-15  Paul Eggert  <eggert@twinsun.com>
77303
77304         Document merge from coreutils.
77305         * modules/userspec: Depend on posixver.
77306         * modules/strftime: Depend on tzset.
77307
77308 2003-08-15  Paul Eggert  <eggert@twinsun.com>
77309
77310         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
77311         rather than tab, after '#' in shell-script copyright notices.
77312         Suggested by Bruno Haible.
77313
77314 2003-08-15  Paul Eggert  <eggert@twinsun.com>
77315
77316         * config/srclist-update: Use three spaces, rather than tab, after '#'
77317         in shell-script copyright notices.  Suggested by Bruno Haible.
77318         Remove unnecessary parenthesization in regular expression.
77319
77320 2003-08-15  Jim Meyering  <jim@meyering.net>
77321
77322         Merge from coreutils.
77323         * lib/xgethostname.c: Include <stdlib.h>.
77324         (xghostname): Don't exit for anything other than memory-related
77325         failure; just return NULL.
77326         * lib/userspec.c: Include "posixver.h".
77327         (parse_user_spec): Accept `.' as a separator only
77328         in pre-POSIX-200112 mode.
77329         * lib/strtoimax.c: Use #elif rather than #else #if.
77330         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
77331         Remove function, now that we can rely on a working tzset function.
77332         [!_LIBC]: Ensure that the required autoconf test has been run.
77333         [!defined _NL_CURRENT && HAVE_STRFTIME]:
77334         Use underlying_strftime for %r.
77335         * lib/sha.c: Merge in some clean-up and optimization changes from
77336         glibc.
77337         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
77338         Ensure that it is a multiple of 64.
77339         Rearrange loop exit tests so as to avoid performing an
77340         additional fread after encountering an error or EOF.
77341         * lib/realloc.c: Update copyright date.
77342
77343 2003-08-15  Jim Meyering  <jim@meyering.net>
77344         and Paul Eggert  <eggert@twinsun.com>
77345
77346         Merge from coreutils.
77347         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
77348         member but strut utmpx does not.  Needed for AIX 4.3.3.
77349         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
77350
77351 2003-08-15  Jim Meyering  <jim@meyering.net>
77352         and Paul Eggert  <eggert@cs.ucla.edu>
77353
77354         Merges from coreutils, etc.
77355         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
77356         Require gl_FUNC_TZSET_CLOBBER.
77357         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
77358         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
77359         members.
77360
77361 2003-08-14  Paul Eggert  <eggert@twinsun.com>
77362
77363         Help the merge from coreutils.
77364         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
77365         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
77366         * m4/tzset.m4: Use it too.
77367
77368 2003-08-14  Paul Eggert  <eggert@twinsun.com>
77369
77370         * modules/tzset: New file.
77371
77372 2003-08-14  Jim Meyering  <jim@meyering.net>
77373
77374         Merges from coreutils.
77375         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
77376         variable names, rather than @FNMATCH_H@.
77377         * modules/alloca: Likewise for $(ALLOCA_H).
77378
77379         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
77380         the three copies of the literal target, `fnmatch.h'.
77381         * modules/alloca (alloca.h): Likewise.
77382
77383 2003-08-14  Jim Meyering  <jim@meyering.net>
77384
77385         Merge from coreutils.
77386         * m4/tzset.m4: New file.
77387         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
77388         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
77389         otherwise, AIX 5.1 systems would end up using the latter.
77390         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
77391         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
77392         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
77393         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
77394
77395 2003-08-14  Jim Meyering  <jim@meyering.net>
77396
77397         Merge from coreutils.
77398         * lib/obstack.h: Whitespace changes.
77399         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
77400         and xcalloc return values.
77401         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
77402         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
77403         hang on OSF/1 5.1 for DIR on both local and remote file systems.
77404         Reported by (and fix confirmed by) Nelson H. F. Beebe.
77405         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
77406         error from mntctl.
77407         Use mntctl's return value to drive the entry-processing loop, since
77408         we can't rely on the value of the vmt_length member in the last
77409         entry.  On some systems doing so could result in exhausting
77410         virtual memory.  Based in part on a patch from Mike Jetzer.
77411
77412 2003-08-14  Jim Meyering  <jim@meyering.net>
77413         and Paul Eggert  <eggert@twinsun.com>
77414
77415         Merges from coreutils, plus other fixes.
77416         * lib/physmem.c: Merge in portability changes from gcc/libiberty
77417         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
77418         for credits and details.  Thanks to Kaveh Ghazi for helping
77419         to keep these files in sync.
77420         (ARRAY_SIZE): Define it.
77421         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
77422         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
77423         (memcasecmp): Don't assume size_t fits in unsigned int.
77424         Remove casts and duplicate code.
77425         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
77426         (memcpy): Remove definition.
77427         Merge in some clean-up and optimization changes from glibc.
77428         [BLOCKSIZE]: Move definition to top of file.
77429         Ensure that it is a multiple of 64.
77430         Rearrange loop exit tests so as to avoid performing an
77431         additional fread after encountering an error or EOF.
77432         * lib/md5.h (md5_uintptr): Define.
77433         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
77434         return to the initial working directory.  Preserve errno
77435         for caller.
77436         * lib/idcache.c: Include "xalloc.h".
77437         (xmalloc, xrealloc): Remove decls.
77438         (getuser): Remove casts no longer required in C89.
77439         * lib/human.c: Include stdio.h, for sprintf.
77440         * lib/group-member.c: Include "xalloc.h".
77441         (xmalloc, xrealloc): Remove decls.
77442         (get_group_info): Remove casts no longer required in C89.
77443         * lib/getusershell.c (readname): Remove casts no longer required in
77444         C89.
77445         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
77446         * lib/getline.c: Whitespace fix, from coreutils.
77447
77448 2003-08-13  Paul Eggert  <eggert@twinsun.com>
77449
77450         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
77451         Check for isascii.
77452
77453         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
77454         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
77455         Undo previous (whitespace-only) change.
77456
77457 2003-08-13  Paul Eggert  <eggert@twinsun.com>
77458
77459         * lib/exclude.c: Include <ctype.h>
77460         (IN_CTYPE_DOMAIN): New macro.
77461         (is_space): New fn.
77462         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
77463         and empty lines.
77464
77465         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
77466         Undo previous (whitespace-only) change.
77467
77468 2003-08-13  Paul Eggert  <eggert@twinsun.com>
77469
77470         * config/srclist-update: Change update back to the old behavior,
77471         leaving whitespace alone.  Use one 'sed' command rather than a
77472         pipeline.
77473         (fixlicense): Now a variable, not a function.
77474         (remove_trailing_blanks): Remove.
77475         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
77476         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
77477         Undo previous (whitespace-only) change.
77478
77479 2003-08-12  Paul Eggert  <eggert@twinsun.com>
77480
77481         Merge from coreutils.
77482         * modules/euidaccess: Add lib_SOURCES, include for new
77483         file euidaccess.h
77484
77485 2003-08-12  Paul Eggert  <eggert@twinsun.com>
77486
77487         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
77488         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
77489         Normalize leading white space and remove trailing white space.
77490
77491         Merge from coreutils
77492         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
77493
77494         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
77495         0.12.1.  These files are now being upgraded automatically by
77496         ../config/srclist-update.
77497
77498 2003-08-12  Paul Eggert  <eggert@twinsun.com>
77499
77500         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
77501         Normalize leading white space and remove trailing white space.
77502         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
77503         notice, as per ../config/srclist-update.
77504
77505         Merge from coreutils.
77506         * lib/euidaccess.h: New file.
77507         * lib/euidaccess.c: Include it.
77508         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
77509         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
77510         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
77511
77512 2003-08-12  Paul Eggert  <eggert@twinsun.com>
77513
77514         * config/srclist-update: Add copyright notice.
77515         (remove_id_lines, remove_trailing_blanks): New constants.
77516         (fixfile): Use them to normalize spacing a bit in copied files.
77517         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
77518         Normalize leading white space and remove trailing white space.
77519
77520         * config/texinfo.tex: Sync with texinfo.
77521
77522         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
77523         strtoul.c from libc, to merge coreutils whitespace changes.
77524
77525         * config/srclist.txt: Get the following m4 files from gettext:
77526         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
77527         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
77528         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
77529         wint_t.m4.
77530
77531 2003-08-12  Karl Berry  <karl@gnu.org>
77532
77533         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
77534         been made.
77535
77536 2003-08-11  Paul Eggert  <eggert@twinsun.com>
77537
77538         * modules/gnu-source, m4/gnu-source.m4:
77539         Remove; we're assuming Autoconf 2.54 or later now.
77540         Suggested by Bruno Haible.
77541         * MODULES.html.sh (func_all_modules): Remove gnu-source.
77542
77543 2003-08-11  Bruno Haible  <bruno@clisp.org>
77544
77545         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
77546
77547 2003-08-11  Bruno Haible  <bruno@clisp.org>
77548
77549         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
77550         (vasnprintf): Use it instead of wcslen.
77551
77552 2003-08-11  Bruno Haible  <bruno@clisp.org>
77553
77554         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
77555         value to ensure that _Bool promotes to int. Use #define for _Bool when
77556         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
77557
77558 2003-08-10  Karl Berry  <karl@gnu.org>
77559
77560         * lib/regex.h: update from libc (whitespace fix).
77561
77562 2003-08-09  Paul Eggert  <eggert@twinsun.com>
77563
77564         Merge some files from coreutils.  These changes were
77565         originally made by Jim Meyering.
77566         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
77567         many older Unixes require this.
77568         * lib/alloca.c (alloca): Remove cast to argument of free;
77569         no longer needed in C89.
77570         * lib/alloca_.h, regex.h: Fix white space to match
77571         what GNU indent does.
77572
77573 2003-08-09  Paul Eggert  <eggert@twinsun.com>
77574
77575         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
77576         apparently Emacs's Unicode mode got confused before my 2003-08-05
77577         checkin.
77578
77579 2003-08-08  Paul Eggert  <eggert@twinsun.com>
77580
77581         * m4/extensions.m4: New file.
77582         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
77583         Require gl_USE_SYSTEM_EXTENSIONS.
77584         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
77585         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
77586
77587 2003-08-08  Paul Eggert  <eggert@twinsun.com>
77588
77589         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
77590         * modules/extensions, modules/gnu-source: New files.
77591         * modules/timespec, modules/unlocked-io: Depend on extensions.
77592
77593 2003-08-07  Paul Eggert  <eggert@twinsun.com>
77594
77595         * modules/restrict: New file.
77596         * MODULES.html.sh (func_all_modules): Add restrict.
77597         * modules/regex: Depend on restrict.
77598
77599 2003-08-07  Paul Eggert  <eggert@twinsun.com>
77600
77601         * m4/restrict.m4: New file.
77602         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
77603
77604 2003-08-07  Bruno Haible  <bruno@clisp.org>
77605
77606         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
77607         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
77608
77609 2003-08-07  Bruno Haible  <bruno@clisp.org>
77610
77611         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
77612         makes the module 'getndelim2' compatible with the module 'getline'.
77613
77614 2003-08-05  Paul Eggert  <eggert@twinsun.com>
77615
77616         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
77617         byte with "\201" to avoid glitches when editing that source file
77618         with multi-gnome-terminal.
77619
77620 2003-08-05  Paul Eggert  <eggert@twinsun.com>
77621
77622         * lib/bumpalloc.h: Remove.
77623
77624 2003-08-05  Paul Eggert  <eggert@twinsun.com>
77625
77626         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
77627         * modules/bumpalloc: Remove.
77628
77629 2003-08-04  Paul Eggert  <eggert@twinsun.com>
77630
77631         * lib/getloadavg.c: Change copyright notice and spacing to conform to
77632         GNU coding style.
77633
77634         Merge from coreutils.
77635         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
77636         1. From glibc.
77637         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
77638         from Karl Berry, implemented by Jim Meyering.
77639         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
77640         from Dmitry V. Levin.
77641         Remove anachronistic cast of xrealloc.
77642         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
77643         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
77644         type. Otherwise, it wouldn't compile with at least /bin/cc on
77645         ymp-cray-unicos9.0.2.X.
77646         Combine two mostly-identical uses of alloca into one.
77647         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
77648
77649 2003-08-04  Dave Love  <d.love@dl.ac.uk>
77650
77651         [From Emacs.]
77652
77653         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
77654         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
77655         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
77656         obsolete NLIST_NAME_UNION.
77657         [__GNU__]: Undef BSD and FSCALE.
77658         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
77659
77660 2003-08-03  Paul Eggert  <eggert@twinsun.com>
77661
77662         * lib/stdbool_.h (_Bool): Make it signed char, instead of
77663         an enum type, so that it's guaranteed to promote to int.  See:
77664         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
77665
77666 2003-08-03  Karl Berry  <karl@gnu.org>
77667
77668         * config/depcomp: update from automake.
77669
77670 2003-07-31  Paul Eggert  <eggert@twinsun.com>
77671
77672         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
77673         (strerror): Don't assume that a printable int fits in 14 bytes.
77674
77675 2003-07-31  Bruno Haible  <bruno@clisp.org>
77676
77677         * modules/getpass-gnu: New file.
77678         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
77679
77680 2003-07-31  Bruno Haible  <bruno@clisp.org>
77681
77682         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
77683
77684 2003-07-24  Karl Berry  <karl@gnu.org>
77685
77686         * config/missing: update from automake.
77687
77688 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
77689             Bruno Haible  <bruno@clisp.org>
77690
77691         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
77692         * lib/getline.c (getline, getdelim): Likewise.
77693         Remove _GNU_SOURCE define; now it's defined in config.h through
77694         m4/getline.m4.
77695
77696 2003-07-23  Karl Berry  <karl@gnu.org>
77697
77698         * config/config.sub: update from prep.
77699
77700 2003-07-22  Paul Eggert  <eggert@twinsun.com>
77701
77702         * modules/xalloc (Depends-on): Add exitfail.
77703         * modules/xmemcoll: Likewise.
77704
77705 2003-07-22  Paul Eggert  <eggert@twinsun.com>
77706
77707         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
77708         over-parenthesization in macros.
77709
77710         Sync with coreutils.
77711
77712         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
77713         required by C99.
77714
77715         Use `exit_failure' for xalloc and xmemcoll instead of their own
77716         private exit-failure variables.
77717         * lib/xalloc.h (xalloc_exit_failure): Remove.
77718         * lib/xmalloc.c: Likewise.  Include exitfail.h.
77719         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
77720         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
77721         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
77722         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
77723
77724 2003-07-20  Jim Meyering  <jim@meyering.net>
77725
77726         * modules/closeout (Depends-on): Add exitfail.
77727         Suggestion from Bruno Haible.
77728
77729 2003-07-19  Karl Berry  <karl@gnu.org>
77730
77731         * config/config.sub: update from prep.
77732
77733 2003-07-18  Paul Eggert  <eggert@twinsun.com>
77734
77735         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
77736         Remove.
77737         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
77738         to test that it can stand by itself.  Include "exitfail.h".
77739         Clients should set exit_failure instead.
77740         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
77741
77742 2003-07-18  Bruno Haible  <bruno@clisp.org>
77743
77744         * modules/getndelim2: New file.
77745         * modules/getline: Share files with module getndelim2.
77746         * modules/getnline: Depend on getndelim2 instead of sharing files with
77747         it. Add getnline.c to lib_SOURCES.
77748         * MODULES.html.sh (func_all_modules): Add getndelim2.
77749
77750 2003-07-18  Bruno Haible  <bruno@clisp.org>
77751
77752         * m4/getndelim2.m4: New file.
77753         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
77754         invoke gl_PREREQ_GETNDELIM2.
77755         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
77756         gl_PREREQ_GETNDELIM2.
77757         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
77758         gl_GETNDELIM2.
77759
77760 2003-07-18  Bruno Haible  <bruno@clisp.org>
77761
77762         * lib/getndelim2.h: New file.
77763         * lib/getndelim2.c: Make into a module of its own. Include config.h,
77764         getndelim2.h.
77765         (getndelim2): Make non-static. Change return type to ssize_t.
77766         * lib/getline.h: Change argument names.
77767         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
77768         * lib/getnline.c: Include getndelim2.h.
77769
77770 2003-07-18  Andreas Schwab  <schwab@suse.de>
77771
77772         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
77773
77774 2003-07-17  Karl Berry  <karl@gnu.org>
77775
77776         * config/config.sub: update from prep.
77777
77778 2003-07-17  Bruno Haible  <bruno@clisp.org>
77779
77780         * modules/getnline: New file.
77781         * modules/getline: Add lib/getndelim2.c to source file list.
77782         * MODULES.html.sh (func_all_modules): Add getnline.
77783
77784 2003-07-17  Bruno Haible  <bruno@clisp.org>
77785
77786         * m4/getnline.m4: New file.
77787
77788 2003-07-17  Bruno Haible  <bruno@clisp.org>
77789
77790         * m4/Makefile.am.in: Remove file.
77791         * m4/Makefile.am: Remove file.
77792         * m4/Makefile.in: Remove file.
77793
77794 2003-07-17  Bruno Haible  <bruno@clisp.org>
77795
77796         * lib/getnline.h: New file.
77797         * lib/getnline.c: New file.
77798         * lib/getndelim2.c: New file, extracted from getline.c.
77799         (getndelim2): Renamed from getdelim2, with added nmax argument.
77800         * lib/getline.c: Include getndelim2.c.
77801         (getdelim2): Moved out to getndelim2.c.
77802         (getline, getdelim): Update.
77803
77804 2003-07-17  Bruno Haible  <bruno@clisp.org>
77805
77806         * lib/Makefile.am: Remove file.
77807         * lib/Makefile.in: Remove file.
77808
77809 2003-07-17  Bruno Haible  <bruno@clisp.org>
77810
77811         * configure.in: Remove file.
77812         * Makefile.in: Remove file.
77813
77814 2003-07-17  Bruno Haible  <bruno@clisp.org>
77815
77816         * MODULES.html.sh: Put the </BODY> right before </HTML>.
77817
77818 2003-07-16  Karl Berry  <karl@gnu.org>
77819
77820         * config/srclist-update: was running fixlicense twice, which caused
77821                 texinfo.tex to be nullified for some reason.  Simplify,
77822                 $gplsrc is no longer needed as far as I can see?
77823
77824 2003-07-16  Jim Meyering  <jim@meyering.net>
77825
77826         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
77827
77828 2003-07-15  Paul Eggert  <eggert@twinsun.com>
77829
77830         * config/srclist.txt: Get the following files from gettext-runtime/intl
77831         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
77832         ref-del.sin.  From Bruno Haible.
77833         * config/srclist-update (fixfile): Change grep pattern again, since the
77834         previous fix didn't work (there was another trailing $).  Use
77835         '[$]' to escape the $s.
77836
77837 2003-07-15  Karl Berry  <karl@gnu.org>
77838
77839         * lib/vasnprintf.c: update from gettext.
77840
77841 2003-07-15  Karl Berry  <karl@gnu.org>
77842
77843         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
77844         gets expanded when surrounded by '$'.
77845
77846 2003-07-15  Jim Meyering  <jim@meyering.net>
77847
77848         * modules/save-cwd: Don't depend on error.  From Derek Price.
77849
77850 2003-07-15  Jim Meyering  <jim@meyering.net>
77851
77852         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
77853
77854 2003-07-14  Simon Josefsson  <jas@extundo.com>
77855
77856         * modules/mempcpy: New file.
77857         * MODULES.html.sh (func_all_modules): Add mempcpy.
77858
77859 2003-07-14  Simon Josefsson  <jas@extundo.com>
77860
77861         * m4/mempcpy.m4: New file.
77862
77863 2003-07-14  Simon Josefsson  <jas@extundo.com>
77864
77865         * lib/mempcpy.h: New file.
77866         * lib/mempcpy.c: New file.
77867
77868 2003-07-14  Paul Eggert  <eggert@twinsun.com>
77869
77870         * modules/getdate, modules/posixtm: Depend on mktime.
77871
77872 2003-07-14  Paul Eggert  <eggert@twinsun.com>
77873
77874         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
77875         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
77876         unicodeio.c, unicodeio.h, unlocked-io.h:
77877         Switch from LGPL to GPL.
77878
77879 2003-07-14  Paul Eggert  <eggert@twinsun.com>
77880
77881         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
77882         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
77883         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
77884         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
77885         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
77886         updated automatically by ../config/srclist-update.  This changes
77887         their license from LPGL to GPL.
77888
77889 2003-07-14  Paul Eggert  <eggert@twinsun.com>
77890
77891         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
77892         assumed to refer to the root of the most recent stable gettext version.
77893         * config/srclistvars.sh: Add defaults for eggert.
77894         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
77895         Match "This program" as well as "The program".  This is needed
77896         for gettext.
77897
77898 2003-07-14  Jim Meyering  <jim@meyering.net>
77899
77900         Don't emit diagnostics.  Let callers do that.
77901         * lib/save-cwd.c: Don't include "error.h".
77902         (save_cwd): Don't call error.  Ensure that errno is valid
77903         when returning nonzero.
77904
77905         * lib/save-cwd.h (restore_cwd): Update prototype.
77906         * lib/save-cwd.c (restore_cwd): Remove two parameters.
77907         Simplify.  Don't call error upon failure.  Let callers do that.
77908         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
77909         when auditing is enabled.  But don't bother updating the #if.
77910
77911 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
77912
77913         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
77914         it breaks C++ compilation.
77915         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
77916
77917 2003-07-10  Simon Josefsson  <jas@extundo.com>
77918
77919         * modules/strchrnul (Makefile.am): Add strchrnul.h.
77920
77921 2003-07-10  Jim Meyering  <jim@meyering.net>
77922
77923         * m4/clock_time.m4: Remove trailing blank.
77924         * m4/intmax_t.m4: Likewise.
77925
77926 2003-07-10  Jim Meyering  <jim@meyering.net>
77927
77928         * lib/vasnprintf.c: Remove trailing blanks.
77929         Make cpp indentation consistent.
77930
77931 2003-07-09  Paul Eggert  <eggert@twinsun.com>
77932
77933         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
77934         posixver.c, strftime.c, strnlen.c, strverscmp.c:
77935         Switch from LGPL to GPL.
77936
77937 2003-07-09  Paul Eggert  <eggert@twinsun.com>
77938
77939         * config/srclist.txt: Sort sublists.  Add
77940         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
77941         that differ from gnulib for one reason or another; we'd like this list
77942         to be smaller but for now let's document what we have.
77943
77944 2003-07-08  Paul Eggert  <eggert@twinsun.com>
77945
77946         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
77947         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
77948         and sweeter "eval x=$x".
77949         * config/srclist.txt: Get lib/argp* from glibc.
77950
77951 2003-07-07  Paul Eggert  <eggert@twinsun.com>
77952
77953         * lib/mktime.c: Fix some boundary cases and remove need for floating
77954         point.
77955
77956         Issue a compile-time diagnostic if time_t is floating point, or if
77957         two's complement arithmetic is not in effect, or if arithmetic
77958         right shift does not propagate the sign.  These assumptions were
77959         all in the original code but they weren't checked.
77960
77961         (TIME_T_MIDPOINT, verify): New macros.
77962         (__isleap): Remove; it has integer overflow problems.
77963         (leapyear): New function, without those problems.
77964         (ydhms_tm_diff): Remove; splitting into two parts.
77965         (ydhms_diff): New function, containing the arithmetic part of
77966         the old ydhms_tm_diff function.  Issue a compile-time
77967         diagnostic if we are not using C99 integer division.
77968         Avoid casts when possible.
77969         (guess_time_tm): New function, containing the checking part of
77970         the old ydhms_tm_diff function.  Return the new value, rather than
77971         the difference between it and the old.  Accept a new argument T
77972         so that *T specifies the old value.  Check for overflow in the result.
77973
77974         (__mktime_internal): Use a time_t offset, not a long int offset.
77975         This undoes the 2003-06-04 change, which is no longer needed now
77976         that we have better overflow checking.
77977         (localtime_offset): Likewise.
77978
77979         (__mktime_internal): Avoid harmful overflow on hosts where time_t
77980         and long are 64-bit but int is only 32-bit.
77981         (ydhms_diff): Use long int to store year1 and yday1.
77982         Issue a compile-time diagnostic if long int is not wide enough.
77983
77984         (__mktime_internal): Use long int to store adjusted year and yday.
77985         Use plain C rather than preprocessor commands, if that doesn't
77986         affect efficiency.
77987         Check for overflow (and try to repair) after each probe
77988         rather than checking only at the very end.  This avoids some bugs
77989         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
77990         does not equal GMT offset at maximum time).
77991         Use integer to check for overflow rather than floating point; this
77992         is more portable to non-IEEE hosts, and is a tad faster.
77993         When we detect that we are oscillating between two values,
77994         don't check whether tm_isdst has the requested value, since
77995         we already know the answer.  When tm_isdst has the wrong value,
77996         use a different heuristic to find the right one, based on the
77997         extreme values actually observed in practice in tz2003a,
77998         rather than the (overly optimistic) "previous 3 calendar quarters".
77999
78000         (not_equal_tm, print_tm, check_result): Use "const T" rather than
78001         "T const" to accommodate glibc style.
78002         (check_result): Use less-confusing report format.  "long" -> "long int.
78003         (main): Likewise.
78004         Don't loop if the iteration overflows time_t.
78005         Allow a negative step in the iteration.
78006
78007 2003-07-06  Karl Berry  <karl@gnu.org>
78008
78009         * config/depcomp: update from automake.
78010         * config/config.sub: update from prep.
78011
78012 2003-07-03  Karl Berry  <karl@gnu.org>
78013
78014         * config/config.guess: update from prep.
78015
78016 2003-07-01  Paul Eggert  <eggert@twinsun.com>
78017
78018         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
78019         xreadlink.c now includes it unconditionally.
78020
78021 2003-07-01  Paul Eggert  <eggert@twinsun.com>
78022
78023         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
78024         having it depend on HAVE_SYS_TYPES_H.
78025
78026 2003-07-01  Bruno Haible  <bruno@clisp.org>
78027
78028         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
78029         <sys/types.h> should be sufficient.
78030         Reported by Paul Eggert.
78031
78032 2003-06-26  Karl Berry  <karl@gnu.org>
78033
78034         * config/depcomp: update from automake.
78035
78036 2003-06-26  Bruno Haible  <bruno@clisp.org>
78037
78038         * modules/human: Depend on module stdbool.
78039
78040 2003-06-25  Bruno Haible  <bruno@clisp.org>
78041
78042         * modules/readlink: New file.
78043         * modules/xreadlink: Depend on it.
78044         * MODULES.html.sh (func_all_modules): Add readlink.
78045
78046 2003-06-25  Bruno Haible  <bruno@clisp.org>
78047
78048         * m4/readlink.m4: New file.
78049
78050 2003-06-25  Bruno Haible  <bruno@clisp.org>
78051
78052         * lib/readlink.c: New file.
78053
78054 2003-06-22  Karl Berry  <karl@gnu.org>
78055
78056         * config/srclist.txt: update mkinstalldirs from automake.
78057         * config/mkinstalldirs: update.
78058
78059 2003-06-22  Bruno Haible  <bruno@clisp.org>
78060
78061         Portability to mingw32.
78062         * m4/ssize_t.m4: New file, from GNU gettext.
78063         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
78064         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
78065
78066 2003-06-22  Bruno Haible  <bruno@clisp.org>
78067
78068         * modules/safe-read: Add m4/ssize_t.m4.
78069         * modules/xreadlink: Add m4/ssize_t.m4.
78070
78071 2003-06-20  Bruno Haible  <bruno@clisp.org>
78072
78073         Assume C89, so PARAMS isn't needed.
78074         * lib/unicodeio.h (PARAMS): Remove.
78075         * lib/unicodeio.c: Don't use PARAMS.
78076
78077 2003-06-18  Karl Berry  <karl@gnu.org>
78078
78079         * config/config.{guess,sub}: update from prep.
78080
78081 2003-06-18  Jim Meyering  <jim@meyering.net>
78082
78083         Merge changes from coreutils.
78084         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
78085         Remove explicit declarations of xmalloc and realloc.
78086         Include xalloc.h.
78087         (read_utmp): Remove anachronistic cast of xmalloc.
78088
78089 2003-06-17  Paul Eggert  <eggert@twinsun.com>
78090
78091         Assume C89, so PARAMS isn't needed.
78092         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
78093         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
78094         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
78095         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
78096         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
78097         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
78098         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
78099         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
78100         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
78101         lib/xstrtod.h, lib/xstrtol.h: Likewise.
78102         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
78103         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
78104         no longer needed. Anyway, config.h should always be included before any
78105         other file.
78106
78107 2003-06-11  Simon Josefsson  <jas@extundo.com>
78108
78109         * modules/sysexits: New file.
78110         * MODULES.html.sh (func_all_modules): Add sysexits.
78111
78112 2003-06-11  Simon Josefsson  <jas@extundo.com>
78113
78114         * lib/sysexit_.h: New file.
78115
78116 2003-06-11  Derek Price  <derek@ximbiot.com>
78117
78118         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
78119         necessary.
78120
78121 2003-06-11  Bruno Haible  <bruno@clisp.org>
78122
78123         * m4/sysexits.m4: New file.
78124
78125 2003-06-10  Simon Josefsson  <jas@extundo.com>
78126
78127         * lib/argp.h: New file, from glibc.
78128         * lib/argp-ba.c: New file, from glibc.
78129         * lib/argp-eexst.c: New file, from glibc.
78130         * lib/argp-fmtstream.c: New file, from glibc.
78131         * lib/argp-fmtstream.h: New file, from glibc.
78132         * lib/argp-fs-xinl.c: New file, from glibc.
78133         * lib/argp-help.c: New file, from glibc.
78134         * lib/argp-namefrob.h: New file, from glibc.
78135         * lib/argp-parse.c: New file, from glibc.
78136         * lib/argp-pv.c: New file, from glibc.
78137         * lib/argp-pvh.c: New file, from glibc.
78138         * lib/argp-xinl.c: New file, from glibc.
78139
78140 2003-06-10  Simon Josefsson  <jas@extundo.com>
78141
78142         * modules/strchrnul: New file.
78143
78144 2003-06-10  Simon Josefsson  <jas@extundo.com>
78145
78146         * modules/argp: New file.
78147
78148 2003-06-10  Simon Josefsson  <jas@extundo.com>
78149
78150         * m4/strchrnul.m4: New file.
78151
78152 2003-06-10  Simon Josefsson  <jas@extundo.com>
78153
78154         * lib/strchrnul.h: New file.
78155         * lib/strchrnul.c: New file.
78156
78157 2003-06-10  Bruno Haible  <bruno@clisp.org>
78158
78159         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
78160
78161 2003-06-07  Karl Berry  <karl@gnu.org>
78162
78163         * config/config.{guess,sub}: update from prep.
78164
78165 2003-06-07  Jim Meyering  <jim@meyering.net>
78166
78167         * modules/strtod: Use $(...) notation, not @...@ for
78168         AC_REPLACE'd variables.
78169         * modules/localcharset: Likewise.
78170
78171 2003-06-07  Jim Meyering  <jim@meyering.net>
78172
78173         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
78174         in place of my name in the copyright comment.
78175         Remove definition and uses of __P.
78176
78177         From coreutils.
78178         * lib/stat.c: Don't declare xmalloc explicitly.
78179         Instead, include "xalloc.h".
78180         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
78181         xrealloc, and xcalloc return values.
78182         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
78183         Improve comment.
78184         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
78185
78186 2003-06-07  Bruno Haible  <bruno@clisp.org>
78187
78188         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
78189         avoid AC_CONFIG_LINKS.
78190         * modules/fnmatch (Makefile.am): Use explicit creation rule for
78191         fnmatch.h, to avoid AC_CONFIG_LINKS.
78192         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
78193
78194 2003-06-07  Bruno Haible  <bruno@clisp.org>
78195
78196         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
78197         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
78198         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
78199         directory.
78200         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
78201         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
78202         directory.
78203
78204 2003-06-06  Jim Meyering  <jim@meyering.net>
78205
78206         Merge from coreutils.
78207         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
78208         Consolidate declarations and initializations of *_base* locals.
78209
78210         Merge from coreutils.
78211         This avoids a core dump on systems without GNU putenv,
78212         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
78213         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
78214         (unsetenv): New static function, from GNU libc.
78215         (rpl_putenv): Use it.
78216
78217         * lib/modechange.c: Remove trailing blanks.
78218
78219         Merge from coreutils.
78220         * lib/fsusage.c: Remove declaration of statfs.
78221         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
78222
78223         * lib/posixtm.c: Include <stdbool.h> unconditionally.
78224
78225 2003-06-06  Jim Meyering  <jim@meyering.net>
78226
78227         * lib/stdbool_.h: Renamed from stdbool.h.in.
78228
78229 2003-06-06  Jim Meyering  <jim@meyering.net>
78230             Bruno Haible  <bruno@clisp.org>
78231
78232         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
78233         Adjust Makefile.am snippet not to redirect directly to target.
78234         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
78235
78236 2003-06-05  Paul Eggert  <eggert@twinsun.com>
78237
78238         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
78239         mismatch, look in future quarters as well as past.  This fixes a
78240         bug when processing fall-backwards gaps immediately after a long
78241         period of daylight-saving time.
78242
78243         * lib/mktime.c: Assume freestanding C89 or better.
78244         (HAVE_LIMITS_H): Remove.  Assume it's 1.
78245         (__P): Remove; not used.
78246         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
78247         (mktime, not_equal_tm, print_tm, check_result,
78248         main): Use prototypes.  Use const * where appropriate.
78249         (main): Fix typo in testing code that uncovered by above changes.
78250         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
78251
78252 2003-06-04  Paul Eggert  <eggert@twinsun.com>
78253
78254         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
78255         locale.h, localeconv.  This merges changes from coreutils.
78256
78257         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
78258         It can be removed after the next Autoconf is released.
78259         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
78260         needed.
78261
78262 2003-06-04  Paul Eggert  <eggert@twinsun.com>
78263
78264         * lib/mktime.c: Fix Debian bug 177940
78265         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
78266         (localtime_offset): Now long int, not time_t, because we want it
78267         to be guaranteed to be signed.  All uses changed.
78268         (__mktime_internal): If overflow would occur when adding offset,
78269         don't add it.
78270
78271         Merge 'human' changes from coreutils.  Rewrite to support
78272         locale-specific notations like thousands separators.
78273         * lib/human.c: Simplify authorship notice.
78274         Include human.h immediately after config.h.
78275         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
78276         <limits.h>: Do not include, since human.h does.
78277         (SIZE_MAX, UINTMAX_MAX): New macros.
78278         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
78279         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
78280         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
78281         (power_letter): Renamed from suffixes.
78282         (generate_suffix_backwards): Remove.
78283         (adjust_value): Now takes int style (because of human.h changes)
78284         and long double value (for greater precision on some platforms).
78285         (group_number): New function.
78286         (human_readable): Use it.  Use integer options, not enum.
78287         Put the options before the sizes in the arg list.
78288         Support all the new options.
78289         The old human_readable function has been removed;
78290         use inttostr.h instead.
78291         (human_readable, default_block_size, humblock):
78292         Use uintmax_t, not int, for block sizes.
78293         (human_readable_inexact, block_size_types): Remove.
78294         (block_size_opts): New constant.
78295         (human_options): Renamed from human_block_size, with new signature
78296         that allows block sizes up to UINTMAX_MAX.  All callers changed.
78297         * lib/human.h: Add copyright and authorship notice.
78298         Include <limits.h> and <stdbool.h> unconditionally.
78299         (PARAMS): Remove.  All uses removed.
78300         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
78301         (enum human_inexact_style): Remove tag; now a nameless enum.
78302         (human_floor, human_ceiling, human_round_to_even): Now have
78303         values 2, 0, 1 rather than -1, 1, 0.
78304         (human_group_digits, human_suppress_point_zero, human_autoscale,
78305         human_base_1024, human_SI, human_B): New constants.
78306         (human_readable_inexact, human_block_size): Remove.
78307         (human_readable): Size args are now uintmax_t, not int.
78308         (human_options): New decl.
78309
78310         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
78311         unnecessary now that we assume C89 or better.  This change
78312         imported from coreutils.
78313
78314         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
78315         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
78316         in the 2003-05-30 sync from glibc.
78317
78318         .h files should stand alone, but we shouldn't include <sys/types.h>
78319         if we can get away with just <stddef.h>.
78320
78321         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
78322         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
78323         rather than <sys/types.h>, as we merely need size_t.
78324         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
78325         to get size_t.
78326         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
78327         Include <stdio.h>, to get FILE.
78328         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
78329         memcasecmp.h has included <stddef.h> and all we need is size_t.
78330         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
78331         our interface, instead of including <sys/types.h>
78332
78333 2003-06-04  Paul Eggert  <eggert@twinsun.com>
78334
78335         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
78336         now, as glibc mktime is buggy on non-glibc systems.
78337
78338 2003-06-03  Karl Berry  <karl@gnu.org>
78339
78340         * config/config.sub: update from prep.
78341
78342 2003-06-02  Paul Eggert  <eggert@twinsun.com>
78343
78344         [from coreutils]
78345         Fix some minor time-related bugs with POSIX time arguments.
78346         Some valid time stamps were being rejected (notably -1, and
78347         time stamps before 1900 on 64-bit hosts).  And some invalid
78348         time stamps were being accepted, e.g. September 31.
78349
78350         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
78351         that we can return (time_t) -1 successfully.
78352         * lib/posixtm.c: Likewise.
78353         [HAVE_STDBOOL_H]: Include <stdbool.h>.
78354         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
78355         (t): Remove static var.
78356         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
78357         of static var.  All uses changed.
78358         (year): Do not reject years before 1900; they can occur with
78359         64-bit time_t.
78360         (posix_time_parse): Do not check for out-of-range components;
78361         that is now the caller's responsibility, since our checks were
78362         only approximations.
78363         (posixtime): Use mktime to check for out-of-range components,
78364         since it knows them exactly.
78365         If mktime returns (time_t) -1, check whether an error actually occurred
78366         by invoking localtime on -1.
78367         (main) [TEST_POSIXTIME]: Check for input data errors, and report
78368         posixtime failures better.
78369         Improve the test data (in comments only).
78370
78371 2003-06-02  Karl Berry  <karl@gnu.org>
78372
78373         * config/mkinstalldirs (version): new variable.
78374         (--version): new option.
78375         (usage): improve message.
78376
78377 2003-05-30  Karl Berry  <karl@gnu.org>
78378
78379         * lib/mktime.c: update from libc.
78380
78381 2003-05-30  Bruno Haible  <bruno@clisp.org>
78382
78383         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
78384         * config/config.rpath: Upgrade to gettext-0.12.1.
78385
78386 2003-05-30  Bruno Haible  <bruno@clisp.org>
78387
78388         * m4/gettext.m4: Upgrade to gettext-0.12.1.
78389         * m4/nls.m4: New file, from gettext-0.12.1.
78390         * m4/po.m4: New file, from gettext-0.12.1.
78391         * m4/progtest.m4: Upgrade to gettext-0.12.1.
78392
78393 2003-05-30  Bruno Haible  <bruno@clisp.org>
78394
78395         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
78396         * lib/localcharset.h: Likewise.
78397         * lib/localcharset.c: Likewise.
78398
78399 2003-05-29  Karl Berry  <karl@gnu.org>
78400
78401         * config/config.rpath: update from gettext.
78402
78403 2003-05-28  Paul Eggert  <eggert@twinsun.com>
78404
78405         Assume the headers required for C89 freestanding compilers.
78406         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
78407         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
78408         * m4/human.m4 (gl_HUMAN): Likewise.
78409         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
78410         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
78411         * m4/userspec.m4 (gl_USERSPEC): Likewise.
78412         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
78413         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
78414         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
78415
78416 2003-05-28  Paul Eggert  <eggert@twinsun.com>
78417
78418         Assume the headers required for C89 freestanding compilers.
78419         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
78420         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
78421         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
78422         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
78423         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
78424         define, since <limits.h> is guaranteed to do that.
78425         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
78426         * lib/exclude.c: Include <stdbool.h> unconditionally.
78427         * lib/tempname.c: Include <stddef.h> unconditionally.
78428         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
78429         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
78430         <stddef.h> does that.
78431         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
78432         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
78433         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
78434         needed.
78435         * lib/xstrtol.c: Likewise.
78436         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
78437         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
78438
78439         * lib/addext.c (addext): Use assignment rather than cast, to avoid
78440         warnings on some platforms.
78441
78442         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
78443         arbitrarily.
78444
78445 2003-05-26  Jim Meyering  <jim@meyering.net>
78446
78447         Merge in a change from coreutils:
78448         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
78449         that is guaranteed to be `no'.  Use `no_such_member' to indicate
78450         that condition, rather than `-1' which is slightly misleading.
78451         Change the name of the cache variable to have the gl_ prefix.
78452         Prompted by a patch from Richard Dawe for DJGPP.
78453
78454 2003-05-24  Karl Berry  <karl@gnu.org>
78455
78456         * config/config.guess: update from prep.
78457
78458 2003-05-22  Karl Berry  <karl@gnu.org>
78459
78460         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
78461
78462 2003-05-20  Karl Berry  <karl@gnu.org>
78463
78464         * config/config.guess: update from prep.
78465
78466 2003-05-18  Karl Berry  <karl@gnu.org>
78467
78468         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
78469         might actually be set by the user.
78470
78471         * config/depcomp, install-sh, mdate-sh: update from automake.
78472
78473 2003-05-17  Bruno Haible  <bruno@clisp.org>
78474
78475         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
78476         invalid expansion for AC_EGREP_CPP.
78477         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
78478         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
78479         Suggested by Akim Demaille <akim@epita.fr> in
78480         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
78481
78482 2003-05-12  Jim Meyering  <jim@meyering.net>
78483
78484         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
78485         the space-padded-by-default conversion specifiers, %e, %k, %l.
78486
78487 2003-05-12  Bruno Haible  <bruno@clisp.org>
78488
78489         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
78490         the string is longer than 4 KB.
78491
78492 2003-05-11  Karl Berry  <karl@gnu.org>
78493
78494         * config/config.{guess,sub}: update from prep.
78495
78496 2003-05-09  Bruno Haible  <bruno@clisp.org>
78497
78498         * modules/error: Add m4/strerror_r.m4 to file list.
78499
78500 2003-05-03  Bruno Haible  <bruno@clisp.org>
78501
78502         Upgrade to Unicode-4.0.
78503         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
78504         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
78505         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
78506         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
78507         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
78508         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
78509         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
78510         Change width of U+E0100..U+E01EF from 1 to 0.
78511
78512 2003-04-25  Jim Meyering  <jim@meyering.net>
78513
78514         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
78515         of type size_t, not int.
78516
78517 2003-04-25  Bruno Haible  <bruno@clisp.org>
78518
78519         * lib/copy-file.c: Include <stddef.h>, for size_t.
78520
78521 2003-04-21  Paul Eggert  <eggert@twinsun.com>
78522
78523         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
78524         code which expansion is under static control.  Patch imported from
78525         Akim Demaille's patch to Bison; see
78526         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
78527
78528 2003-04-14  Bruno Haible  <bruno@clisp.org>
78529
78530         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
78531
78532 2003-04-11  Jim Meyering  <jim@meyering.net>
78533
78534         Merge changes from Coreutils.
78535
78536         2003-03-22  Jim Meyering  <jim@meyering.net>
78537
78538         * lib/strftime.c (widen): Cast alloca return value to proper type.
78539
78540         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
78541
78542         From GNU libc.
78543         * lib/strftime.c (my_strftime): Handle very large width
78544         specifications for numeric values correctly.  Improve checks for
78545         overflow.
78546
78547         2003-01-19  Jim Meyering  <jim@meyering.net>
78548
78549         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
78550         definitions.
78551         (nl_get_alt_digit) [! defined my_strftime]: Define.
78552         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
78553         _nl_get_alt_digit and _nl_get_walt_digit.
78554
78555         * lib/strftime.c (my_strftime): Merge in locale-related changes from
78556         libc. These changes have no effect outside of _LIBC.
78557
78558 2003-04-10  Bruno Haible  <bruno@clisp.org>
78559
78560         * modules/findprog: New file.
78561         * MODULES.html.sh (func_all_modules): Add it.
78562
78563 2003-04-10  Bruno Haible  <bruno@clisp.org>
78564
78565         * m4/findprog.m4: New file.
78566         * m4/eaccess.m4: New file.
78567
78568 2003-04-10  Bruno Haible  <bruno@clisp.org>
78569
78570         * lib/findprog.h: New file, from GNU gettext.
78571         * lib/findprog.c: New file, from GNU gettext.
78572
78573 2003-04-05  Jim Meyering  <jim@meyering.net>
78574
78575         Merge changes from Coreutils.
78576
78577         * lib/exclude.h (PARAMS): Remove definition and uses.
78578         * lib/exclude.c: Remove uses of `PARAMS'.
78579
78580         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
78581         Add test-cases for DOS filenames. Declare program_name.
78582         (main): Set up program_name.  Patch by Rich Dawe.
78583
78584         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
78585         error from mntctl.
78586         Use mntctl's return value to drive the entry-processing loop, since
78587         we can't rely on the value of the vmt_length member in the last
78588         entry.  On some systems doing so could result in exhausting
78589         virtual memory.  Based in part on a patch from Mike Jetzer.
78590
78591 2003-04-04  Bruno Haible  <bruno@clisp.org>
78592
78593         * modules/linebreak: New file.
78594         * MODULES.html.sh (func_all_modules): Add it.
78595
78596 2003-04-04  Bruno Haible  <bruno@clisp.org>
78597
78598         * m4/linebreak.m4: New file.
78599
78600 2003-04-04  Bruno Haible  <bruno@clisp.org>
78601
78602         * lib/linebreak.h: New file, from GNU gettext.
78603         * lib/linebreak.c: New file, from GNU gettext with slight
78604         modifications.
78605         * lib/lbrkprop.h: New file, from GNU gettext.
78606
78607 2003-04-03  Bruno Haible  <bruno@clisp.org>
78608
78609         * modules/utf8-ucs4: New file.
78610         * modules/utf16-ucs4: New file.
78611         * modules/ucs4-utf8: New file.
78612         * modules/ucs4-utf16: New file.
78613         * MODULES.html.sh (func_all_modules): Add them.
78614
78615 2003-04-03  Bruno Haible  <bruno@clisp.org>
78616
78617         * m4/utf-ucs4.m4: New file.
78618         * m4/ucs4-utf.m4: New file.
78619
78620 2003-04-03  Bruno Haible  <bruno@clisp.org>
78621
78622         * lib/utf8-ucs4.h: New file, from GNU gettext.
78623         * lib/utf16-ucs4.h: New file, from GNU gettext.
78624         * lib/ucs4-utf8.h: New file, from GNU gettext.
78625         * lib/ucs4-utf16.h: New file, from GNU gettext.
78626
78627 2003-04-02  Bruno Haible  <bruno@clisp.org>
78628
78629         * modules/binary-io: New file.
78630         * MODULES.html.sh (func_all_modules): Add it.
78631
78632 2003-04-02  Bruno Haible  <bruno@clisp.org>
78633
78634         * lib/binary-io.h: New file, from GNU gettext.
78635
78636 2003-04-01  Bruno Haible  <bruno@clisp.org>
78637
78638         * modules/pathname: New file.
78639         * MODULES.html.sh (func_all_modules): Add it.
78640
78641 2003-04-01  Bruno Haible  <bruno@clisp.org>
78642
78643         * lib/pathname.h: New file, from GNU gettext.
78644         * lib/concatpath.c: New file, from GNU gettext.
78645
78646 2003-03-30  Bruno Haible  <bruno@clisp.org>
78647
78648         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
78649
78650 2003-03-30  Bruno Haible  <bruno@clisp.org>
78651
78652         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
78653         function chown() doesn't exist.
78654
78655 2003-03-28  Bruno Haible  <bruno@clisp.org>
78656
78657         * modules/copy-file: New file.
78658         * MODULES.html.sh (func_all_modules): Add it.
78659
78660 2003-03-28  Bruno Haible  <bruno@clisp.org>
78661
78662         * m4/copy-file.m4: New file.
78663
78664 2003-03-28  Bruno Haible  <bruno@clisp.org>
78665
78666         * lib/copy-file.h: New file, from GNU gettext.
78667         * lib/copy-file.c: New file, from GNU gettext.
78668
78669 2003-03-18  Jim Meyering  <jim@meyering.net>
78670
78671         * lib/quote.c (quote_n): Fix typo in comment.
78672
78673 2003-03-18  Bruno Haible  <bruno@clisp.org>
78674
78675         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
78676         checking.
78677         * m4/onceonly_2_57.m4: Likewise.
78678
78679 2003-03-17  Bruno Haible  <bruno@clisp.org>
78680
78681         * m4/onceonly.m4: Require autoconf 2.54 or newer.
78682         (m4_quote): Remove macro.
78683         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
78684
78685 2003-03-14  Jim Meyering  <jim@meyering.net>
78686
78687         Merge changes from Coreutils.
78688         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
78689         to be const, in order to avoid warnings.
78690         (obstack_room): Likewise.
78691         (obstack_empty_p): Likewise.
78692
78693 2003-03-14  Bruno Haible  <bruno@clisp.org>
78694
78695         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
78696         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
78697
78698 2003-03-13  Paul Eggert  <eggert@twinsun.com>
78699
78700         Merge changes from Bison.
78701         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
78702         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
78703         when compiling Bison 1.875's `bitset bset = obstack_alloc
78704         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
78705         * lib/hash.c: Include <stdbool.h> unconditionally.
78706
78707 2003-03-13  Paul Eggert  <eggert@twinsun.com>
78708
78709         * m4/onceonly.m4 (m4_quote): New macro.
78710         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
78711         Quote AC_FOREACH variable-expansions properly.
78712
78713 2003-03-13  Paul Eggert  <eggert@twinsun.com>
78714
78715         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
78716
78717 2003-03-09  Paul Eggert  <eggert@twinsun.com>
78718
78719         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
78720         Reported by Bruce Becker; see:
78721         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
78722
78723 2003-03-03  Paul Eggert  <eggert@twinsun.com>
78724             Bruno Haible  <bruno@clisp.org>
78725
78726         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
78727         Reported by John Hughes, see
78728         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
78729
78730 2003-02-20  Bruno Haible  <bruno@clisp.org>
78731
78732         * MODULES.html.sh (func_all_modules): Add poll.
78733
78734 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
78735
78736         * modules/poll: New file.
78737
78738 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
78739
78740         * lib/poll_.h: New file.
78741         * lib/poll.c: New file.
78742
78743 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
78744
78745         * m4/poll.m4: New file.
78746
78747 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
78748
78749         * modules/mathl: New file.
78750
78751 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
78752
78753         * lib/mathl.h: New file.
78754         * lib/acosl.c: New file.
78755         * lib/asinl.c: New file.
78756         * lib/atanl.c: New file.
78757         * lib/ceill.c: New file.
78758         * lib/cosl.c: New file.
78759         * lib/expl.c: New file.
78760         * lib/floorl.c: New file.
78761         * lib/frexpl.c: New file.
78762         * lib/ldexpl.c: New file.
78763         * lib/logl.c: New file.
78764         * lib/sincosl.c: New file.
78765         * lib/sinl.c: New file.
78766         * lib/sqrtl.c: New file.
78767         * lib/tanl.c: New file.
78768         * lib/trigl.c: New file.
78769         * lib/trigl.h: New file.
78770
78771 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
78772
78773         * m4/mathl.m4: New file.
78774
78775 2003-02-18  Bruno Haible  <bruno@clisp.org>
78776
78777         * MODULES.html.sh (func_all_modules): Add mathl.
78778
78779 2003-02-17  Bruno Haible  <bruno@clisp.org>
78780
78781         * modules/mkdtemp: New module.
78782         * MODULES.html.sh (func_all_modules): Add it.
78783
78784 2003-02-17  Bruno Haible  <bruno@clisp.org>
78785
78786         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
78787
78788 2003-02-17  Bruno Haible  <bruno@clisp.org>
78789
78790         * lib/mkdtemp.h: New file, from GNU gettext.
78791         * lib/mkdtemp.c: New file, from GNU gettext.
78792
78793 2003-02-02  Jim Meyering  <jim@meyering.net>
78794
78795         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
78796         e.g. glibc-2.2.93.
78797
78798 2003-01-31  Bruno Haible  <bruno@clisp.org>
78799
78800         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
78801         'rpl_rename'.
78802         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
78803         'rpl_strnlen'.
78804         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
78805         'rpl_strtod'.
78806         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
78807         'rpl_utime'.
78808
78809 2003-01-31  Bruno Haible  <bruno@clisp.org>
78810
78811         * lib/rename.c: #undef rename before defining rpl_rename.
78812         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
78813
78814 2003-01-30  Bruno Haible  <bruno@clisp.org>
78815
78816         * modules/vasnprintf, modules/vasprintf: New modules.
78817         * MODULES.html.sh (func_all_modules): Add them.
78818
78819 2003-01-30  Bruno Haible  <bruno@clisp.org>
78820
78821         * m4/signed.m4: New file, from GNU gettext.
78822         * m4/longdouble.m4: New file, from GNU gettext.
78823         * m4/wchar_t.m4: New file, from GNU gettext.
78824         * m4/wint_t.m4: New file, from GNU gettext.
78825         * m4/vasnprintf.m4: New file.
78826         * m4/vasprintf.m4: New file.
78827
78828 2003-01-30  Bruno Haible  <bruno@clisp.org>
78829
78830         * lib/printf-args.h: New file, from GNU gettext.
78831         * lib/printf-args.c: New file, from GNU gettext.
78832         * lib/printf-parse.h: New file, from GNU gettext.
78833         * lib/printf-parse.c: New file, from GNU gettext.
78834         * lib/vasnprintf.h: New file, from GNU gettext.
78835         * lib/vasnprintf.c: New file, from GNU gettext.
78836         * lib/asnprintf.c: New file, from GNU gettext.
78837         * lib/vasprintf.h: New file, from GNU gettext with modifications.
78838         * lib/vasprintf.c: New file, from GNU gettext.
78839         * lib/asprintf.c: New file, from GNU gettext.
78840
78841 2003-01-29  Bruno Haible  <bruno@clisp.org>
78842
78843         * modules/stpncpy: New module.
78844         * MODULES.html.sh (func_all_modules): Add it.
78845
78846 2003-01-29  Bruno Haible  <bruno@clisp.org>
78847
78848         * m4/stpncpy.m4: New file.
78849
78850 2003-01-29  Bruno Haible  <bruno@clisp.org>
78851
78852         * lib/stpncpy.h: New file, from GNU gettext with modifications.
78853         * lib/stpncpy.c: New file, from GNU gettext with modifications.
78854
78855 2003-01-28  Bruno Haible  <bruno@clisp.org>
78856
78857         * modules/c-ctype: New module.
78858         * MODULES.html.sh (func_all_modules): Add it.
78859
78860 2003-01-28  Bruno Haible  <bruno@clisp.org>
78861
78862         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
78863         Paul Eggert.
78864         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
78865         Paul Eggert.
78866
78867 2003-01-27  Bruno Haible  <bruno@clisp.org>
78868
78869         * modules/xsetenv: New module.
78870         * MODULES.html.sh (func_all_modules): Add it.
78871
78872 2003-01-27  Bruno Haible  <bruno@clisp.org>
78873
78874         * lib/xsetenv.h: New file, from GNU gettext.
78875         * lib/xsetenv.c: New file, from GNU gettext.
78876
78877 2003-01-23  Jim Meyering  <jim@meyering.net>
78878
78879         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
78880         from working on systems without dirfd (at least Irix and OSF1/Tru64).
78881
78882 2003-01-23  Bruno Haible  <bruno@clisp.org>
78883
78884         * modules/minmax: New module.
78885         * MODULES.html.sh (func_all_modules): Add it.
78886
78887 2003-01-23  Bruno Haible  <bruno@clisp.org>
78888
78889         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
78890         Eggert.
78891
78892 2003-01-22  Bruno Haible  <bruno@clisp.org>
78893
78894         * modules/exit: New module.
78895         * MODULES.html.sh (func_all_modules): Add it.
78896
78897 2003-01-22  Bruno Haible  <bruno@clisp.org>
78898
78899         * lib/exit.h: New file, from GNU gettext.
78900
78901 2003-01-19  Bruno Haible  <bruno@clisp.org>
78902
78903         * gnulib-tool: Recognize option --extract-maintainer.
78904         (func_get_maintainer): New function.
78905         * modules/*: Add Maintainer entry.
78906
78907 2003-01-16  Jim Meyering  <jim@meyering.net>
78908
78909         * m4/regex.m4: The `regex' struct is both input and output.
78910         Initialize it before each use.  Patch by Tim Waugh.
78911
78912 2003-01-16  Bruno Haible  <bruno@clisp.org>
78913
78914         * MODULES.html.sh: Add a table of contents. Add the module name as
78915         leftmost column. Add hyperlinks.
78916
78917 2003-01-15  Bruno Haible  <bruno@clisp.org>
78918
78919         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
78920
78921 2003-01-15  Bruno Haible  <bruno@clisp.org>
78922
78923         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
78924         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
78925         suffix.
78926
78927 2003-01-15  Bruno Haible  <bruno@clisp.org>
78928
78929         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
78930
78931 2003-01-15  Bruno Haible  <bruno@clisp.org>
78932
78933         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
78934         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
78935
78936 2003-01-14  Jim Meyering  <jim@meyering.net>
78937
78938         * lib/same.c (same_name): Tweak a comment.
78939
78940 2003-01-14  Bruno Haible  <bruno@clisp.org>
78941
78942         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
78943         when a string comparison is sufficient.
78944
78945 2003-01-14  Bruno Haible  <bruno@clisp.org>
78946
78947         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
78948         'unsigned int'.
78949
78950 2003-01-14  Bruno Haible  <bruno@clisp.org>
78951
78952         * lib/hash-pjw.c: Add comment about low quality of this function.
78953
78954 2003-01-13  Bruno Haible  <bruno@clisp.org>
78955
78956         * modules/stpcpy: Distribute lib/stpcpy.h.
78957         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
78958
78959 2003-01-13  Bruno Haible  <bruno@clisp.org>
78960
78961         * modules/*: Add a description.
78962         * modules/strpbrk: Fix Makefile.am snippet.
78963         * modules/strtoimax: Fix dependencies.
78964         * modules/strtoumax: Likewise.
78965
78966 2003-01-13  Bruno Haible  <bruno@clisp.org>
78967
78968         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
78969         * modules/alloca (Makefile.am): All object files depend on alloca.h.
78970         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
78971
78972 2003-01-13  Bruno Haible  <bruno@clisp.org>
78973
78974         * gnulib-tool (func_create_testdir): Store config/* files in the main
78975         directory.
78976         * config.rpath: Move to ...
78977         * config/config.rpath: ... here.
78978         * modules/gettext: Contains config/config.rpath, not config.rpath.
78979         * modules/iconv: Likewise.
78980
78981 2003-01-12  Paul Eggert  <eggert@twinsun.com>
78982
78983         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
78984         to avoid collisions with libcurses and libreadline.
78985
78986         * m4/getstr.m4: Remove.
78987         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
78988
78989 2003-01-12  Paul Eggert  <eggert@twinsun.com>
78990
78991         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
78992         to avoid collisions with libcurses and libreadline.
78993
78994         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
78995         * lib/getstr.h, getstr.c: Remove.
78996         * lib/getline.c: Include "getline.h", to check interface.
78997         Move body of old getstr.c here: this defines MIN_CHUNK and
78998         declares getdelim2, which is renamed from getstr.
78999         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
79000
79001         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
79002         All uses changed.
79003         * lib/linebuffer.h: Likewise.
79004         (readline): Remove backward-compatibility macro.
79005
79006 2003-01-12  Paul Eggert  <eggert@twinsun.com>
79007
79008         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
79009         to avoid collisions with libcurses and libreadline.
79010         * getstr: Remove.
79011         * MODULES.html.sh: Remove getstr.
79012         * modules/getline: Depend on unlocked-io, not getstr.
79013
79014 2003-01-12  Jim Meyering  <jim@meyering.net>
79015
79016         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
79017
79018 2003-01-10  Bruno Haible  <bruno@clisp.org>
79019
79020         * modules/alloca: Change Makefile.am requirements. Simplify Include
79021         requirements. Add lib/alloca_.h to file list.
79022
79023 2003-01-10  Bruno Haible  <bruno@clisp.org>
79024
79025         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
79026
79027 2003-01-10  Bruno Haible  <bruno@clisp.org>
79028
79029         * lib/alloca_.h: New file.
79030         * lib/getdate.y: Unconditionally include alloca.h.
79031         * lib/makepath.c: Likewise.
79032         * lib/setenv.c: Likewise.
79033         * lib/userspec.c: Likewise.
79034
79035 2003-01-09  Karl Berry  <karl@gnu.org>
79036
79037         * MODULES.html.sh: include `dirname $0` in PATH, to find
79038         gnulib-tool.
79039
79040 2003-01-09  Bruno Haible  <bruno@clisp.org>
79041
79042         * modules/stdbool: Change configure.ac, Makefile.am requirements.
79043         Simplify Include requirements. Add lib/stdbool.h.in to file list.
79044
79045 2003-01-09  Bruno Haible  <bruno@clisp.org>
79046
79047         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
79048
79049 2003-01-09  Bruno Haible  <bruno@clisp.org>
79050
79051         * lib/stdbool.h.in: New file.
79052
79053 2003-01-09  Bruno Haible  <bruno@clisp.org>
79054
79055         * gnulib-tool (func_all_modules): Ignore files ending in ~.
79056         * MODULES.html.sh: Likewise.
79057
79058 2003-01-08  Jim Meyering  <jim@meyering.net>
79059
79060         * lib/full-write.c: Undefine and define-away `const' after inclusion
79061         of errno.h, not before.  Suggestion from Bruno Haible.
79062
79063 2003-01-08  Bruno Haible  <bruno@clisp.org>
79064
79065         * modules/full-read: Depend on full-write.
79066
79067 2003-01-08  Bruno Haible  <bruno@clisp.org>
79068
79069         * lib/safe-read.c: Include specification header first, to ensure its
79070         selfcontainedness.
79071         * lib/full-write.c: Likewise.
79072
79073 2003-01-07  Jim Meyering  <jim@meyering.net>
79074
79075         * lib/full-write.c: Rework so that it may serve to define full_read,
79076         too.
79077         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
79078
79079 2003-01-07  Bruno Haible  <bruno@clisp.org>
79080
79081         * lib/strtoimax.c: Include <stdint.h> as an alternative to
79082         <inttypes.h>.
79083         * lib/xstrtol.h: Likewise.
79084         * lib/xstrtoimax.c: Likewise.
79085         * lib/xstrtoumax.c: Likewise.
79086         * lib/human.h: Likewise.
79087
79088         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
79089         on systems that have <inttypes.h> but not <stdint.h>.
79090
79091 2003-01-07  Bruno Haible  <bruno@clisp.org>
79092
79093         * MODULES.html.sh: Add copyright notice.
79094         (missed_files): Omit CVS directory entries.
79095         (func_module): Make it work with sed-3.02.
79096         * MODULES.txt: Remove file.
79097
79098 2003-01-06  Jim Meyering  <jim@meyering.net>
79099
79100         * lib/version-etc.c: Update year in translatable copyright string.
79101
79102 2003-01-03  Karl Berry  <karl@gnu.org>
79103
79104         * config/config.{guess,sub}: update from prep.
79105
79106 2003-01-02  Karl Berry  <karl@gnu.org>
79107
79108         * doc/COPYING.DOC: belatedly updated to 1.2.
79109
79110 2003-01-01  Karl Berry  <karl@gnu.org>
79111
79112         * gnulib-tool (func_verify_module): report module name $module in
79113         error message, not $1.
79114         * gnulib-tool (create-testdir): don't complain if destdir couldn't
79115         be created, only if it doesn't exist.
79116         * gnulib-tool (last_checkin_date): don't expand the $Date here.
79117
79118 2002-12-31  Paul Eggert  <eggert@twinsun.com>
79119
79120         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
79121
79122 2002-12-31  Paul Eggert  <eggert@twinsun.com>
79123
79124         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
79125         memcmp if strcoll doesn't work.
79126
79127 2002-12-31  Bruno Haible  <bruno@clisp.org>
79128
79129         * lib/utime.c (utime_null): No need to call ftruncate if the file was
79130         nonempty.
79131
79132 2002-12-31  Bruno Haible  <bruno@clisp.org>
79133
79134         * lib/memcoll.c (STRCOLL): New macro.
79135         (memcoll): Use it.
79136
79137 2002-12-31  Bruno Haible  <bruno@clisp.org>
79138
79139         * lib/localcharset.h: New file.
79140         * lib/localcharset.c: Include it.
79141         * lib/unicodeio.c: Likewise.
79142
79143 2002-12-31  Bruno Haible  <bruno@clisp.org>
79144
79145         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
79146         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
79147
79148 2002-12-31  Bruno Haible  <bruno@clisp.org>
79149
79150         * lib/getline.h: Include <stddef.h>, for size_t.
79151
79152         * lib/unicodeio.h: Include <stddef.h>, for size_t.
79153         * lib/unicodeio.c: Don't include <stddef.h>.
79154
79155 2002-12-31  Bruno Haible  <bruno@clisp.org>
79156
79157         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
79158         HAVE_TM_ZONE.
79159
79160 2002-12-24  Karl Berry  <karl@gnu.org>
79161
79162         * config/config.guess: update from prep.
79163
79164 2002-12-24  Bruno Haible  <bruno@clisp.org>
79165
79166         General infrasructure.
79167         * m4/README: Rewritten.
79168         * m4/onceonly.m4: New file.
79169         * m4/onceonly_2_57.m4: New file.
79170
79171         Module atexit.
79172         * m4/atexit.m4: New file.
79173
79174         Module strtod.
79175         * m4/strtod.m4: New file.
79176
79177         Module strtol.
79178         * m4/strtol.m4: New file.
79179
79180         Module strtoul.
79181         * m4/strtoul.m4: New file.
79182
79183         Module memchr.
79184         * m4/memchr.m4: New file.
79185
79186         Module memcmp.
79187         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
79188         (jm_FUNC_MEMCMP): Invoke it.
79189
79190         Module memcpy.
79191         * m4/memcpy.m4: New file.
79192
79193         Module memmove.
79194         * m4/memmove.m4: New file.
79195
79196         Module memset.
79197         * m4/memset.m4: New file.
79198
79199         Module strcspn.
79200         * m4/strcspn.m4: New file.
79201
79202         Module strpbrk.
79203         * m4/strpbrk.m4: New file.
79204
79205         Module strstr.
79206         * m4/strstr.m4: New file.
79207
79208         Module strerror.
79209         * m4/strerror.m4: New file.
79210
79211         Module mktime.
79212         * m4/mktime.m4: Renamed from jm-mktime.m4.
79213         (gl_PREREQ_MKTIME): New macro.
79214         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
79215
79216         Module malloc.
79217         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
79218         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
79219         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
79220
79221         Module realloc.
79222         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
79223         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
79224         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
79225
79226         Module strftime.
79227         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
79228         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
79229         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
79230         gl_TM_GMTOFF.
79231         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
79232
79233         Module xalloc.
79234         * m4/xalloc.m4: New file.
79235
79236         Module alloca.
79237         * m4/alloca.m4: New file.
79238
79239         Module putenv.
79240         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
79241         (jm_FUNC_PUTENV): Invoke it.
79242
79243         Module setenv.
79244         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
79245         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
79246         when invoked twice.
79247         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
79248         gt_FUNC_SETENV.
79249
79250         Module memrchr.
79251         * m4/memrchr.m4: New file.
79252
79253         Module stpcpy.
79254         * m4/stpcpy.m4: New file.
79255
79256         Module strcase.
79257         * m4/strcase.m4: New file.
79258
79259         Module strdup.
79260         * m4/strdup.m4: New file.
79261
79262         Module strnlen.
79263         * m4/strnlen.m4: New file.
79264
79265         Module strndup.
79266         * m4/strndup.m4: New file.
79267
79268         Module xstrtod.
79269         * m4/xstrtod.m4: New file.
79270
79271         Module xstrtol.
79272         * m4/xstrtol.m4: New file.
79273
79274         Module getdate.
79275         * m4/getdate.m4: New file.
79276
79277         Module unlocked-io.
79278         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
79279         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
79280         * m4/jm-glibc-io.m4n: Remove file.
79281
79282         Module long-options.
79283         * m4/long-options.m4: New file.
79284
79285         Module md5.
79286         * m4/md5.m4: New file.
79287
79288         Module sha.
79289         * m4/sha.m4: New file.
79290
79291         Module getstr.
79292         * m4/getstr.m4: New file.
79293
79294         Module getline.
79295         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
79296         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
79297         <sys/types.h>, for size_t. Use the function name gnu_getline, not
79298         simply getline. Infoke gl_PREREQ_GETLINE.
79299
79300         Module obstack.
79301         * m4/obstack.m4: New file.
79302
79303         Module hash.
79304         * m4/hash.m4: New file.
79305
79306         Module readtokens.
79307         * m4/readtokens.m4: New file.
79308
79309         Module strverscmp.
79310         * m4/strverscmp.m4: New file.
79311
79312         Module stdbool.
79313         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
79314         OSF/1.
79315
79316         Module strtoll.
79317         * m4/strtoll.m4: New file.
79318
79319         Module strtoull.
79320         * m4/strtoull.m4: New file.
79321
79322         Module strtoimax.
79323         * m4/strtoimax.m4: New file.
79324
79325         Module strtoumax.
79326         * m4/strtoumax.m4: New file.
79327
79328         Module xstrtoimax.
79329         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
79330         jm_AC_PREREQ_XSTRTOIMAX.
79331         Moved the strtol prerequisites to strtol.m4.
79332         Moved the strtoll prerequisites to strtoll.m4.
79333         Moved the strtoimax prerequisites to strtoimax.m4.
79334
79335         Module xstrtoumax.
79336         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
79337         jm_AC_PREREQ_XSTRTOUMAX.
79338         Moved the strtoul prerequisites to strtoul.m4.
79339         Moved the strtoull prerequisites to strtoull.m4.
79340         Moved the strtoumax prerequisites to strtoumax.m4.
79341
79342         Module chown.
79343         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
79344         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
79345
79346         Module dup2.
79347         * m4/dup2.m4: New file.
79348
79349         Module ftruncate.
79350         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
79351         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
79352
79353         Module getgroups.
79354         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
79355         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
79356
79357         Module gettimeofday.
79358         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
79359         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
79360         gl_PREREQ_GETTIMEOFDAY.
79361
79362         Module mkdir.
79363         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
79364         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
79365
79366         Module mkstemp.
79367         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
79368         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
79369         jm_AC_TYPE_UINTMAX_T.
79370         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
79371
79372         Module stat.
79373         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
79374         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
79375
79376         Module lstat.
79377         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
79378         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
79379
79380         Module timespec.
79381         * m4/timespec.m4 (gl_TIMESPEC): New macro.
79382         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
79383         * m4/st_mtim.m4: Indentation.
79384
79385         Module nanosleep.
79386         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
79387         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
79388         gl_PREREQ_NANOSLEEP.
79389
79390         Module regex.
79391         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
79392         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
79393         (gl_REGEX): New macro.
79394
79395         Module rename.
79396         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
79397         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
79398
79399         Module rmdir.
79400         * m4/rmdir.m4: New file.
79401
79402         Module utime.
79403         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
79404         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
79405         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
79406
79407         Module dirname.
79408         * m4/dirname.m4: New file.
79409
79410         Module getopt.
79411         * m4/getopt.m4: New file.
79412
79413         Module unistd-safer.
79414         * m4/unistd-safer.m4: New file.
79415
79416         Module fnmatch.
79417         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
79418         declaration.
79419         (gl_PREREQ_FNMATCH_EXTRA): New macro.
79420         (gl_FUNC_FNMATCH_POSIX): New macro.
79421         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
79422         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
79423         simply fnmatch.
79424
79425         Module exclude.
79426         * m4/exclude.m4: New file.
79427
79428         Module human.
79429         * m4/human.m4: New file.
79430
79431         Module acl.
79432         * m4/acl.m4: Nop.
79433
79434         Module backupfile.
79435         * m4/backupfile.m4: New file.
79436         * m4/d-ino.m4: Indentation.
79437
79438         Module fsusage.
79439         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
79440         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
79441         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
79442
79443         Module dirfd.
79444         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
79445         requirements.
79446
79447         Module euidaccess.
79448         * m4/euidaccess.m4: New file.
79449
79450         Module file-type.
79451         * m4/file-type.m4: New file.
79452
79453         Module fileblocks.
79454         * m4/fileblocks.m4: New file.
79455
79456         Module filemode.
79457         * m4/filemode.m4: New file.
79458
79459         Module isdir.
79460         * m4/isdir.m4: New file.
79461
79462         Module lchown.
79463         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
79464         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
79465
79466         Module makepath.
79467         * m4/makepath.m4: New file.
79468
79469         Module modechange.
79470         * m4/modechange.m4: New file.
79471
79472         Module mountlist.
79473         * m4/mountlist.m4: New file.
79474         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
79475         Indentation.
79476
79477         Module path-concat.
79478         * m4/path-concat.m4: New file.
79479
79480         Module pathmax.
79481         * m4/pathmax.m4: New file.
79482
79483         Module same.
79484         * m4/same.m4: New file.
79485
79486         Module save-cwd.
79487         * m4/save-cwd.m4: New file.
79488
79489         Module savedir.
79490         * m4/savedir.m4: New file.
79491
79492         Module xgetcwd.
79493         * m4/xgetcwd.m4: New file.
79494         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
79495
79496         Module xreadlink.
79497         * m4/xreadlink.m4: New file.
79498
79499         Module safe-read.
79500         * m4/safe-read.m4: New file.
79501
79502         Module safe-write.
79503         * m4/safe-write.m4: New file.
79504
79505         Module closeout.
79506         * m4/closeout.m4: New file.
79507
79508         Module stdio-safer.
79509         * m4/stdio-safer.m4: New file.
79510
79511         Module getpass.
79512         * m4/getpass.m4: New file.
79513
79514         Module getugroups.
79515         * m4/getugroups.m4: New file.
79516
79517         Module group-member.
79518         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
79519         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
79520
79521         Module idcache.
79522         * m4/idcache.m4: New file.
79523
79524         Module userspec.
79525         * m4/userspec.m4: New file.
79526
79527         Module gettime.
79528         * m4/clock_time.m4: New file.
79529         * m4/gettime.m4: New file.
79530
79531         Module settime.
79532         * m4/settime.m4: New file.
79533
79534         Module posixtm.
79535         * m4/posixtm.m4: New file.
79536
79537         Module gethostname.
79538         * m4/gethostname.m4: New file.
79539
79540         Module canon-host.
79541         * m4/canon-host.m4: New file.
79542
79543         Module gettext.
79544         * m4/codeset.m4: New file, from gettext-0.11.5.
79545         * m4/gettext.m4: New file, from gettext-0.11.5.
79546         * m4/glibc21.m4: New file, from gettext-0.11.5.
79547         * m4/iconv.m4: New file, from gettext-0.11.5.
79548         * m4/intdiv0.m4: New file, from gettext-0.11.5.
79549         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
79550         * m4/inttypes.m4: New file, from gettext-0.11.5.
79551         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
79552         * m4/isc-posix.m4: New file, from gettext-0.11.5.
79553         * m4/lcmessage.m4: New file, from gettext-0.11.5.
79554         * m4/lib-ld.m4: New file, from gettext-0.11.5.
79555         * m4/lib-link.m4: New file, from gettext-0.11.5.
79556         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
79557         * m4/progtest.m4: New file, from gettext-0.11.5.
79558         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
79559         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
79560         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
79561
79562         Module localcharset.
79563         * m4/localcharset.m4: New file.
79564
79565         Module hard-locale.
79566         * m4/hard-locale.m4: New file.
79567
79568         Module mbswidth.
79569         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
79570         onceonly macros.
79571         * m4/mbrtowc.m4: Add comment.
79572
79573         Module memcasecmp.
79574         * m4/memcasecmp.m4: New file.
79575
79576         Module memcoll.
79577         * m4/memcoll.m4: New file.
79578
79579         Module unicodeio.
79580         * m4/unicodeio.m4: New file.
79581
79582         Module rpmatch.
79583         * m4/rpmatch.m4: New file.
79584
79585         Module yesno.
79586         * m4/yesno.m4: New file.
79587
79588         Module exitfail.
79589         * m4/exitfail.m4: New file.
79590
79591         Module c-stack.
79592         * m4/c-stack.m4 (gl_C_STACK): New macro.
79593         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
79594
79595         Module error.
79596         * m4/error.m4 (gl_ERROR): New macro.
79597         (jm_PREREQ_ERROR): Use onceonly macros.
79598
79599         Module fatal.
79600         * m4/fatal.m4: New file.
79601
79602         Module getloadavg.
79603         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
79604         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
79605
79606         Module getpagesize.
79607         * m4/getpagesize.m4: New file.
79608
79609         Module getusershell.
79610         * m4/getusershell.m4: New file.
79611
79612         Module physmem.
79613         * m4/physmem.m4: New file.
79614
79615         Module posixver.
79616         * m4/posixver.m4: New file.
79617
79618         Module quotearg.
79619         * m4/quotearg.m4: New file.
79620
79621         Module quote.
79622         * m4/quote.m4: New file.
79623
79624         Module readutmp.
79625         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
79626
79627         Module sig2str.
79628         * m4/sig2str.m4: New file.
79629
79630         Other.
79631         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
79632         ulonglong.m4.
79633         * m4/intmax_t.m4: New file.
79634         * m4/d-type.m4: Indentation.
79635         * m4/jm-macros.m4: Update.
79636         * m4/prereq.m4 (jm_PREREQ): Update.
79637         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
79638         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
79639         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
79640         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
79641         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
79642         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
79643         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
79644         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
79645         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
79646         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
79647         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
79648         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
79649         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
79650         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
79651         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
79652         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
79653         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
79654         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
79655         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
79656
79657 2002-12-24  Bruno Haible  <bruno@clisp.org>
79658
79659         * MODULES.txt: Update according to m4/ changes.
79660
79661         Module gettext.
79662         * config.rpath: New file, from gettext-0.11.5.
79663
79664         * modules/*: New module descriptions.
79665         * gnulib-tool: New file.
79666         * MODULES.html.sh: New file.
79667
79668 2002-12-21  Karl Berry  <karl@gnu.org>
79669
79670         * doc/fdl.texi: update to version 1.2.
79671
79672 2002-12-19  Karl Berry  <karl@gnu.org>
79673
79674         * config/config.guess: update from prep.
79675
79676 2002-12-18  Bruno Haible  <bruno@clisp.org>
79677
79678         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
79679         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
79680
79681 2002-12-17  Bruno Haible  <bruno@clisp.org>
79682
79683         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
79684         stdlib.h, string.h.
79685
79686 2002-12-17  Bruno Haible  <bruno@clisp.org>
79687
79688         * lib/canon-host.c (strdup): Remove unused declaration.
79689
79690         * lib/fsusage.c: Include full_read.h.
79691         (get_fs_usage): Use full_read instead of safe_read.
79692
79693         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
79694
79695 2002-12-12  Karl Berry  <karl@gnu.org>
79696
79697         * config/config.guess: update from prep.
79698
79699 2002-12-11  Bruno Haible  <bruno@clisp.org>
79700
79701         * m4/setenv.m4: New file, from gettext-0.11.5.
79702
79703 2002-12-11  Bruno Haible  <bruno@clisp.org>
79704
79705         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
79706         not unsetenv().
79707         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
79708         modifications:
79709
79710         2002-12-11  Bruno Haible  <bruno@clisp.org>
79711
79712                 * setenv.c (alloca): Fall back to malloc.
79713                 (freea): New macro.
79714                 (setenv): Use freea() to free memory allocated with alloca().
79715
79716         2002-11-13  Bruno Haible  <bruno@clisp.org>
79717
79718                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
79719                 function declarations.
79720                 * unsetenv.c (unsetenv): Likewise.
79721
79722         2002-03-04  Bruno Haible  <bruno@clisp.org>
79723
79724                 Portability to AIX 4.3.3.
79725                 * unsetenv.c: New file, extracted from setenv.c.
79726                 * setenv.c: Move the unsetenv() function to unsetenv.c.
79727
79728         2001-12-20  Bruno Haible  <bruno@clisp.org>
79729
79730                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
79731                 use malloc instead. For SunOS 4.
79732
79733         2001-12-11  Bruno Haible  <bruno@clisp.org>
79734
79735                 * setenv.c: Declare alloca.
79736                 (compar_fn_t): New typedef.
79737                 (KNOWN_VALUE, STORE_VALUE): Use it.
79738
79739         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
79740         setenv.h.
79741
79742 2002-12-10  Paul Eggert  <eggert@twinsun.com>
79743
79744         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
79745         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
79746         Choose values that are less likely to collide with system fnmatch
79747         options.
79748         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
79749         defined (e.g., a pure POSIX system).
79750         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
79751         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
79752
79753 2002-12-06  Paul Eggert  <eggert@twinsun.com>
79754
79755         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
79756         a pain in practice to deal with generated m4 files.  This change
79757         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
79758
79759         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
79760         and jm-glibc-io.m4, as they are no longer a special case.
79761         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
79762         kludge and the auto-generation stuff.  Check only whether the
79763         functions are declared, not whether they exist, since older hosts
79764         that don't declare the functions can't use the optimization anyway.
79765
79766 2002-12-06  Jim Meyering  <jim@meyering.net>
79767
79768         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
79769
79770         Merge in changes from libc's misc/error.c, in preparation
79771         for the merge of gnulib's changes back into libc.
79772
79773         * lib/error.c (_): Define only if not already defined.
79774         Move definition to follow all #include directives.
79775         Include unlocked-io.h only if !_LIBC.
79776         [_LIBC]: Include <libio/libioP.h>.
79777         [USE_IN_LIBIO]: Include <libio/iolibio.h>
79778         (fflush): Tweak definition to use INTUSE.
79779         (putc): Define.
79780
79781 2002-12-05  Paul Eggert  <eggert@twinsun.com>
79782
79783         * lib/alloca.c [defined emacs]: Include "lisp.h".
79784         (xalloc_die) [defined emacs]: New macro.
79785         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
79786         [! defined emacs]: Include <xalloc.h>.
79787         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
79788         (pointer): Typedef to POINTER_TYPE *.
79789         (malloc): Remove decl; we now always use xmalloc.
79790         (alloca): Use old-style definition, since Emacs needs this.
79791         Check for arithmetic overflow when computing combined size.
79792
79793 2002-12-04  Paul Eggert  <eggert@twinsun.com>
79794
79795         Do not generate unlocked-io.h automatically, since it's easier to
79796         maintain it by hand.
79797
79798         * lib/unlocked-io.h: New file, from GNU diffutils,
79799         but with proper copyright notice and attribution.
79800         * lib/gen-uio: Remove.
79801         * lib/Makefile.am: Add copyright notice.
79802         (libfetish_a_SOURCES): Add unlocked-io.h.
79803         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
79804         (DISTCLEANFILES, io_functions): Remove macros.
79805         (EXTRA_DIST): Remove gen_uio.
79806         (unlocked-io.h): Remove rule.
79807
79808 2002-12-04  Jim Meyering  <jim@meyering.net>
79809
79810         Reflect the fact that stat.c and lstat.c are no longer generated.
79811         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
79812         (DISTCLEANFILES): Likewise.
79813         (EXTRA_DIST): Likewise.
79814         (all_local): Don't depend on stat.c or lstat.c.
79815         (stat.c, lstat.c): Remove rules.
79816         (EXTRA_DIST): Remove xstat.in.
79817
79818         * lib/xstat.in: Remove file.  Contents moved into stat.c.
79819         * lib/stat.c: New file.  Contents mostly from xstat.in.
79820         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
79821         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
79822
79823         * lib/safe-read.c: Rework so that it may serve to define safe_write,
79824         too.
79825         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
79826
79827 2002-12-03  Jim Meyering  <jim@meyering.net>
79828
79829         * lib/safe-read.c, safe-write.c: Change variable names and comments,
79830         but not semantics, to minimize the differences between these two files.
79831         (safe_read): Change comment to mention SAFE_READ_ERROR.
79832
79833         * lib/safe-read.c (IS_EINTR): Define.
79834         (safe_read): Use IS_EINTR in place of in-function cpp directives.
79835
79836 2002-12-02  Jim Meyering  <jim@meyering.net>
79837
79838         * lib/safe-read.c (EINTR): Define.
79839         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
79840         (INT_MAX): Provide fallback.
79841         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
79842
79843         * lib/safe-read.h (SAFE_READ_ERROR): Define.
79844
79845 2002-12-02  Bruno Haible  <bruno@clisp.org>
79846
79847         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
79848         Define, taken from safe-read.c.
79849         (INT_MAX): Provide fallback.
79850         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
79851         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
79852
79853         * lib/safe-read.c (EINTR): Remove definition.
79854         (safe_read): Don't use EINTR if it is absent.
79855
79856 2002-12-01  Jim Meyering  <jim@meyering.net>
79857
79858         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
79859         zero.
79860         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
79861
79862 2002-11-27  Paul Eggert  <eggert@twinsun.com>
79863
79864         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
79865         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
79866         with `if (! (value < limit)) abort ();', for readability.
79867
79868 2002-11-26  Karl Berry  <karl@gnu.org>
79869
79870         * lib/strdup.c: copy from libc again, with jim's ok.
79871         * lib/.cppi-disable: re-add strdup.c
79872
79873 2002-11-25  Karl Berry  <karl@gnu.org>
79874
79875         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
79876         instead of "strtol.c".
79877
79878 2002-11-25  Karl Berry  <karl@gnu.org>
79879
79880         * config/install-sh: update from automake for variable quoting, $0 in
79881         error msgs, etc.
79882
79883         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
79884         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
79885         entry.
79886
79887 2002-11-25  Jim Meyering  <jim@meyering.net>
79888
79889         * lib/mktime.c: Sync from libc, now that it has the latest fix.
79890
79891 2002-11-24  Karl Berry  <karl@gnu.org>
79892
79893         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
79894         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
79895
79896 2002-11-24  Jim Meyering  <jim@meyering.net>
79897
79898         Update from coreutils:
79899
79900         * lib/mktime.c: Merge in changes from libc.
79901
79902         Avoid a link-time failure on some Linux systems.
79903         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
79904         (otherwise).
79905         (__mon_yday): Declare with the STATIC attribute.
79906         (__mktime_internal): Likewise.
79907         Based on a report from Greg Schafer.
79908
79909 2002-11-23  Jim Meyering  <jim@meyering.net>
79910
79911         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
79912         Use `unsigned', not `int', as type of index.
79913
79914         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
79915
79916         * lib/fsusage.c: Remove unneeded parentheses around operands of
79917         `defined'.
79918
79919 2002-11-22  Paul Eggert  <eggert@twinsun.com>
79920
79921         * lib/quotearg.h: Allow multiple inclusion by surrounding with
79922         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
79923         so that we can be included first.
79924         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
79925         * lib/quotearg.c: Include quotearg.h immediately after config.h.
79926         No need to include stddef.h or sys/types.h any more.
79927         Surround local include files with "", not "<>".
79928         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
79929         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
79930         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
79931         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
79932         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
79933         (ISPRINT): Remove; no longer needed now that we assume C89.
79934
79935         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
79936         Preserve errno.
79937
79938         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
79939         quotearg_char): Use SIZE_MAX rather than
79940         (size_t) -1 when we are talking about "infinity".
79941
79942         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
79943
79944 2002-11-22  Paul Eggert  <eggert@twinsun.com>
79945
79946         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
79947         hint that one should use `if (! x) abort ();' rather than `assert
79948         (x);', and anyway it's one less thing to worry about configuring.
79949         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
79950         hash_rehash, hash_insert): Use abort rather than assert.
79951
79952 2002-11-22  Bruno Haible  <bruno@clisp.org>
79953
79954         * lib/safe-read.h: Assume C89. Add comments.
79955         (safe_read): Change return type to size_t.
79956         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
79957         byte counts > SSIZE_MAX correctly.
79958         * lib/safe-write.h: New file.
79959         * lib/safe-write.c: New file.
79960         * lib/full-read.h: New file.
79961         * lib/full-read.c: New file.
79962         * lib/full-write.h: Assume C89. Add comments.
79963         * lib/full-write.c: Include safe-write.h.
79964         (full_write): Rewritten to use safe_write.
79965         Suggested by Jim Meyering and Paul Eggert.
79966
79967 2002-11-21  Jim Meyering  <jim@meyering.net>
79968
79969         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
79970
79971         Merge in changes from the coreutils.
79972
79973         2002-09-25  Paul Eggert  <eggert@twinsun.com>
79974         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
79975         <stdint.h>.
79976         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
79977         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
79978         int.  Work more efficiently if X is the same width as uintmax_t.
79979         Do not compare X to -1, to avoid bogus compiler warning.
79980         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
79981         Don't assume that f_frsize and f_bsize are the same type.
79982
79983         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
79984         warning on FreeBSD.
79985
79986         * lib/makepath.c (make_path): Restore umask *before* creating the final
79987         component.
79988         (make_path): Minor reformatting.
79989
79990         * lib/xmalloc.c: Adjust to work with new autoconf macros,
79991         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
79992         HAVE_MALLOC/HAVE_REALLOC.
79993
79994         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
79995         dummy ones.  At least on GNU/Linux systems, `auto' means something
79996         else.
79997         From Michael Stone.
79998
79999 2002-11-21  Bruno Haible  <bruno@clisp.org>
80000
80001         Remove case insensitive option matching.
80002         * lib/argmatch.h (argcasematch): Remove declaration.
80003         (ARGCASEMATCH): Remove macro.
80004         (__xargmatch_internal): Remove case_sensitive argument.
80005         (XARGMATCH): Update.
80006         (XARGCASEMATCH): Remove macro.
80007         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
80008         case_sensitive argument.
80009         (argcasematch): Remove function.
80010         (__xargmatch_internal): Remove case_sensitive argument.
80011         (main): Use XARGMATCH instead of XARGCASEMATCH.
80012
80013         * lib/xmalloc.c: Change compile-time error message. Add comment about
80014         required autoconf version.
80015
80016 2002-11-20  Paul Eggert  <eggert@twinsun.com>
80017
80018         Merge argmatch cleanups from Bison.  Assume C89.
80019
80020         * lib/argmatch.c: Include config.h here, not in argmatch.h.
80021         Include stdlib.h, for EXIT_FAILURE.
80022         Always include <string.h>, since we assume C89.
80023         (EXIT_FAILURE): Remove pre-C89 bug workaround.
80024         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
80025         Include <stddef.h> instead, since it's all we need for size_t.
80026         (PARAMS): Remove.  All uses removed.
80027         (ARRAY_CARDINALITY): Do not bother to #undef.
80028         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
80029         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
80030         Remove unnecessary parentheses.
80031         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
80032         Insert necessary parentheses.
80033         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
80034         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
80035
80036 2002-11-19  Bruno Haible  <bruno@clisp.org>
80037
80038         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
80039         * lib/mbswidth.h: Include <stddef.h>, for size_t.
80040
80041         * lib/mbswidth.h (PARAMS): Remove macro.
80042         (mbswidth, mbsnwidth): Use ANSI C function declarations.
80043         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
80044
80045         * lib/gcd.h (PARAMS): Remove macro.
80046         (gcd): Use ANSI C function declarations.
80047         * lib/gcd.c (gcd): Likewise.
80048
80049 2002-11-15  Bruno Haible  <bruno@clisp.org>
80050
80051         * lib/strcspn.c: Include <stddef.h>.
80052         (strcspn): Use ANSI C function declaration. Change return type to
80053         size_t. Use NULL.
80054         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
80055         (strpbrk): Use NULL.
80056         * lib/strpbrk.h (PARAMS): Remove macro.
80057         (strpbrk): Use ANSI C function declaration.
80058         * lib/strstr.c: Don't include <sys/types.h>.
80059         * lib/strstr.h (PARAMS): Remove macro.
80060         (strstr): Use ANSI C function declarations.
80061
80062 2002-11-14  Karl Berry  <karl@gnu.org>
80063
80064         * config/mkinstalldirs: `do' on separate line, instead of
80065         `for var; do'.
80066
80067 2002-11-06  Bruno Haible  <bruno@clisp.org>
80068
80069         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
80070         * lib/gcd.c (gcd): Likewise.
80071
80072 2002-11-05  Bruno Haible  <bruno@clisp.org>
80073
80074         * lib/gcd.h: New file, from gettext-0.11.5.
80075         * lib/gcd.c: New file, from gettext-0.11.5.
80076
80077 2002-11-05  Bruno Haible  <bruno@clisp.org>
80078
80079         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
80080         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
80081         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
80082         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
80083
80084         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
80085         <libintl.h>.
80086         * lib/makepath.c: Include gettext.h instead of <locale.h> and
80087         <libintl.h>.
80088
80089         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
80090         * lib/human.c: Include gettext.h instead of <libintl.h>.
80091         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
80092         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
80093         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
80094         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
80095         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
80096         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
80097         (textdomain): Remove definition.
80098         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
80099
80100         * lib/long-options.c: Remove include of <libintl.h> and definition of
80101         _.
80102         * lib/same.c: Remove include of <libintl.h> and definition of _.
80103
80104 2002-11-04  Owen Taylor  <otaylor@redhat.com>
80105
80106         * lib/config.charset: A few additions for Solaris.
80107
80108 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
80109
80110         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
80111         * lib/localcharset.c (locale_charset): Declare as extern "C".
80112
80113 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
80114
80115         * lib/config.charset: msdos in uk_UA uses CP1125.
80116
80117 2002-11-04  Bruno Haible  <bruno@clisp.org>
80118
80119         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
80120         * lib/strcase.h: New file, from GNU gettext-0.11.5.
80121         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
80122         * lib/strstr.h: New file, from GNU gettext-0.11.5.
80123         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
80124
80125 2002-11-04  Bruno Haible  <bruno@clisp.org>
80126
80127         * lib/localcharset.c (locale_charset): Don't return an empty string.
80128
80129 2002-11-04  Bruno Haible  <bruno@clisp.org>
80130
80131         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
80132         aliases.
80133
80134 2002-11-04  Bruno Haible  <bruno@clisp.org>
80135
80136         * lib/config.charset: Update for newest glibc. Add canonical names
80137         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
80138
80139 2002-11-04  Bruno Haible  <bruno@clisp.org>
80140
80141         * lib/config.charset: Add support for NetBSD.
80142
80143 2002-11-04  Bruno Haible  <bruno@clisp.org>
80144
80145         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
80146
80147 2002-11-01  Bruno Haible  <bruno@clisp.org>
80148
80149         * configure.in: Add AC_CONFIG_AUX_DIR call.
80150         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
80151         test/Makefile.
80152         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
80153
80154 2002-09-28  Karl Berry  <karl@gnu.org>
80155
80156         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
80157         installed automake until the next release, since changes have been
80158         made.
80159
80160 2002-09-25  Karl Berry  <karl@gnu.org>
80161
80162         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
80163         * lib/getopt*: copy from libc/posix.
80164         * lib/gettext.h: copy from gettext.
80165         * lib/.cppi-disable: add strdup.c, gettext.h.
80166
80167 2002-09-25  Karl Berry  <karl@gnu.org>
80168
80169         * config/srclist.txt: enable gettext.h check.
80170         * config/config.{guess,sub}: update from prep.
80171         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
80172                 from automake 1.6.3.
80173         See srclist*.
80174
80175 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
80176
80177         * regex.c (PATFETCH): Remove the translating fetch.
80178         (PATFETCH_RAW): Rename to PATFETCH.
80179         (set_image_of_range): New fun.
80180         (SET_RANGE_TABLE_WORK_AREA): Use it.
80181         (regex_compile): Don't translate the pattern chars so eagerly.
80182         Only do it when inserting an `exactn' bytecode or when handling
80183         a char-range.
80184         (mutually_exclusive_p): Avoid empty statement.
80185
80186 2002-07-06  Jim Meyering  <meyering@lucent.com>
80187
80188         * m4/README: Don't mention Makefile.am.in.
80189         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
80190
80191 2002-07-01  Jim Meyering  <meyering@lucent.com>
80192
80193         * lib/c-stack.c: Include sys/time.h.
80194         From Volker Borchert.
80195
80196 2002-06-26  Paul Eggert  <eggert@twinsun.com>
80197
80198         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
80199
80200 2002-06-26  Paul Eggert  <eggert@twinsun.com>
80201
80202         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
80203         New macro.  Use it uniformly instead of
80204         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
80205         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
80206         reported by Vin Shelton.
80207
80208 2002-06-22  Paul Eggert  <eggert@twinsun.com>
80209
80210         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
80211         Do not assume SA_SIGINFO behavior.
80212         Bug reported by Jim Meyering on NetBSD 1.5.2.
80213
80214 2002-06-22  Jim Meyering  <meyering@lucent.com>
80215
80216         * m4/c-stack.m4: New file, from diffutils-2.8.2.
80217         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
80218
80219         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
80220         now that configure.ac uses AC_GNU_SOURCE.
80221         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
80222         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
80223
80224         Update to latest tools.  Suggestions from Paul Eggert.
80225         * m4/stdbool.m4: New file, from diffutils-2.8.2.
80226         * m4/gnu-source.m4: Update from diffutils-2.8.2.
80227         * m4/fnmatch.m4: Likewise.
80228         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
80229         to AC_HEADER_STDBOOL
80230
80231 2002-06-22  Jim Meyering  <meyering@lucent.com>
80232
80233         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
80234         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
80235
80236 2002-06-22  Jim Meyering  <meyering@lucent.com>
80237
80238         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
80239
80240         * lib/exitfail.c, exitfail.h: Likewise.
80241         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
80242
80243         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
80244         of fnmatch.h.
80245         (EXTRA_DIST): Add fnmatch_loop.c.
80246         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
80247
80248         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
80249         * lib/fnmatch.c: Update from diffutils-2.8.2.
80250         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
80251         * lib/fnmatch.h: Remove file.
80252
80253 2002-06-21  Jim Meyering  <meyering@lucent.com>
80254
80255         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
80256         * m4/mbrtowc.m4: Likewise.
80257
80258         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
80259         * m4/mbswidth.m4: Reflect name change:
80260         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
80261         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
80262
80263         * m4/lib-link.m4: Update from gettext-0.11.2.
80264         * m4/gettext.m4: Likewise.
80265
80266         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
80267         From Alfred M. Szmidt.
80268
80269 2002-06-18  Paul Eggert  <eggert@twinsun.com>
80270
80271         * lib/file-type.h: Report an error if neither S_ISREG nor
80272         S_IFREG is defined, instead of using a test specific to glibc
80273         2.2.  This should be safe, since POSIX requires S_ISREG and
80274         Unix Version 7 had S_IFREG.  We don't need to check for
80275         <sys/types.h> since we don't use any symbols that it defines.
80276
80277 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
80278
80279         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
80280         $@-t, so that each temporary file name is unique and valid in the first
80281         8 characters, for operation under DOS.
80282
80283 2002-06-15  Paul Eggert  <eggert@twinsun.com>
80284
80285         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
80286
80287 2002-06-15  Jim Meyering  <meyering@lucent.com>
80288
80289         Work even with DJGPP 2.03, which lacks support for symlinks.
80290         From Richard Dawe.
80291         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
80292         is defined.
80293         * lib/lchown.c (S_ISLNK): Likewise.
80294
80295 2002-06-15  Jim Meyering  <meyering@lucent.com>
80296
80297         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
80298         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
80299         have been included before this file.
80300
80301 2002-06-14  Jim Meyering  <meyering@lucent.com>
80302
80303         * lib/file-type.h: Use the version from diffutils-2.8.2.
80304         * lib/file-type.c: Likewise.
80305
80306 2002-06-07  Jim Meyering  <meyering@lucent.com>
80307
80308         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
80309         They're needed at least for NetBSD 1.5.2.
80310         ($statxfs_includes): Include those same headers.
80311         ($statxfs_includes): Include sys/vfs.h if available.
80312         ($statxfs_includes): Likewise for sys/statvfs.h.
80313         Check for the following members in both structs statfs and statvfs:
80314         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
80315
80316 2002-06-01  Jim Meyering  <meyering@lucent.com>
80317
80318         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
80319         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
80320
80321 2002-05-28  Jim Meyering  <meyering@lucent.com>
80322
80323         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
80324         Reported by Volker Borchert.
80325
80326 2002-05-27  Jim Meyering  <meyering@lucent.com>
80327
80328         Fix a problem seen only on nonconforming systems whereby ls.c's
80329         use of localtime, and then of gettimeofday would cause trouble:
80330         the localtime call used to initialize rpl_gettimeofday's save
80331         mechanism would clobber ls's current local time information so
80332         that in any long listing the first file would always be listed
80333         with date 1970-01-01.  Analysis by Volker Borchert.
80334
80335         * lib/gettimeofday.c (localtime): Undefine.
80336         (rpl_localtime): New function.
80337
80338 2002-05-27  Jim Meyering  <meyering@lucent.com>
80339
80340         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
80341         localtime.
80342
80343         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
80344         use the replacement function; it wouldn't resolve at link time.
80345         Reported by Volker Borchert.
80346
80347 2002-05-22  Jim Meyering  <meyering@lucent.com>
80348
80349         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
80350         file-type.h.
80351         * lib/file-type.h: New file.
80352         * lib/file-type.c (file_type): New file/function.  Extracted from
80353         diffutils.
80354
80355 2002-04-30  Jim Meyering  <meyering@lucent.com>
80356
80357         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
80358
80359 2002-04-29  Paul Eggert  <eggert@twinsun.com>
80360
80361         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
80362
80363 2002-04-29  Paul Eggert  <eggert@twinsun.com>
80364
80365         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
80366         Do not check for alloca.h (no longer used) or stdbool.h (was never
80367         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
80368
80369 2002-04-29  Paul Eggert  <eggert@twinsun.com>
80370
80371         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
80372
80373 2002-04-29  Jim Meyering  <meyering@lucent.com>
80374
80375         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
80376         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
80377         Use AC_FUNC_STRNLEN here instead.
80378
80379         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
80380         With autoconf-2.53a, it's part of AC_PROG_CC.
80381
80382 2002-04-28  Paul Eggert  <eggert@twinsun.com>
80383
80384         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
80385         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
80386
80387 2002-04-28  Paul Eggert  <eggert@twinsun.com>
80388
80389         * lib/sig2str.h, lib/sig2str.c: New files.
80390         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
80391
80392 2002-04-28  Paul Eggert  <eggert@twinsun.com>
80393
80394         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
80395         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
80396         of 127, since 64 is the largest conceivable number for ancient
80397         nonstandard hosts.
80398         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
80399
80400 2002-04-28  Jim Meyering  <meyering@lucent.com>
80401
80402         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
80403
80404 2002-04-24  Jim Meyering  <meyering@lucent.com>
80405
80406         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
80407         (jm_PREREQ): Use it.
80408
80409         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
80410         mach/mach.h fcntl.h.
80411         Check for this function: setlocale.
80412
80413 2002-04-24  Jim Meyering  <meyering@lucent.com>
80414
80415         * lib/gettext.h: New file, from Gettext.
80416         * lib/Makefile.am (INCLUDES): Remove -I../intl.
80417         (libfetish_a_SOURCES): Add gettext.h.
80418
80419 2002-04-16  Jim Meyering  <meyering@lucent.com>
80420
80421         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
80422         ut_pid, ut_id, ut_exit.
80423
80424 2002-04-16  Jim Meyering  <meyering@lucent.com>
80425
80426         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
80427         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
80428         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
80429
80430 2002-04-12  Jim Meyering  <meyering@lucent.com>
80431
80432         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
80433         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
80434         existence of the getmntinfo function.  Needed for Darwin 5.3.
80435
80436         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
80437         This is necessary at least on Darwin 5.3.
80438
80439         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
80440         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
80441         strnlen.o in the library, and that makes some versions of ranlib
80442         object.
80443
80444 2002-04-12  Jim Meyering  <meyering@lucent.com>
80445
80446         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
80447
80448 2002-04-09  Jim Meyering  <meyering@lucent.com>
80449
80450         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
80451         to be more precise.  Rather than saying we're checking whether the
80452         function `works', say what we're testing.
80453         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
80454         Reported by Bruno Haible.
80455
80456 2002-03-10  Jim Meyering  <meyering@lucent.com>
80457
80458         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
80459         Suggestion from Santiago Vila.
80460
80461 2002-03-08  Jim Meyering  <meyering@lucent.com>
80462
80463         * lib/rename.c: Mention that this wrapper is needed also on
80464         mips-dec-ultrix4.4 systems.
80465
80466 2002-03-02  Jim Meyering  <meyering@lucent.com>
80467
80468         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
80469         not HAVE_CLOCK_SETTIME.
80470
80471 2002-02-27  Paul Eggert  <eggert@twinsun.com>
80472
80473         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
80474         Check for clock_settime.
80475
80476 2002-02-27  Paul Eggert  <eggert@twinsun.com>
80477
80478         * lib/nanosleep.h: Rename to....
80479         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
80480
80481         * lib/gettime.c: New file.
80482         * lib/settime.c: New file.
80483         * lib/stime.c: Remove.
80484
80485         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
80486         timespec.h.  Remove nanosleep.h.
80487
80488 2002-02-25  Paul Eggert  <eggert@twinsun.com>
80489
80490         * m4/acl.m4: New file.
80491         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
80492         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
80493
80494 2002-02-25  Paul Eggert  <eggert@twinsun.com>
80495
80496         * lib/acl.c, lib/acl.h: New files.
80497         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
80498
80499 2002-02-24  Jim Meyering  <meyering@lucent.com>
80500
80501         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
80502         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
80503         cause trouble.  Reported by Nelson Beebe.
80504
80505 2002-02-23  Paul Eggert  <eggert@twinsun.com>
80506
80507         * lib/path-concat.c (xpath_concat): Reorder code to pacify
80508         compilers that don't know that xalloc_die never returns.
80509
80510 2002-02-20  Jim Meyering  <meyering@lucent.com>
80511
80512         * lib/getdate.c: Regenerate using bison-1.33.
80513
80514 2002-02-17  Jim Meyering  <meyering@lucent.com>
80515
80516         * config/config.guess (main): Don't use `head -1'; it's no longer
80517         portable. Use `sed 1q' instead.
80518
80519 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
80520
80521         * m4/codeset.m4: Upgrade to gettext-0.11.
80522         * m4/gettext.m4: Upgrade to gettext-0.11.
80523         * m4/glibc21.m4: Upgrade to gettext-0.11.
80524         * m4/iconv.m4: Upgrade to gettext-0.11.
80525         * m4/isc-posix.m4: Upgrade to gettext-0.11.
80526         * m4/lcmessage.m4: Upgrade to gettext-0.11.
80527         * m4/lib-ld.m4: New file, from gettext-0.11.
80528         * m4/lib-link.m4: New file, from gettext-0.11.
80529         * m4/lib-prefix.m4: New file, from gettext-0.11.
80530         * m4/progtest.m4: Upgrade to gettext-0.11.
80531
80532 2002-02-15  Paul Eggert  <eggert@twinsun.com>
80533
80534         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
80535         (jm_PREREQ): Use it.
80536
80537 2002-02-15  Paul Eggert  <eggert@twinsun.com>
80538
80539         * lib/posixver.c, lib/posixver.h: New files.
80540         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
80541
80542 2002-02-02  Paul Eggert  <eggert@twinsun.com>
80543             Bruno Haible  <bruno@clisp.org>
80544
80545         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
80546         (fwrite_success_callback): New declaration.
80547         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
80548         print_unicode_char. Call failure callback instead of error.
80549         (fwrite_success_callback): New function.
80550         (exit_failure_callback): New function.
80551         (fallback_failure_callback): New function.
80552         (print_unicode_char): Call unicode_to_mb.
80553
80554 2002-01-26  Jim Meyering  <meyering@lucent.com>
80555
80556         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
80557         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
80558
80559 2002-01-26  Jim Meyering  <meyering@lucent.com>
80560
80561         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
80562
80563 2002-01-22  Paul Eggert  <eggert@twinsun.com>
80564
80565         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
80566
80567 2002-01-22  Jim Meyering  <meyering@lucent.com>
80568
80569         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
80570         Otherwise, some versions of automake would omit the rule that makes
80571         Makefile from Makefile.in.
80572
80573 2002-01-21  Paul Eggert  <eggert@twinsun.com>
80574
80575         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
80576         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
80577         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
80578         (memcoll): Set errno to zero if there is no error.
80579
80580         * lib/quotearg.c (quotearg_buffer_restyled):
80581         Fix bug with quoting buffers containing NUL when backslashing escapes.
80582         This bug was exposed by the other changes in this patch.
80583         (quotearg_n_options): New arg ARGSIZE.
80584         All callers changed.
80585         (quoting_options_from_style): New function.
80586         (quotearg_n_style): Use it.
80587         (quotearg_n_style_mem): New function.
80588
80589         * lib/quotearg.h (quotearg_n_style_mem): New function.
80590
80591 2002-01-19  Jim Meyering  <meyering@lucent.com>
80592
80593         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
80594         Remove useless quotes: DF_PROG="df".
80595         * m4/strnlen.m4: New file.
80596
80597 2002-01-16  Paul Eggert  <eggert@twinsun.com>
80598
80599         * lib/backupfile.c (ISDIGIT): Comment fix.
80600         * lib/getdate.y (ISDIGIT): Likewise.
80601         * lib/posixtm.c (ISDIGIT, year): Likewise.
80602         * lib/strverscmp.c (ISDIGIT): Likewise.
80603         * lib/userspec.c (ISDIGIT): Likewise.
80604
80605 2002-01-16  Jim Meyering  <meyering@lucent.com>
80606
80607         * lib/getdate.y: Add three semicolons, each just before a closing
80608         brace. Bison (as of version 1.31) no longer papers over that mistake.
80609
80610 2002-01-05  Jim Meyering  <meyering@lucent.com>
80611
80612         * lib/version-etc.c (version_etc_copyright): Update copyright year.
80613
80614 2001-12-19  Paul Eggert  <eggert@twinsun.com>
80615
80616         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
80617         not silently exit merely because the output buffer happens to
80618         have nothing pending.
80619
80620 2001-12-18  Paul Eggert  <eggert@twinsun.com>
80621
80622         See the big note in ../ChangeLog.
80623         * lib/human.c (suffixes): Prefer K to k for 1024.
80624         (generate_suffix_backwards): New function.
80625         (human_readable_inexact): Use it.
80626         * lib/xstrtol.c (__xstrtol): If there is no number but there
80627         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
80628         Accept 'K' as well as 'k'.
80629
80630 2001-12-15  Jim Meyering  <meyering@lucent.com>
80631
80632         * lib/regex.h (__restrict_arr): Update from libc.
80633
80634         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
80635         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
80636         (STREQ): Define.
80637
80638 2001-12-14  Jim Meyering  <meyering@lucent.com>
80639
80640         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
80641         Suggestion from Bruno Haible.
80642
80643 2001-12-10  Jim Meyering  <meyering@lucent.com>
80644
80645         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
80646         xrealloc, Instead, include "xalloc.h".
80647         (initbuffer): Don't cast xmalloc return value to char*.
80648         (readline): Reword comment.
80649         Don't cast xrealloc return value to char*
80650         Return NULL, not 0.
80651
80652 2001-12-09  Jim Meyering  <meyering@lucent.com>
80653
80654         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
80655         about `signed and unsigned type in conditional expression'.
80656         * lib/posixtm.c (posix_time_parse): Likewise.
80657
80658         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
80659
80660         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
80661         to avoid a pedantic warning.
80662
80663         * lib/getstr.c: Don't include assert.h.
80664         (getstr): Remove warning-evoking assertions.
80665         Return -1 if offset parameter is out of bounds.
80666         Change the type of a local from int to size_t.
80667
80668         * lib/strftime.c (my_strftime_localtime_r): Include this function
80669         definition in the `#if ! HAVE_TM_GMTOFF' block.
80670
80671         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
80672         Include xalloc.h instead.
80673
80674 2001-12-02  Jim Meyering  <meyering@lucent.com>
80675
80676         * lib/tempname.c: Don't declare getenv, thus reverting the change of
80677         2001-11-18.  It's no longer necessary, now that stdlib.h is always
80678         included.
80679
80680         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
80681         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
80682
80683 2001-11-30  Akim Demaille  <akim@epita.fr>
80684
80685         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
80686         before being defined.
80687
80688 2001-11-27  Paul Eggert  <eggert@twinsun.com>
80689
80690         * lib/quotearg.h (quotearg_n, quotearg_n_style):
80691         First arg is int, not unsigned.
80692         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
80693         (SIZE_MAX, UINT_MAX): New macros.
80694         (quotearg_n_options): Abort if N is negative.
80695         Avoid overflow check on hosts where size_t is 64 bits and int
80696         is 32 bits, as overflow is impossible there.
80697         Fix off-by-one typo that caused unnecessary reallocation.
80698
80699 2001-11-27  Jim Meyering  <meyering@lucent.com>
80700
80701         * lib/tempname.c: Merge with version from libc.
80702         * lib/regex.c: Likewise.
80703
80704         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
80705         systems for which STDC_HEADERS is 0, it was not included, resulting in
80706         a warning about an integer-to-pointer conversion problem with getenv.
80707         Reported by Volker Borchert.
80708
80709 2001-11-26  Jim Meyering  <meyering@lucent.com>
80710
80711         * lib/gtod.h: Remove file.
80712         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
80713         * lib/gettimeofday.c: Don't include gtod.h.
80714         (GTOD_init): Remove function.
80715         (rpl_gettimeofday): Do its job here instead, rather than aborting.
80716         Suggestion from Volker Borchert.
80717
80718 2001-11-23  Jim Meyering  <meyering@lucent.com>
80719
80720         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
80721         it.
80722         * lib/hash.c (struct hash_table): Define it here instead.
80723
80724 2001-11-22  Jim Meyering  <meyering@lucent.com>
80725
80726         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
80727
80728 2001-11-20  Jim Meyering  <meyering@lucent.com>
80729
80730         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
80731         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
80732
80733 2001-11-19  Jim Meyering  <meyering@lucent.com>
80734
80735         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
80736         directory.  Use "conftestXXXXXX" as the template.
80737         Suggestion from Paul Eggert.
80738
80739         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
80740         immediately, so the test doesn't mistakenly hit the max-open-files
80741         limit.
80742
80743 2001-11-18  Paul Eggert  <eggert@twinsun.com>
80744
80745         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
80746         (TEMPORARIES): New macro.
80747         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
80748         removes an artificial limitation (e.g. HP-UX 10.20, where
80749         TMP_MAX is 17576).
80750
80751 2001-11-18  Jim Meyering  <meyering@lucent.com>
80752
80753         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
80754
80755 2001-11-18  Jim Meyering  <meyering@lucent.com>
80756
80757         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
80758         on SunOS 4.
80759
80760         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
80761         files will be created before anything else.
80762
80763 2001-11-17  Paul Eggert  <eggert@twinsun.com>
80764
80765         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
80766         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
80767
80768 2001-11-17  Jim Meyering  <meyering@lucent.com>
80769
80770         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
80771         Prompted by a report from Bob Proulx.
80772
80773         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
80774         Instead, require UTILS_FUNC_MKSTEMP.
80775
80776 2001-11-17  Jim Meyering  <meyering@lucent.com>
80777
80778         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
80779         Now, that's done as part of AC_FUNC_STRTOD.
80780
80781 2001-11-17  Jim Meyering  <meyering@lucent.com>
80782
80783         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
80784         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
80785         rather than group writable.  Patch by Juan F. Codagnone.
80786
80787         * lib/readtokens.c: Remove explicit declarations of xmalloc and
80788         xrealloc, Instead, include "xalloc.h".
80789
80790         * lib/mountlist.c: Include unlocked-io.h after all system headers.
80791         Remove explicit declarations of xmalloc, xrealloc,
80792         and xstrdup.  Instead, include "xalloc.h".
80793
80794         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
80795         unlocked-io.h.
80796         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
80797         Likewise.
80798         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
80799
80800         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
80801         Reported by Padraig Brady.
80802
80803         * lib/mkstemp.c: #undef mkstemp.
80804         Include config.h.
80805         (rpl_mkstemp): Rename from mkstemp.
80806         Protoize.
80807
80808 2001-11-16  Jim Meyering  <meyering@lucent.com>
80809
80810         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
80811         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
80812         determine the amount of total physical memory, use pstat_getstatic.
80813         HPUX-11 doesn't define _SC_PHYS_PAGES.
80814         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
80815         If sysconf couldn't be used to determine the amount of available
80816         physical memory, use both pstat_getstatic and pstat_getdynamic.
80817         Based on a patch from Bob Proulx.
80818
80819 2001-11-10  Jim Meyering  <meyering@lucent.com>
80820
80821         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
80822         (jm_PREREQ): Use it.
80823
80824 2001-11-09  Jim Meyering  <meyering@lucent.com>
80825
80826         * m4/jm-macros.m4: Require autoconf-2.52f.
80827         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
80828         Use these AC_-prefixed names, not the AM_-prefixed ones.
80829
80830         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
80831
80832 2001-11-05  Jim Meyering  <meyering@lucent.com>
80833
80834         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
80835
80836 2001-11-04  Jim Meyering  <meyering@lucent.com>
80837
80838         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
80839         $DEFS.
80840
80841 2001-11-03  Jim Meyering  <meyering@lucent.com>
80842
80843         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
80844         of AC_DEFUN.
80845
80846         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
80847         know the name of the variable in the macro definition.
80848
80849 2001-11-03  Jim Meyering  <meyering@lucent.com>
80850
80851         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
80852         in argmatch_to_argument call.
80853
80854         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
80855         argument.
80856
80857         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
80858         e.g., a fault due to an attempt to free a NULL pointer.
80859
80860 2001-11-01  Jim Meyering  <meyering@lucent.com>
80861
80862         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
80863         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
80864
80865 2001-11-01  Jim Meyering  <meyering@lucent.com>
80866
80867         * lib/dirfd.c, lib/dirfd.h: New files.
80868         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
80869
80870         * lib/hash.c (hash_print) [TESTING]: Clean up.
80871
80872 2001-10-22  Paul Eggert  <eggert@twinsun.com>
80873
80874         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
80875         to avoid a warning if -Wall.
80876
80877 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
80878
80879         * README: New file
80880         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
80881         (per RMS's instructions, this is now the canonical source)
80882         * lgpl/, gpl/: New directories.
80883
80884 2001-10-21  Paul Eggert  <eggert@twinsun.com>
80885
80886         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
80887
80888 2001-10-21  Jim Meyering  <meyering@lucent.com>
80889
80890         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
80891         this code would end up calling gettext even in packages built
80892         with --disable-nls.
80893         * lib/getopt.c (_): Likewise.
80894         * lib/regex.c (_): Likewise.
80895
80896 2001-10-20  Paul Eggert  <eggert@twinsun.com>
80897
80898         * m4/error.m4 (jm_PREREQ_ERROR):
80899         Do not invoke AC_CHECK_FUNCS with strerror_r, as
80900         AC_FUNC_STRERROR_R does that.
80901         Check for strerror declaration.
80902
80903         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
80904         are supposed to have them these days.
80905         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
80906         Merge changes from latest Autoconf CVS.
80907         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
80908         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
80909         POSIX decided to standardize on the int flavor of strerror_r.
80910
80911 2001-10-20  Paul Eggert  <eggert@twinsun.com>
80912
80913         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
80914         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
80915         Use strerror_r that is only a macro, even if it is not a function.
80916         (strerror): Check for HAVE_DECL_STRERROR before declaring.
80917         (private_strerror): Use prototypes, not old-style function definition.
80918         (print_errno_message): New function.
80919         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
80920         char*-flavored one.
80921         (error_tail, error, error_at_line): Use it.
80922
80923 2001-10-11  Jim Meyering  <meyering@lucent.com>
80924
80925         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
80926         and quote_n (1, ... to avoid clobbering a buffer.
80927
80928 2001-10-05  Jim Meyering  <meyering@lucent.com>
80929
80930         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
80931         hash-pjw.h.
80932         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
80933         * lib/hash-pjw.h: New file.
80934
80935 2001-09-30  Jim Meyering  <meyering@lucent.com>
80936
80937         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
80938         `struct fsstat' has the `f_fstypename' member.
80939         Use that to define FS_TYPE, which is now used to make
80940         the getfsstat link test tighter.
80941
80942 2001-09-30  Jim Meyering  <meyering@lucent.com>
80943
80944         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
80945         Include <sys/ucred.h>, for Apple Darwin.
80946         Include sys/mount.h and sys/fs_types.h only if available.
80947         (FS_TYPE): Define.
80948         (read_filesystem_list): Use FS_TYPE.
80949
80950 2001-09-29  Paul Eggert  <eggert@twinsun.com>
80951
80952         * lib/exclude.c (excluded_filename): 0 -> false, since it's
80953         a boolean context.
80954
80955 2001-09-29  Jim Meyering  <meyering@lucent.com>
80956
80957         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
80958         [one-argument getmntent function]): Include stdio.h before mntent.h.
80959         SunOS 4.1.x needs it for the declaration of `FILE'.
80960         Patch by Volker Borchert.
80961
80962         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
80963         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
80964         sys/fs_types.h, and make the link-test for getfsstat guard #include
80965         directives with appropriate #if HAVE_*_H tests so that we can
80966         detect getfsstat on Apple Darwin1.3.7 systems.
80967         Reported by Nelson Beebe.
80968         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
80969
80970 2001-09-28  Paul Eggert  <eggert@twinsun.com>
80971
80972         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
80973         #defines strtoimax.  Also treat the other strto* functions
80974         like strtoimax.
80975
80976         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
80977         Check for strtoul and strtoumax,
80978         as those declarations are made even in the signed case.
80979         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
80980         Likewise, for strtol and strtoimax.
80981
80982 2001-09-28  Paul Eggert  <eggert@twinsun.com>
80983
80984         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
80985         #defines strtoimax.  Also treat the other strto* functions
80986         like strtoimax.
80987
80988         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
80989         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
80990         (strtoimax, strtoumax): Do not declare if already defined as a macro.
80991
80992 2001-09-26  Jim Meyering  <meyering@lucent.com>
80993
80994         Most macros in unlocked-io.h had the wrong number of arguments.
80995         * lib/gen-uio: New script.
80996         (USE_UNLOCKED_IO): Define to 1 if not already defined.
80997         * lib/unlocked-io.hin: Remove file.
80998         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
80999         rather than trying to embed it here.
81000         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
81001         Reported by Padraig Brady.
81002
81003 2001-09-25  Volker Borchert  <bt@teknon.de>
81004
81005         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
81006         `result'.
81007
81008 2001-09-24  Jim Meyering  <meyering@lucent.com>
81009
81010         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
81011
81012 2001-09-23  Jim Meyering  <meyering@lucent.com>
81013
81014         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
81015         instead of the mere test for existence of mntent.h.  The latter
81016         would get a false-positive on AIX 3.4 systems.
81017         In the outer getmntent if-block, don't die if neither of the getmntent
81018         tests succeeds.  Instead, just fall through and continue with the
81019         remaining tests.
81020
81021 2001-09-23  Jim Meyering  <meyering@lucent.com>
81022
81023         * lib/mountlist.c: Remove useless parentheses in #if directives.
81024         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
81025         the deprecated MOUNTED symbol is no longer defined in mntent.h.
81026
81027 2001-09-22  Jim Meyering  <meyering@lucent.com>
81028
81029         * m4/gettext.m4: New file.  From gettext.
81030         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
81031         * m4/progtest.m4: Likewise
81032         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
81033         * m4/glibc21.m4: Likewise.
81034
81035         * m4/libintl.m4: Remove.  No longer used.
81036
81037 2001-09-22  Jim Meyering  <meyering@lucent.com>
81038
81039         * lib/localcharset.c: Update from latest gettext.
81040         * lib/config.charset: Likewise.
81041
81042 2001-09-20  Jim Meyering  <meyering@lucent.com>
81043
81044         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
81045         strtoimax.
81046         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
81047         strtoumax.
81048
81049 2001-09-20  Jim Meyering  <meyering@lucent.com>
81050
81051         * lib/xstrtol.c (strtoimax): Guard declaration with
81052         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
81053         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
81054         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
81055         (strtoumax): Likewise, for completeness (it wasn't necessary).
81056
81057 2001-09-17  Paul Eggert  <eggert@twinsun.com>
81058
81059         * lib/strtoimax.c (HAVE_LONG_LONG):
81060         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
81061         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
81062         to work around bug in IBM C compiler.
81063
81064 2001-09-17  Jim Meyering  <meyering@lucent.com>
81065
81066         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
81067         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
81068         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
81069         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
81070         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
81071         whenever the right hand side need not be expanded by the shell.
81072
81073 2001-09-16  Paul Eggert  <eggert@twinsun.com>
81074
81075         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
81076         library.  It's not correct, as some older glibcs are buggy.
81077         fnmatch wasn't fixed until glibc 2.2.
81078
81079         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
81080         special shell magic here.
81081
81082 2001-09-16  Jim Meyering  <meyering@lucent.com>
81083
81084         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
81085         * m4/jm-macros.m4: Require it.
81086
81087 2001-09-16  Jim Meyering  <meyering@lucent.com>
81088
81089         * lib/mkdir.c: New file.
81090
81091 2001-09-15  Jim Meyering  <meyering@lucent.com>
81092
81093         * m4/jm-macros.m4: Check for help2man.
81094
81095 2001-09-11  Jim Meyering  <meyering@lucent.com>
81096
81097         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
81098         The body, by Paul Eggert, was moved here from configure.in.
81099         * m4/jm-macros.m4: Require UTILS_HOST_OS.
81100
81101 2001-09-04  Paul Eggert  <eggert@twinsun.com>
81102
81103         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
81104         (jm_PREREQ): Use it.
81105
81106 2001-09-04  Paul Eggert  <eggert@twinsun.com>
81107
81108         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
81109         Use ssize_t, not int, to store result of readlink.
81110         Check for ssize_t overflow as well as size_t overflow,
81111         as POSIX says the result of readlink is implementation-defined
81112         when ssize_t overflows.
81113         Remove unnecessary cast to char*.
81114         Use free+malloc instead of realloc, as the storage doesn't need
81115         to be preserved and it's clearer and can be more efficient that way.
81116         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
81117         * lib/xreadlink.h (xreadlink): Update prototype.
81118
81119 2001-09-04  Paul Eggert  <eggert@twinsun.com>
81120
81121         * lib/xgetcwd.c: Revert some of the previous change; intead,
81122         fix the HAVE_GETCWD_NULL code to behave more like the
81123         !HAVE_GETCWD_NULL code used to.
81124
81125         Include "xalloc.h".
81126         (xgetcwd): Do not return NULL when memory is exhausted; instead,
81127         invoke xalloc_die.
81128
81129 2001-09-03  Paul Eggert  <eggert@twinsun.com>
81130
81131         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
81132         sys/param.h, as pathmax.h includes them.
81133
81134 2001-09-03  Paul Eggert  <eggert@twinsun.com>
81135
81136         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
81137         (jm_PREREQ_XGETCWD): New macro.
81138
81139         * m4/getcwd.m4: New file.
81140
81141 2001-09-03  Paul Eggert  <eggert@twinsun.com>
81142
81143         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
81144         like the HAVE_GETCWD_NULL code.
81145         Include pathmax.h if not HAVE_GETCWD.
81146         Do not include xalloc.h.
81147         (INITIAL_BUFFER_SIZE): New symbol.
81148         Do not use xmalloc / xrealloc, since the caller is responsible for
81149         handling errors.  Preserve errno around `free' during failure.
81150         Do not overrun buffer when using getwd.
81151
81152 2001-09-03  Paul Eggert  <eggert@twinsun.com>
81153
81154         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
81155         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
81156         getcwd (NULL, 0).
81157
81158 2001-09-03  Paul Eggert  <eggert@twinsun.com>
81159
81160         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
81161         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
81162         spotted by Jim Meyering.
81163
81164 2001-09-03  Jim Meyering  <meyering@lucent.com>
81165
81166         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
81167         failure.
81168
81169 2001-09-02  Jim Meyering  <meyering@lucent.com>
81170
81171         * lib/error.c: Update from GNU libc.
81172
81173 2001-09-01  Jim Meyering  <meyering@lucent.com>
81174
81175         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
81176         Used by df.
81177
81178 2001-09-01  Jim Meyering  <meyering@lucent.com>
81179
81180         * lib/xreadlink.c: New file.
81181         * lib/xreadlink.h: New file.
81182         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
81183         xreadlink.h.
81184
81185         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
81186         doesn't conflict with sparc Solaris 7's definition in
81187         /usr/include/sys/int_types.h.
81188
81189         * lib/exclude.c: Use `""', not `<>' to #include non-system header
81190         files.
81191         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
81192         and strncasecmp as r-values.  Unixware didn't have declarations.
81193
81194 2001-08-31  Paul Eggert  <eggert@twinsun.com>
81195
81196         * lib/xstrtol.h: Add copyright notice.
81197         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
81198         LONGINT_INVALID_SUFFIX_CHAR.
81199
81200 2001-08-31  Paul Eggert  <eggert@twinsun.com>
81201
81202         * lib/xstrtol.c (strtoimax): New decl.
81203
81204 2001-08-31  Paul Eggert  <eggert@twinsun.com>
81205
81206         * lib/xgetcwd.c: Don't include pathmax.h.
81207         Include stdlib.h and unistd.h if available.
81208         Include xalloc.h.
81209         (xmalloc, xstrdup, free): Remove decls.
81210         (xgetcwd): Don't assume sizes fit in unsigned.
81211         Check for overflow when computing sizes.
81212         Simplify reallocation code.
81213
81214 2001-08-31  Paul Eggert  <eggert@twinsun.com>
81215
81216         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
81217         a directory's st_size can have an arbitrary value, so the old
81218         usage could waste an arbitrary amount of memory.  All uses
81219         changed.
81220         * lib/savedir.h: Update prototype.
81221
81222 2001-08-31  Paul Eggert  <eggert@twinsun.com>
81223
81224         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
81225
81226         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
81227         old strtoimax.c.
81228
81229         Also, make the following further changes to make this file's
81230         configuration more similar to that of strtol.c:
81231         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
81232         (strtoumax, uintmax_t, strtoull, strtol): Remove.
81233         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
81234         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
81235         changed to signed values.
81236
81237         And make the following changes as well:
81238         Fix copyright notice, as 1999 was missing.
81239         (verify): New macro.
81240         (strtoimax): Check sizes at compile-time, not run-time.
81241         Prefer strtol to strtoll if both work.
81242         (main): Remove; it was not that useful and was a pain to maintain.
81243
81244         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
81245
81246 2001-08-31  Jim Meyering  <meyering@lucent.com>
81247
81248         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
81249         Use an initial, malloc'd, buffer of length 128 rather than
81250         a statically allocated one of length 1024.
81251
81252 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81253
81254         Simplify code, partly by assuming autoconf 2.52 semantics.
81255
81256         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
81257
81258         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
81259         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
81260         All uses removed.
81261         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
81262         Move AC_REQUIRE to next-to-top level, to avoid confusion.
81263         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
81264         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
81265         jm_AC_HEADER_INTTYPES_H.
81266         * m4/jm-macros.m4 (jm_MACROS): Likewise.
81267
81268         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
81269
81270         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
81271         Quote first arg of AC_DEFUN.
81272         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
81273         since they are needed to parse the include file even if we need
81274         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
81275         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
81276         but with opposite signedness.
81277
81278 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81279
81280         Merge 'exclude' changes from tar 1.13.22.
81281         This fixes one or two unlikely storage allocation overflow bugs,
81282         but doesn't change user-visible behavior otherwise.
81283
81284 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81285
81286         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
81287         (jm_PREREQ_EXCLUDE): New macro.
81288
81289 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81290
81291         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
81292         tm to be declared.
81293
81294 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81295
81296         * lib/hash.c: Remove '2001' from copyright notice.
81297
81298 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81299
81300         * lib/full-write.h: New file.
81301         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
81302         * lib/full-write.c: Correct credits, as cccp.c no longer
81303         exists and anyway it was so heavily changed from the old cccp
81304         code as to be unrecognizable.  Include full-write.h.
81305         (full_write): Return size_t, with short writes meaning failure.
81306         All callers changed.  This fixes a bug with large buffers
81307         on 64-bit hosts.
81308         * lib/utime.c: Include full-write.h.
81309
81310 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81311
81312         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
81313         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
81314         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
81315         Include if available.
81316         (<xalloc.h>): Include
81317         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
81318         (verify): New macro.  Use it to verify that EXCLUDE macros do not
81319         collide with FNM macros.
81320         (struct patopts): New struct.
81321         (struct exclude): Use it, as exclude patterns now come with options.
81322         (new_exclude): Support above changes.
81323         (new_exclude, add_exclude_file):
81324         Initial size must now be a power of two to simplify overflow checking.
81325         (free_exclude, fnmatch_no_wildcards): New function.
81326         (excluded_filename): No longer requires options arg, as the options
81327         are determined by add_exclude.  Now returns bool, not int.
81328         (excluded_filename, add_exclude):
81329         Add support for the fancy new exclusion options.
81330         (add_exclude, add_exclude_file): Now takes int options arg.
81331         Check for arithmetic overflow when computing sizes.
81332         (add_exclude_file): xrealloc might modify errno, so don't
81333         realloc until after errno might be used.
81334
81335         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
81336         New macros.
81337         (free_exclude): New decl.
81338         (add_exclude, add_exclude_file): Now takes int options arg.
81339         (excluded_filename): No longer requires options arg, as the options
81340         are determined by add_exclude.  Now returns bool, not int.
81341
81342 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81343
81344         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
81345
81346 2001-08-27  Jim Meyering  <meyering@lucent.com>
81347
81348         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
81349
81350         * lib/version-etc.c (N_): Remove definition.
81351         Revert most of last change.
81352         Instead, simply don't mark the `Copyright...' string for translation.
81353         Based on advice from Paul Eggert.
81354
81355         * lib/strtoxmax.c: Tweak comment.
81356
81357 2001-08-26  Jim Meyering  <meyering@lucent.com>
81358
81359         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
81360
81361         * m4/xstrtoimax.m4: New file.
81362         * m4/xstrtoumax.m4: Add comments explaining why we
81363         AC_REPLACE_FUNCS(strtol).
81364
81365 2001-08-26  Jim Meyering  <meyering@lucent.com>
81366
81367         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
81368         of copyright with `%s' so translators don't get an untranslated
81369         message in 2002.
81370         (COPYRIGHT_YEAR): Define.
81371         (version_etc): Use fprintf rather than fputs.
81372         Suggestion from Ulrich Drepper.
81373
81374         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
81375
81376         * lib/strtoll.c: New file, from GNU libc.
81377         * lib/xstrtoimax.c: New file.
81378
81379         * lib/xstrtol.h: Add xstrtoimax.
81380         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
81381         * lib/strtoimax.c: New file.  Likewise, but first define
81382         STRTOUXMAX_SIGNED.
81383
81384         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
81385         ...
81386         * lib/strtoxmax.c: ... then renamed to this.
81387
81388 2001-08-18  Paul Eggert  <eggert@twinsun.com>
81389
81390         * m4/inttypes.m4: Add AC_PREREQ(2.13).
81391         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
81392         (jm_AC_TYPE_INTMAX_T): New macro.
81393         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
81394
81395         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
81396
81397         * m4/longlong.m4: Renamed from ulonglong.m4.
81398         * m4/inttypes.m4: Renamed from inttypes_h.m4.
81399         * m4/uintmax_t.m4: Removed.
81400
81401 2001-08-13  Paul Eggert  <eggert@twinsun.com>
81402
81403         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
81404         Port to Solaris 8, where 'sed' requires a space after the 'r'
81405         command, and where sh dislikes "$/".  Clean up the spacing a bit.
81406         Redirect output to $tmp just once.
81407
81408 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
81409
81410         * lib/addext.c (<errno.h>): Include.
81411         (errno): Declare if not defined.
81412         (addext): Work correctly when pathconf returns -1 and leaves
81413         errno alone because there is no limit.  Also, work even if
81414         pathconf returns a value greater than SIZE_MAX.
81415
81416 2001-08-12  Jim Meyering  <meyering@lucent.com>
81417
81418         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
81419         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
81420         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
81421         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
81422         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
81423         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
81424         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
81425         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
81426         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
81427         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
81428         utime.m4, utimes.m4, xstrtoumax.m4:
81429         Quote the first argument in each use of AC_DEFUN.
81430
81431 2001-08-12  Jim Meyering  <meyering@lucent.com>
81432
81433         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
81434         Simply `return getcwd (NULL, 0);'.
81435         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
81436         Use 1300 as initial value for length, not PATH_MAX.
81437
81438         * lib/pathmax.h: Clean up cpp syntax.
81439
81440 2001-08-12  Jim Meyering  <meyering@lucent.com>
81441
81442         * lib/gettimeofday.c: New file.
81443         * lib/gtod.h: New file.
81444         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
81445
81446 2001-08-05  Jim Meyering  <meyering@lucent.com>
81447
81448         * m4/jm-macros.m4: Require autoconf-2.52.
81449
81450 2001-08-04  Jim Meyering  <meyering@lucent.com>
81451
81452         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
81453         stmt, to get in sync with glibc.
81454
81455 2001-08-03  Paul Eggert  <eggert@twinsun.com>
81456
81457         The following changes are from gettext 0.10.39 as maintained by
81458         Bruno Haible.
81459
81460         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
81461         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
81462         with inverted sense.  All uses changed.
81463
81464         * lib/mbswidth.c: Don't include <limits.h>.
81465         Include <stdlib.h> and <string.h> unconditionally.
81466         (iswcntrl, mbsinit, ISCNTRL): New macros.
81467         (mbsnwidth): Use K&R style function declarations.
81468         Don't bother checking for MB_LEN_MAX == 1, since the compiler
81469         can optimize it when MB_CUR_MAX == 1.
81470         The width of control characters is zero, not 1.
81471
81472 2001-08-03  Paul Eggert  <eggert@twinsun.com>
81473
81474         The following changes are from gettext 0.10.39 as maintained by
81475         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
81476
81477         * m4/codeset.m4: Upgrade to serial AM1.
81478         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
81479         all uses changed.  Quote first arg of AC_DEFUN.
81480         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
81481
81482         * m4/iconv.m4: Upgrade to serial AM2.
81483         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
81484         Add --with-libconv-prefix.
81485         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
81486         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
81487         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
81488         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
81489         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
81490
81491         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
81492         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
81493         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
81494         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
81495         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
81496         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
81497         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
81498         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
81499         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
81500
81501         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
81502         string.h any more.
81503
81504         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
81505         not the default value.
81506
81507         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
81508         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
81509         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
81510         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
81511         Also check for iswcntrl, used for wcwidth fallback.
81512         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
81513         to Autoconf 2.13.
81514
81515 2001-08-03  Jim Meyering  <meyering@lucent.com>
81516
81517         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
81518         as it was in the original.  Reported by Paul Eggert.
81519
81520 2001-07-16  Jim Meyering  <meyering@lucent.com>
81521
81522         * m4/gettimeofday.m4: New file.
81523         Prompted by a report from Bernhard Baehr.
81524
81525 2001-07-15  Jim Meyering  <meyering@lucent.com>
81526
81527         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
81528         stuff. Now it's in ../Makefile.cfg.
81529
81530 2001-07-15  Jim Meyering  <meyering@lucent.com>
81531
81532         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
81533         (BUILT_SOURCES): Add unlocked-io.h.
81534         (io_functions): Define.
81535         (unlocked-io.h): New rule.
81536         (DISTCLEANFILES): Add unlocked-io.h.
81537         (all-local): Depend on unlocked-io.h, to ensure it is created.
81538
81539         * lib/unlocked-io.hin: New file
81540
81541         * lib/regex.c: Update from glibc.
81542
81543 2001-07-05  Jim Meyering  <meyering@lucent.com>
81544
81545         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
81546         recommendation.
81547         (libfetish_a_SOURCES): Put all .h files here instead.
81548         Remove a thus-exposed (better checks in automake) duplicate and
81549         two unnecessary .h files.
81550
81551 2001-07-04  Jim Meyering  <meyering@lucent.com>
81552
81553         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
81554         that generates jm-glibc-io.m4 so that it doesn't trigger any make
81555         distcheck failure.
81556
81557 2001-07-02  Jim Meyering  <meyering@lucent.com>
81558
81559         The following changes were prompted by suggestions from Bruno Haible.
81560
81561         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
81562         is now generated.
81563         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
81564         definition of EXTRA_DIST.
81565         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
81566         ensure that the generated file is created/updated whenever the list
81567         of $(unlocked_functions) is changed.
81568         (jm-glibc-io.m4): New rule.
81569         (unlocked-io.h): New rule -- currently unused.
81570
81571 2001-06-24  Jim Meyering  <meyering@lucent.com>
81572
81573         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
81574         unmatched right bracket, rather than kludging it with an extra,
81575         falsely-matching quote in a comment.  Patch by Akim Demaille.
81576
81577 2001-06-11  Jim Meyering  <meyering@lucent.com>
81578
81579         * lib/regex.c: Update from GNU libc.
81580
81581 2001-05-27  Jim Meyering  <meyering@lucent.com>
81582
81583         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
81584         Check for ut_type in struct utmp.
81585
81586 2001-05-27  Jim Meyering  <meyering@lucent.com>
81587
81588         * lib/readutmp.h (UT_TYPE): Define.
81589
81590 2001-05-24  Jim Meyering  <meyering@lucent.com>
81591
81592         * lib/argmatch.c: Include "quote.h".
81593         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
81594         quote function.  Reported by Göran Uddeborg.
81595
81596 2001-05-22  Jim Meyering  <meyering@lucent.com>
81597
81598         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
81599         now that we use the package-supplied version unconditionally.
81600         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
81601
81602 2001-05-21  Jim Meyering  <meyering@lucent.com>
81603
81604         * m4/regex.m4: Change a couple backticks to single quotes to avoid
81605         shell syntax errors.
81606
81607 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
81608
81609         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
81610
81611 2001-05-20  Paul Eggert  <eggert@twinsun.com>
81612
81613         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
81614         Don't bother to check library strftime, since
81615         we'll be using our own my_strftime function anyway.
81616         Define my_strftime instead of strftime.
81617
81618 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
81619
81620         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
81621         which is not yet declared.
81622
81623 2001-05-15  Jim Meyering  <meyering@lucent.com>
81624
81625         * m4/regex.m4: Use proper quoting so brackets appear in the test
81626         program.
81627         Reported by, and with help from, Bruno Haible.
81628
81629 2001-05-13  Jim Meyering  <meyering@lucent.com>
81630
81631         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
81632         undefined.
81633
81634 2001-05-11  Paul Eggert  <eggert@twinsun.com>
81635
81636         dirname code cleanup.  base_name now behaves more compatibly
81637         with POSIX basename when given file names that have trailing
81638         slashes, and similarly for dir_name.  Add new primitives
81639         base_len and dir_len.  Put the directory-name-related decls
81640         into dirname.h.
81641
81642         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
81643         * lib/backupfile.c (base_name): Likewise.
81644         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
81645         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
81646         * lib/makepath.c (strip_trailing_slashes): Likewise.
81647         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
81648         ISSLASH): Likewise.
81649         * lib/rename.c (strip_trailing_slashes): Likewise.
81650         * lib/same.c (base_name): Likewise.
81651         * lib/stripslash.c (ISSLASH): Likewise.
81652
81653         * lib/addext.c: Include <dirname.h> after size_t is defined.
81654         * lib/backupfile.c: Likewise.
81655
81656         * lib/addext.c (addext): Use base_len to trim redundant
81657         trailing slashes instead of doing it ourselves.
81658         But do not trim the last slash if it is not redundant.
81659
81660         * lib/backupfile.c (find_backup_file_name,
81661         max_backup_version): Use base_len instead of rolling it ourselves.
81662         Handle the case of "" and (on DOS) "C:" correctly.
81663
81664         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
81665         needed. Include <string.h>, <dirname.h>.
81666         (base_name): Allow file names ending in slashes, other than names
81667         that are all slashes.  In this case, return the basename followed
81668         by the slashes.  This is more general, and can be used in places
81669         where the original base_name purposely had an assertion failure.
81670         (base_len): New function.
81671
81672         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
81673         Do not include <assert.h>; no longer needed.
81674         Include xalloc.h.
81675         (memrchr): Remove decl.
81676         (dir_name_r): Remove.
81677         (dir_len): Renamed from dirlen.  All callers changed.
81678         Rewrite in terms of base_name, for simplicity and consistency.
81679         (dir_name): Never return NULL.  All callers changed.
81680         Do not include <stdlib.h> in test program; no longer needed.
81681         return 0; is fine for test program.
81682
81683         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
81684         New macros.
81685         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
81686
81687         * lib/path-concat.c (path_concat): Use base_len to compute
81688         base length, not strlen; this means we cannot rely on memcpy
81689         to null-terminate.
81690
81691         * lib/same.c (STREQ): Remove.
81692         (same_name): Handle the case where the basename ends in trailing '/'.
81693
81694         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
81695         a slash was stripped.  Do not strip the last slash after a
81696         file system prefix.
81697
81698 2001-05-11  Paul Eggert  <eggert@twinsun.com>
81699
81700         * lib/Makefile.am (libfetish_a_SOURCES):
81701         Add strftime.c, since we now compile it on all hosts.
81702
81703         * lib/strftime.c (my_strftime):
81704         Define to nstrftime if emacs, but only if my_strftime is not defined.
81705         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
81706         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
81707         Add one more extra argument: a nanoseconds value.
81708         All uses changed.
81709         (ns): New macro.
81710         (my_strftime function): Add %N format.
81711         (emacs_strftimeu): Renamed from emacs_strftime,
81712         with extra ut argument.
81713
81714 2001-05-09  Paul Eggert  <eggert@twinsun.com>
81715
81716         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
81717
81718 2001-04-21  Jim Meyering  <meyering@lucent.com>
81719
81720         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
81721         doesn't interfere.
81722
81723 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
81724
81725         * m4/ftruncate.m4: Check for chsize.
81726         Link with ftruncate.o unconditionally if ftruncate is missing.
81727         This was required when cross-compiling to i586-mingw32msvc.
81728
81729 2001-04-08  Jim Meyering  <meyering@lucent.com>
81730
81731         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
81732         recomputed; that's necessary when the offset spans a DST transition.
81733         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
81734
81735 2001-04-02  Jim Meyering  <meyering@lucent.com>
81736
81737         * lib/regex.h, regex.c: Update from GNU libc.
81738
81739 2001-03-24  Jim Meyering  <meyering@lucent.com>
81740
81741         * m4/jm-macros.m4: Require autoconf-2.49d.
81742
81743 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
81744
81745         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
81746
81747 2001-03-19  Paul Eggert  <eggert@twinsun.com>
81748
81749         * lib/version-etc.c (version_etc_copyright): Update to 2001.
81750
81751 2001-03-17  Jim Meyering  <meyering@lucent.com>
81752
81753         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
81754         now that the version in autoconf is equivalent.
81755         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
81756
81757         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
81758         Suggestion from Akim Demaille.
81759
81760         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
81761         (jm_PREREQ_TEMPNAME): New function.
81762
81763 2001-03-16  Paul Eggert  <eggert@twinsun.com>
81764
81765         * lib/tempname.c (uint64_t): Define to uintmax_t if
81766         not defined, and if UINT64_MAX is not defined.
81767         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
81768         Reported by John David Anglin.
81769
81770 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
81771
81772         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
81773         resolve alias if codeset is empty.
81774         * lib/config.charset (BeOS): Use wildcard syntax.
81775
81776 2001-03-13  Jim Meyering  <meyering@lucent.com>
81777
81778         * lib/path-concat.c (path_concat)
81779         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
81780         concatenating e.g., `C:' and `foo'.
81781         From Bruno Haible.
81782
81783 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
81784
81785         * lib/localcharset.c (locale_charset): Don't use
81786         setlocale(LC_CTYPE,NULL). Don't return NULL.
81787         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
81788
81789 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
81790
81791         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
81792         support for DOS/DJGPP.
81793
81794 2001-03-01  Paul Eggert  <eggert@twinsun.com>
81795
81796         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
81797         lacks mkstemp.  Compile our own tempname.c if we compile our own
81798         mkstemp.c, as mkstemp relies on tempname.
81799
81800 2001-03-01  Jim Meyering  <meyering@lucent.com>
81801
81802         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
81803         AH_VERBATIM really does output its argument verbatim.
81804
81805 2001-02-28  Paul Eggert  <eggert@twinsun.com>
81806
81807         * lib/Makefile.am (libfetish_a_SOURCES):
81808         Add dup-safer.c, fopen-safer.c.
81809         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
81810
81811         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
81812         * lib/unistd-safer.h: New files.
81813
81814 2001-02-25  Paul Eggert  <eggert@twinsun.com>
81815
81816         The mkstemp replacement is taken from glibc 2.2.2, with some
81817         portability fixes for use outside glibc, as follows:
81818
81819         * lib/tempname.c (struct_stat64): New macro.
81820         (direxists, __gen_tempname): Use it.
81821         This avoids a portability problem with Solaris 8.
81822
81823         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
81824         (<stddef.h>, <stdint.h>, <string.h>):
81825         Include only if STDC_HEADERS || _LIBC.
81826         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
81827         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
81828         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
81829         (__set_errno): Define this macro if <errno.h> doesn't.
81830         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
81831         Define these macros if <stdio.h> doesn't.
81832         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
81833         Define these macros if <sys/stat.h>
81834         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
81835         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
81836         __xstat64): Define if not _LIBC.
81837         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
81838         (__gen_tempname): Invoke gettimeofday only if
81839         HAVE_GETTIMEOFDAY || _LIBC;
81840         otherwise, fall back on plain "time".
81841         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
81842
81843         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
81844
81845         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
81846
81847 2001-02-18  Paul Eggert  <eggert@twinsun.com>
81848
81849         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
81850
81851 2001-02-17  Paul Eggert  <eggert@twinsun.com>
81852
81853         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
81854         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
81855         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
81856         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
81857
81858 2001-02-17  Paul Eggert  <eggert@twinsun.com>
81859
81860         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
81861         Remove workaround macros for hosts that have mbrtowc but not
81862         mbstate_t, as we now insist on proper declarations for both
81863         before using mbrtowc.
81864
81865 2001-02-17  Jim Meyering  <meyering@lucent.com>
81866
81867         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
81868         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
81869         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
81870         UnixWare 7.1.1.
81871
81872         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
81873         rather than AC_CACHE_VAL.
81874
81875 2001-02-17  Jim Meyering  <meyering@lucent.com>
81876
81877         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
81878         around included file name.
81879
81880         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
81881
81882         * lib/strftime.c: Update from GNU libc (the only changes were to
81883         comments).
81884
81885 2001-02-17  Jim Meyering  <meyering@lucent.com>
81886
81887         * lib/regex.c: Update from libc.
81888
81889 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
81890
81891         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
81892         clash.
81893
81894 2001-02-16  Paul Eggert  <eggert@twinsun.com>
81895
81896         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
81897         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
81898         Reported by Mark Hounschell via Paul Eggert.
81899
81900 2001-02-07  Jim Meyering  <meyering@lucent.com>
81901
81902         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
81903
81904 2001-02-05  Jim Meyering  <meyering@lucent.com>
81905
81906         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
81907         it includes the patch required for `large file' support with at least
81908         HP-UX's 10.20 /bin/cc.
81909
81910 2001-02-03  Jim Meyering  <meyering@lucent.com>
81911
81912         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
81913         AS_IF, now that it works once again (mysteriously).
81914         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
81915
81916 2001-01-30  Jim Meyering  <meyering@lucent.com>
81917
81918         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
81919         * m4/chown.m4: Rename conftestchown to conftest.chown.
81920         * m4/rename.m4: s/conftestdir/conftest.d1/ and
81921         s/conftestdir2/conftest.d2/.
81922         * m4/utimes.m4: s/conftestdata/conftest.data/
81923         Inspired by Pavel Roskin's change in autoconf.
81924
81925 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
81926
81927         * lib/config.charset: Update for FreeBSD 4.2.
81928
81929 2001-01-27  Jim Meyering  <meyering@lucent.com>
81930
81931         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
81932         a use of AS_IF.
81933         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
81934
81935 2001-01-26  Jim Meyering  <meyering@lucent.com>
81936
81937         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
81938         quotearg.c includes it.
81939
81940 2001-01-26  Jim Meyering  <meyering@lucent.com>
81941
81942         * lib/quotearg.c: Include stddef.h.
81943         * lib/quote.c: Include stddef.h.
81944         Reported by Axel Kittenberger.
81945
81946         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
81947         line in double quotes so that it evokes a better diagnostic.
81948         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
81949         Reported by Axel Kittenberger.
81950
81951 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
81952
81953         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
81954         as if it was a `charset'.
81955
81956 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
81957
81958         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
81959         has const.
81960
81961 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
81962
81963         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
81964         to avoid a warning.  Add back 'const' to inptr.
81965
81966 2001-01-20  Jim Meyering  <meyering@lucent.com>
81967
81968         Be sure that headers are checked before used in code compiled
81969         for the type checks.
81970         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
81971         In place of that, invoke jm_CHECK_ALL_TYPES.
81972         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
81973         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
81974         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
81975         The check for ssize_t was mistakenly run before the test for unistd.h.
81976
81977         The configure-time check for stdbool.h was missing.
81978         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
81979         (jm_PREREQ_HASH): New function.
81980
81981 2001-01-17  Jim Meyering  <meyering@lucent.com>
81982
81983         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
81984         for autoconf-2.49c.
81985         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
81986
81987 2001-01-16  Jim Meyering  <meyering@lucent.com>
81988
81989         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
81990         From Bruno Haible.
81991
81992 2001-01-14  Jim Meyering  <meyering@lucent.com>
81993
81994         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
81995         foo and bar.  Create conftestdir/ in the script, not in the C code.
81996         Remove directories in the script, not in the C code.
81997         Remove conftestdir{,2} before trying to create the directory.
81998         Make the entire configure script fail if the mkdir fails.
81999
82000 2001-01-14  Jim Meyering  <meyering@lucent.com>
82001
82002         * lib/rename.c: New file.  From Volker Borchert.
82003         Include stdlib.h, string.h or strings.h, and xalloc.h.
82004         Use strip_trailing_slashes rather than open-coding it.
82005
82006 2001-01-03  Paul Eggert  <eggert@twinsun.com>
82007
82008         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
82009
82010 2001-01-03  Jim Meyering  <meyering@lucent.com>
82011
82012         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
82013         of local `inptr' to avoid warning with some system declarations of
82014         iconv.
82015
82016 2001-01-02  Volker Borchert  <bt@teknon.de>
82017
82018         * m4/rename.m4: New file.
82019         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
82020
82021 2001-01-01  Jim Meyering  <meyering@lucent.com>
82022
82023         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
82024         even on systems with utmpx.h.  It's necessary for the declaration of
82025         utmp's ut_user member.  Reported by Andreas Jaeger.
82026
82027         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
82028         available. They are required for the declarations of getgrgid and
82029         getpwuid resp.
82030         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
82031         Reported by Andreas Jaeger.
82032
82033 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
82034
82035         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
82036         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
82037         so `make install' also works in VPATH builds.
82038
82039 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
82040
82041         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
82042         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
82043         can be used in subdirectories.
82044
82045 2000-12-29  Paul Eggert  <eggert@twinsun.com>
82046
82047         * lib/modechange.c: Do not assume that mode_t uses the
82048         traditional octal encoding.  E.g. "chmod 1 FOO" should set
82049         the other-execute bit of FOO even if S_IXOTH != 1.
82050
82051         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
82052         WOTH, XOTH, ALLM): New macros.
82053         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
82054          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
82055         Use them.
82056         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
82057         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
82058         (mode_compile):
82059         No need to use uintmax_t; unsigned long is long enough.
82060         Don't bother to get suffix since we don't use it.
82061
82062 2000-12-26  Jim Meyering  <meyering@lucent.com>
82063
82064         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
82065         better with autoheader.
82066
82067 2000-12-24  Jim Meyering  <meyering@lucent.com>
82068
82069         * lib/hash.c (is_prime): Return explicit boolean values.
82070         (hash_get_first): Return NULL to appease Irix5.6's 89.
82071         Reported by Nelson Beebe.
82072
82073 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
82074
82075         * lib/localcharset.c (locale_charset): Add support for Win32.
82076
82077 2000-12-18  Paul Eggert  <eggert@twinsun.com>
82078
82079         * lib/physmem.h, lib/physmem.c: New files.
82080
82081         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
82082         (noinst_HEADERS): Add physmem.h.
82083
82084         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
82085         't' for compatibility with Solaris 8 sort.
82086
82087 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
82088
82089         * lib/config.charset: Add support for BeOS.
82090
82091 2000-12-17  Jim Meyering  <meyering@lucent.com>
82092
82093         * m4/dos.m4 (jm_AC_DOS): New file and macro.
82094         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
82095
82096 2000-12-16  Jim Meyering  <meyering@lucent.com>
82097
82098         This bug had a serious impact on chown: `chown N:M FILE' (for integer
82099         N and M) would have treated it like `chown N:N FILE'.
82100
82101         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
82102
82103 2000-12-16  Jim Meyering  <meyering@lucent.com>
82104
82105         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
82106         SHELLS_FILE to a file name that's useful on djgpp systems.
82107         Include stdlib.h.
82108         (ADDITIONAL_DEFAULT_SHELLS): Define.
82109         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
82110         Based mostly on a patch from Prashant TR.
82111
82112 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
82113
82114         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
82115         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
82116         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
82117
82118 2000-12-08  Andreas Schwab  <schwab@suse.de>
82119
82120         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
82121         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
82122
82123 2000-12-07  Jim Meyering  <meyering@lucent.com>
82124
82125         * lib/stripslash.c (ISSLASH): Define.
82126         (strip_trailing_slashes): Use ISSLASH rather than comparing against
82127         `/'.
82128         From Prashant TR.
82129
82130         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
82131         (dir_name_r): Declare this function as static.
82132         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
82133         manifest itself on a name containing a mix of slashes and
82134         backslashes.
82135         Make this function work with names starting with a DOS-style
82136         drive letter and colon prefix.
82137         (dir_name): Append `.' if necessary.
82138         Based mostly on patches from Prashant TR and Eli Zaretskii.
82139
82140         * lib/dirname.h (dir_name_r): Remove prototype.
82141
82142 2000-12-06  Paul Eggert  <eggert@twinsun.com>
82143
82144         * m4/off_t-format.m4: Remove this file.
82145         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
82146
82147 2000-12-06  Jim Meyering  <meyering@lucent.com>
82148
82149         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
82150         replacement strtoull, we may well need the replacement strtoul, too.
82151         Check for declarations of strtoul and strtoull.
82152         Check for strtol.  Mainly as a cue to cause automake to include
82153         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
82154         Check for limits.h -- strtol.c needs it.
82155
82156 2000-12-05  Jim Meyering  <meyering@lucent.com>
82157
82158         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
82159
82160 2000-12-04  Jim Meyering  <meyering@lucent.com>
82161
82162         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
82163         Also include memory.h, stdlib.h, unistd.h if appropriate.
82164         Reported by Andreas Jaeger (conflicting declaration of malloc).
82165
82166 2000-12-02  Jim Meyering  <meyering@lucent.com>
82167
82168         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
82169         * m4/jm-macros.m4 (jm_MACROS): require it.
82170
82171 2000-12-02  Jim Meyering  <meyering@lucent.com>
82172
82173         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
82174
82175 2000-12-01  Paul Eggert  <eggert@twinsun.com>
82176
82177         * lib/memrchr.c: Include <config.h> before any system include file.
82178
82179 2000-11-30  Jim Meyering  <meyering@lucent.com>
82180
82181         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
82182
82183 2000-11-30  Jim Meyering  <meyering@lucent.com>
82184
82185         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
82186
82187 2000-11-29  Paul Eggert  <eggert@twinsun.com>
82188
82189         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
82190
82191 2000-11-26  Jim Meyering  <meyering@lucent.com>
82192
82193         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
82194
82195 2000-11-22  Paul Eggert  <eggert@twinsun.com>
82196
82197         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
82198         size of (size_t) -1; it's not portable.
82199
82200 2000-11-17  Jim Meyering  <meyering@lucent.com>
82201
82202         * lib/strstr.c: Update from GNU libc.
82203
82204 2000-11-17  Akim Demaille  <akim@epita.fr>
82205
82206         * lib/obstack.h: Formatting changes.
82207         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
82208         prevent type checking.
82209         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
82210         cast the value to (void *): assigning a `foo *' to a `void *'
82211         variable is valid.
82212         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
82213
82214 2000-11-16  Jim Meyering  <meyering@lucent.com>
82215
82216         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
82217
82218 2000-11-11  Jim Meyering  <meyering@lucent.com>
82219
82220         * lib/error.c: Add a couple #includes, merging from GNU libc version.
82221
82222 2000-11-10  Jim Meyering  <meyering@lucent.com>
82223
82224         * lib/obstack.h: Update from GNU libc.
82225         * lib/obstack.c: Likewise.
82226
82227 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
82228
82229         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
82230
82231 2000-11-06  Paul Eggert  <eggert@twinsun.com>
82232
82233         * lib/getusershell.c (setusershell): Use rewind rather than
82234         fseek/fseeko, to avoid configuration hassles with fseeko.
82235         Don't bother opening SHELLS_FILE if shellstream is NULL;
82236         it's not necessary.
82237
82238 2000-11-05  Jim Meyering  <meyering@lucent.com>
82239
82240         * lib/makepath.h (make_dir): Declare.
82241         * lib/makepath.c (make_dir): Remove `static' attribute.
82242         Tweak a comment.
82243
82244 2000-11-04  Jim Meyering  <meyering@lucent.com>
82245
82246         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
82247
82248 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
82249
82250         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
82251         last one in a bucket, advance to the next bucket.
82252
82253 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
82254
82255         * lib/fnmatch.c: Do not comment out all the code if we are using
82256         the GNU C library, because in some cases we are replacing buggy
82257         code in the GNU C library itself.
82258
82259 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
82260
82261         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
82262         (regex_compile): Catch bogus \(\1\).
82263
82264 2000-10-30  Paul Eggert  <eggert@twinsun.com>
82265
82266         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
82267         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
82268         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
82269
82270 2000-10-30  Paul Eggert  <eggert@twinsun.com>
82271
82272         * lib/error.h, getline.h, modechange.h:
82273         Remove "2000" from Copyright line, as the file hasn't been
82274         changed this year other than in the copyright notice.
82275
82276         * lib/xalloc.h: Add "2000" to Copyright line, as this file
82277         was changed this year.
82278
82279 2000-10-29  Jim Meyering  <meyering@lucent.com>
82280
82281         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
82282         renaming.
82283         * m4/ls-mntd-fs.m4: Likewise
82284
82285 2000-10-29  Jim Meyering  <meyering@lucent.com>
82286
82287         * lib/xstat.in: Fix grammar in comment.
82288
82289 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
82290
82291         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
82292         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
82293         doesn't define __restrict_arr.
82294
82295 2000-10-28  Jim Meyering  <meyering@lucent.com>
82296
82297         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
82298         (jm_PREREQ_MEMCHR): New function.
82299
82300 2000-10-28  Jim Meyering  <meyering@lucent.com>
82301
82302         * lib/memchr.c: Update from libc.
82303         Adjust for portability:
82304         [HAVE_STDLIB_H]: Include stdlib.h.
82305         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
82306         Undef __memchr, too.
82307         [!weak_alias]: Define __memchr to memchr.
82308
82309         * lib/regex.c: Update from libc.
82310         * lib/regex.h: Likewise.
82311         * lib/getopt1.c: Likewise.
82312         * lib/memcmp.c: Likewise.
82313
82314         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
82315         Avoid using fseek, when possible -- it's broken by design.
82316         Patch by Ulrich Drepper.
82317
82318 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
82319
82320         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
82321         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
82322         Giving in to popular pressure to shut up the compiler with casts.
82323
82324 2000-10-26  Jim Meyering  <meyering@lucent.com>
82325
82326         * lib/strftime.c: Update from libc.
82327
82328 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
82329
82330         * regex.c: More `unsigned char' -> `re_char' changes.
82331         Also change several `int' into `re_wchar_t'.
82332         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
82333         (PUSH_FAILURE_POINTER): Don't cast any more.
82334         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
82335         We want GCC to complain, since this piece of code makes
82336         re_match non-reentrant, which *should* be fixed.
82337         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
82338         (EXTEND_BUFFER): Use RETALLOC.
82339         (SET_LIST_BIT): Don't cast.
82340         (re_wchar_t): New type.
82341         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
82342         that those two functions will always properly return.
82343         (IMMEDIATE_QUIT_CHECK): Cast to void.
82344         (analyse_first): Use recursion rather than an explicit stack.
82345         (re_compile_fastmap): Can't fail anymore.
82346         (re_search_2): Don't check re_compile_fastmap for failure.
82347         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
82348         Now also sets the new value (passed in a new argument).
82349         (re_match_2_internal): Use it.
82350         Also, use a new var `reg' of type size_t when looping through regs
82351         rather than reuse the inappropriate `mcnt'.
82352
82353 2000-10-25  Jim Meyering  <meyering@lucent.com>
82354
82355         * lib/obstack.c: Update from libc.
82356
82357 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
82358
82359         * regex.c (regex_compile): Change the way of handling a range from
82360         a char less than 256 to a char not less than 256.
82361
82362 2000-10-24  Andrew Innes  <andrewi@gnu.org>
82363
82364         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
82365         NT-Emacs only.
82366         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
82367         so that re_search functions only quit when callers expect them to.
82368
82369 2000-10-23  Jim Meyering  <meyering@lucent.com>
82370
82371         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
82372         wrong.  That set_locale call must not have any side effects.
82373         From Paul Eggert.
82374
82375 2000-10-22  Jim Meyering  <meyering@lucent.com>
82376
82377         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
82378         [CYCLIC]: Remove now-unused definition.
82379
82380         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
82381         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
82382         Suggestion from Ulrich Drepper.
82383
82384 2000-10-21  Jim Meyering  <meyering@lucent.com>
82385
82386         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
82387         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
82388         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
82389
82390 2000-10-21  Jim Meyering  <meyering@lucent.com>
82391
82392         * lib/dirname.c (memrchr): Declare if necessary.
82393         (dir_name): Remove the restriction that there be no
82394         trailing slashes.  Now, this code skips past them, effectively
82395         ignoring them.
82396         [TEST_DIRNAME] (main): New unit tests.
82397
82398         * lib/memrchr.c: New file from GNU libc.
82399         Undef __memrchr, too.
82400         [!weak_alias]: Define __memrchr to memrchr.
82401         Guard weak_alias use with `#ifdef weak_alias'.
82402
82403 2000-10-21  Jim Meyering  <meyering@lucent.com>
82404
82405         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
82406         (dir_name): Use dir_name_r.
82407         * lib/dirname.h (dir_name_r): Declare it.
82408
82409 2000-10-17  Jim Meyering  <meyering@lucent.com>
82410
82411         * lib/quote.h (PARAMS): Define and use.
82412         Reported by Akim Demaille.
82413
82414         * lib/getopt.c: Update from libc.
82415
82416 2000-10-16  Jim Meyering  <meyering@lucent.com>
82417
82418         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
82419         setlocale.
82420         From Jan Fedak.
82421
82422 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
82423
82424         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
82425
82426 2000-09-25  Jim Meyering  <meyering@lucent.com>
82427
82428         * lib/md5.h (rol): Define (from GnuPG).
82429
82430         * lib/sha.c: Give credit (GnuPG) where due.
82431         (M): Use rol rather than open-coding it.
82432         Add a FIXME comment.
82433
82434 2000-09-21  Jim Meyering  <meyering@lucent.com>
82435
82436         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
82437         Reported by Michael Stone.
82438
82439 2000-09-20  Jim Meyering  <meyering@lucent.com>
82440
82441         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
82442         (noinst_HEADERS): Add sha.h.
82443         Based on code from Scott G. Miller and from GnuPG.
82444
82445 2000-09-18  Jim Meyering  <meyering@lucent.com>
82446
82447         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
82448         LIBS. Otherwise, everyone ends up linking with -lelf for some
82449         configurations.
82450         Reported by Mike Stone.
82451
82452 2000-09-15  Jim Meyering  <meyering@lucent.com>
82453
82454         * lib/regex.c: Update from libc.
82455
82456 2000-09-10  Jim Meyering  <meyering@lucent.com>
82457
82458         * lib/getopt.c (_getopt_internal): Update from glibc.
82459
82460 2000-09-09  Jim Meyering  <meyering@lucent.com>
82461
82462         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
82463         think it should be used as a general replacement for isascii.
82464         * lib/fnmatch.c: Likewise.
82465         * lib/mbswidth.c: Likewise
82466         * lib/regex.c: Likewise.
82467
82468         Don't use atoi.
82469         * lib/userspec.c: Include sys/param.h and limits.h.
82470         Include xstrtol.h.
82471         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
82472         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
82473         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
82474         UID, GID.  Check range.
82475
82476 2000-09-06  Jim Meyering  <meyering@lucent.com>
82477
82478         * lib/getopt.c (_getopt_internal): Update from glibc.
82479
82480 2000-08-30  Jim Meyering  <meyering@lucent.com>
82481
82482         * lib/strftime.c: Merge in changes from GNU libc.
82483
82484 2000-08-26  Jim Meyering  <meyering@lucent.com>
82485
82486         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
82487         * m4/fpending.m4: New file.
82488
82489 2000-08-26  Jim Meyering  <meyering@lucent.com>
82490
82491         * lib/closeout.c: Include "__fpending.h".
82492         (close_stdout_status): Return right away if there's nothing to flush.
82493
82494         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
82495         * lib/__fpending.c: New file.
82496         * lib/__fpending.h: New file.
82497
82498 2000-08-20  Jim Meyering  <meyering@lucent.com>
82499
82500         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
82501         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
82502         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
82503
82504 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
82505
82506         Improve fileutils installation on systems where running
82507         programs (like install) can't be unlinked.
82508         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
82509         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
82510
82511 2000-08-07  Paul Eggert  <eggert@twinsun.com>
82512
82513         Standardize on "memory exhausted" instead of "Memory exhausted"
82514         or "virtual memory exhausted".
82515         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
82516         "virtual memory exhausted".
82517         * lib/same.c (same_name): Invoke xalloc_die instead of printing
82518         our own message.
82519         * lib/userspec.c (parse_user_spec): Likewise.
82520         * lib/bumpalloc.h: comment fix
82521         * lib/same.c, userspec.c: Include xalloc.h.
82522
82523         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
82524         not char *const and pointing to a constant array.
82525         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
82526         (xrealloc): Comment fix.
82527
82528         * lib/userspec.c (parse_user_spec):
82529         Don't translate a message until just before returning,
82530         to avoid unnecessary translation.
82531
82532 2000-08-07  Jim Meyering  <meyering@lucent.com>
82533
82534         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
82535         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
82536         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
82537         getgroups.c, gethostname.c, getopt.h, group-member.c,
82538         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
82539         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
82540         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
82541         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
82542         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
82543         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
82544         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
82545         yesno.c: Back out Copyright date changes for each file with no change
82546         this year.  This eases coordination with other programs using the same
82547         source code modules.  From Paul Eggert.
82548
82549 2000-08-06  Paul Eggert  <eggert@twinsun.com>
82550
82551         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
82552         not char, for compatibility with glibc 2.1.3 strftime.c.
82553
82554 2000-08-03  Greg McGary  <greg@mcgary.org>
82555
82556         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
82557         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
82558         (EXTEND_BUFFER): Use them.
82559
82560 2000-08-01  Jim Meyering  <meyering@lucent.com>
82561
82562         * lib/dirname.c (ISSLASH): Define.
82563         (BACKSLASH_IS_PATH_SEPARATOR): Define.
82564         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
82565         both `\' and `/' may be use as path separators.
82566         Based on a patch from Prashant TR.
82567
82568 2000-07-31  Paul Eggert  <eggert@twinsun.com>
82569
82570         * lib/quotearg.c (quotearg_n_options): Don't make the initial
82571         slot vector a constant, since it might get modified.
82572
82573 2000-07-31  Jim Meyering  <meyering@lucent.com>
82574
82575         * lib/xmalloc.c: Use `virtual memory exhausted', not
82576         `Memory exhausted'.
82577         * lib/obstack.c (print_and_abort): Likewise.
82578
82579 2000-07-30  Paul Eggert  <eggert@twinsun.com>
82580
82581         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
82582         buffer, so that the caller can always quote one small
82583         component of a "memory exhausted" message in slot 0.
82584         From a suggestion by Jim Meyering.
82585
82586 2000-07-30  Jim Meyering  <meyering@lucent.com>
82587
82588         * lib/makepath.c (make_path): Quote the other instance, too.
82589
82590         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
82591         (STATIC_BUF_SIZE): Define.
82592         (quotearg_n_options): Use only statically allocated storage when
82593         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
82594         than STATIC_BUF_SIZE.
82595
82596 2000-07-29  Jim Meyering  <meyering@lucent.com>
82597
82598         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
82599         * lib/dirname.c (dir_name): Likewise.
82600
82601         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
82602         `/'.
82603
82604         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
82605         (dir_name): Assert that there are no trailing slashes.
82606
82607 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
82608
82609         * lib/mbswidth.h (mbswidth): Add a flags argument.
82610         (mbswidth): New declaration.
82611         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
82612         * lib/mbswidth.c (mbswidth): Add a flags argument.
82613         (mbsnwidth): New function.
82614
82615 2000-07-24  Jim Meyering  <meyering@lucent.com>
82616
82617         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
82618
82619 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82620
82621         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
82622
82623 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82624
82625         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
82626         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
82627         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
82628         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
82629         invoke multibyte primitives.
82630
82631 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82632
82633         * lib/quotearg.c:
82634         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
82635         so that mbstate_t is always defined.
82636
82637         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
82638         be 1 in at least one GCC installation, and this configuration
82639         error is likely to be common.  Ignoring MB_LEN_MAX hurts
82640         performance on hosts that have mbrtowc but have only unibyte
82641         locales, but I assume these hosts are rare.
82642
82643 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82644
82645         * lib/mbswidth.c (_XOPEN_SOURCE):
82646         Don't define; this causes problems on Solaris 7.
82647         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
82648
82649 2000-07-23  Jim Meyering  <meyering@lucent.com>
82650
82651         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
82652         too: getgrgid, getpwuid, getuid.
82653
82654 2000-07-23  Jim Meyering  <meyering@lucent.com>
82655
82656         * lib/basename.c (base_name): Add an assertion.
82657
82658 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
82659
82660         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
82661         shadow its mbsinit function.
82662
82663 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
82664
82665         * lib/mbswidth.h: New file.
82666         * lib/mbswidth.c: New file.
82667         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
82668         (noinst_HEADERS): Add mbswidth.h.
82669
82670 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
82671
82672         * lib/config.charset: Add support for FreeBSD. Improve support for
82673         HP-UX and IRIX 6.
82674
82675 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
82676
82677         * m4/mbswidth.m4: New file.
82678         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
82679
82680 2000-07-15  Jim Meyering  <meyering@lucent.com>
82681
82682         * lib/makepath.c: Include quote.h.
82683         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
82684         corresponding argument in a `quote (...)' call.
82685         Give better diagnostics.
82686
82687         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
82688         (noinst_HEADERS): Add quote.h.
82689
82690         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
82691         from tar's src/misc.c.
82692         * lib/quote.h: New file.  Prototypes for same.
82693
82694 2000-07-14  Paul Eggert  <eggert@twinsun.com>
82695
82696         From a suggestion by Bruno Haible.
82697         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
82698         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
82699         to decide whether to define the BeOS workaround macro;
82700         this adjusts to the change to AC_MBSTATE_T.
82701
82702 2000-07-14  Jim Meyering  <meyering@lucent.com>
82703
82704         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
82705         jm_AC_TYPE_UINTMAX_T.
82706
82707 2000-07-13  Paul Eggert  <eggert@twinsun.com>
82708
82709         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
82710
82711         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
82712         quotearg_buffer_restyled): Add support for
82713         clocale_quoting_style.  Undo previous change to
82714         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
82715         and "{RIGHT QUOTATION MARK}" msgids.
82716
82717 2000-07-10  Paul Eggert  <eggert@twinsun.com>
82718
82719         From a suggestion by Bruno Haible.
82720         * m4/mbstate_t.m4 (AC_MBSTATE_T):
82721         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
82722         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
82723         and mbstate_t, to a single-part test that simply defines mbstate_t.
82724         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
82725         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
82726
82727 2000-07-10  Jim Meyering  <meyering@lucent.com>
82728
82729         * m4/strerror_r.m4: Mirror the correction made in autoconf.
82730
82731         * m4/gnu-source.m4: Output to confdefs.h directly.
82732         Suggestion from Akim Demaille.
82733
82734 2000-07-09  Paul Eggert  <eggert@twinsun.com>
82735
82736         The old behavior of quoting `like this' doesn't look good with
82737         newer, ISO-style fonts.  See:
82738         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
82739
82740         Instead, quote "like this" by default.  Let the translator
82741         tailor the locale-specific quoting behavior by providing
82742         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
82743
82744         * lib/quotearg.c (N_): New macro.
82745         (gettext_default): New function.
82746         (quotearg_buffer_restyled): Use
82747         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
82748         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
82749
82750 2000-07-09  Jim Meyering  <meyering@lucent.com>
82751
82752         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
82753         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
82754
82755         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
82756         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
82757
82758 2000-07-09  Jim Meyering  <meyering@lucent.com>
82759
82760         * lib/Most files: Update copyright dates to include 2000.
82761
82762 2000-07-08  Jim Meyering  <meyering@lucent.com>
82763
82764         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
82765         if not defined.
82766         (xgethostname): Remove now-unnecessary #ifdef.
82767         Move declaration of `err' into loop where it's used.
82768
82769 2000-07-05  Paul Eggert  <eggert@twinsun.com>
82770         and Bruno Haible  <haible@clisp.cons.org>
82771
82772         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
82773         only if the test for an object-type mbstate_t fails.  This
82774         prevents us from mistakenly reporting that mbstate_t is a
82775         system object type after we "#define mbstate_t int" to work
82776         around its lack.
82777
82778 2000-07-05  Paul Eggert  <eggert@twinsun.com>
82779         and Bruno Haible  <haible@clisp.cons.org>
82780
82781         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
82782
82783 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
82784
82785         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
82786         to strerror_r.
82787         Include <ctype.h> for use of isalpha.
82788
82789 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
82790
82791         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
82792         by allocating a larger buffer. Test the gethostname return value for
82793         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
82794         returns an error and ENAMETOOLONG isn't defined.
82795
82796 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
82797
82798         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
82799         dimension.
82800
82801 2000-07-04  Jim Meyering  <meyering@lucent.com>
82802
82803         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
82804         of the deprecated AC_CHECKING.
82805
82806 2000-07-04  Jim Meyering  <meyering@lucent.com>
82807
82808         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
82809         Reported by Bruno Haible.
82810
82811 2000-07-04  Jim Meyering  <meyering@lucent.com>
82812
82813         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
82814         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
82815         lacks mbrtowc.
82816
82817 2000-07-03  Paul Eggert  <eggert@twinsun.com>
82818
82819         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
82820         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
82821
82822 2000-07-03  Paul Eggert  <eggert@twinsun.com>
82823         and Bruno Haible  <haible@clisp.cons.org>
82824
82825         * lib/quotearg.c (mbrtowc):
82826         Assign to *pwc, and return 1 only if result is nonzero.
82827         (iswprint): Use ISPRINT when substituting our own mbrtowc.
82828
82829 2000-07-03  Jim Meyering  <meyering@lucent.com>
82830
82831         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
82832
82833 2000-07-03  Jim Meyering  <meyering@lucent.com>
82834
82835         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
82836         This is necessary to get a definition of e.g., UTMP_FILE on
82837         HP-UX 10.20.
82838         From Bob Proulx.
82839
82840 2000-07-02  Jim Meyering  <meyering@lucent.com>
82841
82842         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
82843
82844         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
82845         AC_LIBOBJ(function_name).
82846         * m4/chown.m4: Likewise.
82847         * m4/fnmatch.m4: Likewise.
82848         * m4/ftruncate.m4: Likewise.
82849         * m4/getgroups.m4: Likewise.
82850         * m4/getline.m4: Likewise.
82851         * m4/group-member.m4: Likewise.
82852         * m4/jm-macros.m4: Likewise.
82853         * m4/lstat.m4: Likewise.
82854         * m4/malloc.m4: Likewise.
82855         * m4/memcmp.m4: Likewise.
82856         * m4/nanosleep.m4: Likewise.
82857         * m4/putenv.m4: Likewise.
82858         * m4/realloc.m4: Likewise.
82859         * m4/regex.m4: Likewise.
82860         * m4/stat.m4: Likewise.
82861         * m4/strftime.m4: Likewise.
82862
82863 2000-07-02  Jim Meyering  <meyering@lucent.com>
82864
82865         * lib/quotearg.c (mbstate_t): Don't define here.
82866
82867 2000-07-02  Jim Meyering  <meyering@lucent.com>
82868
82869         * lib/nanosleep.c (SIGCONT): Define if not already defined.
82870
82871 2000-07-01  Jim Meyering  <meyering@lucent.com>
82872
82873         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
82874
82875 2000-07-01  Jim Meyering  <meyering@lucent.com>
82876
82877         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
82878         problem.
82879
82880 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
82881
82882         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
82883         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
82884
82885 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
82886
82887         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
82888         per change in ../m4/ls-mntd-fs.m4.
82889         (read_filesystem_list): Ignore symbolic links.
82890
82891 2000-06-29  Jim Meyering  <meyering@lucent.com>
82892
82893         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
82894         for declaration of strcmp.
82895
82896         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
82897
82898         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
82899         Avoid warning by casting result to `char *' to remove `const'.
82900
82901 2000-06-28  Jim Meyering  <meyering@lucent.com>
82902
82903         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
82904         included by quotearg.c, for which we perform this test.  From
82905         Bruno Haible.
82906
82907 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
82908
82909         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
82910         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
82911         <utmpx.h> exists, put readutmp.o into LIBOBJS.
82912
82913 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
82914
82915         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
82916
82917 2000-06-26  Paul Eggert  <eggert@twinsun.com>
82918
82919         savedir now sets errno on failure and invokes xmalloc to get memory.
82920         Fix a couple of other minor bugs while we're at it.
82921
82922         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
82923         (NAMLEN): Remove macro.
82924         (malloc, realloc): Remove decls.
82925         (stpcpy): Likewise.
82926         ("xalloc.h"): Include.
82927         (NAME_SIZE_DEFAULT): New macro.
82928         (savedir): Use xmalloc / xrealloc to allocate memory.
82929         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
82930         Skip "" directory entries.
82931         Use strlen to calculate directory entry length, since the old method
82932         is rarely used these days and isn't worth supporting.
82933         Don't use a pointer after freeing it.
82934         Check for integer overflow when calculating allocation size.
82935         Use memcpy to copy entries, instead of stpcpy.
82936         Set errno properly when returning NULL.
82937         Check for readdir error.
82938
82939 2000-06-26  Jim Meyering  <meyering@lucent.com>
82940
82941         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
82942
82943 2000-06-25  Jim Meyering  <meyering@lucent.com>
82944
82945         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
82946         Linux header bug when _XOPEN_SOURCE is defined to 500.
82947
82948 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
82949
82950         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
82951         deficiency.
82952
82953 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
82954
82955         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
82956         Include xalloc.h.
82957         Don't include <stdlib.h>.  Don't declare malloc, realloc.
82958
82959 2000-06-24  Jim Meyering  <meyering@lucent.com>
82960
82961         * m4/strerror_r.m4: Revive this file -- to try out an experimental
82962         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
82963         for which strerror does return char*, but which lacks a conveniently
82964         accessible declaration of the function.  If the compile-test says
82965         strerror_r doesn't work, then resort to a `run'-test that works on
82966         BeOS and segfaults on DEC Unix.
82967
82968 2000-06-24  Jim Meyering  <meyering@lucent.com>
82969
82970         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
82971
82972 2000-06-23  Paul Eggert  <eggert@twinsun.com>
82973
82974         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
82975         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
82976
82977 2000-06-23  Paul Eggert  <eggert@twinsun.com>
82978
82979         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
82980         (mbrtowc, mbstate_t): Define substitutes if
82981         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
82982         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
82983         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
82984
82985 2000-06-23  Jim Meyering  <meyering@lucent.com>
82986
82987         * m4/afs.m4: Add missing AC_MSG_RESULT.
82988         Reported by Bruno Haible.
82989
82990         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
82991         Suggestion from Bruno Haible.
82992
82993 2000-06-23  Jim Meyering  <meyering@lucent.com>
82994
82995         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
82996
82997 2000-06-21  Jim Meyering  <meyering@lucent.com>
82998
82999         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
83000
83001 2000-06-21  Jim Meyering  <meyering@lucent.com>
83002
83003         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
83004         (noinst_HEADERS): Add getstr.h.
83005
83006         * lib/getline.c (getstr): Move into a separate file.
83007         * lib/getstr.c (getstr): New file, extracted from getline.c, with
83008         the following changes: new parameter, delim2; both delim[12]
83009         parameters have type `int', not `char'.  The latter would lose
83010         with 8-bit delimiters.
83011         * lib/getstr.h: New file.
83012
83013 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
83014
83015         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
83016         than 1024, return a memory chunk of least possible size, instead
83017         of size PATH_MAX + 2. In the loop, increment the size proportionally.
83018         Use free/xmalloc instead of xrealloc to avoid copying for very long
83019         paths.
83020
83021 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
83022
83023         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
83024         the empty string.
83025
83026 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
83027
83028         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
83029         address, not strdup.  Include <stdlib.h> and don't declare free().
83030
83031 2000-06-19  Jim Meyering  <meyering@lucent.com>
83032
83033         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
83034
83035 2000-06-18  Jim Meyering  <meyering@lucent.com>
83036
83037         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
83038
83039         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
83040         `checking whether...' message to be consistent with that of the
83041         lstat test.
83042
83043 2000-06-18  Jim Meyering  <meyering@lucent.com>
83044
83045         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
83046         Besides, these days every porting target provides a mkdir function.
83047
83048         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
83049         needed. (this snippet comes from src/system.h).
83050
83051 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
83052
83053         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
83054
83055 2000-06-15  Paul Eggert  <eggert@twinsun.com>
83056
83057         * lib/human.c (adjust_value): New function.
83058         (human_readable_inexact): Apply rounding style even when
83059         printing approximate values.
83060
83061 2000-06-14  Paul Eggert  <eggert@twinsun.com>
83062
83063         * lib/human.c (human_readable_inexact): Allow an input block
83064         size that is not a multiple of the output block size, and vice versa.
83065         Reported by Piergiorgio Sartor.
83066
83067 2000-06-14  Paul Eggert  <eggert@twinsun.com>
83068
83069         * lib/getdate.y (get_date): Apply relative times after time
83070         zone indicator, not before.  Reported by Todd A. Jacobs.
83071
83072 2000-06-13  Jim Meyering  <meyering@lucent.com>
83073
83074         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
83075
83076         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
83077
83078 2000-06-12  Paul Eggert  <eggert@twinsun.com>
83079
83080         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
83081
83082 2000-06-12  Jim Meyering  <meyering@lucent.com>
83083
83084         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
83085         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
83086         optional argument.
83087         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
83088         the optional argument, `lib'.
83089
83090 2000-06-08  Jim Meyering  <meyering@lucent.com>
83091
83092         * m4/largefile.m4: Remove file (now that it's part of autoconf).
83093
83094 2000-06-04  Paul Eggert  <eggert@twinsun.com>
83095
83096         Rewrite largefile configuration so that we don't need to run
83097         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
83098         AC_CANONICAL_HOST in configure.in -- jmm]
83099
83100         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
83101         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
83102         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
83103         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
83104         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
83105         All uses changed.
83106         Instead of inspecting the output of getconf, try to compile the
83107         test program without and with the macro definition.
83108         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
83109         for getconf.  Instead, check for the needed flags by compiling
83110         test programs.
83111
83112 2000-06-04  Paul Eggert  <eggert@twinsun.com>
83113
83114         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
83115
83116 2000-06-04  Jim Meyering  <meyering@lucent.com>
83117
83118         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
83119         SunOS 4.1.4 for which gid_t is an unsigned type.
83120
83121 2000-06-03  Jim Meyering  <meyering@lucent.com>
83122
83123         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
83124         now that autoconf requires that.
83125
83126         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
83127         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
83128         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
83129
83130 2000-06-03  Jim Meyering  <meyering@lucent.com>
83131
83132         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
83133
83134 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
83135
83136         * m4/glibc21.m4: New file.
83137         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
83138
83139 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
83140
83141         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
83142         newer, don't install charset.alias.
83143         * lib/config.charset: Change the Linux/glibc rules so they become empty
83144         on glibc-2.1 or newer.
83145
83146 2000-06-02  Jim Meyering  <meyering@lucent.com>
83147
83148         * lib/mountlist.c: Back out last change.  Instead, do this...
83149         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
83150         me_dummy member using the same `ignore'-testing code.
83151         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
83152         fs_type strings.
83153         From Mark D. Roth.
83154
83155 2000-05-29  Jim Meyering  <meyering@lucent.com>
83156
83157         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
83158         mounts with the `ignore' attribute.  Based on a patch from
83159         Mark D. Roth.
83160
83161 2000-05-28  Jim Meyering  <meyering@lucent.com>
83162
83163         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
83164         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
83165         * m4/stat.m4: Likewise.
83166         * m4/lstat.m4: Likewise.
83167         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
83168
83169         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
83170         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
83171
83172 2000-05-26  Jim Meyering  <meyering@lucent.com>
83173
83174         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
83175
83176 2000-05-24  Jim Meyering  <meyering@lucent.com>
83177
83178         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
83179         autoconf requires that.
83180         * m4/lib-check.m4: Likewise.
83181         * m4/jm-macros.m4: Likewise.
83182         * m4/strftime.m4: Likewise.
83183
83184         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
83185         AC_CHECK_DECLS, now that autoconf requires that.
83186
83187 2000-05-22  Jim Meyering  <meyering@lucent.com>
83188
83189         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
83190         * m4/lstat.m4: Likewise.
83191
83192 2000-05-22  Jim Meyering  <meyering@lucent.com>
83193
83194         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
83195
83196 2000-05-20  Jim Meyering  <meyering@lucent.com>
83197
83198         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
83199         (jm_PREREQ): Use it.
83200
83201 2000-05-18  Jim Meyering  <meyering@lucent.com>
83202
83203         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
83204         back, too, since it may have been modified by allocate_entry.
83205         (hash_delete): Rewrite to use neither the assignment operator
83206         nor the comma operator in an if-expression.
83207
83208 2000-05-15  Paul Eggert  <eggert@twinsun.com>
83209
83210         * lib/closeout.c:
83211         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
83212         Remove; no longer needed.
83213         "quotearg.h": Add include.
83214         (file_name): Do not bother to explicitly initialize to NULL; it's less
83215         efficient on some hosts.
83216         (close_stdout_status): Remove test as to whether stdout was already
83217         closed; it breaks for the case "echo x | sort >&-".
83218         Quote file name colons.
83219         Do not assume that _("write error") lacks format strings.
83220
83221 2000-05-15  Jim Meyering  <meyering@lucent.com>
83222
83223         * lib/version-etc.c (version_etc_copyright): Update the copyright
83224         string used in all --version output.
83225
83226 2000-05-14  Jim Meyering  <meyering@lucent.com>
83227
83228         * lib/closeout.c (close_stdout_set_file_name): New function.
83229         (close_stdout_status): Use new file-scoped global.
83230         Return right away if fstat says the stdout file descriptor is invalid.
83231         * lib/closeout.h (close_stdout_set_file_name): Declare.
83232
83233 2000-05-10  Jim Meyering  <meyering@lucent.com>
83234
83235         * lib/closeout.c [default_exit_status]: New file-scoped variable.
83236         (close_stdout_set_status): New function.
83237         * lib/closeout.h (close_stdout_set_status): Declare.
83238
83239 2000-05-09  Jim Meyering  <meyering@lucent.com>
83240
83241         * m4/gettext.m4: Rename this...
83242         * m4/libintl.m4: ...to this.
83243
83244 2000-05-08  Jim Meyering  <meyering@lucent.com>
83245
83246         * lib/long-options.c: Don't include closeout.h.
83247         (parse_long_options): Don't call close_stdout for --version.
83248
83249 2000-05-06  Paul Eggert  <eggert@twinsun.com>
83250
83251         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
83252         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
83253         2.1.3 bug.  This avoids a clash when files like regex.c define
83254         _GNU_SOURCE.
83255
83256 2000-05-06  Jim Meyering  <meyering@lucent.com>
83257
83258         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
83259         (AC_REPLACE_FUNCS): Add strnlen.
83260
83261         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
83262         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
83263
83264         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
83265         AC_SEARCH_LIBS call for nanosleep.
83266         (LIB_NANOSLEEP): Set and AC_SUBST.
83267
83268 2000-05-06  Jim Meyering  <meyering@lucent.com>
83269
83270         * lib/strnlen.c: Undefine __strnlen and strnlen.
83271         [!weak_alias]: Define __strnlen to strnlen.
83272
83273         * lib/atexit.c: New file, from libiberty.
83274
83275 2000-05-06  Jim Meyering  <meyering@lucent.com>
83276
83277         * lib/closeout.c (close_stdout_status): Also check for errors on the
83278         stderr stream.
83279
83280 2000-05-05  Jim Meyering  <meyering@lucent.com>
83281
83282         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
83283         AC_SEARCH_LIBS call for clock_gettime.
83284         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
83285
83286         * m4/search-libs.m4: Update from autoconf.
83287
83288         su doesn't work on Solaris 2.6.
83289         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
83290         <shadow.h>.  Reported by Dragos Harabor.
83291
83292 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
83293
83294         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
83295         memcpy instead of xmalloc, xrealloc, path_concat.
83296         (locale_charset): Treat empty environment variables as absent.
83297         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
83298
83299 2000-05-04  Jim Meyering  <meyering@lucent.com>
83300
83301         * lib/getopt.c: Update from glibc.
83302         * lib/obstack.c: Likewise.
83303         * lib/obstack.h: Likewise.
83304         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
83305         file
83306
83307         * lib/regex.h: Likewise.
83308         * lib/strndup.c: Likewise.
83309         * lib/strnlen.c: New file, from glibc.
83310
83311 2000-05-03  Jim Meyering  <meyering@lucent.com>
83312
83313         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
83314
83315 2000-05-02  Paul Eggert  <eggert@twinsun.com>
83316
83317         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
83318         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
83319         compile-time test, rather than inspecting host and OS, to
83320         decide whether to define _LARGEFILE_SOURCE.
83321
83322 2000-05-01  Jim Meyering  <meyering@lucent.com>
83323
83324         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
83325
83326         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
83327         Based on a patch from Bruno Haible.
83328
83329 2000-05-01  Jim Meyering  <meyering@lucent.com>
83330
83331         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
83332
83333 2000-04-29  Jim Meyering  <meyering@lucent.com>
83334
83335         * lib/path-concat.c: Declare strdup only if it's not defined.
83336         * lib/canon-host.c: Likewise.
83337
83338 2000-04-28  Jim Meyering  <meyering@lucent.com>
83339
83340         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
83341         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
83342         is included first, then limits.h is included by locale.h by libintl.h.
83343         From John David Anglin.
83344
83345 2000-04-25  Jim Meyering  <meyering@lucent.com>
83346
83347         * lib/makepath.c (S_IRWXUGO): Define.
83348         (make_path): Always perform explicit chmod if MODE specifies any
83349         of the `special' permission bits.  Prompted by a bug report against
83350         install from Mate Wierdl and Joost van Baal.
83351
83352 2000-04-18  Jim Meyering  <meyering@lucent.com>
83353
83354         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
83355         (jm_PREREQ): Use it.
83356
83357 2000-04-18  Jim Meyering  <meyering@lucent.com>
83358
83359         * lib/README: New file.
83360
83361         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
83362         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
83363
83364 2000-04-17  Jim Meyering  <meyering@lucent.com>
83365
83366         Get it right :-)
83367         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
83368         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
83369         Suggestion from Akim Demaille.
83370
83371 2000-04-17  Jim Meyering  <meyering@lucent.com>
83372
83373         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
83374         the definition of it to rpl_strftime also defined-away the system's
83375         declaration.
83376
83377 2000-04-15  Jim Meyering  <meyering@lucent.com>
83378
83379         Use `C' to denote so-called `contiguous' files, the same way
83380         that tar does.
83381         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
83382         (ftypelet): Use S_ISCTG.
83383         From Michael Deutschmann.
83384
83385 2000-04-14  Jim Meyering  <meyering@lucent.com>
83386
83387         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
83388         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
83389         clobbered.
83390
83391 2000-04-14  Jim Meyering  <meyering@lucent.com>
83392
83393         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
83394
83395 2000-04-13  Jim Meyering  <meyering@lucent.com>
83396
83397         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
83398         AH_VERBATIM to insert required #ifndef into config.h.in.
83399         Suggestion from Akim Demaille.
83400
83401 2000-04-12  Jim Meyering  <meyering@lucent.com>
83402
83403         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
83404         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
83405         Christian Krackowizer.
83406
83407         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
83408         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
83409         (AC_SYS_LARGEFILE): Require.
83410         (AM_C_PROTOTYPES): Require.
83411
83412 2000-04-08  Jim Meyering  <meyering@lucent.com>
83413
83414         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
83415         names don't conflict.  Reported by Eli Zaretskii.
83416
83417 2000-04-07  Jim Meyering  <meyering@lucent.com>
83418
83419         * lib/putenv.c: Move inclusion of errno.h so it follows that of
83420         sys/types.h, to work around system header problems on AIX 3.2.5.
83421         From Bruno Haible.
83422
83423 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
83424
83425         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
83426         bug.  Deal with the different error behavior of Irix iconv.
83427
83428 2000-04-05  Paul Eggert  <eggert@twinsun.com>
83429
83430         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
83431         IRIX if the installer said otherwise.
83432
83433 2000-04-05  Jim Meyering  <meyering@lucent.com>
83434
83435         Portability tweaks required for ultrix4.3.
83436         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
83437         (jm_CHECK_DECLS): Add getutent to the list of functions.
83438         (_jm_DECL_HEADERS): Add utmpx.h.
83439         From John David Anglin.
83440
83441         * m4/strftime.m4: Back out the 2000-04-02 change.
83442         Instead of that change, simply undefine putenv in the test program.
83443
83444 2000-04-05  Jim Meyering  <meyering@lucent.com>
83445
83446         Portability tweaks required for ultrix4.3.
83447         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
83448         getutent.
83449         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
83450         * lib/canon-host.c: Declare strdup.
83451         * lib/path-concat.c: Likewise.
83452         From John David Anglin.
83453
83454 2000-04-04  Jim Meyering  <meyering@lucent.com>
83455
83456         Be more DOS 8.3-friendly.
83457         * lib/ref-add.sin: Renamed from ref-add.sed.in.
83458         * lib/ref-del.sin: Renamed from ref-del.sed.in.
83459         * lib/Makefile.am: Reflect renaming.
83460         Reported by Eli Zaretskii.
83461
83462         Use a temporary file name that won't clash with `charset.alias'
83463         in the DOS 8.3 name space.
83464         * lib/Makefile.am (charset_tmp): Define.
83465         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
83466         (uninstall-local): Likewise.
83467         Reported by Eli Zaretskii.
83468
83469 2000-04-03  Jim Meyering  <meyering@lucent.com>
83470
83471         * m4/gettext.m4: Fix typo in comment.
83472
83473         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
83474         textutils/configure.in).  Suggestion from Paul Eggert.
83475         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
83476
83477 2000-04-02  Paul Eggert  <eggert@twinsun.com>
83478
83479         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
83480         variable in the shell rather than using putenv, which isn't
83481         portable.  This avoids the configure-time inter-test dependency
83482         on the potentially-renamed putenv function.
83483
83484 2000-03-30  Paul Eggert  <eggert@twinsun.com>
83485
83486         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
83487         before checking struct stat.st_blksize, so that
83488         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
83489
83490 2000-03-29  Paul Eggert  <eggert@twinsun.com>
83491
83492         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
83493         since strftime.c uses HAVE_STRFTIME to decide whether to use
83494         the underlying strftime.
83495
83496 2000-03-29  Paul Eggert  <eggert@twinsun.com>
83497
83498         * lib/time/strftime.c (my_strftime): Make sure we call the system
83499         strftime, not ourselves, when invoking the underlying strftime.
83500
83501 2000-03-24  Jim Meyering  <meyering@lucent.com>
83502
83503         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
83504         (charset_alias): Define.
83505         (install-exec-local): Factor out common code.
83506         (uninstall-local): Split lines longer than 80.
83507         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
83508         (SUFFIXES): Define.
83509         (.sed.in.sed): New rule.  Don't redirect directly to $@.
83510         (CLEANFILES): Add ref-add.sed and ref-del.sed.
83511
83512 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
83513
83514         * lib/config.charset: Output a line containing "Packages using this
83515         file".
83516         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
83517         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
83518         ref-del.sed): New rules.
83519
83520 2000-03-17  Jim Meyering  <meyering@lucent.com>
83521
83522         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
83523         Otherwise, include <strings.h>
83524
83525 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
83526
83527         * lib/unicodeio.c (utf8_wctomb): New function.
83528         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
83529         format instead of in UCS-4 with platform dependent endianness.
83530
83531 2000-03-10  Jim Meyering  <meyering@lucent.com>
83532
83533         * m4/lib-check.m4: Look for getspnam in -lgen, too.
83534         From Marco Franzen.
83535
83536 2000-03-07  Paul Eggert  <eggert@twinsun.com>
83537
83538         * lib/savedir.c (savedir): Work even if directory size is
83539         negative; this can happen with some screwy NFS configurations.
83540
83541 2000-03-06  Jim Meyering  <meyering@lucent.com>
83542
83543         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
83544         if it's NULL (because we ran out of memory).  From Bruno Haible.
83545
83546 2000-03-05  Jim Meyering  <meyering@lucent.com>
83547
83548         * lib/localcharset.c ("path-concat.h"): Include.
83549         (get_charset_aliases): Use path_concat instead of ANSI string
83550         concatenation.
83551
83552         * lib/unicodeio.h (PARAMS): Define.
83553         Use it to guard prototype.
83554
83555 2000-03-04  Jim Meyering  <meyering@lucent.com>
83556
83557         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
83558         for lib/localcharset.c.
83559
83560 2000-03-04  Jim Meyering  <meyering@lucent.com>
83561
83562         * lib/Makefile.am (install-exec-local): Create $(libdir) before
83563         installing into it.
83564         (uninstall-local): Uncomment this rule so `make distcheck' works
83565         once again.
83566
83567         * lib/unicodeio.c (<errno.h>): Include it.
83568         (errno): Declare if not defined.
83569
83570         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
83571
83572         * lib/config.charset: New version, incorporating remarks from a linux
83573         i18n mailing list.  From Bruno Haible.
83574
83575 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
83576
83577         * m4/codeset.m4: New file.
83578         * m4/iconv.m4: New file.
83579         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
83580
83581 2000-03-03  Jim Meyering  <meyering@lucent.com>
83582
83583         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
83584
83585 2000-03-02  Jim Meyering  <meyering@lucent.com>
83586
83587         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
83588         the messages come out on separate lines.
83589
83590         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
83591         rather than jm_CHECK_DECLARATIONS.
83592         * m4/decl.m4: Remove now-unused file.
83593
83594         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
83595         geteuid.
83596
83597 2000-03-02  Jim Meyering  <meyering@lucent.com>
83598
83599         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
83600
83601 2000-03-01  Jim Meyering  <meyering@lucent.com>
83602
83603         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
83604         * lib/unicodeio.c: Likewise.
83605
83606 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
83607
83608         * lib/config.charset: New file.
83609         * lib/localcharset.c: New file.
83610         * lib/unicodeio.h, lib/unicodeio.c: New files.
83611         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
83612         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
83613         (noinst_HEADERS): Add unicodeio.h.
83614         (all-local, install-exec-local, charset.alias): New targets.
83615
83616 2000-02-28  Paul Eggert  <eggert@twinsun.com>
83617
83618         * lib/quotearg.c (ALERT_CHAR): New macro.
83619         (quotearg_buffer_restyled): Use it.
83620
83621 2000-02-27  Jim Meyering  <meyering@lucent.com>
83622
83623         * m4/check-decl.m4: Add getenv to the list.
83624
83625 2000-02-27  Jim Meyering  <meyering@lucent.com>
83626
83627         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
83628         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
83629
83630         * lib/backupfile.c: Guard inclusion of stdlib.h with
83631         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
83632         Declare malloc if needed.
83633
83634         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
83635         `#ifndef HAVE_DECL..'
83636         now that autoconf always defines the HAVE_DECL_ symbols.
83637         * lib/human.c: Likewise.
83638         * lib/same.c: Likewise.
83639         * lib/strtoumax.c: Likewise.
83640
83641         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
83642         declaration check was not run.
83643         * lib/hash.c: Likewise.
83644         * lib/human.c: Likewise.
83645         * lib/same.c: Likewise.
83646         * lib/strtoumax.c: Likewise.
83647
83648         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
83649         `.', then first look up the entire `.'-containing string as a login
83650         name.
83651
83652 2000-02-23  Jim Meyering  <meyering@lucent.com>
83653
83654         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
83655         in place of my hack.
83656
83657 2000-02-18  Paul Eggert  <eggert@twinsun.com>
83658
83659         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
83660         (textint): New typedef.
83661         (parser_control): Member year changed from int to textint.
83662         All uses changed.
83663         (YYSTYPE): Removed; replaced by %union with int and textint members.
83664         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
83665         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
83666         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
83667         (tSNUMBER, tUNUMBER): Now of type <textintval>.
83668         (date, number, to_year): Use width of number in digits, not its value,
83669         to determine whether it's a 2-digit year, or a 2-digit time.
83670         (yylex): Store number of digits of numeric tokens.
83671         Reported by John Kendall.
83672
83673         (parser_control): Changed from struct parser_control to typedef (for
83674         consistency).  All uses changed.
83675
83676         (tID): Removed; not used.
83677         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
83678
83679 2000-02-14  Paul Eggert  <eggert@twinsun.com>
83680
83681         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
83682         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
83683
83684 2000-02-12  Jim Meyering  <meyering@lucent.com>
83685
83686         * lib/userspec.c (ISDIGIT): Define it.
83687         (isdigit): Remove definition.
83688         (is_number): Use ISDIGIT, not isdigit.
83689         <libintl.h>: Include.
83690         (_ and N_): Define.
83691         (parse_user_spec): Mark translatable strings.
83692
83693 2000-02-10  Jim Meyering  <meyering@lucent.com>
83694
83695         With these changes, nanosleep.[ch] are finally enough like the other
83696         lib/* replacement files to compile on a few more losing systems.
83697
83698         * lib/nanosleep.h: Don't include config.h.
83699         Remove prototype from declaration of nanosleep.
83700         (PARAMS): Remove now-unneeded definition.
83701         * lib/nanosleep.c: #undef nanosleep.
83702         (rpl_nanosleep): Rename from nanosleep.
83703
83704 2000-02-10  Jim Meyering  <meyering@lucent.com>
83705
83706         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
83707         gnu_nanosleep to rpl_nanosleep.
83708
83709 2000-02-09  Jim Meyering  <meyering@lucent.com>
83710
83711         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
83712         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
83713
83714 2000-02-08  Akim Demaille  <akim@epita.fr>
83715
83716         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
83717         `[' and `]' and remove uses of `changequote'.
83718         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
83719         (AC_SYS_LARGEFILE): Likewise.
83720         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
83721         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
83722         of changequote.
83723         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
83724         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
83725         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
83726         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
83727
83728 2000-02-05  Jim Meyering  <meyering@lucent.com>
83729
83730         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
83731         Remove explicit use of AC_HEADER_TIME.  It is required by
83732         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
83733         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
83734         in autoconf whereby the expansion of the latter ended up preceding
83735         the expansion of its prerequisite, AC_HEADER_TIME.
83736         Reported by Volker Borchert.
83737
83738 2000-02-03  Jim Meyering  <meyering@lucent.com>
83739
83740         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
83741
83742 2000-02-03  Jim Meyering  <meyering@lucent.com>
83743
83744         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
83745         rather than with `#if HAVE_UTMPNAME'.
83746
83747 2000-02-02  Jim Meyering  <meyering@lucent.com>
83748
83749         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
83750         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
83751         Reported by Eli Zaretskii.
83752
83753 2000-02-01  Jim Meyering  <meyering@lucent.com>
83754
83755         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
83756
83757 2000-01-31  Jim Meyering  <meyering@lucent.com>
83758
83759         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
83760         functions.  Add the time.h and sys/time.h headers along with the
83761         AC_REQUIRE'ment of AC_HEADER_TIME.
83762
83763 2000-01-31  Jim Meyering  <meyering@lucent.com>
83764
83765         * lib/nanosleep.h (nanosleep): Guard declaration with
83766         `#if ! HAVE_DECL_NANOSLEEP'.
83767         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
83768         the declaration in that vendor's sys/timers.h.
83769         Reported by Christian Krackowizer.
83770
83771         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
83772         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
83773         (ISPRINT): Likewise.
83774         Reported by Tom Tromey.
83775
83776 2000-01-30  Jim Meyering  <meyering@lucent.com>
83777
83778         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
83779
83780         * m4/prereq.m4 (utmp_includes): Define.
83781         Check for ut_user and ut_name members in both struct utmpx
83782         and struct utmp.
83783
83784 2000-01-30  Jim Meyering  <meyering@lucent.com>
83785
83786         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
83787         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
83788         header files where only utmpx.ut_user is declared.
83789
83790         * lib/readutmp.h (UT_USER): Define.
83791
83792 2000-01-29  Jim Meyering  <meyering@lucent.com>
83793
83794         * m4/lib-check.m4: New file containing library-related checks from
83795         fileutils and sh-utils (textutils had none).
83796
83797 2000-01-28  Jim Meyering  <meyering@lucent.com>
83798
83799         * m4/perl.m4: Change format of warning message to look more like that
83800         from the missing script.  Suggestion from François Pinard.
83801
83802 2000-01-25  Jim Meyering  <meyering@lucent.com>
83803
83804         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
83805         well as time.h in the compile check.
83806         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
83807         Fix typo in cross-compiling case: s/yes/no/.
83808
83809 2000-01-23  Jim Meyering  <meyering@lucent.com>
83810
83811         * m4/jm-macros.m4: Move df-related tests here from
83812         fileutils/configure.in
83813
83814         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
83815         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
83816
83817         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
83818         s/space/ac_fsusage_space/.
83819         (jm_FILE_SYSTEM_USAGE): Take two parameters.
83820
83821         * m4/ftruncate.m4: New file (derived from part of
83822         fileutils/configure.in).
83823         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
83824         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
83825
83826         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
83827         AC_SUBST these here, rather than just in sh-util/configure.in, so
83828         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
83829         all the same.
83830         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
83831         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
83832         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
83833         (AC_SUBST(POW_LIBM)): Likewise.
83834         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
83835
83836 2000-01-23  Jim Meyering  <meyering@lucent.com>
83837
83838         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
83839         obstack.c.
83840
83841 2000-01-22  Jim Meyering  <meyering@lucent.com>
83842
83843         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
83844
83845         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
83846
83847         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
83848         configure.in
83849         (AC_CHECK_HEADERS): Likewise for sh-utils.
83850         (AC_CHECK_HEADERS): Likewise for textutils.
83851         Merge the three lists of headers.
83852
83853         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
83854         from fileutils' configure.in.
83855
83856         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
83857         code. Moved tests into their own function (_jm_DECL_HEADERS) in
83858         check-decl.m4.
83859
83860         * m4/check-decl.m4: Use #if rather than #ifdef.
83861         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
83862         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
83863         (_jm_DECL_HEADERS): Define new function.
83864         (jm_CHECK_DECLARATIONS): Require it.
83865
83866 2000-01-22  Jim Meyering  <meyering@lucent.com>
83867
83868         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
83869         [! HAVE_DECL_STRTOULL]: Declare strtoull.
83870         Required for some AIX systems.  Reported by Christian Krackowizer.
83871         [TESTING] (main): New function.
83872
83873         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
83874         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
83875         letters.
83876
83877         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
83878         iswprint.
83879
83880         * lib/strverscmp.c (ISDIGIT): Define.
83881         (strverscmp): Use ISDIGIT, not isdigit.
83882
83883 2000-01-19  Jim Meyering  <meyering@lucent.com>
83884
83885         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
83886         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
83887         defines `struct timespec' in <sys/time.h>
83888
83889         * m4/c-bs-a.m4: Remove uses of changequote altogether.
83890         Thanks to Akim for explaining.
83891
83892 2000-01-17  Paul Eggert  <eggert@twinsun.com>
83893
83894         * lib/nanosleep.c (nanosleep):
83895         Don't use SA_INTERRUPT to decide whether to call sigaction, as
83896         POSIX.1 doesn't require SA_INTERRUPT and some systems
83897         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
83898         it's been part of POSIX.1 since day 1 (in 1988).
83899
83900 2000-01-17  Jim Meyering  <meyering@lucent.com>
83901
83902         * lib/interlock: Remove unused file.  Reported by François Pinard.
83903
83904 2000-01-16  Paul Eggert  <eggert@twinsun.com>
83905
83906         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
83907         alert, backslash, formfeed, and vertical tab unnecessarily in
83908         shell quoting style.
83909
83910 2000-01-16  Jim Meyering  <meyering@lucent.com>
83911
83912         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
83913         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
83914         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
83915         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
83916
83917 2000-01-16  Jim Meyering  <meyering@lucent.com>
83918
83919         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
83920         because the latter didn't work.
83921
83922 2000-01-15  Jim Meyering  <meyering@lucent.com>
83923
83924         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
83925         (AC_REPLACE_FUNCS): Add memcpy and memset.
83926         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
83927         Add strpbrk.
83928         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
83929
83930 2000-01-12  Jim Meyering  <meyering@lucent.com>
83931
83932         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
83933         (jm_PREREQ): Use it.
83934         (jm_PREREQ_READUTMP): New macro.
83935         (jm_PREREQ): Use it.
83936
83937 2000-01-11  Paul Eggert  <eggert@twinsun.com>
83938
83939         Quote multibyte characters correctly.
83940         * m4/c-bs-a.m4: New file.
83941         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
83942         (jm_PREREQ): Use it.
83943
83944 2000-01-11  Paul Eggert  <eggert@twinsun.com>
83945
83946         * m4/uintmax_t.m4: Port to autoconf 2.13.
83947
83948 2000-01-08  Jim Meyering  <meyering@ascend.com>
83949
83950         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
83951         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
83952
83953 2000-01-04  Jim Meyering  <meyering@ascend.com>
83954
83955         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
83956         jm_STRUCT_DIRENT_D_TYPE.
83957         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
83958         jm_STRUCT_DIRENT_D_INO.
83959         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
83960         jm_STRUCT_UTIMBUF.
83961         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
83962         renamings.
83963         * m4/utime.m4: Likewise.
83964
83965         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
83966         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
83967
83968 2000-01-03  Paul Eggert  <eggert@twinsun.com>
83969
83970         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
83971         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
83972
83973 2000-01-02  Jim Meyering  <meyering@ascend.com>
83974
83975         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
83976         remember if this is necessary.
83977
83978 1999-12-26  Jim Meyering  <meyering@ascend.com>
83979
83980         * m4/jm-macros.m4: Use it here.
83981         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
83982
83983 1999-12-23  Jim Meyering  <meyering@ascend.com>
83984
83985         * m4/jm-macros.m4: Check for clock_gettime (moved from
83986         fileutils/configure.in)
83987         Check for gettimeofday.
83988
83989 1999-12-20  Jim Meyering  <meyering@ascend.com>
83990
83991         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
83992         autoconf-2.14a-1999-12-20.
83993
83994 1999-12-19  Jim Meyering  <meyering@ascend.com>
83995
83996         * m4/lstat-slash.m4: New file.
83997         * m4/jm-macros.m4: Use the new macro:
83998         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
83999
84000 1999-12-07  Jim Meyering  <meyering@ascend.com>
84001
84002         * m4/perl.m4: Require that File::Compare be available, too.
84003         Too many systems seem to lack it.
84004
84005         * m4/strftime.m4: Add checks for most of the cpp macros tested in
84006         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
84007
84008 1999-11-18  Paul Eggert  <eggert@twinsun.com>
84009
84010         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
84011         problem with the QNX 4.25 shell, which doesn't propagate exit
84012         status of failed commands inside shell assignments.
84013
84014 1999-11-17  Jim Meyering  <meyering@ascend.com>
84015
84016         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
84017
84018 1999-11-07  Jim Meyering  <meyering@ascend.com>
84019
84020         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
84021
84022 1999-11-06  Jim Meyering  <meyering@ascend.com>
84023
84024         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
84025         * m4/jm-macros.m4 (jm_MACROS): Use it here.
84026
84027 1999-11-05  Jim Meyering  <meyering@ascend.com>
84028
84029         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
84030         configure.in of textutils, fileutils, and sh-utils into this one
84031         (shared between those packages) file.
84032         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
84033         AC_STRUCT_ST_BLKSIZE.
84034
84035 1999-11-03  Jim Meyering  <meyering@ascend.com>
84036
84037         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
84038         of AC_CHECK_TYPE checks includes unistd.h.
84039         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
84040         Suggestion from Akim Demaille.
84041
84042 1999-10-30  Jim Meyering  <meyering@ascend.com>
84043
84044         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
84045         m4-quoted string.
84046         * m4/ls-mntd-fs.m4: Likewise.
84047         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
84048         * m4/jm-winsz1.m4: Likewise.
84049
84050         * m4/const.m4: Remove file, since the fix made it into the experimental
84051         version of autoconf.
84052         * m4/mktime.m4: Likewise.
84053
84054         * m4/check-type.m4: Remove file, now that the latest version of
84055         AC_CHECK_TYPE takes a third arg to specify additional #includes.
84056
84057         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
84058         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
84059         AC_CHECK_TYPE.
84060
84061 1999-10-04  Jim Meyering  <meyering@ascend.com>
84062
84063         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
84064
84065 1999-09-22  Paul Eggert  <eggert@twinsun.com>
84066
84067         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
84068         2.95.1 bug with HP-UX 10.20.
84069
84070 1999-09-17  Jim Meyering  <meyering@ascend.com>
84071
84072         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
84073         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
84074         due to missing strdup (against sh-utils-2.0).
84075
84076 1999-08-29  Jim Meyering  <meyering@ascend.com>
84077
84078         * m4/jm-macros.m4: Require jm_BISON.
84079         * m4/bison.m4: New file.
84080
84081 1999-08-17  Paul Eggert  <eggert@twinsun.com>
84082
84083         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
84084         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
84085
84086 1999-08-05  Jim Meyering  <meyering@ascend.com>
84087
84088         * m4/getline.m4: Rename test file from conftestdata to conftest.data
84089         to avoid conflicts with `conftest' on 8+3 filesystems.
84090         Suggestion from Eli Zaretskii.
84091
84092 1999-08-04  Jim Meyering  <meyering@ascend.com>
84093
84094         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
84095         fileutils and sh-utils (textutils's getline test was inadequate).
84096         (AM_FUNC_GETLINE): Run this test.
84097         (AC_CHECK_FUNCS): Check for getdelim.
84098         Reported by Bob Proulx.
84099
84100 1999-08-02  Jim Meyering  <meyering@ascend.com>
84101
84102         * m4/jm-macros.m4: Add a comment.
84103
84104 1999-08-01  Paul Eggert  <eggert@twinsun.com>
84105
84106         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
84107         <inttypes.h> defines strtoumax as a macro (and not as a
84108         function).
84109
84110 1999-08-01  Paul Eggert  <eggert@twinsun.com>
84111
84112         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
84113         that we can shift, multiply and divide unsigned long long
84114         values; Ultrix cc can't do it.
84115
84116 1999-08-01  Paul Eggert  <eggert@twinsun.com>
84117
84118         * m4/mktime.m4: New file, which is a preview of what should appear
84119         in the next public autoconf release.
84120
84121 1999-08-01  Paul Eggert  <eggert@twinsun.com>
84122
84123         * m4/lfs.m4: Remove this file.
84124         * m4/largefile.m4: New file.  It contains the old contents of
84125         lfs.m4, except that all names with prefix AC_LFS have been
84126         changed to use the prefix AC_SYS_LARGEFILE instead, to be
84127         compatible with future autoconf versions.  Also, some minor m4
84128         quoting problems have been fixed.
84129
84130 1999-08-01  Paul Eggert  <eggert@twinsun.com>
84131
84132         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
84133         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
84134         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
84135         and simplify the shell code.
84136
84137 1999-08-01  Jim Meyering  <meyering@ascend.com>
84138
84139         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
84140         m4.
84141
84142 1999-07-20  Jim Meyering  <meyering@ascend.com>
84143
84144         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
84145
84146 1999-07-15  Jim Meyering  <meyering@ascend.com>
84147
84148         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
84149
84150 1999-05-22  Jim Meyering  <meyering@ascend.com>
84151
84152         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
84153
84154 1999-05-20  Jim Meyering  <meyering@ascend.com>
84155
84156         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
84157         Add a colon after each `then' in case $4 is empty.
84158
84159 1999-05-16  Jim Meyering  <meyering@ascend.com>
84160
84161         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
84162
84163 1999-05-10  Jim Meyering  <meyering@ascend.com>
84164
84165         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
84166
84167         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
84168         AC_FUNC_MKTIME.
84169
84170 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
84171
84172         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
84173
84174 1999-05-04  Paul Eggert  <eggert@twinsun.com>
84175
84176         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
84177         not CPPFLAGS, so that linking works correctly in IRIX.
84178
84179 1999-04-30  Paul Eggert  <eggert@twinsun.com>
84180
84181         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
84182
84183 1999-04-20  Paul Eggert  <eggert@twinsun.com>
84184
84185         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
84186         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
84187         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
84188         jm_AC_TYPE_UNSIGNED_LONG_LONG.
84189         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
84190
84191         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
84192
84193 1999-04-20  Jim Meyering  <meyering@ascend.com>
84194
84195         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
84196         AC_REPLACE xstroull if necessary.  From Paul Eggert.
84197         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
84198
84199 1999-04-18  Jim Meyering  <meyering@ascend.com>
84200
84201         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
84202         * m4/jm-macros.m4: Use it.
84203
84204 1999-04-06  Jim Meyering  <meyering@ascend.com>
84205
84206         * m4/strftime.m4: Remove test for %f.
84207
84208 1999-03-29  Jim Meyering  <meyering@ascend.com>
84209
84210         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
84211         superset of the AC_TYPE_* checks in the textutils, fileutils,
84212         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
84213         AC_TYPE_PID_T.
84214
84215 1999-03-28  Jim Meyering  <meyering@ascend.com>
84216
84217         * m4/jm-macros.m4: Define GNU_PACKAGE here.
84218         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
84219         replaced e.g., in the *.sh files of the sh-utils.
84220
84221 1999-03-20  Jim Meyering  <meyering@ascend.com>
84222
84223         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
84224         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
84225         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
84226
84227 1999-03-19  Jim Meyering  <meyering@ascend.com>
84228
84229         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
84230
84231 1999-03-12  Jim Meyering  <meyering@ascend.com>
84232
84233         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
84234
84235 1999-03-07  Jim Meyering  <meyering@ascend.com>
84236
84237         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
84238         declared.
84239
84240 1999-02-17  Jim Meyering  <meyering@ascend.com>
84241
84242         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
84243         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
84244
84245 1999-02-07  Jim Meyering  <meyering@ascend.com>
84246
84247         * m4/group-member.m4: New file -- extracted from sh-utils'
84248         configure.in.
84249
84250         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
84251         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
84252
84253 1999-02-06  Jim Meyering  <meyering@ascend.com>
84254
84255         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
84256         * m4/fnmatch.m4: Likewise.
84257         * m4/getgroups.m4: Likewise.
84258         * m4/lstat.m4: Likewise.
84259         * m4/malloc.m4: Likewise.
84260         * m4/putenv.m4: Likewise.
84261         * m4/realloc.m4: Likewise.
84262         * m4/regex.m4: Likewise.
84263         * m4/stat.m4: Likewise.
84264         * m4/strftime.m4: Likewise.
84265         Suggestion from Alain Magloire.
84266
84267         * m4/chown.m4: Use `.$ac_objext', not `.o'.
84268         * m4/fnmatch.m4: Likewise.
84269         * m4/getgroups.m4: Likewise.
84270         * m4/getline.m4: Likewise.
84271         * m4/lstat.m4: Likewise.
84272         * m4/malloc.m4: Likewise.
84273         * m4/memcmp.m4: Likewise.
84274         * m4/putenv.m4: Likewise.
84275         * m4/realloc.m4: Likewise.
84276         * m4/regex.m4: Likewise.
84277         * m4/stat.m4: Likewise.
84278         * m4/strftime.m4: Likewise.
84279         Suggestion from Alain Magloire.
84280
84281         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
84282         an argument.
84283
84284         * m4/regex.m4: Add a run-time Test for proper operation of
84285         re_compile_pattern.
84286
84287 1999-01-31  Jim Meyering  <meyering@ascend.com>
84288
84289         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
84290
84291 1999-01-30  Jim Meyering  <meyering@ascend.com>
84292
84293         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
84294
84295         * m4/jm-mktime.m4: Make this a wrapper around the official
84296         AM_FUNC_MKTIME rather than my private copy, now that the official one
84297         is up to date.
84298         * m4/mktime.m4: Remove file.
84299
84300         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
84301         * m4/uptime.m4: Likewise.
84302         * m4/uintmax_t.m4: Likewise.
84303
84304 1999-01-28  Jim Meyering  <meyering@ascend.com>
84305
84306         * m4/jm-macros.m4: Use jm_AFS.
84307         * m4/afs.m4: New file (from fileutils' configure.in).
84308
84309         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
84310         * m4/chown.m4: Likewise.
84311         * m4/d-ino.m4: Likewise.
84312         * m4/d-type.m4: Likewise.
84313         * m4/fnmatch.m4: Likewise.
84314         * m4/getgroups.m4: Likewise.
84315         * m4/gettext.m4: Likewise.
84316         * m4/jm-mktime.m4: Likewise.
84317         * m4/jm-winsz2.m4: Likewise.
84318         * m4/lcmessage.m4: Likewise.
84319         * m4/ls-mntd-fs.m4: Likewise.
84320         * m4/malloc.m4: Likewise.
84321         * m4/memcmp.m4: Likewise.
84322         * m4/putenv.m4: Likewise.
84323         * m4/realloc.m4: Likewise.
84324         * m4/st_mtim.m4: Likewise.
84325         * m4/strftime.m4: Likewise.
84326
84327 1999-01-16  Jim Meyering  <meyering@ascend.com>
84328
84329         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
84330         (ARGMATCH_DIE_DECL): Define.
84331
84332 1999-01-12  Jim Meyering  <meyering@ascend.com>
84333
84334         * m4/Makefile.am.in: Rewrite to avoid using fmt.
84335         Reported by Lars Hecking.
84336
84337 1999-01-10  Jim Meyering  <meyering@ascend.com>
84338
84339         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
84340         gross kludge.
84341         * m4/inttypes_h.m4: Likewise.
84342         * m4/lstat.m4: Likewise.
84343         * m4/malloc.m4: Likewise.
84344         * m4/readdir.m4: Likewise.
84345         * m4/realloc.m4: Likewise.
84346         * m4/st_dm_mode.m4: Likewise.
84347         * m4/stat.m4: Likewise.
84348         * m4/utimbuf.m4: Likewise.
84349         * m4/utimes.m4: Likewise.
84350
84351         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
84352         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
84353         comments in config.h.in are meaningful.
84354
84355         * m4/jm-macros.m4: Require autoconf-2.13 here.
84356
84357         * m4/regex.m4: By default, don't use the included regex.c on systems
84358         with glibc 2.  Suggestion from Uli Drepper.
84359
84360 1999-01-02  Jim Meyering  <meyering@ascend.com>
84361
84362         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
84363
84364 1998-12-18  Jim Meyering  <meyering@ascend.com>
84365
84366         * m4/Makefile.am.in (Makefile.am): Simplify rule.
84367         Based on a suggestion from Lars Hecking.
84368
84369 1998-11-16  Paul Eggert  <eggert@twinsun.com>
84370
84371         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
84372
84373 1998-11-16  Jim Meyering  <meyering@ascend.com>
84374
84375         * m4/lfs.m4: Double-quote the `uname...` expression.
84376
84377 1998-11-14  Jim Meyering  <meyering@ascend.com>
84378
84379         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
84380         * m4/stat.m4: Likewise.
84381
84382 1998-11-03  Jim Meyering  <meyering@ascend.com>
84383
84384         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
84385         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
84386
84387 1998-10-18  Jim Meyering  <meyering@ascend.com>
84388
84389         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
84390
84391 1998-10-17  Jim Meyering  <meyering@ascend.com>
84392
84393         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
84394         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
84395         calls for those previously hard-coded headers.  Instead, take a new
84396         parameter.
84397         (jm_CHECK_DECLARATIONS): Reflect interface change.
84398         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
84399         (jm_CHECK_DECL_LOCALTIME_R): New macro.
84400
84401         * m4/mktime.m4: Test for spring-forward gap before long-running test.
84402
84403 1998-10-14  Jim Meyering  <meyering@ascend.com>
84404
84405         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
84406         instead of "TZ=America/Vancouver".  From Paul Eggert.
84407
84408 1998-10-11  Jim Meyering  <meyering@ascend.com>
84409
84410         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
84411         This adds a test for a recently added compatibility fix for mktime.c.
84412         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
84413
84414 1998-09-27  Jim Meyering  <meyering@ascend.com>
84415
84416         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
84417
84418         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
84419         ../configure.in, including a change from Gordon Matzigkeit to allow
84420         cross-compiling for the Hurd.
84421
84422         * m4/glibc.m4: New file/macro to test for the GNU C Library
84423         versions 1 and 2.  From Gordon Matzigkeit.
84424         Indent.
84425
84426 1998-09-21  Jim Meyering  <meyering@ascend.com>
84427
84428         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
84429
84430 1998-08-18  Paul Eggert  <eggert@twinsun.com>
84431
84432         Port nanosecond-resolution times to UnixWare 2.1.2 and
84433         pedantic Solaris 2.6.
84434
84435         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
84436         AC_STRUCT_ST_MTIM.
84437         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
84438         Generate name of ns member, instead of just 1 or undef.
84439         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
84440
84441 1998-08-15  Jim Meyering  <meyering@ascend.com>
84442
84443         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
84444         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
84445         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
84446         instead of jm_TYPE_SSIZE_T.
84447
84448 1998-08-12  Jim Meyering  <meyering@ascend.com>
84449
84450         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
84451
84452 1998-08-02  Jim Meyering  <meyering@ascend.com>
84453
84454         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
84455         in acconfig.h manually.
84456
84457 1998-07-31  Paul Eggert  <eggert@twinsun.com>
84458
84459         * m4/st_mtim.m4: New file.
84460
84461 1998-07-28  Jim Meyering  <meyering@ascend.com>
84462
84463         * m4/utimes.m4: Undef stat.
84464
84465 1998-07-25  Jim Meyering  <meyering@ascend.com>
84466
84467         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
84468         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
84469
84470 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
84471
84472         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
84473         uid and gid actually remain unchanged.
84474
84475 1998-07-07  Jim Meyering  <meyering@ascend.com>
84476
84477         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
84478
84479 1998-07-04  Jim Meyering  <meyering@ascend.com>
84480
84481         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
84482         to prove that this macro can be used in packages without regex.c.
84483
84484 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
84485
84486         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
84487         is to be used.
84488
84489 1998-07-03  Jim Meyering  <meyering@ascend.com>
84490
84491         * m4/gettext.m4: Add -lintl if it's found to be necessary.
84492
84493         * m4/gettext.m4: New file -- from gettext-0.10.35.
84494         * m4/lcmessage.m4: Likewise.
84495         * m4/progtest.m4: Likewise.
84496
84497         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
84498         * m4/jm-macros.m4: Require the new macro.
84499
84500 1998-06-29  Jim Meyering  <meyering@ascend.com>
84501
84502         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
84503         for the definition of NGROUPS (used in a system header included
84504         by sys/mount.h).
84505
84506 1998-06-28  Jim Meyering  <meyering@ascend.com>
84507
84508         * m4/ls-mntd-fs.m4: New file.
84509         * m4/fstypename.m4: New file.
84510
84511         * m4/jm-macros.m4: Require the new macro.
84512         * m4/jm-glibc-io.m4: New file.
84513
84514 1998-05-19  Jim Meyering  <meyering@ascend.com>
84515
84516         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
84517         * m4/lchown.m4: New file.
84518
84519         * m4/Makefile.am.in: New file.
84520         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
84521
84522 1998-05-14  Jim Meyering  <meyering@ascend.com>
84523
84524         * m4/Makefile.am (EXTRA_DIST): Add them.
84525         * m4/jm-macros.m4: New file.
84526         * m4/utimbuf.m4: New file.
84527
84528 1998-05-12  Jim Meyering  <meyering@ascend.com>
84529
84530         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
84531
84532 1998-05-11  Jim Meyering  <meyering@ascend.com>
84533
84534         * m4/isc-posix.m4: New file.
84535
84536 1998-05-10  Jim Meyering  <meyering@ascend.com>
84537
84538         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
84539
84540 1998-05-09  Jim Meyering  <meyering@ascend.com>
84541
84542         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
84543         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
84544         with automake.
84545
84546         * m4/ssize_t.m4: New file.
84547         * m4/mktime.m4: Remove file -- the new automake has this now.
84548
84549 1998-04-26  Jim Meyering  <meyering@ascend.com>
84550
84551         * m4/assert.m4: New file.
84552         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
84553
84554 1998-04-05  Jim Meyering  <meyering@ascend.com>
84555
84556         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
84557         (jm_PREREQ): Use it here.
84558
84559 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
84560
84561         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
84562         in acconfig.h.
84563
84564 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
84565
84566         * m4/prereq.m4: New file.
84567         * m4/error.m4: New file.
84568         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
84569
84570 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
84571
84572         * m4/getline.m4: Don't set am_cv_func_working_getline before the
84573         cache-check for the same variable -- that defeated the purpose of
84574         the test; the test program was never run.  This was a problem only
84575         on systems with losing getline functions -- HP-UX 10.20 is one.
84576         Reported by Bjorn Helgaas.
84577
84578 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
84579
84580         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
84581
84582 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
84583
84584         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
84585
84586         * m4/const.m4: New file.  Use an initializer in this declaration
84587         typedef int charset[2]; const charset x;
84588         Reported by Bob Glickstein.
84589
84590 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
84591
84592         * m4/chown.m4: Fix reversed types on -1 args to chown.
84593         From Kaveh Ghazi.
84594
84595 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
84596
84597         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
84598         Add lseek and memchr.
84599
84600         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
84601         T.E.Dickey <dickey@clark.net> said that some older preprocessors
84602         have a 20-character limit on names.
84603
84604 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
84605
84606         * m4/inttypes_h.m4: New file.
84607         * m4/uintmax_t.m4: New file.
84608         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
84609
84610
84611         -----
84612
84613         Local Variables:
84614         coding: utf-8
84615         End:
84616
84617         Copyright (C) 1997-2011 Free Software Foundation, Inc.
84618
84619         Copying and distribution of this file, with or without
84620         modification, are permitted provided the copyright notice
84621         and this notice are preserved.